:root {
    --bg: #0f1012;
    --surface: #17191c;
    --surface-2: #1f2226;
    --line: rgba(255, 255, 255, .09);
    --text: #f2f2f0;
    --muted: #a2a6ac;
    --accent: #d7262e;
    --accent-hover: #ee353d;
    --accent-soft: rgba(215, 38, 46, .14);
    --gold: #f0b429;
    --ok: #3fb67a;
    --radius: 10px;
    --header-h: 72px;
    --wrap: 1180px;
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font-body);
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    border: 2px solid var(--accent); border-radius: 6px;
    background: var(--accent); color: #fff;
    font: 600 15px/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.link { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s, color .2s; }
.link:hover { color: #fff; border-color: var(--accent); }

/* ---------- шапка ---------- */
.topbar { background: #000; color: var(--muted); font-size: 13px; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar a { text-decoration: none; color: var(--text); }
.topbar a:hover { color: var(--gold); }
.topbar-phones { display: flex; gap: 18px; }
.topbar-halls { display: none; }
@media (min-width: 900px) { .topbar-halls { display: block; } }
@media (max-width: 520px) { .topbar-phones a + a { display: none; } }

header.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 16, 18, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
    width: 44px; height: 44px; border-radius: 8px; background: var(--accent);
    display: grid; place-items: center;
    font: 700 18px/1 var(--font-head); letter-spacing: .02em;
}
.logo-img { display: block; width: auto; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font: 700 20px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.logo-text span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
    display: block; padding: 10px 8px; border-radius: 6px; white-space: nowrap;
    font: 500 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
    text-decoration: none; color: var(--muted); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: #fff; background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { display: none; }
@media (min-width: 1180px) {
    .nav { display: block; }
    .header-cta { display: inline-flex; }
    .burger { display: none !important; }
    .header-row { gap: 16px; }
}
@media (min-width: 1180px) and (max-width: 1299px) { .logo-text span { display: none; } }
@media (min-width: 1300px) { .nav a { padding: 10px 11px; } }

.burger {
    margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px;
    background: transparent; cursor: pointer; display: grid; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
    content: ''; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s, background .25s;
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg); padding: 16px 16px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0 0 24px; padding: 0; }
.drawer li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    font: 500 20px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.drawer li a.active { color: var(--accent); }
.drawer .drawer-contacts { color: var(--muted); font-size: 15px; }
.drawer .drawer-contacts a { display: block; color: var(--text); text-decoration: none; font-size: 18px; margin: 6px 0; }

/* ---------- страницы ---------- */
main { min-height: 60vh; }
.page { animation: pageIn .45s ease both; }
.page[hidden] { display: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } html { scroll-behavior: auto; } }

.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-alt { background: var(--surface); padding: 64px 0 !important; }
@media (min-width: 768px) { .section-alt { padding: 88px 0 !important; } }

.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 13px/1 var(--font-head); color: var(--accent); text-transform: uppercase; letter-spacing: .18em;
    margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.h-section { font-size: clamp(30px, 5vw, 46px); margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.section-head { margin-bottom: 40px; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }

.page-hero {
    position: relative; padding: 72px 0 56px;
    background:
        linear-gradient(180deg, rgba(15, 16, 18, .55), var(--bg)),
        linear-gradient(90deg, rgba(15, 16, 18, .95) 30%, rgba(15, 16, 18, .5)),
        url('../img/hero.jpg') center 30% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 14px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.grid { display: grid; gap: 20px; }
.grid[hidden] { display: none; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; position: relative; overflow: hidden;
}
.section-alt .card { background: var(--surface-2); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card-num { font: 700 44px/1 var(--font-head); color: var(--accent); opacity: .9; margin-bottom: 18px; }

/* ---------- главная: hero ---------- */
.hero {
    position: relative; min-height: min(calc(100svh - var(--header-h) - 36px), 820px); display: flex; align-items: center;
    background:
        linear-gradient(90deg, rgba(10, 10, 12, .96) 0%, rgba(10, 10, 12, .78) 45%, rgba(10, 10, 12, .25) 100%),
        url('../img/hero.jpg') 70% 30% / cover no-repeat;
    padding: 64px 0;
}
@media (max-width: 760px) {
    .hero { background: linear-gradient(180deg, rgba(10, 10, 12, .75), rgba(10, 10, 12, .95)), url('../img/hero.jpg') 65% 30% / cover no-repeat; }
}
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(40px, 7.5vw, 84px); line-height: 1.02; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: #d0d2d5; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-free {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 8px 14px; border-radius: 999px; background: rgba(240, 180, 41, .12); color: var(--gold);
    font: 500 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em;
}
.badge-free::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 180, 41, .2); }

.stats { border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 12px 26px 0; }
.stat strong { display: block; font: 700 clamp(28px, 4vw, 40px)/1 var(--font-head); color: #fff; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14px; }

/* ближайшие тренировки */
.upcoming { display: grid; gap: 12px; }
@media (min-width: 900px) { .upcoming { grid-template-columns: repeat(3, 1fr); } }
.up-item {
    display: flex; gap: 18px; align-items: center; padding: 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.up-when { text-align: center; min-width: 74px; padding-right: 18px; border-right: 1px solid var(--line); }
.up-when b { display: block; font: 700 28px/1 var(--font-head); }
.up-when small { color: var(--accent); text-transform: uppercase; font: 500 12px/1 var(--font-head); letter-spacing: .1em; }
.up-info { flex: 1; min-width: 0; }
.up-info strong { display: block; font-weight: 600; }
.up-info span { color: var(--muted); font-size: 14px; }
@media (max-width: 520px), (min-width: 900px) and (max-width: 1180px) {
    .up-item { flex-wrap: wrap; }
    .up-item .btn { width: 100%; }
}

/* программы */
.program-card { display: flex; flex-direction: column; }
.program-card .tag { align-self: flex-start; margin-bottom: 16px; }
.program-card p { flex: 1; }
.program-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
    display: inline-block; padding: 5px 10px; border-radius: 4px;
    background: var(--accent-soft); color: #ff8f94;
    font: 500 12px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em;
}
.tag-gold { background: rgba(240, 180, 41, .14); color: var(--gold); }
.program-icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 18px; }

/* преимущества */
.feature { display: flex; gap: 18px; }
.feature-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta-band {
    position: relative; overflow: hidden; border-radius: 14px; padding: 44px 28px;
    background: linear-gradient(120deg, #a5161d, var(--accent) 60%, #e64a2f);
}
@media (min-width: 768px) { .cta-band { padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; } }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 560px; }
.cta-band .btn { background: #fff; color: #111; border-color: #fff; margin-top: 22px; flex-shrink: 0; }
@media (min-width: 768px) { .cta-band .btn { margin-top: 0; } }
.cta-band .btn:hover { background: #111; color: #fff; border-color: #111; }

/* ---------- крав мага ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.split-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.text-block p { color: #cfd1d4; }
.quote {
    border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; margin: 24px 0;
    font: 500 21px/1.4 var(--font-head); text-transform: uppercase; letter-spacing: .02em;
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before {
    content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg); border: 3px solid var(--accent);
}
.timeline b { display: block; font: 600 18px/1.2 var(--font-head); color: var(--accent); margin-bottom: 4px; }
.timeline p { color: var(--muted); }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font: 500 14px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compare td:first-child { color: var(--muted); width: 30%; }
.compare td:last-child { color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---------- расписание ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 28px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group > span { font: 500 12px/1 var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 14px; color: var(--muted); transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.week { display: grid; gap: 28px; }
.hall-title {
    font: 600 15px/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
    margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--accent);
}
.hall-block.hall-grebki .hall-title { border-left-color: var(--gold); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slot {
    width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
    display: grid; grid-template-columns: 112px 64px 1fr auto; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 8px;
    background: var(--surface-2); border: 1px solid transparent; border-left: 3px solid var(--accent);
    transition: border-color .2s, background .2s;
}
.hall-block.hall-grebki .slot { border-left-color: var(--gold); }
.slot:hover { background: #262a2f; border-color: rgba(255, 255, 255, .15); }
.slot-days { display: flex; flex-wrap: wrap; gap: 4px; }
.slot-days span { font: 600 12px/1 var(--font-head); text-transform: uppercase; color: var(--muted); padding: 3px 6px; border-radius: 4px; background: var(--surface); }
.slot-days span.is-today { background: var(--accent); color: #111; }
.slot time { font: 700 18px/1 var(--font-head); }
.slot-group strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.slot-group small { color: var(--muted); font-size: 12px; }
.slot .slot-cta { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) {
    .slot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
    .slot-days { order: 1; }
    .slot time { order: 2; margin-left: auto; }
    .slot-group { order: 3; flex: 1 1 100%; }
    .slot .slot-cta { order: 4; flex: 1 1 100%; }
}
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.note {
    margin-top: 24px; padding: 16px 20px; border-radius: var(--radius);
    background: rgba(240, 180, 41, .08); border: 1px solid rgba(240, 180, 41, .25); color: #e9d7a8; font-size: 15px;
}
.note a { color: #fff; }

.posters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.poster { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.poster img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; transition: transform .4s; }
.open-set { display: flex; flex-direction: column; align-items: flex-start; }
.open-set .tag { margin-bottom: 14px; }
.open-set h3 { font-size: 24px; margin-bottom: 6px; }
.open-set p { color: var(--muted); margin: 0 0 18px; }
.open-set ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.open-set li { padding: 8px 0; border-top: 1px solid var(--line); }
.open-set li b { color: var(--text); font-weight: 600; }
.open-set .btn { margin-top: auto; }
.poster:hover img { transform: scale(1.04); }

/* ---------- команда ---------- */
.team-card { padding: 0; display: flex; flex-direction: column; }
.team-photo { aspect-ratio: 4 / 4.4; background: var(--surface-2); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.25); transition: filter .3s, transform .4s; }
.team-card:hover .team-photo img { filter: none; transform: scale(1.03); }
.team-initials { width: 100%; height: 100%; display: grid; place-items: center; font: 700 64px/1 var(--font-head); color: rgba(255, 255, 255, .18); background: linear-gradient(135deg, #22252a, #17191c); }
.team-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.team-body h3 { font-size: 22px; margin-bottom: 4px; }
.team-role { color: var(--accent); font: 500 13px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.team-body ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 14px; flex: 1; }
.team-body li { margin-bottom: 4px; }

/* ---------- новости ---------- */
.news-card { padding: 0; display: flex; flex-direction: column; cursor: pointer; text-align: left; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.news-card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-3px); }
.news-card .thumb { aspect-ratio: 10 / 7; overflow: hidden; background: var(--surface-2); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px 22px 24px; }
.news-card time { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.news-card h3 { font-size: 19px; margin-bottom: 10px; }
.news-card .more { color: var(--accent); font: 500 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; }
.news-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search {
    min-height: 42px; width: min(100%, 280px); padding: 0 14px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
}
.search::placeholder { color: #6c7077; }
.empty { color: var(--muted); padding: 32px 0; }

/* ---------- оплата ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font: 700 48px/1 var(--font-head); margin: 10px 0 6px; }
.price-card .price small { font-size: 20px; color: var(--muted); margin-left: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 8px 0 8px 28px; position: relative; color: #cfd1d4; font-size: 15px; border-bottom: 1px dashed var(--line); }
.price-card li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::after {
    content: 'Акция'; position: absolute; top: 18px; right: -34px; transform: rotate(45deg);
    background: var(--gold); color: #111; padding: 4px 40px; font: 600 11px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .1em;
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
    counter-increment: s; position: relative; padding: 18px 18px 18px 70px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
    content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); font: 700 17px/1 var(--font-head);
}
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
.erip-path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.erip-path code {
    font: 500 13px/1 var(--font-body); padding: 7px 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line);
}
.erip-path i { color: var(--muted); font-style: normal; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
    font: 500 18px/1.35 var(--font-head); text-transform: uppercase; letter-spacing: .03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 820px; }
.faq-page { max-width: 900px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-title { margin: 0 0 16px; font: 600 15px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* ---------- контакты ---------- */
.hall-card h3 { font-size: 24px; margin-bottom: 4px; }
.hall-card .metro { color: var(--muted); margin-bottom: 18px; display: block; }
.hall-card .row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hall-card .row svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.hall-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { text-decoration: none; font-size: 18px; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.copy-btn {
    margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--muted);
    border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
    width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center;
    border: 1px solid var(--line); color: var(--text); transition: all .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 20px; height: 20px; }

/* ---------- форма ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field label b { color: var(--accent); font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px;
    background: var(--bg); border: 1px solid rgba(255, 255, 255, .14); color: var(--text);
    font: inherit; font-size: 16px; transition: border-color .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.invalid input, .field.invalid select { border-color: #ff5a5f; }
.field .err { display: none; color: #ff7a7e; font-size: 13px; margin-top: 6px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check.invalid { color: #ff7a7e; }
.form-error { color: #ff7a7e; font-size: 14px; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 24px 0; }
.form-success .ok {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
    background: rgba(63, 182, 122, .15); color: var(--ok);
}
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

/* «Удобнее написать?» — Telegram / WhatsApp под кнопкой формы и на экране успеха */
.form-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 14px; }
.form-success .form-alt { justify-content: center; margin-top: 18px; }
.form-alt a {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: filter .2s;
}
.form-alt a:hover { filter: brightness(1.1); }
.form-alt a.tg { background: #229ed9; }
.form-alt a.wa { background: #25d366; }
.form-alt svg { width: 16px; height: 16px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
@media (min-width: 768px) { .form-card { padding: 36px; } }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 22px; }

/* ---------- модальные окна ---------- */
.modal {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, .78); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
    position: relative; width: min(100%, 620px); max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 24px 28px;
    transform: translateY(16px); transition: transform .25s;
}
@media (min-width: 640px) { .modal-box { padding: 40px 36px 34px; } }
.modal.open .modal-box { transform: none; }
.modal-box h2 { font-size: 28px; margin-bottom: 6px; padding-right: 30px; }
.modal-box > p.sub { color: var(--muted); margin-bottom: 22px; }
.modal-close {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 8px;
    border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted);
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.modal-close svg { width: 22px; height: 22px; }
.modal-news .modal-box { width: min(100%, 760px); padding: 0; }
.modal-news .news-img { aspect-ratio: 16 / 9; background: var(--surface-2); }
.modal-news .news-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-news .news-content { padding: 26px 24px 30px; }
@media (min-width: 640px) { .modal-news .news-content { padding: 32px 36px 36px; } }
.modal-news time { color: var(--muted); font-size: 14px; }
.modal-news h2 { margin: 6px 0 16px; }
.modal-news .news-text { color: #cfd1d4; }
.modal-news .modal-close { background: rgba(0, 0, 0, .55); color: #fff; }

.lightbox { background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: min(100%, 1000px); max-height: calc(100vh - 100px); border-radius: 8px; }
.lightbox .modal-close { position: fixed; top: 16px; right: 16px; color: #fff; }

/* ---------- подвал ---------- */
footer { border-top: 1px solid var(--line); background: #0a0b0c; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h4 { font-size: 15px; color: var(--muted); letter-spacing: .12em; margin-bottom: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; font-size: 15px; }
footer li a { text-decoration: none; color: #cfd1d4; }
footer li a:hover { color: #fff; }
footer .about { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 16px; }
.requisites { list-style: none; padding: 0; margin: 16px 0 0; }
.requisites li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.requisites small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: #6c7077; font-size: 13px; }

.to-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* плавающие кнопки «написать в WhatsApp / Telegram» — над кнопкой «наверх» */
.messengers { position: fixed; right: 16px; bottom: 76px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.messengers a {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .2s;
}
.messengers a:hover { transform: scale(1.08); }
.messengers .wa { background: #25d366; }
.messengers .tg { background: #229ed9; }
.messengers svg { width: 24px; height: 24px; }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px);
    background: #fff; color: #111; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
    opacity: 0; visibility: hidden; transition: all .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
