
/* Подключение основного вариативного шрифта Nunito */
@font-face {
  font-family: 'Nunito';
  font-style:normal;
  font-weight: 200 1000; /* Говорим браузеру, что этот один файл умеет быть и тонким, и жирным */
  src: url('fonts/Nunito-Variable.ttf') format('truetype-variations');
}

/* Подключение курсивного вариативного шрифта Nunito (если используется на сайте) */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  src: url('fonts/Nunito-Italic-Variable.ttf') format('truetype-variations');
}

/* Подключение Comfortaa (локально, Google Fonts, OFL) — для заголовков */
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/comfortaa/comfortaa-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/comfortaa/comfortaa-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/comfortaa/comfortaa-latin-ext.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/comfortaa/comfortaa-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Оставляем Nunito для обычного текста (он легко читается) */
    font-family: "Nunito", system-ui, -apple-system, sans-serif !important;
    background-color: #ffffff;
}

/* 🌟 НАЗНАЧАЕМ СУПЕР-МУЛЬТЯШНЫЙ ШРИФТ ДЛЯ ВСЕХ ЗАГОЛОВКОВ */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: "Comfortaa", sans-serif !important;
    /* Comfortaa — вариативная 300..700: 900 браузер всё равно обрезает до 700 */
    font-weight: 700 !important;
    letter-spacing: -0.5px; /* Сближаем буквы, чтобы они смотрелись еще более мультяшно */
}

/* Специальный класс для огромного заголовка на первом экране */
.display-2, .display-3 {
    font-family: "Comfortaa", sans-serif !important;
    font-weight: 700 !important;
}

.fw-black { font-weight: 700 !important; }



/* 🌟 НОВАЯ СТИЛЬНАЯ ПОЛУПРОЗРАЧНАЯ ШАПКА */
.custom-navbar {
    background-color: rgba(22, 31, 70, 0.4) !important; /* Очень легкий темный тон */
    backdrop-filter: blur(12px); /* Эффект матового стекла */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    z-index: 1000 !important;
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: #ffffff !important;
}

/* Пульсирующая кнопка призыва в Telegram */
.banner-cta-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.banner-cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px rgba(25, 135, 84, 0.4) !important;
}




.backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.text-shadow-dark { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }

/* --- 2. СТИЛИ ДЛЯ ПЕРВОГО БАННЕРА (ЗАФИКСИРОВАН) --- */
.hero-fixed-banner {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1; /* Самый нижний слой */
    background-image: url('./clouds-bg.webp'), url('./stars-bg.webp');
    background-position: center bottom, center top;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-color: #161f46;
}

.image-box {
    display: inline-block;
    max-width: 100%;
    pointer-events: none;
}

.hero-child-img {
    max-height: 52vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.floating-animation {
    animation: floatAnimation 6s ease-in-out infinite;
}
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- 3. СЕКЦИЯ 2: ОЗНАКОМИТЕЛЬНАЯ (НАПОЛЗАЕТ НА БАННЕР) --- */
.next-section-overlay {
    margin-top: 100vh; /* Открывает баннер на весь экран */
    position: relative;
    z-index: 5; /* Слой выше баннера */
    background-color: #ffffff; /* Плотный белый фон перекрывает звезды */
    padding-top: 100px !important; 
    padding-bottom: 110px !important;
}
.bot-intro-box{
   padding-top: 200px !important;
    
}

.cloud-wave-divider {
    position: absolute;
    top: -213px; /* Выталкиваем волну наверх */
    left: 0;
    width: 100%;
    height: 110%; 
    background-image: url('./wave-clouds.webp'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 4;
    pointer-events: none;
}

/* --- 4. СЕКЦИЯ 3: СФЕРИЧЕСКИЕ МИРЫ (ОБЫЧНЫЙ СКРОЛЛ) --- */
.standard-section {
    position: relative;
    z-index: 6;
    background-color: #f8f9fa !important;
    width: 100%;
    display: block;
    clear: both;
    
    /* 🌟 ДОБАВИЛИ БОЛЬШИЕ ОТСТУПЫ: 110px сверху и снизу, 0 по бокам */
    padding: 110px 0 !important; 
}

/* --- СТИЛИ ДЛЯ ШАРОВ-МИРОВ --- */
.sphere-card {
    max-width: 280px;
}

.sphere-img-pure {
    width: 280px; 
    height: 280px; 
    border-radius: 50%; 
    /*object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
}

.sphere-card:hover .sphere-img-pure {
    transform: translateY(-25px) scale(1.09);
    box-shadow: 0 15px 25px rgba(111, 66, 193, 0.25); 
}

/* --- 5. СЕКЦИЯ 4: ШАГИ В ВИДЕ ОБЛАЧКОВ (ЭФФЕКТ МАТОВОГО СКАЗОЧНОГО ОКНА) --- */
.steps-section {
    position: relative;
    z-index: 10;
    width: 100%;
    display: block;
    clear: both;
    
    /* 🌟 ТРЮК С ДУБЛИРОВАНИЕМ ФОНА: 
       Ставим тот же фон, что и в хедере, чтобы картинка продолжалась сзади */
    background-image: url('./clouds-bg.webp'), url('./stars-bg.webp');
    background-position: center bottom, center top;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    
    /* Увеличенные отступы, чтобы волны не налезали на карточки */
    padding-top: 150px !important;
    padding-bottom: 150px !important;
}

/* 🌟 НАЛОЖЕНИЕ РАСПЛЫВЧАТОГО СТЕКЛА ЧЕРЕЗ ПСЕВДОЭЛЕМЕНТ:
   Это создаёт плотную матовую пелену прямо поверх звёздного неба секции, 
   чтобы текст оставался супер-читаемым, а фон сзади таинственно размывался */
.steps-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.75); /* Густая белая вуаль */
    backdrop-filter: blur(20px); /* Мощное размытие облаков сзади */
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

/* Переносим контент выше матового стекла, чтобы буквы не размывались */
.steps-section .z-content {
    position: relative;
    z-index: 3;
}

/* 〰️ ГУСТЫЕ МЕЛКИЕ ОБЛАЧКА СВЕРХУ СЕКЦИИ */
.cloud-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 75px; /* Увеличили с 55px до 75px для идеальной пышности */
    z-index: 4;
}


/* 〰️ ГУСТЫЕ МЕЛКИЕ ОБЛАЧКА СНИЗУ СЕКЦИИ */
.cloud-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 75px; /* Увеличили с 55px до 75px для идеальной пышности */
    z-index: 4;
}

/* --- СТИЛИ КАРТОЧЕК (Остаются без изменений) --- */
.cloud-step-card {
    background-image: url('./step-cloud.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    width: 320px;
    height: 280px;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    z-index: 5;
}

.cloud-card-content { padding: 30px 40px; max-width: 100%; }
.cloud-card-content p { font-size: 0.85rem; }

.step-badge-number {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
    z-index: 12;
}

.cloud-step-card:hover {
    transform: translateY(-12px) scale(1.04);
    filter: drop-shadow(0 15px 20px rgba(111, 66, 193, 0.22));
}


/* --- 6. СЕКЦИЯ 5: ТАРИФНЫЙ ПРАЙС --- */
.price-section {
    position: relative;
    z-index: 10; /* Слой в стандартном потоке поверх параллакса */
    background-color: #f8f9fa !important; /* Светло-серый плотный фон для контраста */
    width: 100%;
    display: block;
    clear: both;
    
    /* Делаем такие же большие королевские отступы для баланса */
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

/* Базовые карточки тарифов */
.price-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e2eaf0 !important;
}

/* Эффект приподнимания карточки при наведении */
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

/* 🌟 ФИШКА МАРКЕТИНГА: Выделяем центральную карточку */
.card-featured {
    border-color: #0d6efd !important; /* Синяя фирменная рамка */
    /* Слегка увеличиваем её размер прямо в ряду, чтобы она доминировала */
    transform: scale(1.03); 
}

/* Особое поведение для центральной карточки при наведении */
.card-featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15) !important;
}


/* --- 7. СЕКЦИЯ 6: АВТОР МЕТОДИКИ --- */
.author-section {
    position: relative;
    z-index: 10; /* Слой в стандартном потоке поверх параллакса */
    background-color: #ffffff !important; /* Плотный белый фон для чередования с серым прайсом */
    width: 100%;
    display: block;
    clear: both;
    
    /* Сохраняем наши фирменные королевские отступы */
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

/* Красивый круглый контейнер для фотографии психолога */
.author-avatar-holder {
    width: 220px;
    height: 220px;
    border-radius: 50%; /* Намертво скругляем в шар */
    border: 8px solid #ffffff; /* Благородная белая фоторамка */
    overflow: hidden;
    background-color: #f8f9fa;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Настройки самого изображения внутри круга */
.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Интерактивный эффект: аватарка мягко покачивается при наведении */
.author-avatar-holder:hover {
    transform: scale(1.04) rotate(3deg);
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.15) !important; /* Нежное зеленое свечение доверия */
}

/* ==========================================================================
   КОНСТРУКТОР СКАЗКИ — интерактивный блок посадочной страницы
   ========================================================================== */
.constructor-section {
    /* position/z-index обязательны: в шапке сайта баннер героя зафиксирован (position: fixed, z-index: 1),
       и без собственного z-index секция уходит ПОД него — баннер «выглядывает» на стыке с секцией шагов */
    position: relative;
    z-index: 10;
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, #f9fcff 0%, #eef6ff 100%);
}
.constructor-card {
    max-width: 1080px;
    background: #fff;
    border: 1px solid rgba(13, 110, 253, .08);
    border-radius: 28px;
    padding: 2.25rem;
    box-shadow: 0 20px 60px rgba(30, 60, 120, .10);
}

/* Заголовки шагов */
.c-step-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .8rem;
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 800;
    color: #1f2b46;
    letter-spacing: -.2px;
}
.c-step-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: #0d6efd;
    font-size: .85rem;
    font-weight: 800;
}

/* Шаг 1. Зона загрузки фото */
.photo-drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 224px;
    padding: 1rem;
    border: 2px dashed #bcd4f6;
    border-radius: 20px;
    background: #f8fbff;
    text-align: center;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}
.photo-drop:hover,
.photo-drop.is-drag { background: #eef5ff; border-color: #0d6efd; }
.photo-drop:focus-visible { outline: 3px solid rgba(13, 110, 253, .35); outline-offset: 2px; }
.photo-drop.has-photo { padding: 0; border-style: solid; border-color: #cfe3ff; }
.photo-icon { font-size: 2rem; margin-bottom: .35rem; }
.photo-preview {
    display: block;
    width: 100%;
    height: 224px;
    object-fit: cover;
    border-radius: 18px;
}
.photo-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 30, 60, .65);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.photo-clear:hover { background: #0d6efd; }

/* Сегментированные переключатели (пол, возраст) */
.segmented {
    display: flex;
    gap: .5rem;
    padding: .35rem;
    border-radius: 16px;
    background: #f1f6ff;
}
.seg-btn {
    flex: 1 1 0;
    padding: .7rem .9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #41506b;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg-btn:hover { background: #e4eeff; color: #0d6efd; }
.seg-btn[aria-pressed="true"] {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .28);
}

/* Шаг 4. Карточки режима */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mode-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem 1.15rem;
    border: 2px solid #e3ecfa;
    border-radius: 20px;
    background: #fff;
    text-align: left;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.mode-card:hover { border-color: #0d6efd; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 110, 253, .12); }
.mode-card[aria-pressed="true"] {
    border-color: #0d6efd;
    background: linear-gradient(180deg, #f4f9ff, #eaf3ff);
    box-shadow: 0 16px 34px rgba(13, 110, 253, .16);
}
.mode-emoji { font-size: 1.6rem; }
.mode-name { font-family: "Comfortaa", sans-serif; font-size: 1.05rem; font-weight: 700; color: #16213c; }
.mode-desc { color: #5d6c86; font-size: .9rem; line-height: 1.35; }

/* Шаг 5. Психологический запрос (плавное раскрытие) */
.therapy-wrap {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.22, .61, .36, 1), opacity .35s ease, margin-top .3s ease;
}
.therapy-wrap.is-open { max-height: 820px; margin-top: .25rem; opacity: 1; }
.c-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.c-chip {
    padding: .5rem 1rem;
    border: 1.5px solid #dbe7f8;
    border-radius: 999px;
    background: #fff;
    color: #3c4a63;
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.c-chip:hover { border-color: #0d6efd; color: #0d6efd; }
.c-chip[aria-pressed="true"] {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 10px 20px rgba(13, 110, 253, .22);
}

/* Шаг 6. Любимая тема */
.c-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.c-theme {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .8rem;
    border: 1.5px solid #e3ecfa;
    border-radius: 14px;
    background: #fff;
    color: #3c4a63;
    font-weight: 700;
    text-align: left;
    transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.c-theme:hover { border-color: #0d6efd; color: #0d6efd; }
.c-theme[aria-pressed="true"] { border-color: #0d6efd; background: #eaf3ff; color: #084dbb; box-shadow: 0 10px 22px rgba(13, 110, 253, .15); }
.c-theme-emoji { font-size: 1.2rem; }

/* Итог и финальная кнопка */
.constructor-summary { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed #dbe7f8; text-align: center; }
.summary-text {
    max-width: 780px;
    margin: 0 auto;
    padding: .9rem 1.1rem;
    border: 1px solid #e2eeff;
    border-radius: 16px;
    background: #f4f9ff;
    color: #1f2b46;
    font-weight: 700;
}
.summary-text .s-part { color: #0d6efd; }
.cta-pulse { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(25, 135, 84, .35); }
    50%      { transform: scale(1.035); box-shadow: 0 16px 36px rgba(25, 135, 84, .5); }
}
@media (prefers-reduced-motion: reduce) {
    .cta-pulse { animation: none; }
    .therapy-wrap { transition: none; }
}

/* Якоря: фиксированная шапка не должна закрывать заголовок секции */
html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 88px; }

@media (max-width: 767px) {
    .constructor-card { padding: 1.25rem; border-radius: 22px; }
    .photo-preview { height: 200px; }
    .photo-drop { min-height: 200px; }
}

@media (max-width: 575px) {
    /* Узкие экраны: карточки режима и строки читаемее в одну колонку */
    .mode-cards { grid-template-columns: 1fr; }
    .mode-name { font-size: 1rem; }
    .mode-desc { font-size: .86rem; }
    .seg-btn { padding: .6rem .55rem; font-size: .92rem; }
    .c-themes { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
    .summary-text { font-size: .95rem; }
}
.photo-drop-wrap { position: relative; }
.photo-error {
    margin: .5rem 0 0;
    color: #b02a37;
    font-size: .9rem;
    font-weight: 700;
}
.brand-logo {
    width: 40px;
    height: 40px;
    margin-right: .55rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    flex: 0 0 auto;
}
/* Класс hero-text-column есть в разметке героя, но не был описан в CSS.
   Из-за этого картинка ребёнка в правой колонке ложилась поверх левой и закрывала
   облаками кнопку «Запустить в Telegram» (в разметке помечено «Кнопка больше не скроется»).
   Поднимаем текстовую колонку над картинкой. */
.hero-text-column {
    position: relative;
    z-index: 2;
}
