/* ======================================================= */
/* === БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ === */
/* ======================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #229ED9; /* Основной синий цвет Telegram */
    --color-text: #FFFFFF;
    --font-main: 'Nunito';
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main), sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: var(--container-width);
    margin: auto;
    width: 100%;
    padding: 0 10px;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: transparent; font-family: var(--font-main), sans-serif }

/* ======================================================= */
/* === ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ КНОПОК (ОПТИМИЗИРОВАНО) === */
/* ======================================================= */

/* Общие стили для ВСЕХ голубых кнопок (Header, Hero, Contact) */
.btn-primary,
.btn-contact {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50px; /* Округлость по умолчанию */
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);

    /* ГЛАВНОЕ: Единая плавная анимация для всех */
    transition: all 0.3s ease;

    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

/* Единый Hover (Наведение) */
.btn-primary:hover,
.btn-contact:hover {
    background-color: #1a8ac0;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.4);
}

/* Единый Active (Нажатие - Вдавливание и смена цвета) */
.btn-primary:active,
.btn-contact:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
    background-color: #FFFFFF;
    color: var(--color-primary);
}

/* --- Логика смены иконок Telegram (Белая <-> Синяя) --- */
/* По умолчанию активная иконка скрыта */
.btn-primary .tg-logo-active,
.btn-contact .tg-logo-active {
    display: none;
    width: 20px;
    height: 20px;
}
.btn-primary .tg-logo-default,
.btn-contact .tg-logo-default {
    display: block;
    width: 20px;
    height: 20px;
}

/* При нажатии скрываем дефолтную и показываем активную (синюю) */
.btn-primary:active .tg-logo-default,
.btn-contact:active .tg-logo-default {
    display: none;
}
.btn-primary:active .tg-logo-active,
.btn-contact:active .tg-logo-active {
    display: block;
}


/* --- Специфичные размеры кнопок --- */

/* Кнопка в шапке */
.btn-contact {
    padding: 10px 25px;
    border-radius: 35px;
}

/* Кнопки в Hero секции */
.hero-buttons .btn {
    padding: 12px 35px;
    font-size: 16px;
    min-height: 55px;
}

/* Кнопка с обводкой (Hero) */
.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #DEDEDE;
    font-weight: 700;
    border-radius: 50px; /* Убедились, что скругление здесь */
    color: var(--color-primary);
    line-height: 1.2;
    transition: all 0.3s ease; /* Добавлена плавность */
}
.btn-outline:hover {
    border-color: var(--color-primary);
    background-color: #f9f9f9;
}
.btn-outline:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
    background-color: var(--color-primary);
    color: #FFFFFF;
}

/* Большая кнопка в Контактах */
.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    /* transition и active берутся из .btn-primary */
}
.btn-large .tg-logo-default,
.btn-large .tg-logo-active {
    width: 24px; /* Чуть больше иконка для большой кнопки */
    height: 24px;
}


/* ======================================================= */
/* === HEADER / NAV (НАВИГАЦИЯ) === */
/* ======================================================= */
.header {
    padding: 10px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav .logo img {
    display: block;
    max-height: 60px;
}

/* --- Бургер-меню --- */
.burger-menu {
    display: none;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1100;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.burger-menu span {
    display: block;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
}

.burger-menu span:nth-child(1) { top: 2px; }
.burger-menu span:nth-child(2) { top: 11px; }
.burger-menu span:nth-child(3) { top: 20px; }

/* Анимация крестика */
.nav.active .burger-menu span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav.active .burger-menu span:nth-child(2) { opacity: 0; transform: translateX(-30px); }
.nav.active .burger-menu span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* --- Меню и Слайдер --- */
.nav-menu-wrapper {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-menu.mobile-menu {
    max-width: 600px;
    width: 100%;
    position: relative;
    display: flex;
    gap: 0;
    background-color: var(--color-primary);
    border-radius: 35px;
    padding: 0 2px;
}

.nav-menu.mobile-menu .nav-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.nav-menu.mobile-menu .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    font-weight: 700;
    color: #ffffff;
    border-radius: 35px;
    transition: color 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-menu.mobile-menu .nav-link.active { color: var(--color-primary); }

/* Белый овал (слайдер меню) */
.slider {
    position: absolute;
    background-color: #ffffff;
    border-radius: 35px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    top: 2px;
    bottom: 2px;
    height: calc(100% - 4px);
    left: 0;
    width: 0;
    opacity: 0;
}
.slider.initialized { opacity: 1; }


/* ======================================================= */
/* === HERO SECTION (ГЛАВНЫЙ ЭКРАН) === */
/* ======================================================= */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    padding: 25px 0 50px 0;
    position: relative;
    overflow: hidden;
}

/* Фон-овал для десктопа */
.hero-background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 1500px;
    height: 1500px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-65%, -5%);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
    gap: 50px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 50%;
    padding-right: 20px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    color: #333333;
    margin-bottom: 25px;
}
.hero-title span { color: var(--color-primary); font-weight: 700; }

.hero-subtitle {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-buttons { display: flex; gap: 20px; align-items: center; }

/* --- КОНТЕЙНЕР ДЛЯ ВИДЕО --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    min-height: 530px;
    align-items: center;
    overflow: hidden;
}

/* --- ВИДЕО-ЭЛЕМЕНТ --- */
#heroVideo {
    width: 100%;
    height: 90%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ======================================================= */
/* === FEATURES SECTION (ВОЗМОЖНОСТИ) === */
/* ======================================================= */
.features-section {
    padding: 50px 0;
    background-color: #f0f8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 38px;
    color: #333333;
    margin-bottom: 50px;
    font-weight: 300;
}

.section-title span {
    color: var(--color-primary);
    font-weight: 300;
}

.features-slider {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overflow-y: hidden;
    gap: 30px;
    background-color: #ffffff;
    border-radius: 40px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
    padding: 30px 50px;
    scroll-padding-left: 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.features-slider::-webkit-scrollbar {
    display: none;
}

.feature-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 125px;
    height: 125px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: 22px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-content-wrapper {
    flex-grow: 1;
}

.card-description-intro {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.card-benefit {
    font-size: 14px;
    font-weight: 500;
    color: #229ED9;
    padding: 15px;
    border-radius: 10px;
    background-color: #f3f3f1;
    line-height: 1.5;
    margin-top: auto;
    text-align: left;
}
.card-benefit strong {
    font-weight: 700;
    color: #1a8ac0;
}


/* ======================================================= */
/* === CASES SECTION (КЕЙСЫ - СЛАЙДЕР) === */
/* ======================================================= */
.cases-section {
    padding: 60px 0;
    color: #ffffff;
    overflow: hidden;
}

.cases-section .section-title {
    color: #000000;
    margin-bottom: 50px;
    font-weight: 300;
}

.case-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

/* --- Визуальный контейнер (Слева) --- */
.case-visual {
    flex-shrink: 0;
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0px;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: #000;
    border: 15px solid #000;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    filter: drop-shadow(0 0 50px rgba(34, 158, 217, 0.5));
    box-shadow: 0 0 0 1px #333, 0 0 20px rgba(0, 0, 0, 0.8) inset;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease-out;
    transform: translateX(0);

}

.phone-mockup.is-moving {
    /* Слегка сдвигаем и размываем мокап, чтобы скрыть смену видео */
    transform: translateX(10px) scale(0.98);
    filter: drop-shadow(0 0 20px var(--color-primary)); /* Тень с цветом активного слайда */
}

/* Динамик телефона */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: #111;
    border-radius: 4px;
    z-index: 100;
}

.phone-mockup video,
.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.phone-mockup video {
    /* ... */
    transition: opacity 0.3s ease-in-out;
}

/* --- Контентный слайдер (Справа) --- */
.case-content-slider {
    flex-grow: 1;
    min-height: 520px;
    position: relative;
    overflow: visible;
    padding-left: 30px;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    transform: none;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transform: translateY(0);
}

/* Фон для текста (SVG) */
.slide-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-background svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--color-primary);
    transition: fill 0.4s ease-in-out;
}

/* --- Текст слайда --- */
.slide-text {
    position: relative;
    z-index: 15;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 95px 65px;
    color: #ffffff;
    overflow: visible;
}

.slide-title {
    position: absolute;
    top: 10px;
    left: 85px;
    width: 100%;
    text-align: left;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-primary);
}

.slide-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.slide-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    display: inline-block;
}

.slide-features { list-style: none; margin-bottom: 10px; }
.slide-features li { font-size: 14px; line-height: 1.4; position: relative; padding-left: 15px; margin-bottom: 4px; }
.slide-features li::before { content: "•"; position: absolute; left: 0; color: #ffffff; }

.slide-footer {
    position: absolute;
    bottom: 5px;
    right: -30px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    border-top: none;
}

.slide-launch-time {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    padding-bottom: 15px;
    padding-left: 10px;
}

.slide-price {
    font-size: 36px;
    font-weight: 300;
    color: var(--color-primary);
    padding: 5px 15px;
    border-radius: 15px;
}

.slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.control-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-arrow:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.prev-arrow { left: 0; }
.next-arrow { right: 0; }

.dots-wrapper {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: auto;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}


/* ======================================================= */
/* === WORKFLOW SECTION (ЭТАПЫ РАБОТЫ) === */
/* ======================================================= */
.workflow-section { padding: 80px 0; }
.workflow-section .section-title { margin-bottom: 60px; }
.workflow-steps { max-width: 800px; margin: 0 auto; position: relative; }

.step-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.final-step .step-line { display: none; }

.step-header {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-right: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 300;
    box-shadow: 0 4px 10px rgba(34, 158, 217, 0.4);
    z-index: 3;
}

.step-line {
    width: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    bottom: -40px;
    z-index: 1;
}

.step-content {
    flex-grow: 1;
    padding-top: 5px;
    padding-bottom: 10px;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}
.step-content p strong { color: var(--color-primary); }


/* ======================================================= */
/* === CONTACT SECTION (КОНТАКТЫ) === */
/* ======================================================= */

.contact-section { padding: 100px 0;     background-color: #f0f8ff; }

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.contact-content { max-width: 600px; z-index: 2; }
.contact-section .section-title { text-align: left; margin-bottom: 20px; }

.contact-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-buttons { margin-bottom: 40px; }

/* Контактные данные внизу */
.contact-links {
    display: flex;
    gap: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.contact-item { display: flex; flex-direction: column; }

.contact-label { font-size: 14px; color: #999; margin-bottom: 5px; }

.contact-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    transition: color 0.2s;
}
.contact-value:hover { color: var(--color-primary); }

.contact-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    position: relative;
}
.contact-image img { max-width: 400px; }

/* ======================================================= */
/* === TESTIMONIALS SECTION (ОТЗЫВЫ КЛИЕНТОВ) === */
/* ======================================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Светло-голубой фон, как на изображении */
    text-align: center;
}

.testimonial-slider-wrapper {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px; /* Отступы для стрелок */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slider {
    width: 100%;
    overflow: hidden;
    height: 450px; /* Фиксированная высота для предотвращения "прыжков" */
    position: relative;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Добавить этот блок */
.review-initials {
    /* Физические размеры и форма, как у фото */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

    /* Стили для текста (инициалов) */
    background-color: var(--color-primary); /* Используем ваш фирменный цвет */
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;

    /* Центрирование текста */
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 30px auto;
    color: #333;
    font-weight: 500;
}

.review-author {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.review-position {
    font-size: 14px;
    color: #666;
    opacity: 0.8;
}

/* Переопределение стрелок для этого блока */
.testimonial-slider-wrapper .control-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
    transition: all 0.3s;
    z-index: 5;
}
.testimonial-slider-wrapper .control-arrow:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.prev-testimonial { left: 0; }
.next-testimonial { right: 0; }

.testimonial-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* FAQ секция */
.faq-section {
    padding: 80px 0;
}

.faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 50px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #999;
    padding: 20px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-main), sans-serif;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

.faq-icon {
    font-size: 26px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    font-size: 17px;
    line-height: 1.5;
    padding-right: 20px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}


/* ======================================================= */
/* === FOOTER (КОМПАКТНЫЙ И ЛАКОНИЧНЫЙ) === */
/* ======================================================= */
.footer .container {
    /* Отключаем автоматическое центрирование */
    margin-left: 0;
    margin-right: 0;

    /* Дополнительно уменьшаем внутренние отступы */
    padding-left: 50px;
    padding-right: 50px;

    /* Убеждаемся, что он использует всю доступную ширину */
    max-width: 100%;
}

.footer {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 0; /* Уменьшили высоту (было 40px) */
    margin-top: 60px;
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
    font-size: 14px; /* Чуть аккуратнее шрифт */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая линия для стиля */
}

/* Контейнер превращаем в Flex-строку */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* --- ЛЕВАЯ ЧАСТЬ (Бренд) --- */
.footer-brand {
    display: flex;
    flex-direction: row; /* ИЗМЕНЕНИЕ: Горизонтальное расположение */
    align-items: center; /* ИЗМЕНЕНИЕ: Вертикальное центрирование */
    gap: 15px; /* Увеличен отступ между элементами */
}

.footer-logo-img {
    height: 50px; /* Фиксированная высота логотипа */
    width: auto;
    object-fit: contain;
}

.footer-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 200px;
    line-height: 1.2;
}

/* --- ЦЕНТР (Навигация) --- */
.footer-nav {
    display: flex;
    gap: 30px; /* Отступы между ссылками */
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: font-size 0.2s ease, transform 0.5s;
    position: relative;
}

.footer-link:hover {
    font-size: 16px;
}

/* --- ПРАВАЯ ЧАСТЬ (Копирайт) --- */
.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    white-space: nowrap; /* Чтобы не переносилось */
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
    }

    .footer-row {
        flex-direction: column; /* Элементы друг под друга */
        text-align: center;
        gap: 25px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0;
        margin-bottom: 10px;
        align-items: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-nav {
        flex-direction: column; /* Ссылки вертикально на телефоне для удобства пальца */
        gap: 15px;
    }

    .footer-link {
        padding: 5px; /* Увеличиваем область клика */
        font-size: 16px;
    }

    .footer-copy {
        text-align: center;
        margin-top: 10px;
    }
}


/* ======================================================= */
/* === АДАПТИВ (MEDIA QUERIES) === */
/* ======================================================= */

@media (max-width: 768px) {
    .desktop-btn { display: none; }
    .container { padding: 0 20px; display: block; }

    /* Навигация */
    .nav { width: 100%; display: flex; justify-content: space-between; }
    .burger-menu { display: block; }
    .nav-menu-wrapper { position: absolute; top: 100%; left: 0; right: 0; background-color: transparent; pointer-events: none; z-index: 999; padding: 0 20px; }
    .nav-menu.mobile-menu { display: flex; flex-direction: column; max-width: 100%; width: 100%; background-color: var(--color-primary); padding: 5px; border-radius: 20px; margin-top: 10px; opacity: 0; transform: translateY(-20px); visibility: hidden; transition: all 0.3s ease; }
    .nav.active .nav-menu-wrapper { pointer-events: all; }
    .nav.active .nav-menu.mobile-menu { opacity: 1; transform: translateY(0); visibility: visible; }
    .nav-menu.mobile-menu .nav-link { padding: 12px 0; justify-content: center; width: 100%; }

    /* Слайдер меню */
    .slider { border-radius: 15px; width: calc(100% - 4px); left: 2px; top: 0; bottom: auto; height: auto; transform: none !important; }

    /* Hero */
    .hero-section { padding-top: 40px; padding-bottom: 60px; }
    .hero-background-shape { display: none; }
    .hero-container { flex-direction: column; text-align: center; gap: 30px; }
    .hero-content { max-width: 100%; padding-right: 0; }
    .hero-subtitle { margin-left: auto; margin-right: auto; white-space: normal; }
    .hero-title { font-size: 36px; }
    .hero-buttons { justify-content: center; flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }
    .hero-image { min-height: 350px; justify-content: center; margin-top: 30px; }
    #heroVideo {
    height: 85%;
}

    /* Features */
    .features-slider { padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%); }
    .features-section { padding: 60px 0; }
    .section-title { font-size: 30px; margin-bottom: 40px; }
    .feature-card { min-width: calc(100vw - 40px); max-width: none; padding: 30px; }

    /* АДАПТИВ КЕЙСОВ */
    .cases-section { padding: 40px 0; }
    .case-slider-wrapper { flex-direction: column; align-items: center; }
    .case-visual { width: 100%; padding: 0; margin-bottom: 20px; }
    .phone-mockup { width: 220px; height: 440px; }

    .slider-controls {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        bottom: auto;
        left: auto;
        transform: none;
    }

    .dots-wrapper { position: static; transform: none; margin: 0; }
    .case-content-slider { padding-left: 0; min-height: auto; width: 100%; overflow: hidden; }
    .slide-text { padding: 30px 15px; }
    .slide-title { position: relative; top: auto; left: auto; color: #ffffff; margin-bottom: 5px; font-size: 24px; }
    .slide-footer { position: relative; bottom: auto; right: auto; justify-content: center; flex-direction: column; gap: 5px; margin-top: 20px; }
    .slide-price { color: #ffffff; background: transparent; box-shadow: none; font-size: 22px; padding: 0; }

    .testimonial-slider-wrapper {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .review-text {
        font-size: 14px;
    }

    .testimonial-slider-wrapper .control-arrow {
        top: 25%;
    }

    .faq-title {
        font-size: 28px;
    }
    .faq-question {
        font-size: 17px;
    }
    .faq-answer {
        font-size: 15px;
    }
    .faq-section {
        padding: 60px 0;
    }


    /* CONTACTS */
    .contact-wrapper { flex-direction: column; padding: 40px 20px; text-align: center; }
    .contact-section .section-title { text-align: center; font-size: 28px; }
    .contact-links { flex-direction: column; gap: 20px; align-items: center; }
    .contact-image { margin-top: 40px; justify-content: center; }
    .contact-image img { max-width: 250px; }
    .btn-large { width: 100%; justify-content: center; }
}


@media (max-width: 992px) {
    .hero-title { font-size: 36px; }
    .feature-card { min-width: 300px; max-width: 300px; }
}

/* ======================================================= */
/* === SCROLL REVEAL АНИМАЦИИ (ПЛАВНОЕ ПОЯВЛЕНИЕ) === */
/* ======================================================= */

/* Начальное состояние: невидимый и смещенный (по умолчанию) */
.reveal-element {
    opacity: 0;
    /* Смещение вниз на 50 пикселей */
    transform: translateY(50px);
    /* Плавность перехода: 0.8 секунды для всех свойств */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

    /* Дополнительное правило для элементов, которым нужна задержка,
       но не сдвиг (например, .hero-title), чтобы избежать конфликта */
    transition-property: opacity, transform;
}

/* Конечное состояние: полностью видимый и на своем месте (добавляется JS) */
.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Оптимизация для Hero-секции (чтобы текст не "выезжал" снизу при загрузке) */
.hero-content .reveal-element {
    /* На Hero-секции лучше просто проявление, без сильного сдвига */
    transform: translateY(0);
}

.hero-title.reveal-element.is-visible,
.hero-subtitle.reveal-element.is-visible,
.hero-buttons.reveal-element.is-visible {
    opacity: 1;
    transition-duration: 0.8s; /* Время проявления */
}

/* Дополнительные задержки (для каскадного эффекта карточек) */
/* Для features-slider */
.features-slider .feature-card.reveal-element:nth-child(2) { transition-delay: 0.1s; }
.features-slider .feature-card.reveal-element:nth-child(3) { transition-delay: 0.2s; }
.features-slider .feature-card.reveal-element:nth-child(4) { transition-delay: 0.3s; }
/* ... и так далее, если карточек больше */

@media (min-width: 800px) and (max-width: 900px) {

    /* Контейнер */

    .header {
        padding: 8px 0; /* меньше, чем на десктопе, но не слишком */
    }

    .btn-contact {
        padding: 8px 20px;
        font-size: 14px;
        border-radius: 30px;
    }

    .nav-menu.mobile-menu .nav-link {
        padding: 10px 0;
        font-size: 15px;
    }

    .burger-menu {
        width: 28px;
        height: 22px;
    }
    .burger-menu span {
        height: 2.5px;
    }

    .nav {
        gap: 20px; /* пространство между логотипом и меню */
    }


    .container {
        margin: 0;
        padding-left: 30px;
        padding-right: 30px;
    }

    /* HERO секция */
    .hero-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-container {
        flex-direction: column; /* текст сверху, видео снизу */
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .hero-buttons {
        padding-top: 50px;
        flex-direction: column;
        gap: 20px; /* чуть больше расстояние между кнопками */
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
    }


    .hero-title { font-size: 42px; }
    .hero-subtitle { font-size: 17px; max-width: 400px; margin: 0 auto; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-buttons .btn { width: 100%; max-width: 250px; }

    /* Видео под текстом */
    .hero-image {
        min-height: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
        position: relative;
    }

    #heroVideo {
        width: 100%;
        max-height: 546px;
        object-fit: cover;
        top: -35px; /* чтобы не было слишком большого видео */
        position: relative;
    }

    /* FEATURES секция */
    .features-slider {
        padding-left: 30px;
        padding-right: 30px;
        gap: 25px;
        mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
    }
    .feature-card {
        min-width: 300px;
        max-width: 300px;
        padding: 25px;
    }

    /* CASES секция */
    .case-slider-wrapper { flex-direction: column; padding: 0 30px; }
    .case-visual { width: 100%; margin-bottom: 15px; }
    .phone-mockup { width: 240px; height: 480px; }
    .case-content-slider { display: none; }

    /* CONTACT секция */
    .contact-wrapper { flex-direction: column; padding: 50px 30px; }
    .contact-image img { max-width: 300px; }
    .btn-large { max-width: 300px; }

}

@media (min-width: 768px) and (max-width: 1024px) {
    .faq-section {
        padding: 70px 20px;
    }
    .faq-title {
        font-size: 34px;
    }
    .faq-question {
        font-size: 19px;
    }
}


