/* ===== СК «Алмаз-Антей» — светлый воздушный дизайн (вдохновлён aqua.luzhniki) ===== */
:root {
    --ink:        #07203a;   /* основной тёмный текст */
    --ink-2:      #44566b;   /* вторичный текст */
    --muted:      #7d8ca0;
    --blue:       #1f63e0;   /* основной акцент */
    --blue-dark:  #1850bd;
    --coral:      #ff4d57;   /* акцент действия */
    --coral-dark: #ef3742;
    --aqua:       #18b6e6;   /* «водный» вторичный */
    --bg:         #ffffff;
    --bg-soft:    #f3f7fc;   /* светлая подложка секций */
    --bg-soft-2:  #eaf1fb;
    --line:       #e6edf6;
    --navy:       #07203a;   /* подвал */
    --radius:     22px;
    --radius-sm:  14px;
    --pill:       999px;
    --shadow:     0 18px 40px rgba(7, 32, 58, .08);
    --shadow-lg:  0 30px 70px rgba(7, 32, 58, .16);
    --container:  1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Unbounded', 'Manrope', sans-serif; line-height: 1.08; margin: 0 0 .5em;
    color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 14px; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    font-size: .78rem; color: var(--blue); margin-bottom: 14px; }
.soft { background: var(--bg-soft); }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: var(--pill); font-weight: 700; font-family: 'Manrope', sans-serif;
    font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-accent { background: var(--coral); color: #fff; box-shadow: 0 12px 26px rgba(255, 77, 87, .32); }
.btn-accent:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 77, 87, .42); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }

/* ===== Шапка (светлая) ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(7,32,58,.08); }
.header-inner { display: flex; align-items: center; height: 92px; gap: 22px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 68px; width: 68px; object-fit: contain; display: block; background: #fff;
    padding: 8px; border-radius: 50%; box-shadow: 0 6px 20px rgba(7,32,58,.14); border: 2px solid var(--line); }
.main-nav { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; justify-content: flex-end; }
.main-nav ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0 auto 0 0; padding: 0; flex-wrap: nowrap; }
.main-nav ul li { display: flex; align-items: center; }
.main-nav ul li + li::before { content: '|'; color: var(--line); margin: 0 11px; font-weight: 300; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .94rem; padding: 6px 0; position: relative; white-space: nowrap; }
@media (max-width: 1340px) {
    .main-nav ul li + li::before { margin: 0 8px; }
    .main-nav a { font-size: .9rem; }
    /* узкий экран: кнопка-кружок в едином стиле с ВК и ФК */
    .btn-call span { display: none; }
    .btn-call { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
    background: var(--coral); border-radius: 3px; }
/* соц-иконки + кнопка звонка */
.nav-extra { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: .2s; overflow: hidden; }
.social--vk { color: #0077ff; }
.social--vk:hover { background: #0077ff; color: #fff; border-color: #0077ff; }
.social img { max-width: 30px; max-height: 30px; width: auto; height: auto; object-fit: contain; }
.social--fc img { width: 30px; height: 30px; }
.social--fc:hover { border-color: var(--blue); box-shadow: var(--shadow); }
/* Кнопка звонка: спокойная, фирменная синяя, без свечения */
.btn-call { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px;
    border-radius: var(--pill); background: var(--blue); color: #fff; font-weight: 700;
    font-size: .95rem; white-space: nowrap; transition: .2s ease; }
/* Кнопка лежит внутри .main-nav, а правило `.main-nav a` перебивает `.btn-call`
   по специфичности и красит текст в тёмный. Поднимаем специфичность. */
.main-nav a.btn-call, .main-nav a.btn-call:hover, .main-nav a.btn-call:visited { color: #fff; }

/* Виджет отзывов Яндекс Карт.
   Яндекс корректно рисует его при ширине 300–760 px, поэтому ограничиваем
   контейнер, а не растягиваем на всю секцию. */
.reviews-embed { max-width: 720px; margin: 0 auto; text-align: center; }
.reviews-embed iframe { display: block; width: 100%; height: 660px; border: 1px solid var(--line);
    border-radius: var(--radius); box-sizing: border-box; background: #fff; box-shadow: var(--shadow); }
.reviews-embed__link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--blue); }
.reviews-embed__link:hover { color: var(--coral); }
/* В узкой колонке (страница «Контакты») карточка занимает всю ширину и ниже. */
.contact-grid .reviews-embed { margin-top: 24px; max-width: none; }
.contact-grid .reviews-embed iframe { height: 580px; }
@media (max-width: 520px) { .reviews-embed iframe, .contact-grid .reviews-embed iframe { height: 600px; } }

/* Крупный номер телефона на странице «Контакты» */
.call-card { text-align: center; }
.call-big { display: inline-block; margin-top: 6px; font-family: 'Unbounded', sans-serif;
    font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.1rem); color: var(--blue);
    letter-spacing: .01em; white-space: nowrap; }
.call-big:hover { color: var(--blue-dark); }
.btn-call:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(31, 99, 224, .28); }
.btn-call svg { flex: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero (крупный, фото на весь экран) ===== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
/* Карусель: слайды кроссфейдом + медленный зум активного */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 7s ease-out; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, rgba(7,20,40,.82) 0%, rgba(7,20,40,.45) 50%, rgba(7,20,40,.15) 100%); }
/* .hero-inner — это и есть .container: сохраняем его сетку, ограничиваем ширину текста */
.hero-inner { position: relative; z-index: 2; padding: 120px 24px; }
.hero-inner h1, .hero-inner p { max-width: 760px; }
/* Стрелки */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.16); color: #fff; font-size: 2rem; line-height: 1; backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; transition: .2s; }
.hero-arrow:hover { background: var(--coral); }
.hero-arrow.prev { left: 24px; } .hero-arrow.next { right: 24px; }
/* Точки */
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: flex; gap: 12px; }
.hero-dot { width: 11px; height: 11px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: rgba(255,255,255,.45); transition: .25s; }
.hero-dot:hover { background: rgba(255,255,255,.8); }
.hero-dot.active { width: 30px; background: var(--coral); }
@media (max-width: 720px) { .hero-arrow { display: none; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.02em; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: rgba(255,255,255,.9); margin: 22px 0 38px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
    color: rgba(255,255,255,.7); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ===== Цифры/факты ===== */
.facts { background: var(--blue); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.fact { text-align: center; }
.fact b { display: block; font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.fact span { display: block; margin-top: 10px; color: rgba(255,255,255,.82); font-size: 1rem; }

/* ===== Крупные карточки услуг ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    min-height: 340px; box-shadow: var(--shadow); color: #fff; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; }
.card-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.service-card:hover .card-media { transform: scale(1.07); }
.service-card::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,20,40,.86) 0%, rgba(7,20,40,.25) 55%, rgba(7,20,40,.05) 100%); }
.card-ico { display: none; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.card-title { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 1.5rem; display: block; }
.card-text { color: rgba(255,255,255,.86); margin: 8px 0 14px; font-size: .98rem;
    max-height: 0; opacity: 0; overflow: hidden; transition: .35s ease; }
.service-card:hover .card-text { max-height: 120px; opacity: 1; }
.card-link { font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: '→'; transition: transform .2s; }
.service-card:hover .card-link::after { transform: translateX(4px); }
/* карточка без фото (соляная) */
.service-card.no-photo { background: linear-gradient(135deg, var(--blue), var(--aqua)); }
.service-card.no-photo::after { background: linear-gradient(to top, rgba(7,20,40,.5), transparent 60%); }

/* ===== Сценарии посещения ===== */
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scenario { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; color: #fff; box-shadow: var(--shadow); }
.scenario img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.scenario:hover img { transform: scale(1.06); }
.scenario::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,99,224,.78), rgba(7,20,40,.1)); }
.scenario .s-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 24px; }
.scenario h3 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.scenario p { margin: 0; color: rgba(255,255,255,.9); font-size: .95rem; }

/* ===== Тарифы — карточки ===== */
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tariff { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
    box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.tariff:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tariff.featured { background: linear-gradient(160deg, var(--blue), var(--blue-dark)); color: #fff; border: 0; }
.tariff .t-name { font-weight: 700; font-size: 1.15rem; font-family: 'Unbounded', sans-serif; }
.tariff .t-unit { color: var(--muted); font-size: .92rem; margin: 4px 0 16px; }
.tariff.featured .t-unit { color: rgba(255,255,255,.8); }
.tariff .t-price { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 2rem; color: var(--ink); margin-top: auto; }
.tariff.featured .t-price { color: #fff; }
.tariff .t-price small { font-size: .9rem; font-weight: 600; color: var(--muted); }

/* ===== Полноценные таблицы цен (страница «Цены») ===== */
.price-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.price-group > h3 { background: var(--bg-soft); color: var(--ink); margin: 0; padding: 20px 28px; font-size: 1.25rem;
    position: relative; overflow: hidden; }
.price-section-head { margin: 0 0 22px; }
.price-section-head .eyebrow { margin-bottom: 6px; }
.price-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Тематические фоны заголовков групп «по стилистике объекта» */
.price-group.pg--bassejny > h3,
.price-group.pg--ledovaya-arena > h3,
.price-group.pg--sportzaly > h3,
.price-group.pg--futbol > h3,
.price-group.pg--trenazherny-zal > h3,
.price-group.pg--solyanaya-komnata > h3,
.price-group.pg--solarij > h3,
.price-group.pg--sauna > h3 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
/* бассейн — вода */
.pg--bassejny > h3 { background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 14px, transparent 14px 34px),
    linear-gradient(120deg, #1479d6, #19b6e6); }
/* лёд — разметка катка */
.pg--ledovaya-arena > h3 { background:
    radial-gradient(circle at 18% 60%, rgba(214,40,57,.5) 0 22px, transparent 23px),
    linear-gradient(120deg, #4a86c9, #7fb2e0); }
/* залы — паркет */
.pg--sportzaly > h3 { background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 3px, transparent 3px 26px),
    linear-gradient(120deg, #c8873f, #e0a860); }
/* футбол — газон */
.pg--futbol > h3 { background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 30px, rgba(0,0,0,.05) 30px 60px),
    linear-gradient(120deg, #2f9e50, #3fbf67); }
/* тренажёрный — сталь */
.pg--trenazherny-zal > h3 { background: linear-gradient(120deg, #38414d, #5b6b7d); }
/* соляная — соль */
.pg--solyanaya-komnata > h3 { background: linear-gradient(120deg, #d98aa0, #f0b8c6); }
/* солярий — солнце */
.pg--solarij > h3 { background: linear-gradient(120deg, #f0902a, #ffc04d); }
/* сауна — дерево/жар */
.pg--sauna > h3 { background: linear-gradient(120deg, #b5561f, #e08a3c); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 16px 28px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .p-title { font-weight: 600; }
.price-table .p-unit { color: var(--muted); font-size: .9rem; }
.price-table .p-price { text-align: right; font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ===== Карточки преимуществ ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px 24px;
    box-shadow: var(--shadow); }
.feature .ico { font-size: 2rem; }
.feature h4 { margin: 14px 0 6px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.1rem; }
.feature p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ===== CTA-полоса ===== */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--aqua)); color: #fff; border-radius: var(--radius);
    padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }

/* ===== Новости ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .25s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-media { display: block; height: 200px; background-size: cover; background-position: center; }
.news-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--blue); }
.news-card time { color: var(--coral); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.news-card h3 { font-size: 1.2rem; margin: 10px 0 10px; font-family: 'Manrope', sans-serif; font-weight: 700; }
.news-card p { color: var(--ink-2); flex: 1; margin: 0 0 16px; }

/* ===== Как добраться / контакты ===== */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.2rem; font-family: 'Manrope', sans-serif; font-weight: 700; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.route-list li:last-child { border-bottom: 0; }
.route-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.route-list b { display: block; }
.route-list span { color: var(--ink-2); font-size: .94rem; }
.map-embed { border: 0; width: 100%; height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Формы ===== */
.request-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field i { color: var(--coral); font-style: normal; }
.field input, .field select, .field textarea {
    font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfdff; transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,99,224,.12); }
.field .has-error { border-color: var(--coral); }
.field .err { color: var(--coral); font-size: .84rem; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 18px; font-weight: 600; }
.alert--ok { background: #e7f8ef; color: #18935a; border: 1px solid #b6e6cb; }
.alert--err { background: #fdebec; color: var(--coral-dark); border: 1px solid #f6c6c9; }

/* ===== Внутренние страницы ===== */
.page-hero { background: var(--bg-soft); color: var(--ink); padding: 64px 0; }
.page-hero.dark, .page-hero--photo { color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero.dark h1, .page-hero--photo h1 { color: #fff; }
.page-hero p { color: var(--ink-2); max-width: 680px; margin: 12px 0 0; font-size: 1.1rem; }
.page-hero--photo p { color: rgba(255,255,255,.9); }
.page-hero--photo { background-size: cover; background-position: center; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs i { color: var(--line); font-style: normal; }
.page-hero--photo .breadcrumbs i { color: rgba(255,255,255,.4); }

/* ===== Раздел «О комплексе»: сетка с боковым меню ===== */
.about-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
/* Колонкам grid нужно разрешить сжиматься ниже содержимого — иначе широкая
   таблица внутри распирает страницу вместо того, чтобы прокручиваться. */
.about-layout > * { min-width: 0; }
.side-nav details { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.side-nav summary { display: none; }
.side-nav nav { display: flex; flex-direction: column; }
.side-nav nav a { padding: 14px 20px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); transition: .15s; }
.side-nav nav a:last-child { border-bottom: 0; }
.side-nav nav a:hover { background: var(--bg-soft); color: var(--blue); }
.side-nav nav a.active { background: var(--blue); color: #fff; }

/* ===== Таблицы (адаптив) ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.data-table thead th { background: var(--bg-soft); text-align: left; padding: 16px 18px; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.data-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table td.num { color: var(--muted); width: 48px; }
.data-table td.price { font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--blue); white-space: nowrap; }
.data-table tr:hover td { background: #fafcff; }

/* ===== Кнопки-действия на странице объекта ===== */
.obj-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ===== Галерея с подписями ===== */
.gallery--captioned { align-items: start; }
.gallery-fig { margin: 0; }
.gallery-fig .gallery-item { width: 100%; }
.gallery-fig figcaption { text-align: center; margin-top: 10px; font-weight: 600; color: var(--ink); font-size: .96rem; }

/* ===== Вкладки категорий ===== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cat-tabs a { padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff;
    color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: .18s; }
.cat-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.cat-tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== Компактные карточки тренеров (кликабельное фото) ===== */
.trainers-grid--compact { grid-template-columns: repeat(3, 1fr); }
.trainer-card--compact { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: #fff; box-shadow: var(--shadow); grid-template-columns: none; }
.trainer-photo { display: block; width: 100%; height: 300px; border: 0; padding: 0; cursor: pointer;
    background-size: cover; background-position: center top; transition: .3s; }
.trainer-photo:hover { filter: brightness(1.04); }
.trainer-card--compact .info { padding: 20px 22px; }
.trainer-card--compact .info h3 { margin: 0 0 4px; font-size: 1.15rem; }
.trainer-card--compact .btn-sm { margin-top: 12px; }

/* ===== Расписание: сетка «время × дни» ===== */
.timetable-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--line); }
.timetable-grid { display: grid; grid-template-columns: 150px repeat(var(--cols, 7), minmax(132px, 1fr));
    gap: 1px; background: var(--line); min-width: 880px; }
.header-cell { background: var(--bg-soft-2); color: var(--navy); padding: 14px 8px; text-align: center;
    font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0; z-index: 2; }
.header-cell--time { position: sticky; left: 0; z-index: 3; }
.time-cell { background: #fff; color: var(--navy); padding: 14px 6px; text-align: center;
    font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: .85rem;
    position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.event-cell { background: #fff; padding: 6px; }

/* Карточка занятия */
.event-card { display: flex; flex-direction: column; gap: 4px; background: var(--navy); color: #fff;
    padding: 10px 12px; border-radius: 8px; margin-bottom: 6px; }
.event-card:last-child { margin-bottom: 0; }
.ec--waterpolo { background: #0f7f9e; }
.ec--sync { background: #7b4a9c; }
.ec--aqua { background: #157f49; }
.ec--mim { background: #c23b52; }
.ec-title { font-weight: 800; font-size: .9rem; line-height: 1.2; }
.ec-trainer { font-size: .82rem; color: rgba(255,255,255,.92); }
a.ec-trainer { text-decoration: underline; text-underline-offset: 2px; }
a.ec-trainer:hover { color: #fff; text-decoration-thickness: 2px; }
.ec-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { background: rgba(255,255,255,.18); padding: 2px 7px; font-size: .7rem; border-radius: 4px; white-space: nowrap; }
.tag--accent { background: rgba(255,255,255,.3); font-weight: 700; }

/* Мобильный список по дням */
.timetable-list { display: none; }
.mobile-day-title { color: var(--navy); padding: 12px 0 10px; margin-top: 18px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--navy); font-size: .9rem; }
.list-row { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-time { font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--navy); font-size: .9rem; padding-top: 10px; }
@media (max-width: 780px) {
    .timetable-scroll { display: none; }
    .timetable-list { display: block; }
}

.sched-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 18px; font-size: .88rem; }
.lg { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.lg::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }
.lg--waterpolo::before { background: #12a3c9; }
.lg--sync::before { background: #b46ad0; }
.lg--aqua::before { background: #1f9d5b; }

.sessions-table { min-width: 380px; }
.sessions-table td { font-size: 1rem; }

/* ===== Страница тренера ===== */
.trainer-detail { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.td-photo { border-radius: var(--radius); background-size: cover; background-position: center top;
    min-height: 340px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .trainer-detail { grid-template-columns: 1fr; } .td-photo { min-height: 260px; } }
.trainer-card--compact .info h3 a { color: inherit; }
.trainer-card--compact .info h3 a:hover { color: var(--blue); }

/* ===== Залы ===== */
.halls-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hall-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow); transition: .25s; color: inherit; }
.hall-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.hall-media { display: block; height: 220px; background-size: cover; background-position: center; }
.hall-body { display: block; padding: 20px 24px; }
.hall-name { display: block; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.hall-sub { display: block; color: var(--muted); margin-top: 4px; font-size: .95rem; }
.hall-rent { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow); }
.rent-card b { display: block; margin-bottom: 8px; color: var(--navy); }
.rent-card a { display: block; font-weight: 700; font-size: 1.1rem; padding: 3px 0; }
@media (max-width: 700px) { .halls-grid, .hall-rent { grid-template-columns: 1fr; } }

/* ===== Модалка тренера ===== */
.trainer-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(7,16,34,.7); backdrop-filter: blur(4px); padding: 5vw; }
.trainer-modal[hidden] { display: none; }
.tm-card { background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 88vh; overflow: auto;
    box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 220px 1fr; }
.tm-photo { background-size: cover; background-position: center top; min-height: 260px; }
.tm-body { padding: 28px; position: relative; }
.tm-body h3 { margin: 0 0 4px; font-size: 1.4rem; }
.tm-pos { color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.tm-bio { color: var(--ink-2); white-space: pre-line; margin-bottom: 18px; }
.tm-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
@media (max-width: 900px) { .trainers-grid--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .trainers-grid--compact { grid-template-columns: 1fr; } .tm-card { grid-template-columns: 1fr; } .tm-photo { min-height: 220px; } }

/* ===== Карточки тренеров ===== */
.trainers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.trainer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: grid; grid-template-columns: 180px 1fr; }
.trainer-card .photo { background-size: cover; background-position: center; min-height: 240px; }
.trainer-card .info { padding: 26px; }
.trainer-card h3 { font-size: 1.3rem; font-family: 'Manrope', sans-serif; font-weight: 700; margin: 0 0 4px; }
.trainer-card .pos { color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.trainer-card .bio { color: var(--ink-2); font-size: .95rem; white-space: pre-line; }

/* ===== Вакансии ===== */
.vacancy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px;
    box-shadow: var(--shadow); margin-bottom: 18px; }
.vacancy h3 { font-size: 1.3rem; font-family: 'Manrope', sans-serif; font-weight: 700; margin: 0 0 6px; }
.vacancy .vac-schedule { color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.vacancy .vac-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

@media (max-width: 900px) {
    .about-layout { grid-template-columns: 1fr; gap: 22px; }
    .side-nav summary { display: block; padding: 14px 18px; font-weight: 700; cursor: pointer; background: var(--bg-soft); }
    .trainers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .trainer-card { grid-template-columns: 1fr; }
    .trainer-card .photo { min-height: 220px; }
}
.page-hero--photo .breadcrumbs, .page-hero--photo .breadcrumbs a { color: rgba(255,255,255,.8); }
.prose { max-width: 780px; font-size: 1.06rem; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }

/* ===== Фотогалерея ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background-size: cover;
    background-position: center; box-shadow: var(--shadow); transition: .25s; cursor: zoom-in; }
.gallery-item:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }

/* ===== Лайтбокс ===== */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(7, 16, 34, .94); backdrop-filter: blur(4px); padding: 4vw; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb-img { max-width: 92vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.55);
    object-fit: contain; animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-caption { color: #dce6f7; font-size: .98rem; text-align: center; }
.lb-counter { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #9fb2d6; font-size: .9rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
    width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; display: flex;
    align-items: center; justify-content: center; transition: .18s; }
.lb-btn:hover { background: var(--coral); color: #fff; }
.lb-close { top: 18px; right: 18px; font-size: 1.7rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ===== Партнёры ===== */
.partners { background: #fff; padding: 64px 0; border-top: 1px solid var(--line); }
.partners-title { text-align: center; color: var(--muted); font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; font-size: .82rem; margin-bottom: 34px; }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 28px; }
.partner { display: flex; align-items: center; justify-content: center; height: 110px;
    padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: .25s ease; }
.partner:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.partner img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; transition: .25s ease; }
/* монохромные лого (Концерн, ГОЗ) — рендерим тёмными на белой плитке (единый стиль с ФК/БФ) */
.partner.invert img { filter: brightness(0) saturate(0) opacity(.82); }
.partner.invert:hover img { filter: brightness(0) saturate(0) opacity(1); }
@media (max-width: 1000px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .partners-grid { grid-template-columns: 1fr; } }

/* ===== Подвал ===== */
.site-footer { background: var(--navy); color: #aebfd4; padding-top: 64px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 16px; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-addr { color: #8ea3c0; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 7px 0; display: flex; flex-direction: column; }
.footer-list a { color: #aebfd4; }
.footer-list a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,.1); padding: 22px 24px; font-size: .88rem; color: #7f95b4; }
.to-top { color: #7f95b4; }

/* ===== Анимации появления ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide { transition: opacity .4s ease; transform: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
    .services-grid, .news-grid, .scenarios { grid-template-columns: repeat(2, 1fr); }
    .facts-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; inset: 92px 0 auto 0; background: #fff; flex-direction: column;
        align-items: stretch; gap: 0; padding: 14px 24px 26px; transform: translateY(-130%);
        transition: transform .3s ease; box-shadow: 0 20px 40px rgba(7,32,58,.14); border-bottom: 1px solid var(--line); z-index: 40; }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; flex-wrap: wrap; margin: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--line); display: block; }
    .main-nav ul li + li::before { display: none; }
    .main-nav a { display: block; padding: 15px 0; font-size: 1rem; }
    .nav-extra { margin-top: 16px; justify-content: center; }
    .btn-call span { display: inline; }
    .btn-call { padding: 12px 22px; }
}
@media (max-width: 720px) {
    section { padding: 60px 0; }
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; inset: 92px 0 auto 0; background: #fff; flex-direction: column;
        align-items: stretch; gap: 0; padding: 14px 24px 26px; transform: translateY(-130%);
        transition: transform .3s ease; box-shadow: 0 20px 40px rgba(7,32,58,.14); border-bottom: 1px solid var(--line); }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 0; margin: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--line); display: block; }
    .main-nav ul li + li::before { display: none; }
    .main-nav a { display: block; padding: 16px 0; }
    .nav-extra { margin-top: 16px; justify-content: center; }
    .btn-call { flex: 1; justify-content: center; }
    .hero { min-height: 78vh; }
    .hero-inner { padding: 90px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .services-grid, .news-grid, .scenarios, .facts-grid, .features-grid, .footer-grid, .gallery { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .cta-band { padding: 36px; text-align: center; justify-content: center; }
    .lb-btn { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* Первая колонка — день недели (липкая при горизонтальной прокрутке) */
.time-cell.day-name { position: sticky; left: 0; z-index: 2; font-weight: 700; text-align: left;
    padding: 14px 14px; box-shadow: 2px 0 6px rgba(7,32,58,.06); }
.mobile-day-title { border-radius: 10px; padding: 10px 14px; }

.lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg { display: inline-flex; align-items: center; gap: 7px; }

/* Прайс: строки одного пункта с разными сроками */
.price-table tr.same-item td { border-top: 0; padding-top: 0; }
.price-table .p-title { white-space: pre-line; line-height: 1.4; }
.price-table .p-note { color: var(--muted); font-size: .86rem; margin-top: 3px; }
/* ===== Калькулятор стоимости (главная, блок тарифов) ===== */
.calc { margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.calc-head h3 { margin: 0 0 4px; font-size: 1.25rem; }
.calc-head p { margin: 0 0 18px; color: var(--ink-2); }
.calc-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.calc-row label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--ink-2); min-width: 0; }
.calc-row select { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    font: inherit; font-weight: 600; color: var(--ink); width: 100%; }
.calc-row select:disabled { opacity: .55; }
.calc-row select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.calc-hint { margin: 14px 0 0; font-size: .9rem; }
.calc-results { margin-top: 18px; }
.calc-list { display: grid; gap: 10px; }
.calc-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t s" "l s"; gap: 2px 18px; align-items: center;
    padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); transition: .15s; }
.calc-item:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.calc-item-t { grid-area: t; font-weight: 700; }
.calc-item-t .p-badge { margin: 0 0 0 8px; vertical-align: middle; }
.calc-item-l { grid-area: l; font-size: .86rem; color: var(--muted); }
.calc-item-s { grid-area: s; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--blue); white-space: nowrap; }
.calc-more { margin-top: 14px; }
.calc-empty { padding: 16px 18px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-sm); line-height: 1.5; }
@media (max-width: 760px) {
    .calc { padding: 20px 16px; }
    .calc-row { grid-template-columns: 1fr; }
    .calc-item { grid-template-columns: 1fr; grid-template-areas: "t" "l" "s"; }
}

/* ===== Подбор занятий (/podbor.php) ===== */
.pz { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.pz-head { padding: 30px 28px; background: var(--ink); color: #fff; }
.pz-head h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.pz-head p { margin: 0 0 18px; color: rgba(255,255,255,.72); max-width: 46ch; line-height: 1.5; }
/* разделитель — разметка дорожки бассейна */
.pz-lane { height: 6px; background: repeating-linear-gradient(90deg, var(--blue) 0 14px, #fff 14px 22px); }
.pz-body { padding: 28px; }
.pz-step { margin-bottom: 26px; }
.pz-step-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-weight: 700; font-size: .98rem; }
.pz-step-title span { color: var(--muted); font-weight: 400; font-size: .88rem; }
/* карточки «кому» */
.pz-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pz-who button { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
    padding: 14px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm);
    font: inherit; color: inherit; cursor: pointer; transition: .15s; }
.pz-who button:hover { border-color: var(--blue); }
.pz-who button b { font-weight: 700; }
.pz-who button i { font-style: normal; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.pz-who button[aria-pressed="true"] { border-color: var(--blue); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--blue); }
/* чипы */
.pz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-chips button { padding: 9px 15px; border-radius: var(--pill); border: 1.5px solid var(--line); background: #fff;
    font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: .15s; }
.pz-chips button:hover { border-color: var(--blue); color: var(--blue); }
.pz-chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
/* результаты */
.pz-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding-top: 22px; border-top: 1px solid var(--line); margin-top: 8px; }
.pz-result-head h3 { margin: 0; font-size: 1.15rem; }
.pz-result-head em { font-style: normal; font-size: .9rem; color: var(--muted); }
.pz-cards { display: grid; gap: 14px; margin-top: 16px; }
.pz-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; background: #fff; }
.pz-card h4 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.25; }
.pz-meta { margin: 0 0 12px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.pz-badge { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: var(--pill);
    background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pz-prices { margin: 0 0 14px; padding: 0; list-style: none; border-top: 1px dashed var(--line); }
.pz-prices li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
    padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.pz-prices .lbl { color: var(--ink-2); line-height: 1.35; }
.pz-prices .sum { font-family: 'Unbounded', sans-serif; font-weight: 700; white-space: nowrap; color: var(--blue); }
.pz-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.pz-empty { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.pz-empty p { margin: 0 0 14px; line-height: 1.5; }
.pz-foot { margin-top: 24px; padding: 20px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.pz-foot h3 { margin: 0 0 6px; font-size: 1.05rem; }
.pz-foot p { margin: 0 0 14px; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.pz-foot-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 700px) { .pz-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pz-head, .pz-body { padding: 20px 16px; } }
@media (prefers-reduced-motion: no-preference) {
    .pz-reveal { animation: pz-rise .28s ease-out; }
    @keyframes pz-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Блок «Комплекс в цифрах» */
.facts-band { background: var(--ink); color: #fff; }
.facts-band .section-head h2, .facts-band .eyebrow { color: #fff; }
.facts-band .eyebrow { color: var(--aqua); }
.facts-band .section-head p { color: rgba(255,255,255,.72); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.fact { text-align: center; padding: 26px 18px; border-radius: var(--radius);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.fact-value { display: block; font-family: 'Unbounded', sans-serif; font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--aqua); }
.fact-label { display: block; margin-top: 12px; font-size: .95rem; color: rgba(255,255,255,.82); line-height: 1.4; }

/* Врезка «Подобрать занятие» над прайсом */
.pz-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    padding: 18px 22px; margin-bottom: 18px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.pz-cta b { color: #fff; }
@media (max-width: 620px) { .pz-cta .btn { width: 100%; } }

/* Фильтр прайса */
.price-filter { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 28px; position: sticky; top: 100px; z-index: 20; }
.price-filter.is-active { border-color: var(--blue); box-shadow: var(--shadow); }
.pf-head { margin: 0 0 12px; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 1.05rem; }
.pf-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.pf-row label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700;
    color: var(--ink-2); flex: 1 1 190px; min-width: 0; }
.pf-row select { padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; font: inherit; font-weight: 600; color: var(--ink); width: 100%; }
.pf-row select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pf-reset { flex: 0 0 auto; padding: 11px 22px; }
.pf-count { margin: 12px 0 0; font-size: .88rem; font-weight: 600; }
.price-title--hidden, .p-title.is-dup { display: none; }
@media (max-width: 620px) {
    .price-filter { position: static; padding: 16px; }
    .pf-row label { flex: 1 1 100%; }
    .pf-reset { width: 100%; }
}

/* Бейдж «Выгодно» / «Популярно» у рекомендуемых тарифов */
.p-badge { display: inline-block; margin-top: 7px; padding: 3px 11px; border-radius: var(--pill);
    background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; }
.price-table tr:has(.p-badge) { background: linear-gradient(90deg, rgba(255,77,87,.05), transparent 60%); }
.price-group > h3 { font-size: 1.02rem; line-height: 1.35; font-family: 'Manrope', sans-serif; font-weight: 700; }
