/* Стили лендинга клуба «Огненные львы» */

/* ===== Шрифт Bounded ===== */
@font-face {
  font-family: "Bounded";
  src: url("/fonts/Bounded-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Токены и темы ===== */
:root {
  --gold: #ec9c05;
  --gold-soft: #f3b53a;
  --radius: 18px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Bounded", system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f6;
  --bg-elevated: #ffffff;
  --bg-muted: #f1efe9;
  --text: #161616;
  --text-muted: #6a6862;
  --border: rgba(22, 22, 22, 0.1);
  --header: rgba(250, 249, 246, 0.86);
  --glow: rgba(236, 156, 5, 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101010;
  --bg-elevated: #171717;
  --bg-muted: #141414;
  --text: #f4f3ef;
  --text-muted: #9b9891;
  --border: rgba(244, 243, 239, 0.1);
  --header: rgba(16, 16, 16, 0.82);
  --glow: rgba(236, 156, 5, 0.14);
}

/* ===== Сброс ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-variation-settings: "wght" 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ===== Скроллбар ===== */
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

html.is-nav-open,
html.is-lightbox-open,
body.is-nav-open,
body.is-lightbox-open {
  overflow: hidden;
  scrollbar-width: none;
}

html.is-nav-open::-webkit-scrollbar,
html.is-lightbox-open::-webkit-scrollbar,
body.is-nav-open::-webkit-scrollbar,
body.is-lightbox-open::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* ===== Логотип: две версии в одной ячейке ===== */
.brand-logo {
  display: grid;
  place-items: center;
}

.brand-logo img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  transition: opacity 0.25s var(--ease);
}

html[data-theme="light"] .brand-logo__dark,
html[data-theme="dark"] .brand-logo__light {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-logo--sm {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-logo--hero {
  width: min(280px, 100%);
}

/* ===== Прелоадер ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #101010;
  transition: opacity 0.45s var(--ease);
}

.preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

.preloader__mark {
  width: 72px;
}

.preloader__mark img {
  width: 100%;
}

/* ===== Прогресс скролла ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: var(--gold);
}

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

/* Размытие на псевдоэлементе, чтобы не создавать containing block для fixed-меню */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(16px);
  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.footer__logo {
  display: inline-flex;
  width: fit-content;
}

.footer__mark {
  width: 88px;
  height: 88px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-weight: 500;
  font-size: 14px;
}

.nav__mobile-cta {
  display: none;
}

.nav a {
  opacity: 0.72;
  transition: opacity 0.2s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__phone {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.theme-toggle {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.theme-toggle__track {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  display: block;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  position: relative;
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}

html[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(18px);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  position: relative;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: 0.25s var(--ease);
}

.burger span:first-child {
  top: 15px;
}

.burger span:last-child {
  top: 23px;
}

.burger.is-open span:first-child {
  top: 19px;
  rotate: 45deg;
}

.burger.is-open span:last-child {
  top: 19px;
  rotate: -45deg;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 42px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: #161616;
}

.btn--gold:hover {
  background: var(--gold-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--gold);
}

/* ===== Герой ===== */
.hero {
  position: relative;
  padding: 36px 0 20px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -6vw;
  top: -10vw;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero__title {
  margin-top: 12px;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.92;
  font-weight: 750;
  font-variation-settings: "wght" 750;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__line--accent {
  color: var(--gold);
}

.hero__slogan {
  margin-top: 16px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
}

.hero__lead {
  max-width: 460px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.hero__orb {
  width: min(280px, 100%);
  filter: drop-shadow(0 16px 32px rgba(236, 156, 5, 0.12));
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.stat {
  padding: 4px 16px;
  border-right: 1px solid var(--border);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.stat span {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Бегущая строка ===== */
.marquee {
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 40s linear infinite;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.marquee__group span {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 2.4em;
}

/* ===== Секции ===== */
.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__head {
  margin-bottom: 28px;
}

.section__head h2,
.about h2,
.coach h2,
.trial__head h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.label {
  display: inline-block;
  background: var(--gold);
  color: #161616;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 18px 5px 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  margin-bottom: 12px;
}

/* ===== Карточки ===== */
.age-grid,
.value-grid,
.branch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.age-card,
.value-card,
.branch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.age-card:hover,
.value-card:hover,
.branch-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.age-card__years {
  display: block;
  color: var(--gold);
  font-size: 28px;
  font-weight: 720;
  margin-bottom: 16px;
}

.age-card h3,
.value-card h3,
.branch-card h3 {
  font-size: 16px;
  font-weight: 680;
  margin-bottom: 8px;
}

.age-card p,
.value-card p,
.branch-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.age-card--mascot img {
  width: 56px;
  margin-bottom: 12px;
}

/* ===== О клубе ===== */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.about p + p,
.about__copy p:last-child {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.about__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.about__list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 550;
  font-size: 14px;
}

.about__list span {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}

/* ===== Фото клуба ===== */
.gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 240px 168px 168px;
  gap: 10px;
}

.gallery__item {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery__trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}

.gallery__trigger:hover img {
  transform: scale(1.04);
}

.gallery__item--banner {
  grid-column: 1 / -1;
}

.gallery__item--tall {
  grid-row: 2 / 4;
}

.gallery__item--wide {
  grid-column: 2 / -1;
}

/* ===== Лайтбокс фото ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 16, 16, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.4s var(--ease), visibility 0.4s;
}

.lightbox.is-open {
  background: rgba(16, 16, 16, 0.92);
  visibility: visible;
  pointer-events: auto;
}

.lightbox.is-zoomed .lightbox__frame {
  cursor: grab;
}

.lightbox__bar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease) 0.15s, transform 0.3s var(--ease) 0.15s;
}

.lightbox.is-open .lightbox__bar {
  opacity: 1;
  transform: none;
}

.lightbox__zoom {
  min-width: 48px;
  text-align: center;
  color: #f4f3ef;
  font-size: 13px;
  font-weight: 650;
}

.lightbox__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(244, 243, 239, 0.16);
  background: rgba(23, 23, 23, 0.78);
  color: #f4f3ef;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lightbox__frame {
  position: fixed;
  overflow: hidden;
  border-radius: 16px;
  --zoom: 1;
  --pan-x: 0px;
  --pan-y: 0px;
  transform: translate(var(--pan-x), var(--pan-y)) scale(var(--zoom));
  transform-origin: center center;
  touch-action: none;
  transition:
    left 0.5s var(--ease),
    top 0.5s var(--ease),
    width 0.5s var(--ease),
    height 0.5s var(--ease),
    border-radius 0.5s var(--ease),
    transform 0.3s var(--ease);
}

.lightbox__frame.is-panning {
  cursor: grabbing;
  transition:
    left 0.5s var(--ease),
    top 0.5s var(--ease),
    width 0.5s var(--ease),
    height 0.5s var(--ease),
    border-radius 0.5s var(--ease);
}

.lightbox.is-open .lightbox__frame {
  border-radius: 12px;
}

.lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Тренер ===== */
.coach__card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.coach__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #161616;
  font-size: 22px;
  font-weight: 750;
}

.coach__role {
  color: var(--gold);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 6px;
}

.coach__card p:last-child {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.coach h2 {
  font-size: clamp(22px, 2.4vw, 32px);
}

/* ===== Филиалы ===== */
.branch-card__area {
  color: var(--gold);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 6px;
}

.branch-card ul {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 13px;
}

.branch-card .btn {
  width: 100%;
}

/* ===== FAQ ===== */
.faq__list {
  display: grid;
  gap: 8px;
}

.faq__item {
  background: var(--bg-elevated);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 4px 18px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 620;
  font-size: 15px;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  color: var(--text-muted);
  font-size: 14px;
  padding-bottom: 14px;
}

/* ===== Форма записи ===== */
.trial__head {
  margin-bottom: 22px;
}

.trial__head p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.trial__accent {
  display: block;
  color: var(--gold);
  position: relative;
}

.trial__accent::after {
  content: "";
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  width: min(160px, 14vw);
  height: 2px;
  background: var(--gold);
}

.trial-form {
  background: var(--bg-muted);
  border-radius: 22px;
  padding: 22px 22px 16px;
}

.trial-form__fields {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr auto;
  gap: 16px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field span:first-child {
  color: var(--text-muted);
  font-size: 12px;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 8px 0 8px;
  outline: none;
  border-radius: 0;
  appearance: none;
  font-size: 15px;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 10px) 16px, calc(100% - 5px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 22px;
}

.field input:focus,
.field select:focus {
  border-bottom-color: var(--gold);
}

.field__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--text);
}

.field__phone:focus-within {
  border-bottom-color: var(--gold);
}

.field__phone input {
  border: 0;
  padding-bottom: 8px;
}

.trial-form__legal,
.trial-form__status {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.trial-form__status.is-ok {
  color: var(--gold);
}

.trial-form__status.is-err {
  color: #d4482a;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Подвал ===== */
.footer {
  background: #0d0d0d;
  color: #f4f3ef;
  padding: 40px 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer a,
.footer p {
  display: block;
  color: #c8c4bb;
  font-size: 14px;
}

.footer__title {
  color: #fff !important;
  font-weight: 650;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.footer__social {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer__social img {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

/* ===== Модалка ===== */
.privacy {
  border: 0;
  padding: 0;
  background: transparent;
}

.privacy::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.privacy__card {
  width: min(480px, 100%);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 18px;
  padding: 24px;
}

.privacy__card h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.privacy__card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 14px;
}

/* ===== Появление ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-in {
  animation: rise 0.6s var(--ease) both;
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) and (min-width: 861px) {
  .age-grid,
  .value-grid,
  .branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header .container {
    width: 100%;
    padding-inline: 16px 8px;
  }

  .header__inner {
    gap: 8px;
  }

  .header__actions {
    gap: 4px;
    margin-left: auto;
  }

  .header__phone,
  .header__cta {
    display: none;
  }

  .burger {
    display: block;
    width: 36px;
    margin-right: 0;
    z-index: 41;
  }

  .burger span {
    left: 8px;
    right: 6px;
  }

  .nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    z-index: 35;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: var(--bg);
    padding: 8px 24px 32px;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.55s var(--ease), visibility 0.55s;
  }

  .nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 16px 0;
    font-size: 28px;
    font-weight: 650;
    opacity: 0;
    transform: translateY(12px);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open a {
    opacity: 1;
    transform: none;
    animation: rise 0.45s var(--ease) both;
  }

  .nav.is-open a:nth-child(1) { animation-delay: 0.08s; }
  .nav.is-open a:nth-child(2) { animation-delay: 0.14s; }
  .nav.is-open a:nth-child(3) { animation-delay: 0.2s; }
  .nav.is-open a:nth-child(4) { animation-delay: 0.26s; }
  .nav.is-open a:nth-child(5) { animation-delay: 0.32s; }
  .nav.is-open a:nth-child(6) { animation-delay: 0.38s; }

  .nav.is-open .nav__mobile-cta {
    display: inline-flex;
    margin-top: 20px;
    border: 0;
    color: #161616;
    background: var(--gold);
    border-radius: 999px;
    padding: 12px 20px;
    width: fit-content;
    font-size: 16px;
  }

  .hero__grid,
  .about,
  .age-grid,
  .value-grid,
  .branch-grid,
  .footer__grid,
  .trial-form__fields,
  .coach__card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__orb,
  .brand-logo--hero {
    width: 140px;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    border-top: 0;
  }

  .stat,
  .stat:first-child,
  .stat:last-child {
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
    text-align: center;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 150px 150px;
  }

  .gallery__item--banner {
    grid-column: 1 / -1;
  }

  .gallery__item--tall,
  .gallery__item--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .trial-form__submit {
    width: 100%;
  }

  .trial__accent::after {
    display: none;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero__title {
    font-size: 36px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .trial-form {
    padding: 16px 14px 12px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
