/* style.css — Gravity, студия флай-йоги. Вид по 03-design.md (направление one-motif, мотив «провис гамака»).
   Токены: tokens.css (дизайнер). Основа: base.css (стартовый набор). Телефон — отдельная композиция в конце файла. */
:root {
  --f1-step: #1A5A5F;        /* шаг тона на поле field-1: невыбранные чипы и слоты (светлые чернила 7.1:1) */
  --nom: #FAE3EE;            /* строки номинала на розовом поле */
  --sag-s: polygon(0 0, 100% 0, 100% calc(100% - 16px), 90% calc(100% - 10.2px), 80% calc(100% - 5.8px), 70% calc(100% - 2.6px), 60% calc(100% - 0.6px), 50% 100%, 40% calc(100% - 0.6px), 30% calc(100% - 2.6px), 20% calc(100% - 5.8px), 10% calc(100% - 10.2px), 0 calc(100% - 16px));
}
body { font-variation-settings: var(--fv-text); }
b, strong { font-weight: normal; font-variation-settings: var(--fv-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.field-1 :focus-visible { outline-color: var(--field-1-ink); }
.field-3 { background: var(--field-3); color: var(--field-3-ink); --muted: var(--field-3-muted); }
.section { padding-block: calc(var(--section) * 0.6); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.h2 { font-size: var(--step-head); font-variation-settings: var(--fv-head); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; position: relative; z-index: 1; }
.btn { font-variation-settings: var(--fv-strong); font-weight: normal; min-height: 3.25rem; padding: 0 1.6rem; }
.btn--ink { background: var(--ink); color: #fff; }
.link-plain, .m-link { text-underline-offset: 0.2em; }

/* ---------- шапка ---------- */
.top { gap: clamp(1rem, 2.4vw, 2rem); }
.mark { flex-direction: column; align-items: flex-start; justify-content: center; font-variation-settings: "wght" 900, "wdth" 125; letter-spacing: -0.01em; line-height: 1; }
.mark small { margin-top: 4px; font-size: var(--step-small); font-variation-settings: var(--fv-text); letter-spacing: 0; color: var(--muted); }
.top__nav { margin-left: auto; }
.top__act { min-height: 2.75rem; padding: 0 1.25rem; }

/* ---------- 1. первый экран ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: var(--gutter); min-height: calc(100svh - var(--header-h)); padding-left: var(--margin); overflow: hidden; }
.hero__text { grid-column: 1 / 7; grid-row: 1; padding-top: clamp(1.5rem, 6vh, 4rem); padding-bottom: 1.5rem; position: relative; z-index: 2; }
.hero__title { font-size: var(--step-head); font-variation-settings: var(--fv-head); line-height: 0.95; letter-spacing: -0.035em; }
.hero__lead { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; margin-top: 2rem; }
.hero__price { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); white-space: nowrap; }
.hero__week { flex-basis: 100%; width: max-content; font-variation-settings: var(--fv-strong); }
.hero__photo { grid-column: 7 / 13; grid-row: 1; align-self: start; height: max(18rem, min(56vh, calc(100svh - var(--header-h) - 25vw + 1.5rem))); z-index: 1; background: var(--surface); }
.hero__photo > img { height: 100%; object-position: 50% 55%; }
.sling { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 0; margin: -1.5rem 0 0 calc(var(--margin) * -1); line-height: 0; }
.sling svg { display: block; width: 100%; height: auto; overflow: visible; }
.sling__word { font-family: var(--font-display); font-variation-settings: var(--fv-monument); }

/* ---------- 2. как это работает: плитки растут ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; padding-inline: var(--margin); align-items: end; }
.how__head { grid-column: 1 / 8; grid-row: 1; align-self: start; padding-bottom: 2rem; }
.how__lead { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.tile { margin: 0; overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--1 { grid-column: 1 / 4; grid-row: 2; height: 30vh; min-height: 13rem; }
.tile--2 { grid-column: 4 / 8; grid-row: 2; height: 44vh; min-height: 18rem; }
.tile--3 { grid-column: 8 / 13; grid-row: 1 / 3; height: 60vh; min-height: 24rem; }
.how__caps { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; margin-top: 1.25rem; }
.cap { max-width: 40ch; padding-right: 1rem; }
.cap b { display: block; margin-bottom: 0.35rem; font-size: var(--step-lead); }
.cap span { display: block; }
.cap--1 { grid-column: 1 / 4; } .cap--2 { grid-column: 4 / 8; } .cap--3 { grid-column: 8 / 13; }
.how__more { grid-column: 1 / 7; grid-row: 4; margin-top: 3rem; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }

/* ---------- 3. группы: двухколоночный список с маркерами ---------- */
.groups { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; padding-inline: var(--margin); }
.groups__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.groups__head .h2 { grid-column: 1 / 9; }
.groups__lead { grid-column: 9 / 13; padding-bottom: 0.4rem; }
.groups__col { display: grid; gap: 3rem; align-content: start; }
.groups__col:nth-of-type(2) { grid-column: 1 / 7; } .groups__col:nth-of-type(3) { grid-column: 7 / 13; }
.grp { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.grp__mark { width: 120px; height: 120px; overflow: hidden; clip-path: var(--sag-s); background: var(--surface); }
.grp__mark img { width: 100%; height: 100%; object-fit: cover; }
.grp__mark--mama { background: var(--field-3); display: grid; place-items: end center; }
.grp__mark--mama img { width: 92px; height: 115px; object-fit: contain; }
.grp__mark--3k { background: var(--field-2); display: grid; place-items: center; }
.grp__mark--3k span { font-size: var(--step-head); font-variation-settings: "wght" 900, "wdth" 100; letter-spacing: -0.04em; line-height: 1; padding-bottom: 12px; }
.grp__body { display: grid; gap: 0.3rem; }
.grp__name { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--font-text); font-size: var(--step-lead); font-variation-settings: var(--fv-strong); line-height: 1.2; }
.grp__from { font-variation-settings: var(--fv-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grp__price { color: var(--muted); }
.grp__link { justify-self: start; font-variation-settings: var(--fv-strong); }

/* ---------- 4. живая вещь: неделя на поле глубокой ткани ---------- */
.week { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: calc(var(--section) * 0.6) var(--margin); }
.week__main { grid-column: 1 / 9; }
.week__side { grid-column: 9 / 13; position: sticky; top: 1.5rem; }
.week__lead { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.week__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.week .chip span { background: var(--f1-step); color: var(--field-1-ink); }
.week .chip input:checked + span { background: var(--field-1-ink); color: var(--field-1); }
.chip span { border-radius: var(--radius); font-variation-settings: var(--fv-strong); }
@media (hover: hover) and (pointer: fine) { .week .chip:hover input:not(:checked) + span { background: var(--sling-shade); } }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; gap: 0.6rem; }
.toggle span::before { content: ""; width: 2.6rem; height: 1.5rem; flex: none; border-radius: var(--radius); background: var(--f1-step); transition: background-color var(--t-hover) ease; }
.toggle span::after { content: ""; position: absolute; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--field-1-ink); transition: transform var(--t-ui) var(--ease-out); }
.toggle input:checked + span::before { background: var(--sling); }
.toggle input:checked + span::after { transform: translateX(1.1rem); }
.toggle input:focus-visible + span::before { outline: 3px solid var(--field-1-ink); outline-offset: 2px; }
.toggle[hidden] { display: none; }
.week__hint { margin-top: 1.75rem; color: var(--field-1-muted); }
.wk { margin-top: 1rem; }
.wk__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.wk__day { display: grid; gap: 0.35rem; align-content: start; }
.wk__dname { min-height: 2.75rem; color: inherit; font-size: var(--step-body); font-variation-settings: var(--fv-strong); border-radius: var(--radius); cursor: default; }
.wk__sel { display: none; }
.wk__slots { display: grid; gap: 0.35rem; }
.wk__none { padding: 1rem 0; text-align: center; color: var(--field-1-muted); font-size: var(--step-small); }
.slot { background: rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; align-items: center; gap: 0.2rem; width: 100%; padding: 0.4rem 0 0.55rem; color: var(--field-1-ink); font-size: var(--step-body); font-variant-numeric: tabular-nums; border-radius: 1.25rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.slot .hm { width: 72px; height: 90px; }
.slot[aria-pressed="true"] { background: var(--f1-step); font-variation-settings: var(--fv-strong); }
@media (hover: hover) and (pointer: fine) { .slot:hover { background: var(--f1-step); } }
.wk__sun { margin-top: 1rem; color: var(--field-1-muted); font-size: var(--step-small); }
.wk__note { min-height: 1.5em; margin-top: 0.4rem; font-size: var(--step-small); }
.week__nojs { margin-top: 1.5rem; }
.pass { display: grid; gap: 0.45rem; padding: 1.75rem 1.5rem 2.6rem; background: var(--sling); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); }
.pass__title { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); }
.pass__price { font-size: var(--step-head); font-variation-settings: var(--fv-num); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass__plan { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); line-height: 1.25; }
.pass__alt:empty { display: none; }
.pass__btn { justify-self: start; margin-top: 0.6rem; white-space: normal; text-align: left; }
.week__honest { margin-top: 0.9rem; font-size: var(--step-small); color: var(--field-1-muted); }

/* ---------- 5. цены: плитки растут вместе с числом занятий ---------- */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; align-items: end; padding-inline: var(--margin); }
.prices__head { grid-column: 1 / 9; grid-row: 1; align-self: start; padding-bottom: 2rem; }
.prices__lead { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.ptile { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.ptile--1 { grid-column: 1 / 5; grid-row: 2; min-height: 360px; background: var(--field-2); color: var(--ink); }
.ptile--2 { grid-column: 5 / 9; grid-row: 2; min-height: 480px; background: var(--sling); color: var(--ink); }
.ptile--3 { grid-column: 9 / 13; grid-row: 1 / 3; min-height: 600px; background: var(--field-1); color: var(--field-1-ink); }
.ptile__in { display: grid; gap: 0.45rem; padding: 1.5rem; }
.ptile__name { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); }
.ptile__price { margin: 0.25rem 0 0.35rem; font-size: var(--step-head); font-variation-settings: "wght" 760, "wdth" 100; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptile__go { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 1.5rem; color: #fff; text-decoration: none; font-variation-settings: var(--fv-strong); transition: background-color var(--t-hover) ease; }
.ptile--1 .ptile__go { background: var(--sling-shade); }
.ptile--2 .ptile__go { background: var(--accent); }
.ptile--3 .ptile__go { background: var(--ink); }
.ptile__go span { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ptile__go:hover span { transform: translateX(6px); } .ptile__go:hover { background: var(--ink); } .ptile--3 .ptile__go:hover { background: var(--accent); } }
.plist { grid-column: 1 / -1; grid-row: 3; margin-top: 4.5rem; }
.plist__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.plist__must { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); }
.plist__rows { margin-top: 2rem; }
.plist__set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; }
.plist:not(:has(input[value="kids"]:checked)) [data-set="kids"], .plist:has(input[value="kids"]:checked) [data-set="adults"] { display: none; }
.pr__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: none; font-size: var(--step-lead); }
.pr__sum { font-variation-settings: var(--fv-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr__sub { margin-top: 0.3rem; color: var(--muted); max-width: 48ch; }
.plist__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; margin-top: 3rem; }

/* ---------- 6. сертификат: розовое поле, фото срезано краями ---------- */
.gift { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; min-height: 90svh; overflow: hidden; padding: calc(var(--section) * 0.45) var(--margin); }
.gift__ph { grid-column: 1 / 9; grid-row: 1; position: sticky; top: 0; height: 100svh; overflow: hidden; margin: calc(var(--section) * -0.45) 0 0 calc(var(--margin) * -1); min-height: 24rem; }
.gift__ph img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 35% 80%; }
.gift__text { grid-column: 9 / 13; grid-row: 1; display: grid; gap: 1rem; padding-block: 1rem; position: relative; z-index: 1; }
.gift__form { display: grid; gap: 1rem; margin-top: 0.5rem; }
.field-3 .chip span { background: var(--nom); }
.field-3 .chip input:checked + span { background: var(--ink); color: #fff; }
.nom { display: grid; gap: 0.4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.nom__row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1.1rem; background: var(--nom); border-radius: 1.5rem; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.nom__row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nom__t { display: grid; font-variation-settings: var(--fv-strong); line-height: 1.25; }
.nom__t small { font-size: var(--step-small); font-variation-settings: var(--fv-text); }
.nom__p { font-variation-settings: var(--fv-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nom__row:has(input:checked) { background: var(--ink); color: #fff; }
.nom__row:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.nom__row:active { transform: scale(0.98); }
.cert { display: grid; gap: 0.2rem; padding: 1.25rem 1.4rem 1.5rem; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% calc(50% - 10px), calc(100% - 10px) 50%, 100% calc(50% + 10px), 100% 100%, 0 100%, 0 calc(50% + 10px), 10px 50%, 0 calc(50% - 10px)); }
.cert__name { font-variation-settings: "wght" 900, "wdth" 125; font-size: var(--step-lead); }
.cert__sum { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); }
.gift__btn { justify-self: start; }
.gift__note { font-size: var(--step-small); color: var(--muted); }

/* ---------- 7. студия: вставная панель ---------- */
.studio { padding: 20px; }
.studio__panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: 105svh; overflow: hidden; padding: 56px 56px 0; }
.studio__left { grid-column: 7 / 13; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.studio__ph { width: 38vw; margin: 0 0 calc(38vw * -0.2); overflow: hidden; background: var(--f1-step); }
.studio__ph img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.studio__right { grid-column: 1 / 6; grid-row: 1; display: grid; gap: 1.5rem; align-content: end; padding: 6rem 0 56px; }
.studio__lead { font-size: var(--step-lead); line-height: 1.35; }
.studio__facts { display: grid; gap: 0.6rem; }
.studio__facts li { font-size: var(--step-lead); line-height: 1.3; font-variation-settings: var(--fv-strong); }
.quote p { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.quote footer { margin-top: 0.4rem; font-size: var(--step-small); color: var(--field-1-muted); }
.studio__btn { justify-self: start; background: var(--field-1-ink); color: var(--field-1); }
@media (hover: hover) and (pointer: fine) { .studio__btn:hover { background: var(--sling); color: var(--ink); } }

/* ---------- 8. правила: картотека с табами ---------- */
.rules { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }
.rules__title { grid-column: 3 / 11; margin-bottom: 2.5rem; }
.cards { grid-column: 3 / 11; display: grid; }
.card { --tx: calc(1.5rem + var(--i, 0) * (100% - 200px - 3rem) / 4); position: relative; margin-top: -40px; padding: calc(40px + 1.4rem) 1.75rem 3rem; background: var(--bg); clip-path: polygon(0 40px, var(--tx) 40px, var(--tx) 0, calc(var(--tx) + 200px) 0, calc(var(--tx) + 200px) 40px, 100% 40px, 100% 100%, 0 100%); }
.card:first-child { margin-top: 0; }
.card--1 { --i: 0; background: var(--bg); } .card--2 { --i: 1; background: var(--surface); } .card--3 { --i: 2; background: var(--field-3); } .card--4 { --i: 3; background: var(--bg); } .card--5 { --i: 4; background: var(--surface); }
.card summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; list-style: none; cursor: pointer; min-height: 2.75rem; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: "+"; flex: none; font-size: var(--step-lead); font-variation-settings: var(--fv-strong); transition: transform var(--t-ui) var(--ease-out); }
.card[open] summary::after { transform: rotate(45deg); }
.card__tab { position: absolute; top: 0; left: var(--tx); width: 200px; height: 40px; display: flex; align-items: center; padding-left: 1rem; font-variation-settings: var(--fv-strong); }
.card__q { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); line-height: 1.25; }
.card p { margin-top: 0.75rem; max-width: 50ch; }

/* ---------- 9. контакты: талон ---------- */
.contacts { overflow-x: clip; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }
.ticket { grid-column: 2 / 12; position: relative; display: grid; grid-template-columns: 46% 6px minmax(0, 1fr); background: var(--sling); color: var(--ink); }
.ticket__left { display: grid; gap: 1.25rem; align-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.ticket__left p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.ticket__mid { position: relative; }
.ticket__notch { position: absolute; left: 50%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--bg); }
.ticket__notch--a { top: -28px; } .ticket__notch--b { bottom: -28px; }
.ticket__perf { position: absolute; top: 44px; bottom: 44px; left: 0; width: 6px; height: calc(100% - 88px); }
.perf-h { display: none; }
.ticket__right { display: grid; gap: 1.1rem; align-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.ticket__big { font-size: var(--step-lead); line-height: 1.3; font-variation-settings: var(--fv-strong); }
.ticket__big a { text-decoration: none; }
.ticket__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

/* ---------- 10. финал-подвал: невесомое слово ---------- */
.foot { padding-top: calc(var(--section) * 0.4); }
.float-word { display: block; width: 100%; height: auto; overflow: visible; }
.float-word text { font-family: var(--font-display); font-variation-settings: var(--fv-float); }
.foot__zero { margin-top: 1rem; font-size: var(--step-lead); font-variation-settings: var(--fv-light); }
.foot__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 3.5rem; }
.foot__facts a { text-decoration: none; }
.foot__logo { width: 160px; height: auto; background: #fff; }
.foot__end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.foot__credit { margin-top: 0; }
.foot__up { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font-variation-settings: var(--fv-strong); transition: transform var(--t-press) var(--ease-out); }
.foot__up:active { transform: scale(0.97); }

/* ---------- планшет и узкий десктоп ---------- */
@media (max-width: 68.75em) {
  .week__main, .week__side { grid-column: 1 / -1; }
  .week__side { position: static; margin-top: 2rem; max-width: 30rem; }
  .ptile--1, .ptile--2, .ptile--3 { grid-row: auto; }
  .prices__head { grid-column: 1 / -1; }
  .ptile--1 { grid-column: 1 / 7; min-height: 400px; } .ptile--2 { grid-column: 7 / 13; min-height: 460px; }
  .ptile--3 { grid-column: 1 / -1; min-height: 300px; margin-top: 8px; }
  .plist { grid-row: auto; }
  .gift__ph { grid-column: 1 / 7; } .gift__text { grid-column: 7 / 13; }
  .studio__left { grid-column: 7 / 13; } .studio__right { grid-column: 1 / 7; }
  .studio__panel { min-height: 0; }
  .studio__ph { width: 40vw; margin-bottom: calc(40vw * -0.2); }
  .foot__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket { grid-column: 1 / -1; }
  .rules__title, .cards { grid-column: 1 / -1; }
}
/* талон вертикальный, перфорация поперёк */
@media (max-width: 60em) {
  .ticket { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 6px auto; }
  .ticket__notch { top: 50%; left: auto; margin: -28px 0 0; }
  .ticket__notch--a { left: -28px; } .ticket__notch--b { right: -28px; bottom: auto; }
  .ticket__perf { top: 0; bottom: auto; left: 40px; right: 40px; width: calc(100% - 80px); height: 6px; }
  .perf-v { display: none; } .perf-h { display: inline; }
}

/* ---------- телефон: отдельная композиция ---------- */
@media (max-width: 47.99em) {
  :root { --header-h: 3.75rem; }
  .top { gap: 0.6rem; }
  .mark small { display: none; }
  .top__act { padding: 0 0.9rem; }
  .section { padding-block: calc(var(--section) * 0.75); }
  /* первый экран: фото сверху, заголовок, кнопка во всю ширину, полоса с GRAVITY последней строкой */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding-left: 0; }
  .hero__photo { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 4 / 3; }
  .hero__photo > img { object-position: 50% 60%; }
  .hero__text { grid-column: 1; grid-row: 2; padding: 1.25rem var(--margin) 0; }
  .hero__lead { margin-top: 0.75rem; }
  .hero__acts { margin-top: 1.25rem; gap: 0.6rem 1rem; }
  .hero__acts .btn { width: 100%; min-height: 3.5rem; }
  .sling { grid-column: 1; grid-row: 3; margin: 0.5rem 0 0; }
  /* как это работает: плитка, подпись, плитка, подпись */
  .how { display: flex; flex-direction: column; align-items: stretch; }
  .how__head { order: 0; padding-bottom: 1.5rem; }
  .how__caps { display: contents; }
  .tile--1 { order: 1; height: 44vw; min-height: 0; } .cap--1 { order: 2; }
  .tile--1 img, .tile--2 img { object-position: 50% 30%; }
  .tile--2 { order: 3; height: 56vw; min-height: 0; } .cap--2 { order: 4; }
  .tile--3 { order: 5; height: 68vw; min-height: 0; } .cap--3 { order: 6; }
  .cap { margin: 0.9rem 0 1.75rem; padding: 0; }
  .how__more { order: 7; margin-top: 0.5rem; }
  /* группы: одна колонка, маркер 88 px */
  .groups { row-gap: 2.25rem; }
  .groups__head .h2, .groups__lead { grid-column: 1 / -1; }
  .groups__lead { margin-top: 1rem; }
  .groups__col:nth-of-type(2), .groups__col:nth-of-type(3) { grid-column: 1 / -1; }
  .groups__col { gap: 2.25rem; }
  .grp { grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; }
  .grp__mark { width: 88px; height: 88px; }
  .grp__mark--mama img { width: 68px; height: 85px; }
  .grp__name { flex-wrap: wrap; gap: 0 0.75rem; }
  /* неделя: чипы дней 3×2, под ними время выбранного дня кнопками-гамаками, пропуск следом */
  .week__ctrl { margin-top: 1.5rem; }
  .wk__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .wk__day { display: contents; }
  .wk__dname { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.25rem; background: var(--f1-step); cursor: pointer; line-height: 1.1; }
  .wk__dname[aria-pressed="true"] { background: var(--field-1-ink); color: var(--field-1); }
  .wk__sel { display: block; font-size: var(--step-small); font-variation-settings: var(--fv-text); }
  .wk__slots { display: none; grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
  .wk__day.is-active .wk__slots { display: grid; }
  .wk__none { grid-column: 1 / -1; }
  .slot { flex-direction: row; justify-content: flex-start; gap: 0.75rem; min-height: 4rem; padding: 0.4rem 0.9rem; background: var(--f1-step); border-radius: var(--radius); }
  .slot .hm { width: 38px; height: 48px; }
  .slot[aria-pressed="true"] { background: var(--field-1-ink); color: var(--field-1); }
  .week__side { margin-top: 1.5rem; max-width: none; margin-inline: calc(var(--margin) * -1); }
  .pass { padding-inline: var(--margin); }
  .pass__btn { width: 100%; justify-content: center; text-align: center; }
  .week__honest { padding-inline: var(--margin); }
  /* цены: плитки в столбик по возрастанию, список в одну колонку */
  .prices { column-gap: 0; row-gap: 8px; }
  .ptile--1, .ptile--2, .ptile--3 { grid-column: 1 / -1; min-height: 0; margin-top: 0; }
  .ptile--2 .ptile__in { padding-block: 2rem; } .ptile--3 .ptile__in { padding-block: 2.6rem; }
  .plist { margin-top: 3rem; }
  .plist__set { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .plist__bar .chips { width: 100%; }
  .plist__foot .btn { width: 100%; }
  /* сертификат: выбор сначала, фото после, срезано правым и нижним краем */
  .gift { min-height: 0; padding-bottom: 0; row-gap: 2rem; }
  .gift__text { grid-column: 1 / -1; grid-row: 1; padding: 0; }
  .gift__ph { grid-column: 1 / -1; grid-row: 2; position: relative; top: auto; height: 55svh; min-height: 18rem; margin: 0 calc(var(--margin) * -1); }
  .gift__ph img { left: 0; bottom: 0; width: 130%; height: 125%; object-position: 25% 100%; }
  .gift__btn { width: 100%; }
  .nom__row { border-radius: 1.25rem; }
  /* студия: панель с отступом 10 px, фото последним, срезано нижним краем */
  .studio { padding: 10px; }
  .studio__panel { min-height: 0; padding: 2.25rem var(--margin) 0; }
  .studio__left { display: contents; }
  .studio__left .h2 { grid-column: 1 / -1; order: 0; }
  .studio__right { grid-column: 1 / -1; order: 1; padding: 1.5rem 0 2.5rem; }
  .studio__ph { grid-column: 1 / -1; order: 2; width: 86vw; justify-self: center; margin-bottom: calc(86vw * -0.25); }
  .studio__btn { width: 100%; }
  /* правила: карточки во всю ширину, табы 120 px со сдвигом 48 px */
  .rules__title, .cards { grid-column: 1 / -1; }
  .rules__title { margin-bottom: 1.75rem; }
  .card { --tx: calc(1rem + var(--i, 0) * (100% - 120px - 2rem) / 4); padding: calc(40px + 1rem) 1.1rem 2.75rem; clip-path: polygon(0 40px, var(--tx) 40px, var(--tx) 0, calc(var(--tx) + 120px) 0, calc(var(--tx) + 120px) 40px, 100% 40px, 100% 100%, 0 100%); }
  .card__tab { width: 120px; padding-left: 0.75rem; font-size: var(--step-small); }
  .ticket__left, .ticket__right { padding: 2rem 1.25rem; }
  .ticket__acts .btn { width: 100%; }
  /* подвал */
  .foot__facts { grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
}
@media (max-width: 23.4em) {
  .top__act { padding: 0 0.7rem; }
  .top { gap: 0.45rem; }
}
.pass__price--text { font-size: var(--step-lead); font-variation-settings: var(--fv-strong); white-space: normal; letter-spacing: 0; line-height: 1.25; }

/* QA2-GY-05: запас под выносные элементы у масок строк SplitText в заголовке талона (320 px) */
.ticket .m-line-mask { padding-bottom: 0.18em; margin-bottom: -0.18em; }

/* QA1-04: области нажатия ссылок подвала и контактов; QA1-05: отклик подчёркнутых ссылок; QA1-11: низ мобильного меню */
.ticket__big a, .foot__facts a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (hover: hover) and (pointer: fine) { .link-plain:hover { text-decoration-thickness: 0.14em; } }
.menu__tel { margin-top: 1rem; font-size: var(--step-lead) !important; }
.menu__wa { margin-top: 0.75rem; align-self: stretch; font-size: var(--step-body) !important; font-family: var(--font-text) !important; }
@media (max-width: 47.99em) { .studio__left { text-align: left; align-items: stretch; } }
.top__nav .only-phone { display: none; }
@media (max-width: 47.99em) {
  .menu-open .top__nav .menu__tel { display: block; }
  .menu-open .top__nav .menu__wa { display: inline-flex; }
  .studio__right, .studio__left .h2 { grid-row: auto; }
}
