/* =============================================================
   PADEL CORE — landing page
   Автор вёрстки: DNK Studio
   Структура:
     1.  Переменные и токены
     2.  Reset / base
     3.  Утилиты (container, placeholder, notch-corner, reveal)
     4.  Кнопки и стрелки
     5.  Hero
     6.  Почему PADEL CORE
     7.  Форматы игры
     8.  Community
     9.  Инфраструктура
     10. Тренеры
     11. CTA
     12. Footer
     13. Адаптив (2000 / 1800 / 1600 / 1440 / 1280 / 1024 / 768 / 480)
   ============================================================= */

/* =============================================================
   1. ПЕРЕМЕННЫЕ И ТОКЕНЫ
   ============================================================= */
:root {
  /* Палитра */
  --bg:            #fcfcfc;
  --navy:          #0b2a3d;
  --navy-deep:     #07202f;
  --lime:          #c8f24c;
  --accent:        #df6945;
  --blue:          #bfdaf0;
  --blue-text:     #295374;
  --blue-muted:    #a8c8e0;
  --white:         #ffffff;
  --placeholder:   #d9d9d9;

  /* Радиусы */
  --r-card:        2.5rem;   /* 40px — крупные контейнеры */
  --r-block:       1.75rem;  /* 28px — карточки */
  --r-media:       1.5rem;   /* 24px — изображения */
  --r-notch:       1.5rem;   /* 24px — внутренние вырезы */

  /* Сетка */
  --container:     125rem;   /* 2000px */
  --gutter:        2.5rem;   /* 40px */
  --gap:           1.25rem;  /* 20px */

  /* Анимация */
  --ease:          cubic-bezier(.22,.68,.28,1);
  --dur:           .35s;

  /* Типографика */
  --font: "Futura PT", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;
}

/* =============================================================
   2. RESET / BASE
   ============================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }

ul { list-style: none; }

.body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

/* атрибут hidden должен перебивать любые display из компонентов */
[hidden] { display: none !important; }

/* Поле-ловушка для ботов: невидимо для людей, но не display:none —
   иначе часть спам-скриптов его пропускает */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-error {
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--accent);
}
button.is-loading { opacity: .65; pointer-events: none; }

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

/* Спрайт с иконками */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =============================================================
   3. УТИЛИТЫ
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 4.5rem; }

/* Якорная навигация ведёт к разделам, а сверху висит плавающая
   шапка (.topbar) — без отступа заголовок раздела прятался бы под ней. */
.section,
.footer { scroll-margin-top: 6.5rem; }

/* невидимая цель для старых ссылок вида /#job */
.anchor-alias {
  display: block;
  height: 0;
  scroll-margin-top: 6.5rem;
}

.section__title {
  font-size: 3.5rem;         /* 56px */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 2.75rem;
}
.section__title--tight   { line-height: 1.05; }
.section__title--upper   { text-transform: uppercase; letter-spacing: -.015em; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}
.section__head .section__title { margin-bottom: 0; }

/* Заглушки под будущие фотографии */
.placeholder {
  background: var(--placeholder);
  background-image: linear-gradient(135deg,
      rgba(0,0,0,.035) 25%, transparent 25%, transparent 50%,
      rgba(0,0,0,.035) 50%, rgba(0,0,0,.035) 75%, transparent 75%);
  background-size: 2rem 2rem;
}

/* --- Скруглённые «филе» для нестандартных вырезов ------------
   .notch-corner — квадрат R×R, залитый нужным цветом с маской
   в виде четверти круга. Комбинация таких квадратов вместе с
   border-radius даёт вогнутые (inverted) углы как в макете.    */
.notch-corner {
  --r: var(--r-notch);
  --fill: var(--bg);
  position: absolute;
  width: var(--r);
  height: var(--r);
  background: var(--fill);
  pointer-events: none;
}

/* заливка СНАРУЖИ круга — вырез в теле карточки */
.notch-corner--left,
.notch-corner--bottom,
.notch-corner--infra-r,
.notch-corner--infra-b,
.notch-corner--after,
.notch-corner--under-left,
.notch-corner--before,
.notch-corner--under-right,
.notch-corner--before-bottom,
.notch-corner--over-right,
.notch-corner--panel-r,
.notch-corner--panel-t {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--cx) var(--cy), transparent 99%, #000 100%);
          mask-image: radial-gradient(circle var(--r) at var(--cx) var(--cy), transparent 99%, #000 100%);
}
.notch-corner--left   { --cx: 0;    --cy: 100%; top: 0;    left: calc(var(--r) * -1); }
.notch-corner--bottom { --cx: 0;    --cy: 100%; top: 100%; right: 0; }
/* вогнутые «филе» панели форматов: сверху-слева и снизу-справа —
   белые, с вырезанным кругом => угол панели плавно скруглён внутрь */
.notch-corner--panel-r{ --cx: 100%; --cy: 0; bottom: 0; right: calc(var(--r) * -1); --fill: var(--bg); }
.notch-corner--panel-t{ --cx: 100%; --cy: 0; top: calc(var(--r) * -1); left: 0;     --fill: var(--bg); }

/* Выкусы hero: логотип (слева сверху), кнопка (справа сверху),
   кнопка записи (справа снизу) */
.notch-corner--after        { --cx: 100%; --cy: 100%; top: 0;       left: 100%;  }
.notch-corner--under-left   { --cx: 100%; --cy: 100%; top: 100%;    left: 0;     }
.notch-corner--before       { --cx: 0;    --cy: 100%; top: 0;       right: 100%; }
.notch-corner--under-right  { --cx: 0;    --cy: 100%; top: 100%;    right: 0;    }
.notch-corner--before-bottom{ --cx: 0;    --cy: 0;    bottom: 0;    right: 100%; }
.notch-corner--over-right   { --cx: 0;    --cy: 0;    bottom: 100%; right: 0;    }

/* --- Анимация появления ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   4. КНОПКИ И СТРЕЛКИ
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  min-height: 3rem;
  padding: .25rem .25rem .25rem 1.5rem;
  border-radius: 999px;
  font-size: .9375rem;       /* 15px */
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn__label { display: block; }

.btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.btn__icon svg { width: 1rem; height: 1rem; }

.btn--lime            { background: var(--lime); color: var(--navy); }
.btn--lime .btn__icon { background: var(--navy); color: var(--lime); }
.btn--lime:hover      { background: #d6ff5e; transform: translateY(-2px); }
.btn--lime:active     { background: #b7e03c; transform: translateY(0); }

.btn--dark            { background: var(--navy); color: var(--white); }
.btn--dark .btn__icon { background: var(--lime); color: var(--navy); }
.btn--dark:hover      { background: #123950; transform: translateY(-2px); }
.btn--dark:active     { background: var(--navy-deep); transform: translateY(0); }

.btn:hover .btn__icon { transform: rotate(45deg); }

/* Круглая фирменная кнопка-стрелка */
.round-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.round-btn svg { width: 1.125rem; height: 1.125rem; }
.round-btn:hover  { background: #d6ff5e; transform: scale(1.08) rotate(45deg); }
.round-btn:active { transform: scale(.96); }

/* Пара стрелок «влево / вправо» */
.arrows {
  display: flex;
  gap: .75rem;
  flex: none;
}
.arrows--end { justify-content: flex-end; }

.arrows__btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.arrows__btn svg { width: 1.25rem; height: 1.25rem; }
.arrows__btn:hover  { background: #d6ff5e; transform: translateY(-2px); }
.arrows__btn:active { transform: translateY(0) scale(.95); }

/* =============================================================
   4b. ПЛАВАЮЩАЯ ШАПКА
   Появляется, когда hero уходит вверх. Не в притык к краям —
   «таблетка» со скруглением, отступами и подложкой с блюром.
   ============================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: .875rem var(--gutter);
  opacity: 0;
  transform: translateY(-130%);
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}
.topbar.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: .5rem .5rem .5rem 1.75rem;
  border-radius: 999px;
  background: rgba(11, 42, 61, .9);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 .875rem 2.25rem rgba(7, 32, 47, .28);
}

.topbar__logo { flex: none; display: flex; align-items: center; }
/* логотип нарисован тёмным (под белую подложку в hero) — на тёмной
   «таблетке» он сливался, поэтому выводим его белым */
.topbar__logo img {
  height: 2.25rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.topbar__nav { flex: 1 1 auto; min-width: 0; }
.topbar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.topbar__link {
  position: relative;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.topbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.375rem;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.topbar__link:hover { color: var(--lime); }
.topbar__link:hover::after { transform: scaleX(1); }

.topbar__side {
  flex: none;
  display: flex;
  align-items: center;
  gap: 1.125rem;
}
.topbar__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.topbar__phone {
  display: none;         /* видно только в мобильной «таблетке» ниже */
  font-size: .8125rem;
  font-weight: 700;
  color: var(--lime);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.topbar__phone:hover { color: #d6ff5e; }
.topbar__address {
  font-size: .8125rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
  text-align: right;
}
.topbar__hours {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lime);
  white-space: nowrap;
}
.topbar__btn { min-height: 2.75rem; }

.topbar__burger { display: none; }

/* --- адаптив шапки --- */
@media (max-width: 1279px) {
  .topbar__list { gap: 1.25rem; }
  .topbar__address { display: none; }
}

/* Соцсети внутри раскрытого мобильного меню (и в hero, и в плавающей шапке) */
.nav__socials { display: none; }
@media (max-width: 1023px) {
  .nav.is-open .nav__socials,
  .topbar__nav.is-open .nav__socials {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .nav__social {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav__social svg { width: 1.125rem; height: 1.125rem; }
  .nav__social:hover { background: var(--lime); color: var(--navy); transform: translateY(-2px); }
}

/* На мобильном кнопка «Играть» уступает место телефону и адресу —
   записаться можно из блоков ниже, а связаться с клубом полезнее. */
@media (max-width: 767px) {
  .topbar__btn { display: none; }
  .topbar__phone {
    display: block;
    font-size: .8125rem;
  }
  /* адрес держим в две заданные строки и запрещаем перенос внутри строки —
     иначе «3Б/1» отрывался и контакты «съезжали» в центр таблетки */
  .topbar__address {
    display: block;
    max-width: none;
    font-size: .625rem;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
  }
  .topbar__hours { font-size: .625rem; text-align: right; }
  /* у .burger базово margin-left:auto — вместе с auto у .topbar__side
     свободное место делилось пополам и контакты «уезжали» в центр
     таблетки. Отступ оставляем только у контактов. */
  .topbar .topbar__burger { margin: auto 0 auto 0; }
  .topbar__side { gap: .75rem; margin-right: .625rem; }
  .topbar__inner { gap: .5rem; padding-right: .5rem; }
}

@media (max-width: 1023px) {
  .topbar__inner { padding: .5rem .5rem .5rem 1.25rem; gap: .75rem; }
  .topbar__nav {
    display: none;
    position: absolute;
    top: calc(100% + .625rem);
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    border-radius: var(--r-block);
    background: var(--navy-deep);
    box-shadow: 0 1rem 2.5rem rgba(7, 32, 47, .35);
  }
  .topbar__nav.is-open { display: block; }
  .topbar__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .topbar__link { display: block; padding: .875rem 0; }
  .topbar__link::after { display: none; }

  .topbar__side { margin-left: auto; }
  .topbar__burger { display: block; flex: none; margin: 0; }
}

@media (max-width: 479px) {
  .topbar { padding: .625rem var(--gutter); }
  .topbar__logo img { height: 1.875rem; }
  .topbar__address { max-width: 7.5rem; font-size: .625rem; }
}

/* =============================================================
   5. HERO — фото на всю площадь экрана с «выкусами»
   ============================================================= */
.hero {
  --bite-h: 6.75rem;         /* высота верхних выкусов, 108px */
  --bite-h-b: 7.25rem;       /* высота нижнего выкуса, 116px */
  padding: 1rem;
}

.hero__card {
  position: relative;
  height: calc(100vh - 2rem);
  height: clamp(40rem, calc(100svh - 2rem), 64rem);
  border-radius: var(--r-card);
  background: var(--navy);
  isolation: isolate;
}

.hero__img,
.hero__scrim {
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* затемнение, чтобы белый текст читался на любом кадре */
.hero__scrim {
  background: linear-gradient(180deg,
      rgba(7,32,47,.55) 0%,
      rgba(7,32,47,.22) 42%,
      rgba(7,32,47,.60) 100%);
}

/* --- Верхняя линия --- */
.hero__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bite-h);
  display: flex;
  align-items: stretch;
  z-index: 3;
}

.hero__bite {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  background: var(--bg);
}
.hero__bite--logo {
  padding: 0 2.5rem 0 3.5rem;
  border-bottom-right-radius: var(--r-notch);
}
.hero__bite--book {
  margin-left: auto;
  gap: 1.5rem;
  padding-right: 2.75rem;
  background: none;
}
.hero__bite--trial {
  position: absolute;
  right: 0;
  bottom: 0;
  height: var(--bite-h-b);
  padding: 0 2.75rem 0 2.5rem;
  border-top-left-radius: var(--r-notch);
  z-index: 3;
}

.hero__logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.hero__logo img {
  display: block;
  height: 3.25rem;
  width: auto;
}

/* --- Контакты в шапке (телефон + адрес + часы) ---
   стоят сразу за логотипом: справа они ложились на лицо на фото --- */
.hero__contacts {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .1875rem;
  padding-left: 1.75rem;
  text-align: left;
}
.hero__phone {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lime);
  transition: color var(--dur) var(--ease);
}
.hero__phone:hover { color: #d6ff5e; }
.hero__hours {
  margin-top: .125rem;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lime);
  white-space: nowrap;
}
.hero__address {
  max-width: 15rem;
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  opacity: .8;
}

/* --- Иконки соцсетей рядом с контактами --- */
.hero__socials { display: flex; align-items: center; gap: .5rem; flex: none; }
.hero__social-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__social-link svg { width: 1rem; height: 1rem; }
.hero__social-link:hover { background: var(--lime); color: var(--navy); transform: translateY(-2px); }

/* --- Навигация поверх фото --- */
.nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding-inline: 2rem;
}
.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.75rem;
}
.nav__item { flex: none; }
.nav__link {
  position: relative;
  white-space: nowrap;       /* пункт всегда в одну строку */
  font-size: 1rem;           /* пункты держим в одну строку — крупнее не влезает */
  font-weight: 500;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--lime); }
.nav__link:hover::after { transform: scaleX(1); }

/* Бургер (мобильные) */
.burger {
  display: none;             /* block в мобильном медиа */
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background: var(--lime);
  margin: auto 1.25rem auto auto;
}
/* обе линии отцентрованы; в закрытом виде разведены по вертикали,
   на открытии — только поворот вокруг центра => ровный крестик */
.burger__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.375rem;           /* 22px — читается как «меню», а не «=» */
  height: 2px;
  margin: -1px 0 0 -0.6875rem;
  border-radius: 2px;        /* мягкие торцы */
  background: var(--navy);
  transition: transform var(--dur) var(--ease);
}
.burger__line:first-child { transform: translateY(-4px); }
.burger__line:last-child  { transform: translateY(4px); }
.burger.is-open .burger__line:first-child { transform: rotate(45deg); }
.burger.is-open .burger__line:last-child  { transform: rotate(-45deg); }

/* Кнопки в hero крупнее, чем в контенте */
.hero .btn {
  min-height: 3.5rem;
  font-size: 1.125rem;
  padding-left: 1.75rem;
}
.hero .btn__icon { width: 2.75rem; height: 2.75rem; }
.hero .btn__icon svg { width: 1.125rem; height: 1.125rem; }

/* --- Контент поверх фото --- */
.hero__overlay {
  position: absolute;
  left: 5.5rem;
  top: 27%;
  z-index: 2;
}
.hero__title {
  font-size: 7.25rem;        /* 116px */
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--lime);
}
.hero__subtitle {
  margin-top: 1.125rem;
  font-size: 1.625rem;       /* 26px */
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}

.hero__text {
  position: absolute;
  left: 5.5rem;
  bottom: 5.5rem;
  z-index: 2;
  font-size: 1.25rem;        /* 20px */
  font-weight: 500;
  line-height: 1.62;
  color: var(--white);
}

/* =============================================================
   5b. О ПАДЕЛ — компактная «прослойка» между hero и принципами
   игры. Второй и третий блоки объединены: только текст и УТП.
   ============================================================= */
.intro { padding-block: 2.75rem; }

.intro__text {
  max-width: 56rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: center;
  color: #4d6a7e;
}

.intro__usp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 62rem;
  margin: 2rem auto 0;
  padding: 1.75rem 2rem;
  border-radius: var(--r-block);
  background: var(--navy);
}
.intro__usp-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.intro__usp-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
}
.intro__usp-icon svg { width: 1.125rem; height: 1.125rem; }
.intro__usp-text {
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}
.intro__usp-text b { color: var(--lime); }

@media (max-width: 1023px) {
  .intro__usp { grid-template-columns: minmax(0, 1fr); max-width: 30rem; gap: 1.125rem; }
  /* в одну колонку иконку центрируем по тексту, а не по первой строке */
  .intro__usp-item { align-items: center; }
}

/* На мобильном блок — тонкая «прослойка»: текст и иконки сжимаются
   по максимуму, чтобы не растягивать переход к принципам игры. */
@media (max-width: 767px) {
  .intro { padding-block: 1.75rem; }
  .intro__text { font-size: .875rem; line-height: 1.55; }
  .intro__usp { margin-top: 1.25rem; gap: .75rem; padding: 1.25rem 1.375rem; }
  .intro__usp-icon { width: 2rem; height: 2rem; }
  .intro__usp-icon svg { width: .9375rem; height: .9375rem; }
  .intro__usp-text { font-size: .8125rem; }
}

/* =============================================================
   6. ПОЧЕМУ PADEL CORE
   ============================================================= */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.fcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 15.5rem;       /* 248px */
  padding: 2rem;
  border-radius: var(--r-block);
  background: var(--blue);
  color: var(--navy);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.fcard:hover {
  transform: translateY(-.375rem);
  box-shadow: 0 1.25rem 2.5rem rgba(11,42,61,.12);
}
.fcard__title {
  font-size: 1.0625rem;      /* 17px */
  font-weight: 700;
  line-height: 1.3;
}
.fcard__text {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--blue-text);
}
.fcard--tall { min-height: 100%; }

/* Карточки «Принцип игры»: иконка + заголовок + текст, сверху вниз */
.fcard--rule { justify-content: flex-start; }
.fcard--rule .fcard__title { margin-top: .875rem; }
.fcard--rule .fcard__text  { margin-top: .375rem; }

.fcard__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg);
  color: var(--blue-text);
}
.fcard__icon svg { width: 1.375rem; height: 1.375rem; }
.fcard__icon--score {
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--lime);
  color: var(--navy);
}

/* Обёртка карточек «Принцип игры» — не влияет на грид (display:contents),
   нужна только как зона для scoped-наведения между карточками. */
.why__rules { display: contents; }

/* Активная карточка (по умолчанию первая) выглядит как CORE START:
   тёмный фон, лаймовые акценты. Вместо мгновенной смены background
   («рывок») — тёмный слой ::before заливает карточку расширяющимся
   кругом из угла, где сидит кнопка: и цвет, и «филе» с кнопкой
   раскрываются из одной точки, как единый жест. */
.fcard--rule {
  position: relative;
  isolation: isolate;         /* ::before (z-index:0) не всплывает над соседними карточками */
  /* карточки принципов игры компактнее обычных .fcard */
  min-height: 0;
  padding: 1.5rem;
}
.fcard--rule .fcard__icon { width: 2.5rem; height: 2.5rem; }
.fcard--rule .fcard__icon svg { width: 1.1875rem; height: 1.1875rem; }
.fcard--rule .fcard__icon--score { font-size: .8125rem; }
.fcard--rule::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--navy);
  clip-path: circle(0% at 92% 8%);
  transition: clip-path .6s var(--ease);
  pointer-events: none;
}
.fcard--rule.fcard--active::before,
.fcard--rule:hover::before {
  clip-path: circle(150% at 92% 8%);
}

/* содержимое карточки — поверх заливки.
   .fcard__notch сюда не входит: у него уже своя position:absolute
   и z-index:3 (см. ниже) — добавление position:relative тут
   перебивало бы absolute более высокой специфичностью и растягивало
   блок на всю ширину карточки. */
.fcard--rule > .fcard__icon,
.fcard--rule > .fcard__title,
.fcard--rule > .fcard__text {
  position: relative;
  z-index: 1;
}

.fcard--rule .fcard__icon,
.fcard--rule .fcard__title,
.fcard--rule .fcard__text {
  transition: background-color .35s var(--ease) .08s,
              color .35s var(--ease) .08s;
}
/* у «Принцип игры» подъём карточки не нужен — эффект даёт заливка
   и выезд «филе», лишнее движение только мешало плавности */
.fcard--rule,
.fcard--rule:hover {
  transform: none;
  box-shadow: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fcard--rule.fcard--active .fcard__icon,
.fcard--rule:hover .fcard__icon {
  background: var(--lime);
  color: var(--navy);
}
.fcard--rule.fcard--active .fcard__title,
.fcard--rule:hover .fcard__title {
  color: var(--lime);
}
.fcard--rule.fcard--active .fcard__text,
.fcard--rule:hover .fcard__text {
  color: rgba(255, 255, 255, .78);
}

@media (hover: hover) {
  /* при наведении на любую другую карточку группы — прежде активная
     возвращается в обычный (светлый) вид, даже не теряя класс active */
  .why__rules:hover .fcard--active:not(:hover)::before {
    clip-path: circle(0% at 92% 8%);
  }
  .why__rules:hover .fcard--active:not(:hover) .fcard__icon {
    background: var(--bg);
    color: var(--blue-text);
    transition-delay: 0s;
  }
  .why__rules:hover .fcard--active:not(:hover) .fcard__title {
    color: var(--navy);
    transition-delay: 0s;
  }
  .why__rules:hover .fcard--active:not(:hover) .fcard__text {
    color: var(--blue-text);
    transition-delay: 0s;
  }
}

/* Вырез под кнопку в правом верхнем углу — форма как у CORE START.
   Появляется «выскакивающим» движением чуть позже самой заливки,
   будто именно она открывает эту кнопку. */
.fcard__notch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 0 0 .75rem .75rem;
  background: var(--bg);
  border-bottom-left-radius: var(--r-notch);
  opacity: 0;
  visibility: hidden;
  transform: scale(.5);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .3s var(--ease),
              transform .45s cubic-bezier(.34, 1.56, .64, 1),
              visibility .45s;
}
.fcard--rule.fcard--active .fcard__notch,
.fcard--rule:hover .fcard__notch {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: .18s;     /* даём заливке чуть опередить кнопку */
}
.fcard__notch-btn {
  min-height: 2.5rem;
  padding-left: 1.125rem;
  font-size: .8125rem;
}
.fcard__notch-btn .btn__icon { width: 2rem; height: 2rem; }
.fcard__notch-btn .btn__icon svg { width: .875rem; height: .875rem; }

@media (hover: hover) {
  .why__rules:hover .fcard--active:not(:hover) .fcard__notch {
    opacity: 0;
    visibility: hidden;
    transform: scale(.5);
    pointer-events: none;
    transition-delay: 0s;     /* прячется сразу, без задержки */
  }
}

/* --- Нижний ряд: CORE START + карточка --- */
.why__bottom {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}

.core {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 15.5rem;
  padding: 2.5rem;
  border-radius: var(--r-block);
  background: var(--navy);
}
.core__title {
  font-size: 2.25rem;        /* 36px */
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lime);
}
.core__text {
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}

/* Вырез под кнопку в правом верхнем углу */
.core__notch {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 0 1rem 1rem;
  background: var(--bg);
  border-bottom-left-radius: var(--r-notch);
}

/* =============================================================
   6b. О КЛУБЕ — карточки, наползающие друг на друга при прокрутке
   ============================================================= */
.stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Каждая карточка «прилипает» чуть ниже предыдущей (--i задаёт номер),
   поэтому при прокрутке они наползают стопкой со ступенькой сверху. */
.stack__card {
  position: sticky;
  top: calc(5rem + var(--i) * 1.25rem);
  min-height: 24rem;
  padding: 3rem;
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
}
.stack__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.stack__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      rgba(7, 32, 47, .30) 0%,
      rgba(7, 32, 47, .62) 45%,
      rgba(7, 32, 47, .92) 100%);
}

.stack__body { max-width: 46rem; }
.stack__num {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime);
}
.stack__title {
  margin-top: .75rem;
  font-size: 2.25rem;        /* 36px */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #c8f24c;
}
.stack__text {
  margin-top: 1rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .84);
}
/* на десктопе показываем полный текст, короткий — только на мобильном */
.stack__text--short { display: none; }

@media (max-width: 1023px) {
  .stack__card { min-height: 20rem; padding: 2.25rem; }
  .stack__title { font-size: 1.875rem; }
}
@media (max-width: 767px) {
  .stack { gap: 1.5rem; }
  .stack__card {
    top: calc(4rem + var(--i) * .75rem);
    min-height: 17rem;
    padding: 1.75rem;
    border-radius: var(--r-block);
  }
  .stack__title { font-size: 1.5rem; }
  .stack__text { margin-top: .75rem; font-size: .875rem; line-height: 1.55; }
  .stack__text--full  { display: none; }
  .stack__text--short { display: block; }
}

/* =============================================================
   7. ФОРМАТЫ ИГРЫ
   ============================================================= */
.formats__track {
  scroll-margin-top: 9rem;   /* «Играть» из шапки ведёт сюда */
  display: flex;
  gap: 1rem;
  height: 29.375rem;         /* 470px */
}

.fmt {
  position: relative;
  flex: 1 1 0;               /* базово все равны */
  min-width: 0;
  border-radius: var(--r-media);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: flex-grow .55s var(--ease);
}
/* активная карточка раскрывается НА МЕСТЕ — соседние ужимаются */
.fmt--wide { flex-grow: 2.4; }

.fmt__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.fmt:hover .fmt__img { transform: scale(1.05); }

/* На устройствах с мышью карточка раскрывается при наведении */
@media (hover: hover) {
  .fmt:hover { flex-grow: 2.4; }
  /* пока курсор в треке — раскрыта именно наведённая, выбранная ужимается */
  .formats__track:hover .fmt--wide:not(:hover) { flex-grow: 1; }

  .fmt:hover .fmt__label { opacity: 0; pointer-events: none; }
  .fmt:hover .fmt__panel { opacity: 1; transform: none; pointer-events: auto; }
  .fmt:hover .fmt__arrow {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  /* пока курсор на другой карточке, выбранная ужимается — панель и кнопку
     с неё убираем сразу, иначе текст «расползается» по узкой карточке */
  .formats__track:hover .fmt--wide:not(:hover) .fmt__panel,
  .formats__track:hover .fmt--wide:not(:hover) .fmt__arrow {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s;
  }
  .formats__track:hover .fmt--wide:not(:hover) .fmt__label { opacity: 1; }
}

.fmt__label {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lime);
  z-index: 2;
  transition: opacity var(--dur) var(--ease);
}
.fmt--wide .fmt__label { opacity: 0; pointer-events: none; }

/* Широкая карточка с белой панелью и вырезами */
.fmt__panel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68%;
  padding: 1.375rem 1.75rem 1.375rem 1.5rem;
  background: var(--bg);
  border-top-right-radius: var(--r-notch);
  z-index: 2;
  opacity: 0;
  transform: translateY(.5rem);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* появляется с задержкой — карточка успевает раскрыться, и панель не
   мелькает на ещё узкой карточке; прячется сразу */
.fmt--wide .fmt__panel,
.fmt:hover .fmt__panel { transition-delay: .18s; }
.fmt--wide .fmt__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fmt__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}

.fmt__text {
  margin-top: .5rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: #4d6a7e;
  /* страховка от «простыни» в момент перестроения карточек */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
/* короткий вариант — только для мобильного (включается в медиа 767) */
.fmt__text--short { display: none; }
.fmt__arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transform: scale(.85);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.fmt--wide .fmt__arrow {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* стрелка-действие: лаймовая «пилюля» с подписью и круглой иконкой.
   Класс .round-btn намеренно снят с кнопки — его width:3rem обрезал подпись */
.fmt__arrow {
  width: auto;
  height: 2.75rem;
  background: var(--lime);
  color: var(--navy);
  max-width: calc(100% - 2rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur), background-color var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: 0 .375rem 0 1rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.fmt__arrow-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  transition: transform var(--dur) var(--ease);
}
.fmt__arrow svg { width: .875rem; height: .875rem; }
.fmt--wide .fmt__arrow:hover { background: #d6ff5e; transform: translateY(-2px); }
.fmt--wide .fmt__arrow:hover .fmt__arrow-icon { transform: rotate(45deg); }
.fmt--wide .fmt__arrow:active { background: #b7e03c; transform: translateY(0); }

/* =============================================================
   7b. ВЫБЕРИ СВОЙ ФОРМАТ ИГРЫ — прайс
   ============================================================= */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

/* Карточка формата/цены */
.pcard {
  position: relative;
  height: 26rem;             /* 416px */
  border-radius: var(--r-media);
  overflow: hidden;
  isolation: isolate;
}
.pcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.pcard:hover .pcard__img { transform: scale(1.05); }
.pcard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(7, 32, 47, .05) 30%,
      rgba(7, 32, 47, .78) 100%);
}
.pcard__arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
}
.pcard__body {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
}
.pcard__title {
  font-size: 1.375rem;       /* 22px */
  font-weight: 700;
  line-height: 1.15;
  color: var(--lime);
}
.pcard__text {
  margin-top: .625rem;
  font-size: .9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}

/* Клубная карта — во всю ширину */
.club {
  position: relative;
  margin-top: var(--gap);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  /* якорь навигации ведёт прямо сюда (#club-card), а не к родительской
     .section — scroll-margin-top у секции этот вложенный элемент
     не подхватывает, задаём его отдельно, иначе карточка пряталась
     под плавающей шапкой */
  scroll-margin-top: 6.5rem;
}
.club__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.club__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(7, 32, 47, .95) 0%,
      rgba(7, 32, 47, .9) 42%,
      rgba(7, 32, 47, .6) 100%);
}
.club__body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 3.5rem;
}
.club__content { flex: 1 1 auto; max-width: 46rem; }

/* Форма заявки прямо в баннере — отдельно открывать модалку не нужно */
.club__form {
  flex: none;
  width: 23rem;
  padding: 1.75rem;
  border-radius: var(--r-block);
  background: var(--bg);
  box-shadow: 0 1.5rem 3rem rgba(7, 32, 47, .35);
}
.club__form-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}
.club__form-note {
  margin-top: .5rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: #4d6a7e;
}
.inline-form {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-top: 1.25rem;
}
.inline-form__submit { justify-content: center; }
.inline-form__policy {
  font-size: .6875rem;
  line-height: 1.4;
  color: #7c94a5;
}
.inline-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
  margin-top: 1.5rem;
  text-align: center;
}
.inline-form__check {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
}
.inline-form__success-text {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--navy);
}
.club__badge {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.club__title {
  margin-top: 1.25rem;
  font-size: 2.5rem;         /* 40px */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--white);
}
.club__lead {
  margin-top: .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lime);
}
.club__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .875rem 2rem;
  margin-top: 2rem;
}
.club__item {
  position: relative;
  padding-left: 1.75rem;
  font-size: .9375rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .9);
}
.club__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 1rem;
  height: 2px;
  background: var(--lime);
}
/* кнопка — только в адаптиве, на десктопе её роль играет форма справа */
.club__btn { display: none; margin-top: 2.25rem; }

@media (max-width: 1023px) {
  .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club__body { padding: 2.5rem; gap: 2rem; }
  .club__form { width: 20rem; padding: 1.5rem; }
  .club__title { font-size: 2rem; }
}
@media (max-width: 767px) {
  .pricing__grid { grid-template-columns: minmax(0, 1fr); }
  .pcard { height: 20rem; }
  .club__scrim {
    background: linear-gradient(180deg, rgba(7, 32, 47, .5) 0%, rgba(7, 32, 47, .92) 70%);
  }
  .club__body { flex-direction: column; padding: 1.75rem; }
  .club__content { max-width: none; }
  .club__form { display: none; }
  .club__btn { display: inline-flex; }
  .club__title { font-size: 1.625rem; }
  .club__lead { font-size: 1rem; }
  .club__list { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

/* =============================================================
   9. ИНФРАСТРУКТУРА
   ============================================================= */
.infra__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: start;
}

.infra__list {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  padding-top: .5rem;
}
.infra__item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  font-size: 1.375rem;       /* 22px */
  font-weight: 400;
  color: var(--blue-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.infra__dash {
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}
.infra__label { line-height: 1.25; }

.infra__item:hover,
.infra__item.is-active {
  color: var(--accent);
  font-weight: 500;
}
.infra__item:hover .infra__dash,
.infra__item.is-active .infra__dash { height: 2px; }

/* Изображение с вырезом в левом верхнем углу */
.infra__media {
  --nw: 7rem;                /* ширина выреза */
  --nh: 3.75rem;             /* высота выреза */
  position: relative;
  width: 100%;
  max-width: 44rem;          /* 704px */
  margin-left: auto;
}
.infra__img {
  display: block;
  width: 100%;
  height: 31rem;             /* 496px */
  object-fit: cover;
  border-radius: var(--r-media);
  -webkit-mask-image:
      linear-gradient(#000, #000),
      linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  -webkit-mask-size: 100% 100%, var(--nw) var(--nh);
          mask-size: 100% 100%, var(--nw) var(--nh);
  -webkit-mask-position: 0 0, 0 0;
          mask-position: 0 0, 0 0;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: opacity .25s var(--ease);
}
.notch-corner--infra-r {
  --cx: 100%; --cy: 100%;
  top: 0;
  left: var(--nw);
}
.notch-corner--infra-b {
  --cx: 100%; --cy: 100%;
  top: var(--nh);
  left: 0;
}

/* =============================================================
   10. ТРЕНЕРЫ
   ============================================================= */
.coaches__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.coach-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  min-height: 26rem;         /* 416px */
  padding: 1.25rem;
  border-radius: var(--r-block);
  background: var(--navy);
}
.coach-main__notch {
  position: absolute;
  top: 0;
  right: 0;
  /* выше слоёв карусельной смены фото (они создаются с z-index: 2):
     вырез идёт первым в DOM, без z-index его перекрывал бы любой
     абсолютный элемент, отрисованный позже */
  z-index: 5;
  /* на 1px перекрываем верх и правый край карточки: иначе на стыке
     остаётся тонкая тёмная линия от скруглённого угла .coach-main */
  margin: -1px -1px 0 0;
  padding: 1px 1px 1rem 1rem;
  background: var(--bg);
  border-bottom-left-radius: var(--r-notch);
}
/* «филе» выреза перекрываем на 1px — иначе на стыке маски и подложки
   виден светлый волосок (округление субпикселей) */
.coach-main__notch .notch-corner--left {
  width: calc(var(--r) + 1px);       /* центр окружности не смещается */
}
.coach-main__notch .notch-corner--bottom {
  top: calc(100% - 1px);
  height: calc(var(--r) + 1px);
}
.coach-main__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 23.5rem;
  object-fit: cover;
  border-radius: var(--r-media);
}
.coach-main__info {
  align-self: end;
  padding: 0 1rem 1.5rem 0;
}
.coach-main__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.coach-main__role {
  margin-top: .25rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
}
.coach-main__text {
  margin-top: 1.125rem;
  font-size: .875rem;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}

.coaches__side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.coaches__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.coach {
  position: relative;
  display: none;
  border-radius: var(--r-media);
  overflow: hidden;
  cursor: pointer;
}
.coach.is-visible {
  display: block;
}

@media (max-width: 479px) {
  .coaches__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.coach__img {
  display: block;
  width: 100%;
  height: 21.5rem;           /* 344px */
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.coach:hover .coach__img { transform: scale(1.05); }
.coach__name {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lime);
}


.coaches__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}
.coaches__note {
  max-width: 24rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--navy);
  text-align: left;
}

/* =============================================================
   10b. РАБОТА У НАС — плейсхолдер, ждём текст и оформление от заказчика
   ============================================================= */
.careers__card {
  padding: 3rem;
  border-radius: var(--r-block);
  background: var(--blue);
  text-align: center;
}
.careers__title { margin-bottom: 1rem; }
.careers__text {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--blue-text);
}
.careers__btn { margin-top: 1.75rem; }

@media (max-width: 767px) {
  .careers__card { padding: 2rem 1.5rem; }
}

/* =============================================================
   11. CTA
   ============================================================= */
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.cta__col { padding-block: 1rem; }
.cta__text {
  margin-top: -1rem;
  margin-bottom: 1.75rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--navy);
}
.cta__btn { align-self: flex-start; }
.cta__img {
  display: block;
  width: 100%;
  height: 25rem;
  object-fit: cover;
  border-radius: var(--r-media);
  transition: transform var(--dur) var(--ease);
}
.cta__img:hover { transform: scale(1.01); }

/* =============================================================
   12. FOOTER
   ============================================================= */
.footer { padding-top: 3rem; }

.footer__inner {
  padding: 3.5rem 3.5rem 0;
  border-radius: var(--r-card);
  background: var(--lime);
  color: var(--navy);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer__logo {
  display: inline-block;
}
.footer__logo img {
  display: block;
  height: 2.25rem;
  width: auto;
}
.footer__tagline {
  margin-top: .875rem;
  font-size: .875rem;
  line-height: 1.5;
}
.footer__copy {
  margin-top: 3.5rem;
  font-size: .8125rem;
  opacity: .75;
}

.footer__heading {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: .875rem;
}
.footer__heading--gap { margin-top: 1.75rem; }

.footer__list {
  display: flex;
  flex-direction: column;
  gap: .4375rem;
  font-size: .875rem;
  line-height: 1.4;
}
.footer__link { transition: opacity var(--dur) var(--ease); }
.footer__link:hover { opacity: .6; text-decoration: underline; }

.footer__note {
  font-size: .875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.socials { display: flex; gap: .625rem; }
.socials__link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.socials__link svg { width: 1.125rem; height: 1.125rem; }
.socials__link:hover { transform: translateY(-3px); background: var(--navy-deep); }

/* --- Карта расположения клуба -------------------------------
   Реальная карта (Яндекс) в iframe. CSS-фильтр обесцвечивает её
   до серой, чтобы не спорить с палитрой; акценты — лаймовая
   рамка-обводка и карточка с адресом поверх.                    */
.fmap { padding-bottom: 3rem; }

.fmap__canvas {
  position: relative;
  border-radius: var(--r-block);
  overflow: hidden;
  background: #e7eaed;
  box-shadow: inset 0 0 0 2px var(--lime);
}
.fmap__frame {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
  /* серая карта: обесцвечиваем и слегка осветляем */
  filter: grayscale(1) contrast(.92) brightness(1.04);
}

/* Карточка с адресом поверх карты */
.fmap__card {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  max-width: 19rem;
  padding: 1.5rem;
  border-radius: var(--r-media);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1rem 2.5rem rgba(7, 32, 47, .35);
}
.fmap__eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
}
.fmap__address {
  margin-top: .625rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.fmap__hours {
  margin-top: .5rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
}
.fmap__btn { margin-top: 1.25rem; }

@media (max-width: 767px) {
  .fmap { padding-bottom: 2rem; }
  .fmap__frame { height: 16rem; }
  .fmap__card {
    position: static;
    max-width: none;
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: none;
  }
  .fmap__btn { width: 100%; justify-content: space-between; }
}

/* Гигантский вордмарк — SVG, всегда точно по ширине контейнера */
.footer__wordmark {
  display: block;
  width: 100%;
  margin-bottom: -.5%;
}
.footer__wordmark text {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -.02em;
  fill: var(--navy);
}

/* =============================================================
   13. АДАПТИВ
   ============================================================= */

/* 1280–2000: пропорциональное масштабирование всей композиции */
@media (min-width: 1280px) { html { font-size: 1vw; } }
@media (min-width: 2000px) { html { font-size: 20px; } }

/* 1800 */
@media (max-width: 1800px) {
  .hero__title { font-size: 6.75rem; }
}

/* 1600 */
@media (max-width: 1600px) {
  .nav { padding-inline: 1.5rem; }
  .nav__list { gap: 1.25rem; }
  .nav__link { font-size: .9375rem; }
  .hero__contacts { padding-left: 1.5rem; }
}

/* 1440 */
@media (max-width: 1440px) {
  :root { --gutter: 2rem; }
  .hero { --bite-h: 6.25rem; }
  .hero__overlay,
  .hero__text { left: 4.5rem; }
  .hero__title { font-size: 6rem; }
  .nav { padding-inline: 1.25rem; }
  .nav__list { gap: 1rem; }
  .nav__link { font-size: .9375rem; }
  .hero__contacts { padding-left: 1.25rem; }
  .hero__phone { font-size: .9375rem; }
  .hero__address, .hero__hours { font-size: .75rem; }
  .hero__socials { gap: .375rem; }
  .hero__social-link { width: 2rem; height: 2rem; }
  .hero__social-link svg { width: .875rem; height: .875rem; }
  .hero__bite--book { gap: 1rem; padding-right: 2rem; }
}

/* 1280 */
@media (max-width: 1280px) {
  .section__title { font-size: 3.25rem; }
  .nav { padding-inline: .875rem; }
  .nav__list { gap: .875rem; }
  .nav__link { font-size: .9375rem; }
  .hero__bite--logo { padding: 0 1.5rem 0 2rem; }
  .hero__bite--book { padding-right: 1.5rem; gap: .875rem; }
  .hero__contacts { padding-left: 1rem; }
  .hero__phone { font-size: .875rem; }
  .hero__address, .hero__hours { font-size: .6875rem; }
  .hero__socials { gap: .3125rem; }
  .hero__social-link { width: 1.875rem; height: 1.875rem; }
}

/* 1024 — перестроение сеток */
@media (max-width: 1279px) {
  html { font-size: 14px; }

  .hero__title { font-size: 5rem; }
  .hero__subtitle { font-size: 1.375rem; }
  .hero__text { font-size: 1.0625rem; }
  .hero .btn { font-size: .9375rem; min-height: 3rem; padding-left: 1.25rem; }
  .hero .btn__icon { width: 2.5rem; height: 2.5rem; }
  .nav { padding-inline: 1.25rem; }
  .nav__list { gap: 1.125rem; }
  .nav__link { font-size: .9375rem; }
  .hero__bite--logo { padding: 0 1.25rem 0 1.75rem; }
  .hero__bite--book { padding-right: 1.5rem; gap: 1.125rem; }
  .hero__contacts { display: none; }

  .formats__track { height: 26rem; }
  .formats__track .fmt:last-child { display: none; }
  .fmt--wide { flex-grow: 2.2; }

  .coaches__grid { grid-template-columns: minmax(0, 1fr); }
  .coach-main__img { min-height: 20rem; }
}

@media (max-width: 1023px) {
  html { font-size: 15px; }

  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: calc(var(--bite-h) + .75rem);
    left: 1rem;
    right: 1rem;
    z-index: 20;
    padding: 1.125rem 1.25rem;
    border-radius: var(--r-block);
    background: var(--navy-deep);
  }
  .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  /* тач-таргет пункта меню был ~20px (только высота строки текста) —
     добавляем вертикальный паддинг, чтобы попадать пальцем было удобно */
  .nav.is-open .nav__link { display: block; padding: .5rem 0; }
  .burger { display: block; }
  .hero__bite--book { display: none; }

  .hero { --bite-h: 5.25rem; --bite-h-b: 6rem; }
  .hero__card { height: clamp(34rem, calc(100svh - 2rem), 52rem); }
  .hero .btn { font-size: 1rem; min-height: 3rem; }
  .hero .btn__icon { width: 2.5rem; height: 2.5rem; }
  .hero__overlay { left: 3rem; top: 30%; }
  .hero__text { left: 3rem; bottom: 4rem; }
  .hero__title { font-size: 4.25rem; }
  .hero__bite--logo { padding: 0 1.5rem 0 2rem; }

  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__bottom { grid-template-columns: minmax(0, 1fr); }
  .fcard--tall { min-height: 12rem; }

  /* планшет: плитка 2×2, карточки НЕ расширяются, активная просто
     показывает панель поверх своего фото */
  /* карточки идут колонкой — стрелки после заголовка ничего не листают */
  .arrows[data-slider="formats"] { display: none; }
  .formats__track { flex-wrap: wrap; height: auto; }
  .formats__track .fmt { flex: 1 1 45%; height: 22rem; }
  .formats__track .fmt:last-child { display: block; }
  .formats__track .fmt,
  .formats__track .fmt--wide,
  .formats__track .fmt:hover { flex-grow: 1; }

  .infra__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .infra__media { max-width: 100%; margin-left: 0; }

  .cta__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .footer__inner { padding: 2.5rem 2rem 0; }
  .footer__copy { margin-top: 2rem; }
}

/* 768 */
@media (max-width: 767px) {
  :root { --gutter: 1rem; --r-card: 1.75rem; --r-block: 1.375rem; --r-media: 1.125rem; --r-notch: 1.125rem; }

  .section { padding-block: 3rem; }
  .section__title { font-size: 2.25rem; margin-bottom: 1.75rem; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }

  .hero { padding-top: 1rem; }
  .hero { --bite-h: 5.25rem; --bite-h-b: 5rem; }
  .hero__card { height: clamp(30rem, calc(100svh - 2rem), 44rem); }
  .hero__logo img { height: 2.5rem; }

  /* На мобильном телефон и адрес всё равно нужны — показываем их
     компактно слева от бургера, без кнопки «Играть» и соцсетей
     (они уже есть ниже по странице и не помещаются в узкую шапку). */
  .hero__contacts {
    display: flex;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    margin-right: 1.75rem;   /* отступ от кнопки меню */
    padding-left: 0;
    gap: .0625rem;
  }
  .hero__phone { font-size: .8125rem; }
  .hero__address { max-width: none; font-size: .625rem; white-space: nowrap; }
  .hero__hours { margin-top: 0; font-size: .625rem; }
  /* контакты уже забирают всё свободное место своим margin-left:auto —
     у бургера его нужно убрать, иначе оба auto-отступа поделят
     пространство пополам и бургер уедет ещё правее с разрывом */
  .hero__top .burger { margin-left: 0; }

  .hero__title { font-size: 3rem; }
  .hero__subtitle { font-size: 1.125rem; }
  .hero__overlay { left: 1.75rem; right: 1.75rem; top: 28%; }
  /* текст прижимался к правому краю карточки и перекрывался кнопкой —
     задаём правый отступ и поднимаем над кнопкой */
  .hero__text {
    left: 1.75rem;
    right: 1.75rem;
    bottom: 6.25rem;
    font-size: .9375rem;
  }
  .hero__text br { display: none; }
  /* белая подложка под кнопкой давала «обводку»: её прямые нижние углы
     торчали за скруглённые углы фото. На мобильном кнопка ложится прямо
     на фото — без подложки и без наезда на текст */
  .hero__bite--trial {
    left: 0;
    right: 0;
    height: auto;
    padding: 0 1.25rem 1.25rem;
    background: none;
    border-radius: 0;
    justify-content: center;
  }
  .hero__bite--trial .notch-corner { display: none; }
  /* кнопка записи была слишком незаметной — делаем лаймовой и крупнее */
  .hero__bite--trial .btn {
    width: 100%;
    justify-content: space-between;
    min-height: 3.75rem;
    font-size: 1.0625rem;
    padding-left: 1.5rem;
    background: var(--lime);
    color: var(--navy);
  }
  .hero__bite--trial .btn .btn__icon {
    width: 3rem;
    height: 3rem;
    background: var(--navy);
    color: var(--lime);
  }
  .hero__bite--trial .btn .btn__icon svg { width: 1.125rem; height: 1.125rem; }
  .hero__bite--trial .btn:hover  { background: #d6ff5e; }
  .hero__bite--trial .btn:active { background: #b7e03c; }

  /* кадрируем фото так, чтобы в узкий экран попадала нужная часть */
  .hero__img { object-position: -400px; }

  .hero__subtitle { font-size: .9375rem; }

  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .core { padding: 1.75rem; }
  .core__notch { padding: 0 0 .75rem .75rem; }
  .core__title { font-size: 1.875rem; }

  .formats__track .fmt { flex: 1 1 100%; height: 18rem; }
  /* на мобильном у «Аренды корта» короткий вариант текста */
  .fmt__text--full  { display: none; }
  .fmt__text--short { display: block; }
  /* панель была слишком широкой — текст всё равно занимал левую часть */
  .fmt__panel { width: 68%; padding: 1.125rem 1.25rem; }
  /* стрелка уходит в свободный верхний правый угол, чтобы не наезжать
     на панель, которая растёт снизу-слева */
  .fmt__arrow { top: 1rem; right: 1rem; bottom: auto; }

  .infra__item { font-size: 1.125rem; }
  .infra__img { height: 20rem; }

  .coach-main { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .coach-main__img { min-height: 16rem; }
  .coach-main__info { padding: 0 .5rem 1rem; }
  .coaches__foot { flex-direction: column; gap: 1.25rem; }

  /* стрелки выносим по бокам фото главной карточки — листать удобнее,
     чем тянуться к паре кнопок под блоком (JS переносит их внутрь
     .coach-main, см. initCoaches) */
  .coach-main > .arrows[data-slider="coaches"] {
    position: absolute;
    top: 7.75rem;              /* по центру фото: 1.25rem паддинг + 8rem */
    left: 1.25rem;
    right: 1.25rem;
    z-index: 4;
    justify-content: space-between;
    pointer-events: none;      /* клики ловят только сами кнопки */
  }
  .coach-main > .arrows[data-slider="coaches"] .arrows__btn {
    pointer-events: auto;
    box-shadow: 0 .375rem 1rem rgba(7, 32, 47, .45);
  }

  .cta__img { height: 16rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* 480 */
@media (max-width: 479px) {
  html { font-size: 14px; }
  :root { --r-notch: .875rem; }

  .hero__logo img { height: 2.125rem; }
  .hero__title { font-size: 6.375rem; }
  .hero__overlay { top: 26%; }
  .btn { font-size: .875rem; padding-left: 1.125rem; }
  .btn__icon { width: 2.25rem; height: 2.25rem; }
  .fmt__panel { width: 74%; padding: 1rem; }
  .core { padding: 1.25rem; }
}

/* =============================================================
   14. УВЕДОМЛЕНИЕ ОБ ОТКРЫТИИ
   ============================================================= */
.opening-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.opening-modal.is-open { visibility: visible; opacity: 1; }

.opening-modal__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 32, 47, .68);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.opening-modal__dialog {
  position: relative;
  isolation: isolate;
  width: min(100%, 35rem);
  overflow: hidden;
  padding: 2.75rem;
  border-radius: 2.25rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2.5rem 6rem rgba(7, 32, 47, .48);
  transform: translateY(1.75rem) scale(.97);
  transition: transform .45s var(--ease);
}
.opening-modal.is-open .opening-modal__dialog { transform: none; }

.opening-modal__dialog::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 22rem;
  height: 22rem;
  top: -11rem;
  right: -8rem;
  border-radius: 50%;
  background: var(--lime);
  opacity: .95;
}
.opening-modal__dialog::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 12rem;
  height: 12rem;
  right: 1.25rem;
  bottom: -7.5rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.opening-modal__close {
  position: absolute;
  z-index: 2;
  top: 1.15rem;
  right: 1.15rem;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  color: var(--navy);
  background: var(--lime);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.opening-modal__close:hover { transform: rotate(90deg); background: #d6ff5e; }

.opening-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.opening-modal__month {
  margin-top: 1.4rem;
  font-size: clamp(5.5rem, 17vw, 8.5rem);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.08em;
  color: var(--lime);
}

.opening-modal__title {
  max-width: 27rem;
  margin-top: 1.65rem;
  font-size: clamp(2rem, 5.4vw, 3.25rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
.opening-modal__title span { color: var(--lime); }

.opening-modal__text {
  max-width: 28rem;
  margin-top: 1.15rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,.74);
}

.opening-modal__button {
  width: 100%;
  justify-content: space-between;
  margin-top: 2rem;
}

@media (max-width: 479px) {
  .opening-modal { padding: .85rem; }
  .opening-modal__dialog { padding: 2rem 1.4rem 1.4rem; border-radius: 1.65rem; }
  .opening-modal__dialog::before { width: 16rem; height: 16rem; top: -9rem; right: -7rem; }
  .opening-modal__eyebrow { margin-top: .15rem; }
  .opening-modal__month { margin-top: 1.25rem; }
  .opening-modal__title { margin-top: 1.35rem; }
  .opening-modal__text { font-size: .9375rem; }
}

/* =============================================================
   15. МОДАЛЬНАЯ ФОРМА ЗАПИСИ
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.is-open { visibility: visible; opacity: 1; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 32, 47, .55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 30rem;          /* 480px */
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding: 2.5rem;
  border-radius: var(--r-block);
  background: var(--bg);
  box-shadow: 0 2rem 5rem rgba(7, 32, 47, .35);
  transform: translateY(1.5rem) scale(.98);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(11, 42, 61, .07);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.modal__close:hover { background: rgba(11, 42, 61, .14); transform: rotate(90deg); }

.modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  padding-right: 2rem;
}
.modal__subtitle {
  margin-top: .75rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: #4d6a7e;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}
.field { display: flex; flex-direction: column; gap: .4375rem; }
.field__label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
}
.field__input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid #dbe6ee;
  border-radius: .875rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
          appearance: none;
}
.field__input::placeholder { color: #9db3c2; }
.field__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 42, 61, .1);
}
.field__input.is-invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(223, 105, 69, .12); }

/* Стрелка у select */
.field__select { position: relative; display: block; }
.field__select::after {
  content: "";
  position: absolute;
  right: 1.125rem;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__select .field__input { padding-right: 2.5rem; cursor: pointer; }

.modal__submit { justify-content: center; margin-top: .5rem; }
.modal__note {
  font-size: .75rem;
  line-height: 1.45;
  color: #8aa1b1;
  text-align: center;
}

/* Экран «успех» */
.modal__success { text-align: center; padding: 1rem 0; }
.modal__check {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
}
.modal__success-title { font-size: 1.5rem; font-weight: 700; }
.modal__success-text {
  margin-top: .625rem;
  margin-bottom: 1.75rem;
  font-size: .9375rem;
  color: #4d6a7e;
}
.modal__success .btn { justify-content: center; width: 100%; }

body.modal-open { overflow: hidden; }

@media (max-width: 479px) {
  .modal__dialog { padding: 1.75rem 1.25rem; }
  .modal__title { font-size: 1.5rem; }
}

/* =============================================================
   16. СВАЙП-ЗОНЫ (плавное листание карточек)
   ============================================================= */
/* pan-y — вертикальный скролл страницы остаётся, горизонтальный
   жест обрабатывает JS; отключаем выделение текста при драге. */
.is-swipe {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.is-swipe:active { cursor: grabbing; }

/* На время листания прячем переполнение, чтобы «морфящие»
   карточки не давали лишний горизонтальный скролл. */
.formats__track { will-change: transform; }

/* =============================================================
   15. АДАПТИВ
   ============================================================= */

/* Доступность: уважаем настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   9. СОГЛАСИЕ НА ОБРАБОТКУ ПД И COOKIE-БАННЕР
   ============================================================ */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  cursor: pointer;
}
.field-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.field-check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .0625rem;
  border: 1.5px solid #c2ced6;
  border-radius: .375rem;
  background: #fff;
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.field-check__box svg { width: .75rem; height: .75rem; opacity: 0; transition: opacity var(--dur) var(--ease); }
.field-check__input:checked + .field-check__box { background: var(--lime); border-color: var(--lime); }
.field-check__input:checked + .field-check__box svg { opacity: 1; }
.field-check__input:focus-visible + .field-check__box { outline: 2px solid var(--navy); outline-offset: 2px; }
.field-check__text {
  font-size: .75rem;
  line-height: 1.45;
  color: #4d6a7e;
}
.field-check__text a { color: var(--navy); text-decoration: underline; }
.field-check.is-invalid .field-check__box { border-color: var(--accent); }

.cookie {
  position: fixed;
  z-index: 90;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-block);
  background: var(--navy);
  box-shadow: 0 1.5rem 3rem rgba(7, 32, 47, .35);
  transform: translateY(1rem);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie__text {
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}
.cookie__text a { color: var(--lime); text-decoration: underline; }
.cookie__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: .875rem;
}
.cookie__btn { min-height: 2.75rem; padding: 0 1.5rem; }
.cookie__decline {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .6);
  text-decoration: underline;
  transition: color var(--dur) var(--ease);
}
.cookie__decline:hover { color: #fff; }

@media (max-width: 767px) {
  .cookie {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.125rem;
  }
  .cookie__actions { justify-content: space-between; }
}

/* ============================================================
   10. СТРАНИЦА ПОЛИТИКИ
   ============================================================ */
.legal { padding: 8rem 0 5rem; }
.legal__inner { max-width: 52rem; margin: 0 auto; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}
.legal__back svg { width: 1rem; height: 1rem; }
.legal__title { font-size: 2.5rem; line-height: 1.1; color: var(--navy); }
.legal__date { margin-top: .75rem; font-size: .875rem; color: #6b8296; }
.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--navy);
}
.legal h3 { margin-top: 1.75rem; font-size: 1.0625rem; color: var(--navy); }
.legal p, .legal li {
  margin-top: .875rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: #3d5a6e;
}
.legal ul, .legal ol { margin-top: .5rem; padding-left: 1.25rem; list-style: revert; }
.legal li::marker { color: var(--lime); }
.legal li { margin-top: .5rem; }
.legal a { color: var(--navy); text-decoration: underline; }
.legal__fill { background: #fff6d6; padding: 0 .25rem; border-radius: .25rem; }

.footer__legal {
  margin-top: 1rem;
  font-size: .75rem;
  line-height: 1.55;
  color: rgba(11, 42, 61, .62);
}
.footer__legal--muted { margin-top: .625rem; color: rgba(11, 42, 61, .45); }

@media (max-width: 767px) {
  .legal { padding: 6rem 0 3rem; }
  .legal__title { font-size: 1.75rem; }
  .legal h2 { font-size: 1.125rem; }
}
