/* =========================================
   1. ПЕРЕМЕННЫЕ (THEME VARIABLES)
   ========================================= */
:root {
    /* Основные цвета */
    --bg-body: #FDFBF7;       /* Теплый кремовый фон */
    --bg-white: #FFFFFF;      /* Чистый белый для карточек */
    --text-main: #2C2C2C;     /* Мягкий черный (не #000) */
    --text-muted: #666666;    /* Серый для описаний */
    
    /* Акцентные цвета бренда */
    --color-primary: #D86C95; /* Розовый (кнопки, важные элементы) */
    --color-secondary: #7CB342; /* Зеленый (успех, природа, иконки) */
    --color-accent: #FFB74D;  /* Оранжевый/Желтый (для бейджей) */
    
    /* Границы и тени */
    --border-color: #2C2C2C;  /* Цвет обводки */
    --shadow-hard: 4px 4px 0px var(--border-color); /* "Комиксная" тень */
    --shadow-hover: 6px 6px 0px var(--border-color);
    
    /* Радиусы скругления */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;        /* Для кнопок-таблеток */
    
    /* Шрифты */
    --font-main: 'Arial', sans-serif; /* Рекомендую подключить 'Nunito' или 'Quicksand' */
}

/* =========================================
   2. БАЗОВЫЕ НАСТРОЙКИ (RESET & BASE)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); } /* Адаптивный размер */
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. КОМПОНЕНТЫ (UI KIT)
   ========================================= */

/* --- КНОПКИ --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    gap: 10px;
}

/* Основная кнопка (Розовая) */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
    background-color: #c95d86;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border-color);
}

/* Вторичная кнопка (Белая/Контурная) */
.btn-outline {
    background-color: var(--bg-white);
    color: var(--text-main);
    box-shadow: var(--shadow-hard);
}

.btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
    background-color: #f9f9f9;
}

/* Маленькая кнопка (для хедера) */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* --- КАРТОЧКИ --- */
.card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-hard);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* --- БЕЙДЖИ И ТЕГИ --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.1);
}

.badge-pink { background: #FCE4EC; color: #880E4F; }
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-yellow { background: #FFF8E1; color: #F57F17; }

/* --- ФОРМЫ (INPUTS) --- */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    background: var(--bg-white);
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 108, 149, 0.1);
}

/* =========================================
   4. УТИЛИТЫ (HELPERS)
   ========================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Скрытие элементов */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* =========================================
   5. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --shadow-hard: 3px 3px 0px var(--border-color);
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .btn {
        width: 100%; /* На мобилках кнопки во всю ширину */
        justify-content: center;
    }
    
    .card {
        padding: 20px;
    }
}

/* --- ВЕРХНЯЯ ПОЛОСА (СТАТИЧНАЯ) --- */
.top-bar {
    background-color: #FDFBF7; /* Цвет фона сайта */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    position: relative;
    z-index: 10;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vision-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
    transition: color 0.2s;
}
.vision-link:hover { color: var(--color-primary); }

/* --- ОСНОВНОЙ ХЕДЕР (STICKY) --- */
.main-header-wrapper {
    position: sticky !important; /* Принудительная липкость */
    top: 0 !important;           /* Прилипать к самому верху */
    z-index: 9999 !important;    /* Поверх ВСЕХ секций и модалок */
    background-color: #FDFBF7 !important; /* Сплошной фон обязателен */
    width: 100% !important;      /* Не используем 100vw здесь */
    margin: 0 !important;        /* Убираем любые отступы */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    isolation: isolate;          /* Создает новый контекст наложения */
}

/* Дополнительно: убедимся, что сам тег header не мешает */
header {

    z-index: auto !important;
    width: 100% !important;
    margin: 0 !important;
}

.main-header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.logo-text h2 {
    font-size: 20px;
    margin: 0;
    line-height: 1.1;
    color: #2C2C2C;
    font-weight: 800;
}
.logo-text span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    font-weight: 600;
}

/* Меню Wayfinder */
.nav-menu ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-menu a {
    font-weight: 600;
    font-size: 15px;
    color: #2C2C2C;
    position: relative;
    padding: 5px 0;
}
/* Эффект подчеркивания при наведении */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

/* Контакты и кнопка */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.contact-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.phone-link {
    font-size: 18px;
    font-weight: 800;
    color: #2C2C2C;
    text-decoration: none;
}
.work-time {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.btn-cta {
    background-color: #7CB342; /* Зеленый как на макете кнопки */
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid #2C2C2C;
    box-shadow: 3px 3px 0 #2C2C2C;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn-cta:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #2C2C2C;
}
.btn-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #2C2C2C;
}

/* --- МОБИЛЬНЫЙ АДАПТИВ (Базовый) --- */
@media (max-width: 992px) {
    .nav-menu { display: none; } /* Пока скроем, нужен бургер */
    .contact-block { display: none; }
    .logo-text span { display: none; }
}

/* --- СТИЛИ ПОПАПА (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    border: 3px solid #2C2C2C;
    box-shadow: 8px 8px 0 #2C2C2C;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-window { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 24px; cursor: pointer;
    color: #666;
}
.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.form-input:focus { border-color: var(--color-primary); outline: none; }
.btn-submit {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: 2px solid #2C2C2C;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #2C2C2C;
    margin-top: 10px;
}

/* =========================================
   ИСПРАВЛЕННЫЙ STICKY HEADER
   ========================================= */

/* Верхняя полоса НЕ должна быть sticky */
.top-bar {
    background-color: #FDFBF7;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    position: relative;
    z-index: 10;
}

/* Обертка хедера - ЕДИНСТВЕННЫЙ липкий элемент */
.main-header-wrapper {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important; /* Максимальный приоритет */
    background-color: #FDFBF7 !important; /* Сплошной фон обязателен */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    isolation: isolate; /* Новый контекст наложения */
    transform: translateZ(0); /* Аппаратное ускорение для стабильности */
}

/* Сам тег header должен быть нейтральным */
header {
    position: static !important; /* Никакого relative или sticky здесь! */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: auto !important;
}

/* =========================================
   ИСПРАВЛЕННЫЙ FIX ДЛЯ СЕКЦИЙ (БЕЗ КОНФЛИКТОВ)
   ========================================= */

/* Применяем растягивание ТОЛЬКО к section, исключая header/footer */
section:not(.top-bar):not(.site-footer) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Контейнеры внутри секций */
section .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Футер обычный */
.site-footer, footer {
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Глобальный сброс скролла */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================
   HERO SECTION - ИСПРАВЛЕННЫЙ ВАРИАНТ
   ========================================= */

.hero-section {
    padding: 60px 0 80px;
    background-color: #FDFBF7; /* Кремовый фон */
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Декоративные элементы */
.deco-star, .deco-heart {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}
.star-tl { 
    top: 30px; 
    left: 5%; 
    font-size: 40px; 
    color: #FFD54F; 
    transform: rotate(15deg); 
}
.star-br { 
    bottom: 30px; 
    right: 5%; 
    font-size: 70px; 
    color: #F48FB1; 
    opacity: 0.4; 
}

/* Сетка: слева текст, справа фото */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- ЛЕВАЯ КОЛОНКА --- */
.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FCE4EC;
    color: #880E4F;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(136, 14, 79, 0.1);
    width: fit-content; /* Чтобы не растягивался */
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
    color: #2C2C2C;
}

.highlight-box {
    display: inline-block;
    background: #FFF0B3;
    padding: 0 12px;
    border-radius: 12px;
    transform: rotate(-1deg);
    border: 2px solid #2C2C2C;
    box-shadow: 3px 3px 0 #2C2C2C;
}

.hero-desc {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
    max-width: 95%;
    line-height: 1.6;
}

/* Плашки преимуществ - ИСПРАВЛЕНО */
.hero-features {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Позволяет перенос, но не растягивает */
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid #2C2C2C;
    box-shadow: 3px 3px 0 #2C2C2C;
    font-size: 14px;
    font-weight: 600;
    width: auto; /* Не растягивать на 100% */
    white-space: nowrap; /* Запрещаем перенос текста внутри */
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.bg-green-light { background: #E8F5E9; color: #2E7D32; }
.bg-orange-light { background: #FFF3E0; color: #EF6C00; }

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- ПРАВАЯ КОЛОНКА (ФОТО) - ИСПРАВЛЕНО --- */
.hero-image-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.photo-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px; /* Ограничиваем ширину фото */
}

.main-hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 30px;
    border: 3px solid #2C2C2C;
    box-shadow: 12px 12px 0 #7CB342; /* Зеленая тень */
    background-color: #eee;
    transform: rotate(1deg);
    display: block;
}

/* Карточка поверх фото */
.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 16px;
    padding: 15px 20px;
    width: 240px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
    z-index: 5;
}

.age-badge {
    position: absolute;
    top: -12px;
    right: -10px;
    background: #FF9800;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 24px;
    border: 2px solid #2C2C2C;
    transform: rotate(5deg);
    white-space: nowrap;
}

.card-text strong { display: block; font-size: 15px; margin-bottom: 2px; color: #2C2C2C; }
.card-text small { font-size: 12px; color: #666; line-height: 1.2; display: block; }

/* Стикер "Видимый прогресс" */
.progress-sticker {
    position: absolute;
    bottom: -50px;
    left: 40px;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #2C2C2C;
    box-shadow: 3px 3px 0 #fff;
    transform: rotate(-3deg);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
    white-space: nowrap;
}

/* =========================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (HERO)
   ========================================= */

/* Базовое состояние: скрыто и сдвинуто вниз */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Состояние после загрузки: видно и на месте */
.hero-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каскадного эффекта */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Анимация для фото (выезжает справа) */
.hero-img-animate {
    opacity: 0;
    transform: translateX(50px) rotate(1deg);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.hero-img-animate.visible {
    opacity: 1;
    transform: translateX(0) rotate(1deg);
}

/* Адаптив */
@media (max-width: 992px) {
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 60px; 
    }
    .hero-content { align-items: center; }
    .hero-badge-top { margin: 0 auto 25px; }
    .hero-features { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .highlight-box { transform: rotate(0); }
    
    /* Центрируем карточку на мобильном */
    .floating-card { 
        left: 50%; 
        transform: translateX(-50%); 
        bottom: -30px; 
    }
    .progress-sticker { 
        left: 50%; 
        transform: translateX(-50%) rotate(0); 
        bottom: -80px; 
    }
    .photo-frame-wrapper { max-width: 350px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .feature-pill { width: 100%; justify-content: center; }
    .btn { width: 100%; }
    .hero-buttons { flex-direction: column; width: 100%; }
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 60px 0;
    background-color: #F4F9F4; /* Очень светлый мятный фон, как на макете */
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 6px 6px 0 var(--border-color); /* Жесткая тень */
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Иконки */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

/* Цвета иконок (используем те же классы, что и в Hero) */
.bg-orange-light { background: #FFF3E0; color: #EF6C00; }
.bg-pink-light { background: #FCE4EC; color: #C2185B; }
.bg-green-light { background: #E8F5E9; color: #2E7D32; }
.bg-yellow-light { background: #FFF8E1; color: #F57F17; }

/* Текст */
.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
}

.stat-percent {
    font-size: 24px;
    font-weight: 800;
    margin-left: 2px;
}

.stat-title {
    font-size: 15px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1.2;
}

.stat-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-top: 4px;
    font-weight: 600;
}

/* Адаптив */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 20px;
    }
    .stat-number {
        font-size: 32px;
    }
}


/* --- SERVICES SECTION --- */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-body);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

/* Желтая и розовая подсветка в заголовке */
.highlight-box.pink-bg {
    background: #FCE4EC; /* Светло-розовый */
    color: #880E4F;
    border-color: #880E4F;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
}

/* СЕТКА КАРТОЧЕК */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 25px;
}

/* ОБЩИЙ СТИЛЬ КАРТОЧКИ */
.service-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 8px 8px 0 var(--border-color);
}

/* ЦВЕТОВЫЕ ВАРИАНТЫ (Border & Icon) */
.card-orange { border-color: #EF6C00; }
.card-pink   { border-color: #C2185B; }
.card-green  { border-color: #2E7D32; }

.icon-orange { background: #FFF3E0; color: #EF6C00; border: 2px solid #EF6C00; }
.icon-pink   { background: #FCE4EC; color: #C2185B; border: 2px solid #C2185B; }
.icon-green  { background: #E8F5E9; color: #2E7D32; border: 2px solid #2E7D32; }

/* ВНУТРЕННОСТИ КАРТОЧКИ */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.btn-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}
.btn-link:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

.service-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Толкает футер вниз */
}



.footer-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-badge-tw {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid currentColor;
}
.age-orange { color: #EF6C00; background: #FFF3E0; }
.age-pink   { color: #C2185B; background: #FCE4EC; }
.age-green  { color: #2E7D32; background: #E8F5E9; }

/* АДАПТИВ */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
}

/* =========================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (SCROLL REVEAL)
   ========================================= */

/* Исходное состояние элемента (скрыт) */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Конечное состояние (виден) */
.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для эффекта "лесенки" (stagger) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


/* --- DARK SECTION (Исправленная версия) --- */
.dark-section {
    background-color: #1A1A1A;
    padding: 80px 0;
    color: #fff;
}

.text-white { color: #fff !important; }
.text-muted-light { color: #B0B0B0 !important; line-height: 1.6; }
.text-pink { color: #D86C95 !important; }
.text-green { color: #7CB342 !important; }

.highlight-box.orange-bg {
    background: #EF6C00;
    color: #fff;
    border: 2px solid #fff; /* Белая обводка как на макете */
    padding: 5px 15px;
    border-radius: 12px;
    display: inline-block;
    transform: rotate(-1deg);
    margin-top: 10px;
}

.sub-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 60px 0 30px;
    text-align: center;
}

/* СЕТКИ */
.problems-grid, .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* КАРТОЧКИ ПРОБЛЕМ */
.problem-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Чтобы карточки были одной высоты */
}

.problem-card:hover {
    border-color: #D86C95;
    transform: translateY(-5px);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(216, 108, 149, 0.1);
    color: #D86C95;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.card-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; line-height: 1.4; }
.card-text { font-size: 14px; margin-bottom: 25px; flex-grow: 1; color: #aaa; }

.card-solution {
    font-size: 12px;
    font-weight: 700;
    color: #7CB342;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* КАРТОЧКИ ДОВЕРИЯ (Белые) */
.trust-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    border-bottom: 4px solid transparent;
    color: #333; /* Текст внутри черный */
}

.trust-card:nth-child(1) { border-bottom-color: #EF6C00; }
.trust-card:nth-child(2) { border-bottom-color: #D86C95; }
.trust-card:nth-child(3) { border-bottom-color: #7CB342; }

.trust-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px; background: #F9F9F9;
}
.icon-orange-border { color: #EF6C00; border: 2px solid #EF6C00; }
.icon-pink-border { color: #D86C95; border: 2px solid #D86C95; }
.icon-green-border { color: #7CB342; border: 2px solid #7CB342; }

.trust-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: #2C2C2C; }
.trust-text { font-size: 14px; color: #666; line-height: 1.5; }

/* АНИМАЦИИ (Безопасные) */
.reveal-up {
    opacity: 1; /* По умолчанию ВИДНЫ */
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Если JS добавит класс init, то скроем их перед анимацией */
.reveal-up.init {
    opacity: 0;
    transform: translateY(30px);
}

/* Когда JS добавит active - покажем */
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@media (max-width: 992px) {
    .problems-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .problems-grid, .trust-grid { grid-template-columns: 1fr; }
}
    
    
    
    



/* --- GA L L E R Y   S E C T I O N --- */
.gallery-section {
    padding: 80px 0;
    background-color: #FDFBF7;
}

.gallery-header {
    max-width: 700px;
    margin: 0 auto 40px;
}

.gallery-badge {
    display: inline-block;
    background: #FCE4EC;
    color: #880E4F;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(136,14,79,0.1);
}

.gallery-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2C2C2C;
}

.highlight-yellow {
    display: inline-block;
    background: #FFF0B3;
    padding: 0 12px;
    border-radius: 12px;
    border: 2px solid #2C2C2C;
    box-shadow: 3px 3px 0 #2C2C2C;
    transform: rotate(-1deg);
}

.gallery-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* --- ТАБЫ (ВКЛАДКИ) --- */
.gallery-tabs-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.g-tab {
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 3px 3px 0 #2C2C2C;
    transition: all 0.2s ease;
    color: #2C2C2C;
    font-family: inherit;
}

.g-tab:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #2C2C2C;
}

.g-tab.active {
    background: #EF6C00;
    color: #fff;
    box-shadow: 2px 2px 0 #2C2C2C;
    transform: translate(1px, 1px);
}

/* --- СЕТКА --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- КАРТОЧКА --- */
.g-card {
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 6px 6px 0 #2C2C2C;
    transition: transform 0.3s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

.g-card:hover {
    transform: translateY(-5px);
}

/* Скрытая карточка */
.g-card.g-hidden {
    display: none !important;
}

/* Изображение */
.g-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.g-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Тег категории на фото */
.g-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tag-neuro   { background: #7CB342; }
.tag-logoped { background: #D86C95; }
.tag-dev     { background: #EF6C00; }
.tag-creative{ background: #FF9800; }

/* Тело карточки */
.g-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.g-name {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #2C2C2C;
}

.g-text {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.g-link {
    font-size: 13px;
    font-weight: 700;
    color: #EF6C00;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.g-link:hover { color: #D86C95; }

/* --- АДАПТИВ --- */
@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .g-tab { padding: 8px 16px; font-size: 14px; }
    .gallery-section { padding: 50px 0; }
}






/* --- TEACHERS SECTION --- */
.teachers-section {
    padding: 80px 0;
    background-color: #F4F9F4; /* Светлый мятный фон как в блоке статистики */
}

/* Слайдер Slick кастомизация */
.teachers-slider {
    margin: 0 -12px; /* Компенсация отступов слайдов */
}

.teacher-slide {
    padding: 0 12px; /* Отступы между слайдами */
    outline: none;
}

/* КАРТОЧКА ПЕДАГОГА */
.teacher-card {
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 24px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 #2C2C2C;
    position: relative;
}

/* Цветные рамки (через псевдоэлемент или border) */
.border-orange { border-color: #EF6C00; }
.border-pink   { border-color: #D86C95; }
.border-green  { border-color: #7CB342; }

/* Верхняя часть: Фото + Инфо */
.teacher-top {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.teacher-photo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #2C2C2C;
    flex-shrink: 0;
    background: #eee;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exp-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid currentColor;
    text-transform: uppercase;
    width: fit-content;
}
.exp-orange { color: #EF6C00; background: #FFF3E0; }
.exp-pink   { color: #D86C95; background: #FCE4EC; }
.exp-green  { color: #7CB342; background: #E8F5E9; }

.teacher-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #2C2C2C;
}

.teacher-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}
.role-orange { color: #EF6C00; }
.role-pink   { color: #D86C95; }
.role-green  { color: #7CB342; }

/* Тело карточки */
.teacher-body {
    flex-grow: 1;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
    margin-bottom: 15px;
}

.t-block { margin-bottom: 15px; }
.t-block:last-child { margin-bottom: 0; }

.t-block h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2C2C2C;
    display: flex;
    align-items: center;
    gap: 6px;
}
.t-block h4 i { color: #888; font-size: 14px; }

.t-block p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.t-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t-list li {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.3;
}

.t-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #7CB342; /* Зеленая галочка */
    font-size: 12px;
}

/* Футер карточки */
.teacher-footer {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Стрелки слайдера */
.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #2C2C2C;
    transition: all 0.2s;
}
.slick-prev:hover, .slick-next:hover {
    transform: scale(1.1);
    background: #FDFBF7;
}
.slick-prev:before, .slick-next:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #2C2C2C;
    opacity: 1;
}
.slick-prev:before { content: '\f053'; } /* Arrow Left */
.slick-next:before { content: '\f054'; } /* Arrow Right */

.slick-prev { left: -20px; }
.slick-next { right: -20px; }

/* Адаптив */
@media (max-width: 768px) {
    .teachers-slider { margin: 0; }
    .teacher-slide { padding: 0 5px; }
    .slick-prev { left: -10px; }
    .slick-next { right: -10px; }
    .teacher-top { flex-direction: column; align-items: center; text-align: center; }
    .teacher-info { align-items: center; }
}






/* --- REVIEWS SECTION --- */
.reviews-section {
    padding: 80px 0;
    background-color: #FDFBF7; /* Кремовый фон */
}

.highlight-box.green-bg {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #2E7D32;
}

/* Слайдер */
.reviews-slider {
    margin: 0 -12px;
    padding-bottom: 40px; /* Место для стрелок/точек */
}

.review-slide {
    padding: 0 12px;
    outline: none;
}

/* Карточка отзыва */
.review-card {
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 #2C2C2C;
    position: relative;
}

.border-orange { border-color: #EF6C00; }
.border-pink   { border-color: #D86C95; }
.border-green  { border-color: #7CB342; }

/* Верхняя часть: Звезды и Кавычки */
.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stars { color: #FFB74D; font-size: 16px; letter-spacing: 2px; }

.quote-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid currentColor;
}
.icon-orange { color: #EF6C00; background: #FFF3E0; }
.icon-pink   { color: #D86C95; background: #FCE4EC; }
.icon-green  { color: #7CB342; background: #E8F5E9; }

/* Текст отзыва */
.review-text {
    font-size: 15px;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Автор */
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 20px;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #2C2C2C;
    flex-shrink: 0;
    background: #eee;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }

.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 16px; font-weight: 800; margin: 0; color: #2C2C2C; }
.author-child { font-size: 13px; color: #666; }

/* Бейдж диагноза */
.diagnosis-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid currentColor;
    text-transform: uppercase;
    width: fit-content;
    margin-top: 4px;
}
.diag-orange { color: #EF6C00; background: #FFF3E0; }
.diag-pink   { color: #D86C95; background: #FCE4EC; }
.diag-green  { color: #7CB342; background: #E8F5E9; }

/* --- CTA BLOCK (НИЖНИЙ) --- */
.reviews-cta-block {
    margin-top: 60px;
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 24px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 8px 8px 0 #2C2C2C;
    gap: 20px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: #FCE4EC;
    color: #D86C95;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid #2C2C2C;
    flex-shrink: 0;
}

.cta-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 5px;
    color: #2C2C2C;
}
.cta-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    max-width: 600px;
}

/* Адаптив */
@media (max-width: 768px) {
    .reviews-cta-block {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .cta-content { flex-direction: column; }
    .btn { width: 100%; }
}





/* --- FAQ SECTION --- */
.faq-section {
    padding: 80px 0;
    background-color: #F4F9F4; /* Светлый мятный фон */
}

.highlight-box.yellow-bg {
    background: #FFF0B3;
    color: #2C2C2C;
    border-color: #2C2C2C;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Элемент аккордеона */
.faq-item {
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 4px 4px 0 #2C2C2C;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 6px 6px 0 #2C2C2C;
    transform: translateY(-2px);
}

/* Кнопка вопроса */
.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 15px;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: #FFF3E0; /* Оранжевый фон иконки */
    color: #EF6C00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.faq-q {
    font-size: 17px;
    font-weight: 700;
    color: #2C2C2C;
    flex-grow: 1;
}

.faq-arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

/* Поворот стрелки при открытии */
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* Контент ответа (скрыт по умолчанию) */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #FAFAFA;
    border-top: 1px dashed #eee;
}

.faq-item.active .faq-content {
    max-height: 500px; /* Достаточно большое значение для контента */
    transition: max-height 0.4s ease-in-out;
}

.faq-inner {
    padding: 20px 25px 25px 72px; /* Отступ слева под иконку вопроса */
}

.faq-inner p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Адаптив */
@media (max-width: 600px) {
    .faq-btn { padding: 15px 20px; }
    .faq-q { font-size: 15px; }
    .faq-inner { padding: 15px 20px 20px 20px; }
}





/* --- BOOKING SECTION --- */
.booking-section {
    padding: 80px 0;
    background-color: #FDFBF7;
    position: relative;
    overflow: hidden;
}

/* Декорации */
.deco-star, .deco-heart {
    position: absolute;
    z-index: 0;
    opacity: 0.5;
}
.star-tl { top: 40px; left: 40px; font-size: 50px; color: #D86C95; transform: rotate(15deg); }
.star-br { bottom: 40px; right: 40px; font-size: 80px; color: #E8F5E9; opacity: 0.8; }

/* Обертка формы */
.booking-wrapper {
    display: flex;
    background: #fff;
    border: 3px solid #2C2C2C;
    border-radius: 30px;
    box-shadow: 10px 10px 0 #2C2C2C;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* ЛЕВАЯ ЧАСТЬ (РОЗОВАЯ) */
.booking-info {
    width: 40%;
    background: #D86C95; /* Фирменный розовый */
    padding: 50px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    color: #D86C95;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 30px;
    border: 2px solid #2C2C2C;
    box-shadow: 4px 4px 0 #2C2C2C;
}

.info-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 700;
}

.list-icon {
    font-size: 24px;
}

/* ПРАВАЯ ЧАСТЬ (ФОРМА) */
.booking-form-block {
    width: 60%;
    padding: 50px;
    background: #fff;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width { width: 100%; margin-bottom: 20px; }

.form-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2C2C2C;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #2C2C2C;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #FAFAFA;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: #fff;
    border-color: #D86C95;
    box-shadow: 0 0 0 3px rgba(216, 108, 149, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C2C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Кнопка отправки */
.btn-submit {
    width: 100%;
    background: #7CB342; /* Зеленый как на макете */
    color: #fff;
    border: 2px solid #2C2C2C;
    padding: 18px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 6px 6px 0 #2C2C2C;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #2C2C2C;
    background: #689F38;
}

.btn-submit:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #2C2C2C;
}

.form-policy {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

/* АДАПТИВ */
@media (max-width: 992px) {
    .booking-wrapper { flex-direction: column; }
    .booking-info { width: 100%; padding: 40px 30px; box-sizing: border-box; }
    .booking-form-block { width: 100%; padding: 30px; box-sizing: border-box; }
    .info-title { font-size: 28px; }
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 15px; }
    .booking-section { padding: 40px 0; }
    .star-tl, .star-br { display: none; } /* Убираем декор на мобилках */
}



/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #1A1A1A; /* Глубокий темный */
    color: #B0B0B0;
    padding-top: 60px;
    font-size: 14px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Колонка 1: Бренд */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 20px;
}

.logo-heart {
    width: 40px;
    height: 40px;
    background: #D86C95;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
    line-height: 1;
    font-weight: 800;
}
.logo-text span {
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}

.footer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #EF6C00; /* Оранжевый акцент */
    font-weight: 600;
}

/* Заголовки колонок */
.footer-title {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Меню Wayfinder */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a {
    color: #B0B0B0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-menu a::before {
    content: '•';
    color: #D86C95; /* Розовая точка */
    font-size: 20px;
    line-height: 0;
}

.footer-menu a:hover { color: #fff; }

/* Контакты */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.c-icon {
    width: 32px;
    height: 32px;
    background: #252525;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 14px;
}

.c-info { display: flex; flex-direction: column; gap: 2px; }
.c-label { font-size: 11px; color: #666; text-transform: uppercase; font-weight: 700; }
.c-value { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.c-value:hover { color: #D86C95; }

/* Карточка адреса */
.address-card {
    background: #252525;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #333;
}

.ac-header {
    color: #7CB342; /* Зеленый */
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-text {
    margin: 0 0 15px;
    line-height: 1.5;
    color: #ddd;
}

.ac-metro {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

/* Нижняя полоса */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.legal-links {
    display: flex;
    gap: 20px;
}
.legal-links a { color: #888; transition: color 0.2s; }
.legal-links a:hover { color: #fff; }

/* Кнопка Наверх */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #EF6C00;
    color: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #2C2C2C;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}
#scrollTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 4px 7px 0 #2C2C2C;
}

/* Адаптив */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .legal-links { flex-direction: column; gap: 10px; }
    #scrollTopBtn { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
}


/* --- CONTACTS PAGE STYLES --- */
.contacts-page-section {
    padding: 80px 0;
    background-color: #FDFBF7;
}

.highlight-box.yellow-bg {
    background: #FFF0B3;
    color: #2C2C2C;
    border-color: #2C2C2C;
    display: inline-block;
    padding: 0 10px;
    border-radius: 12px;
    transform: rotate(-1deg);
    box-shadow: 3px 3px 0 #2C2C2C;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 40px;
    align-items: start;
}

/* Левая колонка */
.contacts-info-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Карточка контактов */
.info-card {
    background: #fff;
    border: 3px solid #2C2C2C;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 8px 8px 0 #2C2C2C;
}

.info-card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 15px;
}

.contact-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-row:last-child { margin-bottom: 0; }

.c-icon {
    width: 40px;
    height: 40px;
    background: #FFF3E0; /* Оранжевый фон иконок */
    color: #EF6C00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid #2C2C2C;
    flex-shrink: 0;
}

.c-text { display: flex; flex-direction: column; gap: 2px; }
.c-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; }
.c-value { font-size: 18px; font-weight: 800; color: #2C2C2C; text-decoration: none; }
.c-value:hover { color: #D86C95; }

.c-address {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #2C2C2C;
}
.metro-note {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

/* Карта */
.map-wrapper iframe {
    border-radius: 17px !important; /* Чуть меньше радиуса обертки */
}

/* Правая колонка: Форма */
.form-wrapper-card {
    background: #fff;
    border: 3px solid #2C2C2C;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 8px 8px 0 #7CB342; /* Зеленая тень для формы */
    position: sticky;
    top: 100px; /* Липнет при скролле рядом с картой */
}

.form-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Адаптив */
@media (max-width: 992px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .form-wrapper-card { position: static; } /* Убираем липкость на мобильных */
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 15px; }
    .form-wrapper-card, .info-card { padding: 25px; }
    .contacts-page-section { padding: 40px 0; }
}



/* =========================================
   ПОПАП ДЛЯ УВЕЛИЧЕНИЯ ФОТО
   ========================================= */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.photo-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.photo-modal-overlay.active .photo-modal-content {
    transform: scale(1);
}

.photo-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    cursor: default;
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #2C2C2C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 #2C2C2C;
}

.photo-modal-close:hover {
    transform: rotate(90deg);
    background: #D86C95;
    color: #fff;
}

/* Курсор pointer для фото, которые можно увеличить */
.teacher-photo img,
.author-photo img {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.teacher-photo img:hover,
.author-photo img:hover {
    transform: scale(1.05);
}








.bsvi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: #5a5a5a;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.bsvi-button:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.bsvi-button:active {
    transform: translateY(0);
}

.bsvi-button__text {
    display: block;
    text-align: center;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    
    .bsvi-button {
        padding: 12px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bsvi-button {
        padding: 10px 15px;
        font-size: 11px;
        max-width: 200px;
	}
}



/* === Сетка === */
.sveden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  background-color: var(--sveden-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Карточка === */
.sveden-card {
  display: flex;
  flex-direction: column;
  background-color: var(--sveden-card-bg);
  border: 1px solid var(--sveden-border);
  border-radius: var(--sveden-radius);
  padding: 24px;
  text-decoration: none;
  color: var(--sveden-text-main);
  box-shadow: var(--sveden-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Декоративная полоска сверху при наведении */
.sveden-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sveden-primary), #60a5fa);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sveden-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sveden-shadow-hover);
  border-color: var(--sveden-primary);
}

.sveden-card:hover::before {
  opacity: 1;
}

/* === Иконка === */
.sveden-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eff6ff; /* Светлый фон под иконкой */
  color: var(--sveden-primary);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sveden-card:hover .sveden-card__icon {
  background-color: var(--sveden-primary);
  color: #ffffff;
}

.sveden-card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* === Заголовок === */
.sveden-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 16px 0;
  color: var(--sveden-text-main);
  transition: color 0.3s ease;
}

.sveden-card:hover .sveden-card__title {
  color: var(--sveden-primary);
}

/* === Стрелка "Подробнее" === */
.sveden-card__arrow {
  margin-top: auto; /* Прижимает стрелку к низу карточки */
  padding-top: 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--sveden-text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
  border-top: 1px solid var(--sveden-border);
}

.sveden-card__arrow svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.sveden-card:hover .sveden-card__arrow {
  color: var(--sveden-primary);
}

.sveden-card:hover .sveden-card__arrow svg {
  transform: translateX(4px);
}

/* === Адаптивность для мобильных устройств === */
@media (max-width: 640px) {
  .sveden-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  
  .sveden-card {
    padding: 20px;
  }
}
		
		
		




/* === Секция реквизитов === */
.sveden-requisites {
	padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sveden-primary: #2563eb;
  --sveden-primary-hover: #1d4ed8;
  --sveden-bg: #ffffff;
  --sveden-text-main: #0f172a;
  --sveden-text-muted: #64748b;
  --sveden-border: #e2e8f0;
  --sveden-radius: 16px;
  --sveden-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* === Шапка секции === */
.sveden-requisites__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.sveden-requisites__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--sveden-text-main);
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.sveden-requisites__subtitle {
  font-size: 15px;
  color: var(--sveden-text-muted);
  margin: 0;
}

/* === Кнопка "Скопировать все" === */
.sveden-requisites__copy-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--sveden-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.sveden-requisites__copy-all:hover {
  background: var(--sveden-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3);
}

.sveden-requisites__copy-all svg {
  width: 18px;
  height: 18px;
}

/* === Обёртка таблицы (для теней и радиусов) === */
.sveden-requisites__wrapper {
  background: var(--sveden-bg);
  border: 1px solid var(--sveden-border);
  border-radius: var(--sveden-radius);
  box-shadow: var(--sveden-shadow);
  overflow: hidden;
}

/* === Сама таблица === */
.sveden-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sveden-table tbody tr {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--sveden-border);
  transition: background-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.sveden-table tbody tr:last-child {
  border-bottom: none;
}

.sveden-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Подсветка строки при копировании */
.sveden-table tbody tr.is-copied {
  background-color: #eff6ff;
}

/* Колонка с названием поля */
.sveden-table__label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  min-width: 260px;
  padding: 18px 24px;
  color: var(--sveden-text-muted);
  font-weight: 500;
  font-size: 14px;
  background: #fafbfc;
  border-right: 1px solid var(--sveden-border);
}

.sveden-table__label svg {
  width: 20px;
  height: 20px;
  color: var(--sveden-primary);
  flex-shrink: 0;
}

/* Колонка со значением */
.sveden-table__value {
  flex: 1;
  padding: 18px 24px;
  color: var(--sveden-text-main);
  font-weight: 500;
  line-height: 1.6;
  word-break: break-word;
}

.sveden-table__value--mono {
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.sveden-table__value a {
  color: var(--sveden-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sveden-table__value a:hover {
  color: var(--sveden-primary-hover);
  text-decoration: underline;
}

/* Подсказка о копировании */
.sveden-table__copy-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sveden-table tbody tr:hover .sveden-table__copy-hint {
  opacity: 1;
}

/* === Всплывающее уведомление (toast) === */
.sveden-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--sveden-text-main);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  pointer-events: none;
}

.sveden-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.sveden-toast svg {
  width: 20px;
  height: 20px;
  color: #10b981;
}

/* === Адаптивность: мобильная версия === */
@media (max-width: 768px) {
  .sveden-requisites__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sveden-requisites__title {
    font-size: 22px;
  }

  .sveden-requisites__copy-all {
    width: 100%;
    justify-content: center;
  }

  .sveden-table tbody tr {
    flex-direction: column;
  }

  .sveden-table__label {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px dashed var(--sveden-border);
    padding: 14px 20px 10px;
    background: transparent;
  }

  .sveden-table__value {
    padding: 12px 20px 18px;
  }

  .sveden-table__copy-hint {
    opacity: 1;
  }
}
		