/* oprisyazhnaya.ru - дизайн-система, круг 2 (19.10.2026)
   «Разделённая сцена»: портрет слева, бумага справа. Бумага #F0EEE9 и чернила-слива #2A1A22; слива #351E28 - только поле
   под листом курса, плашка «Отвечаю сама» на телефоне и подвал. Literata (имя и заголовки) + Onest (текст), два шрифта.
   Акцент #FF5C34 - одна кнопка «Записаться на сайте академии». Без градиентов, линий, теней на месте. */

@font-face { font-family: "Onest"; src: url("/fonts/onest-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-cyrillic.woff2") format("woff2"); /* кириллица + цифры, знаки, ₽; opsz 48, 32 КБ */
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00B7, U+00BB, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2010-2014, U+2018-201E, U+2026, U+2116, U+20BD; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-latin.woff2") format("woff2"); /* латинские буквы и latin-ext - грузится, только если они есть в заголовке */
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-024F, U+0131, U+0152-0153, U+20AC, U+2122; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 104.62%; ascent-override: 92.71%; descent-override: 29.15%; line-gap-override: 0%; }
@font-face { font-family: "Literata Fallback"; src: local("Georgia"), local("Times New Roman");
  size-adjust: 101.02%; ascent-override: 116.51%; descent-override: 30.49%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --bg: #F0EEE9;          /* бумага */
  --surface: #E6E1DA;     /* ступень бумаги: лист письма, поля, вкладки */
  --ink: #2A1A22;         /* чернила - тёмная слива */
  --muted: #70606A;       /* подписи: 5,1 на бумаге, 4,5 на поверхности */
  --plum: #351E28;        /* цветное поле */
  --on-plum: #F0EEE9;
  --on-plum-muted: #C9BCC2;
  --accent: #FF5C34;      /* одна кнопка */
  --accent-press: #FF7550;
  --accent-ink: #1E0F16;

  --display: "Literata", "Literata Fallback", Georgia, serif;
  --text: "Onest", "Onest Fallback", system-ui, -apple-system, sans-serif;

  --s-small: .875rem;                                     /* 14 */
  --s-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);    /* 17-19 */
  --s-lead: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);        /* 20-24 */
  --s-head: clamp(2rem, 1.7rem + .9vw, 2.5rem);           /* 32-40 */
  --s-name: clamp(72px, 7.5vw, 110px);                    /* имя */

  --gutter: clamp(20px, 3vw, 32px);
  --col-pad: clamp(24px, 4.2vw, 72px);
  --gap-sec: 96px;   /* между секциями */
  --gap-in: 40px;    /* внутри секций */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s-body)/1.55 var(--text);
       font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, picture { display: block; max-inline-size: 100%; block-size: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
    text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
a:hover { text-decoration-color: currentColor; }
a:not(.btn):active { opacity: .75; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--plum); color: var(--on-plum); }
b, strong { font-weight: 600; }
p, li, dd, blockquote { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; hyphens: none; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--gutter); inset-block-start: -4rem; z-index: 80; background: var(--ink); color: var(--bg); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { inset-block-start: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: var(--s-small); line-height: 1.5; }

/* - заголовки - */
.h-sec, .t-sub, .last__h { font: 400 var(--s-head)/1.08 var(--display); letter-spacing: -.02em; }

/* - кнопки: квадратные, плоские - */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-block-size: 3.25rem; padding: .85rem 1.6rem;
  border: 0; border-radius: 0; font: 500 var(--s-body)/1.2 var(--text); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--bg); transition: background-color .2s var(--ease), scale .15s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:hover { background: var(--plum); }
.btn:active { scale: .98; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-press); }
.btn--paper { background: var(--on-plum); color: var(--plum); }
.btn--paper:hover { background: #FFFFFF; }
.btn--ghost { background: transparent; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; padding-inline: 0; min-block-size: 44px; }
.btn--ghost:hover { background: transparent; }
.btn--wide { inline-size: 100%; }

/* ═══════════════════════ СЦЕНА: портрет слева, бумага справа; отпускает после статей */
.stage { display: grid; grid-template-columns: 47% 1fr; align-items: start; }
.stage__media { position: sticky; inset-block-start: 0; block-size: 100svh; padding: 20px 0 20px 20px; }
.stage__frame { position: relative; block-size: 100%; overflow: hidden; background: var(--surface); }
.stage__frame > * { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.stage__frame > [data-on] { opacity: 1; }
.stage__frame img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 30%; }
.stage__col { position: relative; z-index: 1; padding: 0 var(--col-pad) var(--gap-sec); min-inline-size: 0; }
.stage__col > section + section { margin-block-start: var(--gap-sec); }

/* - навигация - */
.topnav { position: absolute; inset-block-start: 32px; inset-inline-end: 32px; z-index: 5; display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: var(--s-small); }
.topnav a { text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.topnav__act { font-weight: 600; }
.topnav__menu { display: none; }

/* - первый экран: имя по нижнему краю через угол портрета - */
.hero { position: relative; min-block-size: 100svh; }
.hero__phrase { position: absolute; inset-block-start: 44%; inset-inline-start: 0; max-inline-size: 26ch; font-size: var(--s-lead); line-height: 1.35; translate: 0 -50%; }
.hero__name { position: absolute; inset-block-end: 36px; inset-inline-end: 0; font: 300 var(--s-name)/.95 var(--display); letter-spacing: -.03em;
              white-space: nowrap; color: var(--ink); text-transform: lowercase; transform-origin: right bottom; }

/* - письмо: лист бумаги с фестонами - */
.letter { max-inline-size: 640px; }
.letter__sheet { background: var(--surface); padding: 40px clamp(24px, 4vw, 48px) 48px; --sc: 14px;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent calc(var(--sc) / 2), #000 calc(var(--sc) / 2 + .5px)) 0 100% / var(--sc) var(--sc) repeat-x, /* taste-skill-ignore: маска фестонов листа, не заливка */
                linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--sc) / 2 + 1px) no-repeat; /* taste-skill-ignore: маска фестонов листа, не заливка */
          mask: radial-gradient(circle at 50% 100%, transparent calc(var(--sc) / 2), #000 calc(var(--sc) / 2 + .5px)) 0 100% / var(--sc) var(--sc) repeat-x, /* taste-skill-ignore: маска фестонов листа, не заливка */
                linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--sc) / 2 + 1px) no-repeat; } /* taste-skill-ignore: маска фестонов листа, не заливка */
.letter__ava { inline-size: 44px; block-size: 44px; border-radius: 50%; object-fit: cover; margin-block-end: 20px; }
.letter__sheet p { font-size: 1.0625rem; line-height: 1.55; max-inline-size: 56ch; }
.letter__sheet p + p { margin-block-start: 1em; }
.letter__sign { margin-block-start: 1.6rem !important; }
.letter__sign b { display: block; font: italic 400 1.375rem/1.2 var(--display); font-synthesis: style; }
.letter__sign span { display: block; font-size: var(--s-small); color: var(--muted); margin-block-start: .3rem; }
.letter__strip { margin-block-start: 18px; padding-block-start: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5'%3E%3Ccircle cx='2.5' cy='2.5' r='2.5' fill='%2370606A'/%3E%3C/svg%3E") 0 0 / 14px 5px repeat-x; }
.letter__strip a { font-size: var(--s-lead); text-decoration: none; }
.letter__strip a:hover { text-decoration: underline; }

/* - статьи: реестр - */
.ledger { position: relative; }
.ledger__h { font: 400 var(--s-head)/1.1 var(--display); letter-spacing: -.02em; margin-block-end: 24px; }
.ledger__list { list-style: none; padding: 0; margin: 0; max-inline-size: 600px; }
.ledger__row { display: grid; grid-template-columns: 55% 1fr auto; align-items: baseline; gap: 0 16px; min-block-size: 44px; padding-block: 9px;
               text-decoration: none; transition: color .2s var(--ease); }
.ledger__t { font-size: var(--s-body); line-height: 1.35; }
.ledger__k, .ledger__d { font-size: var(--s-small); color: var(--muted); }
.ledger__d { font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.ledger__img { display: none; }
@media (hover: hover) and (min-width: 62rem) {
  .ledger__list:hover .ledger__row:not(:hover) .ledger__t { color: var(--muted); }
}
.ledger__note { margin-block-start: 12px; font-size: var(--s-small); color: var(--muted); }
.ledger__all { display: inline-block; margin-block-start: 6px; font-size: var(--s-small); }

/* - живая вещь: какой у вас волос (сразу под статьями) - */
.hair { margin-block-start: var(--gap-in); max-inline-size: 600px; }
.hair__q { font: 500 var(--s-lead)/1.3 var(--text); margin-block-end: 16px; }
.hair__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 20px; }
.hair__tab { min-block-size: 48px; padding: .7rem 1.1rem; border: 0; border-radius: 0; cursor: pointer; background: var(--surface); color: var(--ink);
             font: 500 var(--s-body)/1.2 var(--text); transition: background-color .2s var(--ease), color .2s var(--ease), scale .15s var(--ease); }
.hair__tab:hover { --plate: color-mix(in srgb, var(--surface) 80%, var(--ink) 10%); }
.hair__tab:active { scale: .98; }
.hair__tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.hair__panel p + p { margin-block-start: .6em; }
.hair__panel h3 { font: 500 var(--s-small)/1.3 var(--text); color: var(--muted); margin-block-end: .4rem; }
.hair__panel .more { display: inline-block; margin-block-start: .7rem; }
.hair:not([data-js]) .hair__tabs { display: none; }
.hair:not([data-js]) .hair__panel + .hair__panel { margin-block-start: 28px; }
.hair[data-js] .hair__panel[hidden] { display: none; }

/* ═══════════════════════ КУРС: бумажный лист на сливовом поле, группы в две колонки */
.kurs { background: var(--plum); padding: var(--gap-sec) var(--gutter); }
.sheet__paper { max-inline-size: 960px; margin-inline: auto; background: var(--bg); color: var(--ink); padding: 56px clamp(24px, 5vw, 64px) 64px; --sc: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-in) clamp(32px, 5vw, 72px);
  -webkit-mask: radial-gradient(circle at 50% 0, transparent calc(var(--sc) / 2), #000 calc(var(--sc) / 2 + .5px)) 0 0 / var(--sc) var(--sc) repeat-x, /* taste-skill-ignore: маска фестонов листа, не заливка */
                radial-gradient(circle at 50% 100%, transparent calc(var(--sc) / 2), #000 calc(var(--sc) / 2 + .5px)) 0 100% / var(--sc) var(--sc) repeat-x, /* taste-skill-ignore: маска фестонов листа, не заливка */
                linear-gradient(#000, #000) 0 50% / 100% calc(100% - var(--sc) + 2px) no-repeat; /* taste-skill-ignore: маска фестонов листа, не заливка */
          mask: radial-gradient(circle at 50% 0, transparent calc(var(--sc) / 2), #000 calc(var(--sc) / 2 + .5px)) 0 0 / var(--sc) var(--sc) repeat-x, /* taste-skill-ignore: маска фестонов листа, не заливка */
                radial-gradient(circle at 50% 100%, transparent calc(var(--sc) / 2), #000 calc(var(--sc) / 2 + .5px)) 0 100% / var(--sc) var(--sc) repeat-x, /* taste-skill-ignore: маска фестонов листа, не заливка */
                linear-gradient(#000, #000) 0 50% / 100% calc(100% - var(--sc) + 2px) no-repeat; } /* taste-skill-ignore: маска фестонов листа, не заливка */
.sheet__head { grid-column: 1 / -1; text-align: center; }
.sheet__t { font: 400 var(--s-head)/1.1 var(--display); letter-spacing: -.02em; }
.sheet__note { margin-block-start: 10px; font-size: var(--s-small); color: var(--muted); }
.sheet__gt { font: 500 var(--s-lead)/1.25 var(--text); margin-block-end: 14px; }
.sheet__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; }
.sheet__item + .sheet__item { margin-block-start: 12px; }
.sheet__name, .sheet__val { font-size: var(--s-body); line-height: 1.4; }
.sheet__val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet__desc { grid-column: 1 / -1; font-size: var(--s-small); color: var(--muted); line-height: 1.45; }
.sheet__end { align-self: end; }
.sheet__end p { font-size: var(--s-body); }
.sheet__end .btn { margin-block-start: 18px; }
.sheet__end .small { margin-block-start: 12px; color: var(--muted); }
.sheet__more { margin-block-start: 12px; }
.sheet__more summary { position: relative; list-style: none; cursor: pointer; min-block-size: 44px; padding-block: 10px; padding-inline-end: 28px;
  font: 500 var(--s-body)/1.35 var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.sheet__more summary::-webkit-details-marker { display: none; }
.sheet__more summary::after { content: ""; position: absolute; inset-inline-end: 4px; inset-block-start: 1.05em; inline-size: 9px; block-size: 9px;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; rotate: 45deg; transition: rotate .2s var(--ease); }
.sheet__more[open] summary::after { rotate: -135deg; inset-block-start: 1.3em; }
.sheet__more ul { padding-inline-start: 1.1em; margin-block: 8px 12px; }
.sheet__more li + li { margin-block-start: .35em; }
.sheet__more p + p { margin-block-start: .8em; }

/* ═══════════════════════ ВОПРОСЫ: текст слева, фото Хон Джихуна справа */
.faq { display: grid; grid-template-columns: 6fr 1fr 5fr; gap: 0 var(--gutter); padding: var(--gap-sec) var(--col-pad); }
.faq__text { grid-column: 1; }
.faq__facts { margin-block: 20px var(--gap-in); padding: 0; list-style: none; }
.faq__facts li + li { margin-block-start: .3rem; }
.faq__list details + details { margin-block-start: 20px; }
.faq__list summary { position: relative; list-style: none; cursor: pointer; padding-inline-end: 36px; min-block-size: 44px; font: 500 var(--s-lead)/1.35 var(--text); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; inset-inline-end: 6px; inset-block-start: .45em; inline-size: 10px; block-size: 10px;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; rotate: 45deg; transition: rotate .2s var(--ease); }
.faq__list details[open] summary::after { rotate: -135deg; inset-block-start: .65em; }
.faq__list details p { margin-block-start: 10px; max-inline-size: 60ch; }
.faq__ask { margin-block-start: var(--gap-in); color: var(--muted); }
.faq__end { margin-block-start: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.faq__media { grid-column: 3; position: relative; align-self: start; margin-block-end: 48px; }
.faq__tall { aspect-ratio: 3 / 4; inline-size: 100%; object-fit: cover; }
.faq__sq { position: absolute; inset-inline-start: -40px; inset-block-end: -40px; inline-size: 34%; aspect-ratio: 1; object-fit: cover; }
.faq__cap { position: absolute; inset-inline-start: 0; inset-block-end: -72px; padding-inline-start: 34%; font-size: var(--s-small); color: var(--muted); }

/* ═══════════════════════ ПОСЛЕДНИЙ КАДР: Оксана на семинаре, текст справа */
.last { position: relative; block-size: 88svh; min-block-size: 540px; overflow: hidden; background: var(--plum); color: var(--on-plum); }
.last picture, .last img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 20% 35%; }
.last img { filter: brightness(.62); }
.last__text { position: absolute; inset-block-end: 12%; inset-inline-start: 58%; inset-inline-end: var(--gutter); max-inline-size: 34rem; }
.last__h { color: var(--on-plum); }
.last__p { margin-block-start: 16px; max-inline-size: 36ch; }
.last .btn { margin-block-start: 22px; min-block-size: 52px; }
.last__vpn, .last__consent { font-size: var(--s-small); color: var(--on-plum-muted); }
.last__vpn { margin-block-start: 8px; }
.last__alt { margin-block-start: 16px; }
.last__alt a + a::before { content: " · "; display: inline-block; white-space: pre; text-decoration: none; }
.last__consent { margin-block-start: 12px; max-inline-size: 40ch; }

/* ═══════════════════════ ПОДВАЛ: сливовое поле, одна строка */
.foot { background: var(--plum); color: var(--on-plum-muted); padding: 120px var(--gutter) 32px; display: grid; grid-template-columns: 1fr auto 1fr;
        gap: 12px 24px; align-items: baseline; font-size: var(--s-small); }
.foot__mid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot__mid a { color: var(--on-plum); text-decoration: none; }
.foot__mid a:hover { text-decoration: underline; }
.foot__end { text-align: end; }
.last + .foot { padding-block-start: 48px; }

/* - сертификат - */
.modal { border: 0; padding: 0; background: transparent; max-inline-size: min(42rem, 92vw); }
.modal::backdrop { background: rgb(42 26 34 / .8); }
.modal__body { position: relative; background: var(--bg); padding: 12px; }
.modal__close { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 2; min-block-size: 44px; padding: .5rem 1rem; border: 0;
                background: var(--ink); color: var(--bg); font: 500 var(--s-small) var(--text); cursor: pointer; }

/* - уведомление о cookie: системным шрифтом, видно с первой отрисовки - */
.cookie { position: fixed; inset-inline: var(--gutter); inset-block-end: var(--gutter); z-index: 60; max-inline-size: 26rem; margin-inline-end: auto;
          background: var(--plum); color: var(--on-plum); padding: 20px 22px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
          } 
.cookie[hidden] { display: none; }
.cookie-new .cookie[hidden] { display: block; }
.cookie__t { font-weight: 600; }
.cookie__p { margin-block-start: 6px; font-size: var(--s-small); line-height: 1.5; }
.cookie__p a { color: inherit; }
.cookie__row { margin-block-start: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { font-family: inherit; min-block-size: 2.75rem; padding: .6rem 1.1rem; font-size: var(--s-small); }
.cookie__row .btn--accent { background: var(--on-plum); color: var(--plum); }
.cookie__row .btn--ghost { background: transparent; color: var(--on-plum); text-decoration: underline; padding-inline: .4rem; }

/* ═══════════════════════ ВНУТРЕННИЕ СТРАНИЦЫ */
.page { display: grid; grid-template-columns: minmax(200px, 22%) minmax(0, 1fr); gap: 0 var(--col-pad); padding: 0 var(--gutter); }
.page__rail { position: sticky; inset-block-start: 0; align-self: start; padding-block: 96px 40px; font-size: var(--s-small); color: var(--muted); }
.page__rail a { color: var(--ink); }
.page__rail p + p { margin-block-start: .5rem; }
.page__home { display: inline-block; margin-block-end: 28px; font: 500 1rem/1.3 var(--text); color: var(--ink); text-decoration: none; }
.page__main { padding-block: 96px var(--gap-sec); min-inline-size: 0; max-inline-size: 31em; }
.page__top { display: flex; justify-content: flex-end; gap: clamp(14px, 1.8vw, 28px); padding: 32px var(--gutter) 0; font-size: var(--s-small);
             position: absolute; inset-inline-end: 0; inset-block-start: 0; z-index: 5; }
.page__top a { text-decoration: none; }
.page__top a:hover { text-decoration: underline; }
.page__top .topnav__act { font-weight: 600; }
ol.crumbs { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 0 .5rem; font-size: var(--s-small); color: var(--muted); }
ol.crumbs li + li::before { content: "/"; margin-inline-end: .5rem; }
ol.crumbs a { color: var(--muted); }
.rail__t { margin-block-start: 28px !important; color: var(--muted); }
.rail__toc { list-style: none; padding: 0; margin: 10px 0 0; }
.rail__toc li + li { margin-block-start: .45rem; }
.rail__toc a { color: var(--ink); text-decoration: none; }
.rail__toc a:hover { text-decoration: underline; }

.prose h1 { font: 400 clamp(2rem, 1.5rem + 1.6vw, 2.75rem)/1.08 var(--display); letter-spacing: -.025em; margin-block-end: 20px; inline-size: min(52rem, 70vw); }
.prose h1.h1-display { font-weight: 300; font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); inline-size: auto; }
.prose h2 { font: 400 clamp(1.5rem, 1.25rem + .8vw, 1.875rem)/1.15 var(--display); letter-spacing: -.015em; margin-block: 2em .6em; }
.prose h3 { font: 500 var(--s-lead)/1.3 var(--text); margin-block: 1.6em .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table, .prose dl { margin-block: 0 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li + li { margin-block-start: .45em; }
.prose li::marker { color: var(--muted); }
.prose figure img, .prose figure video, .prose > img { inline-size: 100%; block-size: auto; }
.prose blockquote { padding: 1rem 1.2rem; background: var(--surface); }
.prose th, .prose td { text-align: start; padding: .6rem .7rem .6rem 0; vertical-align: top;
                       border-block-end: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); /* настоящая таблица - линии допустимы */ }
.prose th { font-weight: 600; }
.prose .ledger__list { padding-inline-start: 0; }
.prose .ledger__list li + li { margin-block-start: 0; }
.post-meta { font-size: var(--s-small); color: var(--muted); margin-block-end: 28px; }
.post-meta a { color: var(--ink); }
.post-lead, .page__main .lead { font-size: var(--s-lead); line-height: 1.45; margin-block-end: 1.2em; }
.post-cover { margin-block: 8px 2em; }
.post-cover img, .cover-inline img, .prose .figure img { inline-size: 100%; block-size: auto; }
.page__main figure { margin-block: 0 1.4em; }
.page__main figcaption { position: static; padding: 0; background: none; margin-block-start: 8px; font-size: var(--s-small); color: var(--muted); }
.page__main video { inline-size: 100%; block-size: auto; max-inline-size: 420px; }
.page__main .band, .page__main .stack-l, .page__main .post-wrap, .page__main .legal { display: block; padding: 0; margin: 0; max-inline-size: none; }
.note, .doc-meta, .upd { font-size: var(--s-small); color: var(--muted); }
.copyright { margin-block-start: 2.4em; }
.honesty, .page__main .box { background: var(--surface); padding: 1rem 1.2rem; margin-block: 0 1.4em; }
.cmp-scroll { overflow-x: auto; margin-block: 0 1.4em; }
.cmp { inline-size: 100%; min-inline-size: 520px; border-collapse: collapse; font-size: 1rem; }
.cmp th, .cmp td { text-align: start; padding: .6rem .8rem .6rem 0; vertical-align: top;
                   border-block-end: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); /* таблица - линии допустимы */ }
.sources, .readalso { margin-block-start: 2.4em; }
.sources h2, .readalso h2, .readalso p:first-child { font: 500 var(--s-lead)/1.3 var(--text); margin-block: 0 .6em; }
.readalso ul, .dashes, .doc ol, .doc ul { padding-inline-start: 1.2em; }
.page__main section.cta { margin-block-start: 64px; background: var(--surface); padding: clamp(28px, 4vw, 44px); }
.page__main section.cta + section.cta { margin-block-start: 20px; }
.page__main section.cta h2 { margin-block-start: 0; }
.page__main section.cta .lead { font-size: var(--s-body); margin-inline: 0 !important; }
.page__main section.cta .note { margin-inline: 0 !important; }
.page__main details { margin-block: 0 1rem; }
.page__main summary { cursor: pointer; font-weight: 500; }
.link-q { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.n { font-variant-numeric: tabular-nums; margin-inline-end: .35em; }
.it { font-style: normal; color: inherit; }
.spine, .watermark, .dojang, .stamps, p.eyebrow { display: none !important; } /* taste-skill-ignore: правило прячет метки старой разметки */
.osebe-fig { margin-block: 8px 2em !important; }
.osebe-fig img { inline-size: 100%; block-size: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.osebe-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 0 1.6em; }
.osebe-pair img, .osebe-pair video { inline-size: 100%; block-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-inline-size: none; }
.blog-cover { inline-size: min(60rem, 72vw); margin-block: 8px 28px !important; }
.blog-cover img { inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.page__main .ledger__h { margin-block: 1.6em 20px; }
@media (min-width: 62rem) {
  .page__main .ledger--page { inline-size: min(60rem, 72vw); }
  .page__main .ledger--page .ledger__list { max-inline-size: none; }
  .ledger--page .ledger__row { grid-template-columns: 200px minmax(0, 1fr) 10rem 6.5rem; gap: 0 20px; }
  .ledger--page .ledger__img { display: block; grid-row: 1; grid-column: 1; inline-size: 200px; aspect-ratio: 16 / 10; object-fit: cover; align-self: center; }
  .ledger--page .ledger__row:not(:has(.ledger__img))::before { content: ""; grid-column: 1; }
}

/* ═══════════════════════ ТЕЛЕФОН И ПЛАНШЕТ */
@media (max-width: 61.99rem) {
  :root { --s-name: 16.8vw; --gap-sec: 72px; --gap-in: 32px; }
  .stage { display: block; }
  .stage__media { position: relative; block-size: 60svh; padding: 12px 12px 0; }
  .stage__col { padding: 0 20px var(--gap-sec); }
  .topnav { inset-block-start: 12px; inset-inline: 12px; justify-content: space-between; padding: 12px 14px; gap: 12px; color: var(--ink); }
  .topnav a:not(.topnav__act) { display: none; }
  .topnav .topnav__menu { display: inline; font: 500 var(--s-small)/1.2 var(--text); background: none; border: 0; padding: 6px 0; color: inherit; cursor: pointer; }
  .topnav[data-open] { position: fixed; z-index: 70; flex-wrap: wrap; background: var(--bg); padding-block-end: 18px; }
  .topnav[data-open] a:not(.topnav__act) { display: block; order: 3; flex: 1 0 100%; padding-block: 10px; font-size: var(--s-lead); }
  .hero { min-block-size: auto; display: flex; flex-direction: column; }
  .hero__name { position: relative; inset: auto; order: -1; margin-block-start: -4vw; white-space: normal; transform-origin: left top; }
  .hero__name span { display: block; }
  .hero__phrase { position: static; translate: none; margin-block-start: 20px; font-size: var(--s-body); max-inline-size: 30ch; }
  .letter { margin-inline: -20px; max-inline-size: none; }
  .letter__sheet { padding: 32px 24px 44px; }
  .letter__ava { inline-size: 40px; block-size: 40px; }
  .letter__strip { margin-inline: 20px; flex-direction: column; align-items: flex-start; }
  .ledger__row { grid-template-columns: 1fr auto; min-block-size: 52px; }
  .ledger__k { grid-column: 1 / -1; grid-row: 2; }
  .ledger__img { display: block; grid-column: 1 / -1; grid-row: 1; inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-block-end: 12px; }
  .ledger__row:nth-child(n+4) .ledger__img { display: none; }
  .ledger__row:has(.ledger__img) .ledger__t, .ledger__row:has(.ledger__img) .ledger__d { grid-row: 2; }
  .ledger__row:has(.ledger__img) .ledger__k { grid-row: 3; }
  .kurs { padding: var(--gap-sec) 10px; }
  .sheet__paper { grid-template-columns: 1fr; padding: 44px 22px 52px; }
  .faq { display: flex; flex-direction: column-reverse; padding: var(--gap-sec) 20px; }
  .faq__media { position: relative; inset: auto; margin: 0 -20px 64px; }
  .faq__tall { aspect-ratio: 4 / 5; }
  .faq__sq { inset-inline: auto 20px; inset-block-end: -32px; inline-size: 38%; }
  .faq__cap { display: none; }
  .faq__end .btn { inline-size: 100%; }
  .last { block-size: auto; min-block-size: 0; overflow: visible; }
  .last picture, .last img { position: relative; inline-size: 100%; block-size: 62svh; }
  .last img { filter: none; }
  .last__text { position: static; padding: 36px 20px 8px; max-inline-size: none; }
  .last .btn { inline-size: 100%; }
  .foot { padding: 72px 20px 24px; display: flex; flex-direction: column; gap: 8px; }
  .last + .foot { padding-block-start: 32px; }
  .foot__mid { justify-content: flex-start; gap: 4px 16px; }
  .foot__end { text-align: start; }
  .cookie { padding: 14px 16px; inset-inline: 10px; inset-block-end: 10px; }
  .cookie__p { font-size: .8125rem; line-height: 1.4; }
  .cookie__row { margin-block-start: 10px; }
  .page { display: block; padding: 0 20px; }
  .page__rail { position: static; padding-block: 32px 0; }
  .page__main { padding-block-start: 32px; max-inline-size: none; }
  .page__top { position: static; justify-content: space-between; padding: 16px 20px 0; gap: 14px; }
  .page__top a:nth-child(1), .page__top a:nth-child(4) { display: none; }
  .rail__t, .rail__toc { display: none; }
  .prose h1 { inline-size: auto; }
  .cmp { min-inline-size: 0; font-size: .875rem; }
  .blog-cover { inline-size: auto; margin-inline: -20px !important; }
  .legal .stack-l { display: flex; flex-direction: column; }
  .legal .osebe-fig { order: -1; margin-block: 0 24px !important; }
}

/* ═══════════════════════ ДВИЖЕНИЕ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] > * { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
  .js [data-in].is-in > * { opacity: 1; translate: 0 0; }
  .js [data-in].is-in > :nth-child(2) { transition-delay: .07s; }
  .js [data-in].is-in > :nth-child(3) { transition-delay: .14s; }
  .js [data-in].is-in > :nth-child(4) { transition-delay: .21s; }
  .js [data-in].is-in > :nth-child(n+5) { transition-delay: .28s; }
  .js [data-rise] { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
  .js [data-rise].is-in { opacity: 1; translate: 0 0; }
  @supports (animation-timeline: scroll()) {
    .hero__name { animation: name-shrink linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes name-shrink { to { scale: .94; } }
  }
  .stage__frame picture[data-frame="portrait"] img { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { from { scale: 1.02; } to { scale: 1.07; } }
}
@media (max-width: 61.99rem) { .sheet__t { font-size: 1.625rem; } }
.prose h1:not(.h1-display) { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem); }

/* ═══════════════════════ ПЛАШКИ: тонкий градиентный бордер + внутренний блик (просьба Оксаны 19.10)
   Приём border-transparent + background-origin: border-box: заливка лежит в padding-box, градиент - в зоне рамки 1 px. */
:where(.hair__tab, .honesty, .page__main .box, .page__main section.cta, .cookie) {
  --plate: var(--surface);
  --plate-edge: linear-gradient(180deg, rgb(255 255 255 / .95), rgb(42 26 34 / .2)); /* taste-skill-ignore: градиентная рамка плашки - по просьбе Оксаны */
  --plate-glow: inset 0 1px 1px rgb(255 255 255 / .25);
}
.hair__tab, .honesty, .page__main .box, .page__main section.cta, .cookie {
  border: 1px solid transparent; /* taste-skill-ignore: прозрачная рамка под градиент - по просьбе Оксаны */
  background: linear-gradient(var(--plate), var(--plate)) padding-box, var(--plate-edge) border-box; /* taste-skill-ignore: градиентная рамка плашки - по просьбе Оксаны */
  background-origin: border-box;
  box-shadow: var(--plate-glow); /* taste-skill-ignore: внутреннее свечение плашки - по просьбе Оксаны */
}
.hair__tab[aria-selected="true"] { --plate: var(--ink); --plate-edge: linear-gradient(180deg, rgb(255 255 255 / .42), rgb(255 255 255 / .06)); } /* taste-skill-ignore: градиентная рамка плашки - по просьбе Оксаны */
.cookie { --plate: var(--plum); --plate-edge: linear-gradient(180deg, rgb(255 255 255 / .42), rgb(255 255 255 / .06)); /* taste-skill-ignore: градиентная рамка плашки - по просьбе Оксаны */
          box-shadow: var(--plate-glow), 0 18px 50px -20px rgb(0 0 0 / .5) !important; } /* taste-skill-ignore: плавающий баннер cookie */
