/* Pro Движение. Основа — её картинка расписания: пудрово-голубой и пыльная роза, Cormorant в заголовках.
   Ритм: светлые секции чередуются с закруглёнными «листами» (голубой, розовый, белый), подвал — глубокий синий.
   Движение одно на загрузку (название въезжает, фото открывается) и в ответ на действия: день, тренер, правило, запись. */

@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(/fonts/jost-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(/fonts/jost-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url(/fonts/jost-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url(/fonts/jost-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-weight: 300; font-display: swap; src: url(/fonts/cormorant-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 300; font-display: swap; src: url(/fonts/cormorant-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --powder: #E7EEF3;     /* основной фон — её пудрово-голубой */
  --sky: #D3E1EA;        /* лист расписания */
  --blush: #F0DFDB;      /* лист цен — её пыльная роза, светлая */
  --paper: #FBFCFD;      /* карточки, лист правил */
  --rose: #A9706A;       /* крупные заголовки (от 24 px) */
  --rose-ink: #8E5049;   /* кнопки, ссылки, «мест нет» */
  --rose-soft: #E8BDB6;  /* роза на тёмном */
  --ink: #1E2D39;        /* текст и подвал — глубокий сине-серый */
  --slate: #4E5F6C;      /* второстепенный текст */
  --line: #C2D2DD;
  --display: "Cormorant", "Times New Roman", serif;
  --text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --r-s: 14px; --r-m: 20px; --r-l: 28px; --r-xl: 36px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.12);  /* лёгкий перелёт — как каретка на пружинах */
  --topbar: 60px;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--powder); color: var(--ink); font: 400 17px/1.55 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--rose-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 12px; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* --- кнопки --- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--rose-ink); color: #fff; font: 500 16px/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.button:hover { background: var(--ink); color: #fff; }
.button:active { transform: scale(.98); }
.button[disabled] { opacity: .55; cursor: default; }
.button.compact { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(30, 45, 57, .35); }
.button.ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.button.quiet { background: transparent; color: var(--rose-ink); box-shadow: inset 0 0 0 1.5px var(--rose-ink); }
.button.quiet:hover { background: var(--rose-ink); color: #fff; }
.text-btn { padding: 6px 0; border: 0; background: none; color: var(--rose-ink); font: 500 15px/1.3 var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }

/* --- плашка демо и подсказка --- */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 14px; padding: 8px var(--gutter); background: var(--ink); color: var(--sky); font-size: 14px; text-align: center; }
.demo-bar p { margin: 0; }
.try summary { cursor: pointer; color: var(--rose-soft); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.try summary::-webkit-details-marker { display: none; }
.try[open] { flex-basis: 100%; }
.try ol { max-width: 620px; margin: 10px auto 6px; padding-left: 22px; text-align: left; line-height: 1.5; }
.try li { margin: 4px 0; }
.try a { color: var(--rose-soft); }

/* --- верхняя панель --- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(231, 238, 243, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .25s; }
.topbar.is-stuck { box-shadow: 0 1px 0 var(--line); }
.topbar-in { max-width: 1200px; height: var(--topbar); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { font: 500 19px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand:hover { color: var(--rose-ink); }
@media (max-width: 380px) { .topbar .brand { letter-spacing: .06em; } }  /* «ПРОДВИЖЕНИЕ» кириллицей шире — 360 px без прокрутки вбок */
.nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 8px var(--gutter) 20px; background: var(--powder); box-shadow: 0 18px 30px -18px rgba(30, 45, 57, .35); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.topbar.is-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
.nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 300 28px/1.1 var(--display); text-decoration: none; }
.nav a[aria-current="true"] { color: var(--rose-ink); }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.topbar.is-open .menu-icon { background: transparent; }
.topbar.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.topbar.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* --- первый экран --- */
.hero { max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter) 56px; display: grid; gap: 28px; }
.hero-title { font: 300 calc(clamp(56px, 20.5vw, 168px) * var(--fit, 1))/.84 var(--display); color: var(--rose); letter-spacing: -.015em; margin: 0 0 22px; }
.ht-line { display: block; white-space: nowrap; }
.ht-line > span { display: inline-block; animation: glide .95s var(--spring) both; animation-delay: calc(var(--i) * 42ms + var(--d, 0ms)); }
.ht-line + .ht-line { --d: 160ms; }
@keyframes glide { from { opacity: 0; transform: translateX(-.42em); } to { opacity: 1; transform: none; } }
.lead { font-size: 18px; line-height: 1.5; max-width: 38ch; margin-bottom: 24px; animation: rise .7s var(--ease) .55s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; animation: rise .7s var(--ease) .65s both; }
.hero-where { margin: 22px 0 0; color: var(--slate); font-size: 15px; animation: rise .7s var(--ease) .75s both; }
.hero-where a { display: inline-flex; align-items: center; min-height: 44px; }  /* 44 px (C6) */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-media { position: relative; }
.hero-frame { overflow: hidden; border-radius: var(--r-l); animation: unveil 1.15s cubic-bezier(.65, 0, .2, 1) .1s both; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round var(--r-l)); } to { clip-path: inset(0 0 0 0 round var(--r-l)); } }
.next { position: relative; margin: -40px 16px 0; padding: 16px 16px 12px; background: var(--paper); border-radius: var(--r-m); box-shadow: 0 24px 48px -28px rgba(30, 45, 57, .45); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.next.is-waiting { opacity: 0; transform: translateY(18px); }
.next-title { font: 500 14px/1.3 var(--text); color: var(--slate); margin-bottom: 6px; }
.next-row { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 10px; padding: 10px 0; border: 0; border-top: 1px solid rgba(194, 210, 221, .6); background: none; text-align: left; cursor: pointer; }
.next-row:first-of-type { border-top: 0; }
.next-row .t { font: 500 24px/1 var(--display); }
.next-row .n { font-weight: 500; font-size: 15px; line-height: 1.3; }
.next-row .s { font-size: 13px; color: var(--slate); white-space: nowrap; }
.next-row.few .s { color: var(--rose-ink); font-weight: 500; }
.next-row:hover .n { color: var(--rose-ink); }
.next-all { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 500; }

/* --- секции и листы --- */
.section { padding: 64px 0; }
.band { margin: 0 8px; padding: 64px 0; border-radius: var(--r-xl); }
.band-sky { background: var(--sky); }
.band-blush { background: var(--blush); }
.band-paper { background: var(--paper); }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font: 300 clamp(48px, 13vw, 92px)/.92 var(--display); color: var(--rose); letter-spacing: -.01em; margin-bottom: 14px; }
.sec-head p { max-width: 46ch; color: var(--slate); margin: 0; }
.sec-head .sched-bot { margin-top: 10px; }  /* бот в мессенджере у расписания (правки сайта 28.11) */
.note { margin: 24px 0 0; color: var(--slate); font-size: 14px; }

/* --- окошки реформера: свободные по дням; время — кнопки, переносятся строкой (без прокрутки вбок) --- */
.windows { display: grid; gap: 20px; }
.reformer-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; border-radius: var(--r-l); margin: 0 0 24px; background: var(--sky); }
/* ролик о студии: 9:16, на телефоне не шире экрана; запускается только нажатием — кнопка «▶» поверх обложки (app.js) */
.reel { position: relative; margin: 8px auto 24px; max-width: min(100%, 340px); }
.reel-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; padding: 0 0 0 6px; border: 0; border-radius: 50%; background: rgba(251, 252, 253, .92); color: var(--rose-ink); font-size: 32px; line-height: 1; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 18px 40px -18px rgba(30, 45, 57, .7); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.reel-play:hover { background: var(--rose-ink); color: #fff; transform: translate(-50%, -50%) scale(1.06); }
.reel-play[hidden] { display: none; }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--r-l); background: var(--sky); object-fit: cover; }
.win-day h3 { margin: 0 0 10px; font: 500 16px/1.3 var(--text); color: var(--ink); }
.win-times { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.win { min-height: 46px; padding: 10px 18px; border: 1px solid rgba(30, 45, 57, .18); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 17px/1.2 var(--text); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.win:hover { background: var(--rose-ink); border-color: var(--rose-ink); color: #fff; }
.windows-empty { margin: 0; padding: 22px 20px; border: 1px dashed rgba(30, 45, 57, .2); border-radius: var(--r-m); color: var(--slate); }

/* --- расписание: липкая панель (фильтры и дни), под шапкой сайта; прилипла — компактная --- */
.sched-sentinel { height: 1px; }
.sched-bar { position: sticky; top: var(--topbar); z-index: 6; margin: 0 calc(-1 * var(--gutter)) 4px; padding: 6px var(--gutter) 2px; background: var(--sky); transition: box-shadow .25s; }
.sched-bar.is-stuck { padding-top: 8px; padding-bottom: 6px; box-shadow: 0 16px 22px -20px rgba(30, 45, 57, .5); }
.sched-bar.is-stuck .filters { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sched-bar.is-stuck .chips-wrap { flex: 1 1 0; margin: 0; }
.sched-bar.is-stuck .chips { padding: 0; }
.sched-bar.is-stuck .chip { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.sched-bar.is-stuck .select select { min-height: 32px; max-width: 132px; padding: 5px 32px 5px 12px; font-size: 13px; background-position: right 12px center; }
.sched-bar.is-stuck #f-reset { display: none; }
.sched-bar.is-stuck .days { margin-bottom: 0; padding-top: 0; padding-bottom: 2px; }
.sched-bar.is-stuck .day-btn { grid-auto-flow: column; align-items: baseline; gap: 4px; width: auto; padding: 6px 11px; border-radius: 999px; transform: none; }
.sched-bar.is-stuck .day-btn .dn { font-size: 19px; }
.sched-bar.is-stuck .day-btn .dots, .sched-bar.is-stuck .day-btn.is-today::before { display: none; }
.sched-bar.is-stuck .month-mark { display: none; }
.wk-head { display: none; }

/* --- расписание: фильтры --- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chips-wrap { position: relative; flex: 1 1 100%; min-width: 0; margin: 0 calc(-1 * var(--gutter)); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 2px var(--gutter); scroll-padding-inline: var(--gutter); scroll-behavior: smooth; }
/* ряд не влез — у края, куда можно листать, затухание; на устройствах с мышью там же стрелка */
.chips-wrap.can-right .chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.chips-wrap.can-left .chips { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.chips-wrap.can-left.can-right .chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.chips-arrow { display: none; position: absolute; top: 50%; z-index: 1; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px -6px rgba(30, 45, 57, .6); }
.chips-arrow[data-dir="-1"] { left: 0; }
.chips-arrow[data-dir="1"] { right: 0; }
@media (hover: hover) {
  .chips-wrap.can-left .chips-arrow[data-dir="-1"], .chips-wrap.can-right .chips-arrow[data-dir="1"] { display: grid; place-items: center; }
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 7px 15px; border: 1px solid rgba(30, 45, 57, .18); border-radius: 999px; background: rgba(251, 252, 253, .55); color: var(--ink); font: 500 14px/1.2 var(--text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters-row { display: contents; }
.select select { appearance: none; min-height: 40px; padding: 8px 40px 8px 16px; border: 1px solid rgba(30, 45, 57, .18); border-radius: 999px; background: rgba(251, 252, 253, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E2D39' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--ink); font: 500 14px/1.2 var(--text); cursor: pointer; }
.select select.is-set { background-color: var(--ink); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); border-color: var(--ink); }

/* --- лента дней (телефон) --- */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 10px; padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.days:empty { display: none; }
.day-btn { position: relative; flex: none; width: 58px; display: grid; justify-items: center; gap: 1px; padding: 9px 0 10px; border: 0; border-radius: 18px; background: rgba(251, 252, 253, .6); color: var(--ink); cursor: pointer; scroll-snap-align: start; transition: background-color .2s, color .2s, transform .2s var(--spring); }
.day-btn .wd { font-size: 13px; color: var(--slate); }
.day-btn .dn { font: 500 27px/1 var(--display); }
.day-btn .dots { display: flex; gap: 3px; height: 6px; margin-top: 3px; }
.day-btn .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.day-btn.is-today::before { content: ""; position: absolute; top: 5px; width: 14px; height: 2px; border-radius: 2px; background: var(--rose-ink); }
.day-btn.is-empty { opacity: .45; }
.day-btn[aria-pressed="true"] { background: var(--ink); color: #fff; transform: translateY(-2px); }
.day-btn[aria-pressed="true"] .wd { color: var(--sky); }
.day-btn[aria-pressed="true"] .dots i { background: var(--rose-soft); }
.day-btn[aria-pressed="true"].is-today::before { background: var(--rose-soft); }
.month-mark { flex: none; align-self: center; padding: 0 2px 0 4px; color: var(--slate); font-size: 12px; writing-mode: vertical-rl; transform: rotate(180deg); }

/* --- неделя (компьютер) --- */
.weeks { display: none; }
.wk-btn { padding: 10px 18px 11px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.wk-btn b { display: block; font: 500 16px/1.2 var(--text); }
.wk-btn small { font-size: 13px; color: var(--slate); }
.wk-btn:hover { background: rgba(251, 252, 253, .6); }
.wk-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wk-btn[aria-pressed="true"] small { color: var(--sky); }

/* --- занятия --- */
.sched-view { position: relative; min-height: 220px; padding-top: 12px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.day-head h3 { font: 500 19px/1.3 var(--text); }
.day-head span { color: var(--slate); font-size: 14px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slot { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 14px 16px 16px; border: 1px solid rgba(30, 45, 57, .07); border-radius: var(--r-m); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.slot:hover:not([disabled]) { border-color: rgba(142, 80, 73, .45); box-shadow: 0 14px 28px -22px rgba(30, 45, 57, .5); transform: translateY(-1px); }
.slot-time { font: 500 32px/1 var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.slot-name { grid-column: 1 / -1; font: 500 17px/1.25 var(--text); }
.slot-coach { grid-column: 1 / -1; font-size: 14px; color: var(--slate); }
.slot-seats { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--slate); }
.slot-seats:empty { display: none; }
.slot-cta { grid-column: 2; grid-row: 1; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rose-ink); color: var(--rose-ink); font: 500 14px/1.2 var(--text); white-space: nowrap; transition: background-color .2s, color .2s; }
.slot:hover:not([disabled]) .slot-cta { background: var(--rose-ink); color: #fff; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 3px; height: 12px; border-radius: 2px; background: rgba(78, 95, 108, .22); }
.meter i.on { background: var(--ink); }
.slot.is-few .slot-seats { color: var(--rose-ink); font-weight: 500; }
.slot.is-full .slot-seats { color: var(--rose-ink); font-weight: 500; }
.slot.is-full .meter i.on { background: var(--rose-ink); }
.slot[disabled] { cursor: default; background: rgba(251, 252, 253, .45); border-color: transparent; }
.slot[disabled] > * { opacity: .55; }
.slot[disabled] .slot-cta { box-shadow: none; color: var(--slate); padding-inline: 0; }
.slot.is-soon .slot-seats { display: none; }
.slot.is-soon .slot-cta { white-space: normal; text-align: right; }
.slot.is-cancelled .slot-name { text-decoration: line-through; }
.empty-day { padding: 28px 20px; border: 1px dashed rgba(30, 45, 57, .2); border-radius: var(--r-m); color: var(--slate); text-align: center; }
.empty-day p { margin: 0 0 4px; }
.wk-empty { margin-bottom: 14px; }
.sched-error { padding: 14px 16px; border-radius: var(--r-s); background: var(--paper); color: var(--rose-ink); font-weight: 500; }
.static-week { display: grid; gap: 18px; }
.static-day h3 { font: 500 17px/1.3 var(--text); margin-bottom: 4px; }
.static-day ul { list-style: none; margin: 0; padding: 0; color: var(--slate); }

/* --- направления --- */
.dirs { list-style: none; margin: 0; padding: 0; }
.dir { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.dir-photo { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-m); background: var(--sky); }
.dir h3 { font: 500 26px/1.05 var(--display); margin: 0 0 6px; }
.dir p { color: var(--slate); font-size: 15px; line-height: 1.5; margin-bottom: 10px; max-width: 48ch; }
.when { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.when li { padding: 3px 10px; border-radius: 999px; background: rgba(211, 225, 234, .7); font-size: 13px; font-variant-numeric: tabular-nums; }
.when abbr { text-decoration: none; font-weight: 600; margin-right: 2px; }

/* --- видео направлений (клипы ВК): до нажатия — карточка-ссылка, по нажатию на её месте плеер 9:16 (app.js) --- */
.dir > .dir-video { grid-column: 1 / -1; margin-top: 2px; }
.dir:has(> .dir-video) { grid-template-rows: 1fr auto; }  /* в соседних карточках ряда видео — на одной высоте, у низа */
.video-open { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 24px 6px 6px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s var(--ease), color .2s var(--ease); }
.video-open:hover { background: var(--ink); color: #fff; }
.video-play { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding-left: 3px; border-radius: 50%; background: var(--rose-ink); color: #fff; font-size: 15px; }
.video-label { font: 500 16px/1.15 var(--text); }
.video-label small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; opacity: .7; }
/* плеер: вертикальный; на телефоне во всю карточку, но не выше 80 % экрана; на компьютере — до 360 px */
.video-frame { width: min(100%, 360px, calc(80vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: var(--r-l); overflow: hidden; background: var(--ink); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.reformer-side { display: grid; gap: 16px; margin: 0 0 24px; }
.reformer-side .reformer-photo { margin: 0; }

/* --- цены --- */
.prices { display: grid; gap: 32px; }
.price-group h3 { font: 500 15px/1.3 var(--text); color: var(--slate); margin-bottom: 12px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; padding: 16px 16px 14px; border-radius: var(--r-m); background: var(--paper); }
.tile-num { font: 300 60px/.85 var(--display); color: var(--rose); margin-bottom: 8px; font-variant-numeric: lining-nums; }  /* «5» не уходит под строку (C6) */
.tile h4 { font: 500 15px/1.3 var(--text); }
.tile-note { font-size: 13px; line-height: 1.35; color: var(--slate); margin: 4px 0 12px; }
.tile-price { font: 500 28px/1 var(--display); margin: auto 0 0; }
.price-list { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.price-list dt, .price-list dd { margin: 0; padding: 13px 0; border-bottom: 1px solid rgba(142, 80, 73, .2); }
.price-list dd { font: 500 25px/1.1 var(--display); text-align: right; padding-left: 16px; white-space: nowrap; }
.prices-photo { display: block; width: 100%; height: auto; border-radius: var(--r-l); margin-top: 32px; }  /* кадр целиком (B1) */

/* --- тренеры --- */
/* --- витрина тренеров — горизонтальная прокрутка с привязкой --- */
.show { position: relative; }
.show-track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.show-track::-webkit-scrollbar { display: none; }
.show-track:focus-visible { outline-offset: -3px; }
.show-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.show-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.show-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 8px 18px -14px rgba(30, 45, 57, .6); transition: background-color .2s, color .2s; }
.show-arrow:hover { background: var(--ink); color: #fff; }
.show-dots { display: flex; }
/* точка 8 px, а нажимается область 44×44 — сама точка в ::before */
.show-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.show-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px; background: rgba(30, 45, 57, .22); transform: translate(-50%, -50%); transition: width .3s var(--ease), background-color .3s; }
.show-dots button[aria-current="true"]::before { width: 22px; background: var(--rose-ink); }

.coach-show .show-track { --card: min(80vw, 330px); margin: 0 calc(-1 * var(--gutter)); padding: 10px calc(50% - var(--card) / 2) 18px; }
.coach-card, .team-card { flex: 0 0 var(--card); scroll-snap-align: center; border-radius: var(--r-l); background: var(--paper); overflow: hidden; transform: scale(.92); opacity: .55; transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .45s; }
.coach-card { display: grid; align-content: start; }
.coach-card.is-active, .team-card.is-active { transform: none; opacity: 1; box-shadow: 0 26px 50px -34px rgba(30, 45, 57, .55); }
/* общее фото: высота — по ряду карточек тренеров, кадр по верху (головы всех четверых) */
.team-card { position: relative; margin: 0; min-height: 360px; background: var(--sky); }
.team-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.team-card figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(251, 252, 253, .92); font-weight: 500; font-size: 15px; }
.coach-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-photo .mono { position: absolute; left: 14px; bottom: 14px; width: 56px; height: 56px; background: rgba(251, 252, 253, .92); font-size: 21px; }
.mono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blush); color: var(--rose-ink); font: 500 17px/1 var(--display); letter-spacing: .04em; flex: none; }
.coach-info { padding: 18px 18px 20px; }
.coach-info h3 { font: 300 34px/1 var(--display); color: var(--rose); margin-bottom: 8px; }
.coach-leads { font-weight: 500; margin-bottom: 8px; }
.coach-leads strong { font-weight: 700; color: var(--rose-ink); }  /* «жирно выделить» (правки 13b-2) */
.coach-bio { color: var(--slate); font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.coach-count { color: var(--slate); font-size: 14px; margin-bottom: 10px; }
.coach-info .button { margin-top: 6px; }

/* фото студии: сетка, все кадры видно сразу (на телефоне — 2 в ряд); первый и последний — на две клетки; по нажатию —
   крупно (app.js) */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery li { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-m); background: var(--sky); }
.gallery li.wide { grid-column: span 2; aspect-ratio: 2; }
.zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* фото крупно: поверх страницы, на телефоне — во всю ширину; стрелки — внутри своей группы */
.zoom-box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 29, 37, .97); color: #fff; overflow: hidden; }
.zoom-box[open] { display: grid; place-items: center; }
.zoom-box::backdrop { background: transparent; }
html.zoom-open { overflow: hidden; }  /* пока фото крупно — страница под ним стоит (шаг 10) */
.zoom-box { overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.zoom-stage { margin: 0; display: grid; justify-items: center; gap: 12px; }
.zoom-img { display: block; width: auto; height: auto; max-width: 100vw; max-height: calc(100dvh - 140px); }
.zoom-cap { padding: 0 64px; font-size: 15px; color: rgba(255, 255, 255, .85); text-align: center; }
.zoom-count { position: absolute; left: 18px; top: 18px; margin: 0; font-size: 15px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.zoom-close, .zoom-arrow { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(251, 252, 253, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background-color .2s; }
.zoom-close:hover, .zoom-arrow:hover { background: rgba(251, 252, 253, .3); }
.zoom-close { right: 12px; top: 12px; }
.zoom-arrow { bottom: 16px; }
.zoom-arrow[data-step="-1"] { left: 12px; }
.zoom-arrow[data-step="1"] { right: 12px; }
.zoom-box.is-single .zoom-arrow, .zoom-box.is-single .zoom-count { display: none; }
.dir-fill { display: none; }

/* --- правила --- */
.keys { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 18px; }
.key-num { font: 300 64px/.9 var(--display); color: var(--rose); font-variant-numeric: lining-nums; }  /* «3» не свисает (C5) */
.key-word { font: 500 17px/1.2 var(--text); margin-left: 4px; }
.key-text { display: block; margin-top: 4px; color: var(--slate); font-size: 15px; }
.rules { border-bottom: 1px solid var(--line); }
.rule { border-top: 1px solid var(--line); }
.rule summary { position: relative; display: block; padding: 18px 44px 18px 0; font: 500 18px/1.3 var(--text); cursor: pointer; list-style: none; }
.rule summary::-webkit-details-marker { display: none; }
.rule summary::before, .rule summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--rose-ink); transition: transform .3s var(--ease); }
.rule summary::after { transform: rotate(90deg); }
.rule[open] summary::after { transform: rotate(0deg); }
.rule summary:hover { color: var(--rose-ink); }
.rule p { margin: 0; padding: 0 0 20px; color: var(--slate); max-width: 62ch; }
.rule::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.rule[open]::details-content { block-size: auto; }

/* --- контакты --- */
.contacts { display: grid; gap: 28px; }
.contacts h2 { font: 300 clamp(48px, 13vw, 92px)/.92 var(--display); color: var(--rose); margin-bottom: 18px; }
.address { font: 500 26px/1.2 var(--display); max-width: 24ch; }
.phone { display: inline-flex; align-items: center; min-height: 44px; font: 500 22px/1.2 var(--text); color: var(--ink); text-decoration: none; }  /* палец — 44 px (C15) */
.phone:hover { color: var(--rose-ink); }
.contact-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(30, 45, 57, .25); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.contact-links a:hover { background: var(--ink); color: #fff; box-shadow: none; }
/* администратор студии в мессенджере — карточка под ссылками: что это, что в нём можно, кнопка */
.bot-box { max-width: 46ch; margin: 22px 0 0; padding: 18px 20px 20px; border-radius: var(--r-l); background: var(--paper); }
.bot-title { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--ink); }
.bot-can { margin: 8px 0 14px; color: var(--slate); font-size: 15px; line-height: 1.5; }
.map-box { position: relative; }
/* п. 6: пока виджет карты грузится (из Азии — до 25 с), видна подложка; загрузилась карта — перекрывает её */
.map-frame { position: relative; }
.map-wait { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 20px; border-radius: var(--r-l); background: var(--sky); color: var(--slate); text-align: center; }
.map-wait p { margin: 0; }
.map-wait-address { font: 500 24px/1.2 var(--display); color: var(--ink); }
/* «Как найти»: три шага с фото — на телефоне один под другим, фото небольшие (правки 8) */
.find h3 { font: 500 19px/1.3 var(--text); margin: 0 0 12px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.route li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; counter-increment: step; }
.route img { width: 96px; height: 128px; object-fit: cover; border-radius: var(--r-m); background: var(--sky); }
.route span::before { content: counter(step) ". "; font-weight: 600; color: var(--rose-ink); }
.map { position: relative; display: block; width: 100%; height: 340px; border: 0; border-radius: var(--r-l); background: transparent; }
.map-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 15px; }  /* палец — 44 px */
.map-links { display: flex; flex-wrap: wrap; column-gap: 20px; margin: 0; }

/* --- подвал --- */
.footer { margin-top: 24px; padding: 56px 0 28px; background: var(--ink); color: var(--sky); font-size: 15px; }
.footer-in { display: grid; gap: 32px; }
.footer .brand { color: var(--rose-soft); font-size: 22px; }
.footer-brand p { margin: 12px 0 0; max-width: 28ch; color: rgba(211, 225, 234, .8); }
.footer-col { display: grid; align-content: start; gap: 0; }
.footer-col h2 { font: 500 13px/1.3 var(--text); color: rgba(211, 225, 234, .65); margin-bottom: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sky); text-decoration: none; width: fit-content; }  /* 44 px (C6) */
.footer-col a:hover { color: var(--rose-soft); text-decoration: underline; }
.footer-col p { margin: 0; }
.footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(211, 225, 234, .18); color: rgba(211, 225, 234, .7); font-size: 13px; }
.footer-note p { margin: 0 0 6px; max-width: 80ch; }
.footer-note a { color: var(--rose-soft); display: inline-block; padding: 12px 0; margin: -12px 0; }  /* 44 px (правки 6, C8) */

/* --- лист записи: снизу на телефоне, по центру на широком --- */
.sheet { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
.sheet[open] { animation: sheet-up .38s var(--ease); }
.sheet::backdrop { background: rgba(30, 45, 57, .5); }
.sheet[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.sheet-close button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--powder); font-size: 24px; line-height: 1; color: var(--slate); cursor: pointer; }
.sheet h2 { font: 300 40px/1 var(--display); color: var(--rose); margin: 4px 52px 16px 0; }
.lesson-sum { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r-m); background: var(--powder); }
.lesson-sum .t { grid-row: 1 / 4; font: 500 36px/1 var(--display); }
.lesson-sum .d { font-size: 14px; color: var(--slate); }
.lesson-sum .n { font-weight: 500; font-size: 17px; line-height: 1.3; }
.lesson-sum .c { font-size: 14px; color: var(--slate); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; font-weight: 500; color: var(--slate); margin-bottom: 6px; }
.field input { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink); font: 400 17px/1.3 var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--rose-ink); box-shadow: 0 0 0 3px rgba(142, 80, 73, .18); }
.field input[aria-invalid="true"] { border-color: var(--rose-ink); background: #FFF8F7; }
.error { color: var(--rose-ink); font-weight: 500; }
.small { font-size: 14px; color: var(--slate); }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.actions .button { width: 100%; }
.actions + .small { margin-top: 8px; }
.done-mark { width: 64px; height: 64px; margin-bottom: 10px; }
.done-mark circle { fill: var(--blush); }
.done-mark path { fill: none; stroke: var(--rose-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.keep-link { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-s); background: var(--powder); }
.keep-link p { margin: 0 0 8px; }
.keep-link a { word-break: break-all; font-size: 14px; }
.keep-link .text-btn { margin-top: 4px; }

/* --- страница отмены --- */
.cancel-page { min-height: 100vh; display: flex; flex-direction: column; }
.cancel { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 32px var(--gutter) 48px; }
.cancel .brand { display: inline-block; margin-bottom: 28px; }
.card { padding: 26px 22px 24px; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 30px 60px -40px rgba(30, 45, 57, .45); margin-bottom: 18px; animation: rise .5s var(--ease) both; }
.card h1 { font: 300 40px/1 var(--display); color: var(--rose); margin-bottom: 14px; }
.card .what { font-weight: 500; font-size: 18px; }
.card .notice { padding: 12px 14px; border-radius: var(--r-s); background: var(--blush); font-size: 15px; line-height: 1.45; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .band { margin: 0 16px; padding: 88px 0; }
  .section { padding: 96px 0; }
  .dir { grid-template-columns: 120px 1fr; gap: 24px; }
  .dir-photo { width: 120px; height: 120px; }
  .dir > .dir-video { grid-column: 2; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .keys { grid-template-columns: repeat(3, 1fr); }
  .sheet { max-width: 480px; margin: auto; border-radius: var(--r-l); padding: 30px 30px 28px; }
  .sheet[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .footer-in { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --topbar: 68px; }
  .windows { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 32px; }
  .hero { grid-template-columns: 1.12fr .88fr; align-items: end; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
  .hero-title { font-size: calc(clamp(96px, 11.5vw, 152px) * var(--fit, 1)); }
  .ht-line + .ht-line { padding-left: .32em; }
  .lead { font-size: 20px; }
  .hero-photo { max-height: 680px; }
  .hero-media { margin-left: 40px; }
  .next { position: absolute; left: -236px; bottom: -40px; width: 300px; margin: 0; }  /* заходит только на угол фото: пол и ноги, не люди */
  .band { margin: 0 24px; padding: 104px 0; }
  .section { padding: 120px 0; }
  .sec-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 44px; }
  .sec-head h2 { margin: 0; }
  .sec-head p { justify-self: end; max-width: 40ch; }
  #schedule .sec-head { row-gap: 0; }  /* два абзаца — в правой колонке друг под другом */
  #schedule .sec-head h2 { grid-row: 1 / span 2; }
  #schedule .sec-head p { grid-column: 2; }
  .dirs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .prices-wrap { display: grid; grid-template-columns: 1fr 380px; column-gap: 56px; }
  .prices-wrap .sec-head { grid-column: 1 / -1; }
  .prices-photo { grid-column: 2; grid-row: 2; margin: 0; aspect-ratio: auto; height: 100%; max-height: 520px; object-fit: cover; object-position: 60% 50%; }
  .tiles { grid-template-columns: repeat(2, 1fr); }

  #coaches { overflow-x: clip; }  /* лента тренеров — во всю ширину окна */
  /* видно общее фото и 2,5 тренера, остальное — стрелками */
  .coach-show .show-track { --card: calc((100vw - var(--gutter) - 42px) / 3.5); margin-inline: calc(50% - 50vw); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .coach-card, .team-card { scroll-snap-align: start; transform: none; opacity: 1; }
  .coach-photo { aspect-ratio: 5 / 4; }
  /* общее фото в узкой высокой карточке обрезало крайних (шаг 10): кадр 1:2 сверху — видно ~62 % ширины снимка, все
     четыре лица целиком и крупнее, чем во всём кадре 4:5; подпись — под ним, как имя у тренера; на 1260+ все пять в ряд */
  .team-card { display: grid; align-content: start; min-height: 0; background: var(--paper); }
  .team-card img { position: static; height: auto; aspect-ratio: 1 / 2; }
  .team-card figcaption { position: static; padding: 18px 18px 20px; border-radius: 0; background: none; font: 300 34px/1 var(--display); color: var(--rose); }
  /* реформер: окошки слева, её фото справа; студия: текст и сетка фото слева, ролик крупно справа */
  .reformer .wrap { display: grid; grid-template-columns: 1fr 300px; column-gap: 56px; align-items: start; }
  .reformer .sec-head { grid-column: 1 / -1; }
  .reformer-side { grid-column: 2; grid-row: 2; margin: 0; }
  .reformer .windows { grid-column: 1; grid-row: 2; }
  .studio > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 400px); grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
  .studio .sec-head { display: block; margin: 0 0 32px; }
  .studio .sec-head h2 { margin-bottom: 14px; }  /* заголовок не наезжает на текст (C5) */
  .studio .sec-head p { justify-self: start; }
  .reel { grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(var(--topbar) + 24px); margin: 0; max-width: none; }
  .gallery { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gallery li.wide { position: relative; aspect-ratio: auto; }  /* высоту ряда задаёт квадрат рядом */
  .gallery li.wide .zoom { position: absolute; inset: 0; }
  .dir-fill { display: block; padding: 20px 0; border-top: 1px solid var(--line); }
  .dir-fill img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-m); }
  .rules-wrap { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; }
  .rules-wrap .sec-head { display: block; grid-column: 1; }
  .rules-wrap .sec-head h2 { margin-bottom: 14px; }
  .rules-wrap .sec-head p { justify-self: start; }
  .keys { grid-column: 1; grid-template-columns: 1fr; gap: 28px; margin: 12px 0 0; }
  .key-num { font-size: 76px; }
  .rules { grid-column: 2; grid-row: 1 / 4; align-self: start; }
  .contacts { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .find { grid-column: 1 / -1; grid-row: 2; }
  .route { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .route li { grid-template-columns: 1fr; align-items: start; }
  .route img { width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: 360px; }
  .map { height: 440px; }
  .footer-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1260px) {
  .coach-show .show-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .coach-show .show-nav, .swipe-hint { display: none; }
}

@media (min-width: 1040px) {
  .menu-btn { display: none; }
  .nav { position: static; display: flex; gap: 4px; padding: 0; margin-right: 12px; background: none; box-shadow: none; opacity: 1; transform: none; visibility: visible; }
  .nav a { position: relative; padding: 8px 12px; border: 0; font: 500 15px/1.2 var(--text); color: var(--ink); }
  .nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--rose-ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
  .nav a[aria-current="true"] { color: var(--rose-ink); }
  .days { display: none; }
  .weeks { display: flex; gap: 6px; margin-bottom: 16px; }
  .filters { align-items: flex-start; gap: 18px; }
  .chips-wrap { flex: 1 1 0; margin: 0; }
  .chips { flex-wrap: wrap; overflow: visible; padding: 0; }
  .wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .wk-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 4px 0 6px; }
  .wk-head span { display: flex; align-items: baseline; gap: 6px; padding: 0 4px; font: 500 15px/1.2 var(--text); }
  .wk-head b { font: 500 26px/1 var(--display); }
  .wk-head small { color: var(--slate); font-size: 13px; font-weight: 400; }
  .wk-head .is-today { color: var(--rose-ink); }
  .wk-head .is-past { opacity: .6; }
  .sched-bar.is-stuck .wk-head b { font-size: 21px; }
  .sched-bar.is-stuck .weeks { margin-bottom: 6px; }
  .sched-bar.is-stuck .wk-btn { padding: 6px 14px; }
  .sched-bar.is-stuck .wk-btn b { font-size: 14px; }
  .sched-bar.is-stuck .wk-btn small { display: none; }
  .sched-bar.is-stuck .chips { flex-wrap: nowrap; overflow-x: auto; }
  .wk-day.is-past { opacity: .6; }
  .wk .slots { gap: 8px; }
  .wk .slot { grid-template-columns: 1fr; gap: 2px; padding: 12px 12px 12px; border-radius: var(--r-s); }
  .wk .slot-time { font-size: 26px; }
  .wk .slot-name { grid-column: 1; font-size: 14px; line-height: 1.25; }
  .wk .slot-coach, .wk .slot-seats { grid-column: 1; font-size: 12.5px; }
  .wk .slot-seats { flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .wk .slot-cta { display: none; }
  .wk .slot.is-cancelled .slot-cta { display: block; grid-column: 1; grid-row: auto; margin-top: 6px; padding: 0; font-size: 12.5px; color: var(--rose-ink); }  /* C7 */
  .wk .slot.is-soon .slot-seats { display: flex; }
  .wk .empty-col { padding: 14px 4px; color: var(--slate); font-size: 13px; }
  .static-week { grid-template-columns: repeat(7, 1fr); }
}

/* Заголовки разделов въезжают, пока раздел входит в экран, — тот же жест, что у названия на первом экране.
   Фото первого экрана и реформера в ценах чуть отстают от прокрутки. Только CSS (scroll-driven animations):
   где браузер их не умеет, всё просто стоит на месте. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-head h2 { animation: title-in linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    @keyframes title-in { from { transform: translateX(-.4em); } to { transform: none; } }  /* без прозрачности: заголовок виден всегда */
    .hero-photo { animation: drift linear both; animation-timeline: view(); animation-range: exit -10% exit 100%; }
    .prices-photo { animation: drift-in linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.06) translateY(6%); } }
    @keyframes drift-in { from { object-position: 60% 30%; } to { object-position: 60% 70%; } }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery img { transition: transform .7s var(--ease); }
  .gallery a:hover img { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
