/* ===== ШАГ 0: ШАПКА V2 И АНИМАЦИЯ СКРОЛЛА ===== */
#main-header {
    transition: all 0.3s ease;
}

#header-inner {
    height: 90px;
    /* Крупная шапка по умолчанию */
    transition: all 0.3s ease;
}

#logo-img {
    height: 56px;
    /* Крупное лого по умолчанию */
    transition: all 0.3s ease;
}

/* Состояние шапки при скролле */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#main-header.scrolled #header-inner {
    height: 70px;
    /* Уменьшаем высоту */
}

#main-header.scrolled #logo-img {
    height: 40px;
    /* Уменьшаем лого */
}

/* ===== HERO V2: ДОРАБОТКА ВАРИАНТА 2 (Левый сдвиг + Абстракция) ===== */
.hero-left-air {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Яркая абстрактная фигура справа */
.hero-left-air::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Динамичный бабл */
    opacity: 0.15;
    /* Полупрозрачный, чтобы не перекрывать текст */
    z-index: 0;
    animation: morph 8s ease-in-out infinite;
}

.hero-left-air::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: #f43f5e;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    color: #334155;
    background: #fff;
    z-index: 1;
    position: relative;
}

.mini-chip:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Цветные чипсы */
.mini-chip-pink {
    border-color: #fbcfe8;
    color: #be185d;
    background: #fdf2f8;
}

.mini-chip-pink:hover {
    background: #fbcfe8;
}

.mini-chip-violet {
    border-color: #ddd6fe;
    color: #6d28d9;
    background: #f5f3ff;
}

.mini-chip-violet:hover {
    background: #ddd6fe;
}

.mini-chip-blue {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.mini-chip-blue:hover {
    background: #bfdbfe;
}

.mini-chip-green {
    border-color: #bbf7d0;
    color: #15803d;
    background: #f0fdf4;
}

.mini-chip-green:hover {
    background: #bbf7d0;
}

.mini-chip-amber {
    border-color: #fde68a;
    color: #b45309;
    background: #fffbeb;
}

.mini-chip-amber:hover {
    background: #fde68a;
}

/* Монохромные чипсы (если захочешь включить) */
.mono-chip {
    border-color: #e2e8f0;
    color: #475569;
    background: #f8fafc;
}

.mono-chip:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.mono-chip span {
    filter: grayscale(100%);
}

/* =================================================================
   УНИВЕРСАЛЬНЫЕ ШАПКИ СЕКЦИЙ (3 Дизайна)
   ================================================================= */
/* ===== БЛОК МАРАФОНЫ И ПРОДУКТЫ ===== */
.highlight-border {
    border: 3px solid #ec4899;
    background: #ffffff;
    position: relative;
}

.micro-tile {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.micro-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

.tile-dark {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.tile-dark h3 {
    color: #64748b;
}

.tile-dark p {
    color: #94a3b8;
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-pulse::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.bullet-box-pink {
    background: #fdf2f8;
}

.bullet-box-pink .bullet-check {
    color: #db2777;
}

/* ===== ГЕОМЕТРИЯ СЕКЦИЙ (Насыщенная, Топ-Право / Низ-Лево) ===== */
.section-geo {
    position: relative;
    overflow: hidden;
}

.content-aligned {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 3rem;
}

.title-geo {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.badge-geo {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.desc-geo {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 32rem;
}

/* --- ВАРИАНТ 1: Архитектурный (Синий/Мятный) --- */
.section-geo-default::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: #cbd5e1;
    border-radius: 20px;
    transform: rotate(45deg);
    opacity: 0.5;
    z-index: 0;
    animation: drift-slow 20s ease-in-out infinite;
}

.section-geo-default::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -3%;
    width: 150px;
    height: 150px;
    border: 12px solid #99f6e4;
    border-radius: 50%;
    opacity: 0.7;
    z-index: 0;
}

.section-geo-default .badge-geo {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* --- ВАРИАНТ 2: Конструктивизм (Фиолет/Роза) --- */
.section-geo-warm::before {
    content: '';
    position: absolute;
    top: -8%;
    right: 5%;
    width: 280px;
    height: 280px;
    background: #ddd6fe;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.7;
    z-index: 0;
    animation: drift-slow 25s ease-in-out infinite reverse;
}

.section-geo-warm::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 80px;
    height: 80px;
    background: #fbcfe8;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 0;
}

.section-geo-warm .badge-geo {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* --- ВАРИАНТ 3: Минимализм (Индиго/Песочный) --- */
.section-geo-sharp::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 0;
    width: 350px;
    height: 350px;
    background: #c7d2fe;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0.5;
    z-index: 0;
}

.section-geo-sharp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2%;
    width: 120px;
    height: 120px;
    border: 10px solid #fde68a;
    border-radius: 0;
    transform: rotate(15deg);
    opacity: 0.8;
    z-index: 0;
}

.section-geo-sharp .badge-geo {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* --- ВАРИАНТ 4: Природа - Волны/Океан (Мятно-Изумрудный) --- */
.section-geo-wave::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: #a7f3d0;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.section-geo-wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 300px;
    height: 200px;
    background: #bae6fd;
    clip-path: polygon(0 70%, 20% 40%, 50% 80%, 80% 50%, 100% 60%, 100% 100%, 0% 100%);
    opacity: 0.5;
    z-index: 0;
}

.section-geo-wave .badge-geo {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* --- ВАРИАНТ 5: Природа - Солнце/Дюны (Янтарный) --- */
.section-geo-sun::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 5%;
    width: 280px;
    height: 280px;
    background: #fde68a;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.section-geo-sun::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: #fcd34d;
    clip-path: polygon(0 80%, 30% 60%, 60% 90%, 100% 50%, 100% 100%, 0% 100%);
    opacity: 0.25;
    z-index: 0;
}

.section-geo-sun .badge-geo {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

@keyframes drift-slow {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(45deg) translate(-15px, 15px);
    }
}

/* ===== Единый стиль буллитов (Блоки с галочками) ===== */
.bullet-box {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.bullet-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.bullet-item:last-child {
    margin-bottom: 0;
}

.bullet-check {
    font-weight: 700;
    flex-shrink: 0;
}

.bullet-box-blue {
    background: #eff6ff;
}

.bullet-box-blue .bullet-check {
    color: #2563eb;
}

.bullet-box-green {
    background: #f0fdf4;
}

.bullet-box-green .bullet-check {
    color: #16a34a;
}

.bullet-box-violet {
    background: #f5f3ff;
}

.bullet-box-violet .bullet-check {
    color: #7c3aed;
}

.bullet-box-amber {
    background: #fffbeb;
}

.bullet-box-amber .bullet-check {
    color: #d97706;
}

.bullet-box-teal {
    background: #f0fdfa;
}

.bullet-box-teal .bullet-check {
    color: #0d9488;
}

/* ===== Единый стиль буллитов (Блоки с галочками) ===== */
.bullet-box {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.bullet-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.bullet-item:last-child {
    margin-bottom: 0;
}

.bullet-check {
    font-weight: 700;
    flex-shrink: 0;
}

.bullet-box-blue {
    background: #eff6ff;
}

.bullet-box-blue .bullet-check {
    color: #2563eb;
}

.bullet-box-green {
    background: #f0fdf4;
}

.bullet-box-green .bullet-check {
    color: #16a34a;
}

.bullet-box-violet {
    background: #f5f3ff;
}

.bullet-box-violet .bullet-check {
    color: #7c3aed;
}

.bullet-box-amber {
    background: #fffbeb;
}

.bullet-box-amber .bullet-check {
    color: #d97706;
}

/* ===== ПРЕПОДАВАТЕЛИ V2 (Яркие, фото впритык) ===== */
.teacher-card-v2 {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.teacher-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.teacher-img-v2 {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    /* Чтобы лицо не обрезалось */
}

.teacher-body-v2 {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.teacher-name-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.teacher-badge-v2 {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.teacher-badge-pink {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.teacher-badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.teacher-badge-violet {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.regalia-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.regalia-item {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.regalia-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
    width: 20px;
    text-align: center;
}

/* ===== БЛОК О ШКОЛЕ (Плашки + Цифры) ===== */
.advantage-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.advantage-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.pill-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.pill-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.pill-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-desc {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== НОВЫЕ БЛОКИ МАРАФОНОВ ===== */
.grammar-highlight {
    background: #ecfdf5;
    border: 2px solid #6ee7b7;
    position: relative;
}

.mc-theme-card {
    background: #fff7ed;
    padding: 1.25rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #fed7aa;
}

.mc-theme-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===== КЕМПЫ: ПЛАШКИ ПРЕИМУЩЕСТВ ===== */
.camp-benefit {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.camp-benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.camp-benefit-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.camp-benefit h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.camp-benefit p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.camp-price-box {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.875rem;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 800;
    color: #059669;
}

/* =================================================================
   V2: СТИЛИЗАЦИЯ ОБЩИХ БЛОКОВ (Точный пробив Tailwind)
   ================================================================= */

/* ===== ПОДВАЛ (Светлый, фиолетовые акценты) ===== */
footer.py-12 {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

footer .text-white,
footer .font-semibold {
    color: #1e293b !important;
}

footer .text-gray-400,
footer .text-gray-500,
footer .text-gray-300 {
    color: #64748b !important;
}

footer img {
    opacity: 1 !important;
    /* Убираем тусклость лого */
    filter: none !important;
}

/* Иконки соцсетей: Делаем яркими фиолетовыми кнопками */
footer a.group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f3e8ff !important;
    /* Бледно-фиолетовый фон */
    color: #7c3aed !important;
    /* Фиолетовая иконка */
    border-radius: 14px !important;
    padding: 10px !important;
    transition: all 0.2s ease !important;
}

footer a.group:hover {
    background-color: #7c3aed !important;
    /* Яркий фон при ховере */
    color: #ffffff !important;
    /* Белая иконка при ховере */
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
}

footer .border-gray-800 {
    border-color: #e2e8f0 !important;
}


/* ===== ИСТОРИИ УСПЕХА (Glassmorphism + Акцентные границы) ===== */
.stories-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
    /* Нежный градиент */
}

.story-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    /* Эффект матового стекла */
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-left: 5px solid #8b5cf6 !important;
    /* Фиолетовый акцент слева */
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.08) !important;
    transition: all 0.3s ease !important;
}

.story-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15) !important;
    border-left-color: #ec4899 !important;
    /* Смена акцента на розовый при наведении */
}

.story-card img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ===== CTA TRIAL V2 (Сочный градиент + Стеклянная форма) ===== */
.cta-bg-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%) !important;
    /* Градиент вместо плоского цвета */
}

.cta-bg-accent {
    background-color: #f43f5e !important;
    /* Яркий акцент для декоративного круга */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
    opacity: 0.4 !important;
}

.cta-bullet-bg {
    background-color: #fbbf24 !important;
    /* Желтые буллиты для контраста */
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5) !important;
}

/* Улучшаем форму под V2 стиль */
.cta-trial-section .bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
}

.cta-trial-section input {
    border-radius: 9999px !important;
    /* Сохраняем капсульную форму как в HTML */
    border-color: #e2e8f0 !important;
    padding: 14px 24px !important;
}

.cta-trial-section input:focus {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15) !important;
}

/* Кнопка формы */
.cta-trial-section button[type="submit"],
.cta-trial-section input[type="submit"],
.cta-trial-section .wpcf7-submit {
    background: linear-gradient(90deg, #ec4899 0%, #f43f5e 100%) !important;
    color: #ffffff !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 9999px !important;
    /* Сохраняем капсульную форму */
    padding: 16px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
}

.cta-trial-section button[type="submit"]:hover:not(:disabled),
.cta-trial-section input[type="submit"]:hover:not(:disabled),
.cta-trial-section .wpcf7-submit:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4) !important;
}

.cta-trial-section button[type="submit"]:disabled,
.cta-trial-section input[type="submit"]:disabled,
.cta-trial-section .wpcf7-submit:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Подсветка ссылок в формах (включая CF7) */
.wpcf7-form a,
form a {
    color: #ec4899;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.wpcf7-form a:hover,
form a:hover {
    color: #db2777;
}