:root {
    --primary-color: #0066ff;  /* Wave Blue */
    --secondary-color: #00ccff; /* Light Blue */
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent-color: #FFD700;
    --card-bg: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: linear-gradient(45deg, rgba(0, 102, 255, 0.8), rgba(0, 204, 255, 0.8));
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.animated-background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: float 20s infinite;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    left: -150px;
    top: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 250px;
    height: 250px;
    right: -100px;
    top: 20%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 400px;
    height: 400px;
    left: 30%;
    bottom: -200px;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    width: 200px;
    height: 200px;
    right: 20%;
    top: -100px;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    width: 350px;
    height: 350px;
    left: 20%;
    top: -150px;
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(30px, 30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}

.content-wrapper.loaded {
    opacity: 1;
}

.hero-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.logo {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 600px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.fact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
}

.fact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        rgba(255, 255, 255, 0.3)
    );
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 6s linear infinite;
    background-size: 400% 400%;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.highlight {
    color: var(--text-primary); /* Белый вместо синего */
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.fact-card h2 {
    font-size: 2rem;
    margin: 1rem 0;
}

.price {
    color: var(--accent-color); /* Золотой цвет для цены */
    font-weight: 700;
}

.source-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.source-link:hover {
    color: var(--text-primary);
}

.opportunities h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.opportunity-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
}

.opportunity-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        rgba(255, 255, 255, 0.3)
    );
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 6s linear infinite;
    background-size: 400% 400%;
}

.opportunity-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color); /* Золотой цвет для номеров */
    opacity: 0.9;
}

.opportunity-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.opportunity-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
}

.button-arrow {
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .content-wrapper {
        padding: 1.5rem;
        gap: 3rem;
    }

    .hero-section {
        min-height: 40vh;
        padding: 2rem 0;
    }

    .logo {
        font-size: 3.5rem;
    }

    .opportunity-grid {
        grid-template-columns: 1fr;
    }

    .fact-card {
        padding: 1.5rem;
    }
}

.click-effect {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    animation: clickEffect 0.8s ease-out forwards;
    z-index: 9999;
}

@keyframes clickEffect {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.5;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.wave-container {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.wave {
    position: absolute;
    bottom: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 45%;
    filter: blur(5px);
    animation: wave 20s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transform-origin: 50% 50%;
    transition: transform 0.3s ease-out;
}

.wave:nth-child(1) {
    animation-duration: 20s;
    opacity: 0.3;
}

.wave:nth-child(2) {
    animation-duration: 15s;
    animation-direction: reverse;
    opacity: 0.2;
}

.wave:nth-child(3) {
    animation-duration: 25s;
    opacity: 0.1;
}

.wave:nth-child(4) {
    animation-duration: 30s;
    animation-direction: reverse;
    opacity: 0.15;
}

@keyframes wave {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.opportunity-item:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
}

.animated-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    animation: gradientMove 15s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.logo {
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.background-video {
    position: fixed;
    top: 0;
    left: -50%; /* Смещаем влево на 50% */
    width: 150%; /* Увеличиваем ширину для компенсации */
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
}

.wave {
    opacity: 0.08; /* Уменьшаем прозрачность волн */
}

/* Обновляем стили прелоадера */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    position: relative;
    width: 300px; /* Увеличили размер */
    height: 300px; /* Увеличили размер */
}

/* Убираем wave-line и loader-text */

/* Улучшенный Ripple эффект */
.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ripple::before,
.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; /* Увеличили начальный размер */
    height: 20px;
    border: 3px solid white; /* Сделали линию толще */
    border-radius: 50%;
    animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.ripple::after {
    animation-delay: -1s;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px; /* Увеличили конечный размер */
        height: 300px;
        opacity: 0;
    }
}

/* Добавляем дополнительные волны */
.ripple::before {
    border-color: rgba(255, 255, 255, 0.8);
}

.ripple::after {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Добавляем третью волну */
.ripple {
    &::before {
        content: '';
        position: absolute;
        border: 3px solid rgba(255, 255, 255, 0.2);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        animation-delay: -0.5s;
    }
}

/* Стили для прогресс-бара */
.progress-bar {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.2s ease-out;
}
