/* Royal Gym — лендинг r-gym.ru
   Палитра и шрифты взяты с royal-gym.ru (Golos Text + Source Serif 4, медь #e38e36 → #be762b). */

/* ---------- шрифты (локально, без CDN) ---------- */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(fonts/GolosText-Regular.woff2) format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(fonts/GolosText-Medium.woff2) format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(fonts/GolosText-DemiBold.woff2) format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(fonts/GolosText-Bold.woff2) format("woff2"); }

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/source-serif-4-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/source-serif-4-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/source-serif-4-latext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap;
  src: url(fonts/source-serif-4-italic-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap;
  src: url(fonts/source-serif-4-italic-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- токены ---------- */
:root {
  --ink-950: #181717;
  --ink-900: #1f1c1c;
  --ink-850: #231f20;   /* шапка, плашки — как на royal-gym.ru */
  --ink-800: #272727;   /* основной фон royal-gym.ru */

  --copper: #e38e36;
  --copper-deep: #be762b;
  --copper-btn-a: #c47a2f;
  --copper-btn-b: #a6611e;
  --copper-soft: #f2b27a;  /* тональный акцент для текста на тёмном */
  --bronze: #9c785c;
  --paper: #f4f3f4;        /* светлый фон royal-gym.ru (--color-bg-10) */
  --copper-field: linear-gradient(180deg, #e38e36, #be762b);  /* медный фон секций (квиз, зоны) — градиент кнопок royal-gym.ru */
  --ink-on-paper: #231f20;
  --ink-on-paper-2: rgba(35, 31, 32, .72);

  --text: #fff;
  --text-2: rgba(255, 255, 255, .76);
  --text-3: rgba(255, 255, 255, .54);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 16px;
  --container: 1444px;
  --bar-h: 64px;
  --bar-r: 24px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --bar-h: 84px; --bar-r: 36px; } }
@media (min-width: 1200px) { :root { --gutter: 45px; --bar-h: 100px; --bar-r: 50px; } }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink-850);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--copper-soft); outline-offset: 3px; }

/* ---------- кнопка: медная «пилюля» с точкой, как на royal-gym.ru;
   при наведении точка вытягивается в стрелку из макета ТЗ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 60px; padding: 0 26px 0 32px;
  border: 0; border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--copper-btn-a), var(--copper-btn-b) 50%, #8f5317) 0 0 / 100% 200%;
  color: #fff; text-decoration: none;
  font: 600 18px/1.1 var(--sans);
  text-shadow: 0 1px 0 rgba(60, 30, 5, .25);
  text-wrap: balance;   /* длинная надпись на телефоне переносится ровными строками */
  transition: background-position .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:focus-visible { background-position: 0 100%; }
.btn:active { background-position: 0 100%; filter: brightness(.94); }
.btn__ico { width: 24px; height: 12px; flex: none; overflow: visible; }
.btn__ico path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn__line { stroke-dasharray: 19; stroke-dashoffset: 19; transition: stroke-dashoffset .3s ease; }
.btn__head { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .22s ease .12s; }
.btn__dot { fill: #fff; transform-box: view-box; transform-origin: 20px 6px; transition: transform .22s ease; }
.btn:hover .btn__line, .btn:hover .btn__head,
.btn:focus-visible .btn__line, .btn:focus-visible .btn__head { stroke-dashoffset: 0; }
.btn:hover .btn__dot, .btn:focus-visible .btn__dot { transform: scale(0); }
/* тёмная «пилюля» для медных секций: медная кнопка на медном фоне теряется */
.btn--ink { background: linear-gradient(180deg, #3a3533, var(--ink-850) 50%, #121010) 0 0 / 100% 200%; text-shadow: none; }
.btn--ink .btn__ico path { stroke: var(--copper-soft); }
.btn--ink .btn__dot { fill: var(--copper-soft); }
.btn--sm { min-height: 48px; padding: 0 20px 0 24px; font-size: 15px; gap: 12px; }

/* ---------- шапка: тёмная плашка со скруглённым низом (фирменный силуэт royal-gym.ru) ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--bar-h);
  background: var(--ink-850);
  border-radius: 0 0 var(--bar-r) var(--bar-r);
}
.topbar__in {
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
@media (min-width: 768px) { .topbar__in { gap: 28px; } }
.topbar__logo, .topbar__phone, .topbar__home { flex: none; }
.topbar__logo img { height: 38px; width: auto; }
.topbar__addr { display: none; margin: 0; font-size: 14px; line-height: 1.3; color: var(--text-2); }
.topbar__addr span { display: block; color: var(--text-3); }
.topbar__phone {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--ink-850);
  text-decoration: none; font: 600 17px/1 var(--sans);
}
.topbar__phone-ico { width: 20px; height: 20px; fill: currentColor; }
.topbar__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topbar__cta { display: none; }

@media (min-width: 768px) {
  .topbar__logo img { height: 46px; }
  .topbar__phone { width: auto; height: auto; border-radius: 0; background: none; color: var(--text); }
  .topbar__phone-ico { width: 18px; height: 18px; fill: var(--copper-soft); }
  .topbar__phone span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .topbar__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .topbar__logo img { height: 52px; }
  .topbar__addr { display: block; padding-left: 28px; }
}

/* ---------- 1. главный экран ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(160deg, #34302e 0%, #2c2928 42%, #2a2726 100%);
  padding-top: calc(var(--bar-h) - var(--bar-r));
}

/* фото: на мобиле сверху, растушёвано вниз; под скруглёнными углами шапки видно фото */
.hero__photo {
  position: relative; z-index: -1;
  height: min(54svh, 470px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.82) 64%, rgba(0,0,0,.55) 76%, rgba(0,0,0,.25) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.82) 64%, rgba(0,0,0,.55) 76%, rgba(0,0,0,.25) 88%, transparent 100%);
}
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 34% 0; }

.hero__body {
  position: relative;
  max-width: var(--container); margin: -96px auto 0; padding: 0 var(--gutter);
}
.hero__title {
  margin: 0;
  font: 600 clamp(28px, 8vw, 40px)/1.06 var(--serif);
  letter-spacing: -.012em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.hero__brand { color: var(--copper-soft); }
.hero__title em { font-style: italic; }
.hero__lead { margin: 18px 0 0; max-width: 34em; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.hero__note {
  position: relative; margin: 22px 0 0; padding-left: 18px;
  font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--text);
}
.hero__note::before {
  content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--copper), var(--copper-deep));
}
.hero__btn { margin-top: 22px; width: 100%; }

/* циферблат «1 минута»: деления как на блине штанги / логотипе, точка обходит круг ровно за 60 с */
.dial {
  position: absolute; z-index: 2;
  right: 8px; top: calc(var(--bar-h) - var(--bar-r) + min(54svh, 470px) - 212px);
  width: 108px; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.dial__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__plate { fill: var(--ink-850); stroke: rgba(156, 120, 92, .55); stroke-width: 1.2; }
.dial__lip { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.dial__ticks line { stroke-linecap: round; }
.dial__ticks .t1 { stroke: rgba(255, 255, 255, .26); stroke-width: 1.4; }
.dial__ticks .t5 { stroke: rgba(255, 255, 255, .6); stroke-width: 2; }
.dial__ticks .t3 { stroke: var(--copper); stroke-width: 3.4; }
.dial__sweep {
  fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 66.6;
}
.dial__hand { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(120deg); }
.dial__hand circle { fill: #fff; }
.dial__label {
  position: relative; display: flex; flex-direction: column; align-items: center;
  line-height: 1; text-align: center;
  transform: translateY(-3px); /* оптическая центровка: у цифры «3» пустое поле над глифом */
}
@media (min-width: 900px) { .dial__label { transform: translateY(-5px); } }
.dial__label b { font: 600 36px/0.9 var(--serif); }
.dial__label span { margin-top: 3px; font-size: 11px; font-weight: 500; }
.dial__label small { margin-top: 2px; font-size: 10px; color: var(--text-3); }
.dial:hover .dial__ticks .t1 { stroke: rgba(255, 255, 255, .42); }
.dial:hover .dial__plate { stroke: var(--copper); }

@media (prefers-reduced-motion: no-preference) {
  .dial__hand { animation: dial-hand 60s linear infinite; }
  .dial__sweep { animation: dial-sweep 60s linear infinite; }
}
@keyframes dial-hand { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dial-sweep { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* цифры клуба: плашка со скруглённым верхом — зеркало шапки */
.facts {
  list-style: none; margin: 52px 0 0; padding: 32px var(--gutter) 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px;
  background: var(--ink-850);
  border-radius: var(--bar-r) var(--bar-r) 0 0;
}
.facts li { display: flex; flex-direction: column; gap: 6px; }
.facts li:last-child { grid-column: 1 / -1; }
.facts b { font: 600 27px/1 var(--serif); letter-spacing: -.005em; }
.facts .sup { font-size: .72em; line-height: 0; margin-left: .03em; }
.facts span { font-size: 14px; line-height: 1.3; color: var(--text-2); }

/* ---------- планшет и десктоп: текст слева, фото справа (как в макете ТЗ) ---------- */
@media (min-width: 900px) {
  .hero {
    min-height: max(680px, min(100svh, 1000px));
    padding-top: 0;
    display: flex; flex-direction: column;
  }
  .hero__photo {
    position: absolute; z-index: -1;
    top: calc(var(--bar-h) - var(--bar-r)); right: 0; bottom: 0;
    width: 58%; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 6%, rgba(0,0,0,.22) 12%, rgba(0,0,0,.42) 18%, rgba(0,0,0,.64) 24%, rgba(0,0,0,.82) 30%, rgba(0,0,0,.94) 36%, #000 42%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 6%, rgba(0,0,0,.22) 12%, rgba(0,0,0,.42) 18%, rgba(0,0,0,.64) 24%, rgba(0,0,0,.82) 30%, rgba(0,0,0,.94) 36%, #000 42%);
  }
  .hero__photo img { object-position: 50% 0; }

  .hero__body {
    flex: 1; width: 100%;
    margin: 0 auto;
    padding-top: calc(var(--bar-h) + clamp(32px, 6vh, 72px));
    padding-bottom: clamp(48px, 8vh, 96px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .hero__title { max-width: 12.6em; font-size: clamp(44px, 4.5vw, 68px); }
  .hero__lead { margin-top: 26px; max-width: 30em; font-size: 19px; }
  .hero__note { margin-top: 30px; }
  .hero__btn { width: auto; margin-top: 26px; }

  .dial {
    width: clamp(150px, 13vw, 196px);
    right: auto; top: auto;
    left: 44%;
    bottom: calc(var(--facts-h, 154px) + clamp(36px, 6vh, 64px));
  }
  .dial__label b { font-size: clamp(48px, 4.2vw, 64px); }
  .dial__label span { font-size: 14px; margin-top: 6px; }
  .dial__label small { font-size: 12px; }

  .facts {
    margin: 0; padding: 42px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) 46px;
    grid-template-columns: repeat(3, 1fr); gap: 32px;
  }
  .facts li:last-child { grid-column: auto; }
  .facts b { font-size: clamp(32px, 2.9vw, 44px); }
  .facts span { font-size: 15px; }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__photo img {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    @keyframes hero-drift { to { transform: translateY(7%); } }
  }
}

/* ---------- 2. квиз ---------- */
/* ---------- секции: скруглённый верх (силуэт шапки), каждая следующая наезжает на предыдущую.
   Порядок наложения задаёт порядок в разметке, поэтому z-index у всех одинаковый. ---------- */
.sec {
  position: relative; z-index: 1; isolation: isolate;
  border-radius: var(--bar-r) var(--bar-r) 0 0;
  margin-bottom: calc(-1 * var(--bar-r));
  --sec-pad: 56px;
  padding: var(--sec-pad) 0 calc(var(--sec-pad) + 16px + var(--bar-r));
}
@media (min-width: 900px) { .sec { --sec-pad: 104px; } }

/* медная секция квиза; под её углами видна тёмная полоса цифр */
.quiz {
  overflow: clip;
  background: var(--copper-field);
  color: var(--ink-on-paper);
}
.quiz__in { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* медь вокруг карточки — узкая рамка-разделитель между тёмными блоками */
/* медь над карточкой — как отступ сверху у остальных секций (56 / 104 px) */
.quiz { --sec-pad: 20px; --quiz-top: 56px; padding-top: var(--quiz-top); }
@media (min-width: 900px) { .quiz { --sec-pad: 40px; --quiz-top: 104px; } }
/* переход по #quiz приводит сразу к карточке, медный отступ сверху не опускает её вниз */
.quiz { scroll-margin-top: calc(14px - var(--quiz-top)); }

/* карточка квиза: на телефоне — бонусы сверху, шаги, навигация снизу;
   на десктопе — шаги и навигация слева, колонка бонусов справа (решение из Marquiz клуба) */
.qz {
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2c2928, #231f20);
  color: var(--text);
  display: grid; gap: 18px;
}
.qz__main { display: flex; flex-direction: column; min-width: 0; }
/* шапка карточки — как подзаголовок у Marquiz клуба */
.qz__title {
  order: -2; margin: 0; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 600 clamp(22px, 6.2vw, 26px)/1.18 var(--serif); letter-spacing: -.008em;
  color: var(--text); text-wrap: balance;
}
.qz__title-acc { color: var(--copper-soft); }
.qz__steps { flex: 1; }

/* ---- бонусы ---- */
.qz__gifts { order: -1; }
.qz__gifts-t { margin: 0 0 12px; font: 600 18px/1.25 var(--serif); color: var(--copper-soft); }
.gifts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gift {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .045);
  transition: background-color .35s ease;
}
.gift picture, .gift img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.gift:first-child img { object-position: 42% 50%; }
/* пока опрос не пройден, бонусы чуть приглушены; на последнем шаге — в полном цвете */
.gift img { filter: saturate(.7) brightness(.86); transition: filter .5s ease; }
.qz[data-step="3"] .gift img, .qz.is-done .gift img, .qz:not(.is-js) .gift img { filter: none; }
.gift__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gift__t { font-size: 13px; line-height: 1.25; font-weight: 600; }
.gift__s { display: none; font-size: 13px; line-height: 1.3; color: var(--text-3); }
.gift__ok { display: none; color: var(--copper-soft); }
.gift__ok::before { content: "✓ "; }
/* последний шаг и после отправки: бонусы «закреплены» */
.qz[data-step="3"] .gift, .qz.is-done .gift { background: rgba(227, 142, 54, .14); }
.qz[data-step="3"] .gift__lock, .qz.is-done .gift__lock { display: none; }
.qz[data-step="3"] .gift__ok, .qz.is-done .gift__ok { display: inline; }

/* ---- шаги ---- */
.qz__step + .qz__step { margin-top: 40px; }   /* без JS все шаги видны один под другим */
/* вопрос — гротеском и мельче заголовка карточки, чтобы не сливался с ним */
.qz__q { margin: 0; font: 600 18px/1.35 var(--sans); outline: none; }
.qz__hint { margin: 8px 0 0; font-size: 14px; color: var(--text-3); }
.qz__body { margin-top: 18px; }
.qz__arrow { display: none; }

.qz__opts { display: grid; gap: 10px; }
.qz__opts--4 { grid-template-columns: 1fr 1fr; }

.opt {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px; line-height: 1.3;
  cursor: pointer; user-select: none;
  transition: background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { background: rgba(255, 255, 255, .08); }
.opt input, .consent input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt:has(input:checked) { background: rgba(227, 142, 54, .17); }
.opt:has(input:focus-visible), .consent:has(input:focus-visible) .opt__box { outline: 2px solid var(--copper-soft); outline-offset: 2px; }
.opt--accent .opt__t { font-weight: 600; }

/* отметка: квадрат для «несколько», круг для «один» */
.opt__box {
  position: relative; flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .42);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.opt__box::after {
  content: ""; position: absolute; left: 7px; top: 3.5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0; border-radius: 1px;
  transform: rotate(45deg) scale(0); transition: transform .18s ease;
}
input:checked + .opt__box { background: var(--copper-deep); box-shadow: inset 0 0 0 1.6px var(--copper); }
input:checked + .opt__box::after { transform: rotate(45deg) scale(1); }
input[type="radio"] + .opt__box { border-radius: 50%; }
input[type="radio"] + .opt__box::after { left: 6px; top: 6px; width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
input[type="radio"]:checked + .opt__box::after { transform: scale(1); }

/* срок подписки: крупные цифры, как маркировка на блинах */
.opt--term { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 116px; padding: 16px; }
.opt--term .opt__t { font-size: 15px; color: var(--text-2); }
.opt--term b { display: block; margin-bottom: 2px; font: 600 40px/1 var(--serif); color: var(--text); }
.opt--term.opt--accent .opt__t { color: var(--text); font-size: 15px; }

.qz__submit { width: 100%; margin-top: 20px; }
.btn:disabled { cursor: not-allowed; background: rgba(255, 255, 255, .08); color: var(--text-3); text-shadow: none; }
.btn:disabled .btn__dot { fill: var(--text-3); transform: none; }
.btn:disabled .btn__line, .btn:disabled .btn__head { visibility: hidden; }

.qz__lead { margin: 12px 0 0; font-size: 17px; line-height: 1.45; color: var(--text-2); max-width: 32em; }
.qz__fields { display: grid; gap: 14px; }
.field__l { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-2); }
.field__i {
  width: 100%; height: 58px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 14px;
  background: rgba(255, 255, 255, .06); color: var(--text);
  font: 400 17px/1 var(--sans);
  transition: border-color .2s ease, background-color .2s ease;
}
.field__i::placeholder { color: rgba(255, 255, 255, .34); }
.field__i:hover { background: rgba(255, 255, 255, .08); }
.field__i:focus { outline: none; border-color: var(--copper); background: rgba(255, 255, 255, .08); }
.field__i[aria-invalid="true"] { border-color: #ff8f7a; }
.field__err { margin: 8px 0 0; font-size: 14px; color: #ff9f8c; }
.consent {
  position: relative; margin-top: 18px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer;
}
.consent .opt__box { margin-top: -1px; }
.consent a { color: var(--text); text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.consent a:hover { text-decoration-color: var(--copper-soft); }
.qz__fail { margin: 14px 0 0; font-size: 15px; color: #ff9f8c; }
.qz__fail a { color: var(--text); font-weight: 600; }
.qz__submit.is-sending, .lead__submit.is-sending { pointer-events: none; opacity: .75; }

.qz__done { padding: 8px 0 4px; outline: none; }
.qz__done-t { margin: 0; font: 600 clamp(26px, 6.4vw, 40px)/1.12 var(--serif); }
.qz__done-p { margin: 14px 0 0; max-width: 36em; font-size: 17px; line-height: 1.5; color: var(--text-2); }

/* ---- навигация: прогресс «Готово N%» слева, «Назад» и «Далее» справа ---- */
.qz__nav {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.qz__progress { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qz__dial { width: 44px; height: 44px; flex: none; }
.qz__dial-base { fill: var(--ink-850); }
.qz__seg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 4; stroke-linecap: round; transition: stroke .35s ease; }
.qz__seg.is-done { stroke: var(--copper); }
.qz__seg.is-now { stroke: var(--copper-soft); }
.qz__count { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.2; color: var(--text-2); white-space: nowrap; }
.qz__pct { font: 600 19px/1 var(--sans); color: var(--copper-soft); font-variant-numeric: tabular-nums; }
.qz__ctrl { display: flex; align-items: center; gap: 4px; min-height: 52px; }   /* высота как у «Далее», чтобы на шаге 3 панель не сжималась */
.qz__back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 10px;
  border: 0; background: none; color: var(--text-2);
  font: 500 15px/1 var(--sans); cursor: pointer;
  transition: color .2s ease;
}
.qz__back svg { width: 20px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.qz__back:hover { color: var(--text); }
.qz__back:hover svg { transform: translateX(-3px); }
.qz__back.is-off { display: none; }
.qz__next { min-height: 52px; padding: 0 20px 0 24px; font-size: 17px; }
.qz__next[hidden] { display: none; }

/* ---- с JS: шаги лежат в одной ячейке — высота карточки = самому длинному шагу и не скачет ---- */
.qz:not(.is-js) .qz__nav { display: none; }
.qz.is-js .qz__steps { display: grid; }
.qz.is-js .qz__steps > * { grid-area: 1 / 1; min-width: 0; }
.qz.is-js .qz__step + .qz__step { margin-top: 0; }
.qz.is-js .qz__step:not(.is-current) { visibility: hidden; pointer-events: none; }
.qz.is-done .qz__step { visibility: hidden; }
.qz.is-done .qz__ctrl { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .qz.is-js .qz__step.is-current, .qz__done:not([hidden]) { animation: qz-in .38s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes qz-in { from { transform: translateY(14px); opacity: .35; } }

/* телефон: сроки строками в одну колонку — шаг 2 заполняет карточку, а не оставляет пустоту */
@media (max-width: 639px) {
  .qz__opts--4 { grid-template-columns: 1fr; }
  .opt--term { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 92px; gap: 16px; }
  .opt--term .opt__t { display: flex; align-items: baseline; gap: 8px; }
  .opt--term.opt--accent .opt__t { display: block; }
  .opt--term b { margin: 0; font-size: 44px; }
}
@media (min-width: 640px) {
  .qz { padding: 22px 24px 18px; }
  .qz__opts--2 { grid-template-columns: 1fr 1fr; }
  .qz__opts--2 .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* нечётный последний вариант — на всю ширину, без дырки справа */
  .qz__fields { grid-template-columns: 1fr 1fr; }
  .qz__submit { width: auto; }
  .gift picture, .gift img { width: 48px; height: 48px; }
  .gift__t { font-size: 14px; }
}
@media (min-width: 900px) {
  .qz__title { font-size: clamp(32px, 2.8vw, 42px); }
  .qz__q { font-size: 21px; }
  .qz__body { margin-top: 24px; }
  .qz__opts--4 { grid-template-columns: repeat(4, 1fr); }
  .opt { min-height: 66px; padding: 16px 20px; font-size: 17px; }
  .opt--term { min-height: 148px; padding: 20px; }
  .opt--term b { font-size: 52px; }
  .qz__done-p { font-size: 19px; }
}
@media (min-width: 1000px) {
  .qz { grid-template-columns: minmax(0, 1fr) 280px; gap: 0 36px; padding: 34px 36px 26px 40px; }
  .qz__title { grid-column: 1; grid-row: 1; margin-bottom: 26px; padding-bottom: 18px; }
  .qz__main { grid-column: 1; grid-row: 2; }
  .qz__gifts {
    order: 0; grid-column: 2; grid-row: 1 / span 2;
    padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .035);
  }
  .qz__gifts-t { margin-bottom: 16px; font-size: 22px; }
  .gifts { grid-template-columns: 1fr; gap: 12px; }
  /* на десктопе бонус — карточка с картинкой сверху */
  .gift { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
  .gift picture, .gift img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .gift__txt { padding: 12px 14px 14px; }
  .gift__t { font-size: 16px; }
  .gift__s { display: block; }
  .qz__nav { margin-top: 28px; padding-top: 18px; }
  /* последний шаг — как у Marquiz: текст со стрелкой слева, форма справа */
  .qz__step--form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .qz__step--form .qz__body { margin-top: 0; }
  .qz__step--form .qz__fields { grid-template-columns: 1fr; }
  .qz__step--form .qz__submit { width: 100%; }
  .qz__arrow {
    display: block; width: 110px; height: 64px; margin: 22px 0 0 auto;
    fill: none; stroke: var(--copper-soft); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  }
}
/* невысокие ноутбуки (1366×768): карточка с кнопкой «Далее» помещается после перехода по кнопке */
@media (min-width: 900px) and (max-height: 820px) {
  .quiz { --sec-pad: 28px; }
  .qz { padding-top: 22px; }
  .qz__title { margin-bottom: 16px; padding-bottom: 14px; }
  .qz__gifts-t { font-size: 20px; }
  .qz__body { margin-top: 14px; }
  .qz__opts { gap: 8px; }
  .opt { min-height: 50px; padding-block: 12px; }
  .opt--term { min-height: 128px; }
  .qz__nav { margin-top: 18px; padding-top: 14px; }
  .qz__arrow { width: 84px; height: 49px; margin-top: 14px; }
  .gift picture, .gift img { aspect-ratio: 5 / 2; }
  .gift__s { display: none; }
}

/* ---------- 3. знакомство с клубом ---------- */
.intro { background: var(--ink-850); }
.intro__in {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 32px;
}
.intro__photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; background: #2c2928; }
.intro__photo picture, .intro__photo img { width: 100%; height: 100%; }
.intro__photo img { object-fit: cover; object-position: 0% 50%; }   /* вывеска ROYAL GYM и полотенца — у левого края кадра */

.intro__kicker, .coach__kicker, .contacts__kicker { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: var(--copper-soft); }
.intro__title, .coach__title { margin: 0; font: 600 clamp(32px, 8.4vw, 44px)/1.06 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.intro__title em, .coach__title em { font-style: italic; color: var(--copper-soft); }
.intro__lead, .coach__lead { margin: 20px 0 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.intro__sub { margin: 32px 0 0; font-size: 16px; font-weight: 600; }

.perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk b { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; }
.perk p { margin: 5px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
/* круглые иконки из макета ТЗ: медное кольцо — тот же диск, что в логотипе и на циферблате */
.perk__ico { flex: none; width: 48px; height: 48px; }
.perk__ico .perk__ring { fill: rgba(227, 142, 54, .1); stroke: rgba(227, 142, 54, .55); stroke-width: 1.2; }
.perk__ico g * { fill: none; stroke: var(--copper-soft); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.intro__btn { margin-top: 36px; width: 100%; }

@media (min-width: 640px) {
  .perks { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
  .intro__btn { width: auto; }
}
@media (min-width: 1000px) {
  .intro__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 88px); align-items: stretch; }
  .intro__photo { aspect-ratio: auto; min-height: 560px; height: 100%; }
  .intro__title, .coach__title { font-size: clamp(44px, 4vw, 60px); }
  .intro__lead, .coach__lead { font-size: 19px; }
}

/* ---------- 4. зоны клуба ---------- */
.zones { background: var(--copper-field); color: var(--ink-on-paper); }
.zones__in { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.zones__title { margin: 0; font: 600 clamp(32px, 8.4vw, 44px)/1.06 var(--serif); letter-spacing: -.012em; }
.zones__grid {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
/* карточка на подсетке: фото, название, цифра, описание — на одних линиях во всём ряду */
.zone {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--ink-850); color: var(--text);
}
/* высота фото задана явно: Safari по пропорциям (aspect-ratio) неверно считает строку подсетки,
   и фото наезжало на название и цифру. --cw — ширина сетки зон */
.zones__grid { --cw: calc(min(100vw, var(--container)) - 2 * var(--gutter)); }
.zone__ph { margin: 0; height: calc(var(--cw) * .625); overflow: hidden; background: #2c2928; }
.zone__ph picture, .zone__ph img { width: 100%; height: 100%; }
.zone__ph img { object-fit: cover; }
.zone__t { margin: 0; padding: 20px 20px 0; font: 600 18px/1.3 var(--sans); }
.zone__fig { margin: 0; padding: 8px 20px 0; font: 600 30px/1.1 var(--serif); letter-spacing: -.005em; color: var(--copper-soft); }
.zone__fig .sup { font-size: .72em; line-height: 0; margin-left: .03em; }
.zone__d { margin: 0; padding: 10px 20px 22px; font-size: 15px; line-height: 1.5; color: var(--text-2); }

@media (min-width: 640px) {
  .zones__grid { grid-template-columns: repeat(2, 1fr); }
  .zone--wide { grid-column: 1 / -1; }
  .zone__ph { height: calc((var(--cw) - 14px) / 2 * .625); }
  .zone--wide .zone__ph { height: calc(var(--cw) * .5); }
}
@media (min-width: 1000px) {
  .zones__title { font-size: clamp(44px, 4vw, 60px); }
  .zones__grid { margin-top: 44px; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .zone--wide { grid-column: span 2; }
  .zone__ph { height: calc((var(--cw) - 48px) / 4 * .75); }
  .zone--wide .zone__ph { height: calc((var(--cw) - 16px) / 2 * .5125); }
  .zone__t { padding: 24px 24px 0; font-size: 19px; }
  .zone__fig { padding: 10px 24px 0; font-size: 34px; }
  .zone--wide .zone__fig { font-size: 40px; }
  .zone__d { padding: 12px 24px 26px; }
}

/* ---------- 5. тренеры ---------- */
.coach { background: var(--ink-850); }
.coach__in {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 32px;
  grid-template-areas: "text" "fig" "cta";
}
.coach__text { grid-area: text; }
.coach__fig { grid-area: fig; margin: 0; }
.coach__cta { grid-area: cta; }
.coach__btn { width: 100%; padding-block: 12px; }

/* медная плашка из макета ТЗ */
.coach__plate { border-radius: 20px; background: var(--copper-field); padding: 22px 12px; }

/* «блины вокруг грифа»: шесть портретов по шестиугольнику вокруг диска «50+».
   Диаметр D, шаг между центрами 1.1·D → поле 3.2·D × 2.905·D */
.crew {
  position: relative; container-type: inline-size;
  max-width: 600px; margin: 0 auto;
  aspect-ratio: 3.2 / 2.905;
}
.crew__list { list-style: none; margin: 0; padding: 0; }
.crew__hub, .crew__p {
  position: absolute; left: var(--x); top: var(--y);
  width: 31.25%; aspect-ratio: 1; margin: 0;
  border-radius: 50%;
}
.crew__p:nth-child(1) { --x: 17.1875%; --y: 0%; }
.crew__p:nth-child(2) { --x: 51.5625%; --y: 0%; }
.crew__p:nth-child(3) { --x: 68.75%;   --y: 32.79%; }
.crew__p:nth-child(4) { --x: 51.5625%; --y: 65.58%; }
.crew__p:nth-child(5) { --x: 17.1875%; --y: 65.58%; }
.crew__p:nth-child(6) { --x: 0%;       --y: 32.79%; }
.crew__hub { --x: 34.375%; --y: 32.79%; }

.crew__p {
  overflow: hidden; background: #2c2928;
  box-shadow: 0 0 0 3px var(--ink-850), 0 16px 26px -16px rgba(74, 36, 6, .7);
}
.crew__p picture, .crew__p img { width: 100%; height: 100%; }
.crew__p img { object-fit: cover; }

.crew__hub {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--text);
  box-shadow: 0 16px 26px -16px rgba(74, 36, 6, .7);
}
.crew__dial { position: absolute; inset: 0; width: 100%; height: 100%; }
.crew__disc { fill: var(--ink-850); }
.crew__ticks line { stroke-linecap: round; }
.crew__ticks .t1 { stroke: rgba(255, 255, 255, .24); stroke-width: 1.6; }
.crew__ticks .t5 { stroke: rgba(255, 255, 255, .6); stroke-width: 2.4; }
.crew__arc { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.crew__n { position: relative; font: 600 32px/0.9 var(--serif); font-size: 10.5cqi; letter-spacing: -.01em; }
.crew__l { position: relative; max-width: 6.4em; margin-top: 4px; font-size: 10.5px; font-size: clamp(10.5px, 2.5cqi, 16px); line-height: 1.15; font-weight: 500; color: var(--text-2); }

.coach__cap { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* дуга вокруг «50+» замыкается, пока блок въезжает в экран; без поддержки — сразу целая */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .coach__fig { view-timeline-name: --crew; }
    .crew__arc { animation: crew-arc linear both; animation-timeline: --crew; animation-range: entry 15% cover 45%; }
  }
}
@keyframes crew-arc { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

@media (min-width: 640px) {
  .coach__plate { padding: 32px; }
  .coach__btn { width: auto; }
}
@media (min-width: 1000px) {
  .coach__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". fig" "text fig" "cta fig" ". fig";
    column-gap: clamp(48px, 5vw, 88px); row-gap: 0;
  }
  .coach__cta { margin-top: 40px; }
  .coach__plate { padding: clamp(32px, 3.4vw, 52px); }
  .crew { max-width: none; }
}
/* узкий десктоп: колонка текста уже — кнопка компактнее, чтобы надпись осталась в одну строку */
@media (min-width: 1000px) and (max-width: 1199px) {
  .coach__btn { font-size: 16px; padding-inline: 26px 22px; gap: 12px; }
}

/* ---------- 6. групповые программы ---------- */
.groups { background: var(--copper-field); color: var(--ink-on-paper); }
.groups__in {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 32px;
  grid-template-areas: "text" "dirs" "cta";
}
.groups__text { grid-area: text; }
.groups__dirs { grid-area: dirs; }
.groups__cta { grid-area: cta; }
.groups__kicker { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.groups__title { margin: 0; font: 600 clamp(32px, 8.4vw, 44px)/1.06 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.groups__title em { font-style: italic; }
.groups__lead { margin: 20px 0 0; max-width: 30em; font-size: 17px; line-height: 1.55; }
.groups__sub { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.groups__btn { width: 100%; }

/* четыре направления из ТЗ; в каждом — реальные занятия из программы клуба */
.dirs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dir {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 20px 20px 22px;
  border-radius: 20px; background: var(--ink-850); color: var(--text);
}
.dir__t { margin: 0; font: 600 23px/1.15 var(--serif); letter-spacing: -.005em; }
.dir__l { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* бегущая строка «нон-стоп»: все занятия клуба, разделитель — диск, как в логотипе */
.run { margin-top: 56px; overflow: hidden; }
.run__track { display: flex; width: max-content; }
.run__set { display: flex; align-items: center; flex: none; font: italic 600 clamp(30px, 6vw, 72px)/1.25 var(--serif); }
.run__i { padding: 0 .42em; white-space: nowrap; letter-spacing: -.01em; }
.run__sep { flex: none; width: .34em; height: .34em; }
.run__sep circle { fill: none; stroke: var(--ink-850); stroke-width: 5.5; }
@media (prefers-reduced-motion: no-preference) {
  .run__track { animation: run 90s linear infinite; }
  .run:hover .run__track { animation-play-state: paused; }
}
@keyframes run { to { transform: translateX(-50%); } }

@media (min-width: 560px) {
  .dirs { grid-template-columns: 1fr 1fr; }
  .dir { min-height: 168px; }
}
@media (min-width: 640px) { .groups__btn { width: auto; } }
@media (min-width: 1000px) {
  .groups__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". dirs" "text dirs" "cta dirs" ". dirs";
    column-gap: clamp(48px, 5vw, 88px); row-gap: 0;
  }
  .groups__cta { margin-top: 40px; }
  .groups__title { font-size: clamp(44px, 4vw, 60px); }
  .groups__lead { font-size: 19px; }
  .dirs { gap: 16px; }
  .dir { min-height: 220px; padding: 28px; }
  .dir__t { font-size: clamp(26px, 2.3vw, 34px); }
  .dir__l { font-size: 16px; }
  .run { margin-top: 88px; }
}

/* ---------- 7. контакты ---------- */
.contacts { background: var(--ink-850); }
.contacts__in {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 36px;
}
.contacts__title { margin: 0; font: 600 clamp(30px, 8vw, 44px)/1.08 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.contacts__place { margin: 10px 0 0; font-size: 17px; color: var(--text-2); }
.contacts__phone {
  display: inline-block; margin-top: 26px;
  font: 600 clamp(28px, 7.4vw, 40px)/1.1 var(--serif); letter-spacing: -.005em;
  color: var(--text); text-decoration: none; transition: color .2s ease;
}
.contacts__phone:hover { color: var(--copper-soft); }
.contacts__btn { margin-top: 34px; width: 100%; }

/* часы работы: полосы суток, медью — когда клуб открыт; белая риска — «сейчас» по самарскому времени */
.hours { margin-top: 28px; max-width: 460px; }
.hours__now { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.hours__now::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.hours__now.is-open { color: var(--text); }
.hours__now.is-open::before { background: var(--copper); box-shadow: 0 0 0 4px rgba(227, 142, 54, .22); }
.hours__list { margin: 0; display: grid; gap: 14px; }
.hours__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; }
.hours__row dt { font-size: 15px; color: var(--text-2); }
.hours__row dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 14px; }
.hours__row.is-today dt { color: var(--text); font-weight: 600; }
.hours__bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.hours__bar::before {
  content: ""; position: absolute; top: 0; bottom: 0; border-radius: 8px;
  left: calc(var(--from) / 24 * 100%); right: calc((24 - var(--to)) / 24 * 100%);
  background: linear-gradient(90deg, var(--copper), var(--copper-deep));
}
.hours__mark {
  display: none; position: absolute; top: -6px; bottom: -6px; left: calc(var(--now, 0) * 100%);
  width: 2px; margin-left: -1px; border-radius: 2px; background: #fff;
}
.hours__row.is-today .hours__mark { display: block; }
.hours__t { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.hours__scale { position: relative; height: 16px; margin: 8px calc(100px + 14px) 0 calc(52px + 14px); font-size: 11px; line-height: 16px; color: var(--text-3); }
.hours__scale span { position: absolute; left: calc(var(--h) / 24 * 100%); transform: translateX(-50%); }

.contacts__map { position: relative; height: 380px; border-radius: 20px; overflow: hidden; background: #2c2928; }
.contacts__map::before {
  content: "Карта загружается…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; color: var(--text-3);
}
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts__map.is-locked iframe { pointer-events: none; }
/* карта не перехватывает прокрутку страницы, пока её не «взяли» нажатием */
.contacts__unlock {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 16px;
  border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.contacts__unlock span {
  padding: 10px 16px; border-radius: 50px;
  background: rgba(35, 31, 32, .88); color: #fff; font: 500 14px/1.2 var(--sans);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
}
.contacts__links { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 14px 0 0; }
.contacts__route {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px;
}
.contacts__route:hover { text-decoration-color: var(--copper-soft); }
.contacts__route svg { width: 12px; height: 12px; fill: none; stroke: var(--copper-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 640px) { .contacts__btn { width: auto; } }
@media (min-width: 1000px) {
  .contacts__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 88px); align-items: stretch; }
  .contacts__title { font-size: clamp(40px, 3.6vw, 56px); }
  .contacts__mapcol { display: flex; flex-direction: column; }
  .contacts__map { flex: 1; height: auto; min-height: 520px; }
}

/* ---------- подвал: медная плашка со скруглённым верхом и крупным ROYAL GYM, как в макете ---------- */
.foot {
  position: relative; z-index: 1;
  border-radius: var(--bar-r) var(--bar-r) 0 0;
  background: var(--copper-field); color: var(--ink-on-paper);
  overflow: hidden;
}
.foot__in { max-width: var(--container); margin: 0 auto; padding: 44px var(--gutter) 0; }
.foot__top { display: grid; gap: 22px; }
.foot__logo img { height: 46px; width: auto; }
.foot__addr, .foot__hours { margin: 0; font-size: 15px; line-height: 1.5; }
.foot__phone { font: 600 24px/1.2 var(--serif); color: inherit; text-decoration: none; }
.foot__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(35, 31, 32, .22);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  font-size: 14px;
}
.foot__copy { margin: 0; }
.foot__bottom a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(35, 31, 32, .4); }
.foot__bottom a:hover { text-decoration-color: currentColor; }
.foot__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.foot__social a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.foot__mark {
  margin: 18px 0 0; text-align: center; white-space: nowrap;
  font: 600 clamp(52px, 16.6vw, 248px)/.86 var(--serif); letter-spacing: .02em;
  color: rgba(35, 31, 32, .13);
  padding-bottom: .14em;
  /* водяной знак своей рамкой заходит на строку со ссылками — клики должны проходить сквозь него */
  pointer-events: none; user-select: none;
}
@media (min-width: 768px) {
  .foot__in { padding-top: 56px; }
  .foot__top { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 48px; }
  .foot__social { margin-left: auto; }
}

/* ---------- страница «Спасибо» ---------- */
.topbar__home { margin-left: 12px; }
.topbar__home { white-space: nowrap; }
/* самые узкие телефоны: логотип, телефон и «На главную» помещаются в одну строку с полями */
@media (max-width: 399px) {
  .topbar__in { gap: 12px; }
  .topbar__logo img { height: 32px; }
  .topbar__phone { width: 44px; height: 44px; }
  .topbar .topbar__home { margin-left: 0; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 767px) {
  .topbar__home { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .topbar__home .btn__ico { display: none; }
}

.thanks {
  position: relative; overflow: clip;
  background: linear-gradient(170deg, #34302e 0%, #2c2928 30%, var(--ink-850) 70%);
  padding: calc(var(--bar-h) + 36px) 0 calc(80px + var(--bar-r));
  margin-bottom: calc(-1 * var(--bar-r));
}
.thanks__in { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 24px; align-items: center; }
.thanks__kicker, .promos__kicker { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: var(--copper-soft); }
.thanks__title { margin: 0; font: 600 clamp(36px, 10vw, 52px)/1.04 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.thanks__title span { color: var(--copper-soft); }
.thanks__lead { margin: 20px 0 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.thanks__go { margin-top: 28px; }

/* печать «Your Royal Gym journey»: медный диск с галочкой, надпись по кругу */
.seal { margin: 0; width: 156px; order: -1; }
.seal__svg { width: 100%; height: auto; overflow: visible; }
.seal__txt { font: 600 13px var(--sans); fill: var(--text-2); }
.seal__lip { fill: none; stroke: rgba(35, 31, 32, .2); stroke-width: 1.5; }
.seal__check { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .seal__check { animation: seal-check .7s cubic-bezier(.6, 0, .2, 1) .3s both; }
  .seal__spin { transform-box: view-box; transform-origin: 120px 120px; animation: seal-spin 48s linear infinite; }
}
@keyframes seal-check { from { stroke-dashoffset: 100; } }
@keyframes seal-spin { to { transform: rotate(360deg); } }

.promos { max-width: var(--container); margin: 72px auto 0; padding: 0 var(--gutter); }
.promos__title { margin: 0; font: 600 clamp(30px, 8vw, 44px)/1.08 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.promos__title em { font-style: italic; color: var(--copper-soft); }
.promos__lead { margin: 16px 0 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.promos__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.promos__note { margin: 20px 0 0; font-size: 14px; color: var(--text-3); }

/* карточка акции: слева креатив клиента (квадрат целиком — на нём текст), справа описание */
.promo { display: grid; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #2c2928, #262222); }
.promo__art { position: relative; display: block; background: #1c1918; }
/* высота креатива — по его пропорциям через отступ (надёжно и в Safari); картинка заполняет блок */
.promo__art::before { content: ""; display: block; padding-top: 100%; }
.promo--wide .promo__art::before { padding-top: 84%; }             /* фитнес-ланч 1280×1076 */
.promo__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo--wide .promo__art img { object-position: 0 50%; }           /* логотип и текст — у левого края */
.promo__body { padding: 20px 20px 22px; display: flex; flex-direction: column; }
.promo__tag { margin: 0; font-size: 14px; font-weight: 500; color: var(--copper-soft); }
.promo__t { margin: 8px 0 0; font: 600 24px/1.15 var(--serif); letter-spacing: -.005em; }
.promo__d { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.promo__acts { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.promo__more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--text);
  text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35);
}
.promo__more:hover { text-decoration-color: var(--copper-soft); }
.promo__pts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.promo__pts li { position: relative; padding-left: 22px; }
.promo__pts li::before {   /* медный диск с отверстием, как в логотипе */
  content: ""; position: absolute; left: 0; top: .32em; width: 12px; height: 12px; border-radius: 50%;
  border: 3.5px solid var(--copper-soft);
}
.promo__pts b { color: var(--text); font-weight: 600; }

@media (min-width: 640px) {
  .promo { grid-template-columns: 38% minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .thanks__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .seal { order: 0; width: clamp(260px, 25vw, 360px); justify-self: end; }
  .thanks__title { font-size: clamp(52px, 5vw, 76px); }
  .thanks__lead { font-size: 19px; }
  .promos { margin-top: 112px; }
  .promos__title { font-size: clamp(44px, 4vw, 60px); }
  .promos__lead { font-size: 19px; }
  .promos__list { margin-top: 44px; }
}
@media (min-width: 1100px) {
  .promos__list { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 42% minmax(0, 1fr); }
  .promo__body { padding: 26px 26px 26px; }
  /* пятая акция — во всю ширину под четвёркой; креатив той же ширины, что у карточек над ней */
  .promo--wide { grid-column: 1 / -1; grid-template-columns: calc((100% - 16px) / 2 * .42) minmax(0, 1fr); }
  .promo--wide .promo__body { padding: 34px 40px; }
  .promo--wide .promo__pts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 32px; margin-top: 18px; }
  .promo__t { font-size: 26px; }
}

/* ловушка для ботов в формах: людям не видна и не получает фокус */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- общая форма «имя + телефон» ---------- */
.lead {
  width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px);
  margin: auto; padding: 0;
  border: 0; border-radius: 20px;
  background: linear-gradient(180deg, #2c2928, #231f20); color: var(--text);
  overflow: auto;
}
.lead::backdrop { background: rgba(20, 18, 18, .72); }
.lead__form, .lead__done { padding: 32px 24px 28px; }
.lead__x {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.lead__x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lead__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lead__t { margin: 0; padding-right: 36px; font: 600 26px/1.15 var(--serif); }
.lead__p { margin: 10px 0 22px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.lead .field + .field { margin-top: 14px; }
.lead__submit, .lead__close, .lead__go { width: 100%; margin-top: 22px; }
.lead[open] { animation: lead-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes lead-in { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .lead[open] { animation: none; } }
html.is-locked { overflow: hidden; }

/* ---------- служебные страницы (политика и т.п.) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.doc img { height: 48px; width: auto; }
.doc h1 { margin: 40px 0 16px; font: 600 clamp(28px, 5vw, 40px)/1.15 var(--serif); }
.doc p { color: var(--text-2); }
.doc h2 { margin: 40px 0 12px; font: 600 clamp(21px, 3vw, 25px)/1.25 var(--serif); }
.doc p, .doc li { line-height: 1.6; overflow-wrap: anywhere; }
.doc p a, .doc li a { color: var(--copper-soft); text-underline-offset: 3px; }
.doc__links { margin: 0; padding-left: 22px; color: var(--text-2); }
.doc__links li + li { margin-top: 8px; }
