/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-blue: #4A90E2;
    --sky-blue-dark: #357ABD;
    --sky-blue-light: #E3F2FD;
    --bright-blue: #00B4D8;
    --dark-blue: #1E3A5F;
    --teal-blue: #0A7C7C;
    --purple: #9B59B6;
    --pink: #E91E63;
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --grey: #E0E0E0;
    --dark-grey: #333333;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --gradient-purple: linear-gradient(135deg, #9B59B6 0%, #E91E63 100%);
    --gradient-blue: linear-gradient(135deg, #4A90E2 0%, #00B4D8 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 40px 0;
    position: sticky;
    top: 20px;
    z-index: 1000;
    background: transparent;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.logo-icon-emoji {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--sky-blue);
    text-transform: lowercase;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav {
    position: relative;
}

.nav-item-with-dropdown {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    line-height: 1.2;
}

.nav-link:hover {
    color: var(--sky-blue);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.nav-item-with-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 24px;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    margin-top: 0;
}

/* КРИТИЧНО: Hover должен работать даже если меню было закрыто через класс */
.nav-item-with-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Класс для программного скрытия меню (при клике вне меню) */
.dropdown-menu-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
}

/* КРИТИЧНО: Hover перекрывает класс hidden */
.nav-item-with-dropdown:hover .dropdown-menu-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Detailed Dropdown (2 columns with icons) */
.detailed-dropdown .submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.submenu-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.submenu-item:hover {
    background-color: var(--light-grey);
}

.submenu-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-grey);
    border-radius: 12px;
    line-height: 1;
}

.submenu-content {
    flex: 1;
}

.submenu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.submenu-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Simple Dropdown (list) */
.simple-dropdown {
    min-width: 250px;
    padding: 10px 0;
}

.simple-dropdown .submenu-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s;
    border-radius: 0;
}

.simple-dropdown .submenu-item:hover {
    background-color: var(--light-grey);
}

.btn-login {
    background-color: transparent;
    color: var(--text-dark);
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
    line-height: 1.2;
    text-decoration: none;
}

.btn-login:hover {
    color: var(--sky-blue);
}

.login-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.login-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    padding: 8px;
    display: none;
    z-index: 1200;
}

.login-dropdown.open .login-dropdown-menu {
    display: block;
}

.login-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login-dropdown-item:hover {
    background: var(--light-grey);
    color: var(--sky-blue);
}

/* Hero Section */
.hero {
    background: var(--white);
    min-height: 700px;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* КРИТИЧНО: Статистика - только первые два блока, независимые друг от друга */
/* Чек-лист находится внутри, но не влияет на высоту первых двух блоков */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    /* Минимальная высота для контейнера, чтобы чек-лист мог позиционироваться */
    min-height: 120px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 200px;
    max-width: calc(50% - 15px); /* Ограничиваем ширину чтобы не растягивались */
    min-height: 120px; /* Минимальная высота для выравнивания */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative; /* Для градиентной рамки */
}

/* КРАСИВАЯ градиентная рамка для второго блока "Мы — партнёр собственника бизнеса" */
.stat-card:nth-child(2) {
    border-radius: 18px; /* Немного больше для красоты */
    padding: 2px; /* Толщина градиентной рамки */
    background: linear-gradient(135deg, #D020F5 0%, #B400FF 25%, #00A3FF 75%, #00FFFF 100%);
    position: relative;
}

/* Внутренний белый фон */
.stat-card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 16px; /* Немного меньше для внутреннего скругления */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 0;
}

/* Контент поверх градиентной рамки */
.stat-card:nth-child(2) > * {
    position: relative;
    z-index: 1;
    padding: 18px 28px; /* Немного меньше padding из-за рамки */
}

/* КРИТИЧНО: Убираем лишний отступ между заголовком и подзаголовком во втором блоке */
.stat-card:nth-child(2) .stat-number {
    margin-bottom: 8px !important; /* Нормальный отступ как в первом блоке */
    padding-bottom: 0 !important; /* Убираем padding снизу */
}

.stat-card:nth-child(2) .stat-text {
    margin-top: 0 !important; /* Убираем верхний отступ */
    padding-top: 0 !important; /* Убираем padding сверху */
    margin-bottom: 0 !important; /* Убираем нижний отступ */
}

/* Убираем отступы у вложенных div внутри stat-text во втором блоке */
.stat-card:nth-child(2) .stat-text > div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.stat-card:nth-child(2) .stat-text > div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.4;
}

.hero-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* Убрали min-height и justify-content - форма должна быть видна на первом экране */
}

/* Выравниваем чек-лист: верх на уровне hero-stats, низ на уровне верхней части формы */
.hero-checklist {
    /* Высота hero-stats + margin-bottom (40px) = начало hero-main */
    /* Внутри hero-main: title + subtitle + форма */
    /* Нужно чтобы низ чек-листа был на уровне верхней части формы */
    /* Используем calc для вычисления позиции */
    /* top: 0 (верх на уровне hero-stats) */
    /* bottom должен быть таким, чтобы низ чек-листа был на уровне верхней части формы */
    /* Форма начинается после title и subtitle */
    /* Используем отрицательный margin-bottom или transform для выравнивания */
    position: absolute;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::before {
    content: '👩';
    font-size: 200px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 50px; /* КРАСИВЫЙ отступ от блоков статистики выше - дизайнерский подход */
    /* Убрали flexbox свойства - форма должна быть сразу после заголовка */
}

/* КРИТИЧНО: Чек-лист справа - выровнен по верху с hero-stats, по низу с формой */
.hero-checklist {
    width: 320px; /* Размер как на скриншоте: 300-350px */
    min-width: 300px;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    position: absolute;
    /* Верх на уровне hero-stats (0px от верха контейнера) */
    top: 0;
    /* Правый край: не шире header-container (1400px) */
    /* header-container имеет max-width: 1400px и padding: 8px 24px */
    /* hero-container имеет max-width: 1400px и padding: 0 40px */
    /* Выравниваем правый край чек-листа с правым краем контента header */
    /* На больших экранах: (100vw - 1400px) / 2 + 40px (padding hero-container) */
    /* На маленьких экранах: 40px (padding hero-container) */
    right: clamp(40px, calc((100vw - 1400px) / 2 + 40px), 100%);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Выравниваем низ с верхней частью формы */
    /* Высота чек-листа должна быть равна: высота hero-stats + margin-bottom (40px) + высота title + margin (20px) + высота subtitle + margin (30px) */
    /* Используем calc для вычисления: примерно 120px (stats) + 40px + 70px (title) + 20px + 30px (subtitle) + 30px = 310px */
    /* Но лучше использовать bottom для точного выравнивания с верхом формы */
    height: auto;
    /* Ограничиваем высоту, чтобы низ был на уровне верхней части формы */
    /* Вычисляем: min-height stat-card (120px) + margin-bottom hero-stats (40px) + высота title (~70px) + margin (20px) + высота subtitle (~30px) + margin (30px) = ~310px */
    max-height: 310px; /* Высота от верха hero-stats до верха формы */
    overflow-y: auto; /* Прокрутка если контент больше */
}

.checklist-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    line-height: 1.3;
    text-align: left;
}

.checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    margin: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.checklist-item:hover {
    transform: translateX(4px);
}

.checklist-icon {
    font-size: 20px;
    line-height: 1.5;
    flex-shrink: 0;
    margin-top: 2px;
    animation: checkmark-pulse 2s ease-in-out infinite;
}

@keyframes checkmark-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.checklist-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .hero-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-checklist {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title-line1 {
    display: block;
    margin-bottom: 0;
    line-height: 1.1;
}

.hero-title-line2 {
    display: block;
    margin-top: 16px; /* Читаемый отступ для маркетинга и SEO - оптимальное расстояние между строками заголовка */
    margin-bottom: 0; /* Убираем нижний отступ заголовка */
    line-height: 1.1;
}

.hero-title sup {
    font-size: 24px;
    color: var(--text-light);
    font-weight: 400;
}

/* КРИТИЧНО: Подзаголовок НЕ должен отображаться вне формы - он внутри формы! */
.hero-subtitle {
    display: none !important; /* Полностью скрываем - подзаголовок теперь внутри формы */
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* КРИТИЧНО: Форма Hero - дизайн строго как на эталонном сайте */
.hero-form {
    position: relative;
    background: #1F313E; /* Темный фон как на эталоне */
    border-radius: 24px; /* Одинаковые скругленные углы сверху и снизу */
    padding: 30px; /* Вернул оригинальный padding */
    margin-top: 60px; /* КРАСИВЫЙ отступ сверху после заголовка - дизайнерский подход */
    margin-bottom: 20px; /* Отступ снизу */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    /* КРИТИЧНО: Ширина достаточна для всех элементов внутри формы */
    /* Расчет: padding (30px * 2 = 60px) + 3 поля (~200px каждое = 600px) + gap (12px * 3 = 36px) + кнопка (240px) = ~936px */
    /* Добавляем запас: 1100px для комфортного размещения */
    max-width: 1100px; /* Достаточная ширина чтобы все элементы помещались внутри */
    width: 100%;
    margin-left: auto; /* Центрируем форму */
    margin-right: auto;
    box-sizing: border-box; /* Учитываем padding в ширине */
    overflow: hidden; /* Скрываем переполнение если что-то выходит */
}

/* КРИТИЧНО: Подзаголовок внутри формы - красиво как на эталонном сайте */
.hero-form .form-subtitle {
    font-size: 18px !important;
    color: #FFFFFF !important; /* Белый текст на темном фоне формы */
    text-align: center !important;
    margin: 0 0 24px 0 !important; /* Отступ снизу перед полями ввода */
    line-height: 1.5 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    display: block !important; /* Убеждаемся что отображается */
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* Вложенная форма внутри hero-form не должна иметь своих стилей */
.hero-form .deloform-form-wrapper,
.hero-form .deloform-custom-form {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* КРИТИЧНО: Маленький текст под формой внутри формы - белый цвет */
.hero-form .form-note,
.hero-form .hero-footnote {
    font-size: 14px !important;
    color: #FFFFFF !important; /* Белый текст на темном фоне формы */
    text-align: left !important; /* Выравнивание влево для красивого дизайна */
    margin: 16px 0 0 0 !important; /* Отступ сверху после чекбоксов */
    padding-left: 4px !important; /* Небольшой отступ слева для визуального баланса */
    line-height: 1.4 !important;
    font-weight: 400 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0.9 !important; /* Немного прозрачности для элегантности */
    width: 100% !important;
    height: auto !important;
    min-height: 20px !important;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center; /* Выравнивание по центру для одинаковой высоты */
    flex-wrap: nowrap; /* Запрещаем перенос элементов на новую строку */
    width: 100%;
    max-width: 100%; /* Не превышаем ширину родителя */
    box-sizing: border-box; /* Учитываем padding в ширине */
    overflow: visible; /* Показываем эффекты при наведении */
}

/* КРИТИЧНО: Высота input полей строго как на эталонном сайте */
.form-input {
    flex: 1;
    height: 50px; /* Строго как на эталоне: 48-52px, используем 50px */
    padding: 0 20px; /* Убираем вертикальный padding, используем height */
    border: none;
    border-radius: 12px;
    font-size: 16px; /* Font size как на эталоне: 16-18px */
    font-family: inherit;
    background-color: #F8F8F8; /* Светло-серый фон как на эталоне */
    color: var(--text-dark);
    transition: background-color 0.2s ease;
    box-sizing: border-box; /* Учитываем padding в height */
    line-height: 50px; /* Вертикальное центрирование текста */
}

.form-input:focus {
    outline: none;
    background-color: var(--white);
}

.form-input::placeholder {
    color: #A0A0A0; /* Светло-серый placeholder как на эталоне */
}

/* КРИТИЧНО: Чекбоксы согласия - строго как на эталонном сайте */
.form-checkboxes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--white); /* Белый текст на темном фоне */
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--sky-blue);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.checkbox-label span {
    display: inline;
    line-height: 1.4;
}

/* Ссылки в чекбоксах - подчеркнутые и синие */
.checkbox-label a {
    color: #00BFFF; /* Яркий синий цвет как на эталоне */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: #4A90E2;
}

/* Стили для ошибки валидации чекбокса согласия */
.checkbox-label[style*="border"] {
    border: 2px solid #ff006e !important;
    border-radius: 4px;
    padding: 4px;
    transition: border-color 0.3s ease;
}

.consent-error-message {
    color: #ff006e;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

/* Разделитель между чекбоксами */
.form-checkboxes::after {
    content: '|';
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0 4px;
}

/* Убираем разделитель после последнего элемента */
.form-checkboxes:has(.checkbox-label:last-child)::after {
    display: none;
}

/* Альтернативный способ разделителя - через псевдоэлемент между элементами */
.checkbox-label:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-left: 12px;
    margin-right: 0;
}

/* КРИТИЧНО: Кнопка консультации - градиент с постоянной анимацией переливания */
/* КРИТИЧНО: Длина кнопки строго как на эталоне - без переноса текста */
.btn-consultation,
.btn-submit {
    height: 50px !important; /* Та же высота что и input поля */
    min-width: 240px !important; /* Минимальная ширина для текста "Хочу на консультацию" без переноса */
    max-width: 280px !important; /* Ограничиваем максимальную ширину чтобы не выходила за пределы формы */
    white-space: nowrap !important; /* Запрещаем перенос текста */
    background: linear-gradient(90deg, #D264F6 0%, #E071FF 30%, #6495ED 70%, #00BFFF 100%) !important;
    background-size: 200% 100% !important;
    color: var(--white) !important;
    border: none !important;
    padding: 0 24px !important; /* Убираем вертикальный padding, используем height */
    flex-shrink: 0 !important; /* Кнопка не сжимается */
    box-sizing: border-box !important; /* Учитываем padding в ширине */
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    line-height: 50px !important; /* Вертикальное центрирование текста */
    /* Постоянная анимация переливания градиента */
    animation: gradient-shift 3s ease-in-out infinite !important;
    /* Пульсирующее свечение для привлечения внимания */
    box-shadow: 0 4px 15px rgba(210, 100, 246, 0.4),
                0 0 20px rgba(0, 191, 255, 0.3) !important;
    animation: gradient-shift 3s ease-in-out infinite,
               pulse-glow 2s ease-in-out infinite !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Анимация движения градиента */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Анимация пульсирующего свечения */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(210, 100, 246, 0.4),
                    0 0 20px rgba(0, 191, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(210, 100, 246, 0.6),
                    0 0 30px rgba(0, 191, 255, 0.5);
    }
}

.btn-consultation:hover,
.btn-submit:hover {
    transform: translateY(-2px) !important;
    animation: gradient-shift 2s ease-in-out infinite,
               pulse-glow 1.5s ease-in-out infinite !important;
    box-shadow: 0 8px 30px rgba(210, 100, 246, 0.6),
                0 0 40px rgba(0, 191, 255, 0.5) !important;
}

.btn-consultation:active,
.btn-submit:active {
    transform: translateY(0) !important;
}

.hero-carousel-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--grey);
    background: var(--white);
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    border-color: var(--sky-blue);
    color: var(--sky-blue);
}

/* Старый селектор .hero-footnote - больше не используется, текст теперь внутри формы */
.hero-footnote {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.chatbot-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bright-blue);
    position: relative;
    flex-shrink: 0;
}

.chatbot-avatar::before {
    content: '😊';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.chatbot-bubble {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    max-width: 350px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.chatbot-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.chatbot-text {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.chatbot-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.chatbot-link {
    display: block;
    font-size: 14px;
    color: var(--sky-blue);
    text-decoration: none;
    margin-bottom: 15px;
}

.btn-ask-ai {
    width: 100%;
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ask-ai::before {
    content: '▶';
    font-size: 12px;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

.programs-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.programs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.program-item {
    background: var(--light-grey);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.program-item.active {
    background: var(--teal-blue);
    color: var(--white);
}

.program-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* КРИТИЧНО: Бейджик "ЗА 90 ДНЕЙ" накладывается поверх верхнего левого угла элемента программы */
.program-item .program-badge {
    position: absolute;
    top: -8px; /* Накладывается поверх верхнего края элемента */
    left: 20px; /* Отступ слева совпадает с padding элемента */
    background: #00C0D8; /* Бирюзовый фон как на эталоне */
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    z-index: 10; /* Бейджик поверх элемента */
    /* КРИТИЧНО: Нижний край бейджика совпадает с верхним краем элемента программы */
}

.program-item h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.programs-featured {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-blue);
}

.featured-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-description {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.6;
}

.featured-description a {
    color: var(--white);
    text-decoration: underline;
}

.featured-image {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
}

.featured-person {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-person::before {
    content: '👨';
    font-size: 120px;
    opacity: 0.5;
}

.btn-try-free {
    background: var(--white);
    color: var(--dark-blue);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-try-free:hover {
    transform: translateY(-2px);
}

/* Ecosystem Section */
.ecosystem {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ecosystem-card {
    border-radius: 16px;
    padding: 30px;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.ecosystem-card.white {
    background: var(--white);
}

.ecosystem-card.dark-blue {
    background: var(--dark-blue);
    color: var(--white);
}

.ecosystem-card.bright-blue {
    background: var(--bright-blue);
    color: var(--white);
}

.ecosystem-card.gradient-border {
    background: var(--white);
    border: 3px solid;
    border-image: linear-gradient(135deg, #9B59B6, #E91E63, #4A90E2) 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

.card-description {
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
}

.card-image {
    margin-bottom: 20px;
}

.ai-bot-visual {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(233, 30, 99, 0.2) 100%);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-bot-visual::before {
    content: '🤖';
    font-size: 80px;
    opacity: 0.5;
}

.teachers-preview {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.teacher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.card-icons .icon {
    font-size: 24px;
    opacity: 0.8;
}

.trainer-visual {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trainer-visual::before {
    content: '📚';
    font-size: 60px;
    opacity: 0.4;
}

.platform-mockup {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.mockup-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mockup-audio {
    margin-bottom: 20px;
}

.mockup-audio span {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.mockup-audio p {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-player button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.progress-item {
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 20px;
}

.progress-stats > div {
    text-align: center;
}

.stat-big {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.homework-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.homework-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
}

.homework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.stats-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.learning-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.learning-person {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-person::before {
    content: '📱';
    font-size: 100px;
    opacity: 0.3;
}

.btn-ask-ai-small {
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    align-self: flex-start;
}

/* Teachers Section */
.teachers {
    padding: 100px 0;
    background-color: var(--white);
}

.title-number {
    color: var(--sky-blue);
}

.teachers-carousel {
    position: relative;
    margin: 60px 0;
    overflow: hidden;
}

.teachers-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.teacher-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.teacher-image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.teacher-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    background: var(--light-grey);
    position: relative;
    overflow: hidden;
}

.teacher-image.teacher-1::before {
    content: '👩';
    font-size: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.teacher-image.teacher-2::before {
    content: '👩';
    font-size: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.teacher-image.teacher-3::before {
    content: '👨';
    font-size: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.teacher-image.teacher-4::before {
    content: '👩';
    font-size: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.teacher-shapes {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.teacher-image-wrapper.circular .teacher-image {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sky-blue);
    margin: 20px auto;
    position: relative;
    cursor: pointer;
}

.play-button::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 20px;
}

.btn-listen {
    width: 100%;
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.btn-listen:hover {
    background: var(--sky-blue-dark);
}

.teacher-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.teacher-info {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.teacher-details {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.teacher-details p {
    margin-bottom: 5px;
}

.teachers-footer {
    text-align: center;
    margin-top: 40px;
}

.teachers-footer p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.btn-choose-teacher {
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-choose-teacher:hover {
    background: var(--sky-blue-dark);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-arrow.left,
.carousel-arrow.right {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--grey);
    background: var(--white);
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-arrow.right {
    background: var(--dark-blue);
    color: var(--white);
    border-color: var(--dark-blue);
}

.carousel-arrow:hover {
    transform: scale(1.1);
}

/* Consultation Form Section - Premium Elegant Design */
.consultation-form-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.consultation-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.consultation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Элегантная декоративная панель вместо чатбота */
.consultation-decorative {
    flex: 0 0 400px;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decorative-pattern {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(155, 89, 182, 0.03) 10px,
            rgba(155, 89, 182, 0.03) 20px
        );
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(74, 144, 226, 0.15);
    backdrop-filter: blur(10px);
}

.decorative-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(74, 144, 226, 0.25);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.08) 0%, transparent 70%);
}

.decorative-accent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 50%;
}

/* Премиальный блок формы - компактный горизонтальный */
.consultation-form-block {
    width: 100%;
    max-width: 1000px;
    background: var(--dark-blue);
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(74, 144, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 144, 226, 0.15);
    position: relative;
    overflow: hidden;
}

.consultation-form-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-purple);
}

.consultation-header {
    margin-bottom: 30px;
    text-align: center;
}

.consultation-title {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.consultation-title .title-accent {
    font-weight: 600;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.consultation-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.1px;
}

.consultation-form {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.form-inputs-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Премиальные поля ввода - компактные горизонтальные */
.form-field-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.form-input-premium {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background: var(--white);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input-premium::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 300;
}

.form-input-premium:focus {
    outline: none;
    background: var(--white);
    border-color: var(--sky-blue);
    box-shadow: 
        0 0 0 3px rgba(74, 144, 226, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-input-premium:hover:not(:focus) {
    border-color: rgba(74, 144, 226, 0.4);
    background: var(--white);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input-premium:focus + .input-underline {
    width: 100%;
}

/* Премиальная кнопка - компактная */
.btn-signup-premium {
    position: relative;
    height: 52px;
    padding: 0 36px;
    background: var(--gradient-purple);
    background-size: 200% 100%;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(155, 89, 182, 0.3),
        0 0 0 1px rgba(233, 30, 99, 0.2);
    animation: gradient-shift-premium 3s ease-in-out infinite;
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes gradient-shift-premium {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-signup-premium:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(155, 89, 182, 0.4),
        0 0 0 1px rgba(233, 30, 99, 0.3);
}

.btn-signup-premium:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-signup-premium:hover .btn-shine {
    left: 100%;
}

.consultation-footer {
    margin-top: 20px;
    text-align: center;
}

.consultation-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.2px;
}

.form-checkboxes-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-ask-ai-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--grey);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.btn-ask-ai-fixed::before {
    content: '▶';
    color: var(--sky-blue);
    font-size: 12px;
}

/* Student Stories Section */
.student-stories {
    padding: 100px 0;
    background-color: var(--white);
}

.stories-layout {
    display: grid;
    grid-template-columns: 80px 1fr 2fr;
    gap: 40px;
    margin-top: 60px;
}

.stories-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.student-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-grey);
    border: 2px dashed var(--sky-blue);
    position: relative;
}

.student-avatar-small.avatar-1::before {
    content: '👩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.student-avatar-small.avatar-2::before {
    content: '👨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.student-avatar-small.avatar-3::before {
    content: '👩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.student-main-image {
    position: relative;
}

.student-photo {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.student-photo::before {
    content: '👩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    opacity: 0.3;
}

.student-achievement {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white);
    border: 2px solid var(--sky-blue);
    border-radius: 16px;
    padding: 20px;
    max-width: 400px;
}

.student-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.student-achievement-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.stories-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.story-card {
    background: var(--light-grey);
    border-radius: 16px;
    padding: 30px;
}

.story-card.highlight {
    background: var(--sky-blue-light);
}

.story-label {
    display: inline-block;
    background: var(--sky-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.story-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.story-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.teacher-info-card {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--grey);
}

.teacher-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
    position: relative;
}

.teacher-photo-small::before {
    content: '👩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.teacher-info-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.teacher-info-card p {
    font-size: 14px;
    color: var(--text-light);
}

.reviews-header {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--grey);
}

.reviews-header > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.review-ratings {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--sky-blue);
}

.rating-item .star {
    color: var(--sky-blue);
    font-size: 20px;
}

.rating-item a {
    color: var(--sky-blue);
    text-decoration: underline;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    background: var(--dark-blue);
    color: var(--white);
    border-color: var(--dark-blue);
    grid-column: span 1;
    grid-row: span 2;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-badge.base,
.pricing-badge.premium,
.pricing-badge.native,
.pricing-badge.group {
    background: var(--purple);
    color: var(--white);
}

.pricing-badge.popular-badge {
    background: var(--pink);
    color: var(--white);
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 10px;
    color: inherit;
}

.pricing-price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: inherit;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    font-size: 15px;
    margin-bottom: 12px;
    color: inherit;
    opacity: 0.9;
    line-height: 1.6;
}

.pricing-character {
    position: absolute;
    right: 30px;
    top: 30px;
    width: 150px;
    height: 150px;
}

.character-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    position: relative;
}

.character-3d::before {
    content: '🤖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.5;
}

.btn-ask-ai-on-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    color: var(--dark-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ask-ai-on-card::before {
    content: '▶';
    font-size: 10px;
    color: var(--sky-blue);
}

.consultation-cta {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: var(--light-grey);
    border-radius: 16px;
}

.consultation-cta p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-get-consultation {
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-get-consultation:hover {
    background: var(--sky-blue-dark);
}

/* Installments Section */
.installments {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.installments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.installment-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.percent-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 200px;
    font-weight: 800;
    color: rgba(74, 144, 226, 0.1);
    z-index: 0;
}

.installment-card .card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.installment-card .card-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.payment-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-grey);
    position: relative;
}

.payment-icon.icon-1 {
    background: #4CAF50;
}

.payment-icon.icon-2 {
    background: #FFC107;
}

.payment-icon.icon-3 {
    background: linear-gradient(135deg, #4CAF50 0%, #F44336 50%, #FFC107 100%);
}

.referral-example {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 15px;
    background: var(--light-grey);
    border-radius: 12px;
}

.referral-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sky-blue-light);
    position: relative;
    flex-shrink: 0;
}

.referral-avatar::before {
    content: '👩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
}

.referral-info {
    flex: 1;
}

.referral-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.referral-status {
    font-size: 14px;
    color: var(--text-light);
}

.referral-bonus {
    background: var(--purple);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
}

/* Personalization Section */
.personalization {
    padding: 100px 0;
    background-color: var(--white);
}

.personalization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.personalization-card {
    border-radius: 16px;
    padding: 40px;
}

.personalization-card:first-child {
    background: var(--white);
    border: 1px solid var(--grey);
}

.personalization-card.gradient-bg {
    background: linear-gradient(135deg, #FFE0E6 0%, #E3F2FD 100%);
}

.personalization-card .card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.personalization-card .card-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.personalization-card .card-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 30px;
}

.personalization-illustration {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.illustration-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-content::before {
    content: '🎮';
    font-size: 150px;
    opacity: 0.3;
}

/* Free Content Section */
.free-content {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.content-carousel {
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.content-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.content-card {
    min-width: 320px;
    border-radius: 20px;
    padding: 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-card.gradient-1 {
    background: linear-gradient(135deg, #0A7C7C 0%, #4A90E2 100%);
}

.content-card.gradient-2 {
    background: linear-gradient(135deg, #4A90E2 0%, #00B4D8 100%);
}

.content-card.gradient-3 {
    background: linear-gradient(135deg, #1E3A5F 0%, #9B59B6 100%);
}

.content-card.gradient-4 {
    background: linear-gradient(135deg, #9B59B6 0%, #E91E63 100%);
}

.content-card.gradient-5 {
    background: linear-gradient(135deg, #0A7C7C 0%, #4A90E2 100%);
}

.content-card.gradient-6 {
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    color: var(--text-dark);
}

.content-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.content-image.image-1::before {
    content: '📚';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.content-image.image-2::before {
    content: '📹';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.content-image.image-3::before {
    content: '❓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.content-image.image-4::before {
    content: '📖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.content-image.image-5::before {
    content: '🇬🇧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.content-image.image-6::before {
    content: '📝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.content-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.content-description {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
}

.cta-form {
    max-width: 600px;
    margin: 60px auto 0;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--grey);
    background: var(--white);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    border-color: var(--sky-blue);
    background: var(--sky-blue);
    color: var(--white);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-submit {
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--sky-blue-dark);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--light-grey);
}

.faq-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px 25px;
    display: none;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--grey);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--sky-blue);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--grey);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--sky-blue);
}

/* Popup Module Styles */
.popup-module {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.popup-content-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0;
    /* Строгое центрирование по вертикали и горизонтали */
    /* КРИТИЧНО: Начальное состояние для анимации - сразу в центре, но невидимо */
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Когда попап показывается, применяем финальное состояние */
.popup-module.popup-visible .popup-content-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: #333;
    background: #f0f0f0;
}

.popup-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: inherit;
}

.popup-content {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    color: inherit;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.popup-form-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.popup-form-button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.popup-form-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.popup-form-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .popup-content-wrapper {
        padding: 30px 20px;
        max-width: 95%;
        margin: 0;
        /* Сохраняем строгое центрирование на мобильных */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .popup-title {
        font-size: 24px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-main {
        grid-template-columns: 1fr;
    }
    
    .programs-layout {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stories-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        padding: 15px 20px;
        border-radius: 30px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .dropdown-menu {
        position: static;
        min-width: 100%;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-item-with-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .installments-grid {
        grid-template-columns: 1fr;
    }
    
    .personalization-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chatbot-widget {
        display: none;
    }
    
    .what-are-we-doing-content {
        flex-direction: column;
    }
    
    .what-are-we-doing-programs {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .what-are-we-doing-details {
        width: 100%;
    }
}

/* What Are We Doing Module Styles */
.what-are-we-doing {
    padding: 80px 0;
    background: #FFFFFF;
}

.what-are-we-doing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.what-are-we-doing-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #1F313E;
    line-height: 1.2;
}

.what-are-we-doing-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
}

.what-are-we-doing-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start; /* Выравнивание по верхней границе */
    /* КРИТИЧНО: Обе колонки должны начинаться с одной и той же высоты */
}

.what-are-we-doing-programs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Высота определяется содержимым */
    /* КРИТИЧНО: Убираем любые отступы сверху - бейджик должен быть прижат к верху */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.what-are-we-doing-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* КРИТИЧНО: Высота будет установлена через JavaScript равной высоте левого блока */
    position: relative;
    overflow: hidden; /* Скрываем контент, который выходит за границы */
    /* КРИТИЧНО: Выравнивание по верхней границе - правый блок начинается с той же высоты, что и левый */
    align-self: start;
    margin-top: 0 !important; /* КРИТИЧНО: Убираем любые отступы сверху */
    padding-top: 0 !important; /* КРИТИЧНО: Убираем любые отступы сверху */
}

.program-details {
    background: #E3F2FD;
    border-radius: 24px;
    padding: 40px;
    /* КРИТИЧНО: min-height убран - высота контролируется через JavaScript */
    display: flex;
    flex-direction: column;
}

.program-item {
    padding: 20px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-item:hover {
    border-color: #00C0D8;
    box-shadow: 0 4px 12px rgba(0, 192, 216, 0.1);
}

.program-item.active {
    background: #1F313E;
    border-color: #00C0D8;
    color: #FFFFFF;
}

.program-item.bestseller {
    border-color: #9C27B0;
}

/* Бейдж «ЗА 90 ДНЕЙ» над карточкой (как на эталоне) */
.program-item .program-badge {
    position: absolute;
    top: -8px;
    left: 20px;
    background: #00C0D8;
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    z-index: 10;
}

.program-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.what-are-we-doing-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.program-details {
    background: #E3F2FD;
    border-radius: 24px;
    /* КРИТИЧНО: padding-top убран - верхняя граница блока должна совпадать с левым блоком */
    padding: 0 40px 40px 40px; /* Только боковые и нижний отступы */
    display: flex;
    flex-direction: column;
    position: relative; /* Для абсолютного позиционирования iPhone frame */
    overflow: hidden; /* Скрываем телефон, который выходит за границы - телефон должен быть ВНУТРИ */
    box-sizing: border-box; /* Учитываем padding в размерах */
    border: none; /* Убираем любую рамку */
    outline: none; /* Убираем outline */
    /* КРИТИЧНО: Высота устанавливается через JavaScript - точно равна высоте левого блока */
    width: 100%;
    /* min-height убран - высота контролируется через JS */
}

/* Классы для скрытия/показа блоков деталей программ (для SEO) */
.program-details-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.program-details-active {
    position: static;
    left: auto;
    opacity: 1;
    /* КРИТИЧНО: height устанавливается через JavaScript - точно равна высоте левого блока */
    overflow: hidden; /* Скрываем контент, который выходит за границы */
    pointer-events: auto;
    /* КРИТИЧНО: Выравнивание по верхней границе - начинается с той же высоты, что и левый блок */
    align-self: flex-start;
    margin-top: 0 !important; /* КРИТИЧНО: Убираем любые отступы сверху - блок начинается строго с верха */
    padding-top: 0 !important; /* КРИТИЧНО: Убираем padding-top - верхняя граница блока должна совпадать с левым блоком */
    /* Padding-left, right, bottom уже установлены в базовом .program-details */
    outline: none; /* Убираем outline */
    /* КРИТИЧНО: Верхняя граница блока должна быть РОВНО на той же высоте, что и верхняя граница левого блока */
}

.program-details-content {
    display: flex;
    gap: 30px;
    flex: 1;
    position: relative; /* Для позиционирования телефона относительно контента */
    /* КРИТИЧНО: Добавляем padding-top к контенту, чтобы текст не прилипал к верху */
    padding-top: 40px;
}

.program-details-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* Текст под телефоном */
    /* Текст живет сам по себе, не зависит от телефона */
}

.program-details-button-wrapper {
    position: relative;
    display: flex;
    flex-direction: row; /* Горизонтальное расположение: кнопка слева, телефон справа */
    align-items: flex-start; /* Выравнивание по верхнему краю - кнопка вверху */
    justify-content: space-between; /* Кнопка слева, телефон справа, делим ширину пополам */
    gap: 20px; /* Отступ между кнопкой и телефоном */
}

.program-details-right {
    flex: 0 0 0; /* Убираем фиксированную ширину */
    position: relative;
    width: 0; /* Не занимает место в flex-контейнере */
    height: 0; /* Не занимает место в flex-контейнере */
}

.program-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.program-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1F313E;
    position: relative;
    display: inline-block;
}

/* Градиентная обводка для вкладок с hasBorder - заменяет обычную рамку, сохраняя форму */
.program-tab.has-border {
    padding: 2px; /* Толщина градиентной рамки */
    background: linear-gradient(135deg, #D020F5 0%, #B400FF 25%, #00A3FF 75%, #00FFFF 100%);
    border-radius: 20px;
}

.program-tab.has-border span {
    display: block;
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7); /* Фон как у обычной вкладки */
    color: #1F313E;
}

.program-details-heading {
    font-size: 36px;
    font-weight: 900;
    color: #1F313E;
    margin-bottom: 20px;
    line-height: 1.2;
}

.program-details-description {
    font-size: 16px;
    color: #666;
    line-height: 1.4; /* Уменьшаем с 1.6 до 1.4 для компактности */
    margin-bottom: 30px;
}

.program-details-button {
    display: inline-block;
    padding: 16px 24px; /* Компактный padding */
    background: #FFFFFF;
    color: #1F313E;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content; /* Ширина по содержимому, не растягивается */
    max-width: 100%; /* Убираем ограничение, чтобы текст не обрезался */
    white-space: nowrap; /* Текст в одну строку */
}

.program-details-button:hover {
    background: #1F313E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* iPhone Frame - внутри .program-details-left, кнопка слева, телефон справа */
.iphone-frame {
    position: relative; /* Относительное позиционирование внутри .program-details-button-wrapper */
    width: 280px;
    height: 280px;
    flex-shrink: 0; /* Не сжимается */
    align-self: flex-start; /* Телефон выровнен по верху */
    margin-top: -20px; /* Отрицательный отступ - поднимаем телефон ВЫШЕ */
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 40px; /* Скругляем все углы */
    padding: 0 8px 8px 8px; /* Минимальная верхняя рамка - без padding сверху для максимальной тонкости */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 10; /* Поверх текста */
    pointer-events: none; /* Не блокирует клики по контенту */
    /* Кнопка "Записаться" слева вверху, телефон справа - поднят ВЫШЕ с отрицательным margin-top */
}

.iphone-frame * {
    pointer-events: auto; /* Но внутри телефона клики работают */
}

/* Notch (вырез для камеры) - ультратонкий как у эталонного iPhone */
.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Еще более компактный notch */
    height: 6px; /* Ультратонкий notch - минимальная высота */
    background: #000000;
    border-radius: 0 0 6px 6px; /* Минимальное скругление */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px; /* Минимальное расстояние между элементами */
    padding: 0 8px; /* Минимальный padding */
}

.iphone-camera {
    width: 3px; /* Ультракомпактная камера для минимального notch */
    height: 3px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.iphone-speaker {
    width: 20px; /* Ультракомпактный динамик для минимального notch */
    height: 1px; /* Ультратонкий динамик - минимальная высота */
    background: #1a1a1a;
    border-radius: 0.5px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

/* Экран iPhone */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 32px;
    overflow: visible; /* Разрешаем выход контента за пределы экрана снизу */
    position: relative;
    display: flex;
    align-items: flex-start; /* Выравниваем контент по верху, чтобы белый фон был вверху */
    justify-content: center;
    padding-top: 10px; /* Небольшой отступ сверху вместо padding-bottom */
    box-sizing: border-box;
}

/* SMS Widget в стиле iPhone */
.sms-widget {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 15px 15px 15px 15px; /* Уменьшен верхний padding, чтобы белый фон был выше */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%; /* Адаптивная ширина внутри телефона */
    max-width: 240px; /* Ограничиваем максимальную ширину */
    min-height: 300px; /* Минимальная высота - белый фон опускается ниже */
    height: auto; /* Автоматическая высота для расширения */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Начинаем с верха, чтобы первое сообщение было вверху */
    overflow-y: auto; /* Скролл если сообщений много */
    overflow-x: hidden;
    margin: 0; /* Убираем margin-bottom, чтобы виджет был вверху */
    position: relative; /* Фиксируем позицию */
    box-sizing: border-box;
}

/* Кнопки iPhone (боковые) - видимые и правильно позиционированные */
.iphone-button {
    position: absolute;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 2px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2); /* Внешняя тень для видимости */
    z-index: 15; /* Поверх рамки телефона */
}

.iphone-button-volume-up {
    left: -4px; /* Немного выходит за рамку для видимости */
    top: 60px;
    width: 4px; /* Немного шире для видимости */
    height: 32px;
}

.iphone-button-volume-down {
    left: -4px; /* Немного выходит за рамку для видимости */
    top: 100px;
    width: 4px; /* Немного шире для видимости */
    height: 32px;
}

.iphone-button-power {
    right: -4px; /* Немного выходит за рамку для видимости */
    top: 50px;
    width: 4px; /* Немного шире для видимости */
    height: 48px;
}

/* Home Indicator (для новых iPhone) - скрыт, так как показываем только верхнюю половину */
.iphone-home-indicator {
    display: none;
}

.sms-message {
    margin-bottom: 4px; /* Уменьшено расстояние между сообщениями */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Первое сообщение показывается, но скрыто изначально через opacity в JS */

.sms-message:last-child {
    margin-bottom: 0;
}

/* Уменьшаем расстояние между временем первого сообщения и вторым сообщением - убираем лишнюю пустоту */
.sms-message:first-of-type .sms-time {
    margin-bottom: 0; /* Убираем отступ снизу для времени */
}

/* Второе сообщение прижимаем максимально близко к времени первого сообщения */
.sms-message:not(:first-of-type) {
    margin-top: 0; /* Убираем отступ сверху для второго сообщения */
}

/* Второе сообщение появляется на месте индикатора печатания - без лишней пустоты */
.sms-typing + .sms-message,
.sms-typing.hidden ~ .sms-message {
    margin-top: -28px; /* Отрицательный отступ, чтобы появиться точно на месте индикатора (высота 28px) */
}

/* Сообщение после формы ввода телефона - строго под формой, без отрицательных отступов */
.sms-message-after-form {
    margin-top: 0 !important; /* Убираем отрицательные отступы для сообщения после формы */
    margin-bottom: 4px; /* Стандартный отступ снизу */
}

.sms-text {
    background: #007AFF;
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    font-size: 15px;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative; /* Фиксируем позицию текста */
    display: inline-block;
}

.sms-time {
    font-size: 11px;
    color: #8E8E93;
    margin-top: 2px; /* Уменьшено расстояние от сообщения до времени */
    margin-bottom: 0; /* Убираем отступ снизу - сообщение будет сразу после времени */
    padding-right: 4px;
    font-weight: 400;
}

.sms-typing {
    margin: 0; /* Убираем отступы - на месте индикатора появится сообщение */
    display: flex;
    justify-content: flex-end;
    padding-right: 4px;
    opacity: 0; /* Скрыто по умолчанию, показывается через JS */
    animation: fadeIn 0.3s ease-in forwards;
    flex-shrink: 0; /* Не сжимается */
    min-height: 28px; /* Компактная высота как на iPhone */
    max-height: 28px; /* Ограничиваем высоту */
}

.sms-typing.visible {
    opacity: 1;
}

.sms-typing.hidden {
    opacity: 0;
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.typing-indicator {
    display: flex;
    gap: 4px;
    background: #E5E5EA;
    padding: 6px 10px; /* Уменьшено padding для компактности как на iPhone */
    border-radius: 18px;
    align-items: center; /* Выравнивание по центру */
    height: 28px; /* Фиксированная высота как на iPhone */
}

/* Кнопка "Хочу" в стиле SMS сообщения - компактная */
.sms-want-button {
    background: #007AFF; /* Такой же фон как у SMS сообщений */
    color: #FFFFFF;
    padding: 6px 12px; /* Минимальные отступы для компактности */
    border-radius: 18px 18px 4px 18px; /* Такой же border-radius как у SMS сообщений */
    font-size: 13px; /* Немного меньше шрифт */
    font-weight: 500; /* Обычный вес шрифта как у сообщений */
    text-align: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Такая же тень как у сообщений */
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin: 4px 0; /* Минимальный отступ */
    align-self: flex-end;
    width: fit-content; /* Ширина по содержимому */
    min-width: 50px; /* Минимальная ширина */
    max-width: 70px; /* Ограничиваем максимальную ширину */
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    display: inline-block; /* Как сообщение */
    line-height: 1.3; /* Компактная высота строки */
}

.sms-want-button:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.sms-want-button:active {
    transform: scale(0.98);
    opacity: 0.8;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Форма ввода телефона */
.sms-phone-form {
    margin-top: 0; /* Убран отступ сверху, форма прижата к сообщению */
    margin-bottom: 16px; /* Увеличен отступ снизу, чтобы сообщение не накладывалось на форму */
    align-self: flex-end;
    width: 100%;
    max-width: 200px;
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

.sms-phone-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #007AFF;
    border-radius: 12px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FFFFFF;
    color: #000000;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sms-phone-input:focus {
    border-color: #0051D5;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.sms-phone-input::placeholder {
    color: #8E8E93;
}

/* Компактная кнопка "Да" */
.sms-yes-button {
    background: #007AFF;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin: 8px 0;
    align-self: flex-end;
    min-width: 50px;
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

.sms-yes-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.sms-yes-button:active {
    transform: scale(0.98);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #8E8E93;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .what-are-we-doing-title {
        font-size: 32px;
    }
    
    .what-are-we-doing-subtitle {
        font-size: 16px;
    }
    
    .what-are-we-doing-content {
        flex-direction: column;
    }
    
    .what-are-we-doing-programs {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .what-are-we-doing-details {
        width: 100%;
    }
    
    .program-details-heading {
        font-size: 28px;
    }
}

/* Strategy System Result Module Styles */
.strategy-system-result {
    padding: 80px 0;
    background: #FFFFFF;
}

.strategy-system-result-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.strategy-system-result-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #1F313E;
    line-height: 1.2;
}

.strategy-system-result-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* Как на эталоне: колонки на одном уровне по верху */
.strategy-system-result-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.strategy-system-result-services {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible; /* бейдж над карточкой не обрезать */
}

/* Обёртка: бейдж сверху, карточка снизу — бейдж визуально над блоком */
.service-item-wrapper {
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.strategy-system-result-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.service-item {
    padding: 20px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-item:hover {
    border-color: #00C0D8;
    box-shadow: 0 4px 12px rgba(0, 192, 216, 0.1);
}

.service-item.active {
    background: #1F313E;
    border-color: #9C27B0;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
}

/* Бейдж над карточкой: вне карточки, нависает над ней за счёт отрицательного margin */
.service-item-wrapper .service-badge {
    display: inline-block;
    margin-bottom: -6px; /* наложение на верх карточки */
    margin-left: 20px;
    padding: 6px 14px;
    background: #00C0D8;
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    z-index: 2;
    position: relative;
}

.service-item-wrapper:has(.service-item.active) .service-badge {
    background: #00C0D8;
}

/* Если бейдж есть — сдвигаем текст в карточке вниз, чтобы не под бейджем */
.service-item.has-badge {
    padding-top: 24px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

/* Правый блок без верхнего padding — на одном уровне с левой колонкой (как на эталоне) */
.service-details {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 24px;
    padding: 0 40px 40px 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* КРИТИЧНО ДЛЯ SEO: Все блоки видны в исходном HTML для роботов поисковых систем */
/* JavaScript скрывает неактивные блоки через класс service-details-hidden */
/* Это гарантирует индексацию всего контента Яндексом и Google */
.service-details-active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    position: relative;
}

.service-details-hidden {
    /* КРИТИЧНО ДЛЯ SEO: Используем визуальное скрытие, но контент остается в DOM */
    /* Роботы поисковых систем видят весь контент в исходном HTML */
    /* Для пользователей блок визуально скрыт, но доступен для индексации */
    display: none !important;
    /* Альтернативный метод для SEO (если нужен): */
    /* position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    margin: 0;
    padding: 0;
    border: 0; */
}

/* КРИТИЧНО: В исходном HTML все блоки видны (display: flex) */
/* JavaScript добавляет класс service-details-hidden для неактивных блоков */
/* Это гарантирует, что роботы видят весь контент при индексации */

.service-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1F313E;
    position: relative;
    display: inline-block;
}

.service-tag.highlighted {
    padding: 2px;
    background: linear-gradient(135deg, #D020F5 0%, #B400FF 25%, #00A3FF 75%, #00FFFF 100%);
    border-radius: 20px;
}

.service-tag.highlighted span {
    display: block;
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    color: #1F313E;
}

.service-details-heading {
    font-size: 36px;
    font-weight: 900;
    color: #1F313E;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-details-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.service-details-button-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.service-details-button {
    display: inline-block;
    padding: 16px 24px;
    background: #FFFFFF;
    color: #1F313E;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
    max-width: 200px;
}

.service-details-button:hover {
    background: #1F313E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sms-button {
    margin-top: 10px;
}

.sms-cta-button {
    background: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sms-cta-button:hover {
    background: #357ABD;
    transform: scale(1.02);
}

.sms-cta-button:active {
    transform: scale(0.98);
}

/* Сообщение с кнопкой */
.sms-button-message {
    position: relative;
}

.sms-button-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Анимация отпечатка пальца */
.sms-fingerprint-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 1;
}

.sms-fingerprint-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 2.38 1.19 4.47 3 5.74V17c0 2.76 2.24 5 5 5s5-2.24 5-5v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.87-3.13-7-7-7zm-1 11.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm2 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm1-4.5c-.83 0-1.5-.67-1.5-1.5S13.17 6.5 14 6.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

@keyframes fingerprintPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Адаптивность для Strategy System Result */
@media (max-width: 768px) {
    .strategy-system-result-content {
        flex-direction: column;
    }

    .strategy-system-result-services {
        width: 100%;
        margin-bottom: 30px;
    }

    .strategy-system-result-details {
        width: 100%;
    }

    .strategy-system-result-title {
        font-size: 32px;
    }

    .strategy-system-result-subtitle {
        font-size: 16px;
    }

    .service-details-heading {
        font-size: 28px;
    }
    
    .service-details-description {
        font-size: 14px;
    }
    
    .service-details-button-wrapper {
        flex-direction: column;
    }
    
    .iphone-frame {
        width: 200px;
        height: 200px;
    }
}

/* ============================================
   TESTIMONIALS MODULE - TILDA STYLE
   ============================================ */
.testimonials {
    padding: 80px 0;
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonials-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 20px 0;
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card.highlighted {
    background: linear-gradient(135deg, #4A90E2 0%, #00B4D8 100%);
    color: var(--white);
    transform: scale(1.05);
}

.testimonial-card.highlighted .testimonial-text,
.testimonial-card.highlighted .testimonial-name,
.testimonial-card.highlighted .testimonial-role,
.testimonial-card.highlighted .testimonial-company {
    color: var(--white);
}

.testimonial-rating {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 20px;
}

.testimonial-card.highlighted .testimonial-rating {
    color: var(--white);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-grey);
    border-radius: 50%;
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.testimonial-company {
    font-size: 14px;
    font-weight: 600;
    color: var(--sky-blue);
}

.testimonials-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--grey);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonials-arrow.prev {
    left: -25px;
}

.testimonials-arrow.next {
    right: -25px;
}

.testimonials-arrow:hover {
    background: var(--sky-blue);
    color: var(--white);
    border-color: var(--sky-blue);
}

.testimonials-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonials-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dot.active {
    background: var(--sky-blue);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   FEATURES MODULE - TILDA STYLE
   ============================================ */
.features {
    padding: 80px 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.features-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--sky-blue);
}

.feature-card.highlighted {
    background: linear-gradient(135deg, #4A90E2 0%, #00B4D8 100%);
    color: var(--white);
    transform: scale(1.05);
}

.feature-card.highlighted .feature-title,
.feature-card.highlighted .feature-description {
    color: var(--white);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ============================================
   TIMELINE MODULE - TILDA STYLE
   ============================================ */
.timeline {
    padding: 80px 0;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.timeline-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.timeline-steps {
    display: flex;
    position: relative;
}

.timeline-steps.timeline-horizontal {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

.timeline-steps.timeline-vertical {
    flex-direction: column;
    gap: 60px;
}

.timeline-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.timeline-step-number {
    font-size: 72px;
    font-weight: 900;
    color: var(--sky-blue);
    opacity: 0.2;
    margin-bottom: 10px;
    line-height: 1;
}

.timeline-step-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.timeline-step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.timeline-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

.timeline-connector {
    position: absolute;
    top: 50px;
    left: 100%;
    width: 100%;
    height: 2px;
    transform: translateX(-50%);
}

.timeline-steps.timeline-vertical .timeline-connector {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 60px;
    transform: translateX(-50%);
}

/* ============================================
   GALLERY MODULE - TILDA STYLE
   ============================================ */
.gallery {
    padding: 80px 0;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.gallery-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 12px 24px;
    border: 2px solid var(--grey);
    background: var(--white);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.gallery-filter:hover {
    border-color: var(--sky-blue);
    color: var(--sky-blue);
}

.gallery-filter.active {
    background: var(--sky-blue);
    border-color: var(--sky-blue);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.gallery-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-category {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.gallery-item-content {
    padding: 25px;
}

.gallery-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.gallery-item-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.gallery-lightbox-close:hover {
    transform: rotate(90deg);
}

.gallery-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.gallery-lightbox-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-content {
    margin-top: 20px;
    text-align: center;
    color: var(--white);
}

.gallery-lightbox-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-lightbox-description {
    font-size: 16px;
    opacity: 0.9;
}

/* Адаптивность для новых модулей */
@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 15px);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .gallery-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .testimonials-title,
    .features-title,
    .timeline-title,
    .gallery-title {
        font-size: 36px;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .testimonials-arrow.prev {
        left: 10px;
    }
    
    .testimonials-arrow.next {
        right: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .timeline-steps.timeline-horizontal {
        flex-direction: column;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-item.featured {
        grid-column: span 1;
    }
}

/* Text Block Module */
.text-block {
    width: 100%;
    position: relative;
}

.text-block-content {
    width: 100%;
    line-height: 1.8;
}

.text-block-content p {
    margin-bottom: 1em;
}

.text-block-content p:last-child {
    margin-bottom: 0;
}

.text-block-content h1,
.text-block-content h2,
.text-block-content h3,
.text-block-content h4,
.text-block-content h5,
.text-block-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.text-block-content h1:first-child,
.text-block-content h2:first-child,
.text-block-content h3:first-child,
.text-block-content h4:first-child,
.text-block-content h5:first-child,
.text-block-content h6:first-child {
    margin-top: 0;
}

.text-block-content ul,
.text-block-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.text-block-content a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-block-content a:hover {
    color: var(--sky-blue-dark);
    text-decoration: underline;
}

/* Image Block Module */
.image-block {
    width: 100%;
    position: relative;
}

.image-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.image-block-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-block-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-caption {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
}

/* Columns Block Module */
.columns-block {
    width: 100%;
    position: relative;
}

.columns-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.columns-grid {
    display: grid;
    gap: 30px;
}

.column-item {
    width: 100%;
    padding: 30px;
    background: #F8F9FA;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E9ECEF;
}

.column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--sky-blue);
}

.column-item p {
    margin-bottom: 1em;
}

.column-item p:last-child {
    margin-bottom: 0;
}

.column-item h1,
.column-item h2,
.column-item h3,
.column-item h4,
.column-item h5,
.column-item h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.column-item h1:first-child,
.column-item h2:first-child,
.column-item h3:first-child,
.column-item h4:first-child,
.column-item h5:first-child,
.column-item h6:first-child {
    margin-top: 0;
}

.column-item ul,
.column-item ol {
    margin: 1em 0;
    padding-left: 2em;
}

.column-item a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.column-item a:hover {
    color: var(--sky-blue-dark);
    text-decoration: underline;
}

/* Responsive для новых модулей */
@media (max-width: 768px) {
    .columns-grid {
        grid-template-columns: 1fr !important;
    }
    
    .text-block {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .image-block-container {
        padding: 0 15px;
    }
    
    .columns-container {
        padding: 0 15px;
    }
}

/* Адаптивные стили для Consultation Form - Premium Design */
@media (max-width: 1024px) {
    .consultation-form-block {
        padding: 40px 40px;
        max-width: 900px;
    }
    
    .consultation-title {
        font-size: 28px;
    }
    
    .consultation-form {
        gap: 14px;
    }
    
    .form-inputs-row {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .consultation-form-section {
        padding: 80px 0;
    }
    
    .consultation-form-block {
        width: 100%;
        padding: 35px 30px;
        border-radius: 20px;
    }
    
    .consultation-title {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .consultation-subtitle {
        font-size: 15px;
    }
    
    .consultation-form {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .form-inputs-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-input-premium {
        height: 50px;
        font-size: 15px;
    }
    
    .btn-signup-premium {
        height: 50px;
        font-size: 15px;
        padding: 0 32px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .consultation-form-section {
        padding: 60px 0;
    }
    
    .consultation-form-block {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .consultation-title {
        font-size: 24px;
    }
    
    .consultation-subtitle {
        font-size: 14px;
    }
    
    .form-inputs-row {
        gap: 14px;
    }
    
    .form-input-premium {
        height: 48px;
        padding: 0 16px;
        font-size: 14px;
    }
    
    .btn-signup-premium {
        height: 48px;
        font-size: 14px;
        padding: 0 24px;
    }
    
    .consultation-note {
        font-size: 11px;
    }
}

/* Callback Widget Styles */
.callback-widget {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: callbackFadeIn 0.3s ease-out;
}

.callback-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.callback-widget-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: callbackSlideUp 0.4s ease-out;
    z-index: 10001;
    box-sizing: border-box;
}

.callback-widget-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.7;
}

.callback-widget-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.callback-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    text-align: center;
}

.callback-description {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 30px 0;
    text-align: center;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.callback-input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.callback-phone-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.callback-phone-input:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1);
}

.callback-phone-input::placeholder {
    color: #999;
}

.callback-input-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.callback-cta-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff006e 0%, #ff4da6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
    box-sizing: border-box;
    max-width: 100%;
}

.callback-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

.callback-cta-button:active {
    transform: translateY(0);
}

.callback-cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.callback-trust-text {
    font-size: 13px;
    color: #b0b0b0;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.callback-trust-text #callback-timer {
    color: #ff006e;
    font-weight: 600;
}

/* Callback Widget Form Overrides */
.callback-widget-content .deloform-form-wrapper,
.callback-widget-content .deloform-custom-form {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.callback-widget-content .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.callback-widget-content .form-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 52px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1a1a1a !important;
    transition: all 0.3s !important;
    margin: 0 !important;
    flex-shrink: 1 !important;
}

.callback-widget-content .form-input:focus {
    outline: none !important;
    border-color: #ff006e !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1) !important;
}

.callback-widget-content .form-input::placeholder {
    color: #999 !important;
}

.callback-widget-content .btn-submit,
.callback-widget-content .btn-consultation {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 52px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4da6 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3) !important;
    transition: all 0.3s !important;
    margin: 0 !important;
    flex-shrink: 1 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.callback-widget-content .btn-submit:hover,
.callback-widget-content .btn-consultation:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4) !important;
}

.callback-widget-content .btn-submit:active,
.callback-widget-content .btn-consultation:active {
    transform: translateY(0) !important;
}

.callback-widget-content .form-checkboxes {
    display: none !important;
}

.callback-widget-content .checkbox-label {
    color: #e0e0e0 !important;
    font-size: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.callback-widget-content .checkbox-label a {
    color: #ff006e !important;
}

.callback-widget-content .form-messages {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 15px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .callback-widget-content {
        padding: 30px 20px !important;
        max-width: 95% !important;
    }
    
    .callback-widget-content .form-input,
    .callback-widget-content .btn-submit,
    .callback-widget-content .btn-consultation {
        font-size: 16px !important;
        padding: 16px 18px !important;
    }
}

/* Success State */
#callback-success-container {
    text-align: center;
}

.callback-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: callbackBounce 0.6s ease-out;
}

.callback-success-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.callback-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.callback-countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ff006e;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 110, 0.1);
    position: relative;
}

.callback-countdown-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #ff006e;
    animation: callbackRotate 1s linear infinite;
}

#callback-countdown-number {
    font-size: 36px;
    font-weight: 700;
    color: #ff006e;
    z-index: 1;
}

.callback-countdown-text {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

/* Animations */
@keyframes callbackFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes callbackSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes callbackBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes callbackRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Плавающая кнопка с телефоном (справа снизу) */
.callback-floating-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4da6 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.4) !important;
    transition: all 0.3s ease !important;
    animation: callbackPhonePulse 2s ease-in-out infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.callback-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 110, 0.6);
}

.callback-phone-icon {
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.callback-phone-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: callbackPhoneRing 2s ease-in-out infinite;
}

@keyframes callbackPhonePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes callbackPhoneRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .callback-floating-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .callback-phone-icon {
        width: 24px;
        height: 24px;
    }
    
    .callback-widget-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .callback-title {
        font-size: 24px;
    }
    
    .callback-description {
        font-size: 14px;
    }
    
    .callback-phone-input {
        font-size: 16px;
        padding: 16px;
    }
    
    .callback-cta-button {
        padding: 16px;
        font-size: 16px;
    }
}

/* Discuss Project Module Styles - Beautiful Design like softmg.ru */
.discuss-project {
    background: #F8F9FA;
    padding: 80px 20px;
}

.discuss-project-container {
    max-width: 1000px;
    margin: 0 auto;
}

.discuss-project-header {
    text-align: center;
    margin-bottom: 40px;
}

.discuss-project-title {
    font-size: 42px;
    font-weight: 700;
    color: #1F313E;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.discuss-project-subtitle {
    font-size: 18px;
    color: #6C757D;
    margin: 0;
    line-height: 1.5;
}

/* Task Chips */
.task-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
}

.task-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1F313E;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Inter, sans-serif;
}

.task-chip:hover {
    border-color: #6366F1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.task-chip[aria-pressed="true"] {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-color: #6366F1;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.chip-icon {
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.task-chip[aria-pressed="true"] .chip-icon {
    transform: rotate(45deg);
}

/* Form Layout - Top row: Textarea + File, Bottom row: 3 fields + Button */
.discuss-form-top-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 16px;
}

.discuss-textarea-wrapper {
    display: flex;
    flex-direction: column;
}

.discuss-input,
.discuss-textarea {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #1F313E;
    transition: all 0.3s ease;
    font-family: Inter, sans-serif;
    width: 100%;
}

.discuss-input:focus,
.discuss-textarea:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.discuss-input::placeholder,
.discuss-textarea::placeholder {
    color: #9CA3AF;
}

.discuss-textarea {
    min-height: 160px;
    resize: none;
    max-width: 100%;
    flex: 1;
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 8px;
}

/* File Upload */
.discuss-file-upload {
    display: flex;
    flex-direction: column;
}

.file-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 2px dashed #E0E0E0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 160px;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #6366F1;
    background: #F8F9FF;
}

.file-icon-circle {
    width: 48px;
    height: 48px;
    background: #F8F9FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #6366F1;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F313E;
}

.file-hint {
    font-size: 12px;
    color: #9CA3AF;
}

.file-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E8F5E9;
    border: 1px solid #4CAF50;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
}

.file-name {
    font-size: 14px;
    color: #2E7D32;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    background: none;
    border: none;
    color: #2E7D32;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.file-remove:hover {
    color: #D32F2F;
}

/* Submit Button */
.discuss-form-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.discuss-form-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.discuss-submit-btn {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Inter, sans-serif;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
    height: 56px;
}

.discuss-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.discuss-submit-btn:active {
    transform: translateY(0);
}

/* Checkboxes */
.discuss-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.discuss-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #6C757D;
    cursor: pointer;
}

.discuss-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366F1;
    flex-shrink: 0;
}

.checkbox-text a {
    color: #6366F1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #8B5CF6;
    text-decoration: underline;
}

/* Error states */
.discuss-input.error,
.discuss-textarea.error {
    border-color: #EF4444;
    background: #FEF2F2;
}

.discuss-checkbox-label.error {
    color: #EF4444;
}

/* Success message */
.discuss-form .form-messages.success {
    background: #D1FAE5;
    color: #065F46;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .discuss-project {
        padding: 60px 20px;
    }
    
    .discuss-project-title {
        font-size: 32px;
    }
    
    .discuss-project-subtitle {
        font-size: 16px;
    }
    
    .task-chips {
        justify-content: flex-start;
    }
    
    .discuss-form-top-row {
        grid-template-columns: 1fr;
    }
    
    .discuss-form-bottom-row {
        grid-template-columns: 1fr;
    }
    
    .discuss-form-fields {
        grid-template-columns: 1fr;
    }
    
    .file-upload-label {
        min-height: 120px;
        padding: 15px;
    }
    
    .file-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .discuss-submit-btn {
        width: 100%;
    }
}

/* File Upload Styles */
.file-upload-wrapper {
    grid-column: 1 / -1;
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 2px dashed #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: #6366F1;
    background: #F8F9FF;
}

.file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.file-text {
    font-size: 16px;
    font-weight: 500;
    color: #1F313E;
    flex-grow: 1;
}

.file-hint {
    font-size: 14px;
    color: #9CA3AF;
}

.file-name {
    margin-top: 8px;
    padding: 8px 12px;
    background: #E8F5E9;
    border-radius: 8px;
    font-size: 14px;
    color: #2E7D32;
}

.file-input:focus + .file-label {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

.file-label.has-file {
    border-color: #6366F1;
    background: #F8F9FF;
}

/* File upload error state */
.file-upload-wrapper.error .file-label {
    border-color: #EF4444;
    background: #FEF2F2;
}

/* Responsive file upload */
@media (max-width: 768px) {
    .file-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-hint {
        font-size: 12px;
    }
}

/* New Footer Styles - SEO Optimized */
.footer-new {
    background: #1F313E;
    color: #FFFFFF;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Contacts Column */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.footer-logo-icon {
    color: #6366F1;
    font-size: 20px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-style: normal;
}

.footer-phone,
.footer-email {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: #6366F1;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #6366F1;
    border-color: #6366F1;
}

/* Footer Menu Columns */
.footer-menu-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-menu-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #FFFFFF !important;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #FFFFFF;
}

/* Переопределяем стили nav-link для футера */
.footer-new .nav-link,
.footer-new .footer-menu a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-new .nav-link:hover,
.footer-new .footer-menu a:hover {
    color: #FFFFFF !important;
}

/* Светлый текст для всех элементов футера */
.footer-new .footer-logo-text,
.footer-new .footer-phone,
.footer-new .footer-email,
.footer-new .footer-cta-button,
.footer-new .footer-menu-title,
.footer-new .footer-company-ids p,
.footer-new .footer-addresses p,
.footer-new .footer-copyright p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.footer-new .footer-cta-button {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%) !important;
    color: #FFFFFF !important;
}

/* Footer CTA Column */
.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.footer-company-ids {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-company-ids p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* Footer Bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-addresses,
.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-addresses p,
.footer-copyright p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-contacts {
        grid-column: 1 / -1;
    }
    
    .footer-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-new {
        padding: 40px 20px 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-social {
        flex-wrap: wrap;
    }
}

/* Text Block Module Styles */
.text-block-module {
    padding: 80px 20px;
    background: #FFFFFF;
}

.text-block-container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-block-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.3;
}

.text-block-content {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
}

.text-block-content p {
    margin-bottom: 20px;
}

.text-block-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .text-block-module {
        padding: 60px 20px;
    }
    
    .text-block-title {
        font-size: 32px;
    }
    
    .text-block-content {
        font-size: 16px;
    }
}

/* Services Grid Module Styles */
.services-grid-module {
    padding: 80px 20px;
    background: #FFFFFF;
}

.services-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.services-grid-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #F5F5F5;
    border-radius: 16px;
    padding: 30px 24px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 16px;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.service-card-icon {
    font-size: 32px;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.service-card:hover .service-card-icon svg {
    color: #FFFFFF;
}

.service-card-highlight .service-card-icon svg {
    color: #FFFFFF;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
}

.service-card-description {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.3;
    position: relative;
    z-index: 3;
    transition: color 0.3s ease;
    text-align: right;
    flex: 1;
    opacity: 0.8;
}

.service-card:hover .service-card-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
    color: #FFFFFF;
}

.service-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    color: #FFFFFF;
}

.service-card:hover .service-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Highlighted card (purple gradient always visible) */
.service-card-highlight {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
}

.service-card-highlight::before {
    opacity: 0;
}

.service-card-highlight .service-card-title {
    color: #FFFFFF;
}

.service-card-highlight .service-card-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-card-highlight .service-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-card-highlight:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-module {
        padding: 60px 20px;
    }
    
    .services-grid-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
