/* ==========================================================================
   «Ну Мёд» — оздоровительная студия, Казань
   Пастельная тёплая тема: слоновая кость + песок + мёд, акцент — шалфей.
   ========================================================================== */

/* ---------- 1. Токены ---------------------------------------------------- */
:root {
  /* поверхности */
  --ivory: #FAF6EF;
  --ivory-2: #F6F1E7;
  --cream: #F2EADC;
  --sand: #E9DFCC;
  --sand-2: #DCCDB2;

  /* акценты */
  --honey: #C0904A;
  --honey-2: #A97B3B;
  --honey-soft: #E3C68F;
  --honey-pale: #F1E1C4;
  --sage: #7F8E78;
  --sage-pale: #D6DCCF;

  /* текст */
  --ink: #262119;
  --ink-2: #4A4137;
  /* заметно темнее «классического» серого: вторичный текст лежит на стекле,
     под которым движется силуэт, и блюр его больше не сглаживает —
     запас по контрасту нужен именно здесь */
  --muted: #5E5546;
  --muted-2: #948A7B;

  /* стекло: карточки не сплошные плиты, а лёгкие пластины —
     сквозь них силуэт тоже чуть просвечивает, и сайт перестаёт «весить» */
  --glass-1: rgba(255, 253, 249, .72);
  --glass-2: rgba(240, 232, 218, .58);
  --glass-card: linear-gradient(168deg, var(--glass-1), var(--glass-2));

  /* ДВЕ ГЛАВНЫЕ РУЧКИ видимости фигуры за контентом.
     Тинт — насколько панель гасит фон, блюр — насколько размывает.
     Блюр держим МАЛЫМ: на больших значениях силуэт растворяется в ровную
     заливку, а если позже подставить настоящее видео — оно исчезнет совсем.
     Читаемость добираем тинтом, а не размытием. */
  --pane-tint: rgba(250, 246, 239, .47);
  --pane-blur: 7px;

  /* линии и тени — намеренно слабые: тяжёлая тень делает блок предметом */
  --line: rgba(38, 33, 25, .09);
  --line-2: rgba(38, 33, 25, .16);
  --sh-1: 0 2px 10px -6px rgba(96, 74, 42, .12);
  --sh-2: 0 16px 40px -30px rgba(96, 74, 42, .3);
  --sh-3: 0 28px 60px -42px rgba(96, 74, 42, .36);

  /* радиусы */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* ритм */
  --gap: 24px;
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --sec-y: clamp(56px, 7vw, 112px);

  /* кривые */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. База ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip, а НЕ hidden: hidden делает body скролл-контейнером и убивает position:sticky у героя */
  overflow-x: clip;
}

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 700px) {
  body { font-size: 17px; }
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection {
  background: var(--honey-pale);
  color: var(--ink);
}

/* ---------- 2a. Прелоадер последовательности -----------------------------
   Три почти неподвижные линии читаются как спокойное дыхание. Сам прелоадер
   не зависит от картинок и появляется ещё до загрузки первого кадра. */
html.site-loading,
html.site-loading body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.site-loader {
  --loader-progress: 0;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(56% 52% at 50% 45%, rgba(241, 225, 196, .46), rgba(250, 246, 239, 0) 74%),
    radial-gradient(42% 48% at 7% 10%, rgba(214, 220, 207, .24), rgba(250, 246, 239, 0) 72%),
    radial-gradient(46% 50% at 93% 88%, rgba(227, 198, 143, .19), rgba(250, 246, 239, 0) 72%),
    linear-gradient(145deg, #FCF9F3, var(--ivory) 52%, #F8F2E8);
  color: var(--ink);
  opacity: 1;
  visibility: visible;
  transition: opacity .74s var(--e-soft), visibility .74s step-end;
}

.js.site-loading .site-loader { display: grid; }

.site-loader::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(720px, 78vw);
  height: min(720px, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 249, .34), rgba(255, 253, 249, 0) 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Небольшие фирменные объекты по краям: орбиты, листья, дуги и световые
   точки. Они добавляют глубину, но оставляют центр свободным для прогресса. */
.site-loader__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.3s var(--e-soft) .18s;
}

.site-loader-visible .site-loader__decor { opacity: 1; }

.loader-decor {
  position: absolute;
  display: block;
  color: rgba(169, 123, 59, .38);
}

.loader-decor--orbit-a,
.loader-decor--orbit-b {
  width: 92px;
  height: 92px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: loader-float-a 8.5s var(--e-soft) infinite alternate;
}

.loader-decor--orbit-a::before,
.loader-decor--orbit-b::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 7px rgba(192, 144, 74, .09);
  transform: translateX(-50%);
}

.loader-decor--orbit-a::after,
.loader-decor--orbit-b::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(169, 123, 59, .16);
  border-radius: 50%;
}

.loader-decor--orbit-a { left: clamp(28px, 8vw, 130px); top: 16%; }
.loader-decor--orbit-b {
  right: clamp(24px, 9vw, 150px);
  bottom: 13%;
  width: 122px;
  height: 122px;
  color: rgba(127, 142, 120, .32);
  animation-name: loader-float-b;
  animation-duration: 10s;
}
.loader-decor--orbit-b::before { background: var(--sage); box-shadow: 0 0 0 7px rgba(127, 142, 120, .08); }

.loader-decor--leaf-a,
.loader-decor--leaf-b {
  width: 76px;
  height: 44px;
  overflow: visible;
  animation: loader-leaf 9s var(--e-soft) infinite alternate;
}

.loader-decor--leaf-a path,
.loader-decor--leaf-b path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.loader-decor--leaf-a path:last-child,
.loader-decor--leaf-b path:last-child {
  opacity: .48;
}

.loader-decor--leaf-a { left: 17%; bottom: 16%; transform: rotate(-19deg); }
.loader-decor--leaf-b {
  right: 17%;
  top: 15%;
  color: rgba(127, 142, 120, .34);
  transform: rotate(157deg) scale(.82);
  animation-delay: -3.5s;
}

.loader-decor--arc-a,
.loader-decor--arc-b {
  width: min(260px, 24vw);
  height: 120px;
  border-top: 1px solid rgba(169, 123, 59, .25);
  border-radius: 50%;
  animation: loader-arc 11s var(--e-soft) infinite alternate;
}

.loader-decor--arc-a { left: -34px; top: 56%; transform: rotate(12deg); }
.loader-decor--arc-b {
  right: -42px;
  top: 30%;
  border-color: rgba(127, 142, 120, .22);
  transform: rotate(-18deg);
  animation-delay: -5s;
}

.loader-decor--spark {
  right: 29%;
  top: 11%;
  width: 22px;
  height: 22px;
  animation: loader-spark 4.8s ease-in-out infinite;
}

.loader-decor--spark::before,
.loader-decor--spark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(192, 144, 74, .52);
}

.loader-decor--spark::after { transform: rotate(90deg); }

.loader-decor--seeds {
  left: 28%;
  top: 12%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(192, 144, 74, .62);
  box-shadow:
    24px 18px 0 -1px rgba(169, 123, 59, .35),
    -18px 31px 0 -2px rgba(127, 142, 120, .46),
    11px 52px 0 -2px rgba(192, 144, 74, .38);
  animation: loader-seeds 6.5s var(--e-soft) infinite alternate;
}

.loader-decor--rosette-a,
.loader-decor--rosette-b {
  width: 68px;
  height: 68px;
  overflow: visible;
  color: rgba(169, 123, 59, .3);
  animation: loader-rosette 12s linear infinite;
}

.loader-decor--rosette-a ellipse,
.loader-decor--rosette-a circle,
.loader-decor--rosette-b ellipse,
.loader-decor--rosette-b circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.loader-decor--rosette-a { left: 7%; bottom: 7%; }
.loader-decor--rosette-b {
  right: 7%;
  top: 7%;
  width: 52px;
  height: 52px;
  color: rgba(127, 142, 120, .3);
  animation-direction: reverse;
  animation-duration: 15s;
}

.loader-decor--diamond-a,
.loader-decor--diamond-b {
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  animation: loader-diamond 5.5s var(--e-soft) infinite alternate;
}

.loader-decor--diamond-a::after,
.loader-decor--diamond-b::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  opacity: .45;
}

.loader-decor--diamond-a { left: 39%; top: 8%; }
.loader-decor--diamond-b {
  right: 38%;
  bottom: 8%;
  width: 13px;
  height: 13px;
  color: rgba(127, 142, 120, .42);
  animation-delay: -2.2s;
}

.loader-decor--beads-a,
.loader-decor--beads-b {
  width: 1px;
  height: 110px;
  background: linear-gradient(180deg, rgba(169, 123, 59, 0), rgba(169, 123, 59, .32), rgba(169, 123, 59, 0));
  animation: loader-beads 7s var(--e-soft) infinite alternate;
}

.loader-decor--beads-a::before,
.loader-decor--beads-a::after,
.loader-decor--beads-b::before,
.loader-decor--beads-b::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(169, 123, 59, .42);
  border-radius: 50%;
  background: var(--ivory);
  transform: translateX(-50%);
}

.loader-decor--beads-a::before,
.loader-decor--beads-b::before { top: 22px; }
.loader-decor--beads-a::after,
.loader-decor--beads-b::after { bottom: 24px; width: 4px; height: 4px; background: var(--honey-soft); }

.loader-decor--beads-a { right: 3.5%; top: 49%; }
.loader-decor--beads-b {
  left: 3.5%;
  top: 34%;
  height: 82px;
  opacity: .75;
  animation-delay: -3s;
}

/* Большой контур лотоса собирает фон в фирменную сцену. Он намеренно почти
   прозрачный: форму видно, но она не спорит с процентом и названием. */
.site-loader__aura {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(720px, 88vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -48%) scale(.91);
  transition: opacity 1.25s var(--e-soft), transform 1.5s var(--e-out);
  animation: loader-aura 7.5s var(--e-soft) infinite alternate;
}

.site-loader__aura i {
  position: absolute;
  left: 36%;
  top: 9%;
  width: 28%;
  height: 66%;
  border: 1px solid rgba(169, 123, 59, .17);
  border-radius: 52% 52% 45% 45%;
  background: linear-gradient(180deg, rgba(241, 225, 196, .055), rgba(241, 225, 196, 0) 62%);
  transform-origin: 50% 82%;
}

.site-loader__aura i:nth-child(1) { transform: rotate(-58deg); }
.site-loader__aura i:nth-child(2) { transform: rotate(-29deg); }
.site-loader__aura i:nth-child(3) { transform: rotate(0); border-color: rgba(169, 123, 59, .24); }
.site-loader__aura i:nth-child(4) { transform: rotate(29deg); }
.site-loader__aura i:nth-child(5) { transform: rotate(58deg); }

.site-loader-visible .site-loader__aura {
  opacity: 1;
  transform: translate(-50%, -48%) scale(1);
}

.site-loader__inner {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 48px));
  text-align: center;
  opacity: 0;
  transform: translateY(calc(-1.5vh + 15px)) scale(.985);
  transition: transform 1s var(--e-out), opacity .8s var(--e-soft);
  transition-delay: .12s;
}

.site-loader-visible .site-loader__inner {
  opacity: 1;
  transform: translateY(-1.5vh) scale(1);
}

.site-loader__name {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(42px, 4.2vw, 57px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}

.site-loader__name span {
  color: var(--ink);
  opacity: .88;
}

.site-loader__name em {
  color: var(--honey-2);
  font-style: normal;
}

.site-loader__brandline {
  width: min(390px, 86%);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.site-loader__brandline i {
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 123, 59, 0), rgba(169, 123, 59, .42));
}

.site-loader__brandline i:last-child { transform: scaleX(-1); }

.site-loader__brandline small {
  color: var(--honey-2);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-loader__wave {
  height: 132px;
  margin: 25px 0 18px;
  overflow: visible;
}

.site-loader__wave svg {
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  animation: loader-breath 5.8s var(--e-soft) infinite alternate;
}

.site-loader__wave path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.site-loader__wave-track {
  stroke: rgba(169, 123, 59, .18);
  stroke-width: 2;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

.site-loader__wave-value {
  stroke: url(#loaderWaveTone);
  stroke-width: 3;
  /* app.js задаёт две длины: заполненный участок и прозрачный остаток. */
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  /* Процент приходит десятки раз в секунду: transition заставлял волну
     постоянно догонять число и визуально отставать на 30–40 пунктов. */
  transition: none;
  filter: drop-shadow(0 3px 7px rgba(169, 123, 59, .18));
}

.site-loader__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.45;
  letter-spacing: .01em;
}

.site-loader__meta strong {
  order: -1;
  min-width: 0;
  font-family: 'Prata', Georgia, serif;
  color: var(--honey-2);
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

html.site-loader-leaving .site-loader {
  opacity: 0;
  visibility: hidden;
}

html.site-loader-leaving .site-loader__inner {
  opacity: 0;
  transform: translateY(-1.5vh) scale(1.018);
}

@keyframes loader-breath {
  from { transform: translate3d(-.55%, 1px, 0) scaleY(.95); }
  to { transform: translate3d(.55%, -1px, 0) scaleY(1.05); }
}

@keyframes loader-aura {
  from { margin-top: 5px; }
  to { margin-top: -5px; }
}

@keyframes loader-float-a {
  from { transform: translate3d(0, 5px, 0) rotate(-5deg); }
  to { transform: translate3d(10px, -8px, 0) rotate(9deg); }
}

@keyframes loader-float-b {
  from { transform: translate3d(0, 0, 0) rotate(8deg); }
  to { transform: translate3d(-12px, -10px, 0) rotate(-7deg); }
}

@keyframes loader-leaf {
  from { margin-top: 7px; opacity: .62; }
  to { margin-top: -7px; opacity: 1; }
}

@keyframes loader-arc {
  from { opacity: .5; }
  to { opacity: 1; }
}

@keyframes loader-spark {
  0%, 100% { opacity: .32; transform: scale(.72) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes loader-seeds {
  from { transform: translateY(5px); opacity: .45; }
  to { transform: translateY(-5px); opacity: 1; }
}

@keyframes loader-rosette {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes loader-diamond {
  from { opacity: .38; transform: rotate(45deg) scale(.82); }
  to { opacity: 1; transform: rotate(45deg) scale(1.08); }
}

@keyframes loader-beads {
  from { transform: translateY(7px); opacity: .38; }
  to { transform: translateY(-7px); opacity: .88; }
}

@media (max-width: 520px) {
  .site-loader__inner { width: min(370px, calc(100vw - 36px)); }
  .site-loader__wave {
    width: 100%;
    height: 102px;
    margin: 20px 0 16px;
    overflow: hidden;
  }
  .site-loader__meta { gap: 8px; }
  .site-loader__brandline { width: min(315px, 90%); gap: 10px; }
  .site-loader__brandline small { font-size: 9px; letter-spacing: .14em; }
  .site-loader__aura { width: min(560px, 125vw); }
  .loader-decor--orbit-a { left: -22px; top: 12%; transform: scale(.78); }
  .loader-decor--orbit-b { right: -30px; bottom: 11%; transform: scale(.72); }
  .loader-decor--leaf-a { left: 8%; bottom: 18%; transform: rotate(-19deg) scale(.72); }
  .loader-decor--leaf-b { right: 5%; top: 18%; transform: rotate(157deg) scale(.62); }
  .loader-decor--spark { right: 17%; top: 9%; }
  .loader-decor--seeds { left: 22%; top: 10%; }
  .loader-decor--arc-a,
  .loader-decor--arc-b { width: 150px; }
  .loader-decor--rosette-a { left: 5%; bottom: 5%; width: 48px; height: 48px; }
  .loader-decor--rosette-b { right: 5%; top: 5%; width: 40px; height: 40px; }
  .loader-decor--diamond-a { left: 38%; top: 6%; }
  .loader-decor--diamond-b { right: 34%; bottom: 6%; }
  .loader-decor--beads-a { right: 3%; }
  .loader-decor--beads-b { left: 3%; }
}

/* доступность: кастомный курсор прячет системный, поэтому клавиатурный фокус
   должен быть заметным — иначе по сайту невозможно ходить с таба */
:focus-visible {
  outline: 2px solid var(--honey-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #FCF8F1;
  font-size: 13px;
  font-weight: 600;
}

.skip:focus { left: 16px; }

/* ---------- 3. Живой фон ------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% 8%, #FDFAF4 0%, rgba(253, 250, 244, 0) 60%),
    radial-gradient(90% 70% at 92% 22%, #F7EFE1 0%, rgba(247, 239, 225, 0) 65%),
    radial-gradient(100% 90% at 50% 108%, #F2E9D8 0%, rgba(242, 233, 216, 0) 70%),
    var(--ivory);
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}

.bg__blob--a {
  width: 46vw; height: 46vw;
  left: -12vw; top: -8vw;
  background: radial-gradient(circle, rgba(226, 198, 143, .55), rgba(226, 198, 143, 0) 70%);
  animation: drift-a 34s var(--e-soft) infinite alternate;
}

.bg__blob--b {
  width: 40vw; height: 40vw;
  right: -10vw; top: 34vh;
  background: radial-gradient(circle, rgba(178, 194, 170, .40), rgba(178, 194, 170, 0) 70%);
  animation: drift-b 44s var(--e-soft) infinite alternate;
}

.bg__blob--c {
  width: 52vw; height: 52vw;
  left: 28vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(232, 209, 172, .45), rgba(232, 209, 172, 0) 70%);
  animation: drift-a 52s var(--e-soft) infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5vw, 6vh, 0) scale(1.14); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-6vw, -5vh, 0) scale(.92); }
}

/* ---------- 3b. Сцена: фигура за всем сайтом ------------------------------ */
.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;          /* кадр может быть шире экрана — не даём распирать */
}

/* прячем до входа только при живом JS — иначе фигура не появится вообще.
   Секунда на проявление: текст ждёт её и приходит следом (см. enter() в app.js) */
.js .stage { opacity: 0; transition: opacity 1s var(--e-soft); }
body.stage-in .stage { opacity: 1; }

.stage__canvas {
  width: 100%;
  height: 100%;
}

/* подменный фон в режиме ?bg= — та же геометрия, что у canvas */
/* Размер элемента = размер вписанного кадра (height + width:auto), а НЕ весь
   экран. Это принципиально: маска считается в координатах элемента, и при
   растянутом на весь экран img её проценты не совпадали с краями кадра —
   боковые границы оставались видны.
   height < 100% отодвигает камеру: у фигуры появляется воздух сверху и снизу,
   макушка и стопы не упираются в края. */
.stage__media {
  position: absolute;
  /* Строго по центру — так решено по композиции. Текст героя стоит слева и
     до фигуры не достаёт: колонка ограничена min(46ch, 44vw), а фигура внутри
     кадра занимает центральную треть. Проверено на 1100, 1440 и 1920; если
     будешь расширять колонку — перепроверь узкий десктоп, там зазор меньше
     всего. */
  /* В исходных кадрах центр фигуры на 16 px левее центра холста. Небольшая
     поправка возвращает женщину в геометрический центр и делает зазоры до
     левой текстовой колонки и правой формы одинаковыми. */
  left: calc(50% + 1.5vh);
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  /* больше 100%: кадр специально выше экрана, чтобы фигура была крупной.
     Запас фона по краям холста (см. README) как раз и позволяет обрезать
     верх и низ, не задев макушку и стопы. */
  height: 150%;
  max-width: none;
  object-fit: contain;
  /* Скраб рисуется в canvas, а у него ширина при width:auto берётся из атрибута
     width, а не из пропорций — без этой строки кадр растянуло бы по высоте
     и сплющило по ширине. Пропорция та же, что у расширенного холста. */
  aspect-ratio: 2400 / 1940;
  /* Края кадра растворяем в фоне страницы: у снятого материала всегда есть
     виньетка, и граница кадра иначе читается полосой. Радиус ровно 50% — тогда
     край элемента приходится на конец градиента и растворяется полностью.
     Работает только потому, что у кадра есть запас фона по краям (см. README):
     иначе маска съедала бы макушку и стопы. */
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 70%, transparent 100%);
}

/* На узком экране текст героя стоит снизу, поэтому кадр поднимаем и ужимаем —
   иначе фигура ложится прямо на заголовок.

   Размер подобран по САМОЙ ШИРОКОЙ позе практики, а не по стоячей: в ролике
   есть воин и треугольник, там размах рук занимает 49% ширины кадра. При
   прежних 88% (они подбирались под одну статичную картинку в Тадасане) кисти
   рук упирались в края экрана и срезались. 71% — размах влезает целиком
   с небольшими полями.

   Множителем --bg-k можно подогнать на лету: ?bgk=1.2 крупнее, ?bgk=0.9 мельче.
   Если набор поз поменяется, пересчитать так: ширина элемента = высота
   × 2400/1940, размах фигуры не должен превышать ~94% ширины экрана. */
@media (max-width: 860px) {
  .stage__media {
    left: 50%;
    top: 50svh;
    height: 168svh;
  }
}

/* низкие экраны: высоты не хватает, фигура упирается в заголовок */
@media (max-width: 860px) and (max-height: 700px) {
  .stage__media {
    top: 50svh;
    height: 168svh;
  }
}

/* зерно — «плёночная» текстура, убирает пластиковость градиентов */
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- 4. Курсор ---------------------------------------------------- */
.cur {
  position: fixed;
  top: 0; left: 0;
  z-index: 10030;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .35s var(--e-soft);
}

body.cur-on .cur { opacity: 1; }

.cur-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--honey-2);
}

.cur-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(169, 123, 59, .55);
  transition: width .3s var(--e-out), height .3s var(--e-out), margin .3s var(--e-out),
              border-color .3s var(--e-out), background-color .3s var(--e-out), opacity .35s var(--e-soft);
}

body.cur-hot .cur-ring {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(169, 123, 59, .8);
  background: rgba(226, 198, 143, .16);
}

body.cur-press .cur-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

@media (hover: hover) and (pointer: fine) {
  body.cur-on, body.cur-on * { cursor: none !important; }
}

@media (hover: none), (pointer: coarse) {
  .cur { display: none !important; }
}

/* ---------- 5. Прогресс-полоса ------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
  background: linear-gradient(90deg, var(--honey-soft), var(--honey));
  pointer-events: none;
}

/* ---------- 6. Шапка ------------------------------------------------------ */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px var(--pad);
  transform: translateY(-120%);
  transition: transform .85s var(--e-out), background-color .4s var(--e-soft),
              box-shadow .4s var(--e-soft), padding .4s var(--e-soft);
}

body.nav-in .hdr { transform: translateY(0); }

.hdr.is-solid {
  background: rgba(250, 246, 239, .82);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(96, 74, 42, .5);
  padding-top: 10px;
  padding-bottom: 10px;
}

body.nav-in .hdr.is-hidden { transform: translateY(-120%); }

.hdr__nav {
  display: flex;
  align-items: center;
  grid-column: 1;
  justify-self: start;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 253, 249, .6);
}

.hdr__nav a {
  position: relative;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .3s var(--e-soft), background-color .3s var(--e-soft);
}

.hdr__nav a:hover { color: var(--ink); background: rgba(233, 223, 204, .7); }

.hdr__nav a.is-active {
  color: #fff;
  background: var(--ink);
}

.hdr__logo {
  display: flex;
  align-items: center;
  grid-column: 2;
  justify-self: center;
  gap: 10px;
}

/* фирменный знак — растр 1.18:1, поэтому задаём высоту, ширина считается сама */
.hdr__mark {
  width: auto;
  height: 38px;
  flex: none;
}

.hdr__name {
  font-family: 'Prata', Georgia, serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .01em;
}

.hdr__aside {
  display: flex;
  align-items: center;
  grid-column: 3;
  justify-self: end;
  gap: 14px;
}

.hdr__tel {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: border-color .3s var(--e-soft), background-color .3s var(--e-soft);
}

.hdr__tel:hover { border-color: var(--honey); background: rgba(241, 225, 196, .5); }

.hdr__links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.hdr__links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--e-soft);
}

.hdr__links a:hover { color: var(--honey-2); }

/* Единое оформление ссылок на мессенджеры во всех разделах сайта. */
.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.messenger-link__icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: none;
  object-fit: contain;
}

/* В компактной десктопной шапке логотипы не должны спорить с навигацией. */
.hdr__links .messenger-link { gap: 5px; }
.hdr__links .messenger-link__icon { width: 14px; height: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  position: relative;
  flex: none;
}

.burger i {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .4s var(--e-out), opacity .25s var(--e-soft);
}

.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 26px; }

body.menu-open .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* мобильное меню */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 96px var(--pad) 40px;
  background: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity .45s var(--e-soft), transform .55s var(--e-out), visibility .45s;
}

body.menu-open .mmenu { opacity: 1; visibility: visible; transform: none; }

.mmenu a {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.mmenu__foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 7. Типографика и общие блоки --------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sec { padding-block: var(--sec-y); position: relative; }

/* ---------- 7b. Стеклянные панели над фигурой -----------------------------
   Контент едет поверх непрерывной практики. Тинт держит читаемость сам по
   себе: backdrop-filter над canvas браузеры молча роняют, поэтому blur здесь
   бонус, а не основа. В зазорах между панелями фигура видна в полную силу.
   -------------------------------------------------------------------------- */
.sec--pane {
  width: min(calc(100% - 2 * clamp(14px, 3.6vw, 60px)), 1480px);
  margin-inline: auto;
  /* зазор между панелями — окно, в котором фигура видна в полную силу */
  margin-block: clamp(34px, 4.4vw, 84px);
  padding-block: clamp(34px, 3.8vw, 62px);
  border-radius: clamp(22px, 2.6vw, 44px);
  border: 1px solid rgba(255, 255, 255, .55);
  background: var(--pane-tint);
  -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(1.12);
  backdrop-filter: blur(var(--pane-blur)) saturate(1.12);
  box-shadow: 0 24px 64px -60px rgba(96, 74, 42, .3),
              inset 0 1px 0 rgba(255, 255, 255, .38);
}

/* панель «въезжает» поверх фигуры.
   Прячем только при работающем JS (html.js): иначе при отвалившемся скрипте
   весь сайт остался бы пустым — панель скрывает секцию целиком. */
.js .pane-in {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s var(--e-out), transform 1.05s var(--e-out);
}

.pane-in.in { opacity: 1; transform: none; }

/* внутри панели квиз перестаёт быть коробкой — иначе три вложенных
   скруглённых блока подряд, и композиция «дробится» */
.sec--pane .quiz {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ---------- 7c. Спокойная зона (с «Вопросов») ----------------------------- */
.calm {
  position: relative;
  z-index: 1;
  margin-top: clamp(50px, 7vw, 110px);
  background: var(--ivory);
}

.calm::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: clamp(-160px, -14vw, -80px);
  height: clamp(80px, 14vw, 160px);
  background: linear-gradient(rgba(250, 246, 239, 0), var(--ivory));
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--honey-2);
}

.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}

.eyebrow--hero {
  gap: 10px;
  font-size: 12px;
  letter-spacing: .2em;
}

.eyebrow--hero::after {
  content: '';
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: .55;
}

.eyebrow--hero::before { width: 26px; flex: none; }

.eyebrow--hero > span {
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: 'Prata', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.012em;
  margin: 0;
}

.h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.02;
}

.h2 {
  font-size: clamp(28px, 3.9vw, 54px);
  line-height: 1.1;
}

.h3 {
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.25;
}

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
  color: var(--ink-2);
}

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

.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 2.8vw, 42px);
}

.sec__head p { margin: 14px 0 0; max-width: 46ch; }
.sec__head .h2 { margin-top: 16px; }

/* ---------- 8. Кнопки ---------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out),
              background-color .4s var(--e-soft), color .4s var(--e-soft), border-color .4s var(--e-soft);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .34) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .85s var(--e-out);
}

.btn:hover::after { transform: translateX(130%); }

.btn--dark {
  background: var(--ink);
  color: #FCF8F1;
  box-shadow: var(--sh-2);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
  background: #16120C;
}

.btn--honey {
  background: linear-gradient(135deg, var(--honey), var(--honey-2));
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(169, 123, 59, .8);
}

.btn--honey:hover { transform: translateY(-2px); box-shadow: 0 26px 54px -22px rgba(169, 123, 59, .9); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--ink); background: rgba(233, 223, 204, .5); transform: translateY(-2px); }

.btn--sm { padding: 11px 20px; font-size: 11px; letter-spacing: .1em; }

.btn--wide { width: 100%; }

/* мягкий «зов» у главной CTA */
.btn--pulse { animation: pulse 3.6s var(--e-soft) infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 18px 44px -24px rgba(96, 74, 42, .38), 0 0 0 0 rgba(192, 144, 74, .32); }
  55% { box-shadow: 0 18px 44px -24px rgba(96, 74, 42, .38), 0 0 0 16px rgba(192, 144, 74, 0); }
}

/* ---------- 9. Reveal ----------------------------------------------------- */
.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .95s var(--e-out), transform .95s var(--e-out), filter .95s var(--e-out);
  transition-delay: var(--d, 0ms);
  filter: blur(6px);
}

.rv.in { opacity: 1; transform: none; filter: none; }

/* «вылетающие» карточки — из глубины */
.js .fly {
  opacity: 0;
  transform: translateY(64px) scale(.9);
  filter: blur(12px);
  transition: opacity .8s var(--e-out), transform 1.05s var(--e-out), filter .6s var(--e-out);
  transition-delay: var(--d, 0ms);
}

.js .fly.fly--reset { transition: none !important; }
.fly.in { opacity: 1; transform: none; filter: none; }

/* ---------- 10. Герой ----------------------------------------------------- */
.hero {
  position: relative;
  /* Фигура не «кончается» вместе с героем, она продолжает практику за сайтом.
     Но и слишком коротким героя делать нельзя: на 160vh залипание длилось
     всего 60vh, и весь улёт заголовка укладывался в ~150 px прокрутки —
     два щелчка колеса, и текста нет. Здесь запас на неспешный улёт. */
  height: 220vh;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.hero__stage a, .hero__stage button { pointer-events: auto; }

/* Стык героя и контента.
   Панель входит в кадр, когда y > высота_героя − высота_сцены, то есть ровно
   в конце залипания. Поэтому улёт текста настроен так, чтобы закончиться там же
   (см. app.js, окно 0.32…1.0) — иначе между улетевшим текстом и первой панелью
   остаётся целый пустой кадр с одной фигурой.
   Небольшой отрицательный отступ даёт лёгкое перехлёстывание: панель начинает
   выезжать, пока текст ещё улетает. Значение должно быть МАЛЫМ — на −100vh,
   как я пробовал сначала, панель выезжает прямо на первый экран и режет
   фигуру с заголовком. */
.hero + .sec--pane { margin-top: -120px; }

/* Текст слева, форма справа, фигура ровно посередине.
   Обе колонки одной ширины и с одинаковым отступом от своего края — иначе
   симметрия рассыпается и фигура «съезжает». Ширина подобрана так, чтобы
   между колонкой и фигурой оставался воздух даже на самой широкой позе
   героя (руки разведены через стороны в первом переходе). */
.hero__copy,
.hero__form {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: var(--hero-column-width);
  transform: translateY(-50%);
  will-change: transform, opacity;
}

.hero__stage {
  --hero-column-width: clamp(306px, 25vw, 394px);
  --hero-column-gap: min(
    clamp(108px, 16vw, 305px),
    calc(50vw - var(--hero-column-width) - 16px)
  );
}

.hero__copy {
  left: auto;
  right: calc(50% + var(--hero-column-gap) - clamp(24px, 2vw, 36px) - 14px);
  transform-origin: 40% 50%;
}

.hero__form {
  right: auto;
  left: calc(50% + var(--hero-column-gap));
  transform-origin: 60% 50%;
  will-change: opacity;
  pointer-events: auto;
}

.hero__copy .eyebrow {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

@media (min-width: 861px) {
  .hero__copy .eyebrow { padding-right: 32px; }
}

.hero__title {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(42px, 5.15vw, 78px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
}

.hero__title em {
  font-style: normal;
  display: block;
  color: var(--honey-2);
}

.hero__sub {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero__desc {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: 18px;
  color: var(--muted);
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.hero__price b {
  font-family: 'Prata', Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.hero__price s { color: var(--muted-2); font-size: 12px; }

/* Построчная анимация текста сохраняет мягкий фокус. */
.js .hero__copy .ln {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition: opacity 1.1s var(--e-out), transform 1.1s var(--e-out), filter 1.1s var(--e-out);
  transition-delay: var(--d, 0ms);
}

body.hero-in .hero__copy .ln { opacity: 1; transform: none; filter: none; }

/* Форма появляется плавно, но без blur: мелкий текст и границы полей должны
   оставаться резкими на всём протяжении анимации. */
.js .hero__form .ln {
  opacity: 0;
  transition: opacity .8s var(--e-soft);
  transition-delay: var(--d, 0ms);
}

body.hero-in .hero__form .ln { opacity: 1; }

/* подпись асаны */
.hero__pose {
  position: absolute;
  left: var(--pad);
  bottom: clamp(96px, 12vh, 140px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.js .hero__pose { opacity: 0; transition: opacity .9s var(--e-soft); }

/* фон подменён картинкой или видео — названия асан к нему не относятся */
body.bg-swapped .hero__pose { display: none; }

/* локальный вейл: фигура может зайти на подпись — так она остаётся читаемой */
.hero__pose::before {
  content: '';
  position: absolute;
  left: -70px;
  top: -46px;
  width: 400px;
  height: 170px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 52% at 32% 46%,
      rgba(250, 246, 239, .94) 0%, rgba(250, 246, 239, .66) 45%, rgba(250, 246, 239, 0) 74%);
}

body.hero-in .hero__pose { opacity: 1; }

.hero__pose b {
  font-family: 'Prata', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .01em;
  transition: opacity .5s var(--e-soft), transform .5s var(--e-out);
}

.hero__pose span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity .5s var(--e-soft), transform .5s var(--e-out);
}

.hero__pose.swap b, .hero__pose.swap span { opacity: 0; transform: translateY(8px); }

.hero__pose-track {
  margin-top: 12px;
  display: flex;
  gap: 6px;
}

.hero__pose-track i {
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--line-2);
  transition: background-color .45s var(--e-soft), width .45s var(--e-out);
}

.hero__pose-track i.on { background: var(--honey); width: 26px; }

/* ---------- 11. Полоса цифр ---------------------------------------------- */
.stats {
  position: relative;
  z-index: 2;
  padding-block: clamp(26px, 3vw, 38px);
  /* плотнее остальных панелей: узкая полоса с мелкими подписями и без
     карточек, которые в других секциях прикрывают текст от силуэта */
  background: rgba(250, 246, 239, .62);
}

.stats__in {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  align-items: center;
  gap: 0;
}

.stats__lead {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.3;
  padding-right: 28px;
}

/* Единственная форма остаётся частью героя на десктопе. Пустая точка
   переноса становится секцией только в мобильной раскладке. */
.mobile-booking { display: none; }

.stat {
  padding-left: clamp(16px, 2vw, 32px);
  border-left: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- 12. Направления ----------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tab {
  padding: 11px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all .4s var(--e-out);
}

.tab:hover { border-color: var(--honey); color: var(--honey-2); }

.tab.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #FCF8F1;
}

.tab small {
  margin-left: 8px;
  opacity: .55;
  font-size: 10px;
  letter-spacing: .05em;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.panel { display: none; }
.panel.on { display: block; }

/* карточка занятия */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass-card);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .5s var(--e-soft);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
      rgba(226, 198, 143, .48), rgba(226, 198, 143, 0) 62%);
  transition: opacity .45s var(--e-soft);
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: rgba(192, 144, 74, .45);
  box-shadow: var(--sh-3);
}

.card__glyph {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  color: var(--honey-2);
  opacity: .9;
}

.card__t {
  font-family: 'Prata', Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.card__d {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.card__meta {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* раскрывающиеся подробности занятия */
.card__more {
  overflow: hidden;
  height: 0;
  transition: height .5s var(--e-out);
}

.card__more-inner {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card__more p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.card__more p + p { margin-top: 8px; }
.card__more strong { font-weight: 650; color: var(--ink); }

.pill {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 253, 249, .7);
}

.card__act {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  gap: 8px;
}

/* карточка-CTA внутри сетки */
.card--cta {
  justify-content: center;
  background: linear-gradient(168deg, #EFE6D4 0%, #E4D6BC 100%);
  border-color: rgba(192, 144, 74, .3);
}

.card--cta .card__t { font-size: 24px; }

/* ---------- 13. Квиз ------------------------------------------------------ */
.quiz {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #FDFBF7, var(--cream));
  box-shadow: var(--sh-2);
}

.quiz__box {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 253, 249, .78);
  box-shadow: var(--sh-1);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.quiz__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.quiz__bar i {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: var(--sand);
  transition: background-color .5s var(--e-soft);
}

.quiz__bar i.on { background: var(--honey); }

.quiz__step { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.quiz__q {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.25;
  margin: 10px 0 22px;
}

.quiz__opts { display: flex; flex-direction: column; gap: 10px; }

.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ivory-2);
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
  transition: all .35s var(--e-out);
}

.opt i {
  flex: none;
  width: 17px; height: 17px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
  transition: all .35s var(--e-out);
}

.opt i::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--honey);
  transform: scale(0);
  transition: transform .35s var(--e-out);
}

.opt:hover { border-color: var(--honey); background: #FFFDF9; transform: translateX(3px); }
.opt.on { border-color: var(--honey); background: rgba(241, 225, 196, .5); }
.opt.on i { border-color: var(--honey); }
.opt.on i::after { transform: scale(1); }

.quiz__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz__back {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--e-soft);
}

.quiz__back:hover { color: var(--ink); }
.quiz__back[hidden] { visibility: hidden; display: block; }

/* результат */
.quiz__res { display: none; flex-direction: column; height: 100%; }
.quiz__res.on { display: flex; animation: fadeUp .7s var(--e-out) both; }
.quiz__q-wrap.off { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.res__list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }

.res__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(192, 144, 74, .32);
  border-radius: var(--r);
  background: rgba(241, 225, 196, .38);
}

.res__item b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 17px; }
.res__item span { margin-left: auto; font-size: 12px; color: var(--muted); }

.res__num {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--honey);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- 14. Форматы --------------------------------------------------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.fmt {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(255, 253, 249, .9), rgba(240, 232, 218, .78));
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .5s var(--e-soft);
}

.fmt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
      rgba(214, 220, 207, .6), rgba(214, 220, 207, 0) 60%);
  transition: opacity .45s var(--e-soft);
}

.fmt:hover::before { opacity: 1; }
.fmt:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: rgba(127, 142, 120, .45); }

.fmt__n {
  font-family: 'Prata', Georgia, serif;
  font-size: 13px;
  color: var(--honey-2);
  letter-spacing: .1em;
}

.fmt h3 { margin: 14px 0 12px; font-size: clamp(20px, 1.45vw, 24px); line-height: 1.3; }
.fmt p { margin: 0; color: var(--muted); font-size: 15px; }

.fmt__tail {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.fmt__tail b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 20px; color: var(--ink); }

/* ---------- 15. О студии -------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 30px;
  align-items: stretch;
}

.about__title {
  margin: 16px 0 24px;
  font-size: clamp(32px, 3.6vw, 50px);
}

.about > .rv:nth-child(2) {
  display: flex;
  padding-top: 0;
}

.about__quote {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(26px, 2.4vw, 36px);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, rgba(239, 230, 212, .6), rgba(226, 211, 184, .48));
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.about__quote::before {
  content: '\201C';
  position: absolute;
  top: 6px; left: 20px;
  font-family: 'Prata', Georgia, serif;
  font-size: 116px;
  line-height: 1;
  color: rgba(255, 255, 255, .62);
  pointer-events: none;
}

.about__quote p {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(20px, 1.45vw, 23px);
  line-height: 1.4;
  text-align: left;
  text-wrap: balance;
}

.about__who {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding-top: 15px;
  border-top: 1px solid rgba(111, 92, 65, .14);
}

.about__portrait {
  width: clamp(116px, 8vw, 132px);
  aspect-ratio: 1;
  flex: none;
  margin: 0;
  border-radius: 50%;
  filter: drop-shadow(0 15px 24px rgba(92, 67, 34, .15));
  transform: rotate(-1.2deg);
}

.about__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about__who-copy {
  min-width: 0;
}

.about__who b {
  display: block;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.1;
}

.about__who span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--ink-2);
}

.about p.lead + p.lead { margin-top: 18px; }

.marks {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about__marks {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
}

.mark svg { flex: none; width: 20px; height: 20px; color: var(--honey); margin-top: 2px; }

/* ---------- 16. Абонементы ----------------------------------------------- */
.price-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 253, 249, .45);
}

.price-rule {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: calc(var(--r-lg) - 9px);
  background: rgba(255, 255, 255, .42);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: color .35s var(--e-soft), background-color .35s var(--e-soft),
              box-shadow .35s var(--e-soft), transform .35s var(--e-out);
}

.price-rule:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .72); }

.price-rule:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}

.price-rule.is-active {
  background: rgba(45, 39, 31, .09);
  box-shadow: inset 0 0 0 1px rgba(192, 144, 74, .18);
}

.price-rule span {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-rule b {
  flex: none;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1;
  color: var(--honey-2);
}

.price-rule--base b { font-family: inherit; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.plans.is-switching { pointer-events: none; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass-card);
  cursor: pointer;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .4s var(--e-soft);
}

.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: rgba(192, 144, 74, .4); }
.plan:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }

.plan.price-leave {
  animation: plan-price-leave .16s ease-in both;
  animation-delay: calc(var(--price-order) * 28ms);
}

.plan.price-enter {
  animation: plan-price-enter .48s var(--e-out) both;
  animation-delay: calc(var(--price-order) * 70ms);
}

@keyframes plan-price-leave {
  to { opacity: 0; transform: translateY(-10px) scale(.985); }
}

@keyframes plan-price-enter {
  from { opacity: 0; transform: translateY(24px) scale(.975); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plan.price-leave {
    animation-duration: .16s !important;
    animation-delay: calc(var(--price-order) * 28ms) !important;
  }
  .plan.price-enter {
    animation-duration: .48s !important;
    animation-delay: calc(var(--price-order) * 70ms) !important;
  }
}

.plan--hot {
  background: linear-gradient(170deg, #2E2820, #1C1811);
  border-color: transparent;
  color: #F3ECDF;
  box-shadow: var(--sh-3);
}

.plan--hot .plan__f li { color: rgba(243, 236, 223, .78); border-color: rgba(255, 255, 255, .1); }
.plan--hot .plan__term { color: rgba(243, 236, 223, .6); }
.plan--hot .plan__note { color: rgba(243, 236, 223, .55); }

.plan__badge {
  position: absolute;
  top: 15px; right: 15px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--honey);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plan__term { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

.plan__t {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  margin: 10px 0 4px;
}

.plan__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plan--hot .plan__pricing { border-color: rgba(255, 255, 255, .12); }

.plan__price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.plan__price-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.plan--hot .plan__price-label { color: rgba(243, 236, 223, .5); }

.plan__price-values { display: flex; align-items: baseline; gap: 8px; }

.plan__price b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: clamp(17px, 1.45vw, 21px); }
.plan__price s { font-size: 12px; opacity: .5; }
.plan__price s[hidden] { display: none; }

.plan__monthly {
  margin: 0;
  color: var(--honey-2);
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1;
  white-space: nowrap;
}

.plan__monthly span {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.plan--hot .plan__monthly { color: #E7C78E; }
.plan--hot .plan__monthly span { color: rgba(243, 236, 223, .55); }

.plan__f {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
}

.plan__f li {
  min-height: 64px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.02vw, 16px);
  line-height: 1.4;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.plan__f li::before { content: '—'; color: var(--honey); flex: none; }

.plan__f li:nth-child(n + 4) { display: none; }

.plan__hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--honey-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.plan__hint b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(192, 144, 74, .42);
  border-radius: 50%;
  font-size: 14px;
  transition: transform .35s var(--e-out), background-color .35s var(--e-soft);
}

.plan:hover .plan__hint b { transform: rotate(12deg) scale(1.08); background: rgba(192, 144, 74, .12); }
.plan--hot .plan__hint { color: #E7C78E; }
.plan--hot .plan__hint b { border-color: rgba(231, 199, 142, .38); }

.plan__note {
  position: absolute;
  top: 25px;
  right: 24px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(192, 144, 74, .28);
  border-radius: var(--r-pill);
  background: rgba(255, 252, 246, .58);
  font-size: 10px;
  line-height: 1.2;
  color: var(--honey-2);
}

.plan__note[hidden] {
  display: none;
}

body.plan-modal-open { overflow: hidden; }

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  transition: opacity .24s var(--e-soft);
}

.plan-modal[hidden] { display: none; }
.plan-modal.is-open { opacity: 1; }

.plan-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 21, .46);
  backdrop-filter: blur(10px);
}

.plan-modal__dialog {
  position: relative;
  width: min(700px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(192, 144, 74, .2);
  border-radius: var(--r-xl);
  background: rgba(255, 252, 246, .98);
  box-shadow: 0 34px 90px rgba(39, 29, 18, .26);
  transform: translateY(18px) scale(.985);
  transition: transform .32s var(--e-out);
}

.plan-modal.is-open .plan-modal__dialog { transform: none; }

.plan-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform .3s var(--e-out), background-color .3s var(--e-soft);
}

.plan-modal__close:hover { transform: rotate(8deg); background: rgba(192, 144, 74, .1); }
.plan-modal__term { color: var(--honey-2); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.plan-modal__title { margin: 10px 48px 0 0; font-family: 'Prata', Georgia, serif; font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.1; }

.plan-modal__pricing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.plan-modal__monthly { color: var(--honey-2); font-family: 'Prata', Georgia, serif; font-size: clamp(27px, 4vw, 38px); }

.plan-modal__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.plan-modal__features li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.plan-modal__features li::before { content: '—'; flex: none; color: var(--honey); }
.plan-modal__note { margin: -10px 0 20px; color: var(--honey-2); font-size: 13px; font-weight: 600; }

/* Мобильное окно с подробностями занятия использует ту же визуальную
   систему, что и окно абонемента, но без ценового блока. */
.direction-modal__dialog { width: min(620px, 100%); }
.direction-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.direction-modal__intro {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.direction-modal__features { margin-top: 16px; }

/* ---------- 17. Акции ----------------------------------------------------- */
.promo {
  position: relative;
  padding: clamp(26px, 3vw, 48px);
  border-radius: var(--r-xl);
  /* тёплый акцент, но полупрозрачный: сплошная плита внутри стеклянной
     панели была самым тяжёлым пятном на странице */
  background: linear-gradient(140deg, rgba(239, 230, 212, .62) 0%,
              rgba(227, 212, 185, .5) 55%, rgba(220, 204, 174, .46) 100%);
  border: 1px solid rgba(255, 255, 255, .4);
  overflow: hidden;
}

.promo__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.offer {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--r);
  background: rgba(255, 253, 249, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .45s var(--e-out), background-color .45s var(--e-soft);
}

.offer:hover { transform: translateY(-3px); background: rgba(255, 253, 249, .9); }

.offer b {
  display: block;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1;
  color: var(--honey-2);
}

.offer span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

.trial {
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #F3ECDF;
  box-shadow: var(--sh-3);
}

.trial .eyebrow { color: var(--honey-soft); }

.trial__p {
  margin: 16px 0 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.trial__p b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: clamp(38px, 4vw, 60px); line-height: 1; }
.trial__p s { color: rgba(243, 236, 223, .5); font-size: 16px; }
.trial p { color: rgba(243, 236, 223, .72); font-size: 14px; }

/* ---------- 18. Преподаватели --------------------------------------------- */
.teachers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}

.tch {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass-card);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}

.tch:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }

.tch {
  display: flex;
  flex-direction: column;
}

.tch__ph {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(64% 54% at 50% 36%, rgba(255, 253, 249, .92), rgba(255, 253, 249, 0) 72%),
    linear-gradient(165deg, #EEE5D5, #DECFB6);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.tch__fig,
.tch__ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tch__ph img {
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform .8s var(--e-out), filter .5s var(--e-out);
}

.tch:hover .tch__ph img { transform: scale(1.025); }

.tch__ph small {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px 6px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: var(--r-pill);
  background: rgba(251, 247, 240, .76);
  box-shadow: 0 8px 20px rgba(48, 38, 25, .08);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(38, 33, 25, .7);
}

.tch__b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tch__b h3 {
  margin: 0;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(27px, 2.25vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.tch__b > b {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.tch__b > p {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.tch__tags { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tch__tags .pill { background: rgba(255, 252, 247, .46); }

@media (min-width: 1181px) {
  #teachers > .wrap {
    max-width: none;
    padding-inline: clamp(22px, 2.2vw, 34px);
  }

  #teachers .teachers { gap: clamp(14px, 1.35vw, 21px); }
}

/* ---------- 19. Преимущества ---------------------------------------------- */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.rev {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass-card);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}

.rev:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }

.rev__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--honey-pale);
  color: var(--honey-2);
}

.rev__icon svg { width: 19px; height: 19px; }
.rev p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.rev__who {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev__ava {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand-2);
  color: var(--ink);
  font-family: 'Prata', Georgia, serif;
  font-size: 15px;
}

.rev__who b { display: block; font-size: 14px; font-weight: 600; }
.rev__who span { font-size: 12px; color: var(--muted); }

.rev-links {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 20. FAQ ------------------------------------------------------- */
.faq { display: grid; grid-template-columns: 1fr; gap: 0; }

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

.qa:first-child { border-top: 1px solid var(--line); }

.qa__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.3;
  transition: color .3s var(--e-soft);
}

.qa__q:hover { color: var(--honey-2); }

.qa__ic {
  margin-left: auto;
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
  transition: all .45s var(--e-out);
}

.qa__ic::before, .qa__ic::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.4px;
  margin: -.7px 0 0 -6px;
  background: currentColor;
  transition: transform .45s var(--e-out);
}

.qa__ic::after { transform: rotate(90deg); }

.qa.on .qa__ic { background: var(--ink); color: #FCF8F1; border-color: var(--ink); transform: rotate(180deg); }
.qa.on .qa__ic::after { transform: rotate(0deg); }

.qa__a {
  overflow: hidden;
  height: 0;
  transition: height .55s var(--e-out);
}

.qa__a p {
  margin: 0;
  padding: 0 60px 26px 4px;
  color: var(--muted);
  max-width: 82ch;
}

/* ---------- 21. Контакты -------------------------------------------------- */
/* Колонки контактов — пара, а не два разных блока.
   Слева был голый текст, справа плотная карточка с тенью: они читались как
   куски из разных макетов. Теперь обе стоят на одной сетке (надстрочник →
   заголовок → описание → содержимое), список получил такую же подложку, что
   и форма, только легче — акцент остаётся на форме. Низ выровнен: форма
   растягивается на высоту колонки. */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}

.contacts > .rv { display: flex; flex-direction: column; }
.contacts > .rv:first-child .cnt__list { margin-top: auto; }
.contacts .form { height: 100%; padding: clamp(26px, 2.5vw, 34px); }

/* Поля в два столбца. В один столбец форма становится выше левой колонки,
   и на широких экранах (где текст слева переносится в меньшее число строк)
   она начинает сама задавать высоту секции — заголовок и карточки контактов
   разъезжаются. Пустота внутри карточки убрана иначе: кнопка прижата к низу,
   см. .contacts .form__body ниже. */
/* Поля в один столбец: так они шире и карточка заполняется. Чтобы карточка
   при этом НЕ выросла и не растянула секцию, внутренние отступы формы у
   контактов ужаты — см. блок «плотная раскладка» ниже. */
.contacts .form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.contacts .form__body .btn { margin-top: 18px; }
.contacts .consent__item {
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
}
.contacts .consent__item input { margin-top: 0; }

.cnt__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 8px clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass-1);
}

.cnt__list li {
  display: flex;
  min-width: 0;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cnt__list li:nth-child(odd) {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.cnt__list li:nth-child(even) { padding-left: 20px; }
.cnt__list li:nth-last-child(-n + 2) { border-bottom: 0; }

/* без внешних линий: рамка подложки уже держит границу */
.cnt__list li:last-child { border-bottom: 0; }

.cnt__list svg { flex: none; width: 20px; height: 20px; color: var(--honey-2); margin-top: 3px; }
.cnt__list b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cnt__list span { display: block; margin-top: 4px; font-size: 16px; }

/* Мессенджеры — не строка через точку, а пара значков с подписью.
   Здесь стоят НАСТОЯЩИЕ фирменные логотипы картинками (assets/ic-*.png),
   а не перерисовка контуром: чужой знак по памяти узнаваемым не выходит. */
/* Селектор с тегом намеренно: выше по файлу стоит `.cnt__list span`
   с `display:block`, и у него специфичность больше, чем у голого класса —
   флекс не включался, а вместе с ним игнорировался и gap.
   Между парами вдвое больше, чем внутри пары (8 px), иначе «Telegram» и знак
   MAX слипаются в одну строку. */
.cnt__list span.cnt__msg { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.cnt__msg a {
  gap: 8px;
  border-bottom: 0;
}

.cnt__msg img {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  transition: transform .3s var(--e-soft);
}

.cnt__msg a:hover img { transform: translateY(-1px); }

.ftr__col .messenger-link__icon { width: 17px; height: 17px; }

/* карта */
.map {
  margin-top: clamp(40px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--sh-2);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 32vw, 400px);
  border: 0;
  /* приглушаем «зелёно-белую» карту под тёплую палитру сайта */
  filter: saturate(.5) sepia(.3) contrast(.95) brightness(1.02);
}

.map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.form {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass-card);
  box-shadow: var(--sh-2);
}

.form h3 { font-size: clamp(21px, 1.8vw, 28px); margin: 0 0 8px; }
.form > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }

/* Тот же зачин, что у левой колонки: надстрочник → заголовок → описание.
   Без него форма начиналась сразу с заголовка и не рифмовалась с «Контакты». */
.form .eyebrow { display: block; margin-bottom: 14px; }
.form__body > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #FFFDF9;
  font-size: 15px;
  transition: border-color .3s var(--e-soft), box-shadow .3s var(--e-soft);
  appearance: none;
}

.field select {
  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 1l5 5 5-5' stroke='%23877C6D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 4px rgba(192, 144, 74, .14);
}

.form__ok {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Ссылка на Политику обязана быть видимой ссылкой, а не текстом:
   согласие считается информированным, только если с условиями можно
   реально ознакомиться. */
.form__ok a { color: var(--honey-2); border-bottom: 1px solid rgba(169, 123, 59, .35); }

.form__done {
  display: none;
  padding: 30px 0;
  text-align: center;
}

.form__done.on { display: block; animation: fadeUp .6s var(--e-out) both; }

/* Форма в герое: компактнее и легче — она стоит поверх живого кадра, а не
   на плотной секции, и не должна спорить с фигурой. Стекло здесь плотнее
   обычной панели: под ней движется картинка, и поля иначе не читаются. */
.form--hero {
  padding: clamp(20px, 1.9vw, 28px);
  padding-top: 18px;
  padding-bottom: 18px;
  background: linear-gradient(168deg, #FFFDF9, #F6EEE2);
}

.hero__form-copy {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero__form-copy > span {
  display: block;
  margin-bottom: 9px;
  color: var(--honey-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.hero__form-copy h2 {
  margin: 0;
  font-size: clamp(20px, 1.35vw, 23px);
  line-height: 1.25;
}

.hero__form-copy p {
  margin: 9px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.form--hero .field { margin-bottom: 11px; }
.form--hero .field label { color: var(--ink-2); }
.form--hero .field input { padding: 12px 14px; color: var(--ink); }
.form--hero .field input::placeholder { color: #71685C; opacity: 1; }
.form--hero .form__ok {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}
.form--hero .form__done { padding: 18px 0; }
.form--hero .form__done svg { width: 42px; height: 42px; margin-bottom: 12px; }
.form--hero .form__done b { font-size: 21px; }

/* цена — шапка формы, а не строка рядом с кнопкой */
.form--hero .hero__price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hero__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.form--hero .hero__fields .field { margin-bottom: 0; }
.form--hero .btn {
  margin-top: 16px;
  padding-inline: 20px;
  font-size: 11px;
  letter-spacing: .1em;
}

.form__done svg { width: 52px; height: 52px; margin: 0 auto 16px; color: var(--honey); }
.form__done b { display: block; font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.form__done span { color: var(--muted); font-size: 14px; }
.form.sent .form__body { display: none; }

/* ---------- 22. Подвал ---------------------------------------------------- */
.ftr {
  position: relative;
  z-index: 1;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding-block: clamp(30px, 3vw, 42px) 20px;
}

.ftr__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 38px);
  padding-bottom: 24px;
}

.ftr__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ftr__brand img { width: auto; height: 36px; flex: none; }
.ftr__brand b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 20px; }
.ftr__col p { margin: 0; font-size: 14px; color: var(--muted); max-width: 34ch; }

.ftr__top .ftr__col:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Авторская подпись без отдельной плашки: цветовой перелив даёт характер,
   но сама композиция остаётся частью спокойной типографики футера. */
.ftr__made {
  position: relative;
  margin-top: auto;
  padding-top: 17px;
  line-height: 1.05;
}

.ftr__made span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .035em;
}

.ftr__made strong {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  padding-bottom: 5px;
  overflow: hidden;
  color: #7FAE2C;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .085em;
  white-space: nowrap;
}

.ftr__made strong::before {
  content: attr(data-text);
  position: absolute;
  inset: 0 0 5px;
  z-index: 1;
  color: transparent;
  background: linear-gradient(100deg, rgba(209, 255, 114, 0) 28%, #D1FF72 50%, rgba(209, 255, 114, 0) 72%);
  background-size: 42% 100%;
  background-repeat: no-repeat;
  background-position: -120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  animation: made-shimmer 3.8s linear infinite;
}

.ftr__made strong::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(102, 142, 33, 0), rgba(190, 244, 83, .76), rgba(102, 142, 33, 0));
  transform-origin: center;
  animation: made-line 3.8s ease-in-out infinite alternate;
}

@keyframes made-shimmer {
  0% { background-position: -120% 0; opacity: 0; }
  4% { opacity: 1; }
  96% { opacity: 1; }
  100% { background-position: 220% 0; opacity: 0; }
}

@keyframes made-line {
  from { opacity: .24; transform: translateX(-16%) scaleX(.38); }
  to { opacity: .72; transform: translateX(16%) scaleX(.82); }
}

/* Небольшой цветовой перелив не двигает интерфейс и остаётся активным даже
   при системном reduce-motion. Остальная хореография сайта по-прежнему
   полностью подчиняется пользовательской настройке. */
@media (prefers-reduced-motion: reduce) {
  .ftr__made strong::before,
  .ftr__made strong::after {
    animation-duration: 3.8s !important;
    animation-iteration-count: infinite !important;
  }
}

.ftr__col h4 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ftr__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ftr__col li a { font-size: 14px; color: var(--ink-2); transition: color .3s var(--e-soft); }
.ftr__col li a:hover { color: var(--honey-2); }
.ftr__socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }

.ftr__bot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.ftr__bot a:hover { color: var(--honey-2); }

/* наверх */
.totop {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 100;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(250, 246, 239, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all .5s var(--e-out);
}

body.scrolled-far .totop { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ink); color: #FCF8F1; border-color: var(--ink); }
.totop svg { width: 17px; height: 17px; }
.totop__mobile { display: none; }

/* ---------- 23. Адаптив --------------------------------------------------- */
@media (max-width: 1700px) {
  .hdr__nav a {
    padding-inline: 10px;
    font-size: 10px;
    letter-spacing: .08em;
  }
}

@media (max-width: 1500px) {
  .hdr__nav { display: none; }
  .burger { display: block; }
}

@media (max-width: 1180px) {
  .hdr { display: flex; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdr__nav { display: none; }
  .burger { display: block; }
  .hdr__logo { margin-right: auto; margin-left: 0; }
}

@media (max-width: 1024px) {
  .stats__in { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stats__lead { grid-column: 1 / -1; padding-right: 0; }
  .stat:nth-child(2) { padding-left: 0; border-left: 0; }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .quiz { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about > .rv:nth-child(2) { padding-top: 0; }
  .about__marks { grid-column: 1; grid-template-columns: repeat(2, 1fr); }
  .promo__grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .contacts > .rv:first-child .cnt__list { margin-top: 24px; }
  .contacts .form { height: auto; }
  .formats { grid-template-columns: 1fr; }
  .revs { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .hdr__links { display: none; }
}

@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-height: 300px; }

  /* Герой на узком экране: фигура, текст и компактная форма идут сверху вниз.
     Форма больше не остаётся правой колонкой — иначе её сжимало до 120 px. */
  .hero { height: 165vh; height: 165svh; }
  .hero + .sec--pane { margin-top: 16px; }

  /* Первый экран — только практика на фоне. Исходный текст и служебная
     подпись позы остаются в DOM для десктопа, но на телефоне не рисуются. */
  .hero__copy,
  .hero__pose,
  .hero__stage > .hero__form { display: none; }

  .hero__copy {
    left: var(--pad);
    right: var(--pad);
    width: auto;
    top: auto;
    bottom: 300px;
    transform: none;
    transform-origin: 50% 60%;
    text-align: center;
    isolation: isolate;
  }

  .hero__copy::before {
    content: none;
  }

  .hero__form {
    left: var(--pad);
    right: var(--pad);
    top: auto;
    bottom: 16px;
    width: auto;
    transform: none;
    transform-origin: 50% 60%;
  }

  /* После мобильного переноса форма идёт отдельной компактной карточкой:
     после статистики и непосредственно перед разделом занятий. */
  .mobile-booking {
    display: block;
    position: relative;
    z-index: 3;
    width: min(calc(100% - 28px), 620px);
    margin: 18px auto;
    padding: 0;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .mobile-booking__in { padding: 0; }

  .mobile-booking .hero__form {
    position: relative;
    inset: auto;
    display: block;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    pointer-events: auto !important;
    will-change: auto;
    scroll-margin-top: 82px;
  }

  body.hero-in .hero__copy,
  body.hero-in .hero__form {
    transform: translate3d(0, calc(var(--hero-mobile-exit, 0) * -34px), 0);
    opacity: calc(1 - var(--hero-mobile-exit, 0) * 1.1);
  }

  .hero__stage.hero-mobile-gone .hero__copy,
  .hero__stage.hero-mobile-gone .hero__form { pointer-events: none; }

  .form--hero {
    padding: 14px;
    border-radius: 24px;
  }

  .hero__form-copy { margin-bottom: 10px; padding-bottom: 10px; }
  .hero__form-copy > span,
  .hero__form-copy p { display: none; }
  .hero__form-copy h2 { font-size: 18px; }

  .form--hero .hero__price {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .form--hero .hero__price b { font-size: 22px; }

  .hero__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .form--hero .field { margin-bottom: 0; }
  .form--hero .field label { margin-bottom: 5px; font-size: 9.5px; }
  /* 16 px не даёт мобильному Safari увеличивать всю страницу при фокусе. */
  .form--hero .field input { padding: 10px 11px; font-size: 16px; }
  .form--hero .btn { min-height: 44px; margin-top: 12px; font-size: 10px; }
  .form--hero .form__ok { margin-top: 8px; font-size: 10.5px; }

  /* Обе мобильные формы рифмуются с панелью «Занятия»: тот же молочный
     полупрозрачный слой, тонкая светлая кромка и спокойная золотая метка. */
  .mobile-booking .form--hero,
  #bookForm {
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 28px;
    background: rgba(250, 246, 239, .78);
    -webkit-backdrop-filter: blur(3px) saturate(1.04);
    backdrop-filter: blur(3px) saturate(1.04);
    box-shadow: 0 24px 64px -60px rgba(96, 74, 42, .34),
                inset 0 1px 0 rgba(255, 255, 255, .42);
  }

  #bookForm { scroll-margin-top: 82px; }

  .mobile-booking .form--hero { padding: 22px 20px 20px; }
  .mobile-booking .hero__form-copy {
    margin-bottom: 16px;
    padding-bottom: 15px;
  }
  .mobile-booking .hero__form-copy > span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-align: left;
  }
  .mobile-booking .hero__form-copy > span::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--honey);
  }
  .mobile-booking .hero__form-copy h2 {
    font-family: 'Prata', Georgia, serif;
    font-size: clamp(24px, 7vw, 30px);
    font-weight: 400;
    line-height: 1.2;
  }
  .mobile-booking .hero__form-copy p {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  /* Системный сдвиг страницы при появлении клавиатуры не должен запускать
     исчезновение формы, пока пользователь вводит имя или телефон. */
  body.hero-in .hero__form:focus-within,
  body.hero-in.hero-form-keyboard .hero__form {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero__stage.hero-mobile-gone .hero__form:focus-within,
  body.hero-form-keyboard .hero__stage.hero-mobile-gone .hero__form { pointer-events: auto; }

  .hero__desc { display: none; }
  .hero__pose { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 96px); }
  .hero__pose::before { left: -50px; top: -34px; width: 300px; height: 140px; }
  .hero__copy .eyebrow { margin-bottom: 12px; }
  .hero__copy .ln,
  .hero__title,
  .hero__sub { width: 100%; text-align: center; }
  .hero__copy .eyebrow,
  .hero__sub {
    color: #FFF9EF;
    -webkit-text-stroke: .48px rgba(48, 37, 26, .92);
    paint-order: stroke fill;
    text-shadow: 0 2px 4px rgba(30, 23, 16, .96),
                 0 0 7px rgba(30, 23, 16, .72);
  }
  .hero__title em {
    color: #E5BC75;
    -webkit-text-stroke: .75px rgba(48, 37, 26, .9);
    paint-order: stroke fill;
    text-shadow: 0 2px 5px rgba(30, 23, 16, .94),
                 0 0 11px rgba(250, 246, 239, .94),
                 0 0 20px rgba(250, 246, 239, .66);
  }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .hero__sub { margin-top: 12px; font-size: 12px; }
  .hero__cta { margin-top: 24px; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .hero__copy { bottom: 250px; }
  .hero__title { font-size: clamp(34px, 9vw, 42px); }
  .form--hero { padding: 12px; }
  .form--hero .hero__price { margin-bottom: 8px; padding-bottom: 8px; }
  .form--hero .form__ok { display: none; }
}

@media (max-width: 620px) {
  :root { --gap: 14px; }

  /* Полностью сбрасываем нативную геометрию button в iOS Safari.
     Крестик рисуется линиями, поэтому его размер и центрирование больше
     не зависят от системного шрифта смартфона. */
  .plan-modal__close {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 9999px;
    font-size: 0;
    line-height: 0;
  }

  .plan-modal__close::before,
  .plan-modal__close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .plan-modal__close::before { transform: rotate(45deg); }
  .plan-modal__close::after { transform: rotate(-45deg); }

  .about__quote { min-height: 436px; }
  .about__quote p {
    display: block;
    flex: none;
    padding-top: 34px;
    font-size: 19px;
    line-height: 1.45;
    text-wrap: pretty;
  }
  .about__who { margin-top: auto; }
  .eyebrow--hero { gap: 8px; font-size: 9px; }
  .eyebrow--hero::before,
  .eyebrow--hero::after { width: 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 0; padding: 24px 20px 19px; }
  .plan__t { margin-top: 8px; }
  .plan__pricing { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 14px; padding-bottom: 13px; }
  .plan__price { align-items: flex-start; }
  .plan__f { grid-template-columns: 1fr; margin-top: 10px; }
  .plan__f li { min-height: 0; padding: 9px 0; line-height: 1.35; }
  .plan__hint { margin-top: 12px; padding-top: 9px; }
  .plan__note { top: 18px; right: 18px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
  .plan-modal { padding: 10px; }
  .plan-modal__dialog { max-height: calc(100dvh - 20px); padding: 25px 20px 20px; border-radius: 24px; }
  .plan-modal__pricing { align-items: flex-start; flex-direction: column; gap: 12px; }
  .plan-modal__features { grid-template-columns: 1fr; }
  .price-rules { grid-template-columns: 1fr; }
  .teachers { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .marks { grid-template-columns: 1fr; }
  .about__marks { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .ftr__top .ftr__col:first-child,
  .ftr__top .ftr__col:last-child { grid-column: 1 / -1; }
  .stats__in { grid-template-columns: 1fr 1fr; }
  .contacts .form__row { grid-template-columns: 1fr; gap: 0; }
  .cnt__list { grid-template-columns: 1fr; }
  .cnt__list li:nth-child(n) {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cnt__list li:last-child { border-bottom: 0; }
  .qa__a p { padding-right: 10px; }
  .hdr__tel { display: none; }
  .tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin-top: 34px;
    margin-bottom: 26px;
    padding: 23px 9px 10px;
    border: 0;
    border-radius: 24px;
  }
  .tabs::before {
    content: 'Выберите категорию';
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    padding: 0 11px;
    color: var(--honey-2);
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -50%);
  }
  .tabs::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 1px dashed rgba(169, 123, 59, .62);
    border-radius: 24px;
    pointer-events: none;
    /* Не маскируем линию плашкой: вырезаем в самой верхней границе
       прозрачный промежуток точно под подпись. */
    -webkit-clip-path: polygon(0 0, calc(50% - 76px) 0, calc(50% - 76px) 3px, calc(50% + 76px) 3px, calc(50% + 76px) 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, calc(50% - 76px) 0, calc(50% - 76px) 3px, calc(50% + 76px) 3px, calc(50% + 76px) 0, 100% 0, 100% 100%, 0 100%);
  }
  .tab {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 11px 13px;
    font-size: 9.5px;
    letter-spacing: .075em;
    text-align: left;
  }
  .tab small { margin-left: 0; flex: none; }
  .totop {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    line-height: 0;
    color: var(--ink);
    background: rgba(250, 246, 239, .96);
    border-color: var(--line-2);
  }
  .totop:hover,
  .totop:focus,
  .totop:active {
    color: var(--ink);
    background: rgba(250, 246, 239, .96);
    border-color: var(--line-2);
  }
  #totop .totop__desktop { display: none; }
  #totop .totop__mobile { display: block; width: 22px; height: 22px; max-width: none; }
}

/* на тач-устройствах — никакого tilt/курсора, стабильнее и быстрее */
@media (hover: none), (pointer: coarse) {
  .card, .fmt, .plan, .rev, .tch { transform: none !important; }

  /* Эти полноэкранные эффекты почти незаметны визуально, но заставляют
     мобильный GPU пересобирать весь экран поверх меняющегося canvas. */
  .bg__blob { filter: none; animation: none; will-change: auto; }
  .grain { mix-blend-mode: normal; opacity: .12; }
  .hdr.is-solid,
  .cookie {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hdr.is-solid { background: rgba(250, 246, 239, .96); }
  .cookie { background: rgba(255, 252, 246, .97); }

  /* Небольшой локальный blur улучшает читаемость, но остаётся достаточно
     лёгким для мобильного GPU. */
  .sec--pane {
    -webkit-backdrop-filter: blur(3px) saturate(1.04);
    backdrop-filter: blur(3px) saturate(1.04);
    background: rgba(250, 246, 239, .64);
  }

  /* Компенсация: раз панель не размывает фон, чуть размываем сам силуэт.
     Совсем слабо: blur ложится на ВЕСЬ слой, включая зазоры между панелями,
     где фигура должна оставаться узнаваемой. */
  .stage__canvas { transition: filter .7s var(--e-soft); }
  body.fig-soft .stage__canvas { filter: blur(1px); }
}

/* ---------- 23. Юридические страницы и cookie ----------------------------- */
/* Требование закона: политика — читаемый ТЕКСТ на странице сайта, доступный
   в один клик, а не файл на скачивание. Страницы генерируются из исходников
   в «юр.доки» скриптом _build/make-legal.ps1 — править надо их, не HTML. */

.doc-page { background: var(--ivory); }

.doc__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.doc__back { display: inline-flex; align-items: center; gap: 10px; border-bottom: 0; }
.doc__back img { width: 34px; height: auto; }
.doc__back span { font-family: 'Prata', Georgia, serif; font-size: 19px; }

.doc__home {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 0;
}
.doc__home:hover { color: var(--honey-2); }

.doc { padding: clamp(34px, 6vw, 70px) var(--pad) clamp(50px, 7vw, 90px); }
.doc__wrap { max-width: 74ch; margin: 0 auto; }

.doc h1 {
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  margin: 14px 0 34px;
}

.doc h2 {
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 29px);
  line-height: 1.2;
  margin: 44px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.doc h3 {
  font-size: clamp(17px, 1.7vw, 20px);
  margin: 30px 0 12px;
}

.doc p { margin: 0 0 14px; color: var(--ink-2); }
.doc ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.doc li { margin-bottom: 8px; }
.doc u { text-decoration: none; }
.doc a { color: var(--honey-2); }

/* таблицы в политике cookie — на узком экране прокручиваются, а не ломают
   страницу по горизонтали */
.doc__table { overflow-x: auto; margin: 0 0 22px; }
.doc__table table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; }
.doc__table th, .doc__table td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.doc__table th { background: var(--cream); font-weight: 700; }

.doc__ftr {
  padding: 30px var(--pad) 40px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.doc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 18px;
  font-size: 14px;
}

.doc__links button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--honey-2);
  cursor: pointer;
  border-bottom: 1px solid rgba(169, 123, 59, .35);
}

.doc__req { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---- реквизиты и правовые ссылки в подвале главной ---- */
/* Правовой блок отделён линией: без неё ссылки слипались с колонками
   навигации и читались как ещё один их ряд. */
.ftr__meta {
  padding: 18px 0 16px;
  border-top: 1px solid var(--line);
}

.ftr__legal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(169, 123, 59, .13);
  border-radius: 15px;
  background: rgba(241, 225, 196, .13);
  font-size: 12px;
}

.ftr__legal-title {
  padding-right: 18px;
  border-right: 1px solid var(--line-2);
  color: var(--honey-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ftr__legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 0;
  min-width: 0;
}

.ftr__legal-links a {
  position: relative;
  padding: 2px 15px;
  color: var(--ink-2);
  line-height: 1.35;
}

.ftr__legal-links a:first-child { padding-left: 0; }

.ftr__legal-links a + a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(169, 123, 59, .55);
  transform: translate(-50%, -50%);
}

/* Настройки — действие, а не документ, поэтому это небольшая кнопка. */
.ftr__legal button {
  margin-left: 4px;
  padding: 6px 11px;
  border: 1px solid rgba(169, 123, 59, .22);
  border-radius: 999px;
  background: rgba(255, 253, 249, .58);
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.2;
  transition: border-color .25s var(--e-soft), color .25s var(--e-soft), background-color .25s var(--e-soft);
}
.ftr__legal a:hover,
.ftr__legal button:hover { color: var(--honey-2); }
.ftr__legal button:hover { border-color: var(--honey); background: rgba(241, 225, 196, .32); }

.ftr__req {
  display: grid;
  grid-template-columns: 1.2fr 1.35fr 1fr;
  gap: 22px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 620px) {
  .ftr__legal { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .ftr__legal-title { padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ftr__legal-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .ftr__legal-links a { padding: 0; }
  .ftr__legal-links a + a::before { display: none; }
  .ftr__legal button { width: max-content; margin: 2px 0 0; }
  .ftr__req { grid-template-columns: 1fr; gap: 6px; }
  .ftr__req { font-size: 12px; line-height: 1.5; }
}

/* справа висит кнопка «наверх» — оставляем ей место, иначе она наезжает
   на последнюю строку подвала */
.ftr__bot { padding-right: 64px; }

/* ---- согласия в формах ---- */
/* Закон требует: чекбокс пустой по умолчанию, каждое согласие отдельным
   чекбоксом, рядом — активная ссылка на текст. Кнопка отправки неактивна,
   пока не отмечено обязательное согласие. */
.consent { display: grid; gap: 9px; }

/* Согласие — служебная строка, а не отдельный блок: набрано мельче полей,
   прижато к кнопке. Иначе юридическая мелочь перевешивает саму форму. */
.consent__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  /* по верхнему краю: строка часто переносится, и по центру чекбокс
     оказывался между строк */
  align-items: start;
  margin: 14px 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent__item input { margin-top: 1px; }

.consent .consent__item { margin: 0; }

/* В короткой форме оба согласия и CTA образуют одну смысловую группу.
   Внешний отступ принадлежит всей паре, а не каждой строке отдельно. */
.form--hero .consent { margin-top: 14px; gap: 8px; }
.form--hero .consent__item { margin: 0; }

.consent__item input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #FFFDF9;
  cursor: pointer;
  flex: none;
  transition: border-color .25s var(--e-soft), background-color .25s var(--e-soft);
}

.consent__item input:checked {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.6 4 7.6 10 1.4' stroke='%23FCF8F1' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 11px;
  border-color: var(--ink);
}

.consent__item input:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.consent__item a { color: var(--honey-2); border-bottom: 1px solid rgba(169, 123, 59, .35); }

/* Подсветка непоставленной галочки при попытке отправить. Мягкая: строка
   темнеет и один раз качается — этого хватает, чтобы взгляд вернулся к ней. */
.consent--ask { color: var(--ink); animation: consentNudge .5s var(--e-soft); }
/* тот же цвет, что у незаполненных полей: одна ошибка — один сигнал */
.consent--ask input { border-color: #C0704A; box-shadow: 0 0 0 4px rgba(192, 112, 74, .15); }

@keyframes consentNudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}

/* ---- баннер cookie ---- */
/* Появляется до любой аналитики: сбор данных не должен начинаться раньше
   решения пользователя. Решение хранится в localStorage и меняется в любой
   момент ссылкой «Настройки cookie» в подвале. */
/* Компактная карточка поверх первого состояния страницы. Она выше прелоадера
   по z-index, поэтому решение доступно ещё во время подготовки кадров. */
.cookie {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: clamp(12px, 2vw, 22px);
  z-index: 10020;
  width: min(1120px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(22px, 3vw, 38px);
  padding: 15px 16px 15px 18px;
  border: 1px solid rgba(169, 123, 59, .18);
  border-radius: 24px;
  background:
    radial-gradient(120% 180% at 0 0, rgba(241, 225, 196, .35), rgba(255, 253, 249, 0) 54%),
    rgba(255, 253, 249, .95);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
  box-shadow: 0 20px 54px -30px rgba(77, 58, 33, .5), 0 2px 12px -8px rgba(77, 58, 33, .28);
  opacity: 0;
  transform: translate(-50%, calc(100% + 34px)) scale(.985);
  transition: opacity .38s var(--e-soft), transform .58s var(--e-out);
  pointer-events: none;
}

.cookie.on { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }

.cookie__copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cookie__mark {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(169, 123, 59, .22);
  border-radius: 50%;
  background: rgba(241, 225, 196, .28);
}

.cookie__mark i,
.cookie__mark::before,
.cookie__mark::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 9px;
  height: 19px;
  border: 1px solid rgba(169, 123, 59, .62);
  border-radius: 60% 60% 48% 48%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.cookie__mark::before { transform: translateX(-50%) rotate(-43deg); }
.cookie__mark::after { transform: translateX(-50%) rotate(43deg); }

.cookie p {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-2);
}

.cookie p strong {
  display: block;
  margin-bottom: 2px;
  font-family: 'Prata', Georgia, serif;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.cookie a { color: var(--honey-2); border-bottom: 1px solid rgba(169, 123, 59, .35); }

.cookie__row { display: flex; flex-wrap: nowrap; gap: 8px; }

.cookie__row .btn {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 9.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--honey); color: var(--honey-2); background: transparent; }

/* панель настроек */
/* Настройки раскрываются в той же карточке без скачка в другое место. */
.cookie__opts { display: none; }
.cookie__keep { display: none; }
.cookie.tuning { align-items: center; }
.cookie.tuning .cookie__opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 12px 24px;
  min-width: 0;
}
.cookie.tuning .cookie__keep { display: flex; }
.cookie.tuning .cookie__ask { display: none; }
/* пояснение про cookie в режиме настроек уже избыточно — его заменяет
   расшифровка категорий, и без него полоса не разрастается на пол-экрана */
.cookie.tuning .cookie__copy { display: none; }

.cookie__opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie__opt b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }

.cookie__opt input {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: #FFFDF9;
  cursor: pointer;
  transition: border-color .25s var(--e-soft), background-color .25s var(--e-soft);
}

.cookie__opt input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.6 4 7.6 10 1.4' stroke='%23FCF8F1' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--ink);
}

.cookie__opt input:disabled { opacity: .5; cursor: default; }

/* На телефоне тремя строками баннер съедал треть экрана. Главное действие
   во всю ширину, два второстепенных — в один ряд пополам. */
@media (max-width: 560px) {
  .cookie {
    bottom: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 21px;
  }
  .cookie__copy { align-items: flex-start; gap: 11px; }
  .cookie__mark { flex-basis: 40px; width: 40px; height: 40px; }
  .cookie__mark i,
  .cookie__mark::before,
  .cookie__mark::after { bottom: 9px; height: 17px; }
  .cookie p { font-size: 11.5px; }
  .cookie p strong { font-size: 15px; }
  .cookie__row { width: 100%; }
  .cookie__row .btn { flex: 1 1 0; text-align: center; }
  .cookie__row .btn--dark { flex: 1 1 100%; }
  .cookie__ask { flex-wrap: wrap; }
  .cookie.tuning .cookie__opts { grid-template-columns: 1fr; gap: 9px; }
  .cookie.tuning .cookie__keep { flex-wrap: wrap; }
}


/* === запись в два шага =====================================================
   Второй шаг живёт внутри той же .form__body и не меняет её размер: высота
   фиксируется из JS по фактической высоте первого шага, а выбор сделан
   списками — список не растёт от числа вариантов, в отличие от плиток.
   ========================================================================= */
.form__step2 { display: block; }
.form__step2[hidden] { display: none; }

.form__back {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--honey-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.form__back:hover { text-decoration: underline; }

.form__hint {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--honey-2);
}

/* Блок помощи — для тех, кто не определился с занятием. Тише кнопки: это
   подсказка, а не второй равнозначный путь. */
.form__help {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.form__help[hidden] { display: none; }

.form__help p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Телефон в той же строке, а не отдельным блоком: форма не должна расти
   между шагами, и каждая лишняя строка здесь на счету. */
.form__help a {
  font-family: 'Prata', Georgia, serif;
  font-size: 16px;
  color: var(--honey-2);
  white-space: nowrap;
}

.form__help a:hover { color: var(--honey); }

/* Атрибут hidden сам по себе бессилен против классов с явным display
   (.consent { display: grid }, .form__row { display: grid }): правило класса
   перебивает браузерное [hidden]{display:none}. Без этого блоки первого шага
   оставались на месте, и форма росла при переходе на второй шаг. */
.form__body [hidden] { display: none !important; }

/* На втором шаге пояснение под заголовком не нужно — оно про первый шаг,
   а место в форме на счету: размер коробки менять нельзя. */
.form.is-step2 .hero__form-copy p,
.form.is-step2 > .form__body > p { display: none; }

/* «Назад» и подсказка в одной строке: две отдельные строки не помещались. */
.form__step2-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
  margin-bottom: 10px;
}

.form__step2-top .form__back { margin: 0; flex: none; }

.form__step2-top .form__hint { margin: 0; text-align: right; }

/* Карточка формы у контактов растянута по высоте левой колонки, поэтому под
   содержимым оставалась пустота. Прижимаем кнопку (а с ней блок помощи) к низу
   карточки — пустота уходит в промежуток, и это читается как отбивка, а не как
   дыра. Высоту секции при этом форма не меняет. */
/* Свободное место делим поровну между блоками формы, а не сбрасываем в один
   разрыв над кнопкой: так карточка выглядит собранной, а не «прижатой сверху
   и снизу». Шапка при этом остаётся цельной — её оборачивает .form__head. */
/* Растягиваем через flex, а не height:100%. Процентная высота у элемента
   grid-сетки замыкается сама на себя: карточка тянулась к строке, строка — к
   карточке, и в итоге строка выходила на 28px выше левой колонки, растягивая
   секцию. С flex высота строки определяется левой колонкой, как и должна. */
.contacts .form {
  display: flex;
  flex-direction: column;
}

.contacts .form__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Внутри шапки промежутки не растут — там свои отступы. */
.contacts .form__head { display: block; }

/* === плотная раскладка формы у контактов ==================================
   Поля в один столбец добавляют высоту, а карточка расти не должна: она стоит
   в одной строке сетки с левой колонкой и, став выше, растягивает всю секцию —
   заголовок и карточки контактов разъезжаются. Поэтому отступы внутри формы
   ужаты ровно настолько, чтобы вернуться к прежней высоте.
   ========================================================================= */
.contacts .form { padding: 26px; }

.contacts .form .eyebrow { margin-bottom: 8px; }

.contacts .form h3 { margin-bottom: 4px; }

/* Подзаголовок лежит внутри .form__head, поэтому селектор «прямой потомок
   .form__body» его больше не достаёт — без этого правила возвращаются
   браузерные 17px сверху и снизу, и карточка вырастает на 34px. */
.contacts .form__head p { margin: 0 0 12px; }

.contacts .form .field { margin-bottom: 8px; }

.contacts .form .field label { margin-bottom: 4px; }

.contacts .form .field input,
.contacts .form .field select { padding: 11px 16px; }

.contacts .form .consent { gap: 6px; }

.contacts .form .btn--wide { padding: 13px 30px; }
