:root {
  --bg: #060609;
  --line: rgba(255, 255, 255, .1);
  --text: #f3f1ec;
  --muted: #b3b0a8;
  --soft: #d8d5cc;
  --gold: #e9b949;
  --gold-2: #f8dc8b;
  --gold-3: #b07a1e;
  --blue: #2f6bff;
  --grad: linear-gradient(135deg, #f8dc8b 0%, #e9b949 45%, #b07a1e 100%);
  --glass: linear-gradient(150deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, .045));
  --r: 18px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a.u { text-decoration: underline; text-underline-offset: 3px; color: var(--gold-2); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.gold { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { text-wrap: balance; }

/* Фон: золотое и синее свечение (цвета логотипа и подсветки зала) + знак G. Всё неподвижно. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(60vmax 60vmax at 0% 0%, rgba(233, 185, 73, .16), transparent 70%),
              radial-gradient(55vmax 55vmax at 100% 45%, rgba(47, 107, 255, .14), transparent 70%),
              linear-gradient(180deg, #08080c 0%, #050508 100%); }
.bg::after { content: ''; position: absolute; width: min(90vh, 70vw); aspect-ratio: 1; right: -18vw; top: 50%; translate: 0 -50%; background: url(img/g-mark.png) center / contain no-repeat; opacity: .05; }

/* ——— Кнопки ——— */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .02em; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; }
.btn-gold { background: var(--grad); color: #17120a; box-shadow: 0 10px 30px -10px rgba(233, 185, 73, .6); }
.btn-gold:hover { box-shadow: 0 16px 36px -10px rgba(233, 185, 73, .8); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .14); background: var(--glass); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 13.5px; }

/* ——— Шапка (единственное место со «стеклом», кроме окон) ——— */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(10, 10, 14, .72); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(233, 185, 73, .4)); }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .3em; color: var(--muted); margin-top: -2px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--soft); }
.nav a:hover { color: var(--gold-2); }
.nav-extra { display: none; }
.header .tel { font-weight: 700; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); place-items: center; }
.burger svg { width: 22px; height: 22px; }
.burger path { transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }
.menu-open .burger .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .burger .l2 { opacity: 0; }
.menu-open .burger .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ——— Первый экран ——— */
.hero { position: relative; padding: 124px 0 80px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; width: min(1320px, 100% - 40px); display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 13px; font-weight: 600; color: var(--soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6b6b; }
.dot.on { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
h1 { font-size: clamp(40px, 6.2vw, 82px); line-height: .98; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; margin: 22px 0 22px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--soft); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.hero-photo { position: relative; }
.hero-photo::before { content: ''; position: absolute; inset: -1px; z-index: 2; border-radius: 33px; padding: 1px; background: linear-gradient(160deg, rgba(248, 220, 139, .9), transparent 40%, transparent 60%, rgba(47, 107, 255, .8)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.slides { position: relative; height: min(80vh, 780px); min-height: 460px; border-radius: 32px; overflow: hidden; background: #0d0d12; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity 1.4s ease, scale 7s ease-out; }
.slides img.on { opacity: 1; scale: 1; }
.slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.dots { position: absolute; right: 16px; bottom: 14px; display: flex; z-index: 3; }
.dots button { width: 30px; height: 36px; display: grid; place-items: center; }
.dots i { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .4s, background .4s; }
.dots button.on i { width: 24px; background: var(--gold); }
/* появление первого экрана — коротко, без долгой паузы */
.hero .pill, .hero h1, .hero .lead, .hero-cta, .stats { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .04s; } .hero .lead { animation-delay: .08s; } .hero-cta { animation-delay: .12s; } .stats { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }

/* ——— Секции ——— */
section { padding: 96px 0; }
.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .012), rgba(255, 255, 255, .028)); border-block: 1px solid rgba(255, 255, 255, .05); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 12px 0 14px; }
.sub { color: var(--muted); max-width: 640px; }
.head { margin-bottom: 40px; }
.subhead { font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 56px 0 22px; }
.subhead.small { font-size: 16px; margin: 34px 0 14px; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.photos { grid-template-columns: repeat(4, 1fr); }
/* Карточки: полупрозрачный градиент и светлая линия сверху — без размытия, чтобы лента не тормозила */
.card { position: relative; background: var(--glass); border: 1px solid rgba(255, 255, 255, .11); border-radius: var(--r); padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px -34px rgba(0, 0, 0, .9); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(233, 185, 73, .45); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-2); background: rgba(233, 185, 73, .1); border: 1px solid rgba(233, 185, 73, .25); flex: none; }
.ico svg { width: 24px; height: 24px; }

/* Фото-карточки зон и программ */
.card.photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card.photo > div { padding: 16px 18px 20px; }
.card.photo h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.photos.square .card.photo img { aspect-ratio: 1; }
.card.photo .when { color: var(--gold-2); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.card.photo p { font-size: 14px; }

/* ——— Расписание ——— */
.days { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; align-items: stretch; }
.days::-webkit-scrollbar { display: none; }
.day { padding: 10px 16px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; text-align: left; }
.day small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.day.none { opacity: .55; }
.day.active { background: var(--grad); color: #17120a; border-color: transparent; opacity: 1; }
.day.active small { color: rgba(23, 18, 10, .75); }
.weeksep { flex: none; align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); padding: 0 6px; max-width: 90px; line-height: 1.2; white-space: normal; text-align: center; }
.slots { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 18px; padding: 16px 20px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .11); border-radius: 16px; }
.slot.off { opacity: .6; }
.slot time { font-size: 24px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.slot b { display: block; font-size: 17px; }
.slot span { font-size: 14px; color: var(--muted); }
.slot .act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.slot .lbl { font-size: 13px; color: var(--muted); max-width: 230px; }
.lbl.red { color: #ff9b9b; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ——— Тренеры ——— */
.trainer { text-align: center; padding: 28px 18px; }
.avatar { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 5px rgba(20, 20, 26, .9), 0 0 0 6px rgba(233, 185, 73, .4); }
.avatar.noimg { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2a2418, #0e0e12 75%); position: relative; overflow: hidden; }
.avatar.noimg::before { content: ''; position: absolute; inset: 16%; background: url(img/g-mark-128.png) center / contain no-repeat; opacity: .25; }
.avatar.noimg span { position: relative; font-size: 22px; font-weight: 800; color: var(--gold-2); letter-spacing: .04em; }
.coach { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.coach > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.coach > div { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.coach .role { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.coach ul { list-style: none; padding: 0; display: grid; gap: 7px; margin-bottom: 16px; flex: 1; align-content: start; }
.coach li { display: flex; gap: 8px; font-size: 13.5px; color: var(--soft); line-height: 1.4; }
.coach li svg { color: var(--gold); width: 15px; height: 15px; margin-top: 2px; }
.coach .btn { align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--soft); }

/* ——— Абонементы ——— */
.splitbar { display: flex; align-items: center; gap: 16px; padding: 16px 22px; margin-bottom: 26px; border-radius: 18px; border: 1px solid rgba(233, 185, 73, .45); background: linear-gradient(120deg, rgba(233, 185, 73, .18), rgba(255, 255, 255, .03) 70%); color: var(--soft); }
.splitbar b { font-size: 30px; font-weight: 900; color: var(--gold-2); flex: none; }
.splitbar strong { color: var(--text); }
.plan { display: flex; flex-direction: column; }
.plan.best { border-color: rgba(233, 185, 73, .75); background: linear-gradient(160deg, rgba(233, 185, 73, .22), rgba(255, 255, 255, .03) 55%); transform: translateY(-10px); box-shadow: 0 30px 70px -30px rgba(233, 185, 73, .35); }
.badge { position: absolute; top: -12px; right: 18px; background: var(--grad); color: #17120a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan .per { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.plan h3 { margin-top: 6px; }
.price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.monthly { font-size: 13.5px; color: var(--gold-2); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 14px; color: var(--soft); }
.plan li svg { color: var(--gold); margin-top: 2px; width: 16px; height: 16px; }
.moreplans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.moreplans a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); transition: border-color .2s; }
.moreplans a:hover { border-color: var(--gold); }
.moreplans b { font-size: 15px; } .moreplans span { font-size: 14px; color: var(--gold-2); font-weight: 700; white-space: nowrap; } .moreplans small { font-size: 12px; color: var(--muted); }
.extras { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 981px) { .extras { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 8px; } .extras span { white-space: nowrap; padding: 9px 12px; } }
.extras span { font-size: 13px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.extras b { color: var(--gold-2); margin-left: 6px; }

/* ——— Галерея ——— */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery img { width: 100%; margin-bottom: 14px; border-radius: 16px; border: 1px solid var(--line); cursor: zoom-in; transition: filter .2s; break-inside: avoid; }
.gallery img:hover { filter: brightness(1.12); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 14px; }

/* ——— Отзывы ——— */
.rate { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 34px; }
.rate b { font-size: 68px; font-weight: 900; line-height: 1; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { fill: currentColor; width: 22px; height: 22px; }
.review p { color: var(--soft); font-size: 15px; }
.review footer { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ——— Приложение ——— */
.appbox { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; padding: 50px; border-radius: 28px; background: linear-gradient(135deg, rgba(30, 30, 38, .8), rgba(12, 12, 16, .9)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.appbox::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(47, 107, 255, .25), transparent 65%); }
.appbox ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.appbox li { display: flex; gap: 10px; color: var(--soft); }
.appbox li svg { color: var(--gold); margin-top: 3px; }
.phone { position: relative; z-index: 1; width: 250px; height: 500px; border-radius: 38px; border: 8px solid #26262d; background: #000; overflow: hidden; box-shadow: 0 40px 80px -30px #000; }
.phone:empty { display: none; }
.phone iframe { width: 375px; height: 776px; border: 0; transform: scale(.624); transform-origin: 0 0; }
.install-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.qr-box { display: flex; align-items: center; gap: 14px; max-width: 290px; }
.qr-box #qr { padding: 8px; background: #fff; border-radius: 14px; flex: none; }
.qr-box #qr img, .qr-box #qr canvas { display: block; width: 120px; height: 120px; }
.qr-box span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.howto { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); position: relative; z-index: 1; }
.howto b { color: #e6e3db; font-weight: 600; }

/* ——— Контакты ——— */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; }
.info { display: grid; gap: 22px; align-content: start; }
.row { display: flex; gap: 16px; align-items: flex-start; }
.row small { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.row b { display: block; font-size: 17px; font-weight: 600; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.mapcol { display: grid; gap: 12px; align-content: start; }
.map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); height: 480px; background: #0d0d12; }
.mapfail { display: grid; place-items: center; height: 100%; color: var(--gold-2); font-weight: 700; }

/* ——— Формы ——— */
.form { display: grid; gap: 12px; margin-top: 6px; }
.fl { display: grid; gap: 5px; }
.fl > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.form input:not([type=checkbox]), .form select { width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: var(--text); font: inherit; font-size: 16px; }
.form 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% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; text-overflow: ellipsis; }
.form input:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.consent input { width: 22px; height: 22px; padding: 0; flex: none; accent-color: var(--gold); margin: 0; }
.consent a { color: var(--gold-2); text-decoration: underline; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .75); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal .box { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: rgba(22, 22, 28, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(233, 185, 73, .4); border-radius: 22px; padding: 28px; position: relative; outline: none; }
.modal h3 { font-size: 24px; font-weight: 800; padding-right: 36px; }
.modal .when { color: var(--gold-2); font-weight: 600; margin: 6px 0 4px; }
.modal .info { color: var(--muted); font-size: 14px; margin-bottom: 16px; min-height: 20px; display: block; }
.modal .x { position: absolute; top: 10px; right: 10px; font-size: 20px; color: var(--muted); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.modal .after { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.modal .hint { font-size: 13px; color: var(--muted); margin-top: 12px; }
.modal .pushok { color: #9df0c0; font-weight: 700; align-self: center; }
.ok { display: none; padding: 16px; border-radius: 14px; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35); color: #b6f5d2; font-size: 14.5px; }
.ok.err { background: rgba(255, 90, 90, .1); border-color: rgba(255, 90, 90, .4); color: #ffc2c2; }
.ok.show { display: block; }

footer.site { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.callbar { display: none; }

/* Появление блоков при прокрутке */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease var(--d, 0ms), translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), border-color .2s; }
.reveal.in { opacity: 1; translate: 0 0; }
.plan.best.reveal.in { translate: 0 0; }

/* Слабые устройства: без размытия совсем */
.lite .header, .lite .modal .box, .lite .callbar, .lite .nav.open { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .header { background: rgba(10, 10, 14, .97); }

@media (max-width: 1100px) { .header .tel { display: none; } .photos { grid-template-columns: repeat(3, 1fr); } .moreplans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .nav, .header .btn { display: none; }
  .burger { display: grid; margin-left: auto; }
  .nav.open { display: flex; flex-direction: column; position: fixed; inset: 72px 0 0 0; padding: 18px 24px calc(24px + env(safe-area-inset-bottom)); gap: 0; margin: 0;
    background: rgba(8, 8, 12, .94); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); overflow-y: auto; }
  .nav.open > a { padding: 14px 0; font-size: 24px; font-weight: 700; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav.open .nav-extra { display: grid; gap: 14px; margin-top: auto; padding-top: 24px; }
  .nav-tel { font-size: 20px; font-weight: 700; color: var(--gold-2); }
  .nav-extra .btn { width: 100%; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .slides { height: clamp(380px, 112vw, 560px); min-height: 0; border-radius: 26px; }
  section { padding: 68px 0; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .contacts, .appbox { grid-template-columns: 1fr; }
  .appbox { padding: 30px 24px; }
  .phone { margin: 0 auto; }
  .qr-box { display: none; } .install-row .btn { width: 100%; }
  .plan.best { transform: none; }
}

/* ═══════════ Телефон: компактно, ленты со свайпом ═══════════ */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  section { padding: 44px 0; }
  .head { margin-bottom: 20px; }
  h2 { font-size: 27px; margin: 8px 0 8px; }
  .sub { font-size: 14.5px; line-height: 1.5; }
  .eyebrow { font-size: 11.5px; }
  .subhead { font-size: 18px; margin: 30px 0 14px; }
  body { padding-bottom: 76px; }

  /* Первый экран: фото-слайдшоу на весь экран, текст поверх */
  .hero { position: relative; padding: 0; min-height: calc(100svh - 70px); display: flex; overflow: hidden; }
  .hero .wrap { display: block; position: static; width: calc(100% - 32px); margin: 0 auto; }
  .hero .wrap > div:first-child { position: relative; z-index: 2; padding: 94px 0 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - 70px); }
  .hero-photo { position: absolute; inset: 0; z-index: 0; }
  .hero-photo::before { display: none; }
  .slides { height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
  .slides::after { background: linear-gradient(180deg, rgba(6, 6, 9, .55) 0%, rgba(6, 6, 9, .25) 32%, rgba(6, 6, 9, .8) 62%, rgba(6, 6, 9, .97) 100%); }
  .dots { top: 78px; bottom: auto; right: 8px; }
  .hero .pill { align-self: flex-start; font-size: 12.5px; padding: 7px 12px; }
  h1 { font-size: clamp(32px, 10vw, 40px); margin: 14px 0 10px; }
  .lead { font-size: 15px; line-height: 1.5; color: #e6e3db; }
  .hero-cta { margin-top: 18px; gap: 10px; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1; padding: 12px 10px; font-size: 14px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 20px; padding-top: 18px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12.5px; line-height: 1.3; display: block; }

  /* Ленты со свайпом: видна одна карточка и край следующей */
  /* overflow-y: hidden — лента листается только вбок, вертикальный свайп сразу листает страницу */
  .grid.swipe, .gallery.swipe { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 14px 16px 16px; scroll-padding: 0 16px; scrollbar-width: none; columns: auto; }
  .grid.swipe::-webkit-scrollbar, .gallery.swipe::-webkit-scrollbar { display: none; }
  .grid.swipe > * { flex: 0 0 80%; scroll-snap-align: start; }
  .grid.swipe.narrow > * { flex-basis: 46%; }
  .grid.photos.swipe > * { flex-basis: 72%; }
  #planGrid > * { flex-basis: 78%; }
  #planGrid { padding-top: 22px; }
  .gallery.swipe img { flex: none; height: 300px; width: auto; max-width: 82vw; object-fit: cover; margin: 0; scroll-snap-align: start; }
  .card { padding: 20px; }
  .card h3 { font-size: 16.5px; } .card p { font-size: 14px; }
  .card.photo img { aspect-ratio: 4 / 5; }
  .coach > img { aspect-ratio: 1 / 1; object-position: 50% 15%; }
  .coach > div { padding: 16px 16px 18px; }
  .coach li { font-size: 13px; }
  .trainer { padding: 18px 10px; } .trainer h3 { font-size: 14px; }
  .avatar { width: 64px; height: 64px; margin-bottom: 10px; } .avatar.noimg span { font-size: 18px; }
  .tags { gap: 4px; } .tag { font-size: 12px; padding: 4px 8px; }
  .price { font-size: 32px; }
  .plan ul { margin: 12px 0 16px; gap: 6px; }
  .splitbar { padding: 14px 16px; gap: 12px; font-size: 14px; margin-bottom: 8px; } .splitbar b { font-size: 24px; }
  .moreplans { grid-template-columns: 1fr 1fr; }

  /* Расписание: кнопка справа */
  .days { margin: 0 -16px 14px; padding: 0 16px 6px; }
  .day { padding: 9px 14px; font-size: 14px; }
  .slot { grid-template-columns: 52px 1fr; padding: 13px 14px; gap: 6px 12px; }
  .slot time { font-size: 18px; }
  .slot b { font-size: 15.5px; } .slot span { font-size: 13px; }
  .slot .act { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
  .slot .act .lbl { max-width: none; }

  /* Отзывы, приложение, контакты */
  .rate { gap: 12px 16px; margin-bottom: 8px; } .rate b { font-size: 46px; }
  .review p { font-size: 14.5px; }
  .appbox { padding: 26px 20px; gap: 0; }
  .appbox ul { margin: 14px 0 20px; gap: 8px; font-size: 14.5px; }
  .contacts { gap: 18px; }
  .info { gap: 16px; }
  .row b { font-size: 15.5px; }
  .map { height: 380px; }
  .appbox .phone { margin-top: 24px; width: 220px; height: 440px; border-radius: 34px; border-width: 7px; }
  .appbox .phone iframe { transform: scale(.549); }
  .extras { gap: 8px; margin-top: 14px; } .extras span { font-size: 12.5px; padding: 7px 11px; }
  .bg::after { width: 110vw; right: -55vw; top: 55%; opacity: .04; }

  .callbar { display: flex; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 8, 10, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .callbar .btn { flex: 1; padding: 12px 10px; }
  .menu-open .callbar { display: none; }
  .modal { padding: 0; place-items: end stretch; }
  .modal .box { width: 100%; border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
  html { scroll-behavior: auto; }
}
