/* Base Styles */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #10b981;
    --dark-color: #0a192f;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.placeholder-image {
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    height: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h2 {
    color: var(--dark-color);
    margin-bottom: 0;
    font-size: 1.8rem;
}

.logo-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: normal;
    margin-top: -5px;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 12rem;
    background: linear-gradient(135deg, #0a192f, #172a46);
    color: white;
    overflow: hidden;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15), transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
                     0 0 20px rgba(79, 70, 229, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.2),
                     0 0 30px rgba(79, 70, 229, 0.2);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

/* Стили для волны - опускаем ее ниже для лучшего отображения на широких экранах */
.hero-wave {
    position: absolute;
    bottom: -100px; /* Изменяем с 0 на -1px чтобы устранить возможный зазор */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
    transform: translateY(2px); /* Небольшой сдвиг вниз для перекрытия возможных зазоров */
}

/* Добавляем медиа-запросы для лучшей адаптации на разных экранах */
@media (min-width: 1600px) {
    .hero-wave {
        transform: translateY(4px); /* Увеличиваем сдвиг для очень широких экранов */
    }
}

@media (max-width: 992px) {
    .hero-wave {
        transform: translateY(1px); /* Меньший сдвиг для средних экранов */
    }
}

@media (max-width: 576px) {
    .hero-wave {
        transform: translateY(0); /* Для мобильных устройств возвращаем к исходному положению */
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.server-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    animation: float-server 4s ease-in-out infinite alternate;
}

.sputnik-image {
    position: absolute;
    width: 320px;
    height: auto;
    animation: float-sputnik 30s linear infinite;
    z-index: 1;
}

@keyframes float-server {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-15px);
    }
}

@keyframes float-sputnik {
    0% {
        transform: translate(-50%, 0) rotate(5deg);
        opacity: 0;
    }
    5% {
        transform: translate(-20%, 10%) rotate(2deg);
        opacity: 1;
    }
    45% {
        transform: translate(150%, -20%) rotate(-5deg);
        opacity: 1;
    }
    48% {
        transform: translate(170%, -25%) rotate(-5deg);
        opacity: 0;
    }
    49%, 51% {
        transform: translate(-50%, -25%) rotate(5deg);
        opacity: 0;
    }
    55% {
        transform: translate(-20%, 10%) rotate(2deg);
        opacity: 1;
    }
    95% {
        transform: translate(150%, -20%) rotate(-5deg);
        opacity: 1;
    }
    98% {
        transform: translate(170%, -25%) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0) rotate(5deg);
        opacity: 0;
    }
}

/* Стили для анимации частиц */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    background-color: transparent;
    pointer-events: none;
}

/* Стили для звёзд */
.star {
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    pointer-events: none;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6);
    z-index: 2;
}

/* Стили для плавающих элементов */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

/* Добавляем темную подложку под контент в hero секции */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(10, 25, 47, 0.8));
    z-index: 3;
}

/* Удаляем временные стили для отладки структуры hero-секции */
/* [data-debug] {
    outline: 1px dashed rgba(255, 0, 0, 0.5);
}

[data-debug="hero-section"] {
    outline-color: rgba(255, 0, 0, 0.5);
}

[data-debug="hero-wave"] {
    outline-color: rgba(0, 255, 0, 0.5);
}

[data-debug="hero-container"] {
    outline-color: rgba(0, 0, 255, 0.5);
}

[data-debug="hero-content"] {
    outline-color: rgba(255, 255, 0, 0.5);
}

[data-debug="hero-image"] {
    outline-color: rgba(255, 0, 255, 0.5);
}

[data-debug="hero-particles"] {
    outline-color: rgba(0, 255, 255, 0.5);
}

[data-debug="floating-elements"] {
    outline-color: rgba(255, 165, 0, 0.5);
}

[data-debug]::before {
    content: attr(data-debug);
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    z-index: 9999;
} */

/* Стили для изображения сервера с анимацией */
.server-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    animation: float-server 4s ease-in-out infinite alternate;
}

@keyframes float-server {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-15px);
    }
}

/* Стили для анимации частиц - звездное небо */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: transparent;
}

/* Удаляем старые стили с псевдоэлементами */
.hero-particles::before,
.hero-particles::after {
    content: none;
}

/* Добавляем отдельные мерцающие звезды с улучшенной анимацией */
.star {
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    pointer-events: none;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6);
}

/* Создаем звезды с разным мерцанием */
@keyframes twinkle-1 {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes twinkle-2 {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

@keyframes twinkle-3 {
    0%, 100% { opacity: 0.2; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Звезды разного размера и с разной анимацией */
.star-1 {
    width: 2px;
    height: 2px;
    top: 10%;
    left: 15%;
    animation: twinkle-1 3s infinite ease-in-out;
}

.star-2 {
    width: 3px;
    height: 3px;
    top: 25%;
    left: 45%;
    animation: twinkle-2 4s infinite ease-in-out;
}

.star-3 {
    width: 1px;
    height: 1px;
    top: 45%;
    right: 30%;
    animation: twinkle-3 2.5s infinite ease-in-out;
}

.star-4 {
    width: 2px;
    height: 2px;
    top: 15%;
    right: 20%;
    animation: twinkle-1 3.5s infinite ease-in-out;
}

.star-5 {
    width: 1px;
    height: 1px;
    top: 35%;
    left: 25%;
    animation: twinkle-2 4.5s infinite ease-in-out;
}

.star-6 {
    width: 3px;
    height: 3px;
    bottom: 25%;
    left: 60%;
    animation: twinkle-3 3s infinite ease-in-out;
}

.star-7 {
    width: 2px;
    height: 2px;
    bottom: 15%;
    left: 35%;
    animation: twinkle-1 5s infinite ease-in-out;
}

.star-8 {
    width: 1px;
    height: 1px;
    bottom: 40%;
    right: 15%;
    animation: twinkle-2 3.5s infinite ease-in-out;
}

.star-9 {
    width: 3px;
    height: 3px;
    bottom: 10%;
    right: 50%;
    animation: twinkle-3 4s infinite ease-in-out;
}

.star-10 {
    width: 2px;
    height: 2px;
    top: 50%;
    left: 5%;
    animation: twinkle-1 4.5s infinite ease-in-out;
}

/* Звезды дополнительные с разным размером и анимацией */
.star-11 {
    width: 1px;
    height: 1px;
    top: 5%;
    left: 38%;
    animation: twinkle-2 3.2s infinite ease-in-out;
}

.star-12 {
    width: 2px;
    height: 2px;
    top: 12%;
    left: 72%;
    animation: twinkle-3 4.7s infinite ease-in-out;
}

.star-13 {
    width: 1px;
    height: 1px;
    top: 38%;
    left: 83%;
    animation: twinkle-1 2.8s infinite ease-in-out;
}

.star-14 {
    width: 3px;
    height: 3px;
    top: 55%;
    left: 76%;
    animation: twinkle-2 5.1s infinite ease-in-out;
}

.star-15 {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 12%;
    animation: twinkle-3 3.3s infinite ease-in-out;
}

.star-16 {
    width: 1px;
    height: 1px;
    top: 82%;
    left: 55%;
    animation: twinkle-1 4.2s infinite ease-in-out;
}

.star-17 {
    width: 2px;
    height: 2px;
    top: 18%;
    left: 92%;
    animation: twinkle-2 3.8s infinite ease-in-out;
}

.star-18 {
    width: 3px;
    height: 3px;
    top: 62%;
    left: 45%;
    animation: twinkle-3 5.5s infinite ease-in-out;
}

.star-19 {
    width: 1px;
    height: 1px;
    top: 30%;
    left: 8%;
    animation: twinkle-1 3.4s infinite ease-in-out;
}

.star-20 {
    width: 2px;
    height: 2px;
    top: 75%;
    left: 88%;
    animation: twinkle-2 4.9s infinite ease-in-out;
}

/* Floating Elements & Pulse Dots */
.floating-element {
    position: absolute;
    animation: float calc(var(--duration)) ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: rgba(79, 70, 229, 0.5);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(79, 70, 229, 0.5);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background-color: #fff;
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 65px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    z-index: 2;
}

/* Why Choose Us Section */
.why-us {
    position: relative;
    padding: 6rem 0 12rem;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), rgba(16, 185, 129, 0.05));
    overflow: hidden;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.why-us-item {
    margin-bottom: 2rem;
}

.why-us-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.why-us-item h3 i {
    color: var(--secondary-color);
}

.why-us-item p {
    color: var(--gray-color);
    margin-left: 1.7rem;
}

.why-us-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    height: 120px;
}

/* Добавляем темную подложку под контент в why-us секции */
.why-us::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.5));
    z-index: 2;
}

.why-us-image {
    position: relative;
    z-index: 5;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(16, 185, 129, 0.05));
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--dark-color);
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    color: var(--gray-color);
    margin-left: 0.25rem;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.pricing-features ul li i {
    color: var(--secondary-color);
}

.pricing-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* CTA Section с FAQ */
.cta {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(16, 185, 129, 0.9));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    margin-bottom: 3rem;
}

/* FAQ стили */
.faq-container {
    margin-bottom: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.faq-question {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

.faq-question i {
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Достаточно большое значение для любого ответа */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

/* Адаптив для FAQ */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), rgba(16, 185, 129, 0.05));
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-company {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.testimonial-company i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--gray-color);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-rating {
    color: #ffc107;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark-color);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-contact ul li {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    margin-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animation Styles */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 10rem 0 10rem;
    }
    
    .why-us {
        padding: 6rem 0 10rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .why-us-content {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero {
        padding: 8rem 0 8rem;
    }
    
    .why-us {
        padding: 6rem 0 8rem;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 7rem 0 7rem;
    }
    
    .why-us {
        padding: 5rem 0 7rem;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 8rem 0 4rem;
    background-color: #fff;
}

.legal-content .section-header {
    margin-bottom: 4rem;
}

.legal-content .section-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.legal-content .section-header p {
    color: var(--gray-color);
    font-size: 1rem;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-text p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.legal-text ul, 
.legal-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-text ul li, 
.legal-text ol li {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-text ul {
    list-style-type: disc;
}

.legal-text ol {
    list-style-type: decimal;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 6rem 0 3rem;
    }

    .legal-content .section-header h1 {
        font-size: 2rem;
    }

    .legal-text h2 {
        font-size: 1.3rem;
    }
}