/* Основной сброс и переменные */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    height: auto;
}

:root {
    --bg-color: #f5f3fc;
    --primary-color: #a49ee9;
    --secondary-color: #9cc6e9;
    --accent-color: #d2c1f4;
    --text-color: #1d2746;
    --slot-bg: rgba(0, 0, 0, 0.08);
    --slot-knob: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    --shadow: rgba(0, 0, 0, 0.1);
    --search-open-width: min(320px, 72vw);
}

/* Тематические классы для разных сегментов - применяются только к hero-секции */
.hero.theme-all {
    --hero-primary-color: var(--primary-color);
    --hero-secondary-color: var(--secondary-color);
    --hero-accent-color: var(--accent-color);
    --hero-light-start: rgba(255, 255, 255, 0.96);
    --hero-light-end: rgba(245, 243, 252, 0.9);
    --hero-shadow: rgba(108, 96, 203, 0.25);
    --hero-chip-bg: rgba(164, 158, 233, 0.18);
    --hero-card-bg: rgba(255, 255, 255, 0.95);
    --hero-card-border: rgba(255, 255, 255, 0.65);
    --hero-card-shadow: rgba(108, 96, 203, 0.25);
}
.hero.theme-youth {
    --hero-primary-color: #61c7c1;
    --hero-secondary-color: #7cd9d2;
    --hero-accent-color: #b6f2ea;
    --hero-light-start: rgba(255, 255, 255, 0.97);
    --hero-light-end: rgba(234, 249, 247, 0.92);
    --hero-shadow: rgba(97, 199, 193, 0.28);
    --hero-chip-bg: rgba(97, 199, 193, 0.18);
    --hero-card-bg: rgba(255, 255, 255, 0.95);
    --hero-card-border: rgba(194, 242, 236, 0.75);
    --hero-card-shadow: rgba(44, 98, 96, 0.22);
}
.hero.theme-families {
    --hero-primary-color: #f7b5a8;
    --hero-secondary-color: #f9c9b8;
    --hero-accent-color: #ffe5d3;
    --hero-light-start: rgba(255, 255, 255, 0.97);
    --hero-light-end: rgba(255, 238, 232, 0.92);
    --hero-shadow: rgba(247, 181, 168, 0.30);
    --hero-chip-bg: rgba(247, 181, 168, 0.22);
    --hero-card-bg: rgba(255, 255, 255, 0.96);
    --hero-card-border: rgba(255, 229, 211, 0.75);
    --hero-card-shadow: rgba(179, 107, 93, 0.22);
}
.hero.theme-specialists {
    --hero-primary-color: #8bb4d9;
    --hero-secondary-color: #abcfe4;
    --hero-accent-color: #d3e8f3;
    --hero-light-start: rgba(255, 255, 255, 0.97);
    --hero-light-end: rgba(240, 249, 255, 0.92);
    --hero-shadow: rgba(139, 180, 217, 0.30);
    --hero-chip-bg: rgba(139, 180, 217, 0.20);
    --hero-card-bg: rgba(255, 255, 255, 0.95);
    --hero-card-border: rgba(211, 232, 243, 0.75);
    --hero-card-shadow: rgba(52, 82, 112, 0.22);
}
.hero.theme-premium {
    --hero-primary-color: #d3a56e;
    --hero-secondary-color: #e7c38d;
    --hero-accent-color: #f5e2c6;
    --hero-light-start: rgba(255, 255, 255, 0.98);
    --hero-light-end: rgba(253, 248, 237, 0.92);
    --hero-shadow: rgba(211, 165, 110, 0.30);
    --hero-chip-bg: rgba(211, 165, 110, 0.22);
    --hero-card-bg: rgba(255, 255, 255, 0.96);
    --hero-card-border: rgba(245, 226, 198, 0.75);
    --hero-card-shadow: rgba(120, 83, 41, 0.24);
}

html {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--accent-color) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100%;
}

/* Отключаем fixed background на мобильных для лучшей производительности */
@media (max-width: 768px) {
    html {
        background-attachment: scroll;
    }
}

body {
    font-family: "Arial", sans-serif;
    color: var(--text-color);
    background: transparent;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Делаем header позиционированным контейнером, чтобы выпадающее меню
   располагалось относительно него (под шапкой) */
header {
    position: relative;
}

/* Верхняя мини‑навигация */
.top-mini-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    max-width: 90%;
    margin: 0.5rem auto;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .top-mini-nav {
        gap: 0.8rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

.top-mini-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-mini-nav a:hover {
    color: var(--primary-color);
}

/* Основная панель */
/* Основная панель навигации. Отключаем перенос строк (flex-wrap: nowrap),
   чтобы элементы не переходили на новую строку при уменьшении экрана,
   а строка сужалась. Используем 100% ширины, чтобы растягиваться на
   всю доступную область. */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: nowrap;
    /* Панель занимает до 90% ширины экрана и центрируется. Как экран становится
       уже, сама панель сужается (в отличие от переносов строк). */
    /* Занимает всю ширину родителя, но ограничена 90% от экрана, чтобы центрироваться. */
    width: 100%;
    max-width: 90%;
    margin: 0.5rem auto;
    padding: 0.6rem 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 100;
    min-height: 60px;
    /* Отменяем обрезку содержимого, чтобы выпадающее меню могло выходить
       за пределы основного контейнера. */
    overflow: visible;
    /* Убеждаемся, что сегменты не скрываются за другими элементами */
    overflow-x: visible;
}
@media (max-width: 700px) {
    .main-nav {
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
        min-height: 56px;
    }
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 0 0 auto;
}
@media (max-width: 600px) {
    .nav-left {
        gap: 0.5rem;
    }
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Для позиционирования всплывающей подсказки .home-hint внутри бренда */
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s ease;
}
@media (max-width: 700px) {
    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}
@media (max-width: 500px) {
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}
/* Галочка также имеет hover эффект для симметрии с лупой */
.brand-icon:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.menu-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: clamp(0.7rem, 0.8vw + 0.5rem, 1rem);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}
@media (max-width: 600px) {
    .menu-button {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}
.menu-button:hover {
    background-color: var(--accent-color);
}

/* Контейнер сегментов */
.segments-container {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
    position: relative;
    /* Убеждаемся, что контейнер не скрывается за другими элементами */
    z-index: 10;
}

/* Слот для сегментов */
.segment-slot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    padding: 0.25rem;
    background-color: var(--slot-bg);
    border-radius: 24px;
    /* Разрешаем горизонтальную прокрутку. Скрываем вертикальный скролл */
    overflow-x: auto;
    overflow-y: hidden;
    /* Скрываем скроллбар для WebKit и Firefox */
    scrollbar-width: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    /* Плавная прокрутка */
    scroll-behavior: smooth;
    /* Убеждаемся, что прокрутка работает на touch-устройствах */
    -webkit-overflow-scrolling: touch;
}

/* Скрываем ползунок скролла для WebKit */
.segment-slot::-webkit-scrollbar {
    display: none;
}

/* Круглый ползунок (тумблер) */
.segment-knob {
    /* Скрываем графический тумблер — его роль будет выполнять
       подсветка самой активной вкладки. */
    display: none;
}

/* Сегментная кнопка */
.segment-tab {
    position: relative;
    background: none;
    /* Тонкая светлая граница вокруг каждой вкладки, напоминающая обводку.
       Этот бордер подчёркивает кнопки внутри тёмной выемки. */
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    font-size: clamp(0.6rem, 0.8vw + 0.45rem, 0.9rem);
    padding: 0.35rem 0.8rem;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    z-index: 1;
    transition: color 0.25s ease, transform 0.2s ease;
    /* Запрещаем ужимание вкладок: ширина определяется содержимым. */
    flex: 0 0 auto;
    /* Убеждаемся, что кнопки кликабельны и не перекрываются */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 600px) {
    .segment-tab {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}
/*
 * Когда сегмент выбран, мы хотим визуально подчеркнуть его
 * объёмным «ползунком» позади него. Вместо отдельного элемента,
 * который трудно позиционировать при прокрутке, используем
 * псевдоэлемент ::before. Он расширяется на несколько пикселей
 * за края кнопки и заполняется градиентом. Благодаря этому
 * выделение всегда остаётся в пределах вкладки, даже если
 * контейнер горизонтально прокручивается, что устраняет ошибку
 * с выезжающим ползунком на узких экранах.
 */
.segment-tab.active {
    position: relative;
    color: #fff;
    font-weight: 600;
    z-index: 1;
    border-color: transparent;
}
.segment-tab.active::before {
    content: '';
    position: absolute;
    /* Расширяем фон немного наружу, создавая «тумблер» */
    top: -4px;
    bottom: -4px;
    left: -6px;
    right: -6px;
    border-radius: 20px;
    background: var(--slot-knob);
    z-index: -1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Изменяем цвет текста при наведении только для неактивных вкладок */
.segment-tab:hover:not(.active) {
    color: var(--primary-color);
}

/* Кнопка для прокрутки сегментов */
.segments-scroll {
    /* Стрелка прокрутки не используется. Поля объявлены, но элемент скрыт. */
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}


/* ????????? */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    position: relative;
    /* ??????????? ?>?????< ??????????? ????????? ?? ???'???'?????? */
    min-width: 40px;
    z-index: 10;
}
.search-input {
    width: 0;
    max-width: var(--search-open-width);
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.25s ease 0.05s,
                box-shadow 0.25s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.search-input::placeholder {
    color: #888;
}
.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}
.search-btn-icon {
    /* ???'???'???????? ?????????? ?>?????<, ???????>???????????? ?????>?????? */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
@media (max-width: 700px) {
    .search-btn-icon {
        width: 36px;
        height: 36px;
    }
    .search-btn-icon svg {
        width: 16px;
        height: 16px;
    }
}
/* ????????????? ????????'??? ???>?? ?>?????< */
.search-btn-icon:active {
    transform: scale(0.92);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.search-btn-icon:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* ???'??>???????? SVG ???????'???? ??????????: ???????>???????' ?????' ???' ????????'??>? */
.search-btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}
/* ?????? ????????'??? ?>?????? ???>?????? ????????????????????'???? */
.search-btn-icon:active svg {
    transform: scale(0.9);
}

/* ??????????<?'??? ???'??????? ?????????? ??? ?????????? ?>?????< */
.search-container.expanded .search-input {
    width: var(--search-open-width);
    padding: 0.45rem 0.7rem;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.search-container.expanded {
    gap: 0.4rem;
}
@media (max-width: 700px) {
    .search-container.expanded .search-input {
        font-size: 0.85rem;
    }
    :root {
        --search-open-width: min(280px, 82vw);
    }
}
@media (max-width: 480px) {
    :root {
        --search-open-width: min(240px, 88vw);
    }
}

/* �'�<�����?���?�%��� �?��?�? */
.menu-dropdown {
    position: absolute;
    /* �������?��%����? �?��?�? �?���� �?�?�?�?�?�?�?�� �����?��>�� �? �?��+�?�>�?�?��? �?�'�?�'�?���?�? */
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: none;
    /* �?��?�? �?���?���?�>���?����'�?�? ���?�?��?�: �?�?�?�?��: �?�>��?��?�'�?�? �?�?�?�'�?�� �?������� */
    z-index: 999;
}
.menu-dropdown.active {
    display: block;
}

/* �'�?�?�'�?��?�?�?�? �<�?�<��?����> �?�>�? �?���?��?�<�?���?�%��?�?�?�? �?��?�? */
.dropdown-slot {
    background-color: var(--slot-bg);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dropdown-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.dropdown-content .drop-column {
    width: 100%;
}
.drop-column h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.drop-column ul {
    list-style: none;
}
.drop-column li {
    margin-bottom: 0.4rem;
}
.drop-column a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.drop-column a:hover {
    color: var(--primary-color);
}
@media (max-width: 800px) {
    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ?????? ??????????<?'???? ?????????? ???????????'?< ???????????'????, ??'???+?< ?????????+??????'?? ??????'?? */
.main-nav:has(.search-container.expanded) .segments-container {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}
/* ???>???'????????'??????<?? ???????????+ ???>?? ?+??????????????? ?+??? ??????????????? :has() - ??????? JavaScript ??>?????? */
.main-nav.search-expanded .segments-container {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}
/* padding so tabs stay clickable under overlayed search */
@media (max-width: 500px) {
    .dropdown-content {
        grid-template-columns: 1fr;
    }
    .dropdown-slot {
        padding: 1rem;
    }
    .menu-dropdown {
        padding: 1rem;
    }
    .drop-column h3 {
        font-size: 1rem;
    }
    .drop-column a {
        font-size: 0.85rem;
    }
    /* mobile search sizing */
    .search-container.expanded .search-input {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
}

/* Главный герой */
.hero {
    --hero-primary-color: var(--primary-color);
    --hero-secondary-color: var(--secondary-color);
    --hero-accent-color: var(--accent-color);
    --hero-light-start: rgba(255, 255, 255, 0.96);
    --hero-light-end: rgba(245, 243, 252, 0.9);
    --hero-shadow: rgba(108, 96, 203, 0.25);
    --hero-chip-bg: rgba(164, 158, 233, 0.18);
    --hero-card-bg: rgba(255, 255, 255, 0.95);
    --hero-card-border: rgba(255, 255, 255, 0.65);
    --hero-card-shadow: rgba(108, 96, 203, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    min-height: 100vh;
    padding: 3.5rem 2.5rem 2.5rem;
    position: relative;
    max-width: 90%;
    margin: 0 auto 2rem;
    transition: box-shadow 0.5s ease, transform 0.4s ease;
    border-radius: 36px;
    perspective: 1300px;
    z-index: 0;
    overflow: hidden;
    box-shadow: 0 30px 55px var(--hero-shadow);
    border: 1px solid var(--hero-card-border);
}
@media (max-width: 600px) {
    .hero {
        min-height: auto;
    }
}
.hero::before {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: inherit;
    background: rgba(20, 18, 45, 0.18);
    filter: blur(28px);
    opacity: 0.55;
    z-index: -2;
    transition: opacity 0.4s ease;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, var(--hero-light-start), var(--hero-light-end));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 25px 45px rgba(20, 19, 46, 0.12);
    backdrop-filter: blur(18px);
    z-index: -1;
}
.hero > * {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.hero-text {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.hero-text h1 {
    font-size: 2.4rem;
    margin: 0;
    color: var(--hero-primary-color);
    transition: color 0.4s ease;
}
.hero-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(29, 39, 70, 0.75);
    transition: color 0.4s ease;
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img {
    width: 100%;
    max-width: 520px;
    display: block;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(19, 17, 46, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero.carousel-sliding .hero-image img {
    box-shadow: 0 22px 45px rgba(19, 17, 46, 0.14);
}
.hero.carousel-sliding .hero-text {
    animation: heroCarouselLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero.carousel-sliding .hero-image {
    animation: heroCarouselRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes heroCarouselLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
@keyframes heroCarouselRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateX(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem 2rem;
        text-align: center;
        min-height: auto;
    }
    .hero-text {
        align-items: center;
        gap: 1.2rem;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    /* На маленьких экранах кнопка центрируется, но не растягивается */
    .hero-text .choose-btn {
        align-self: center;
    }
    .hero-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .hero-image img {
        max-width: 280px;
    }
    .quick-access,
    .values,
    .services {
        padding: 2rem 1.2rem;
        border-radius: 24px;
    }
    .quick-access h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2rem 1rem 1.5rem;
        border-radius: 24px;
        margin-bottom: 1.5rem;
    }
    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .hero-image {
        margin-bottom: 1rem;
    }
    .hero-image img {
        max-width: 220px;
    }
    .quick-access .mini-card {
        flex: 1 1 46%;
        padding: 0.7rem 0.8rem;
        gap: 0.35rem;
    }
    .quick-access .mini-icon {
        width: 48px;
        height: 48px;
    }
    .quick-access .mini-icon img {
        width: 28px;
        height: 28px;
    }
    .quick-access .mini-card span {
        font-size: 0.75rem;
    }
    .quick-access,
    .values,
    .services {
        padding: 1.8rem 1rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    .quick-access h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .value-card,
    .service-card {
        padding: 1.2rem;
    }
    .value-card h3,
    .service-card h3 {
        font-size: 1.1rem;
    }
    .value-card p,
    .service-card p {
        font-size: 0.85rem;
    }
}

/* Блок быстрого доступа */
.quick-access {
    padding: 3.5rem 2.5rem;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 55px rgba(108, 96, 203, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: box-shadow 0.5s ease, transform 0.4s ease;
}
@media (max-width: 600px) {
    .quick-access {
        margin-bottom: 1.2rem;
    }
}
.quick-access::before {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: inherit;
    background: rgba(20, 18, 45, 0.18);
    filter: blur(28px);
    opacity: 0.55;
    z-index: -2;
    transition: opacity 0.4s ease;
}
.quick-access::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 252, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 25px 45px rgba(20, 19, 46, 0.12);
    backdrop-filter: blur(18px);
    z-index: -1;
}
.quick-access > * {
    position: relative;
    z-index: 1;
}
.quick-access h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}
/* Мини-карты в блоке быстрого доступа */
.quick-access .mini-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}
@media (max-width: 600px) {
    .quick-access .mini-cards {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
}
.quick-access .mini-card {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    gap: 0.45rem;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(108, 96, 203, 0.15);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.quick-access .mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(108, 96, 203, 0.2);
}
.quick-access .mini-card:active {
    transform: translateY(0) scale(0.97);
}
.quick-access .mini-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: rgba(164, 158, 233, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.25), 0 14px 26px rgba(18, 18, 38, 0.16);
    transition: transform 0.25s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.quick-access .mini-card:hover .mini-icon {
    transform: scale(1.05);
}
.quick-access .mini-card:active .mini-icon {
    transform: scale(0.96);
}
.quick-access .mini-icon img {
    width: 32px;
    height: 32px;
}
.quick-access .mini-card span {
    font-size: 0.85rem;
    color: rgba(29, 39, 70, 0.75);
    font-weight: 500;
}
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .quick-cards {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
}
.quick-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.quick-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.1rem;
}
.quick-card p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}
.quick-card .btn {
    font-size: 0.8rem;
}

/* Блок ценностей */
.values {
    padding: 3.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 55px rgba(108, 96, 203, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: box-shadow 0.5s ease, transform 0.4s ease;
}
@media (max-width: 600px) {
    .values {
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }
}
.values::before {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: inherit;
    background: rgba(20, 18, 45, 0.18);
    filter: blur(28px);
    opacity: 0.55;
    z-index: -2;
    transition: opacity 0.4s ease;
}
.values::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 252, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 25px 45px rgba(20, 19, 46, 0.12);
    backdrop-filter: blur(18px);
    z-index: -1;
}
.values > * {
    position: relative;
    z-index: 1;
}
.value-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.value-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-color);
}
.value-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Блок сервисов */
.services {
    padding: 3.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 55px rgba(108, 96, 203, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: box-shadow 0.5s ease, transform 0.4s ease;
}
@media (max-width: 600px) {
    .services {
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }
}
.services::before {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: inherit;
    background: rgba(20, 18, 45, 0.18);
    filter: blur(28px);
    opacity: 0.55;
    z-index: -2;
    transition: opacity 0.4s ease;
}
.services::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 252, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 25px 45px rgba(20, 19, 46, 0.12);
    backdrop-filter: blur(18px);
    z-index: -1;
}
.services > * {
    position: relative;
    z-index: 1;
}
.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-color);
}
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Общие кнопки */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* ======== Каталог специалистов ======== */
.catalog {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.catalog-heading h1 {
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    margin-bottom: 0.75rem;
}
.catalog-heading .catalog-intro {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(27, 35, 61, 0.85);
}
/* catalog layout */
.catalog-layout {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}
.catalog-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(22, 28, 45, 0.12);
    backdrop-filter: blur(16px);
    max-height: none;
    overflow: visible;
}
.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.sidebar-label {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(27, 35, 61, 0.65);
}
.catalog-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.segment-pill {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    color: rgba(27, 35, 61, 0.85);
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.segment-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(17, 25, 40, 0.15);
}
.segment-pill.active {
    background: linear-gradient(120deg, #8d7bff, #5f91ff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 32px rgba(93, 111, 255, 0.35);
}
.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(27, 35, 61, 0.7);
}
.filter-field select,
.filter-field input[type="text"],
.filter-field input[type="number"] {
    padding: 0.65rem 0.9rem;
    padding-right: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(114, 126, 180, 0.25);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4), 0 8px 18px rgba(18, 22, 45, 0.08);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2.5L8 8L14 2.5' stroke='%236e6aa8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 9px;
}
.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--slot-knob);
    box-shadow: 0 0 0 2px rgba(108, 96, 203, 0.2);
}
.catalog-sidebar.collapsible {
    max-height: none;
    overflow: visible;
}
.catalog-sidebar.collapsible .sidebar-block {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(114, 126, 180, 0.18);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(22, 28, 45, 0.08);
}
.catalog-sidebar.collapsible .sidebar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}
.catalog-sidebar.collapsible .sidebar-label::after {
    content: '';
    position: absolute;
    right: 0;
    width: 12px;
    height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2.5L8 8L14 2.5' stroke='%236e6aa8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}
.catalog-sidebar.collapsible .sidebar-block.collapsed .sidebar-label::after {
    transform: rotate(-90deg);
}
.catalog-sidebar.collapsible .sidebar-block.collapsed > :not(.sidebar-label) {
    display: none;
}

/* Кастомные выпадающие фильтры */
.filter-field.custom-select {
    position: relative;
}
.filter-field.custom-select select {
    display: none;
}
.custom-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(114, 126, 180, 0.25);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
    font-size: 0.95rem;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4), 0 8px 18px rgba(18, 22, 45, 0.08);
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.custom-select-display:hover {
    box-shadow: 0 10px 20px rgba(22, 28, 45, 0.08);
    transform: translateY(-1px);
}
.custom-select-arrow {
    width: 16px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2.5L8 8L14 2.5' stroke='%236e6aa8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.25s ease;
}
.custom-select-panel {
    position: relative;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.25s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(114, 126, 180, 0.18);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(22, 28, 45, 0.12);
    margin-top: 0.35rem;
    padding: 0 0.1rem;
}
.custom-select-options {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}
.custom-select-options li {
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.custom-select-options li:hover {
    background: rgba(114, 126, 180, 0.12);
    transform: translateX(2px);
}
.filter-field.custom-select.open .custom-select-panel {
    max-height: 240px;
    padding: 0.2rem 0.1rem 0.4rem;
}
.filter-field.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}
.catalog-results {
    width: 100%;
}
.results-surface {
    position: relative;
    padding: 2.5rem;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(137, 151, 255, 0.22), rgba(111, 224, 255, 0.15));
    overflow: hidden;
    box-shadow: 0 40px 65px rgba(16, 21, 50, 0.15);
    backdrop-filter: blur(22px);
}
.results-surface::before,
.results-surface::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 70%);
    opacity: 0.6;
    z-index: 0;
}
.results-surface::before {
    top: -60px;
    right: -40px;
}
.results-surface::after {
    bottom: -80px;
    left: -60px;
}
.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.results-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}
.results-meta {
    font-size: 0.9rem;
    color: rgba(27, 35, 61, 0.8);
    margin-bottom: 0.35rem;
}
.results-meta.accent {
    color: #425fff;
    font-weight: 600;
}
.results-meta span {
    font-weight: 600;
}
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .catalog-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
    .specialists-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1100px) {
    .specialists-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .catalog-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}
@media (max-width: 900px) {
    .catalog-sidebar {
        position: static;
    }
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .catalog {
        padding: 3rem 1rem;
    }
    .results-surface {
        padding: 1.8rem;
    }
    .specialists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}
.specialist-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 30px 50px rgba(20, 24, 60, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.specialist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 70px rgba(20, 24, 60, 0.22);
}
.specialist-card img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.specialist-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
}
.specialist-card p {
    font-size: 0.9rem;
    color: rgba(27, 35, 61, 0.78);
    margin-bottom: 0.8rem;
}
.specialist-card .rating {
    margin-bottom: 0.8rem;
}
.specialist-card .rating span {
    color: #ffc107;
    font-size: 1rem;
    margin-right: 2px;
}
.specialist-card .price {
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.specialist-card .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}
.specialist-card .actions a {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.6rem;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #fff;
    transition: transform 0.1s ease;
}
.specialist-card .actions a.detail {
    background: var(--slot-knob);
}
.specialist-card .actions a.book {
    background: linear-gradient(90deg, #a2c5ff, #70a0ff);
}
.specialist-card .actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.catalog-empty-state {
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(66, 95, 255, 0.35);
    box-shadow: inset 0 1px 4px rgba(255,255,255,0.6);
    color: rgba(27, 35, 61, 0.85);
}
.catalog-empty-state strong {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}
/* Кнопка «Выбрать специалиста» в секции героя */
.choose-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.6rem;
    border-radius: 24px;
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 20px 36px var(--hero-shadow, rgba(0, 0, 0, 0.15));
    /* Предотвращаем растягивание кнопки - она должна быть по размеру текста */
    align-self: flex-start;
    width: fit-content;
    display: inline-block;
}
.hero .choose-btn {
    box-shadow: 0 20px 36px var(--hero-shadow);
}
.hero .choose-btn:hover,
.choose-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 48px var(--hero-shadow, rgba(0, 0, 0, 0.2));
}
.hero .choose-btn:active,
.choose-btn:active {
    transform: translateY(0) scale(0.98);
}
/* Применяем цвета темы к кнопке в hero */
.hero.theme-youth .choose-btn,
.hero.theme-families .choose-btn,
.hero.theme-specialists .choose-btn,
.hero.theme-premium .choose-btn {
    background: linear-gradient(90deg, var(--hero-primary-color), var(--hero-secondary-color));
}
.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Ссылки для внутренних страниц (На главную, Выбрать специалиста, Записаться) */
.page-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.page-links a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-color);
    transition: background 0.2s ease, color 0.2s ease;
}
.page-links a:hover {
    background: var(--slot-knob);
    color: #fff;
}

/* Убираем подсветку при фокусе на элементах навигации внутренних страниц */
.page-links a:focus {
    outline: none;
    background: transparent;
    color: var(--text-color);
}

/* Форма записи на приём */
.appointment-form {
    max-width: 600px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.appointment-form .form-row {
    display: flex;
    flex-direction: column;
}
.appointment-form label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--text-color);
}
.appointment-form button.btn {
    align-self: flex-start;
}

/* Детальная страница специалиста */
.specialist-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.specialist-detail .detail-image {
    flex: 1 1 300px;
}
.specialist-detail .detail-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.specialist-detail .detail-info {
    flex: 1 1 300px;
}
.specialist-detail .detail-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-color);
}
.specialist-detail .detail-info .rating {
    margin-bottom: 0.5rem;
}
.specialist-detail .detail-info p {
    margin-bottom: 0.6rem;
    color: #555;
}
.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.detail-actions .btn {
    flex: 1;
}
.btn.outline {
    background: transparent;
    border: 2px solid var(--slot-knob-color, #8fa9ff);
    color: var(--text-color);
}
.btn.outline:hover {
    background: var(--slot-knob);
    color: #fff;
}

/* Маскот */
.mascot {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: float 4s ease-in-out infinite;
}
.mascot-face {
    font-size: 2rem;
    pointer-events: none;
}
.mascot-bubble {
    position: absolute;
    top: -3rem;
    right: 90%;
    background-color: #fff;
    color: var(--text-color);
    padding: 0.6rem 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 220px;
    font-size: 0.8rem;
}
.mascot-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
@keyframes float {
    0% { transform: translateY(0) }
    50% { transform: translateY(-6px) }
    100% { transform: translateY(0) }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    /* Тёмный фон подвала помогает визуально отделить конец страницы */
    background-color: #1f193a;
    color: #eee;
}
footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Общий стиль для информационных страниц (ресурсы, форум, миссия и др.).
   Контент размещается в колонке ограниченной ширины и центрируется.
   Это помогает визуально ограничить ширину текста и гармонично смотрится
   с шириной меню. */
.resource-page {
    max-width: 90%;
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
    text-align: left;
    line-height: 1.6;
}

/* === Menu current-page highlight === */
header .top-mini-nav a[aria-current="page"],
header nav.mini-nav a[aria-current="page"],
header .menu-dropdown a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
}
header .menu-dropdown .drop-column h3.is-current,
header .menu-dropdown .drop-column h4.is-current {
    text-decoration: underline;
}
/* Стиль для всплывающей подсказки о возврате на главную */
/* Всплывающая подсказка о возврате на главную. Размещается внутри .brand-icon,
   поэтому позиционируется абсолютно относительно неё. При помощи псевдоэлемента
   ::after создаём стрелочку-указатель. */
.home-hint {
    position: absolute;
    bottom: calc(100% + 6px); /* располагается над стрелкой */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(33, 22, 66, 0.9);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}
.home-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(33, 22, 66, 0.9) transparent transparent transparent;
}
/* Скрытие старой шапки на всех страницах */
header.legacy-header {
    display: none;
}
