/* =========================================================================
   CRAZY FITNESS — DESIGN SYSTEM
   Mobile-first. Чистий CSS, без препроцесорів і фреймворків.
   Порядок: токени → база → типографіка → елементи → секції → адаптив
   ========================================================================= */

/* --- 1. Токени ---------------------------------------------------------- */
:root {
  --black:    #0A0A0A;
  --charcoal: #171717;
  --orange:   #FF5A1F;
  --gray:     #E7E7E7;
  --off:      #F7F7F5;

  --ink:        var(--black);
  --paper:      var(--off);
  --muted:      #6E6E6B;
  --hairline:   rgba(10, 10, 10, .16);
  --hairline-d: rgba(255, 255, 255, .16);

  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --maxw:   1440px;

  --ease:  cubic-bezier(.22, .61, .36, 1);
  --ease-o: cubic-bezier(.16, 1, .3, 1);

  --header-h: 64px;
}

/* --- 2. База ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul  { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Зерно поверх усього — дає плівковий, не «цифровий» вигляд */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.25'/></svg>");
  mix-blend-mode: multiply;
}

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

.section { padding-block: clamp(38px, 6.5vw, 92px); position: relative; }
.section--tight { padding-block: clamp(34px, 5.5vw, 72px); }

.section--dark {
  background: var(--black);
  color: var(--off);
}
.section--dark .label { color: rgba(255, 255, 255, .55); }
.section--dark .rule  { background: var(--hairline-d); }

.rule { height: 1px; width: 100%; background: var(--hairline); border: 0; margin: 0; }

/* --- 3. Типографіка ----------------------------------------------------- */
.display,
.h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .88;
  margin: 0;
  text-wrap: balance;
}

.display { font-size: clamp(2.4rem, 10.5vw, 8rem); }
.h1      { font-size: clamp(2.05rem, 8vw, 5.4rem); }
.h2      { font-size: clamp(1.7rem, 5.6vw, 3.7rem); }
.h3      { font-size: clamp(1.25rem, 3.4vw, 2rem); line-height: 1.02; }
.h1, .h2, .h3 { overflow-wrap: break-word; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--orange);
  flex: none;
}
.label--plain::before { display: none; }

.lead {
  font-size: clamp(.95rem, 1.9vw, 1.12rem);
  line-height: 1.55;
  max-width: 62ch;
  color: var(--ink);
}
.section--dark .lead { color: rgba(255, 255, 255, .78); }

.muted { color: var(--muted); }
.section--dark .muted { color: rgba(255, 255, 255, .55); }

.accent { color: var(--orange); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  white-space: nowrap;
}
.section--dark .tag { border-color: var(--hairline-d); color: rgba(255, 255, 255, .68); }
.tag--accent { border-color: var(--orange); color: var(--orange); }

/* --- 4. Кнопки ---------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease-o);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--paper); }

.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: var(--black);
  --btn-bd: var(--orange);
}
.btn--primary::after { background: var(--black); }
.btn--primary:hover  { color: var(--orange); border-color: var(--black); }

.btn--light {
  --btn-fg: var(--off);
  --btn-bd: rgba(255, 255, 255, .45);
}
.btn--light::after { background: var(--off); }
.btn--light:hover  { color: var(--black); border-color: var(--off); }

.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]::after { display: none; }

.btn__arrow { transition: transform .4s var(--ease-o); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Текстове посилання з підкресленням, що малюється */
.tlink {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .45s var(--ease-o);
}
.tlink:hover { background-size: 100% 1px; }

/* --- 5. Медіа та плейсхолдери ------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--gray);
  margin: 0;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media img { opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease-o); }
.media.is-loaded img { opacity: 1; }
.media__skeleton {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 80%) 0 0 / 220% 100%,
    linear-gradient(160deg, #dcdcda, #c9c9c6);
  animation: skeleton 1.5s linear infinite;
}
.section--dark .media__skeleton,
.hero .media__skeleton,
.hero__bg .media__skeleton {
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 80%) 0 0 / 220% 100%,
    linear-gradient(160deg, #232323, #141414);
}
.media.is-loaded .media__skeleton { opacity: 0; transition: opacity .4s linear; }
@keyframes skeleton { to { background-position: 220% 0, 0 0; } }

.media--4x5  { aspect-ratio: 4 / 5; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 2 / 3; }

.media__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(10, 10, 10, .035) 0 2px,
      transparent 2px 9px
    ),
    linear-gradient(160deg, #dcdcda 0%, #c9c9c6 100%);
  color: rgba(10, 10, 10, .62);
}
.media__ph b {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.media__ph span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, .45);
}
.media__ph::before {
  content: "";
  position: absolute;
  top: 16px; left: 16px;
  width: 22px; height: 22px;
  border-top: 1px solid var(--orange);
  border-left: 1px solid var(--orange);
}
.section--dark .media__ph,
.hero .media__ph {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #232323 0%, #141414 100%);
  color: rgba(255, 255, 255, .6);
}
.section--dark .media__ph span,
.hero .media__ph span { color: rgba(255, 255, 255, .38); }

/* --- 6. Шапка ----------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 247, 245, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: transform .45s var(--ease), background .3s linear;
}
.header--hidden { transform: translateY(-100%); }
.header--dark {
  background: rgba(10, 10, 10, .78);
  border-bottom-color: var(--hairline-d);
  color: var(--off);
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__text span { color: var(--orange); }
.brand__mark { height: 26px; width: auto; flex: none; }
.brand__mark--light { display: none; }
.header--dark .brand__mark { display: none; }
.header--dark .brand__mark--light { display: block; }

.nav { display: none; }
.nav__list { display: flex; gap: 20px; align-items: center; }
.nav__link {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width .4s var(--ease-o);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.header__cta { display: none; white-space: nowrap; min-height: 44px; padding: 12px 20px; }

.burger {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.header--dark .burger { border-color: var(--hairline-d); }
.burger i {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s linear;
}
.burger.is-open i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Повноекранне меню */
.menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--black);
  color: var(--off);
  padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-o);
  overflow-y: auto;
}
.menu.is-open { transform: translateY(0); }
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__link {
  font-family: var(--f-display);
  font-size: clamp(2rem, 11vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.05;
  padding-block: 6px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s linear;
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link em {
  font-family: var(--f-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--orange);
}
.menu__link:hover { color: var(--orange); }
.menu__foot { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--hairline-d); }

/* --- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--off);
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 18px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 18px; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hero__eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hairline-d); }

.hero__title { color: var(--off); font-size: clamp(2.2rem, 11vw, 4.2rem); line-height: .96; }
/* overflow: hidden потрібен для появи рядків, але він зрізав діакритику:
   у Й пропадала бревіс зверху, у У — хвіст знизу. Даємо запас усередині
   рамки й компенсуємо його відʼємним полем, щоб ритм рядків не поїхав. */
.hero__title .l {
  display: block;
  overflow: hidden;
  padding-block: .14em;
  margin-block: -.04em;    /* компенсуємо лише частину, інакше рядки злипаються */
}
.hero__title .l > span {
  display: block;
  white-space: nowrap;
  transform: translateY(130%);   /* із запасом, щоб перед появою не визирали верхівки літер */
  transition: transform 1s var(--ease-o);
}
.hero__title .l:nth-child(2) > span { transition-delay: .09s; }
.hero__title .l:nth-child(3) > span { transition-delay: .18s; }
.is-ready .hero__title .l > span { transform: none; }
.hero__title .l:last-child > span { color: var(--orange); }

.hero__lead {
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 54ch;
  border-left: 1px solid var(--orange);
  padding-left: 16px;
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; }

.hero__media { position: relative; }
.hero__media .media {
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
}
/* Рамки фото повторюють пропорції самих знімків, тому кадр не зміщуємо:
   знімок видно повністю, без обрізання. */
.hero__media img,
.story__media img,
.card__media img,
.coach__grid img,
.mara__grid img { object-position: 50% 50%; }
.hero__badge {
  position: absolute;
  right: 0; bottom: 0;
  background: var(--orange);
  color: var(--black);
  padding: 12px 16px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  max-width: 62%;
}
.hero__tags { margin-top: 14px; }

/* Клуб: фото на весь екран, текст поверх */
.hero--cover {
  min-height: min(86svh, 720px);
  display: flex;
  align-items: flex-end;
  padding-bottom: 30px;
}
.hero--cover .wrap { position: relative; z-index: 2; width: 100%; }
.hero--cover .hero__col--text { display: grid; gap: 16px; max-width: 44ch; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg .media { width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .28) 40%, rgba(10, 10, 10, .88) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, .8) 0%, rgba(10, 10, 10, .12) 72%);
}

.hero__scroll {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-top: 26px;
}
.hero__scroll i {
  width: 46px; height: 1px;
  background: rgba(255, 255, 255, .4);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Рухома стрічка */
.marquee {
  border-block: 1px solid var(--hairline);
  padding-block: 10px;
  overflow: hidden;
  background: var(--paper);
}
.section--dark .marquee, .marquee--dark {
  background: var(--black);
  border-color: var(--hairline-d);
}
.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 3.4vw, 1.9rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 9px; height: 9px;
  background: var(--orange);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- 8. Story ----------------------------------------------------------- */
.story__head { display: grid; gap: 14px; margin-bottom: 26px; }
.story__grid { display: grid; gap: 18px; }
.story__text { display: grid; gap: 16px; }
.story__cols { display: grid; gap: 14px; }
.story__col p { margin: 0; font-size: 14.5px; line-height: 1.58; color: #2a2a28; }
.story__mediarow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.story__media .media { aspect-ratio: 3 / 4; }

.quote {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 3.4vw, 1.85rem);
  line-height: 1.14;
  text-transform: uppercase;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.quote em { font-style: normal; color: var(--orange); }

/* --- 9. Статистика ------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  border-top: 1px solid var(--hairline-d);
}
.stat {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-d);
  display: grid;
  gap: 6px;
}
.stat__value {
  font-family: var(--f-display);
  font-size: clamp(2rem, 8.4vw, 5rem);
  line-height: .85;
  text-transform: uppercase;
}
.stat--word .stat__value { font-size: clamp(1.15rem, 4.6vw, 2.5rem); }
.stat__label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.stat__note {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--orange);
  text-transform: uppercase;
}

/* --- 10. Продукти ------------------------------------------------------- */
.prog__head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.prog__head .h1 { font-size: clamp(2rem, 6.6vw, 5rem); }
.prog__list { display: grid; gap: 44px; }

.card {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.card__media .media { aspect-ratio: 4 / 5; }
.card__media { position: relative; }
.card:hover .media img { transform: scale(1.04); }
.card__num {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .1em;
  background: var(--orange);
  color: var(--black);
  padding: 6px 10px;
  z-index: 2;
}
.card__body { display: grid; gap: 10px; align-content: start; }
.card__body .h2 { font-size: clamp(1.55rem, 4.2vw, 3.1rem); }
.card__lead { font-size: 14.5px; line-height: 1.55; color: #33332f; margin: 0; }
.card__bul { display: grid; gap: 5px; }
.card__bul li {
  font-size: 13px;
  padding-left: 20px;
  position: relative;
  color: #33332f;
}
.card__bul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 1px;
  background: var(--orange);
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.price {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price small {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .price small { color: rgba(255, 255, 255, .55); }

/* --- 11. Індивідуальний супровід ---------------------------------------- */
.coach { position: relative; overflow: hidden; }
.coach__head { display: grid; gap: 14px; margin-bottom: 22px; }
.coach__head .h1 { font-size: clamp(1.9rem, 6.2vw, 4.6rem); }
.coach__title { color: var(--off); }
.coach__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: baseline;
  border-top: 1px solid var(--hairline-d);
  border-bottom: 1px solid var(--hairline-d);
  padding-block: 13px;
}
.coach__grid { display: grid; gap: 22px; }
.coach__grid .media { aspect-ratio: 4 / 5; }

.checklist { display: grid; gap: 0; }
.checklist li {
  border-bottom: 1px solid var(--hairline-d);
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  transition: color .3s linear, padding-left .4s var(--ease-o);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 14px; height: 7px;
  border-left: 1.5px solid var(--orange);
  border-bottom: 1.5px solid var(--orange);
  transform: rotate(-45deg);
}
.checklist li:hover { color: #fff; padding-left: 40px; }
.checklist li:first-child { border-top: 1px solid var(--hairline-d); }

.philo {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 3.2vw, 1.8rem);
  line-height: 1.14;
  text-transform: uppercase;
  color: var(--off);
  border-left: 2px solid var(--orange);
  padding-left: 18px;
}

/* --- 12. Марафон -------------------------------------------------------- */
.mara__grid { display: grid; gap: 18px; }
.mara__grid .media { aspect-ratio: 4 / 5; }
.mara__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
}
.mara__status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.mara__status--open   { border-color: var(--orange); color: var(--orange); }
.mara__status--open i { background: var(--orange); animation: pulse 1.8s ease-in-out infinite; }
.mara__status--soon i { background: #d0a300; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

.meter { display: grid; gap: 10px; }
.meter__bar {
  height: 6px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}
.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--orange);
  transition: width 1.4s var(--ease-o);
}
.meter__row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.meter__row b { font-family: var(--f-display); font-size: 15px; letter-spacing: .08em; color: var(--ink); }
.section--dark .meter__bar { background: rgba(255, 255, 255, .14); }
.section--dark .meter__row b { color: var(--off); }

.priceplan { display: grid; gap: 10px; }
.priceplan__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px dashed var(--hairline);
  padding-bottom: 8px;
  font-size: 13px;
}
.priceplan__row b { font-family: var(--f-display); font-size: 19px; }

/* --- 13. Клуб ----------------------------------------------------------- */
.club__grid { display: grid; gap: 18px; }
.club__facts { display: grid; gap: 0; }
.club__fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.club__fact dt { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.club__fact dd { margin: 0; text-align: right; }

/* Розклад */
.sched { border-top: 1px solid var(--hairline); }
.sched__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background .3s linear, padding-left .4s var(--ease-o);
}
.sched__row:hover { padding-left: 10px; }
.sched__date {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sched__time { color: var(--orange); font-family: var(--f-display); font-size: 15px; }
.sched__type {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sched__state {
  justify-self: start;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.sched__state--full { color: var(--muted); }
.sched__state--free { color: var(--orange); border-color: var(--orange); }
a.sched__state--free { transition: background .3s linear, color .3s linear; }
a.sched__state--free:hover { background: var(--orange); color: var(--black); }

/* --- 14. Результати та Instagram ---------------------------------------- */
.results__grid { display: grid; gap: 10px; }
.tcard {
  border: 1px solid var(--hairline);
  padding: 16px 14px;
  display: grid;
  gap: 10px;
  min-height: 132px;
  align-content: space-between;
}
.tcard__text { font-size: 15px; line-height: 1.6; }
.tcard__name { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.section--dark .tcard { border-color: var(--hairline-d); }
.section--dark .tcard__name,
.section--dark .tcard--empty { color: rgba(255, 255, 255, .5); }
.tcard--empty {
  border-style: dashed;
  color: var(--muted);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pcard {
  border: 1px solid var(--hairline);
  padding: 20px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.section--dark .pcard { border-color: var(--hairline-d); }
.pcard p { margin: 0; }   /* у p за замовчуванням є відступ 1em — картку роздувало */
.pcard .price { font-size: clamp(2rem, 7vw, 2.8rem); }
.pcard .btn { margin-top: 8px; }

.ig__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ig__item { position: relative; display: block; }
.ig__item .media { aspect-ratio: 1 / 1; }
.ig__item:hover img { transform: scale(1.05); }

/* --- 15. Фінальний CTA і футер ------------------------------------------ */
.final { text-align: left; }
.final__title { color: var(--off); }
.final__title b { color: var(--orange); font-weight: inherit; }
.final__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.footer {
  background: var(--black);
  color: rgba(255, 255, 255, .68);
  padding-block: 30px 84px;
  border-top: 1px solid var(--hairline-d);
}
.footer__grid { display: grid; gap: 18px; }
.footer__brand { font-family: var(--f-display); font-size: clamp(1.9rem, 9vw, 3.4rem); color: var(--off); text-transform: uppercase; line-height: .9; }
.footer__logo { width: min(240px, 66%); height: auto; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 13px; }
.footer__col h4 { margin: 0 0 4px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45); font-weight: 500; }
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-d);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

/* Липкий CTA на мобільному */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 700;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline-d);
  transform: translateY(120%);
  transition: transform .5s var(--ease-o);
}
.sticky.is-on { transform: none; }
.sticky .btn { width: 100%; min-height: 48px; }

/* --- 16. Форми та модалка ----------------------------------------------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  font-size: 15px;
  transition: border-color .3s linear;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--orange); outline: none; }
.section--dark .field input,
.section--dark .field textarea,
.section--dark .field select,
.modal .field input,
.modal .field textarea,
.modal .field select {
  border-color: var(--hairline-d);
  color: var(--off);
}
.field__hint { font-size: 11px; color: var(--muted); }

.formnote {
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--muted);
  border-left: 2px solid var(--orange);
  padding-left: 12px;
}

.formstate {
  display: none;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--orange);
  font-size: 13px;
  line-height: 1.55;
}
.formstate.is-on { display: grid; }
.formstate b { font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal__panel {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--charcoal);
  color: var(--off);
  border-top: 2px solid var(--orange);
  padding: 26px var(--gutter) 30px;
  animation: panelup .5s var(--ease-o);
}
@keyframes panelup {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.modal__close {
  background: none;
  border: 1px solid var(--hairline-d);
  width: 40px; height: 40px;
  cursor: pointer;
  flex: none;
  color: inherit;
}

/* --- 17. Анімації появи -------------------------------------------------- */
.r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-o), transform .8s var(--ease-o);
}
.r.is-in { opacity: 1; transform: none; }
.r--d1 { transition-delay: .09s; }
.r--d2 { transition-delay: .18s; }
.r--d3 { transition-delay: .27s; }

.r-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-o); }
.r-img.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .r, .r-img, .hero__title .l > span { opacity: 1; transform: none; clip-path: none; }
}

/* --- 18. Адаптив -------------------------------------------------------- */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__actions { flex-direction: row; }
  .final__actions { flex-direction: row; flex-wrap: wrap; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .ig__grid { grid-template-columns: repeat(3, 1fr); }
  .story__cols { gap: 22px; }
}

@media (min-width: 900px) {
  :root { --gutter: 44px; --header-h: 76px; }

  .hero { padding-top: calc(var(--header-h) + 26px); padding-bottom: 26px; }
  .hero__grid {
    grid-template-columns: 1.18fr .82fr;
    align-items: end;
    gap: 40px;
  }
  .hero__col--text { display: grid; gap: 20px; align-content: end; }
  .hero__title { font-size: clamp(2.6rem, 6vw, 5.4rem); }
  .hero__scroll { display: flex; }
  .hero__media .media { aspect-ratio: 3 / 4; height: auto; max-height: calc(100svh - var(--header-h) - 140px); }

  .hero--cover { min-height: min(88svh, 780px); padding-bottom: 46px; }
  .hero--cover .hero__col--text { gap: 20px; max-width: 52ch; }

  .story__head { grid-template-columns: 320px minmax(0, 1fr); align-items: end; }
  .story__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px; align-items: start; }
  .story__grid--offset .story__media { margin-top: 44px; }
  .story__media .media { aspect-ratio: 3 / 4; height: auto; max-height: 520px; }

  .stats { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .stat {
    border-bottom: 0;
    border-top: 1px solid var(--hairline-d);
    border-right: 1px solid var(--hairline-d);
    padding: 20px 22px 20px 0;
  }
  .stat:last-child { border-right: 0; }

  .prog__head { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; }
  .prog__list { gap: 44px; }
  .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; padding-top: 20px; }
  .card__media .media,
  .coach__grid .media,
  .mara__grid .media { aspect-ratio: 4 / 5; height: auto; max-height: 480px; }
  .card--flip .card__media { order: 2; }
  .card__body { padding-top: 6px; }

  .coach__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
  .coach__head { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; }

  .mara__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }

  .club__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .sched__row { grid-template-columns: 180px 1fr auto; }
  .sched__type { grid-column: auto; }

  .results__grid { grid-template-columns: repeat(3, 1fr); }
  .ig__grid { max-width: 760px; margin-inline: auto; gap: 8px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
  .sticky { display: none; }
  .final__title { max-width: 16ch; }
}

@media (min-width: 1120px) {
  .burger { display: none; }
  .nav { display: block; }
  .header__cta { display: inline-flex; }
}

@media (min-width: 1200px) {
  .story__cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .nav__list { gap: 24px; }
  .nav__link { font-size: 11px; letter-spacing: .16em; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .story__grid { gap: 48px; }
  .card { gap: 44px; }
}
