/* =========================================================
   Ирка Профайлер — общий стиль (главная + тарифы)
   Идея: знакомый интерфейс инстаграма, по которому Ирина
   «читает» человека красной ручкой. Бумага, сериф, рукопись.
   ========================================================= */

:root {
  --paper: #F4F0E8;
  --paper-deep: #EAE3D7;
  --sheet: #FBF9F5;
  --white: #FFFFFF;
  --ink: #1B1816;
  --ink-2: #47413B;
  --muted: #847B72;
  --line: rgba(27, 24, 22, .11);
  --line-2: rgba(27, 24, 22, .22);
  --pen: #D63F2C;
  --pen-2: #B9311F;
  --pen-light: #F36B55;
  --hl: #F7CDBF;
  --night: #1C1613;

  /* узнаваемые детали инстаграма */
  --ig: linear-gradient(45deg, #FCAF45 0%, #F56040 33%, #E1306C 66%, #C13584 92%);
  --ig-red: #FF3040;
  --ig-blue: #0095F6;
  --ig-grey: #EFEFEF;
  --ig-green: #23B14D;

  --serif: "Noto Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-1: 0 1px 0 rgba(27, 24, 22, .04), 0 10px 24px -14px rgba(27, 24, 22, .30);
  --shadow-2: 0 1px 0 rgba(27, 24, 22, .04), 0 30px 60px -32px rgba(27, 24, 22, .40);

  --gutter: 20px;
  --top: 60px;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .06  0 0 0 .075 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .96  0 0 0 0 .9  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.sv-open, html.sv-open body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
::selection { background: var(--pen); color: #fff; }

.wrap { width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 6px; }

/* ---------- Типографика ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  margin: 0;
}
.display em, .display i { font-style: italic; font-weight: 400; }

.h1 { font-size: clamp(40px, 10.6vw, 92px); }
.h2 { font-size: clamp(33px, 8.2vw, 62px); margin-bottom: 18px; }

.eyebrow {
  font: 500 12.5px/1.35 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.label {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.hand {
  font-family: var(--hand);
  font-weight: 600;
  color: var(--pen);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: .005em;
}

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

/* «Пишется рукой»: проявление слева направо */
.js [data-write], .js [data-reveal] {
  clip-path: inset(-25% 100% -25% 0);
  transition: clip-path 1s cubic-bezier(.45, .1, .45, 1);
}
.js [data-write].is-in, .js [data-reveal].is-in { clip-path: inset(-25% -4% -25% -4%); }

/* ---------- Ручка (SVG-пометки) ---------- */
.pen-svg {
  position: absolute; left: 0; top: 0;
  overflow: visible; pointer-events: none; z-index: 2;
}
.pen-svg path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pen-svg.is-soft path { stroke-width: 1.8; }
.pen-svg.is-fading { transition: opacity .2s ease; opacity: 0; }

mark {
  color: inherit;
  background: linear-gradient(180deg, transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%) 0 0 / 0% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .9s var(--ease-out) .25s;
}
.is-in mark, mark.is-in { background-size: 100% 100%; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 6px 6px 6px 24px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1.2 var(--sans);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.975); }

.btn__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  transition: background-color .25s, color .25s;
}

.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -16px rgba(27, 24, 22, .7); }
.btn--ink .btn__chip { background: rgba(244, 240, 232, .13); }
@media (hover: hover) {
  .btn--ink:hover .btn__chip { background: var(--pen); color: #fff; }
  .btn--line:hover { box-shadow: inset 0 0 0 2px var(--ink); }
  .btn--line:hover .btn__chip { background: var(--ink); color: var(--paper); }
}

.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--line .btn__chip { background: var(--paper-deep); }

.btn[disabled], .btn[aria-disabled="true"] {
  background: #DCD5CA;
  color: #8E857B;
  box-shadow: none;
  cursor: default;
}
.btn[disabled] .btn__chip { background: rgba(255, 255, 255, .35); color: #8E857B; }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-2);
  transition: color .2s, text-decoration-color .2s;
}
@media (hover: hover) { .link:hover { color: var(--pen); text-decoration-color: currentColor; } }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(244, 240, 232, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  view-transition-name: brand;
}
.brand__i { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1; }
.brand__p { font: 600 11.5px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; }

.topbar__nav { display: flex; align-items: center; gap: 22px; }
.topbar__link { display: none; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.topbar__link:hover { color: var(--pen); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  transition: background-color .2s;
}
.pill:hover { background: var(--pen); }
.pill--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pill--line:hover { background: transparent; color: var(--pen); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Фото: «проявление» на бумаге ---------- */
.js [data-develop] img {
  opacity: 0;
  filter: grayscale(1) contrast(.5) brightness(1.32) blur(2px);
  transition: filter 2s var(--ease-out), opacity 1.2s ease;
}
.js [data-develop].is-in img { opacity: 1; filter: grayscale(0) contrast(1) brightness(1) blur(0); }

/* =========================================================
   Элементы интерфейса в духе инстаграма
   ========================================================= */
.ui { font-family: var(--ui-font); letter-spacing: -.003em; }
.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

/* кольцо сторис */
.ring {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 2.5px;
  border-radius: 50%;
  background: var(--ig);
}
.ring > * { width: 100%; height: 100%; border: 2.5px solid var(--paper); }
.ring--s { width: 34px; height: 34px; padding: 2px; }
.ring--s > * { border-width: 2px; }

/* аватар-монограмма */
.ava {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; background: #E6DED2;
  font: 600 13px/1 var(--ui-font); color: var(--ink-2);
}
.ava--mono {
  padding-bottom: 1px;
  background: var(--pen); color: #FFF7F0;
  font: italic 400 19px/1 var(--serif);
}
.ava--p { background: #F3D98B; color: var(--ink); }
.ring .ava { width: 100%; height: 100%; font-size: 15px; }

/* стикер-ссылка из сторис */
.sticker {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 16px 0 12px;
  border-radius: 10px;
  background: #fff; color: var(--ink);
  font: 700 14px/1 var(--ui-font);
  letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none;
  transform: rotate(-2.5deg);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55);
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-back);
}
.sticker .i { width: 21px; height: 21px; color: var(--pen); stroke-width: 2.3; }
.sticker:active { transform: rotate(-2.5deg) scale(.95); }
@media (hover: hover) { .sticker:hover { transform: rotate(-1deg) scale(1.03); } }

/* кнопки профиля */
.igbtn {
  display: grid; place-items: center;
  height: 34px; padding: 0 12px;
  border-radius: 9px;
  background: var(--ig-grey); color: var(--ink);
  font: 600 14px/1 var(--ui-font);
  text-decoration: none; white-space: nowrap;
  transition: filter .2s;
}
.igbtn--pri { background: var(--ig-blue); color: #fff; }
.igbtn:active { filter: brightness(.92); }

/* =========================================================
   ГЛАВНАЯ
   ========================================================= */

/* ---------- Первый экран: сторис ---------- */
.hero { position: relative; padding: 8px 10px 0; }

.story-hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  max-width: 460px;
  min-height: calc(100vh - var(--top) - 76px);
  min-height: calc(100svh - var(--top) - 76px);
  max-height: 780px;
  margin: 0 auto;
  padding: 10px 14px 12px;
  border-radius: 22px;
  /* светлая сторис: тёплая бумага и едва заметный отсвет фирменного градиента */
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(252, 175, 69, .22) 0%, transparent 62%),
    radial-gradient(95% 60% at 0% 100%, rgba(225, 48, 108, .13) 0%, transparent 66%),
    linear-gradient(172deg, #FCF1E8 0%, #F8E4DA 100%);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(27, 24, 22, .04), 0 30px 60px -36px rgba(150, 70, 45, .55), inset 0 0 0 1px rgba(27, 24, 22, .05);
}
.story-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  pointer-events: none;
}
.sh__bars { display: flex; gap: 4px; }
.sh__bars i { position: relative; flex: 1; height: 2.5px; border-radius: 2px; background: rgba(27, 24, 22, .14); overflow: hidden; }
.sh__bars i.is-done { background: rgba(27, 24, 22, .72); }
.sh__bars i b { position: absolute; inset: 0; background: rgba(27, 24, 22, .72); transform-origin: left; transform: scaleX(.12); }
.js .sh__bars i.is-run b { transform: scaleX(0); animation: shfill 9s linear .6s forwards; }
@keyframes shfill { to { transform: scaleX(1); } }

.sh__head { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 14px; }
.sh__head .ring > * { border-color: #FCF0E7; }
.sh__head b { font-weight: 600; }
.sh__time { color: var(--muted); }
.sh__more { margin-left: auto; width: 22px; height: 22px; color: var(--ink-2); }

.sh__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 26px 6px 18px; }
.sh__kicker { margin: 0 0 14px; font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh__title { font-size: clamp(40px, 11.4vw, 66px); line-height: 1.02; margin: 0 0 16px; color: var(--ink); }
.sh__title .u { position: relative; white-space: nowrap; }
.sh__lead { margin: 0 0 24px; max-width: 24em; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.sh__hint { margin: 12px 0 0 6px; font-size: 23px; color: var(--pen); transform: rotate(-4deg); transform-origin: left; }
.js .sh__hint { opacity: 0; transition: opacity .6s ease; }
.js .sh__hint.is-in { opacity: 1; }

.sh__reply { display: flex; align-items: center; gap: 14px; }
.sh__input {
  flex: 1; display: flex; align-items: center;
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.2px rgba(27, 24, 22, .28);
  color: var(--ink-2);
  font-size: 14.5px; text-decoration: none;
}
.sh__reply .i { width: 26px; height: 26px; color: var(--ink); }

.hero__under { max-width: 440px; margin: 14px auto 0; padding: 0 8px; text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.hero__under .link { min-height: 0; margin-left: 4px; font-size: 14.5px; }

/* соседние сторис — только на широком экране */
.ghost { display: none; }

/* ---------- Три вопроса ---------- */
.quiz { padding: 48px 0 56px; }
.quiz__intro { margin-bottom: 26px; }
.quiz__intro .lead { margin: 0; }

.quiz__card {
  position: relative;
  background: var(--sheet);
  border-radius: 30px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-2);
}

/* нитка-прогресс */
.thread { position: relative; height: 44px; margin: 2px 6px 18px; }
.thread__svg { position: absolute; left: 0; top: 0; width: 100%; height: 24px; overflow: visible; }
.thread__svg path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; }
.thread__svg path.is-base { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 2 5; }
.thread__knots {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 0; list-style: none;
}
.thread__knots li {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font: 600 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.thread__knots li::before {
  content: "";
  width: 13px; height: 13px; margin-top: 5.5px;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-back);
}
.thread__knots li.is-current { color: var(--ink); }
.thread__knots li.is-current::before { box-shadow: inset 0 0 0 2px var(--pen); }
.thread__knots li.is-done::before { background: var(--pen); box-shadow: inset 0 0 0 2px var(--pen); transform: scale(1.1); }

.quiz__stage { position: relative; }
.scene { display: none; }
.scene.is-active { display: block; }

.scene__n { display: block; margin-bottom: 10px; font: 600 12px/1 var(--sans); letter-spacing: .1em; color: var(--pen); }
.scene__q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 6.4vw, 40px);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0 4px;
  outline: none;
}
.scene__grid { display: grid; gap: 16px; }
.scene__main { display: contents; }
.scene__q { order: 1; }
.scene__grid .vig { order: 2; }
.scene__grid .opts { order: 3; }

/* варианты ответа — строки на бумаге */
.opts { border-top: 1px solid var(--line); margin: 0 4px; }
.opt {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 8px;
  padding: 14px 10px 14px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s;
  border-radius: 4px;
}
@media (hover: hover) { .opt:hover { background: rgba(27, 24, 22, .028); } }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt__l {
  font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.1;
  color: var(--muted); transition: color .25s;
}
.opt__t { font: 500 17px/1.38 var(--sans); text-wrap: pretty; }
.opt__note {
  grid-column: 2;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.opt__note > span {
  min-height: 0;
  overflow: hidden;
  font: 600 22.5px/1.12 var(--hand);
  color: var(--pen);
}
.opt__note > span > span {
  display: block;
  padding-top: 5px;
  transform: rotate(-1.2deg);
  transform-origin: left center;
  clip-path: inset(-30% 100% -30% 0);
  transition: clip-path .9s cubic-bezier(.45, .1, .45, 1) .18s;
}
.opt.is-checked .opt__note { grid-template-rows: 1fr; }
.opt.is-checked .opt__note > span > span { clip-path: inset(-30% -4% -30% -4%); }
.opt.is-checked .opt__l { color: var(--pen); }
.opt:focus-within { outline: none; }
.opt.has-focus { box-shadow: 0 0 0 2px var(--pen); }

/* навигация опроса остаётся после вариантов, чтобы не закрывать ответы */
.quiz__nav {
  position: static;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px -16px -16px;
  padding: 18px 20px calc(14px + env(safe-area-inset-bottom));
  border-radius: 0 0 30px 30px;
  background: linear-gradient(180deg, rgba(251, 249, 245, 0) 0%, var(--sheet) 34%);
}
.quiz__nav .btn { margin-left: auto; }
.quiz__done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; margin: 0 4px; }
.quiz__done p { margin: 0; font-size: 16px; color: var(--ink-2); }
.quiz__done .hand { font-size: 25px; margin-right: 6px; }

/* ---------- Мини-экраны в опросе ---------- */
.vig {
  position: relative;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 16px 34px -20px rgba(27, 24, 22, .38), inset 0 0 0 1px rgba(27, 24, 22, .05);
  padding: 12px;
  overflow: hidden;
}
.vig__bar {
  display: flex; align-items: center; gap: 8px;
  min-height: 16px; margin-bottom: 10px;
  font: 500 12.5px/1.25 var(--ui-font); color: var(--muted);
}
.vig__bar b { color: var(--ink); font-weight: 600; }
.vig__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pen); flex: none; }

/* сцена 1 — рилс */
.rl { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.rl__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #3A322C;
  color: #fff;
}
.rl__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, transparent 20%, transparent 58%, rgba(0, 0, 0, .55) 100%);
}
.rl__frame > :not(img) { position: absolute; z-index: 1; }
.rl__views { left: 7px; top: 7px; display: flex; align-items: center; gap: 3px; font: 600 11px/1 var(--ui-font); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.rl__views .i { width: 11px; height: 11px; }
.rl__text { left: 8px; right: 24px; top: 33%; text-align: center; line-height: 1.55; }
.rl__text span {
  padding: 2px 4px;
  background: #fff; color: #111;
  border-radius: 3px;
  font: 700 9.5px/1.55 var(--ui-font);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.rl__side { right: 4px; bottom: 30px; display: grid; gap: 8px; justify-items: center; margin: 0; padding: 0; list-style: none; }
.rl__side li { display: grid; justify-items: center; gap: 1px; font: 600 10px/1.1 var(--ui-font); font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.rl__side .i { width: 19px; height: 19px; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.rl__user { left: 7px; bottom: 9px; display: flex; align-items: center; gap: 5px; font: 600 9.5px/1 var(--ui-font); }
.rl__user i { width: 15px; height: 15px; border-radius: 50%; background: #EFE8DD; border: 1px solid #fff; }

.rl__panel { display: grid; gap: 10px; align-content: start; min-width: 0; }
.nb {
  position: relative;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 30px; margin: 2px 0 4px; padding: 6px 11px;
  border-radius: 10px;
  background: var(--ig-red); color: #fff;
  font: 600 13.5px/1 var(--ui-font); font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 18px -10px rgba(255, 48, 64, .8);
  transform-origin: 16px 100%;
  transition: opacity .25s ease, transform .45s var(--ease-back);
}
.nb::after { content: ""; position: absolute; left: 14px; bottom: -5px; border: 6px solid transparent; border-top-color: var(--ig-red); border-bottom: 0; }
.nb span { display: inline-flex; align-items: center; gap: 4px; }
.nb .i { width: 14px; height: 14px; }
.vig--reel[data-state=""] .nb { opacity: 0; transform: scale(.6); }

.rl__fol { position: relative; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.rl__fol .i { width: 17px; height: 17px; color: var(--ink-2); }
.rl__fol b { margin: 0 4px 0 2px; color: var(--ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

.react-zone { position: relative; height: 118px; border-top: 1px dashed var(--line-2); }
.react {
  position: absolute; inset: 10px 0 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .45s var(--ease);
  pointer-events: none;
  font-size: 12.5px; line-height: 1.35;
}
.vig[data-state=""] .react--idle,
.vig[data-state="a"] .react--a,
.vig[data-state="b"] .react--b,
.vig[data-state="c"] .react--c { opacity: 1; transform: none; }
.react--idle { color: var(--muted); font-style: italic; }

.ios { border-radius: 13px; overflow: hidden; background: #F2F2F4; text-align: center; }
.ios__t { margin: 0; padding: 8px 8px 7px; font-size: 11.5px; color: #6B6B70; border-bottom: 1px solid #DCDCE0; }
.ios__b { display: block; padding: 7px; font-size: 14px; color: #0A7AFF; border-bottom: 1px solid #DCDCE0; }
.ios__b:last-child { border: 0; font-weight: 600; }
.ios__b--red { color: #FF3B30; }

.react--b { display: grid; gap: 8px; align-content: start; }
.faces { display: flex; }
.faces i {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font: normal 600 11px/1 var(--ui-font); color: #fff;
  border: 2px solid #fff; margin-left: -7px;
}
.faces i:first-child { margin-left: 0; }
.react__t b { font-weight: 600; }

.react--c { display: grid; gap: 9px; align-content: start; }
.cmt { display: flex; gap: 8px; margin: 0; }
.cmt i { flex: none; width: 24px; height: 24px; border-radius: 50%; }
.cmt b { font-weight: 600; }

/* сцена 2 — профиль */
.igp { display: grid; gap: 10px; }
.igp__head { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; }
.igp__ava { width: 58px; height: 58px; border-radius: 50%; padding: 2.5px; background: var(--ig); }
.igp__ava span {
  display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: #EFE8DD; border: 2.5px solid #fff;
  font: 600 13px/1 var(--ui-font); color: var(--ink-2);
}
.igp__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
.igp__counts b { display: block; font: 700 15px/1.2 var(--ui-font); font-variant-numeric: tabular-nums; }
.igp__counts span { font: 400 11px/1.2 var(--ui-font); color: var(--ink-2); }
.igp__txt { min-height: 50px; }
.igp__name { margin: 0 0 2px; font: 600 13px/1.3 var(--ui-font); }
.igp__bio { margin: 0; font: 400 12.5px/1.38 var(--ui-font); color: var(--ink); }
.skel { display: block; height: 8px; border-radius: 6px; background: #EFEAE2; margin: 6px 0 0; }
.skel + .skel { width: 62%; }

.igp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 2px -12px -12px; padding: 0; list-style: none; }
.igp__grid li { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #EFEAE2; }
.igp__grid li:nth-child(n+4) { display: none; }
.igp__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.igp__grid li > .i { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
/* «текстовые» плитки: эксперт по шаблону и чужие цитаты */
.tt {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 10px 8px;
  text-align: center;
}
.tt--expert { background: #E9DFD1; color: #5C4E40; font: 500 12px/1.2 var(--serif); }
.tt--expert::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 18px; height: 1px; margin-left: -9px; background: currentColor; opacity: .5; }
.tt--quote { background: #E6E3DE; color: #6E6962; font: italic 400 12px/1.25 var(--serif); }
.tt--quote::before { content: "“"; position: absolute; left: 8px; top: 2px; font: 400 26px/1 var(--serif); opacity: .45; }
/* короткая подпись поверх фото: заголовок «эксперта» или чужая цитата */
.tt--cap { inset: auto 5px 5px; padding: 5px 6px; border-radius: 3px; font-size: 10.5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tt--cap.tt--expert { background: rgba(233, 223, 209, .94); }
.tt--cap.tt--expert::after { display: none; }
.tt--cap.tt--quote { padding-left: 14px; background: rgba(230, 227, 222, .93); color: #5F5A54; }
.tt--cap.tt--quote::before { left: 4px; top: 1px; font-size: 20px; }

/* сцена 3 — переписка */
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-size: 14px; font-weight: 600; }
.chat__head small { font-size: 12px; color: var(--muted); }
.chat__body { display: flex; flex-direction: column; gap: 7px; padding-top: 12px; min-height: 214px; }
.msg { max-width: 86%; margin: 0; padding: 9px 12px; border-radius: 17px; font-size: 14px; line-height: 1.4; }
.msg--in { align-self: flex-start; background: #F3EFE9; border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* ---------- Разбор (результат) ---------- */
.result { padding: 8px 0 72px; }
.result__grid { display: grid; gap: 28px; }

.result__hand {
  position: relative; z-index: 3;
  margin: 0 0 12px; font-size: 30px;
  transform: rotate(-2.5deg); transform-origin: left;
}
.result__title { margin-bottom: 14px; }
.result__head > * { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .8s var(--ease-out); }
.result.is-open .result__head > * { opacity: 1; transform: none; }
.result.is-open .result__head > :nth-child(2) { transition-delay: .3s; }
.result.is-open .result__head > :nth-child(3) { transition-delay: .45s; }
.result.is-open .result__head > :nth-child(4) { transition-delay: .6s; }

.result__case {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 2px 0 26px; padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-1);
  color: var(--ink); text-decoration: none;
  font-size: 15px;
}
.result__case .ring > * { border-color: var(--white); }
.result__case .ava { font: italic 400 13px/1 var(--serif); color: var(--ink); background: var(--c, #EFE8DD); }
.result__case b { font-weight: 600; }
.result__case .i { width: 18px; height: 18px; color: var(--pen); }

.knots-wrap { position: relative; margin-top: 8px; }
.knots { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; }
.knots__svg { position: absolute; left: 0; top: 0; width: 26px; height: 10px; overflow: visible; }
.knots__svg path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; }
.knot { position: relative; padding: 0 0 26px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .7s var(--ease-out); }
.knot::before {
  content: ""; position: absolute; left: -29px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pen); box-shadow: 0 0 0 4px var(--paper);
  transform: scale(0); transition: transform .45s var(--ease-back) .05s;
}
.knot.is-in { opacity: 1; transform: none; }
.knot.is-in::before { transform: scale(1); }
.knot__tag { margin: 0 0 8px; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.knot__quote { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; line-height: 1.18; text-wrap: balance; }
.knot__read { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.knot__notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.knot__notes li { font: 600 23px/1.14 var(--hand); color: var(--pen); text-wrap: pretty; }
.knot:last-child { padding-bottom: 6px; }

.offer {
  position: relative;
  background: var(--white);
  border-radius: 30px;
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .8s var(--ease-out);
  view-transition-name: plan-card;
}
.offer.is-in { opacity: 1; transform: none; }
.offer__hand { margin: 0 0 12px; font-size: 26px; transform: rotate(-2deg); transform-origin: left; }
.offer__prod { display: block; margin-bottom: 8px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.offer__name { position: relative; display: inline-block; margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.02; }
.offer__meta { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.why { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 13px; }
.why li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.why li svg { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; overflow: visible; }
.why li svg path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.offer__price b { font: 600 28px/1 var(--sans); font-variant-numeric: tabular-nums; }
.offer__price span { font-size: 14px; color: var(--muted); }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; }

.result__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; margin-top: 22px; }
.result__foot p { margin: 0; font-size: 13px; color: var(--muted); max-width: 30em; }

/* ---------- Кейсы: лента сторис + пост-карусель ---------- */
.cases { padding: 72px 0 64px; border-top: 1px solid var(--line); }
.sec-head .lead { margin-bottom: 0; }

.tray {
  display: flex; gap: 12px;
  margin: 26px calc(var(--gutter) * -1) 18px;
  padding: 14px var(--gutter) 16px;
  overflow-x: auto;
  overflow-y: clip;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tray::-webkit-scrollbar { display: none; }
.tray__i {
  position: relative;
  flex: none;
  display: grid; justify-items: center; gap: 3px;
  width: 76px; padding: 0;
  border: 0; background: none;
  -webkit-tap-highlight-color: transparent;
}
.tray__ring {
  display: grid; place-items: center;
  width: 70px; height: 70px; padding: 2.5px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--ig);
  transition: transform .35s var(--ease-back), background .3s;
}
.tray__i.is-seen .tray__ring { background: #CFC7BC; }
.tray__ava {
  display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--c, #E9DFD2);
  font: italic 400 21px/1 var(--serif); color: var(--ink);
}
.tray__n { max-width: 76px; font-size: 12.5px; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.tray__k { font-size: 11px; line-height: 1.1; color: var(--muted); white-space: nowrap; }
.tray__i[aria-selected="true"] .tray__ring { transform: scale(1.06); }
.tray__i[aria-selected="true"] .tray__n { font-weight: 700; }
.tray__i[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 22px; height: 2.5px; margin-left: -11px; border-radius: 2px;
  background: var(--pen);
}
.tray__match {
  display: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--pen);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.tray__i.is-match .tray__k { display: none; }
.tray__i.is-match .tray__match { display: inline-flex; }

.posts { position: relative; max-width: 470px; }
.post {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  --sbg: #F4EBE1;
}
.post[data-post="serebryakova"] { --sbg: #F2ECE3; }
.post[data-post="litar"] { --sbg: #EBEEF1; }
.post[data-post="veronika"] { --sbg: #ECF0E5; }
.post[data-post="valeria"] { --sbg: #F0EBF1; }
.post[data-post="romanova"] { --sbg: #F6ECE5; }
.post.is-entering { animation: postin .5s var(--ease-out); }
@keyframes postin { from { opacity: 0; transform: translateY(10px); } }

.post__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.post__ava {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c, #EFE8DD);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #DDD5C9;
  font: italic 400 14px/1 var(--serif); color: var(--ink);
}
.post__who { min-width: 0; flex: 1; display: grid; }
.post__who b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.post__who small { font-size: 12px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__head > .i { width: 22px; height: 22px; color: var(--ink-2); }

.post__media { position: relative; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { box-shadow: inset 0 0 0 3px var(--pen); }
.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column;
  padding: 14px 16px 18px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--sbg);
  overflow: hidden;
}
/* «сцена»: светлый луч прожектора и край занавеса */
.slide--stage {
  background:
    radial-gradient(46% 40% at 50% 42%, rgba(255, 252, 245, .95) 0%, rgba(255, 252, 245, 0) 100%),
    linear-gradient(90deg, rgba(196, 72, 52, .30) 0%, rgba(196, 72, 52, 0) 14%, rgba(196, 72, 52, 0) 86%, rgba(196, 72, 52, .30) 100%),
    #EEDFD2;
}
.slide__chip {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 24, 22, .07);
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--ink-2);
}
.slide__vis { position: relative; flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; min-height: 0; padding: 10px 0; }
.slide__vis--top { align-content: center; gap: 10px; }
.slide__cap { margin: 0; font-size: 16px; line-height: 1.4; text-wrap: pretty; }
.slide__cap--s { font-size: 14px; line-height: 1.42; color: var(--ink-2); }
/* пометка, что экран нарисован по источнику, а не скриншот */
.ill { margin: -4px 0 0; font: 500 11px/1.3 var(--ui-font); letter-spacing: .01em; color: var(--muted); text-align: center; }

.post__count {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 18, 16, .72); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.post__arrow {
  position: absolute; top: 50%; z-index: 3;
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-top: -16px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  transition: opacity .2s;
}
.post__arrow .i { width: 18px; height: 18px; stroke-width: 2.3; }
.post__arrow--prev { left: 8px; }
.post__arrow--next { right: 8px; }
.post__arrow[disabled] { opacity: 0; pointer-events: none; }
/* на телефоне листают пальцем, как в приложении: стрелки не закрывают слайд */
@media (hover: none) and (pointer: coarse) { .post__arrow { display: none; } }
.post__bar { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 2px; color: var(--ink); }
.post__bar .i { width: 25px; height: 25px; }
.post__save { margin-left: auto; }
.dots { position: absolute; left: 50%; top: 50%; display: flex; gap: 4px; transform: translate(-50%, -2px); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #D3CBBF; transition: background-color .2s, transform .2s; }
.dots i.is-on { background: var(--pen); transform: scale(1.15); }
.post__src { margin: 0; padding: 10px 12px 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.post__src a { color: var(--ink-2); }
.cases__more { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.cases__more .link { min-height: 0; font-size: 15px; }

/* — Кристина — */
.hlx { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hlx li { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.hlx i, .orbit__s i {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1.5px #D7CEC1, inset 0 0 0 3px #fff;
  font-style: normal; font-size: 22px; line-height: 1;
}
.mstat { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 0; padding: 9px 14px; border-radius: 12px; background: #fff; font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-1); }
.mstat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.is-down { color: #E0352B; }
.is-up { color: var(--ig-green); }

.orbit { position: relative; width: min(100%, 270px); aspect-ratio: 1; }
.orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* схема в координатах 0…100: толщина линии — в тех же единицах (≈2px) */
.orbit__svg path { fill: none; stroke: var(--pen); stroke-width: .82; stroke-linecap: round; }
.orbit__s {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  display: grid; justify-items: center; gap: 4px;
  transform: translate(-50%, -50%);
  font-size: 12px; color: var(--ink-2);
}
.orbit__s i { width: 50px; height: 50px; font-size: 20px; }
.orbit__c {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: grid; place-items: center;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2.5px var(--pen), 0 14px 24px -14px rgba(27, 24, 22, .5);
  transform: scale(.6); opacity: 0;
  transition: transform .6s var(--ease-back), opacity .3s;
}
.orbit__c .hand { font-size: 30px; }
.orbit.is-on .orbit__c { transform: none; opacity: 1; }

/* «Статистика» */
.ins {
  width: min(100%, 300px);
  padding: 10px 12px 6px;
  border-radius: 16px;
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 rgba(27, 24, 22, .04), 0 18px 30px -18px rgba(27, 24, 22, .45);
}
.ins__top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.ins__top .i { width: 19px; height: 19px; }
.ins__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 10px 0 12px; padding: 3px; border-radius: 10px; background: var(--ig-grey); }
.ins__seg button {
  min-height: 30px; padding: 0 6px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2);
  font: 600 12.5px/1.1 var(--ui-font);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.ins__seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ins__main { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: end; gap: 10px; }
.ins__l { margin: 0; font-size: 12.5px; color: var(--muted); }
.ins__big { margin: 2px 0 6px; font: 700 28px/1.05 var(--ui-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins__chip { display: inline-block; margin: 0 0 4px; padding: 4px 8px; border-radius: 999px; background: #E4F6E8; color: #18853A; font-size: 12px; font-weight: 600; transition: opacity .3s; }
.ins.is-from .ins__chip { opacity: 0; }
.ins__bars { display: flex; align-items: flex-end; justify-content: space-between; height: 92px; padding-bottom: 16px; }
.ins__bars span { position: relative; width: 28px; height: max(3px, var(--h)); border-radius: 5px 5px 2px 2px; background: #D9D3CA; transform-origin: 50% 100%; transition: background-color .3s; }
.ins__bars em { position: absolute; left: 50%; top: 100%; margin-top: 4px; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ins:not(.is-from) .ins__bars span:last-child, .ins.is-from .ins__bars span:first-child { background: var(--pen); }
.ins__rows { margin: 8px 0 0; }
.ins__rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #EFEAE2; font-size: 13px; }
.ins__rows dt { color: var(--ink-2); }
.ins__rows dd { margin: 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

/* — Серебрякова: опрос в сторис — */
.poll {
  position: relative;
  width: min(100%, 250px);
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: #fff; color: var(--ink);
  text-align: center;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .6);
}
.poll__q { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.poll__o { display: block; margin-top: 7px; padding: 11px 10px; border-radius: 12px; background: var(--ig-grey); font-size: 15px; font-weight: 600; }
.poll__o > span { position: relative; }
.poll__o--on { background: #FBE6E1; }
.poll__note { position: absolute; right: -6px; bottom: -36px; font-size: 24px; color: var(--pen); transform: rotate(-5deg); white-space: nowrap; }
.slide--stage .poll + .ill { margin-top: 4px; }
.poll[data-pen-host] + .ill { margin-top: 40px; }

/* — Литар: рекомендации и уведомления — */
.sugg, .notif { width: min(100%, 300px); padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); }
.sugg__h { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sugg__r, .notif__r { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 0; font-size: 13.5px; }
.sugg__r i, .notif__r i {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #E9E4DC url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><circle cx='17' cy='13.5' r='6' fill='%23CFC7BC'/><path d='M5.5 31c1.8-6.4 6.3-9.5 11.5-9.5s9.7 3.1 11.5 9.5' fill='%23CFC7BC'/></svg>") center / cover;
}
.sugg__r span { flex: 1; font-weight: 600; }
.sugg__r b { margin-left: auto; }
.sugg__r b, .notif__r em { flex: none; padding: 7px 12px; border-radius: 8px; background: var(--ig-blue); color: #fff; font: 600 12.5px/1 var(--ui-font); }
.notif__r span { flex: 1; line-height: 1.3; }
.notif__r b { font-weight: 600; }
.notif__r em { font-style: normal; }
/* имя скрыто: в отзыве — «знакомые», без имён */
.nm { display: inline-block; width: 64px; height: 8px; margin-right: 4px; border-radius: 4px; background: #E3DCD2; vertical-align: 1px; }
.sugg__r .nm { flex: 1; max-width: 120px; height: 9px; }

/* — зачёркнуто → от руки — */
.swap { position: relative; width: min(100%, 300px); text-align: center; }
.swap__old { margin: 0 0 14px; font: 400 30px/1.15 var(--serif); color: var(--ink-2); }
.swap__old > span { position: relative; }
.swap__new { margin: 0; font-size: 34px; line-height: 1.05; transform: rotate(-2.5deg); }

/* — Вероника: мини-экран «Обычный ролик» и «Статистика» — в press.css, раздел 12 — */

/* — Валерия: заметка — */
.note { width: min(100%, 270px); padding: 14px 16px 16px; border-radius: 14px; background: #FFFDF7; box-shadow: var(--shadow-1); }
.note__h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 19px; font-weight: 700; }
@keyframes caret { 50% { opacity: 0; } }
.note__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.note__tags span { padding: 5px 9px; border-radius: 999px; background: #F1ECE3; font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* — Романова: шаги работы (было и стало — в press.css, раздел 12) — */
.chain { display: grid; gap: 10px; width: min(100%, 290px); margin: 0; padding: 0; list-style: none; counter-reset: c; }
.chain li {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-1);
  font-size: 14px; line-height: 1.3;
  counter-increment: c;
  opacity: 0; transform: translateX(10px);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.chain li::before { content: counter(c); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pen); color: #fff; font-size: 12.5px; font-weight: 700; }
.chain li + li::after { content: ""; position: absolute; left: 23px; top: -11px; width: 2px; height: 11px; background: var(--pen); }
.chain li:last-child { font-weight: 700; }
.chain.is-on li { opacity: 1; transform: none; }
.chain.is-on li:nth-child(2) { transition-delay: .15s; }
.chain.is-on li:nth-child(3) { transition-delay: .3s; }
.chain.is-on li:nth-child(4) { transition-delay: .45s; }

/* ---------- Программа: профиль + сторис ---------- */
.program { padding: 72px 0 56px; border-top: 1px solid var(--line); }
.program__grid { display: grid; gap: 30px; }
.program__title { font-size: clamp(50px, 14vw, 150px); line-height: .95; margin-bottom: 12px; }
.program__sub { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 5.4vw, 34px); line-height: 1.15; }
.program__lead { margin: 0; max-width: 30em; color: var(--ink-2); }

.prof {
  position: relative;
  max-width: 470px;
  padding: 18px 16px 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.prof__head { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: center; }
.prof__ava {
  width: 86px; height: 86px; padding: 3px;
  border: 0; border-radius: 50%;
  background: var(--ig);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease);
}
.prof__ava:active { transform: scale(.95); }
.prof__ava.is-seen { background: #D6CFC5; }
.prof__ava-in {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%; border: 3px solid #fff;
  background: radial-gradient(80% 80% at 30% 20%, #E2573F 0%, var(--pen) 60%, #B9311F 100%);
  color: #FFF4EA;
  font: italic 400 38px/1 var(--serif);
}
.prof__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
.prof__counts b { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.prof__counts span { display: block; font-size: 12.5px; line-height: 1.2; color: var(--ink-2); }
.prof__name { margin: 12px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.prof__cat { margin: 0; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.prof__bio { margin: 3px 0 12px; font-size: 14px; line-height: 1.42; }
.prof__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.hl {
  display: flex; gap: 14px;
  margin: 16px -16px 0;
  padding: 2px 16px 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.hl::-webkit-scrollbar { display: none; }
.hl li { flex: none; }
.hl__b { display: grid; justify-items: center; gap: 6px; width: 66px; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.hl__ring { display: grid; place-items: center; width: 64px; height: 64px; padding: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1px #D9D2C7; transition: transform .25s var(--ease-back); }
.hl__b:active .hl__ring { transform: scale(.93); }
.hl__cov {
  display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--paper-deep); color: var(--ink);
  font: 600 13px/1 var(--ui-font);
  overflow: hidden;
}
.hl__cov s { font: italic 400 15px/1 var(--serif); text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.hl__cov--ink { background: #F6DCD3; color: var(--ink); font: italic 400 16px/1 var(--serif); }
.hl__cov--butter { background: #F5E3A9; color: var(--ink); font: italic 400 16px/1 var(--serif); }
.hl__cov--pen { background: var(--pen); color: #fff; font-size: 22px; }
.hl__cov--cal { align-content: center; gap: 1px; background: #fff; box-shadow: inset 0 0 0 1px #E6DFD4; font: 700 19px/1 var(--ui-font); }
.hl__cov--cal small { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pen); }
.hl__cov--book { background: #EFE3D3; }
.hl__cov--book i { width: 24px; height: 32px; border-radius: 2px 6px 6px 2px; background: linear-gradient(160deg, #D24A35, #A82F1F); box-shadow: 3px 2px 0 -1px #F2BFCB, 5px 4px 0 -2px #F3D98B; }
.hl__t { font-size: 12px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.prof__tap { margin: 8px 0 0; font-size: 22px; transform: rotate(-2deg); transform-origin: left; }

.prof__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 12px -16px 0; border-top: 1px solid #ECE6DC; }
.prof__tabs span { display: grid; place-items: center; height: 42px; color: var(--muted); }
.prof__tabs span.is-on { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }
.prof__tabs .i { width: 22px; height: 22px; }
.prof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0 -16px; padding: 0; list-style: none; }
.tile {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 4px;
  width: 100%; aspect-ratio: 3 / 4;
  padding: 10px;
  border: 0; border-radius: 0;
  text-align: center; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter .2s;
}
.tile:active { filter: brightness(.94); }
.tile--bible { background: #EADBC8; }
.tile__book {
  display: grid; place-items: center;
  width: 64%; aspect-ratio: 3 / 4;
  border-radius: 3px 9px 9px 3px;
  background: linear-gradient(160deg, #D24A35, #A82F1F);
  box-shadow: inset 5px 0 6px -4px rgba(80, 10, 0, .55), 4px 4px 0 -2px #F2BFCB, 7px 8px 0 -4px #F3D98B, 0 12px 18px -10px rgba(120, 40, 20, .55);
  font: italic 400 15px/1.05 var(--serif); color: #FFF1E4;
}
.tile--not { background: var(--paper); }
.tile--not span { display: grid; gap: 2px; }
.tile--not s { font: italic 400 19px/1.15 var(--serif); color: var(--ink-2); text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.tile--price { background: var(--pen); color: #fff; }
.tile--price b { font: 600 17px/1.15 var(--sans); }
.tile__k { font-size: 11.5px; opacity: .85; }

.program__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 34px; }

/* исходники сторис: без JS — обычный список */
.stories-src { display: grid; gap: 16px; margin-top: 40px; }
.js .stories-src { display: none; }
.sto__h { margin: 0 0 8px; font: 600 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stories-src .sto__s { margin-bottom: 8px; padding: 18px; border-radius: 18px; background: var(--white); }

/* слайд сторис */
.sto__s.is-live {
  position: relative;
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 26px 24px;
  color: var(--ink);
  background: var(--paper);
  background-image: var(--grain);
}
.sto__s.is-live[data-bg="blush"], .sto__s.is-live[data-bg="ink"] { background: radial-gradient(100% 60% at 100% 0%, rgba(252, 175, 69, .18), transparent 62%), linear-gradient(172deg, #FBEDE6, #F5D9D3); }
.sto__s.is-live[data-bg="butter"] { background: radial-gradient(90% 60% at 0% 100%, rgba(225, 48, 108, .10), transparent 62%), linear-gradient(172deg, #FBF2D6, #F4E2A8); }
.sto__s.is-live[data-bg="pen"] { color: #fff; background: radial-gradient(100% 70% at 100% 0%, rgba(255, 170, 120, .38), transparent 60%), linear-gradient(170deg, #DB4A33, #B5341F); }
.sto__s.is-live[data-bg="deep"] { background-color: var(--paper-deep); }
.sto__s.is-live > * { animation: stoin .55s var(--ease-out) both; }
.sto__s.is-live > :nth-child(2) { animation-delay: .08s; }
.sto__s.is-live > :nth-child(3) { animation-delay: .16s; }
.sto__s.is-live > :nth-child(4) { animation-delay: .24s; }
@keyframes stoin { from { opacity: 0; transform: translateY(12px); } }
.sto__k { margin: 0 0 14px; font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.sto__big { margin: 0 0 18px; font: 500 clamp(28px, 8vw, 36px)/1.14 var(--serif); text-wrap: balance; }
.sto__mid { margin: 0 0 16px; font: 500 19px/1.42 var(--sans); text-wrap: pretty; }
.sto__small { margin: 0 0 18px; font: 400 15.5px/1.48 var(--sans); opacity: .86; text-wrap: pretty; }
.sto__hand { margin: 4px 0 0; font-size: 27px; transform: rotate(-2deg); transform-origin: left; }
.sto__date { margin: 0 0 10px; font: 400 clamp(60px, 18vw, 84px)/1 var(--serif); letter-spacing: -.01em; }
.sto__list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 14px; }
.sto__list li { position: relative; font: 500 19px/1.35 var(--sans); text-wrap: pretty; }
.sto__list li > span { position: relative; }
.sto__list--strike li { padding-left: 28px; }
.sto__list--strike li::before { content: ""; position: absolute; top: .67em; left: 0; width: 15px; height: 2px; border-radius: 999px; background: var(--pen); }
.sto__list--tick li { padding-left: 34px; }
.sto__list--tick li svg { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; overflow: visible; }
.sto__list--tick li svg path { fill: none; stroke: var(--pen); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.sto__rows { margin: 0; }
.sto__rows div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.35; }
.sto__rows dt { color: var(--muted); }
.sto__rows dd { margin: 0; font-weight: 600; }
.sto__s.is-live .sticker--sv { position: relative; z-index: 4; margin-top: 6px; }
.sto__s.is-live[data-bg="paper"] .sticker--sv, .sto__s.is-live[data-bg="deep"] .sticker--sv { box-shadow: 0 0 0 1px var(--line), 0 12px 24px -12px rgba(0, 0, 0, .35); }

/* книга бренда */
.book { position: relative; width: 170px; height: 220px; margin: 0 0 26px 4px; transform: rotate(-4deg); }
.book__cover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 18px 18px 24px;
  border-radius: 6px 16px 16px 6px;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 5px), linear-gradient(160deg, #D24A35, #A82F1F);
  box-shadow: inset 10px 0 12px -8px rgba(80, 10, 0, .5), inset 14px 0 0 -12px rgba(255, 255, 255, .12), 0 26px 40px -22px rgba(120, 40, 20, .6);
}
.book__title { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1; color: #FFF1E4; }
.book__owner { font-size: 22px; color: #FFE1B8; transform: rotate(-3deg); }
.book__tabs { position: absolute; top: 22px; right: -1px; z-index: 1; display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.book__tabs li {
  display: flex; align-items: center;
  width: 100px; height: 32px; padding: 0 0 0 44px;
  border-radius: 0 10px 10px 0;
  background: var(--c);
  font: 600 10.5px/1 var(--sans); letter-spacing: .04em; color: rgba(27, 24, 22, .78);
  transform: translateX(-44px);
  transition: transform .6s var(--ease-back);
}
.is-in .book__tabs li { transform: translateX(62px); }
.is-in .book__tabs li:nth-child(2) { transition-delay: .12s; }
.is-in .book__tabs li:nth-child(3) { transition-delay: .24s; }
.is-in .book__tabs li:nth-child(4) { transition-delay: .36s; }

/* просмотр сторис */
.sv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.sv__scrim { position: absolute; inset: 0; background: rgba(238, 230, 219, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sv__frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: #fff;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.sv__bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 6; display: flex; gap: 3px; }
.sv__bars i { position: relative; flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv__bars i.is-done { background: rgba(255, 255, 255, .95); }
.sv__bars i b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.sv__bars i.is-run b { animation: svfill var(--dur, 6.5s) linear forwards; }
.sv__bars i.is-static b { transform: scaleX(1); }
.sv.is-paused .sv__bars i.is-run b { animation-play-state: paused; }
@keyframes svfill { to { transform: scaleX(1); } }
.sv__head { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 12px; right: 4px; z-index: 6; display: flex; align-items: center; gap: 9px; }
.sv__ava { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pen); color: #FFF4EA; font: italic 400 16px/1 var(--serif); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.sv__who { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.sv__who b { font-weight: 600; }
.sv__who span { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv__x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; }
.sv__x .i { width: 26px; height: 26px; }
.sv__stage { position: absolute; top: calc(70px + env(safe-area-inset-top)); right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); left: 0; z-index: 4; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; }
.sv__stage a, .sv__stage button { pointer-events: auto; }
.sv__tap { position: absolute; top: calc(70px + env(safe-area-inset-top)); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; padding: 0; border: 0; background: transparent; pointer-events: none; -webkit-tap-highlight-color: transparent; }
.sv__tap--prev { left: 0; width: 32%; }
.sv__tap--next { right: 0; width: 68%; }
.sv__tap:focus-visible { outline: 3px solid var(--pen-light); outline-offset: -8px; border-radius: 14px; }
.sv__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); }
.sv__reply { flex: 1; display: flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px currentColor; color: inherit; font-size: 14.5px; text-decoration: none; opacity: .9; }
.sv__cta { display: flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.sv[data-tone="light"] .sv__frame { color: var(--ink); }
.sv[data-tone="light"] .sv__bars i { background: rgba(27, 24, 22, .16); }
.sv[data-tone="light"] .sv__bars i.is-done, .sv[data-tone="light"] .sv__bars i b { background: var(--ink); }
.sv[data-tone="light"] .sv__ava { box-shadow: 0 0 0 1.5px rgba(27, 24, 22, .3); }
.sv[data-tone="light"] .sv__cta { background: var(--ink); color: var(--paper); }

/* ---------- Ирина ---------- */
.irina { padding: 56px 0 64px; border-top: 1px solid var(--line); overflow: clip; }
.irina__grid { display: grid; gap: 8px; }
.irina__photo {
  position: relative;
  width: min(84%, 440px);
  margin: 14px auto 0;
  padding: 9px 9px 54px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(27, 24, 22, .05), 0 30px 50px -30px rgba(27, 24, 22, .55);
  transform: rotate(-2.4deg);
}
.irina__photo::before {
  content: ""; position: absolute; z-index: 2; top: -13px; left: 50%;
  width: 104px; height: 26px; margin-left: -52px;
  background: rgba(233, 222, 200, .82);
  transform: rotate(3deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.irina__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 36%;
  border-radius: 2px;
  background: #E9E2D6;
}
.irina__photo figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 13px;
  font: 600 23px/1 var(--hand); color: var(--ink-2);
}
.irina__text { position: relative; margin-top: 30px; }
.irina__role { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.irina__big { font-family: var(--serif); font-size: clamp(24px, 6.2vw, 36px); line-height: 1.2; text-wrap: balance; }
.irina__quote { margin: 26px 0 22px; padding: 20px 20px 18px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow-1); }
.irina__quote p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.irina__quote cite { font-style: normal; font-size: 13px; color: var(--muted); }
.irina__hand { font-size: 30px; transform: rotate(-3deg); transform-origin: left; margin: 0 0 18px; }
.irina__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }

/* ---------- Вопросы ---------- */
.faq { padding: 64px 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: 22px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
  cursor: pointer;
  font-weight: 600; font-size: 17.5px; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 12px no-repeat,
    var(--paper-deep);
  transition: transform .35s var(--ease), background-color .25s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 44px 20px 0; color: var(--ink-2); }
.qa__a p:last-child { margin-bottom: 0; }

/* ---------- Финал ---------- */
/* Вся секция — в press.css, раздел 7: «конец ленты» и «твоя история» */

/* ---------- Подвал ---------- */
.footer { padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; gap: 16px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer__nav a:hover { color: var(--pen); }
.footer p { margin: 0; }
.footer__legal { font-size: 12.5px; line-height: 1.5; }

/* =========================================================
   ТАРИФЫ И ОПЛАТА
   ========================================================= */
.pay-head { padding: 26px 0 4px; }
.pay-head__title { font-size: clamp(38px, 10vw, 72px); margin-bottom: 18px; }

.inote { display: flex; align-items: flex-end; gap: 10px; max-width: 560px; }
.inote__ava {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: #C9A27E url("../assets/irina/2026-10-09%2018.36.02.jpg") 66% 22% / 180% auto no-repeat;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px #D9CFC2;
}
.inote__bubble {
  position: relative; flex: 1;
  min-height: 64px; padding: 11px 15px 12px;
  border-radius: 22px 22px 22px 6px;
  background: var(--white); box-shadow: var(--shadow-1);
}
.inote__name { display: block; margin-bottom: 3px; font: 600 12px/1.2 var(--sans); color: var(--muted); }
.inote__text { margin: 0; font-size: 15.5px; line-height: 1.45; }
.inote__text a { color: var(--pen); font-weight: 600; }
.inote__typing { display: none; gap: 4px; padding: 6px 0 4px; }
.inote__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite ease-in-out; }
.inote__typing i:nth-child(2) { animation-delay: .15s; }
.inote__typing i:nth-child(3) { animation-delay: .3s; }
.inote.is-typing .inote__typing { display: inline-flex; }
.inote.is-typing .inote__text { display: none; }

.pay-grid { display: grid; gap: 30px; padding: 26px 0 48px; }
.pay-main { display: grid; gap: 28px; min-width: 0; }

.plans { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.plan {
  position: relative;
  display: grid; gap: 6px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .25s, background-color .25s, transform .25s var(--ease);
}
@media (hover: hover) { .plan:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); } }
.plan:active { transform: scale(.99); }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.plan.is-checked { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-1); }
.plan.has-focus { outline: 3px solid var(--pen); outline-offset: 3px; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.05; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan__box { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .25s; }
.plan.is-checked .plan__box { box-shadow: inset 0 0 0 1.5px transparent; }
.plan__box svg { position: absolute; inset: -4px; width: 34px; height: 34px; overflow: visible; }
.plan__box svg path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan__line { font-size: 15px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.plan__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.plan__more > span { min-height: 0; overflow: hidden; }
.plan.is-checked .plan__more { grid-template-rows: 1fr; }
.plan__plus { display: block; padding-top: 8px; font: 600 21px/1.1 var(--hand); color: var(--pen); }
.plan__inc { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; padding: 10px 0 6px; }
.plan__inc span { display: flex; align-items: baseline; gap: 7px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.plan__inc span::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pen); transform: translateY(-2px); }
.plan__bottom { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.plan__price { font: 600 21px/1 var(--sans); font-variant-numeric: tabular-nums; }
.plan__price--s { font-size: 16px; }
.plan__sub { font-size: 13px; color: var(--muted); }
.plan__rec {
  position: absolute; right: 18px; top: -13px;
  padding: 0 8px; background: var(--paper);
  font-size: 22px; transform: rotate(-3deg);
}
.plan--soft { background: transparent; }
.plan--soft .plan__name { font-size: 23px; }
.plan__k { font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.leo {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 11px; border-radius: 999px;
  background: #6B4A2A url("../assets/irina/2026-10-09%2018.36.02.jpg") 84% 96% / 520% auto no-repeat;
  color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .14em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.paymode { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease), opacity .3s; }
.paymode > div { min-height: 0; overflow: hidden; }
.paymode.is-off { grid-template-rows: 0fr; opacity: 0; }
.seg {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 999px; background: var(--paper-deep);
  border: 0; margin: 0 0 12px;
}
.seg__opt { position: relative; z-index: 1; display: grid; place-items: center; height: 48px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: color .25s; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt.is-checked { color: var(--ink); }
.seg__opt.has-focus { outline: 3px solid var(--pen); outline-offset: -3px; }
.seg__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease);
}
.seg[data-v="parts"] .seg__thumb { transform: translateX(100%); }
.paymode__text { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* чек */
.receipt { position: relative; filter: drop-shadow(0 22px 26px rgba(27, 24, 22, .13)) drop-shadow(0 1px 0 rgba(27, 24, 22, .05)); }
.receipt__paper {
  position: relative;
  padding: 22px 20px 34px;
  border-radius: 20px 20px 0 0;
  background: var(--white);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 100%;
}
.receipt__title { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.receipt__stamp { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.receipt__body.is-printing { animation: print .7s var(--ease-out); }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); } to { clip-path: inset(0 0 -10% 0); transform: none; } }
.rrows { margin: 0; padding: 4px 0 6px; border-top: 1px dashed var(--line-2); }
.rrow { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 14.5px; }
.rrow dt { flex: 1; display: flex; align-items: baseline; gap: 8px; color: var(--muted); white-space: nowrap; }
.rrow dt::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); }
.rrow dd { margin: 0; font-weight: 600; text-align: right; }
.rtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 0 18px; border-top: 1px dashed var(--line-2); }
.rtotal span { font-weight: 600; }
.rtotal b { font: 600 30px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.rtotal b small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.receipt__fine { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.receipt__hand { margin: -10px 0 14px; font-size: 21px; text-align: right; transform: rotate(-3deg); transform-origin: right; }

/* мобильная плашка оплаты */
.paybar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5);
  transform: translateY(150%);
  transition: transform .5s var(--ease-out);
}
.paybar.is-shown { transform: none; }
.paybar__info { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.paybar__name { font-size: 12.5px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paybar__price { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paybar .btn { min-height: 48px; padding: 0 20px; background: var(--pen); color: #fff; box-shadow: none; }

/* гарантия — коротко */
.guarantee { padding: 0 0 40px; }
.guarantee__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start;
  padding: 22px 20px 8px; border-radius: 26px;
  background: radial-gradient(90% 70% at 0% 0%, rgba(252, 175, 69, .16), transparent 60%), linear-gradient(172deg, #FBF2E2, #F6E6CF);
  box-shadow: inset 0 0 0 1px rgba(27, 24, 22, .05);
}
.guarantee__big { font: 400 46px/1 var(--serif); color: var(--pen); }
.guarantee__card .label { align-self: center; margin: 0; }
.guarantee__card p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.guarantee__card p b { color: var(--ink); }
.guarantee__card .qa { grid-column: 1 / -1; margin-top: 12px; border-bottom: 0; border-top: 1px solid var(--line); }
.guarantee__card .qa summary { min-height: 52px; font-size: 15px; }
.guarantee__card .qa summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 12px no-repeat,
    rgba(255, 255, 255, .7);
}
.guarantee__card .qa__a { font-size: 14.5px; padding-bottom: 12px; }

.pay-faq { padding: 8px 0 72px; }

/* ---------- Переходы между страницами (Chrome/Safari, по http) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   Планшет и десктоп
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; --top: 68px; }
  body { font-size: 18px; }
  .topbar__link { display: inline; }
  .quiz__card { padding: 26px 32px 26px; }
  .quiz__nav { margin: 8px -32px -26px; padding: 18px 32px 24px; }
  .opt__t { font-size: 18px; }
  .igp__grid li:nth-child(n+4) { display: block; }
  .sv__frame { width: min(430px, 92vw); height: min(92vh, 820px); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
  .tray { margin-inline: 0; padding-inline: 14px; }
  .pay-grid { padding-top: 32px; }
  .guarantee__card { padding: 28px 32px; }
}

@media (min-width: 1000px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr minmax(0, 440px) 1fr;
    align-items: center;
    gap: 40px;
    padding: 24px var(--gutter) 0;
  }
  .story-hero { grid-column: 2; width: 100%; min-height: min(calc(100svh - var(--top) - 90px), 760px); }
  .hero__under { grid-column: 1 / -1; margin-top: 0; }
  .ghost {
    display: grid; place-items: center;
    height: min(calc(100svh - var(--top) - 220px), 520px);
    max-width: 280px; width: 100%;
    border-radius: 18px;
    background: linear-gradient(172deg, #F6EBE1, #EEDDD3);
    box-shadow: inset 0 0 0 1px rgba(27, 24, 22, .05);
    color: var(--ink);
    text-decoration: none;
    opacity: .55;
    transform: scale(.94);
    transition: opacity .3s, transform .4s var(--ease);
  }
  .ghost:hover { opacity: .85; transform: scale(.97); }
  .ghost--l { grid-column: 1; justify-self: end; }
  .ghost--r { grid-column: 3; justify-self: start; }
  .ghost__in { display: grid; justify-items: center; gap: 8px; padding: 20px; text-align: center; font-size: 14px; }
  .ghost__in .ring { width: 58px; height: 58px; }
  .ghost__in .ring > * { border-color: #F4E8DE; font-size: 22px; width: 100%; height: 100%; }
  .ghost__t { font: italic 400 22px/1.15 var(--serif); }

  .quiz { padding: 64px 0 72px; }
  .quiz__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .quiz__card { padding: 34px 44px 32px; }
  .quiz__nav { position: static; margin: 22px 0 0; padding: 0 4px; background: none; border-radius: 0; }
  .scene__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
  .scene__main { display: block; }
  .scene__q { margin-bottom: 26px; }
  .rl { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }

  .result__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
  .result__side { position: sticky; top: calc(var(--top) + 24px); }
  .offer { padding: 32px 30px 28px; }

  /* Кейсы на ноутбуке — зеркально остальным блокам: окно поста слева,
     справа заголовок и истории списком, как переписки в директе */
  .cases .wrap { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .cases .posts { grid-column: 1; grid-row: 1 / span 3; }
  .cases .sec-head { grid-column: 2; grid-row: 1; padding-top: 6px; }
  .cases .tray {
    grid-column: 2; grid-row: 2; align-self: start;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px;
    margin: 10px 0 0; padding: 0 6px 6px 0;
    overflow: visible;
  }
  .cases .tray__i {
    width: auto; min-width: 0;
    grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
    align-items: center; justify-items: start; column-gap: 14px; row-gap: 2px;
    padding: 10px 12px; border-radius: 2px;
    text-align: left;
    transition: background-color .2s, box-shadow .2s;
  }
  .cases .tray__ring { grid-row: 1 / span 2; width: 58px; height: 58px; margin: 0; }
  .cases .tray__n { align-self: end; max-width: 100%; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
  .cases .tray__k { align-self: start; max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .cases .tray__match { grid-column: 2; grid-row: 2; justify-self: start; }
  .cases .tray__i[aria-selected="true"] { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--ink); }
  .cases .tray__i[aria-selected="true"] .tray__ring { transform: none; }
  .cases .tray__i[aria-selected="true"]::after { left: auto; right: 12px; bottom: auto; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0; border-radius: 50%; }
  .cases__more { grid-column: 2; grid-row: 3; align-self: end; max-width: 34em; }

  .program__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 64px; align-items: center; }

  .irina__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .irina__photo { width: min(100%, 470px); margin: 0 auto; }
  .irina__text { margin: 0; }

  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: center; }

  .pay-head { padding-top: 48px; }
  .pay-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
  .pay-side { position: sticky; top: calc(var(--top) + 24px); }
  .paybar { display: none; }
}

@media (min-width: 1280px) {
  .sh__title { font-size: 60px; }
}

/* служебный режим превью (#still) */
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }
html.still { scroll-behavior: auto; }

/* ---------- Без анимаций, если человек так просил ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-write], [data-reveal] { clip-path: none !important; }
  [data-develop] img { opacity: 1; filter: none; }
}
