/* ============================================================
   ЮНА Aqua Life — Первомайская. Дизайн-система сайта.
   Один файл: токены → база → компоненты → страницы → адаптив.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
    --teal-900: #003238;
    --teal-800: #00484e;
    --teal-700: #005359;
    --teal-600: #00707a;
    --teal-500: #048b98;
    --aqua-500: #00b0c4;
    --aqua-400: #2ac6d8;
    --aqua-200: #a9e4ed;
    --aqua-100: #d8f2f6;
    --aqua-50: #eefafc;

    --ink: #10262a;
    --muted: #5c757a;
    --line: #dde9eb;
    --bg: #ffffff;
    --bg-soft: #f4fafb;

    --accent: #d81e3c;
    --accent-dark: #ae1730;
    --gold: #f2b705;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(0, 50, 56, .06), 0 2px 8px rgba(0, 50, 56, .05);
    --shadow: 0 4px 12px rgba(0, 50, 56, .08), 0 12px 32px rgba(0, 50, 56, .07);

    --wrap: 1180px;
    --header-h: 92px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 700; }

/* Blazor переводит фокус на заголовок после перехода по ссылке — это правильно для
   скринридеров, но рисовать при этом рамку мыши незачем. Клавиатурный фокус остаётся. */
h1:focus:not(:focus-visible) { outline: none; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--aqua-500); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 840px; }

.section { padding: clamp(44px, 6vw, 84px) 0; }
.section--soft { background: var(--bg-soft); }
.section--aqua { background: linear-gradient(160deg, var(--aqua-50), #ffffff 70%); }

.section__head { max-width: 720px; margin-bottom: 34px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: .6em;
}

.lead { font-size: 1.2rem; color: var(--muted); }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--teal { background: var(--teal-700); color: #fff; }
.btn--teal:hover { background: var(--teal-800); color: #fff; }

.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--aqua-200); }
.btn--ghost:hover { background: var(--aqua-50); color: var(--teal-800); }

.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { background: #fff; color: var(--teal-800); }

.btn--wide { width: 100%; }

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    max-width: var(--wrap);
    margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo__mark { width: 54px; height: 54px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 1.12rem; color: var(--teal-800); letter-spacing: .01em; }
.logo__tag { font-size: .74rem; color: var(--muted); text-transform: lowercase; }

.header__contacts { margin-left: auto; text-align: right; line-height: 1.3; }
.header__phone { font-size: 1.22rem; font-weight: 800; color: var(--teal-800); white-space: nowrap; }
.header__phone:hover { color: var(--aqua-500); }
.header__addr { font-size: .85rem; color: var(--muted); }
.header__addr a { color: var(--teal-600); border-bottom: 1px dashed currentColor; }

.header__cta { flex: 0 0 auto; }

/* Навигация: пять пунктов в один ряд, вложенное — в выпадающих блоках */
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav__inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
/* Отрицательное поле компенсирует внутренний отступ ссылок: иначе текст первого пункта
   стоит на 16px правее логотипа и заголовков, и меню выглядит съехавшим. */
.nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0 -16px; padding: 0; }
.nav__list > li { margin: 0; }

.nav__item { position: relative; }
.nav__row { display: flex; align-items: center; }

.nav__link {
    display: block;
    padding: 14px 16px 14px 16px;
    font-size: .97rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--teal-600); }
.nav__link.is-active { color: var(--teal-700); border-bottom-color: var(--aqua-500); }
.nav__item:hover .nav__link { color: var(--teal-600); }

/* Чекбокс работает только в мобильном меню, на широком экране он ни на что не влияет. */
.nav__fold { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav__fold-btn {
    display: flex;
    align-items: center;
    padding: 14px 14px 14px 0;
    margin-left: -10px;
    pointer-events: none;
}

.nav__chevron {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .15s;
}
.nav__item:hover .nav__chevron { transform: translateY(-1px) rotate(225deg); border-color: var(--teal-600); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Выпадающий блок. visibility скрывает его от Tab, пока пункт не получил фокус, —
   а как только фокус приходит на сам пункт, блок появляется и его ссылки становятся доступны. */
.nav__drop {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    display: flex;
    gap: 34px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover > .nav__drop,
.nav__item:focus-within > .nav__drop { opacity: 1; visibility: visible; transform: none; }

/* Мега-меню: панель во всю ширину контейнера, колонки раскладываются внутри. */
.nav__item--wide { position: static; }
.nav__item--wide > .nav__drop {
    left: 20px;
    right: 20px;
    justify-content: space-between;
    border-radius: var(--radius);
    border-top: 1px solid var(--line);
}

.nav__col ul { list-style: none; margin: 0; padding: 0; min-width: 216px; }
.nav__col li { margin: 0; }
.nav__col-title {
    margin: 0 0 10px;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--muted);
}
.nav__col a {
    display: block;
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
}
.nav__col a:hover { background: var(--aqua-50); color: var(--teal-700); }
.nav__col a.is-active { background: var(--aqua-50); color: var(--teal-700); }
.nav__sub-title { display: block; font-weight: 600; font-size: .95rem; }
.nav__sub-note { display: block; margin-top: 1px; font-size: .8rem; line-height: 1.35; color: var(--muted); }

/* Бургер (чистый CSS, без JS) */
.burger { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.burger__btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-weight: 700;
    color: var(--teal-800);
    cursor: pointer;
}
.burger__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.burger__bars i { display: block; width: 18px; height: 2px; background: var(--teal-700); border-radius: 2px; }

/* ---------- Панель действий на мобильных ---------- */
.mobile-actions { display: none; }

/* ---------- Подвал ---------- */
.footer {
    background: var(--teal-900);
    color: rgba(255, 255, 255, .78);
    padding: 54px 0 26px;
    font-size: .95rem;
}
.footer a { color: #fff; }
.footer a:hover { color: var(--aqua-200); }
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer h4 { color: #fff; margin-bottom: .8em; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5em; }
.footer__phone { font-size: 1.35rem; font-weight: 800; color: #fff; display: inline-block; margin-bottom: .2em; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    justify-content: space-between;
    padding-top: 22px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Плашка-хлебные крошки ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--teal-600); }

/* ---------- Герой ---------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    /* Снимок не во весь экран, а по ширине контейнера — вровень с остальным содержимым.
       Текст внутри остаётся на прежнем месте: отступы .wrap никуда не делись. */
    max-width: var(--wrap);
    margin: 22px auto 0;
    border-radius: var(--radius-lg);
    /* Фото клуба + затемняющая заливка слева, чтобы текст читался поверх снимка. */
    background:
        linear-gradient(100deg,
            rgba(0, 40, 45, .95) 0%,
            rgba(0, 45, 50, .86) 34%,
            rgba(0, 50, 56, .55) 62%,
            rgba(0, 50, 56, .22) 100%),
        var(--teal-900) url("../img/hero-wide.jpg") center / cover no-repeat;
}
.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    padding: clamp(56px, 8vw, 110px) 0;
}
.hero h1 { color: #fff; margin-bottom: .4em; text-wrap: balance; }
.hero .kicker { color: var(--aqua-200); }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__price {
    display: inline-flex;
    align-items: baseline;
    gap: .5em;
    margin-top: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    font-weight: 700;
}
.hero__price b { font-size: 1.15rem; color: var(--gold); }

/* Счётчик загрузки клуба */
.occupancy {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 10px 20px;
    background: var(--aqua-50);
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    color: var(--teal-800);
}
.occupancy__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #35b96b;
    box-shadow: 0 0 0 4px rgba(53, 185, 107, .18);
}

/* ---------- Заглушки изображений ---------- */
.ph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .5) 0 12px, transparent 12px 24px),
        linear-gradient(140deg, var(--aqua-200), var(--aqua-100));
    color: var(--teal-700);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px dashed rgba(0, 83, 89, .3);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--round { border-radius: 50%; aspect-ratio: 1; }
.ph span { max-width: 80%; }

/* ---------- Фотографии: те же пропорции, что у заглушек ---------- */
.photo {
    width: 100%;
    /* height:auto обязателен — иначе атрибут height у <img> перебивает aspect-ratio */
    height: auto;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: var(--aqua-100);
}
.photo.ph--wide { aspect-ratio: 16 / 9; }
.photo.ph--round { border-radius: 50%; aspect-ratio: 1; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); margin: .8em 0 0; padding-left: 1.1em; }

.card--link { display: block; color: inherit; transition: box-shadow .18s, transform .18s, border-color .18s; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--aqua-200); color: inherit; }

.card--media { padding: 0; overflow: hidden; }
.card--media .ph,
.card--media .photo { border-radius: 0; border: 0; border-bottom: 1px dashed rgba(0, 83, 89, .25); }
.card--media .card__body { padding: 22px 24px 26px; }

.icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--aqua-50);
    color: var(--teal-600);
    margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Карточки тарифов ---------- */
.tariffs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
.tariffs--compact { grid-template-columns: repeat(3, 1fr); gap: 18px; }

.tariff {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.tariff--featured {
    border-color: var(--aqua-400);
    border-width: 2px;
    box-shadow: var(--shadow);
}

.tariff__badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tariff__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--teal-800);
}

.tariff__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.tariff__now { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tariff__old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.tariff__save {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--aqua-50);
    color: var(--teal-700);
    font-size: .78rem;
    font-weight: 800;
}

.tariff__permonth {
    margin: 6px 0 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--teal-600);
}

.tariff__summary {
    margin: 14px 0 22px;
    font-size: .92rem;
    color: var(--muted);
    flex: 1;
}

/* Общий список «что входит» — один на всю линейку, чтобы не дублировать в каждой карточке */
.included {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 28px;
    list-style: none;
    margin: 0;
    padding: 24px 26px;
    background: var(--aqua-50);
    border: 1px solid var(--aqua-200);
    border-radius: var(--radius);
}
.included li {
    margin: 0;
    padding-left: 26px;
    position: relative;
    font-size: .95rem;
}
.included li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .5em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--teal-600);
    border-bottom: 2px solid var(--teal-600);
    transform: rotate(-45deg);
}

/* Гостевой визит — отдельное предложение, а не строка прайса */
.guest {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: center;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--aqua-200);
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, var(--aqua-50), #fff 65%);
}
.guest h2 { margin-bottom: .35em; }
.guest p { color: var(--muted); margin-bottom: 0; }
.guest__prices { display: flex; gap: 26px; flex-wrap: wrap; }
.guest__price { }
.guest__price b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--teal-800); }
.guest__price span { font-size: .88rem; color: var(--muted); }

/* ---------- Таблица цен ---------- */
.price-group { margin-bottom: 44px; }
.price-group > h3 {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--aqua-200);
    margin-bottom: 0;
}

.price-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.price-table th {
    text-align: right;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 700;
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
}
.price-table th:first-child { text-align: left; }
.price-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: right; }
.price-table td:first-child { text-align: left; }
.price-table tr:hover td { background: var(--aqua-50); }
.price-table__title { font-weight: 600; }
.price-table__note { display: block; font-size: .85rem; color: var(--muted); margin-top: 3px; }
.price-table__old { color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.price-table__now { font-weight: 800; color: var(--teal-800); white-space: nowrap; font-size: 1.05rem; }
.badge-sale {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- Расписание ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule { width: 100%; border-collapse: collapse; min-width: 900px; font-size: .88rem; }
.schedule th, .schedule td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 10px; vertical-align: top; }
.schedule th:last-child, .schedule td:last-child { border-right: 0; }
.schedule thead th { background: var(--teal-800); color: #fff; font-weight: 700; text-align: center; position: sticky; top: 0; }
.schedule tbody th { background: var(--bg-soft); font-weight: 800; color: var(--teal-800); text-align: center; white-space: nowrap; width: 76px; }
.schedule td { min-width: 128px; }
.schedule .cls__name { font-weight: 700; color: var(--teal-800); display: block; }
.schedule .cls__meta { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.schedule .cls--paid { background: #fff8e6; }
.schedule .cls__paid { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 800; color: #a3730a; text-transform: uppercase; letter-spacing: .05em; }

.schedule-day { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.schedule-day > summary { padding: 14px 18px; font-weight: 800; color: var(--teal-800); background: var(--bg-soft); cursor: pointer; }
.schedule-day__list { list-style: none; margin: 0; padding: 0; }
.schedule-day__list li { display: flex; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); margin: 0; }
.schedule-day__time { font-weight: 800; color: var(--teal-700); flex: 0 0 54px; }


/* ---------- Тренеры ---------- */
.coach {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: start;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.coach + .coach { margin-top: 24px; }
.coach__name { margin: 0 0 .15em; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); }
.coach__role { margin: 0 0 1.1em; color: var(--teal-600); font-weight: 700; }
.coach__credentials { list-style: none; margin: 0 0 1.1em; padding: 0; }
.coach__credentials li {
    position: relative;
    margin-bottom: .5em;
    padding-left: 26px;
}
.coach__credentials li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: .55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--aqua-100);
    box-shadow: inset 0 0 0 3px var(--teal-600);
}
.coach__education { font-size: .93rem; color: var(--muted); margin-bottom: 1.1em; }

/* ---------- Отзывы ---------- */
.review {
    margin: 0;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.review blockquote {
    margin: 0 0 18px;
    padding: 0;
    font-size: 1.02rem;
    line-height: 1.55;
}
.review blockquote::before { content: "«"; }
.review blockquote::after { content: "»"; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review__author { font-weight: 700; color: var(--teal-800); }
.review__context, .review__source { font-size: .85rem; color: var(--muted); }

.trainer { text-align: center; }
.trainer .ph { margin-bottom: 14px; }
.trainer__name { font-weight: 800; margin-bottom: .1em; }
.trainer__role { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.tag { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--aqua-50); color: var(--teal-700); }

/* ---------- CTA-полоса ---------- */
.cta {
    background: linear-gradient(120deg, var(--teal-800), var(--teal-600));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 46px);
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 26px;
    align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Форма заявки ---------- */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--teal-800); }
.field input, .field select, .field textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--aqua-400);
    outline-offset: 1px;
    border-color: var(--aqua-400);
}
.field .validation-message, .validation-message { color: var(--accent); font-size: .85rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-success {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #eaf8ef;
    border: 1px solid #b8e3c6;
    color: #1c6b39;
}

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 18px 22px; font-weight: 700; color: var(--teal-800); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 800; color: var(--aqua-500); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt, .contact-list__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.contact-list__value { font-size: 1.05rem; font-weight: 600; }
.contact-list__value a { font-weight: 700; }

.map {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--aqua-50);
    box-shadow: var(--shadow-sm);
}
.map iframe { display: block; width: 100%; height: 400px; border: 0; }
.map__note {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    justify-content: space-between;
    align-items: baseline;
    padding: 13px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    color: var(--muted);
}
.map__note a { font-weight: 600; white-space: nowrap; }

.route { border-left: 3px solid var(--aqua-200); padding-left: 18px; margin-bottom: 22px; }
.route h4 { color: var(--teal-800); margin-bottom: .4em; }
.route ul { margin: 0; color: var(--muted); }

/* ---------- Сеть клубов ---------- */
.club-card { display: grid; grid-template-columns: 260px 1fr; gap: 0; overflow: hidden; padding: 0; }
.club-card__body { padding: 24px 26px; }
.club-card__site { font-weight: 700; }
.club-card .features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.club-card .features li { margin: 0; font-size: .82rem; padding: 4px 11px; border-radius: 999px; background: var(--aqua-50); color: var(--teal-700); }
.club-card--current { border-color: var(--aqua-400); box-shadow: var(--shadow); }
.chip-current {
    display: inline-block; margin-bottom: 8px; padding: 3px 11px; border-radius: 999px;
    background: var(--teal-700); color: #fff; font-size: .76rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Галерея фототура ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .ph,
.gallery .photo { aspect-ratio: 3 / 2; }

/* ---------- Прочее ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--narrow-media { grid-template-columns: 1.15fr .85fr; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: #fff2c4;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .club-card { grid-template-columns: 200px 1fr; }
    .tariffs { grid-template-columns: repeat(2, 1fr); }
    .tariffs--compact { grid-template-columns: repeat(2, 1fr); }
    .included { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    body { font-size: 16px; }

    /* Шапка компактнее: телефон и кнопка магазина живут в нижней панели действий,
       поэтому здесь остаются логотип, кнопка меню и строка адреса. */
    .header__bar { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
    .logo { order: 0; }
    .burger__btn { order: 1; margin-left: auto; display: inline-flex; }
    .header__contacts { order: 2; flex-basis: 100%; margin-left: 0; text-align: left; }
    .header__phone { display: none; }
    .header__cta { display: none; }

    /* Нижняя панель действий */
    body { padding-bottom: 78px; }
    .mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: 1fr 1.25fr;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 18px rgba(0, 50, 56, .1);
    }
    .mobile-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 999px;
        font-weight: 700;
        line-height: 1.2;
    }
    .mobile-actions svg { width: 19px; height: 19px; flex: none; }
    .mobile-actions__call { background: #fff; color: var(--teal-700); border: 1px solid var(--aqua-200); }
    .mobile-actions__buy { background: var(--accent); color: #fff; }
    .nav { display: none; }
    .burger:checked ~ .nav { display: block; }
    .nav__list { flex-direction: column; margin: 0; }
    .nav__item { position: static; }
    .nav__row { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
    .nav__link { flex: 1; padding: 15px 16px; border-bottom: 0; }
    .nav__link.is-active { border-bottom-color: transparent; }
    .nav__item:has(.nav__link.is-active) > .nav__row { border-left-color: var(--aqua-500); }

    /* Группы сворачиваются: тап по стрелке раскрывает, ссылка в строке ведёт на раздел. */
    .nav__fold-btn { pointer-events: auto; margin-left: auto; padding: 15px 20px; cursor: pointer; }
    .nav__chevron { border-color: var(--teal-700); }
    .nav__item:hover .nav__chevron { transform: translateY(-2px) rotate(45deg); }
    .nav__fold:checked ~ .nav__row .nav__chevron { transform: translateY(1px) rotate(225deg); }

    .nav__drop {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 4px 16px 12px;
        background: var(--bg-soft);
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }
    .nav__item--wide > .nav__drop { left: auto; right: auto; border-radius: 0; border-top: 0; }

    /* В выдвижном меню группу раскрывает только чекбокс — наведение здесь ни при чём.
       Правило с :checked стоит последним, у него та же специфичность и оно побеждает. */
    .nav__item:hover > .nav__drop,
    .nav__item:focus-within > .nav__drop { display: none; }
    .nav__fold:checked ~ .nav__drop { display: block; }

    .nav__col + .nav__col { margin-top: 12px; }
    .nav__col-title { margin: 10px 0 4px; }
    .nav__col a { margin: 0; padding: 10px 0; }
    .nav__sub-note { display: none; }

    .hero {
        /* На узком экране контейнер и так во всю ширину — панель не нужна. */
        margin: 0;
        border-radius: 0;

        /* Широкий кадр превратился бы в полоску — берём вертикальный. */
        background:
            linear-gradient(175deg,
                rgba(0, 40, 45, .92) 0%,
                rgba(0, 45, 50, .80) 42%,
                rgba(0, 50, 56, .62) 100%),
            var(--teal-900) url("../img/hero-narrow.jpg") center / cover no-repeat;
    }
    .hero__inner { max-width: none; padding: clamp(44px, 12vw, 72px) 0; }

    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .tariffs, .tariffs--compact { grid-template-columns: 1fr; }
    .tariff__badge { left: 20px; }
    .included { grid-template-columns: 1fr; padding: 20px 22px; }
    .guest { grid-template-columns: 1fr; gap: 22px; }
    .split, .split--narrow-media, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
    .coach { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
    .map iframe { height: 320px; }
    .map__note { flex-direction: column; }
    .cta { grid-template-columns: 1fr; }
    .club-card { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }

    .footer__grid { grid-template-columns: 1fr; gap: 26px; }

    /* Прайс превращается в карточки */
    .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
    .price-table thead { display: none; }
    .price-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .price-table td { border: 0; padding: 2px 0; text-align: left; }
    .price-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-size: .8rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .05em;
    }
    .price-table tr:hover td { background: transparent; }
}

@media (max-width: 560px) {
    .grid--4, .gallery { grid-template-columns: 1fr; }
    .header__phone { font-size: 1.05rem; }
    .logo__mark { width: 44px; height: 44px; }
}

@media print {
    .header, .nav, .footer, .cta, .btn, .occupancy, .map, .mobile-actions { display: none !important; }
    body { font-size: 12px; padding-bottom: 0; }
    .schedule { min-width: 0; font-size: 10px; }
    .table-scroll { border: 0; overflow: visible; }
}

/* ---------- Переключение вида расписания ---------- */
.schedule-mobile { display: none; }

@media (max-width: 900px) {
    .schedule-desktop { display: none; }
    .schedule-mobile { display: block; }
}

@media print {
    .schedule-mobile { display: none !important; }
    .schedule-desktop { display: block !important; }
}
