/* Parabolica — сайт.
   Раскладка: асимметричная сетка 12 колонок; фирменный мотив — изгиб беговых дорожек из логотипа.
   Цвета: рыжий и синий из приложения и мерча, чёрный и белый. Шрифты: Gros Ventre для заголовков, Montserrat для текста. */

/* ---------- Шрифты ---------- */
/* Gros Ventre — Dimitri Antonov (Blue Curve Designstudio), CC BY 4.0; начертания 500 и 650 — облегчённые производные Semibold и Bold. Montserrat — SIL OFL 1.1 */
@font-face{font-family:'Gros Ventre';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/gros-ventre-700.woff2) format('woff2')}
@font-face{font-family:'Gros Ventre';font-style:normal;font-weight:650;font-display:swap;src:url(../fonts/gros-ventre-650.woff2) format('woff2')}
@font-face{font-family:'Gros Ventre';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/gros-ventre-500.woff2) format('woff2')}
@font-face{font-family:'Gros Ventre';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/gros-ventre-600.woff2) format('woff2')}
@font-face{font-family:'Gros Ventre';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/gros-ventre-400.woff2) format('woff2')}
@font-face{font-family:'Gros Ventre';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/gros-ventre-300.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/montserrat-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/montserrat-latin-400-normal.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:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat-latin-500-normal.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:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/montserrat-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/montserrat-latin-600-normal.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:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/montserrat-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/montserrat-latin-700-normal.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 {
  --orange: #C8401E;
  --orange-deep: #A9351A;
  --navy: #182C4C;
  --navy-soft: #24406B;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --mist: #EEF1F5;
  --muted: #4A5568;
  --line: rgba(24, 44, 76, 0.16);
  --line-light: rgba(255, 255, 255, 0.22);

  --display: 'Gros Ventre', 'Montserrat', 'Arial', sans-serif;
  --body: 'Montserrat', 'Arial', sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-4: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --step-5: clamp(2.25rem, 1.4rem + 3.8vw, 4.5rem);

  --wrap: 1240px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
em.accent { font-style: normal; font-weight: 700; color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--black); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Шапка ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.logo { display: block; flex-shrink: 0; }
.logo img { width: 148px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--black);
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--mist); cursor: pointer; color: var(--black);
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Кнопки магазинов ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store {
  display: inline-block; position: relative; line-height: 0;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store img { height: 54px; width: auto; }
a.store { cursor: pointer; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(10, 10, 10, 0.55); }
a.store:active { transform: translateY(0); box-shadow: none; }
.store.is-soon img { opacity: 0.42; filter: grayscale(1); }
.store .soon {
  position: absolute; top: -9px; right: -8px;
  font: 700 0.6875rem/1 var(--body); letter-spacing: 0.02em;
  background: var(--orange); color: var(--white);
  padding: 5px 8px; border-radius: 999px; line-height: 1;
}
.on-dark .store.is-soon img, .run-city .store.is-soon img { opacity: 0.62; }

/* ---------- Кнопки скачивания (первый экран главной) ---------- */
.dl { display: grid; gap: 10px; max-width: 452px; }
.dl-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding: 11px 12px 11px 22px; border-radius: 18px;
  text-decoration: none;
}
.dl-text { display: grid; gap: 2px; min-width: 0; }
.dl-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.dl-sub { font-size: 0.8125rem; line-height: 1.3; }
.dl-btn img { height: 50px; width: auto; flex-shrink: 0; }
.dl-ios {
  background: var(--orange); color: var(--white);
  box-shadow: 0 16px 30px -16px rgba(200, 64, 30, 0.75);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.dl-ios .dl-sub { color: var(--white); }
.dl-ios:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(169, 53, 26, 0.8); }
.dl-ios:active { transform: translateY(0); }
.dl-ios:focus-visible { outline-color: var(--navy); }
.dl-android {
  background: var(--mist); color: var(--muted);
  border: 1px dashed rgba(24, 44, 76, 0.28); cursor: default;
}
.dl-android .dl-title { color: var(--black); font-weight: 600; }
.dl-android img { filter: grayscale(1); opacity: 0.45; }
@media (prefers-reduced-motion: reduce) { .dl-ios { transition: none; } .dl-ios:hover { transform: none; } }

/* ---------- Главный экран ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center;
  padding-block: clamp(24px, 3.4vw, 48px) clamp(40px, 6vw, 80px);
}
.hero-text { grid-column: 1 / span 6; position: relative; z-index: 2; min-width: 0; }
.hero h1, .run-hero h1 {
  font-weight: 500; font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4rem); line-height: 0.98; letter-spacing: -0.015em;
}
.hero-facts { list-style: none; margin: 26px 0 0; padding: 0; max-width: 32rem; }
.hero-facts li {
  position: relative; padding: 11px 0 11px 34px;
  border-top: 1px solid var(--line);
  font-size: var(--step-1); font-weight: 500; line-height: 1.45; color: #1F2633;
}
.hero-facts li:last-child { border-bottom: 1px solid var(--line); }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: calc(11px + 0.72em);
  width: 20px; height: 2px; background: var(--orange);
}
.hero .dl { margin-top: 26px; }
.hero-visual { grid-column: 7 / span 6; position: relative; min-width: 0; }
.hero-visual .phone { width: 118%; max-width: none; margin-left: 0; }
.hero-visual .phone img { width: 100%; height: auto; }

/* ---------- Общие секции ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { font-size: var(--step-1); color: var(--muted); }
.on-dark { background: var(--navy); color: var(--white); }
.on-dark .section-head p, .on-dark p { color: rgba(255, 255, 255, 0.82); }
.on-orange { background: var(--orange); color: var(--white); }
.on-mist { background: var(--mist); }
.text-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--orange);
}
.text-link:hover { color: var(--orange); }

/* ---------- Как начать ---------- */
.how .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.how-phone { grid-column: 1 / span 5; min-width: 0; }
.how-phone img { width: 100%; height: auto; }
.how-phone picture { max-width: 320px; margin-inline: auto; }
.how-body { grid-column: 7 / span 6; min-width: 0; }
.how-body h2 { font-size: var(--step-4); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: step; display: grid; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px;
  padding-block: 18px; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 300; font-size: 2.75rem; line-height: 0.9;
  color: var(--orange);
}
.steps h3 { font-size: var(--step-2); font-weight: 500; }
.steps p { margin-top: 4px; color: var(--muted); }
.pay-note {
  margin-top: 24px; display: flex; align-items: center; gap: 14px;
  background: var(--white); padding: 16px 20px;
  font-weight: 600; line-height: 1.4;
}
.pay-note svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--orange); }

/* ---------- Виды спорта и галерея ---------- */
.sports-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); }
.sport-list {
  list-style: none; margin: 0; padding: clamp(16px, 2vw, 24px) 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6em;
  border-top: 2px solid var(--black); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -0.01em;
  font-size: clamp(1.625rem, 0.5rem + 3vw, 3.125rem); white-space: nowrap;
}
.sport-list li { display: inline-flex; align-items: flex-start; gap: 0.28em; }
.sport-n {
  font-weight: 400; font-size: 0.3em; line-height: 1; letter-spacing: 0.06em;
  color: var(--orange); padding-top: 0.25em;
}
.sports-note { display: grid; gap: 2px; font-size: var(--step-1); color: var(--muted); }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(200px, 19vw, 268px));
}
.gallery li { position: relative; overflow: hidden; background: var(--navy); min-width: 0; }
.gallery video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.gallery li:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.gallery li:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery li:nth-child(3) { grid-column: 2; grid-row: 2; }
.gallery li:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
.gallery li:nth-child(5) { grid-column: 4; grid-row: 1; }
.gallery li:nth-child(6) { grid-column: 4; grid-row: 2; }

/* ---------- Локации ---------- */
.places.section { padding-bottom: 0; overflow: hidden; }
.places .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.places-body { grid-column: 1 / span 6; min-width: 0; align-self: center; padding-bottom: clamp(64px, 9vw, 120px); }
.places-body h2 { font-size: var(--step-4); }
.places-lead { font-size: var(--step-1); margin-top: 22px; max-width: 32rem; }
.card-facts { list-style: none; margin: 36px 0 0; padding: 0; }
.card-facts li {
  display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: 16px; border-top: 1px solid var(--line-light); color: rgba(255, 255, 255, 0.8);
}
.card-facts li:last-child { border-bottom: 1px solid var(--line-light); }
.card-facts b { font-family: var(--display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; color: var(--white); }
.places-phone { grid-column: 8 / span 4; min-width: 0; max-height: 620px; overflow: hidden; }
.places-phone img { width: 100%; max-width: 360px; height: auto; margin-inline: auto; }

/* ---------- Почему мы ---------- */
.app .wrap { display: grid; gap: clamp(36px, 5vw, 56px); }
.app-title { font-size: var(--step-5); }
.phones {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.phones figure { display: grid; gap: 24px; justify-items: center; }
.phones figcaption {
  justify-self: stretch;
  font-family: var(--display); font-weight: 500; font-size: var(--step-2); line-height: 1.15;
  min-height: 2.3em;
}
.phones figcaption span { color: var(--orange); }
.phones picture { width: 100%; max-width: 300px; transition: transform 0.35s cubic-bezier(.2, .7, .2, 1); }
.phones img { width: 100%; height: auto; }
@media (hover: hover) {
  .phones figure:hover picture { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .phones picture { transition: none; }
}
/* мягкая тень под телефоном — отдельным слоем, без filter */
.how-phone, .phones figure, .who-phone { isolation: isolate; }
.how-phone picture, .phones picture, .who-phone picture { position: relative; }
.how-phone picture::after, .phones picture::after, .who-phone picture::after {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -22px; height: 48px;
  background: radial-gradient(closest-side, rgba(24, 44, 76, 0.24), rgba(24, 44, 76, 0));
  pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq .section-head { grid-column: 1 / span 4; align-content: start; }
.faq-list { grid-column: 6 / span 7; min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center;
  padding-block: 22px;
  font-family: var(--display); font-weight: 500; font-size: var(--step-2); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) center / 12px 2px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 2px 12px no-repeat,
    var(--black);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
.faq details > div { padding: 0 44px 24px 0; color: #1F2633; max-width: 44rem; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Контакты ---------- */
.contact .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.contact-text { grid-column: 1 / span 6; min-width: 0; }
.contact-text h2 { font-size: var(--step-4); }
.contact-text p { margin-top: 18px; font-size: var(--step-1); color: var(--white); max-width: 32rem; }
.contact-ways { grid-column: 8 / span 5; min-width: 0; display: grid; gap: 14px; }
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--white); text-decoration: none;
  font-weight: 700; font-size: var(--step-1);
  padding: 17px 24px; border-radius: 999px; border: 2px solid var(--white);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.contact-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-btn.is-main { background: var(--white); color: var(--black); }
.contact-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.86); font-size: 0.9375rem; }
.site-footer .wrap { padding-block: 56px 32px; display: grid; gap: 40px; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.footer-col { grid-column: span 4; min-width: 0; }
.footer-title { font-family: var(--body); font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { text-decoration: none; display: inline-block; padding-block: 3px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.5);
}
.footer-legal a { color: inherit; }

/* ---------- Страница бега ---------- */
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.run-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  min-height: clamp(560px, calc(100vh - var(--header-h)), 820px);
  display: flex; align-items: center;
}
.run-hero-video {
  position: absolute; z-index: -2; top: 0; right: 0; width: 60%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.run-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 42%, rgba(24, 44, 76, 0.6) 51%, rgba(24, 44, 76, 0) 63%);
}
.run-hero .wrap { padding-block: clamp(40px, 5vw, 72px); }
.run-hero-text { max-width: 38rem; display: grid; gap: 24px; }
.run-hero .dl-android { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.7); }
.run-hero .dl-android .dl-title { color: var(--white); }
.run-hero .dl-android img { opacity: 0.55; }
.run-hero .dl-ios { box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6); }
.run-hero .dl-ios:focus-visible { outline-color: var(--white); }
.run-hero .hero-lead { color: rgba(255, 255, 255, 0.88); }
.hero-lead { font-size: var(--step-1); line-height: 1.6; color: #1F2633; max-width: 34rem; }

.what { padding-block: clamp(56px, 7vw, 96px); overflow: hidden; }
.what .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: center; }
.what-body { grid-column: 1 / span 6; min-width: 0; }
.what h2 { font-size: var(--step-4); max-width: 14ch; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; }
.facts li {
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; color: var(--black); }
.what-phone { grid-column: 7 / span 6; display: block; min-width: 0; transition: transform 0.25s ease; }
.what-phone img { width: 112%; max-width: none; height: auto; }
.what-phone:hover { transform: translateY(-4px); }

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.why-grid > div { border-top: 1px solid var(--line); padding-block: 22px; display: grid; gap: 8px; }
.why-grid h3 { font-size: var(--step-2); font-weight: 500; }
.why-grid p { color: var(--muted); }

.types { list-style: none; margin: 0; padding: 0; }
.types li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  column-gap: 24px; row-gap: 6px; align-items: baseline;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.types li:last-child { border-bottom: 1px solid var(--line); }
.types h3 { font-size: var(--step-3); font-weight: 500; }
.types .notation { font-family: var(--display); font-weight: 300; font-size: var(--step-3); color: var(--orange); line-height: 1.1; }
.types p { color: #1F2633; }

.who .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.who-body { grid-column: 1 / span 7; min-width: 0; }
.who-list > div { padding-block: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.who-list > div:last-child { border-bottom: 1px solid var(--line); }
.who-list h3 { font-size: var(--step-2); font-weight: 500; }
.who-list p { color: var(--muted); }
.level-note {
  margin-top: 24px; display: flex; align-items: center; gap: 14px;
  background: var(--mist); padding: 16px 20px; font-weight: 600; line-height: 1.4;
}
.level-note svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--orange); }
.who .wrap { align-items: center; }
.who-phone { grid-column: 9 / span 4; min-width: 0; }
.who-phone img { width: 100%; height: auto; }
.who-phone picture { max-width: 300px; margin-inline: auto; }

/* Блок с фоновым видео: бегун у МГУ, тонированный в фирменный синий */
.run-city {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  min-height: clamp(540px, 82vh, 760px); display: flex; align-items: center;
}
.run-city-video {
  position: absolute; z-index: -2; top: 0; right: 0; width: 60%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
}
.run-city::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 60%; height: 100%;
  background: var(--navy); mix-blend-mode: color; opacity: 0.9;
}
.run-city::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 40%, rgba(24, 44, 76, 0.55) 58%, rgba(24, 44, 76, 0.05) 100%);
}
.run-city .wrap { padding-block: clamp(64px, 9vw, 120px); }
.run-city-text { max-width: 36rem; display: grid; gap: 24px; }
.run-city h2 { font-size: var(--step-5); }
.run-city p { font-size: var(--step-1); color: rgba(255, 255, 255, 0.86); max-width: 30rem; }
.run-city .stores { margin-top: 8px; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) and (max-height: 600px) {
  .hero h1, .run-hero h1 { font-size: 2rem; }
  .hero-facts li { font-size: 0.9375rem; padding-block: 7px; }
  .hero-facts li::before { top: calc(7px + 0.72em); }
  .dl-btn { min-height: 60px; padding-block: 6px; }
}
@media (min-width: 861px) and (max-height: 760px) {
  .hero .wrap { padding-top: 20px; }
  .hero h1, .run-hero h1 { font-size: clamp(2.25rem, 1rem + 3vw, 3.5rem); }
  .hero-facts { margin-top: 18px; }
  .hero-facts li { padding-block: 8px; font-size: var(--step-0); }
  .hero-facts li::before { top: calc(8px + 0.72em); }
  .hero .dl { margin-top: 18px; }
  .dl { gap: 8px; }
  .dl-btn { min-height: 66px; padding-block: 8px; }
  .dl-btn img { height: 44px; }
  .run-hero .wrap { padding-block: 28px; }
  .run-hero-text { gap: 18px; }
}

@media (max-width: 1080px) {
  .nav ul { gap: 20px; }
  .hero-text { grid-column: 1 / span 7; }
  .hero-visual { grid-column: 8 / span 5; }
  .hero-visual .phone { width: 140%; margin-left: -6%; }
  .how-phone { grid-column: 1 / span 5; }
  .how-body { grid-column: 6 / span 7; }
  .places-phone { grid-column: 8 / span 5; }
  .facts li, .card-facts li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 20px var(--gutter-l);
  }
  .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding-block: 14px; font-size: var(--step-1); border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange); }

  .hero .wrap { padding-top: 20px; }
  .hero-text, .hero-visual, .how-phone, .how-body, .places-body, .places-phone,
  .app-head h2, .app-head p, .faq .section-head, .faq-list, .contact-text, .contact-ways,
  .what-body, .what-phone, .who-body, .who-phone { grid-column: 1 / -1; grid-row: auto; }
  .hero-facts { margin-top: 20px; }
  .hero-facts li { font-size: var(--step-0); padding-block: 9px; }
  .hero-facts li::before { top: calc(9px + 0.72em); }
  .hero .dl { margin-top: 20px; }
  .hero-visual { margin-top: 16px; }
  .hero-visual .phone { width: 106%; margin-left: -1%; }

  .how-body { order: 1; margin-bottom: 36px; }
  .how-phone { order: 2; }
  .how-phone picture { max-width: 260px; }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, calc((100vw - 48px) / 2)); gap: 8px;
  }
  .gallery li:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .gallery li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery li:nth-child(4) { grid-column: 2; grid-row: 3 / span 2; }
  .gallery li:nth-child(5) { grid-column: 1; grid-row: 3; }
  .gallery li:nth-child(6) { grid-column: 1; grid-row: 4; }

  .places-body { padding-bottom: 40px; }
  .places-phone { max-height: 470px; }
  .places-phone img { max-width: 280px; }

  .app-head { row-gap: 14px; }
  .phones {
    grid-template-columns: repeat(3, 68%); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 24px;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding-inline: var(--gutter-l) var(--gutter-r); scroll-padding-inline: var(--gutter-l);
  }
  .phones li { scroll-snap-align: start; }
  .faq .section-head { margin-bottom: 16px; }

  /* видео занимает всё, что остаётся над текстом и кнопками, — так обе кнопки видны сразу */
  .run-hero { display: block; min-height: 0; }
  .run-hero-video {
    position: relative; display: block; width: 100%;
    height: 210px; height: clamp(170px, calc(100svh - var(--header-h) - 430px), 125vw);
    object-position: 50% 42%;
  }
  .run-hero::after {
    inset: 0 0 auto;
    height: 210px; height: clamp(170px, calc(100svh - var(--header-h) - 430px), 125vw);
    background: linear-gradient(0deg, var(--navy) 0%, rgba(24, 44, 76, 0.55) 24%, rgba(24, 44, 76, 0) 58%);
  }
  .run-hero .wrap { position: relative; margin-top: -40px; padding-block: 0 32px; }
  .run-hero-text { gap: 16px; }
  .run-hero .hero-lead { font-size: var(--step-0); line-height: 1.5; }
  .what-phone img { width: 108%; margin-left: -4%; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .types li { grid-template-columns: minmax(0, 1fr); }
  .who-phone { margin-top: 12px; }
  .who-phone picture { max-width: 260px; }
  .dl { max-width: none; }
  .sport-list {
    flex-direction: column; align-items: stretch; gap: 0; white-space: normal;
    padding: 0; font-size: var(--step-4);
  }
  .sport-list li { display: flex; padding-block: 12px; border-top: 1px solid var(--line); gap: 0.4em; align-items: center; }
  .sport-list li:first-child { border-top: 0; }
  .sport-n { font-size: 0.4em; padding-top: 0; min-width: 1.6em; }

  .run-city { align-items: flex-end; min-height: 740px; }
  .run-city-video, .run-city::before { width: 100%; height: 74%; }
  .run-city-video { object-position: 50% 78%; }
  .run-city::after {
    background: linear-gradient(0deg, var(--navy) 0%, var(--navy) 36%, rgba(24, 44, 76, 0.45) 52%, rgba(24, 44, 76, 0) 70%);
  }
  .run-city .wrap { padding-block: 0 56px; }

  .footer-col { grid-column: span 6; }
}

@media (max-width: 560px) {
  .logo img { width: 128px; }
  .dl-btn { padding-left: 18px; gap: 12px; min-height: 68px; }
  .dl-btn img { height: 40px; }
  .dl-title { font-size: 0.9375rem; }
  .store img { height: 48px; }
  .faq details > div { padding-right: 0; }
  .footer-col { grid-column: 1 / -1; }
}

/* ---------- Карточка тренировки: подпись над фактами (все экраны) ---------- */
.card-facts-title { margin-top: 32px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.places .card-facts { margin-top: 14px; }
.card-facts span { color: rgba(255, 255, 255, 0.8); }
.what h2 { max-width: none; }

/* ---------- Почему мы: телефоны выровнены по низу ---------- */
.phones { align-items: stretch; }
.phones li { display: flex; }
.phones figure { width: 100%; grid-template-rows: auto 1fr; }
.phones picture { align-self: end; }

/* =================== Мобильная версия (только до 860px) =================== */
@media (max-width: 860px) {
  /* Первый экран: заголовок → телефон → факты → кнопки */
  .hero-text { display: contents; }
  .hero h1 { grid-column: 1 / -1; order: 1; }
  .hero-visual { order: 2; margin-top: 8px; }
  .hero-facts { grid-column: 1 / -1; order: 3; margin-top: 8px; }
  .hero .dl { grid-column: 1 / -1; order: 4; }

  /* Как начать: шаги карточками 2×2, телефон подрезан снизу */
  .how.section { padding-bottom: 0; }
  .how-body { margin-bottom: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .steps li {
    grid-template-columns: minmax(0, 1fr); row-gap: 8px; align-content: start;
    background: var(--white); border: 0; padding: 14px 14px 16px;
  }
  .steps li:last-child { border-bottom: 0; }
  .steps li::before { font-size: 2rem; }
  .steps h3 { font-size: 1rem; line-height: 1.2; }
  .steps p { font-size: 0.8125rem; line-height: 1.45; margin-top: 4px; }
  .pay-note { margin-top: 10px; padding: 12px 14px; font-size: 0.875rem; }
  .pay-note svg { width: 24px; height: 24px; }
  .how-phone { max-height: 360px; overflow: hidden; }
  .how-phone picture { max-width: 240px; }

  /* Виды спорта в две строки */
  .sport-list {
    flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start;
    gap: 6px 0.7em; padding: 14px 0; font-size: clamp(1.25rem, 6.1vw, 2rem);
  }
  .sport-list li { display: inline-flex; padding: 0; border: 0; gap: 0.25em; align-items: baseline; }
  .sport-n { font-size: 0.42em; min-width: 0; }

  /* Где тренируемся: телефон короче, факты в строку */
  .places-phone { max-height: 390px; }
  .card-facts-title { margin-top: 24px; }
  .card-facts { display: flex; flex-wrap: wrap; gap: 8px; }
  .card-facts li, .card-facts li:last-child {
    display: block; padding: 8px 16px; border: 1px solid var(--line-light); border-radius: 999px;
  }
  .card-facts b { font-size: var(--step-1); }
  .card-facts span { display: none; }

  /* Страница бега: видео на весь первый экран, текст и кнопки внизу */
  .run-hero { display: flex; align-items: flex-end; min-height: 620px; min-height: calc(100svh - var(--header-h)); }
  .run-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; height: 100%; object-position: 50% 35%; }
  .run-hero::after {
    inset: 0; height: auto; height: 100%;
    background: linear-gradient(0deg, var(--navy) 0%, rgba(24, 44, 76, 0.88) 30%, rgba(24, 44, 76, 0.35) 54%, rgba(24, 44, 76, 0) 72%);
  }
  .run-hero .wrap { margin-top: 0; padding-block: 0 28px; }

  /* Удобное приложение: заголовок → телефон → факты */
  .what-body { display: contents; }
  .what h2 { grid-column: 1 / -1; order: 1; }
  .what-phone { order: 2; }
  .what .facts { grid-column: 1 / -1; order: 3; margin-top: 0; }

  /* Виды беговых тренировок: сетка карточек без описаний */
  .types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .types li, .types li:last-child { display: block; background: var(--white); border: 0; padding: 16px 14px 18px; }
  .types h3 { font-size: 1.125rem; line-height: 1.2; }
  .types .notation { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.25; }
  .types p { display: none; }

  /* Кому подойдут: телефон подрезан снизу, как в «Тренируемся по всей Москве» */
  .who.section { padding-bottom: 0; }
  .who-phone { max-height: 360px; overflow: hidden; margin-top: 28px; }
}

/* ---------- Тексты только для десктопа / только для телефона ---------- */
.m-only { display: none; }
@media (max-width: 860px) {
  .d-only { display: none; }
  .m-only { display: block; }
  /* виды спорта: без чёрной линии сверху, крупнее */
  .sport-list { border-top: 0; padding-top: 0; column-gap: 0.45em; font-size: clamp(1.25rem, 6.7vw, 2.25rem); }
  .sport-list .sport-n { font-size: 0.38em; }
}

/* ---------- Почему мы: подписи начинаются там же, где содержимое экрана телефона ---------- */
.phones figcaption { justify-self: center; width: 100%; max-width: 300px; padding-inline: min(20px, 6.5%); }
