/* Veszprémi K.O. Box Club
   A színek a terem szőnyegéből jönnek (bíbor és kobalt), a fotók is erre vannak színezve.
   Egyetlen betűcsalád (Archivo) három szélességben. Az egyetlen merész elem: a nyitókép
   címe maga az órarend. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.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 {
  --crimson: #b8132e;      /* szőnyeg-bíbor */
  --crimson-deep: #9a0f26;
  --cobalt: #1d3fbf;       /* szőnyeg-kobalt */
  --navy: #0e1a44;         /* a kék szőnyeg árnyékban */
  --brick: #f3f4f6;        /* fehérre festett tégla */
  --white: #ffffff;
  --ink: #141824;          /* zsákfekete */
  --steel: #5b6478;
  --steel-light: #a7b0c4;
  --rule: #d4d8e0;
  --rule-on-dark: rgba(255, 255, 255, .2);

  --font: "Archivo", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--brick);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a[href^="tel:"] { white-space: nowrap; }

::selection { background: var(--crimson); color: var(--white); }

h1, h2, h3 { text-wrap: balance; }
p, dd { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }

.display {
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: var(--header-h); }

.section { padding-block: clamp(80px, 10vw, 150px); }

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 3px;
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-red { background: var(--crimson); color: var(--white); }
.btn-red:hover { background: var(--crimson-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--cobalt); }

/* ---------- Fejléc ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: rgba(14, 26, 68, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* a klub saját logójának felirat része, fehér, átlátszó háttérrel */
.brand { display: inline-flex; }
.brand-logo {
  display: block;
  width: auto;
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}
.nav a:not(.btn) {
  padding: 6px 0;
  font-stretch: 85%;
  font-weight: 600;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--white); }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* mobilon a hívás gomb mindig kint van a fejlécben, nem a menü mögött */
.header-call {
  display: none;
  min-height: 44px;
  margin-left: auto;
  padding: 0 18px;
  font-size: .9375rem;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 3px;
  background: none;
  color: var(--white);
  font: inherit;
  font-stretch: 85%;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
}

/* ---------- Nyitókép: az órarend a cím ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 26, 68, .6) 0%, rgba(14, 26, 68, 0) 20%),
    linear-gradient(90deg, rgba(14, 26, 68, .9) 0%, rgba(14, 26, 68, .62) 34%, rgba(14, 26, 68, .12) 58%, rgba(14, 26, 68, .3) 100%),
    linear-gradient(0deg, rgba(14, 26, 68, .9) 0%, rgba(14, 26, 68, .5) 18%, rgba(14, 26, 68, 0) 45%);
}

/* rend: név, órarend-blokk, alatta egy vonallal elválasztott infósáv, mind ugyanahhoz a rácshoz igazítva */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hero-name {
  font-stretch: 85%;
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .86);
  margin-bottom: clamp(12px, 1.6vw, 24px);
}

.hero-days {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-stretch: 62%;
  font-weight: 800;
  /* a szélesség és a képernyőmagasság közül a szűkebb dönt, hogy az infósáv is kiférjen */
  font-size: clamp(4rem, min(11vw, 16.5svh), 11rem);
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-days > span {
  display: block;
  animation: day-in .9s var(--ease-out) both;
}
.hero-days > span:nth-child(2) { animation-delay: .08s; }
.hero-days > span:nth-child(3) { animation-delay: .16s; }
.hero-days > span:nth-child(4) { animation-delay: .24s; }
.hero-time { font-variant-numeric: tabular-nums; }

/* nincs clip-path: a magyar nagybetűk ékezetei (É, Ő) kilógnak a sorközből */
@keyframes day-in {
  from { opacity: 0; transform: translateY(.22em); }
  to { opacity: 1; transform: none; }
}

.hero-bar {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
  align-items: center;
  gap: 20px clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4svh, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.hero-lead {
  max-width: 42ch;
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 500;
}

.hero-next {
  display: flex;
  align-items: center;
  gap: 10px;
  font-stretch: 85%;
  font-weight: 600;
  font-size: 1rem;
}
.hero-next::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

.hero-actions {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.hero-phone {
  font-stretch: 85%;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
}
.hero-phone:hover { border-bottom-color: var(--white); }

/* ---------- Edzések ---------- */

.training { background: var(--brick); }

/* a fotó a képernyő bal széléig fut ki, a szöveg a rács jobb oldalához igazodik */
.training-split {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
  align-items: center;
}

.training-photo {
  width: 100%;
  height: 100%;
  min-height: 560px;
  max-height: 760px;
  object-fit: cover;
  object-position: 62% 50%;
}

.training-text {
  padding-left: clamp(40px, 6vw, 96px);
  padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

.training-lead {
  max-width: 40ch;
  margin-top: 28px;
  font-size: 1.1875rem;
  color: var(--steel);
}

.facts { margin: 36px 0 0; }
.facts > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt {
  font-stretch: 85%;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--steel);
  padding-top: .15em;
}
.facts dd { margin: 0; font-weight: 600; }

.training-note {
  margin-top: 22px;
  font-size: .9375rem;
  color: var(--steel);
}
.training-note a { color: var(--cobalt); }

.gains { margin-top: clamp(72px, 9vw, 128px); }
.gains-title {
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}
.gains-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px clamp(20px, 2.4vw, 36px);
  margin: 32px 0 0;
}
.gains-list > div {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.gains-list dt {
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.gains-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--steel);
}

/* ---------- Az edzőnk ---------- */

.coach { background: var(--white); }

.coach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* a fotó helyben marad, amíg mellette végigolvasod a pályafutását */
.coach-figure {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
}
.coach-figure img {
  width: 100%;
  aspect-ratio: 1470 / 1324;
  object-fit: cover;
  border-radius: 3px;
}
.coach-figure figcaption {
  margin-top: 10px;
  font-size: .8125rem;
  color: var(--steel);
}

.coach-name {
  margin-top: 28px;
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
}
.coach-role {
  margin-top: 8px;
  font-stretch: 85%;
  font-weight: 600;
  color: var(--crimson);
}
.coach-text > p:not(.coach-name):not(.coach-role) { max-width: 62ch; }
.coach-lead {
  margin-top: 24px;
  font-size: 1.1875rem;
}

.career {
  margin: 32px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.career li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.career-year {
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.career p { padding-top: .2em; }

.coach-text .coach-source {
  margin-top: 20px;
  font-size: .875rem;
  color: var(--steel);
}
.coach-text a { color: var(--cobalt); }

/* ---------- Galéria ---------- */

.gallery {
  background: var(--navy);
  color: var(--white);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.gallery-head p {
  max-width: 40ch;
  color: var(--steel-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 230px);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* öt kép: egy nagy, mellette kettő egymás alatt, alul kettő félszélességben */
.gallery-grid li { grid-column: span 4; }
.gallery-grid .g-main { grid-column: span 8; grid-row: span 2; }
.gallery-grid li:nth-child(4),
.gallery-grid li:nth-child(5) { grid-column: span 6; }
.gallery-grid a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #0a1233;
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Első edzés: barátságos, világos rész, a bíbor csak a sorszámokon ---------- */

.first { background: var(--white); }

.first-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.first-lead {
  max-width: 40ch;
  margin-top: 28px;
  font-size: 1.1875rem;
  color: var(--steel);
}

.steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.05;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
.steps p {
  max-width: 52ch;
  color: var(--steel);
}
.steps a { color: var(--cobalt); font-weight: 600; }

.first-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
}
.first-fb {
  font-stretch: 85%;
  font-weight: 600;
  color: var(--cobalt);
}

.first-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 3px;
}

/* ---------- Kapcsolat ---------- */

.contact { background: var(--brick); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: end;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 40px 0 36px;
  font-style: normal;
  color: var(--steel);
}
.contact-street {
  font-stretch: 70%;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: var(--ink);
}

.contact-list { margin: 0 0 40px; }
.contact-list > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt {
  font-stretch: 85%;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--steel);
  padding-top: .15em;
}
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { color: var(--cobalt); }

.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 0;
  border-radius: 3px;
  background: #e2e5ea;
}
.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .9375rem;
  color: var(--steel);
}

/* bejárat fotó + lejárat videó: a fotó 8, az álló videó 4 hasábon, így közel egyforma magasak */
.wayfinding {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: clamp(64px, 8vw, 112px);
}
.way-item h3 {
  margin-bottom: 16px;
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}
.way-item figure { margin: 0; }
.way-item img,
.way-item video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  background: var(--navy);
}
.way-entrance img { aspect-ratio: 1600 / 1333; object-fit: cover; }
.way-video video { aspect-ratio: 9 / 16; object-fit: cover; }
.way-item figcaption {
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--steel);
}

/* ---------- Lábléc ---------- */

.site-footer {
  background: var(--navy);
  color: var(--steel-light);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 88px) 40px;
}
.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 14px;
}
.footer-label {
  margin-bottom: 8px;
  font-stretch: 85%;
  font-weight: 600;
  color: var(--white);
}
.footer-grid a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer-grid a:hover { color: var(--white); border-bottom-color: var(--white); }
.footer-base { padding-bottom: 28px; font-size: .875rem; }
.footer-base p {
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-dark);
}

/* ---------- Képnézegető ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(9, 16, 42, .97);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(9, 16, 42, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding: 72px 88px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
}
.lightbox-caption {
  max-width: 60ch;
  text-align: center;
  font-size: .9375rem;
  color: var(--steel-light);
}
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  background: transparent;
  color: var(--white);
  font: 400 1.75rem/1 var(--font);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.lb-btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-close { right: 20px; top: 20px; }

/* ---------- Tablet és mobil ---------- */

@media (max-width: 1100px) {
  .hero-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-lead { grid-column: 1 / -1; }
  .gains-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .header-inner { gap: 10px; }
  .header-call { display: inline-flex; }
  .nav .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--navy);
    box-shadow: 0 1px 0 var(--rule-on-dark);
  }
  .nav.is-open { display: flex; }
  .site-header:has(.nav.is-open) { background: var(--navy); }
  .nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule-on-dark);
    font-size: 1.0625rem;
    color: var(--white);
  }
  .nav-cta { margin-top: 20px; min-height: 52px; }

  .hero-bar { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-actions { justify-self: start; margin-top: 8px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(14, 26, 68, .7) 0%, rgba(14, 26, 68, .35) 30%, rgba(14, 26, 68, .55) 55%, rgba(14, 26, 68, .92) 100%);
  }
  .hero-days { font-size: clamp(4rem, 19vw, 9rem); }

  .training-split,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .training-photo { min-height: 0; max-height: none; height: auto; aspect-ratio: 4 / 3; }
  .training-text { padding: 48px var(--gutter) 0; }

  .first-grid { grid-template-columns: minmax(0, 1fr); }

  .coach-grid { grid-template-columns: minmax(0, 1fr); }
  .coach-figure { position: static; }

  .wayfinding { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .way-video { max-width: 400px; }
  .first-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .hero-actions { justify-self: stretch; }
  .hero-actions .btn { width: 100%; }

  .gains-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .facts > div,
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 36vw;
    gap: 8px;
  }
  .gallery-grid li,
  .gallery-grid li:nth-child(4),
  .gallery-grid li:nth-child(5) { grid-column: span 1; }
  .gallery-grid .g-main { grid-column: span 2; grid-row: span 2; }

  .lightbox-figure { padding: 72px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-logo { height: 40px; }
  .career li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-days > span { animation: none; }
}
