:root {
  --bg: #000000;
  --acc: #B6F024;
  --acc-dark: #8FC40F;
  --panel: #0F110C;
  --line: #2A3020;
  --text: #FFFFFF;
  --muted: #A9AE9F;

  --font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --skew: skewX(-8deg);
  --header-h: 62px;
  --pad: 18px;
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--acc); }

h1, h2, h3 { margin: 0; }

p { margin: 0 0 1em; }

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--acc);
  color: #000;
  padding: 10px 16px;
  font-weight: 800;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- загрузка ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out, visibility 0s linear 0.25s;
}

.is-loading .loader {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.loader__img {
  width: 96px;
  height: 96px;
  animation: loader-spin 1.2s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand__logo {
  width: 42px;
  height: auto;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 22px;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav__link:hover { color: var(--acc); }
.nav__link { white-space: nowrap; }

/* «Контакты» в меню — только когда в шапке хватает места */
@media (max-width: 999px) { .nav__link--wide { display: none; } }
.brand { flex: none; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-block;
  transform: var(--skew);
  border: 2px solid var(--acc);
  padding: 14px 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}

.btn--accent {
  background: var(--acc);
  color: #000;
}
.btn--accent:hover { background: var(--acc-dark); border-color: var(--acc-dark); }

.btn--ghost {
  background: transparent;
  color: var(--acc);
}
.btn--ghost:hover { background: var(--acc); color: #000; }

.btn--outline-dark {
  background: transparent;
  color: #000;
  border-color: #000;
}
.btn--outline-dark:hover { background: #000; color: var(--acc); }

.btn--dark {
  background: #000;
  color: var(--acc);
  border-color: #000;
}
.btn--dark:hover { background: #12160c; }

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.header-cta { flex: none; }
.header-cta__full { display: none; }

@media (min-width: 860px) {
  .header-cta__short { display: none; }
  .header-cta__full { display: inline; }
}

/* ---------- первый экран ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  padding: 34px 0 44px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acc);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(46px, 15vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
}

.slogan { margin: 0 0 20px; }

.slogan__in {
  display: inline-block;
  transform: var(--skew);
  background: var(--acc);
  color: #000;
  padding: 7px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 4.6vw, 26px);
  letter-spacing: 0.01em;
}

.hero__lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art { display: none; }

/* ---------- секции ---------- */

.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(30px, 8vw, 56px);
  line-height: 0.95;
  margin: 0;
}

.section__head { margin-bottom: 30px; }

.section__head--icon {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section__icon {
  width: 52px;
  height: auto;
  flex: none;
}

.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1;
  margin: 0 0 18px;
}

.section__note {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 56ch;
}

/* ---------- форматированный текст из админки (Markdown) ---------- */

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 0.75em; }
.rich ul,
.rich ol { margin: 0 0 0.75em; padding-left: 1.25em; }
.rich li { margin: 0.2em 0; }
.rich li::marker { color: var(--acc); }
.rich strong,
.rich b { color: var(--text); font-weight: 800; }
.rich h3,
.rich h4 {
  margin: 1em 0 0.4em;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 17px;
  color: var(--text);
}
.rich blockquote {
  margin: 0 0 0.75em;
  padding-left: 14px;
  border-left: 2px solid var(--acc);
}
.rich code {
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
}

.levels-list { list-style: none; padding-left: 0 !important; }
.levels-list li { margin: 0.35em 0; }
.levels-list strong { color: var(--acc); }

.training__contact { color: var(--muted); }

/* ---------- сетка, которая подстраивается под число записей ----------
   JS ставит --cols (широкий экран) и --cols-md (планшет) по количеству записей,
   а неполный последний ряд растягивается, так что пустых ячеек не бывает. */

.auto-grid {
  --grid-gap: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap);
}

.auto-grid > * {
  flex: 1 1 100%;
  min-width: 0;
}

/* ---------- как записаться ---------- */

.steps {
  --grid-gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--panel);
  padding: 24px 22px;
}

.step__num {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  color: var(--acc);
}

.step__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.05;
  margin: 0 0 10px;
}

.step__text {
  margin: 0;
  color: var(--muted);
}

.signup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 30px;
}

.final__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

/* ---------- виды тренировок ---------- */

.trainings {
  --grid-gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.training {
  background: var(--panel);
  padding: 24px 22px;
}

.training__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: var(--acc);
}

.training__text {
  margin: 0;
  color: var(--muted);
}

/* ---------- расписание ---------- */

.schedule {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "day day"
    "time price"
    "meta meta"
    "venue venue";
  align-items: center;
  gap: 8px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.row + .row { padding-top: 20px; }

.row__day { grid-area: day; }
.row__time { grid-area: time; }
.row__price { grid-area: price; }
.row__meta { grid-area: meta; }
.row__venue { grid-area: venue; }

.row__day-in {
  display: inline-block;
  transform: var(--skew);
  background: var(--acc);
  color: #000;
  padding: 4px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.row__time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.row__price { text-align: right; }

.price {
  display: inline-block;
  background: var(--acc);
  color: #000;
  padding: 9px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  clip-path: polygon(
    5px 0, 100% 0,
    calc(100% - 5px) 14%, 100% 30%,
    calc(100% - 4px) 50%, 100% 70%,
    calc(100% - 5px) 86%, 100% 100%,
    5px 100%, 0 86%,
    4px 70%, 0 50%,
    4px 30%, 0 14%
  );
}

.row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.type {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.type--play { color: var(--acc); }

.levels {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.level {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  text-transform: uppercase;
}
.level--any { text-transform: none; font-weight: 600; letter-spacing: 0; }

.row__venue {
  color: var(--muted);
  font-size: 14px;
}

.row__venue-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.row__venue-link:hover { color: var(--acc); border-color: var(--acc); }

/* ---------- акции ---------- */

.promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.promo__media img,
.tournament__media img,
.coach__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}

/* Обложки акций и турниров — горизонтальные, 16:9 */
.promo__media img,
.tournament__media img { aspect-ratio: 16 / 9; }

.promo__media.card-placeholder,
.tournament__media.card-placeholder { aspect-ratio: 16 / 9; }

.promo__body,
.tournament__body { padding: 22px 20px; }

/* заглушка вместо картинки, когда у соседних карточек картинка есть */
.card-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.card-placeholder img {
  width: 28%;
  max-width: 120px;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 0.35;
}

.promo__title,
.tournament__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.02;
  margin: 0 0 12px;
}

.promo__text,
.tournament__text {
  color: var(--muted);
  margin: 0 0 20px;
}

/* ---------- площадки ---------- */

.venues {
  --grid-gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.venue {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  padding: 22px 20px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.venue__foot { margin-top: auto; }

.venue__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.venue__address {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 12px;
}

.venue__days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.venue__days:empty { display: none; }

.day-chip {
  border: 1px solid var(--acc);
  color: var(--acc);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 9px;
}

.venue__map {
  color: var(--acc);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--acc-dark);
}

/* ---------- тренер ---------- */


/* Фото тренера — целиком, без обрезки (аватарки бывают круглыми, с прозрачным фоном) */
.coach__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 0;
}

.coach__media img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: none;
}

.coach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.coach__body { padding: 22px 20px; }

.coach__name {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 10px;
}

.coach__about { color: var(--muted); }

.link-soft {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.link-soft:hover { color: var(--acc); border-color: var(--acc); }

.link-accent {
  color: var(--acc);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--acc-dark);
}

/* ---------- турниры ---------- */

.tournament {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.card__when {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--acc);
}

.card__where { color: var(--muted); }

/* ---------- партнёры ---------- */

.partners {
  --grid-gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner {
  background: var(--panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}

.partner__name {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.partner__logo { max-height: 46px; width: auto; object-fit: contain; }

.partner__desc {
  color: var(--muted);
  font-size: 14px;
}

a.partner:hover .partner__name { color: var(--acc); }

/* ---------- вопросы ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.qa { border-bottom: 1px solid var(--line); }

.qa__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.qa__q::-webkit-details-marker { display: none; }

.qa__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acc);
  font-size: 26px;
  line-height: 1;
}
.qa[open] .qa__q::after { content: "–"; }
.qa[open] .qa__q { color: var(--acc); }

.qa__a {
  color: var(--muted);
  padding: 0 0 20px;
}

/* ---------- финал ---------- */

.final {
  background: var(--acc);
  color: #000;
  padding: 54px 0;
  scroll-margin-top: var(--header-h);
}


.final__inner {
  display: grid;
  gap: 34px;
}

.final__logo {
  width: 200px;
  height: auto;
  justify-self: center;
  order: -1;
}

.final__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(38px, 12vw, 84px);
  line-height: 0.92;
  margin: 0 0 22px;
}

.final__text {
  max-width: 44ch;
  margin: 0 0 22px;
  font-weight: 600;
}

.final__phone {
  font-size: clamp(20px, 6vw, 30px);
  padding: 16px 30px;
}

.final__tg {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid rgba(0, 0, 0, 0.25);
}

.final__tg-text {
  max-width: 48ch;
  margin: 0 0 16px;
  font-weight: 600;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 30px 0 0;
  padding: 26px 0 0;
  border-top: 2px solid rgba(0, 0, 0, 0.25);
}

.socials__link {
  color: #000;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
}
.socials__link:hover { border-color: #000; }

.final :focus-visible { outline-color: #000; }

/* ---------- футер ---------- */

.site-footer {
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  justify-content: space-between;
}

.footer__logo {
  width: 112px;
  height: auto;
  margin-right: 4px;
}
.footer-inner p { margin: 0; }

/* ---------- липкая кнопка ---------- */

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 45;
  display: block;
  background: var(--acc);
  color: #000;
  text-align: center;
  text-decoration: none;
  padding: 15px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: translateY(160%);
  transition: transform 0.2s ease-out;
}
.sticky-cta.is-visible { transform: translateY(0); }

@media (max-width: 859px) {
  body { padding-bottom: 78px; }
}

@media (min-width: 860px) {
  .sticky-cta { display: none; }
}

/* ---------- единые отступы внутри карточек ----------
   Заголовок, строка «когда/где», текст — через 12px; перед кнопкой или ссылкой — ещё 6px.
   Отступы задаёт gap, собственные margin у элементов обнулены, чтобы не складывались. */

.training,
.step,
.coach__body,
.promo__body,
.tournament__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.training > *,
.step > *,
.coach__body > *,
.promo__body > *,
.tournament__body > * { margin: 0; }

.training__contact,
.coach__body > .link-accent,
.promo__body > .btn,
.tournament__body > .btn { margin-top: 6px; }

.step > .step__num { margin-bottom: 2px; }

/* Акции и турниры в несколько колонок: карточки одной высоты, заголовки
   занимают место под две строки, кнопка прижата к низу — всё в ряду на одном уровне */
.promo,
.tournament { grid-template-rows: auto 1fr; }

.promo__body > .btn,
.tournament__body > .btn { margin-top: auto; }

.promo__text,
.tournament__text { margin-bottom: 6px; }

@media (min-width: 680px) {
  .cards:not([data-count="1"]) .promo__title,
  .cards:not([data-count="1"]) .tournament__title { min-height: 2.04em; }

  /* в несколько колонок кнопки на всю ширину карточки — одинаковые в ряду */
  .cards:not([data-count="1"]) .promo__body > .btn,
  .cards:not([data-count="1"]) .tournament__body > .btn { align-self: stretch; }
}

/* ---------- окно «Записаться» ----------
   На телефоне выезжает снизу, на широком экране — окно по центру. */

/* Страницу под окном не трогаем (никаких overflow: hidden) — иначе прыгает шапка
   и дёргается вёрстка. Прокрутку фона гасит скрипт на самом окне. */

/* Окно открывается под шапкой: она остаётся видимой и не затемняется */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(var(--header-h) + 1px + env(safe-area-inset-top));
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  touch-action: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-top: 3px solid var(--acc);
  padding: 28px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}

.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel:focus { outline: none; }
.sheet.is-open .sheet__panel { transform: none; }

.sheet__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.sheet__close:hover { color: var(--acc); }

.sheet__title {
  margin: 0 44px 10px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.05;
}

.sheet__text {
  margin: 0 0 22px;
  color: var(--muted);
}

.sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet__actions .btn { display: block; }

@media (min-width: 680px) {
  .sheet {
    align-items: center;
    padding: calc(var(--header-h) + 1px + env(safe-area-inset-top) + 24px) 24px 24px;
  }
  .sheet__panel {
    border-bottom: 1px solid var(--line);
    padding: 34px 30px 30px;
    opacity: 0;
    transform: translateY(16px);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }
  .sheet.is-open .sheet__panel { opacity: 1; transform: none; }
}

/* ---------- широкие экраны ---------- */

@media (min-width: 680px) {
  :root { --pad: 28px; }

  .auto-grid > * {
    flex-basis: calc((100% - (var(--cols-md, 1) - 1) * var(--grid-gap)) / var(--cols-md, 1) - 0.5px);
  }

  .venue__days:empty {
    display: block;
    min-height: 22px;
  }


  /* Одна карточка в блоке — картинка слева, текст справа, во всю ширину.
     Несколько — обычные карточки в колонках: картинка сверху, текст снизу. */
  .cards[data-count="1"] > .promo,
  .cards[data-count="1"] > .tournament,
  .cards[data-count="1"] > .coach { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0; }

  .cards[data-count="1"] > .is-textonly { grid-template-columns: 1fr; }

  .cards[data-count="1"] .coach__media { padding: 32px 0 32px 32px; }

  /* одна акция или турнир: картинка во всю высоту карточки (без полос сверху и снизу),
     ширина колонки подобрана под 16:9, чтобы обрезалось как можно меньше */
  .cards[data-count="1"] > .promo:not(.is-textonly),
  .cards[data-count="1"] > .tournament:not(.is-textonly) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .cards[data-count="1"] .promo__media,
  .cards[data-count="1"] .tournament__media { position: relative; min-height: 300px; }

  .cards[data-count="1"] .promo__media img,
  .cards[data-count="1"] .tournament__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 80% 50%;   /* надпись на обложках обычно справа — её не обрезаем */
  }

  .cards[data-count="1"] .promo__body,
  .cards[data-count="1"] .tournament__body { align-self: center; }


  .cards[data-count="1"] .promo__body,
  .cards[data-count="1"] .tournament__body,
  .cards[data-count="1"] .coach__body {
    padding: 30px 28px;
    align-self: center;
  }
}

@media (min-width: 860px) {
  :root { --header-h: 72px; }

  .final__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
  }

  .final__logo {
    width: 320px;
    order: 0;
  }

  .nav { display: flex; }

  .hero {
    padding: 56px 0 60px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
  }

  .hero__lead { max-width: none; }

  .hero__art {
    display: flex;
    justify-content: center;
  }

  .hero__art img {
    width: auto;
    max-width: 100%;
    max-height: 480px;
  }

  .section__icon { width: 64px; }

  .section { padding: 72px 0; }

  .row {
    grid-template-columns: minmax(150px, 0.9fr) minmax(130px, 0.8fr) minmax(170px, 1.1fr) minmax(0, 1.2fr) auto;
    gap: 20px;
    padding: 22px 0;
  }

  .row { grid-template-areas: none; }
  .row + .row { padding-top: 22px; }
  .row__day,
  .row__time,
  .row__price,
  .row__meta,
  .row__venue { grid-area: auto; }

  .row__day-in { font-size: 21px; padding: 5px 16px; }
  .row__time { font-size: 34px; }
  .row__meta { flex-direction: column; align-items: flex-start; gap: 7px; }
  .row__venue { font-size: 15px; }
  .price { font-size: 23px; padding: 11px 20px; }
}

@media (min-width: 1080px) {
  .auto-grid > * {
    flex-basis: calc((100% - (var(--cols, 1) - 1) * var(--grid-gap)) / var(--cols, 1) - 0.5px);
  }
}

/* ---------- бережные анимации ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .loader__img { animation: none; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .sticky-cta { transition: none; }
  .sheet__panel, .sheet__backdrop { transition: none; }
}
