:root {
  --ivory: #f4efe8;
  --paper: #fbf8f4;
  --ink: #1c1512;
  --ink-2: #4b3f3a;
  --muted: #8a7d76;
  --line: rgba(28, 21, 18, 0.1);
  --red: #d3202e;
  --red-deep: #a8131f;
  --glass: rgba(251, 248, 244, 0.72);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 28px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; color: var(--red); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) 12px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Непрозрачный фон: новый Safari на iPhone красит зону под часами в цвет закреплённой шапки,
   только если её фон сплошной — иначе под часами просвечивает прокручиваемая страница */
.bar.solid { background: var(--ivory); border-color: var(--line); }
.mark {
  font-family: var(--serif); font-size: 22px; text-decoration: none; letter-spacing: 0.01em;
}
.mark em { color: var(--red); margin-right: 2px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(28, 21, 18, 0.06);
}
.lang button {
  border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  padding: 7px 12px; border-radius: 999px; color: var(--muted);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(28, 21, 18, 0.08); }

/* ---------- Аура: мягкие пятна вместо фото ----------
   Статичные градиенты: размытые круги в движении сильно тормозили встроенные браузеры Telegram/Instagram */
.aura {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 60% at 18% 12%, var(--a1, #e8c9b6) 0%, transparent 70%),
    radial-gradient(75% 65% at 88% 92%, var(--a2, #c9a088) 0%, transparent 72%),
    var(--a3, #f1e7de);
}
.aura i { display: none; }

/* ---------- Появление при скролле ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 60ms);
}
[data-reveal].in { opacity: 1; transform: none; }
.no-anim [data-reveal] { transition: none !important; }

/* ---------- Кнопки ---------- */
/* Глянцевая кнопка как на e-lastica.de: блик сверху, объёмный градиент, внутренние тени и бегущий отблеск */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 10px 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  background:
    radial-gradient(120% 120% at 30% 0, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #c41c28 0%, #a8131f 55%, #8c0e18 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    0 2px 6px -2px rgba(168, 19, 31, 0.35),
    0 12px 26px -14px rgba(168, 19, 31, 0.55);
  transition: translate 0.35s var(--ease), scale 0.2s ease-out, box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 90%);
  transform: translateX(-120%) skewX(-18deg); will-change: transform;
  animation: liquid-sheen 4.2s ease-in-out infinite;
}
@keyframes liquid-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 45%, 100% { transform: translateX(340%) skewX(-18deg); } }
.btn:hover { translate: 0 -1px; }
.btn:active { scale: 0.97; }
.btn .ic {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--red); transition: transform 0.35s var(--ease);
}
.btn:hover .ic { transform: translateX(3px); }
.btn.wide { width: 100%; }
.btn.loading { pointer-events: none; }
.btn.loading .ic svg { display: none; }
.btn.loading .ic::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 74px) var(--gutter) 14px; isolation: isolate;
}
/* Фото Лизы: на телефоне во всю ширину под прозрачной шапкой, снизу растворяется в фоне */
/* Фото Лизы на телефоне: начинается сразу под шапкой, сверху срезан пустой серый фон,
   снизу показано целиком (до пояса) — растворяется только узкая полоска у краёв */
.hero.has-photo { padding-top: 0; }
.hero-photo { position: relative; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
.hero-photo img {
  display: block; width: calc(100% + 28px); height: auto; margin: -14% 0 0 -28px;
  animation: hero-in 0.5s ease-out both;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0.5) 94%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0.5) 94%, transparent 100%);
}
.hero-text { margin-top: -18px; }
.hero-text > p { position: relative; z-index: 1; }
.hero.has-photo h1 {
  position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 60px); right: var(--gutter);
  width: 72%; max-width: none; margin: 0; text-align: right; white-space: nowrap;
  font-size: min(30px, 6.7vw); line-height: 1.05; letter-spacing: -0.02em;
}
.hero.has-photo h1 em { font-size: 1.12em; }
@keyframes hero-in { from { opacity: 0; } }
.hero .aura { z-index: -1; --a1: #e2b49b; --a2: #b98468; --a3: #f1e2d6; }
.hero .aura::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244, 239, 232, 0) 40%, var(--ivory) 100%);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; margin: 0 0 14px; max-width: 16ch;
  font-size: clamp(34px, 9.2vw, 84px); line-height: 0.98; letter-spacing: -0.02em;
}
.hero p { margin: 0 0 14px; max-width: 38ch; color: var(--ink-2); font-size: 17px; }
.hero p.push { font-family: var(--serif); font-style: italic; font-size: min(26px, 4.9vw); line-height: 1.15; color: var(--red); margin: 4px 0 10px; white-space: nowrap; max-width: none; }
.hero p.text { font-size: 12.5px; line-height: 1.5; text-align: center; max-width: 44ch; margin: 0 auto; }
.hero .btn { margin-top: 14px; }
.hero p.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 34ch; }
/* ---------- Секции ---------- */
.section { padding: 36px var(--gutter); max-width: 1180px; margin: 0 auto; }
#programs { padding-top: 4px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.section h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 12vw, 84px);
  line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 12px;
}
.section > p.lead { margin: 0 0 24px; color: var(--ink-2); max-width: 40ch; }

/* ---------- Карточки программ ---------- */
.programs { display: grid; gap: 16px; }

/* ---------- Карточки курсов (как на woolandsilk.co.uk): картинка слева, текст и кнопка справа ---------- */
.minis { display: grid; gap: 14px; }
.mini {
  display: flex; min-height: 140px; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 #e8dcd2, 0 12px 30px -22px rgba(28, 21, 18, 0.35);
}
.mini { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mini:active { transform: scale(0.985); }
.mini-art { position: relative; isolation: isolate; flex: none; width: 104px; display: grid; text-decoration: none; }
.mini-art .aura { z-index: -1; }
.mini-art img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px 16px; }
.mini-title { text-decoration: none; color: var(--ink); }
.mini-title h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.08; letter-spacing: -0.01em; }
.mini-body small { font-size: 13px; color: var(--muted); }
.mini-row { margin-top: auto; padding-top: 8px; }
.mini .btn.sm { width: 100%; padding: 0 10px; font-size: 13.5px; white-space: nowrap; letter-spacing: 0; }
.btn.sm { height: 44px; padding: 0 20px; font-size: 16px; font-weight: 700; }
.btn.sm.loading { opacity: 0.6; }
.card {
  position: relative; display: block; text-decoration: none; border-radius: var(--r); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card:active { transform: scale(0.985); }
.card .cover { position: relative; aspect-ratio: 5 / 4; }
.card .cover .aura { transition: transform 1.2s var(--ease); }
.card:hover .cover .aura { transform: scale(1.06); }
.cover-title { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.cover-title h3 {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 11vw, 56px); line-height: 0.95; letter-spacing: -0.02em;
}
.cover-tag { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px 20px; }
.card-body p { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.price { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.go {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; transition: transform 0.45s var(--ease);
}
.card:hover .go { transform: rotate(-45deg); }

/* ---------- Как это работает ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(s); grid-row: span 2;
  font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--red);
}
.steps b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.steps span { color: var(--ink-2); }

/* ---------- Что входит ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--red);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d3202e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--serif); font-size: 25px; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 28px; line-height: 1;
  transition: transform 0.28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.28s var(--ease), content-visibility 0.28s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq p { margin: 0; padding-bottom: 22px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Подвал ---------- */
.foot { padding: 56px var(--gutter) calc(env(safe-area-inset-bottom) + 40px); border-top: 1px solid var(--line); max-width: 1180px; margin: 0 auto; }
.foot .big { font-family: var(--serif); font-size: clamp(54px, 16vw, 140px); line-height: 0.9; letter-spacing: -0.03em; margin: 0 0 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; }
.foot nav a { text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot .legal { display: inline-block; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.foot small { display: block; color: var(--muted); }

/* ---------- Страница программы ---------- */
.p-hero { position: relative; isolation: isolate; padding: calc(env(safe-area-inset-top) + 132px) var(--gutter) 10px; }
.p-hero .aura::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244, 239, 232, 0) 45%, var(--ivory) 100%);
}
.p-hero-in { position: relative; z-index: 1; }
.p-hero h1 {
  font-family: var(--serif); font-weight: 400; margin: 12px 0 12px;
  font-size: clamp(48px, 14vw, 128px); line-height: 0.92; letter-spacing: -0.025em;
}
.p-hero p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 34ch; }
.p-hero p.short { font-size: 15px; line-height: 1.5; max-width: none; }

/* Фото/видео из тренировки и кнопка покупки сразу под ним */
.media {
  position: relative; isolation: isolate; margin: -16px 0 0; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  display: grid; place-items: center; background: var(--paper);
}
.media.tall { aspect-ratio: 1; }
.media.tall img { position: absolute; inset: 0; object-position: 50% 64%; }
.media .aura { z-index: -1; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.media img { background: none; }
.media .play {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: rgba(255, 255, 255, 0.9); color: var(--red); box-shadow: 0 12px 30px -14px rgba(168, 19, 31, 0.6);
}
.media figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--ink-2); }
.media .play { width: 56px; height: 56px; }
/* Отзывы: лента со снапом, карточка уже экрана и по центру, соседние выглядывают по краям.
   Высота ленты — по самому длинному отзыву, карточки по центру по вертикали. */
.reviews-box { position: relative; --rv-w: min(78%, 300px); }
.reviews {
  display: flex; gap: 12px; align-items: center; margin: 0 calc(-1 * var(--gutter)); padding: 0 calc((100% + 2 * var(--gutter) - var(--rv-w)) / 2);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews .rv { flex: 0 0 var(--rv-w); scroll-snap-align: center; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); }
.reviews .rv img { width: 100%; height: auto; display: block; }
.rv-btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  /* «Стекло»: почти прозрачная, текст под ней читается; блик сверху и светлая кромка */
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.22) 100%);
  -webkit-backdrop-filter: blur(5px) saturate(1.4); backdrop-filter: blur(5px) saturate(1.4);
  color: var(--red);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(0, 0, 0, 0.06),
    0 6px 16px -6px rgba(0, 0, 0, 0.28);
  transition: scale 0.2s ease-out, opacity 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.rv-btn.prev { left: 0; }
.rv-btn.next { right: 0; }
.rv-btn svg { width: 18px; height: 18px; }
.rv-btn:hover { background: rgba(255, 255, 255, 0.6); }
.rv-btn:active { scale: 0.92; translate: 0 -50%; }
.rv-btn:focus { outline: none; }
.rv-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rv-btn { top: calc(50% - 14px); }
.rv-note { display: block; text-align: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rv-count { display: block; text-align: center; margin-top: 10px; height: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.buy-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(168, 19, 31, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 10px 30px -10px rgba(168, 19, 31, 0.3), 0 2px 6px rgba(28, 21, 18, 0.06);
}
.buy-inline small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.buy-inline .price { font-size: 22px; white-space: nowrap; }
.buy-inline .btn { height: 52px; padding-left: 20px; gap: 10px; font-size: 15px; white-space: nowrap; }
.buy-inline .btn .ic { width: 36px; height: 36px; }
.buy-inline.solo { padding: 8px; }
@media (max-width: 380px) {
  .buy-inline .price { font-size: 19px; }
  .buy-inline .btn { font-size: 14px; padding-left: 14px; gap: 8px; }
  .buy-inline .btn .ic { width: 32px; height: 32px; }
  .buy-inline.with-note .btn .ic { display: none; }
  .buy-inline.with-note .btn { padding: 0 16px; }
}
.buy-inline.with-note small { display: block; letter-spacing: 0.02em; font-size: 10px; }
.buy-inline.with-note { padding-left: 16px; gap: 8px; }
.buy-inline.with-note .btn { padding-left: 16px; gap: 8px; font-size: 14px; min-width: 0; }
.buy-inline.with-note .btn .ic { width: 32px; height: 32px; }
.buy-inline.solo .btn { width: 100%; justify-content: space-between; }
.intro p { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
.intro p:last-child { margin-bottom: 0; }
.back {
  position: absolute; top: calc(env(safe-area-inset-top) + 72px); left: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(251, 248, 244, 0.9);
  text-decoration: none; font-size: 14px; font-weight: 600;
}
.p-body { padding: 8px var(--gutter) 8px; max-width: 760px; margin: 0 auto; display: grid; gap: 36px; }
.p-body h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin: 0 0 18px; }
.goals { list-style: none; margin: 0; padding: 0; }
.goals li {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2);
}
.goals b { font-weight: 700; color: var(--ink); }
.goals li::before { content: ""; width: 8px; height: 8px; margin: 10px 0 0 4px; border-radius: 50%; background: var(--red); }
.aims { display: grid; gap: 12px; }
.aim { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 18px; }
.aim-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--line); font-size: 20px; margin-bottom: 14px;
}
.aim h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.aim p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.pay-info { grid-column: 2; display: grid; gap: 8px; margin-top: 10px; }
.pay-info small { font-size: 12px; color: var(--muted); }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-weight: 600; font-size: 11px; color: var(--ink-2); background: var(--paper); }
.hint {
  font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
}

@media (max-width: 400px) {
  .buy-inline small { display: none; }
  .buy-inline { padding-left: 18px; }
  .buy-inline .btn { padding-left: 18px; gap: 8px; }
}

/* Закреплённая плашка курса: название и кнопка покупки под шапкой, пока кнопка под заголовком не видна */
.p-sticky {
  position: fixed; left: 10px; right: 10px; top: calc(env(safe-area-inset-top) + 66px); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(253, 251, 248, 0.97);
  border: 1px solid rgba(168, 19, 31, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 10px 30px -8px rgba(168, 19, 31, 0.35), 0 2px 6px rgba(28, 21, 18, 0.08);
  transition: translate 0.4s var(--ease), opacity 0.4s var(--ease);
}
.p-sticky.away { translate: 0 -24px; opacity: 0; pointer-events: none; }
.ps-text { min-width: 0; display: grid; }
.ps-text small { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-text b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.05; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.p-sticky .btn.sm { flex: none; margin: 0; }

/* ---------- Страница после оплаты ---------- */
.done { min-height: 100svh; display: grid; place-items: center; padding: 110px var(--gutter) 40px; position: relative; isolation: isolate; }
.done .aura { z-index: -1; --a1: #e8c9b6; --a2: #c9a088; --a3: #f4efe8; opacity: 0.7; }
.done-card {
  width: 100%; max-width: 460px; text-align: center; padding: 36px 24px 28px; border-radius: 32px;
  background: rgba(251, 248, 244, 0.94);
  border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(28, 21, 18, 0.5);
}
.done-card h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; margin: 18px 0 12px; letter-spacing: -0.02em; }
.done-card p { color: var(--ink-2); margin: 0 0 22px; }
.done-card .tag { margin: 0; }
.check { width: 84px; height: 84px; margin: 0 auto; color: var(--red); }
.check circle, .check path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1s var(--ease) forwards; }
.check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s var(--ease) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ring { width: 64px; height: 64px; margin: 10px auto; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: spin 1s linear infinite; }
.link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 76px); z-index: 60;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Переходы между страницами ---------- */
::view-transition-old(root) { animation: 0.18s ease-out both vt-out; }
::view-transition-new(root) { animation: 0.28s ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Планшет и десктоп ---------- */
@media (min-width: 760px) {
  .hero.has-photo {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
    max-width: 1180px; margin: 0 auto; padding-top: calc(env(safe-area-inset-top) + 96px);
  }
  .hero-photo { order: 2; margin: 0; height: auto; aspect-ratio: 4 / 5; border-radius: 28px; }
  .hero-photo img { width: 100%; height: 100%; margin: 0; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  .hero-text { margin-top: 0; }
  .hero.has-photo h1 { position: static; width: auto; max-width: none; margin: 0 0 14px; text-align: left; font-size: clamp(34px, 6vw, 84px); line-height: 0.98; }
  .hero.has-photo h1 em { font-size: 1em; }
  .section { padding: 80px var(--gutter); }
  .hero { padding-bottom: 48px; }
  .p-body { gap: 52px; }
  :root { --gutter: 40px; }
  .programs { grid-template-columns: 1fr 1fr; gap: 22px; }
  .minis { grid-template-columns: 1fr 1fr; gap: 18px; }
  .programs .card:first-child, .programs .card:last-child:nth-child(even) { grid-column: span 2; }
  .aims { grid-template-columns: 1fr 1fr; }
  .programs .card:first-child .cover { aspect-ratio: 21 / 9; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .p-sticky { left: 50%; right: auto; width: min(720px, calc(100% - 80px)); transform: translateX(-50%); }
  .hero p { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .check circle, .check path { stroke-dashoffset: 0; }
}
