/* ==========================================================================
   Ася Галицкая — сайт
   Дизайн-код «Ася Блог»: тетрадная бумага, оливковые кольца, розовые плашки,
   карточки с цветной подложкой-сдвигом и её линейные иллюстрации.
   ========================================================================== */

/* ---------- Шрифты: свои файлы, ни одного внешнего запроса ---------- */
/* У каждого начертания свой набор граней с одинаковым весом: так Chrome склеивает
   основной файл и «рублёвый» по unicode-range. С диапазоном веса (300 400) он выбирал
   только рублёвую грань и не грузил основной шрифт вообще. */
@font-face { font-family: "Asya Serif"; src: url("../fonts/serif-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Asya Serif"; src: url("../fonts/rub-serif.woff") format("woff"); font-weight: 300; unicode-range: U+20BD; }
@font-face { font-family: "Asya Serif"; src: url("../fonts/serif-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Asya Serif"; src: url("../fonts/rub-serif.woff") format("woff"); font-weight: 400; unicode-range: U+20BD; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/rub-sans-400.woff") format("woff"); font-weight: 400; unicode-range: U+20BD; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/sans-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/rub-sans-400.woff") format("woff"); font-weight: 500; unicode-range: U+20BD; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/sans-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/rub-sans-700.woff") format("woff"); font-weight: 700; unicode-range: U+20BD; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/sans-900.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Asya Sans"; src: url("../fonts/rub-sans-700.woff") format("woff"); font-weight: 900; unicode-range: U+20BD; }
@font-face { font-family: "Asya Italic"; src: url("../fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* ---------- Токены ---------- */
:root {
  color-scheme: light;

  --paper: #FCF5EF;
  --paper-2: #F8EDE4;
  --stripe: #F4E8DE;
  --sheet: #FFFDFB;
  --cream: #F9EEE7;

  --olive: #697857;
  --olive-dk: #4E5A40;
  --olive-deep: #3A4430;
  --olive-mut: #8E9980;
  --sage-lt: #E7ECDF;

  --rose: #F3C1C0;
  --rose-lt: #F9E3E2;
  --rose-dp: #D67C86;
  --rose-btn: #B85566;   /* белый текст 4.64:1 */
  --rose-ink: #A94E5C;

  --ink: #273025;
  --ink-2: #555D50;      /* 6.6:1 на бумаге */
  --ink-3: #7C8276;      /* 3.9:1 — только крупное и вторичное */
  --line: rgba(39, 48, 37, .14);
  --line-2: rgba(39, 48, 37, .08);

  --serif: "Asya Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Asya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --italic: "Asya Italic", Georgia, serif;

  --gutter: clamp(16px, 4.2vw, 56px);
  --maxw: 1320px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --lift: 8px;

  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --nav-h: 76px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* карточки, выключенные в пульте бота, прячутся атрибутом */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.has-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, var(--stripe) 0 1px, transparent 1px 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
/* зерно бумаги */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .19 0 0 0 0 .14 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
/* мягкий свет за курсором */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(243, 193, 192, .28), transparent 60%);
  transition: opacity .6s;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--rose-btn); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rose); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
.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; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--olive-deep); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

main, header, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
.reviews__layout > *, .shead > *, .pains__layout > *, .contact__layout > * { min-width: 0; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(84px, 12vw, 180px) 0; }

/* ---------- Типографика ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive);
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.kicker--plain::before { display: none; }
.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 8.4vw, 138px);
  line-height: .9; letter-spacing: -.04em;
}
.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: .98; letter-spacing: -.035em;
  text-wrap: balance;
}
.h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.it { font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }

/* розовая фирменная плашка «без панички» */
.pill {
  display: inline-block;
  font-family: var(--sans); font-weight: 900;
  letter-spacing: -.035em; line-height: 1;
  color: #fff; background: var(--rose-dp);
  padding: .1em .42em .16em;
  border-radius: 999px;
  transform: rotate(-2.5deg);
  box-shadow: 0 .06em 0 rgba(58, 68, 48, .06);
  white-space: nowrap;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: var(--rose-lt); color: var(--rose-ink);
}
.tag--olive { background: var(--sage-lt); color: var(--olive-dk); }
.tag--dark { background: var(--olive-deep); color: #fff; }

/* маркер: розовое выделение, растёт при появлении */
.mk {
  background-color: transparent;
  background-image: linear-gradient(transparent 58%, rgba(243, 193, 192, .9) 58%, rgba(243, 193, 192, .9) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size 1.1s var(--ease) .25s;
  padding: 0 .06em;
  color: inherit;
}
.mk.is-on, .no-motion .mk { background-size: 100% 100%; }
/* рукописное подчёркивание, как в её сторис */
.ul { position: relative; display: inline-block; white-space: nowrap; }
.ul svg { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .34em; overflow: visible; pointer-events: none; }
.ul path { fill: none; stroke: var(--rose-dp); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) .35s; }
.ul.is-on path, .no-motion .ul path { stroke-dashoffset: 0; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--olive-deep); --fg: #fff; --fill: var(--rose-btn);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; letter-spacing: -.005em; text-decoration: none;
  transition: transform .5s var(--ease), color .3s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --fill: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--rose { --bg: var(--rose-btn); --fill: var(--olive-deep); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Прелоадер: кольца тетради ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--paper);
  transition: transform 1s var(--ease-io), visibility 0s linear 1s;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader__dots { display: flex; gap: 18px; }
.loader__dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--olive); opacity: .18; transform: scale(.7); transition: opacity .3s, transform .5s var(--spring); }
.loader__dots i.is-on { opacity: 1; transform: scale(1); }
.loader__word { margin-top: 26px; font-family: var(--serif); font-weight: 300; font-size: 22px; color: var(--ink-2); text-align: center; letter-spacing: -.01em; }
.no-js .loader, .no-motion .loader { display: none; }

/* ---------- Шапка ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s, height .4s;
}
.nav.is-solid { background: rgba(252, 245, 239, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line-2); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--rose-dp); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px; letter-spacing: -.04em;
  box-shadow: 3px 3px 0 var(--olive);
  transition: transform .6s var(--spring);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.06); }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; }
.logo__role { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; background: rgba(255, 253, 251, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav__links a { display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 var(--line-2); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 253, 251, .7); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: background-color .3s, transform .4s var(--spring); }
.icon-btn:hover { background: var(--sheet); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; border: 0; }
.burger span { display: block; width: 18px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.burger span + span { margin-top: 5px; }
.menu-open .burger span:first-child { transform: translateY(3.4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  background-image: repeating-linear-gradient(90deg, var(--stripe) 0 1px, transparent 1px 18px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .75s var(--ease-io), visibility 0s linear .75s;
}
.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease-io); }
.mnav ul { list-style: none; padding: 0; margin: 0; }
.mnav li { overflow: hidden; }
.mnav a.mnav__link { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.12; letter-spacing: -.03em; text-decoration: none; transform: translateY(105%); transition: transform .8s var(--ease); }
.menu-open .mnav a.mnav__link { transform: translateY(0); }
.menu-open .mnav li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mnav li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mnav li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mnav li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mnav li:nth-child(6) a { transition-delay: .25s; }
.mnav__foot { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; height: 290vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__grid { position: relative; z-index: 4; height: 100%; display: flex; align-items: center; }
.hero__stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 104px; z-index: 3; pointer-events: none; background: linear-gradient(var(--paper) 42%, rgba(252, 245, 239, 0)); }
.hero__text { max-width: 640px; padding-top: var(--nav-h); pointer-events: auto; }
.hero__text .kicker { margin-bottom: 26px; }
.hero__title { position: relative; }
.hero__title .pill { font-size: .72em; margin-top: .12em; margin-left: -.04em; }
.hero__title .l { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .l > span { display: inline-block; }
.hero .lede { margin-top: 30px; max-width: 30em; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 8px; border-radius: 999px;
  background: rgba(252, 245, 239, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -16px rgba(58, 68, 48, .5);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transform: translateX(-50%);
}
.hero__hint i { position: relative; width: 20px; height: 30px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.hero__hint i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--rose-dp); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* телефон, в который собирается хаос */
.phone {
  --w: 330px;
  position: absolute; z-index: 1;
  width: var(--w); aspect-ratio: 330 / 690;
  left: var(--px, 70%); top: var(--py, 50%);
  transform: translate(-50%, -50%) scale(var(--ps, .96));
  opacity: var(--po, 0);
  border-radius: calc(var(--w) * .15);
  background: var(--sheet);
  box-shadow: 0 0 0 1.5px rgba(39, 48, 37, .12), 0 40px 80px -30px rgba(58, 68, 48, .45), 0 18px 30px -18px rgba(58, 68, 48, .3);
  pointer-events: none;
}
.phone__bezel {
  position: absolute; z-index: 4; inset: 0; pointer-events: none;
  width: var(--w); aspect-ratio: 330 / 690;
  left: var(--px, 70%); top: var(--py, 50%);
  transform: translate(-50%, -50%) scale(var(--ps, .96));
  opacity: var(--po, 0);
  border-radius: calc(var(--w) * .15);
  box-shadow: inset 0 0 0 calc(var(--w) * .03) var(--olive-deep), inset 0 0 0 calc(var(--w) * .036) #2b3324;
}
.phone__bezel::before { content: ""; position: absolute; top: calc(var(--w) * .045); left: 50%; width: 30%; height: calc(var(--w) * .07); transform: translateX(-50%); border-radius: 999px; background: #1f251a; }
.phone__head {
  position: absolute; left: 7%; right: 7%; top: 12.5%;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center;
  font-size: calc(var(--w) * .038);
  color: var(--ink);
}
.phone__ava { grid-row: span 2; width: calc(var(--w) * .2); height: calc(var(--w) * .2); border-radius: 50%; padding: 3px; background: conic-gradient(var(--rose-dp), var(--olive), var(--rose), var(--rose-dp)); }
.phone__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--sheet); }
.phone__nick { font-weight: 700; font-size: 1.08em; }
.phone__bio { color: var(--ink-2); line-height: 1.35; }
.phone__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.phone__btns span { display: block; text-align: center; padding: .55em 0; border-radius: .6em; font-weight: 700; background: var(--paper-2); }
.phone__btns span:first-child { background: var(--rose-dp); color: #fff; }

.hero__after {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 12vh;
  max-width: 440px;
  opacity: 0; transform: translateY(30px);
  pointer-events: none;
}
.hero__after .h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.02em; }
.hero__after p { margin-top: 14px; color: var(--ink-2); }
.hero__swap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hero__swap s { color: var(--ink-3); text-decoration-color: var(--rose-dp); text-decoration-thickness: 2px; }
.hero__swap b { color: var(--olive-dk); }

.hero__static { display: none; }
.no-webgl .hero__static, .no-motion .hero__static { display: block; }

/* ---------- Бегущая строка ---------- */
.ticker { position: relative; z-index: 2; padding: 40px 0 10px; overflow: hidden; }
.ticker__band { display: flex; white-space: nowrap; padding: 18px 0; transform: rotate(-2deg); margin: 0 -4vw; background: var(--olive-deep); color: #F6F0E6; }
.ticker__band + .ticker__band { transform: rotate(1.6deg); margin-top: -46px; background: var(--rose-dp); color: #fff; box-shadow: 0 10px 30px -18px rgba(58, 68, 48, .5); }
.ticker__row { display: flex; flex: none; gap: 0; will-change: transform; }
.ticker__row span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.02em; line-height: 1; }
.ticker__row span::after { content: "✳"; font-family: var(--sans); font-size: .6em; opacity: .8; }

/* ---------- Сетка заголовка секции ---------- */
.shead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.shead .kicker { margin-bottom: 22px; }
.shead .lede { justify-self: end; }

/* ---------- Боли ---------- */
.pains__layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pains__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.note {
  position: relative;
  background: var(--sheet);
  border-radius: var(--r-md);
  padding: 28px 26px 26px;
  box-shadow: var(--lift) var(--lift) 0 var(--olive), 0 1px 0 var(--line-2);
  transform: rotate(var(--rot, 0deg));
  transition: transform .6s var(--spring), box-shadow .6s var(--ease);
}
.note:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 12px 14px 0 var(--olive); }
.note:nth-child(3n+2) { --rot: 1.2deg; box-shadow: var(--lift) var(--lift) 0 var(--rose-dp); }
.note:nth-child(3n+2):hover { box-shadow: 12px 14px 0 var(--rose-dp); }
.note:nth-child(3n) { --rot: -1.4deg; }
.note:nth-child(5) { grid-column: 1 / -1; }
.note__n { font-family: var(--italic); font-style: italic; color: var(--rose-dp); font-size: 18px; }
.note .h3 { margin: 6px 0 8px; }
.note p { color: var(--ink-2); font-size: 16px; }
.pains__art { position: relative; }
.pains__art img { width: 100%; }
.caption-hand { margin-top: 10px; font-family: var(--italic); font-style: italic; font-size: 22px; color: var(--olive-dk); text-align: center; }
.caption-hand::before { content: "↑ "; font-family: var(--sans); font-style: normal; color: var(--rose-dp); }

/* ---------- Обо мне ---------- */
.about__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.about__visual { position: sticky; top: calc(var(--nav-h) + 30px); }
.polaroid {
  position: relative;
  background: var(--sheet);
  padding: 16px 16px 64px;
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(58, 68, 48, .5), 0 2px 6px rgba(58, 68, 48, .1);
  transform: rotate(-3deg);
  transition: transform .8s var(--spring);
  max-width: 440px;
}
.polaroid:hover { transform: rotate(-1deg) scale(1.01); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 50% 30%; border-radius: 2px; filter: saturate(.92) contrast(1.02); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-family: var(--italic); font-style: italic; font-size: 22px; color: var(--ink-2); }
.tape { position: absolute; width: 124px; height: 36px; background: rgba(243, 193, 192, .72); top: -16px; left: 50%; transform: translateX(-50%) rotate(4deg); clip-path: polygon(3% 8%, 97% 0, 100% 22%, 98% 46%, 100% 70%, 97% 100%, 2% 94%, 0 72%, 3% 50%, 0 26%); mix-blend-mode: multiply; }
.about__wave { position: absolute; width: 44%; right: -20%; bottom: -14%; transform: rotate(4deg); pointer-events: none; }
.about__text .h2 { margin: 18px 0 30px; }
.about__text p + p { margin-top: 18px; }
.about__text p { font-size: 18px; color: var(--ink-2); max-width: 36em; }
.draft-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 6px 12px; border-radius: 8px; font-size: 13px; background: rgba(214, 124, 134, .12); color: var(--rose-ink); }
.quote-big {
  margin: 44px 0 10px;
  font-family: var(--italic); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--ink);
  font-variation-settings: "wght" 420;
}
.quote-big footer { margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 14px; font-weight: 700; color: var(--olive); letter-spacing: .08em; text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.fact { padding: 20px 20px 18px; border-radius: var(--r-md); background: rgba(255, 253, 251, .72); box-shadow: inset 0 0 0 1px var(--line-2); }
.fact b { display: block; font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--olive-dk); margin-bottom: 8px; }
.fact span { font-size: 15px; color: var(--ink-2); line-height: 1.4; display: block; }

.timeline { margin-top: 64px; position: relative; }
.timeline__track { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--rose-dp); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.timeline li { position: relative; padding-left: 48px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--olive); transition: background-color .4s, box-shadow .4s; }
.timeline li.is-on::before { background: var(--rose-dp); box-shadow: inset 0 0 0 2px var(--rose-dp), 0 0 0 6px rgba(214, 124, 134, .18); }
.timeline time { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.02em; margin: 4px 0 4px; }
.timeline p { font-size: 16px !important; }

.cert {
  margin-top: 56px;
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center;
  padding: 18px; border-radius: var(--r-md);
  background: var(--sheet);
  box-shadow: var(--lift) var(--lift) 0 var(--rose-dp), 0 1px 0 var(--line-2);
  text-decoration: none;
  transition: transform .6s var(--spring), box-shadow .6s var(--ease);
}
.cert:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 12px 14px 0 var(--rose-dp); }
.cert__img { border-radius: 8px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 12px 24px -14px rgba(58, 68, 48, .6); }
.cert__img img { width: 100%; }
.cert small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.cert strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: -.015em; margin: 6px 0 8px; }
.cert span { font-size: 15px; color: var(--ink-2); }

/* ---------- Метод ---------- */
.method { background: var(--olive-deep); color: #F3EEE4; border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.4vw, 20px); }
.method__intro { padding-top: clamp(84px, 11vw, 160px); }
.method .kicker { color: var(--rose); }
.method .lede, .method .muted { color: rgba(243, 238, 228, .72); }
.method__pin { position: relative; height: 230vh; }
.method__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 10px) 0 30px; }
.method__hint { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 228, .5); }
.method__hint span { color: var(--rose); }
.path { position: relative; margin: 150px 0 120px; }
.path svg { width: 100%; height: auto; overflow: visible; }
.path__base { fill: none; stroke: rgba(243, 238, 228, .16); stroke-width: 2; stroke-dasharray: 6 10; }
.path__line { fill: none; stroke: var(--rose); stroke-width: 3.5; stroke-linecap: round; }
.path__dot { fill: var(--rose); }
.path__dot-ring { fill: none; stroke: var(--rose); stroke-width: 1.5; opacity: .5; }
.path__nodes { position: absolute; inset: 0; pointer-events: none; }
.pnode {
  position: absolute; width: 200px; margin-left: -100px;
  text-align: center;
  opacity: .35; transform: translateY(10px) scale(.96);
  transition: opacity .5s, transform .6s var(--spring);
}
.pnode.is-on { opacity: 1; transform: none; }
.pnode__dot { width: 18px; height: 18px; margin: 0 auto 12px; border-radius: 50%; background: var(--olive-deep); box-shadow: inset 0 0 0 2px rgba(243, 238, 228, .5); transition: background-color .4s, box-shadow .4s; }
.pnode.is-on .pnode__dot { background: var(--rose); box-shadow: 0 0 0 8px rgba(243, 193, 192, .2); }
.pnode b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.05; }
.pnode span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgba(243, 238, 228, .7); }
.pnode--up { transform-origin: bottom; }
.path--v { display: none; }

.method__after { padding: 0 0 clamp(80px, 10vw, 140px); }
.rubrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.rubric { padding: 22px 18px; border-radius: var(--r-md); background: rgba(243, 238, 228, .06); box-shadow: inset 0 0 0 1px rgba(243, 238, 228, .12); transition: background-color .4s, transform .5s var(--spring); }
.rubric:hover { background: rgba(243, 238, 228, .12); transform: translateY(-4px); }
.rubric i { font-family: var(--italic); font-size: 16px; color: var(--rose); }
.rubric b { display: block; margin: 8px 0 6px; font-size: 19px; }
.rubric span { font-size: 14.5px; color: rgba(243, 238, 228, .68); line-height: 1.45; display: block; }
.diag { margin-top: 64px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.diag__rows { display: grid; gap: 10px; }
.diag__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px; background: rgba(243, 238, 228, .06); }
.diag__row span { font-size: 16px; }
.diag__row em { font-style: normal; color: var(--rose); font-size: 20px; }
.diag__row strong { font-weight: 700; color: #fff; }
.diag__art { background: var(--paper); border-radius: var(--r-lg); padding: 18px; transform: rotate(-2deg); box-shadow: 10px 10px 0 var(--rose-dp); }
.diag__art img { width: 100%; }

/* ---------- Цены ---------- */
.prices__free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.free {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--r-md);
  background: rgba(231, 236, 223, .7); box-shadow: inset 0 0 0 1px rgba(105, 120, 87, .18);
}
.free__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.free__price { font-weight: 900; font-size: 15px; color: var(--olive-dk); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.free p { font-size: 15.5px; color: var(--ink-2); flex: 1; }
.free .link-arrow { align-self: flex-start; font-size: 15px; color: var(--olive-dk); }
.prices__main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; perspective: 1400px; }
.offer {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 28px; border-radius: var(--r-lg);
  background: var(--sheet);
  box-shadow: 10px 10px 0 var(--olive), 0 1px 0 var(--line-2);
  transform-style: preserve-3d;
  transition: box-shadow .6s var(--ease);
}
.offer:nth-child(2) { box-shadow: 10px 10px 0 var(--rose-dp), 0 1px 0 var(--line-2); }
.offer--dark { background: var(--olive-deep); color: #F3EEE4; box-shadow: 10px 10px 0 var(--rose), 0 1px 0 var(--line-2); }
.offer__rings { display: flex; gap: 12px; margin-bottom: 22px; }
.offer__rings i { width: 11px; height: 11px; border-radius: 50%; background: var(--olive); }
.offer--dark .offer__rings i { background: var(--rose); }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 18px; }
.offer__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding: 14px 18px; border-radius: 14px; background: var(--rose-lt); }
.offer--dark .offer__price { background: rgba(243, 238, 228, .08); }
.offer__price b { font-weight: 900; font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -.035em; line-height: 1; }
.offer__price span { font-size: 15px; color: var(--ink-2); }
.offer--dark .offer__price span { color: rgba(243, 238, 228, .7); }
.offer ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; counter-reset: li; flex: 1; }
.offer li { position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.4; counter-increment: li; }
.offer li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-size: 12px; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; }
.offer--dark li::before { color: var(--rose); }
.offer__format { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 15px; }
.offer--dark .offer__format { border-color: rgba(243, 238, 228, .2); }
.offer__format b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-bottom: 4px; }
.offer--dark .offer__format b { color: var(--rose); }
.offer .btn { margin-top: 22px; width: 100%; }
.offer--dark .btn { --bg: var(--rose-btn); --fill: #F3EEE4; }
.offer--dark .btn:hover { color: var(--olive-deep); }
.prices__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; padding: 22px 24px; border-radius: var(--r-md); background: rgba(255, 253, 251, .75); box-shadow: inset 0 0 0 1px var(--line); }
.mini h3 { font-size: 18px; line-height: 1.25; }
.mini b { font-weight: 900; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.mini p { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }
.mini a { grid-column: 1 / -1; justify-self: start; font-size: 15px; }
.prices__note { margin-top: 26px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.prices__art { position: absolute; right: var(--gutter); top: clamp(60px, 8vw, 120px); width: clamp(160px, 18vw, 260px); pointer-events: none; }

/* ---------- Отзывы ---------- */
.reviews__layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.story {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 34px; overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 10px var(--olive-deep), 0 0 0 11px #2b3324, 0 50px 90px -40px rgba(58, 68, 48, .6);
  transform: rotate(-2deg);
  transition: transform .8s var(--spring);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.story:hover { transform: rotate(0deg); }
.story__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.story__slide.is-on { opacity: 1; }
.story__slide img { width: 100%; height: 100%; object-fit: cover; }
.story__bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 4px; }
.story__bars i { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.story__bars b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.story__bars i.is-done b { transform: scaleX(1); }
.story::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px; z-index: 2; background: linear-gradient(rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.story__nav { position: absolute; top: 0; bottom: 0; z-index: 4; width: 42%; border: 0; background: transparent; }
.story__nav--prev { left: 0; }
.story__nav--next { right: 0; }
.story__nav:focus-visible { outline-offset: -6px; }
.story__pause { position: absolute; z-index: 5; right: 16px; top: 26px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.story:hover .story__pause, .story__pause:focus-visible { opacity: 1; }
.story__pause svg { width: 14px; height: 14px; }
.story-side { position: relative; }
.story-side .kicker { margin-bottom: 20px; }
.rq { position: relative; min-height: 300px; margin-top: 36px; }
.rq__item { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s, transform .7s var(--ease), visibility 0s linear .5s; }
.rq__item.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s .1s, transform .8s var(--ease) .1s, visibility 0s; }
.rq__tag { margin-bottom: 18px; }
.rq blockquote { font-family: var(--italic); font-style: italic; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.22; letter-spacing: -.015em; text-wrap: pretty; }
.rq blockquote::before { content: "«"; color: var(--rose-dp); }
.rq blockquote::after { content: "»"; color: var(--rose-dp); }
.rq cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--olive-dk); }
.rq cite span { font-weight: 400; color: var(--ink-2); }
.story-thumbs { display: flex; gap: 8px; margin-top: 30px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.story-thumbs button { flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 2px; border: 0; background: var(--line); transition: transform .4s var(--spring), background .3s; }
.story-thumbs button.is-on { background: conic-gradient(var(--rose-dp), var(--olive), var(--rose-dp)); transform: scale(1.08); }
.story-thumbs img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--paper); }
.results { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(56px, 7vw, 96px); }
.result { display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line), 4px 4px 0 var(--rose); }
.result b { font-weight: 900; font-size: 22px; letter-spacing: -.03em; color: var(--olive-dk); }
.result span { font-size: 15px; color: var(--ink-2); }
.results__note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); max-width: 60em; }

/* ---------- Гайд ---------- */
.guide { overflow: hidden; }
.guide__card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--rose-lt);
  box-shadow: 14px 14px 0 var(--olive);
}
.guide__book { position: relative; perspective: 1200px; }
.guide__pages { position: relative; width: min(100%, 400px); margin: 0 auto; transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(6deg); transition: transform 1s var(--ease); }
.guide__pages img { width: 100%; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(58, 68, 48, .6); }
.guide__pages img:not(:first-child) { position: absolute; inset: 0; z-index: -1; }
.guide__pages img:nth-child(2) { transform: translate3d(22px, 14px, -30px) rotate(4deg); }
.guide__pages img:nth-child(3) { transform: translate3d(44px, 26px, -60px) rotate(8deg); }
.guide__card:hover .guide__pages { transform: rotateY(-6deg) rotateX(2deg); }
.guide__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; list-style: none; padding: 0; }
.guide__list li { padding: 8px 14px; border-radius: 999px; background: var(--rose-dp); color: #fff; font-weight: 700; font-size: 15px; }
.guide__small { margin-top: 18px; font-size: 14px; color: var(--ink-2); max-width: 34em; }
.guide__phone { position: absolute; width: clamp(120px, 14vw, 200px); right: 3%; bottom: -2%; pointer-events: none; }

/* ---------- Вопросы ---------- */
.faq__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq__aside img { width: 78%; margin-top: 32px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border: 0; background: none; text-align: left; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.2; letter-spacing: -.015em; }
.qa__icon { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s, transform .5s var(--spring); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; margin: -.9px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon { background: var(--rose-dp); transform: rotate(180deg); box-shadow: none; }
.qa.is-open .qa__icon::before, .qa.is-open .qa__icon::after { background: #fff; }
.qa.is-open .qa__icon::after { transform: rotate(0deg); }
.qa__a { height: 0; overflow: hidden; transition: height .55s var(--ease); }
.qa__a > div { padding: 0 64px 28px 0; color: var(--ink-2); font-size: 17px; }
.no-js .qa__a { height: auto; }

/* ---------- Заявка ---------- */
.contact__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__direct { margin-top: 40px; display: grid; gap: 10px; }
.direct { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; text-decoration: none; background: rgba(255, 253, 251, .7); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--spring), background-color .3s; }
.direct:hover { transform: translateX(6px); background: var(--sheet); }
.direct__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--olive-deep); color: #fff; }
.direct__ico svg { width: 22px; height: 22px; }
.direct b { display: block; font-size: 16px; }
.direct span { font-size: 14px; color: var(--ink-2); }
.contact__art { width: 70%; margin: 36px 0 0 auto; }

.sheet {
  position: relative;
  padding: 58px clamp(22px, 3.5vw, 48px) clamp(26px, 3.5vw, 44px);
  border-radius: var(--r-lg);
  background: var(--sheet);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(105, 120, 87, .09) 35px 36px);
  box-shadow: 14px 14px 0 var(--olive), 0 1px 0 var(--line-2), 0 40px 80px -50px rgba(58, 68, 48, .5);
}
.sheet__rings { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: clamp(18px, 3vw, 34px); }
.sheet__rings i { width: 14px; height: 14px; border-radius: 50%; background: var(--olive); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .15); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-dk); }
.input {
  width: 100%; min-height: 56px;
  padding: 14px 18px;
  border: 0; border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 17px;
  transition: box-shadow .25s, background-color .25s;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { box-shadow: inset 0 0 0 1.5px rgba(39, 48, 37, .3); }
.input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--olive), 0 0 0 5px rgba(105, 120, 87, .14); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rose-btn); background: #FFF7F7; }
textarea.input { min-height: 112px; resize: vertical; line-height: 1.5; }
.err { min-height: 0; font-size: 14px; color: var(--rose-btn); font-weight: 500; }
.err:empty { display: none; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); justify-self: start; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: color .3s, background-color .3s, box-shadow .3s; }
.seg input:checked + label { background: var(--sheet); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(58, 68, 48, .25); }
.seg input:focus-visible + label { outline: 2.5px solid var(--rose-btn); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-dk); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--spring); }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--rose-dp); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2.5px solid var(--rose-btn); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(39, 48, 37, .35); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.consent input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .3s var(--spring); }
.consent input:checked { background: var(--olive-dk); box-shadow: none; }
.consent input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.consent input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rose-btn); }
.consent a { color: var(--ink); font-weight: 500; }
.consent em { font-style: normal; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__foot .btn { min-width: 240px; }
.form__small { font-size: 13.5px; color: var(--ink-3); max-width: 26em; }
.form__status { padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.form__status:empty { display: none; }
.form__status.is-error { background: #FFF1F1; color: #8E3342; box-shadow: inset 0 0 0 1px rgba(184, 85, 102, .35); }
.form__status.is-info { background: var(--sage-lt); color: var(--olive-deep); }
.sent { display: none; text-align: center; padding: 30px 0 10px; }
.sent img { width: min(260px, 70%); margin: 0 auto 18px; }
.sent .h2 { font-size: clamp(34px, 4vw, 52px); }
.sent p { margin-top: 12px; color: var(--ink-2); }
.is-sent .form { display: none; }
.is-sent .sent { display: block; }
.plane { position: fixed; z-index: 120; width: 64px; height: 64px; pointer-events: none; color: var(--rose-dp); }

/* ---------- Подвал ---------- */
.foot { position: relative; z-index: 1; padding: clamp(60px, 8vw, 110px) 0 36px; background: var(--olive-deep); color: #EDE7DB; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; overflow: hidden; }
.foot a { color: inherit; }
.foot__big { font-family: var(--sans); font-weight: 900; font-size: clamp(64px, 15.5vw, 250px); line-height: .8; letter-spacing: -.06em; color: var(--rose-dp); white-space: nowrap; transform: translateX(var(--fx, 0)); margin-bottom: clamp(40px, 6vw, 80px); }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; color: rgba(237, 231, 219, .8); }
.foot ul a:hover { color: #fff; text-decoration: underline; }
.foot__lead { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.12; letter-spacing: -.02em; max-width: 14em; }
.foot__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(237, 231, 219, .14); display: grid; gap: 8px; font-size: 13.5px; color: rgba(237, 231, 219, .62); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 14px; }
.foot__credit a { text-decoration: none; border-bottom: 1px solid rgba(237, 231, 219, .4); }

/* ---------- Страницы документов ---------- */
.doc-page .nav { position: sticky; }
.doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-top: 48px; padding-bottom: 96px; align-items: start; }
.doc__aside { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding-right: 6px; }
.doc__docs, .doc__sections { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.doc__docs a, .doc__sections a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--ink-2); }
.doc__docs a:hover, .doc__sections a:hover { background: var(--sheet); color: var(--ink); }
.doc__docs a[aria-current="page"] { background: var(--olive-deep); color: #fff; }
.doc__sections { counter-reset: none; }
.doc__sections a { font-size: 14px; padding: 5px 12px; }
.doc__print { margin-top: 22px; }
.doc__body { max-width: 760px; background: var(--sheet); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 64px); box-shadow: 12px 12px 0 var(--olive), 0 1px 0 var(--line-2); }
.doc__title { margin: 14px 0 10px; font-size: clamp(34px, 4.4vw, 58px); }
.doc__sub { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink-2); max-width: 30em; }
.doc__ed { display: inline-block; margin: 18px 0 8px; padding: 6px 12px; border-radius: 999px; background: var(--rose-lt); color: var(--rose-ink); font-size: 14px; font-weight: 700; }
.doc__body h2 { margin: 44px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.015em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc__body h3 { margin: 26px 0 8px; font-size: 18px; }
.doc__body p, .doc__body li { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.doc__body p + p { margin-top: 10px; }
.doc__body p.clause { margin-top: 14px; }
.doc__body ul { margin: 8px 0 12px; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.doc__body li { position: relative; padding-left: 26px; }
.doc__body li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 2px; border-radius: 2px; background: var(--rose-dp); }
.foot--doc { border-radius: 0; padding: 32px 0; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; padding-top: 24px; }
  .doc__aside { position: relative; top: 0; max-height: none; }
  .doc__sections, .doc__print { display: none; }
  .doc__body { box-shadow: 6px 6px 0 var(--olive); }
}
@media print {
  .doc-page .nav, .doc__aside, .foot--doc { display: none !important; }
  .doc { display: block; padding: 0; }
  .doc__body { box-shadow: none; padding: 0; max-width: none; }
  body { background: #fff; }
}

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 5vh 4vw; background: rgba(35, 41, 30, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lb img { max-height: 90vh; width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.94); transition: transform .6s var(--spring); }
.lb.is-open img { transform: none; }
.lb__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sheet); color: var(--ink); font-size: 26px; line-height: 1; }

/* ---------- Появления ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.92) rotate(-2deg); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left top; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 38ms + var(--d, 0) * 1ms); }
.js .split.is-in .w > span { transform: none; }
.no-motion [data-reveal], .no-motion .split .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Вход первого экрана ---------- */
.js .hero__title .l > span { transform: translateY(112%); transition: transform 1.25s var(--ease); }
.js .hero__title .l:nth-child(2) > span { transition-delay: .09s; }
.hero__title .l--pill { overflow: visible; }
.js .hero__title .l--pill > span { transform: scale(.4) rotate(-14deg); opacity: 0; transition: transform 1s var(--spring) .38s, opacity .35s .38s; }
.is-loaded .hero__title .l > span { transform: none; opacity: 1; }
.js .hero__text .kicker, .js .hero .lede, .js .hero__cta, .js .hero__hint { opacity: 0; translate: 0 18px; transition: opacity .9s .5s, translate 1.1s var(--ease) .5s; }
.is-loaded .hero__text .kicker, .is-loaded .hero .lede, .is-loaded .hero__cta, .is-loaded .hero__hint { opacity: 1; translate: 0 0; }
.js .hero__canvas { opacity: 0; transition: opacity 1.2s .2s; }
.is-loaded .hero.is-ready .hero__canvas { opacity: 1; }
@media (min-width: 861px) {
  .hero__after { top: 50%; bottom: auto; margin-top: -120px; }
}

/* наклон карточек (переменные ставит JS) */
.js [data-reveal].is-in[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .6s var(--ease); }
[data-tilt]:not([data-reveal]) { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }

/* черновые пометки видны только в превью */
.draft-note { display: none; }
.show-drafts .draft-note { display: inline-flex; }

/* меньше движения: без закрепления сцен */
.no-motion .hero { height: auto; min-height: 100vh; }
.no-motion .hero__stage { position: relative; height: 100vh; min-height: 640px; }
.no-motion .hero__after, .no-motion .hero__hint { display: none; }
.no-motion .method__pin { height: auto; }
.no-motion .method__stage { position: relative; height: auto; padding: 40px 0 60px; }
.no-motion .hero__canvas { opacity: 1; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: grid; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .prices__main { grid-template-columns: 1fr 1fr; }
  .offer--dark { grid-column: 1 / -1; }
  .rubrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices__art { display: none; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; --lift: 6px; }
  body { font-size: 16px; }
  .nav__right .btn { display: none; }
  .logo__role { display: none; }
  .hero { height: 250vh; }
  .hero__grid { align-items: flex-start; }
  .hero__text { padding-top: calc(var(--nav-h) + 22px); }
  .hero .lede { margin-top: 18px; font-size: 17px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { min-height: 50px; padding: 0 20px; font-size: 15px; }
  .hero__hint { display: none; }
  .hero__after { left: var(--gutter); right: var(--gutter); bottom: auto; top: calc(var(--nav-h) + 12px); z-index: 4; }
  .hero__after p:last-child { display: none; }
  .hero__after .h3 { font-size: 26px; }
  .phone { --w: min(66vw, 290px); }
  .no-motion .phone, .no-motion .phone__bezel, .no-motion .hero__canvas { display: none; }
  .no-motion .hero__stage { height: auto; min-height: 0; padding-bottom: 48px; }
  .shead { grid-template-columns: minmax(0, 1fr); }
  .shead .lede { justify-self: start; }
  .pains__layout, .about__layout, .reviews__layout, .guide__card, .faq__layout, .contact__layout, .diag { grid-template-columns: minmax(0, 1fr); }
  .about__wave { right: -2%; width: 38%; bottom: -8%; }
  .pains__art { max-width: 420px; margin: 0 auto; order: -1; }
  .pains__cards { grid-template-columns: 1fr; }
  .note:nth-child(5) { grid-column: auto; }
  /* ширина явная: с auto-полями элемент сетки сжимается по содержимому, и пока ленивое фото
     не загрузилось, блок схлопывается — страница прыгала на 300 px, якоря промахивались */
  .about__visual { position: relative; top: 0; width: 100%; max-width: 360px; margin: 0 auto 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 28px; }
  .cert { grid-template-columns: 1fr; }
  .cert__img { max-width: 280px; }
  .method__pin { height: auto; }
  .method__stage { position: relative; height: auto; padding: 40px 0 20px; }
  .path--h { display: none; }
  .path--v { display: block; max-width: 420px; margin: 28px auto 40px; }
  .pnode { width: 170px; margin-left: 0; text-align: left; }
  .pnode__dot { display: none; }
  .pnode b { font-size: 21px; }
  .pnode span { font-size: 13px; }
  .rubrics { grid-template-columns: 1fr 1fr; }
  .diag__row { grid-template-columns: 1fr; gap: 4px; }
  .diag__row em { transform: rotate(90deg); justify-self: start; }
  .prices__free, .prices__main, .prices__more { grid-template-columns: 1fr; }
  .offer--dark { grid-column: auto; }
  .story { max-width: 320px; }
  .rq { min-height: 280px; }
  .guide__phone { display: none; }
  .faq__aside { position: relative; top: 0; }
  .faq__aside img { display: none; }
  .qa__a > div { padding-right: 0; }
  .contact__art { display: none; }
  .form__foot .btn { width: 100%; }
  .foot__cols { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .display { font-size: clamp(44px, 13.4vw, 60px); }
  .facts { grid-template-columns: 1fr; }
  .rubrics { grid-template-columns: 1fr; }
  .seg label { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body::after { animation: none; }
}
@media print {
  .nav, .loader, .glow, .hero__canvas, .ticker, .lb, body::after { display: none !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; }
}
