/* ==========================================================================
   Minaeva Hair — «Шёлковая прядь»
   Палитра: жемчуг, шампань, мокко, золото, пыльная сирень
   ========================================================================== */
:root {
  --pearl: #F7F2EE;
  --pearl-2: #F1E9E1;
  --champagne: #E9DCCD;
  --sand: #D9C4AC;
  --ink: #2B1E1A;
  --ink-2: #4A3A33;
  --muted: #66564D;
  --gold-text: #87592A;
  --line: #E3D6C8;
  --gold-1: #E8CFA0;
  --gold-2: #C79A5B;
  --gold-3: #A8763E;
  --gold-4: #8A5E30;
  --lilac: #B9A3C0;
  --lilac-soft: #EEE6F0;
  --night: #1C1513;
  --night-2: #2A201C;
  --surface: #FFFDFB;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  /* кнопки: глубже, чтобы белый текст читался (контраст ≥ 4.5:1 в середине) */
  /* золото для текста на светлом фоне — темнее, чтобы читалось */
  --gold-deep: linear-gradient(120deg, #B9873F 0%, #94632C 55%, #6E4621 100%);
  --gold-btn: linear-gradient(135deg, #B8874F 0%, #93652F 52%, #6F4A22 100%);
  --shadow-sm: 0 2px 10px rgb(60 36 20 / 6%);
  --shadow: 0 18px 50px -18px rgb(60 36 20 / 28%);
  --shadow-gold: 0 14px 34px -12px rgb(168 118 62 / 55%);
  --radius: 22px;
  --radius-lg: 32px;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 72px;
  --dock-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-silk: cubic-bezier(.65, 0, .35, 1);
}

/* ── База ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--pearl);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
  overflow-x: hidden;
}
/* место под нижнюю панель — внутри тёмного подвала, без светлой полосы */
@media (max-width: 899px) { .site-footer { padding-bottom: calc(28px + var(--dock-h) + 10px) !important; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-3); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-4); }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-1); color: var(--ink); }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.muted { color: var(--muted); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 16px; background: var(--surface); border-radius: 10px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ── Типографика ──────────────────────────────────────── */
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .about__sign {
  font-style: italic;
  background: var(--gold-deep);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.h2--light { color: var(--pearl); }
.h2--light em { background: var(--gold); -webkit-background-clip: text; background-clip: text; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-1); }
.eyebrow .dot { display: none; }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-lead { margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--muted); max-width: 60ch; }
.section-head--center .section-lead { margin-inline: auto; }
.section-lead--light { color: rgb(247 242 238 / 72%); }
.note { margin-top: 24px; color: var(--muted); font-size: .9rem; }

/* ── Кнопки ───────────────────────────────────────────── */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .ico { width: 1.2em; height: 1.2em; }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .875rem; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-btn); color: #fff; box-shadow: var(--shadow-gold); text-shadow: 0 1px 1px rgb(100 60 20 / 25%); }
.btn--gold:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgb(168 118 62 / 65%); }
/* шёлковый блик */
.btn--gold::after {
  content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 55%), transparent);
  transform: skewX(-20deg) translateX(0);
  animation: sheen 5.5s var(--ease-silk) infinite;
}
.btn--gold:hover::after { animation-duration: 1.4s; }
@keyframes sheen { 0%, 70% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(460%); } }
.btn--ghost { background: rgb(255 253 251 / 82%); border-color: var(--sand); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--ink); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--pearl); }
.btn--dark:hover { background: var(--night-2); color: #fff; }
.btn--dark:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn--text { background: none; color: var(--ink-2); padding: 0 8px; }
.btn--text:hover { color: var(--gold-3); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: .3s var(--ease); }
.icon-btn:hover { border-color: var(--gold-2); color: var(--gold-3); transform: rotate(-8deg) scale(1.05); }
.icon-btn .ico { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow .ico:last-child { transition: transform .3s var(--ease); }
.link-arrow:hover .ico:last-child { transform: translateX(4px); }
.link-arrow--light { color: var(--gold-1); }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: .875rem; font-weight: 500; transition: .3s var(--ease);
}
.chip:hover { border-color: var(--gold-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--pearl); }

/* ── Интро ────────────────────────────────────────────── */
.intro { display: none; }
.js .intro.is-on {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200; background: var(--pearl);
  animation: intro-out .45s var(--ease) .85s forwards;
}
.intro__svg { width: min(38vw, 180px); }
.intro__path {
  fill: none; stroke: url(#g-gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw .9s var(--ease-silk) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ── Шапка ────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, transform .45s var(--ease);
}
.site-header.is-scrolled { background: rgb(247 242 238 / 82%); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 42px; height: 42px; color: var(--ink); transition: transform .8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-12deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.logo__sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 30px; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-header__cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.header-phone span { display: none; }
.header-phone .ico { width: 22px; height: 22px; color: var(--gold-3); }
.site-header__cta .btn { display: none; }
@media (min-width: 900px) { .site-header__cta .btn { display: inline-flex; } }
@media (min-width: 1100px) { .nav { display: flex; } .header-phone span { display: inline; } }

/* ── Прядь-прогресс ───────────────────────────────────── */
.scroll-strand { display: none; }
@media (min-width: 1100px) {
  .scroll-strand { display: block; position: fixed; z-index: 40; right: 14px; top: 12vh; width: 18px; height: 76vh; pointer-events: none; }
  .scroll-strand path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
  .scroll-strand__bg { stroke: var(--line); }
  .scroll-strand__fg { stroke: var(--gold-2); stroke-dasharray: 1; stroke-dashoffset: 1; }
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 80px;
  background:
    radial-gradient(60% 55% at 78% 35%, #EADBCB 0%, transparent 70%),
    radial-gradient(50% 40% at 10% 90%, var(--lilac-soft) 0%, transparent 70%),
    var(--pearl);
}
.hero__hair { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; z-index: -1; right: 8%; top: 18%; width: 40vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 236 205 / 70%), transparent 65%); filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12) translateY(-2%); opacity: .8; } }
.hero__grid { display: grid; gap: 8px; align-items: center; min-height: calc(100svh - var(--header-h) - 92px); }
.hero__copy { position: relative; z-index: 2; padding-top: 8px; }
.hero__title { font-family: var(--serif); font-weight: 500; line-height: .95; letter-spacing: -.015em; margin-bottom: 22px; }
.hero__kicker { display: block; margin-bottom: 18px; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 1.4; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; font-size: clamp(3.1rem, 11.5vw, 4.6rem); white-space: nowrap; }
@media (min-width: 900px) { .hero__title .line { font-size: clamp(4rem, 6.2vw, 6.6rem); } }
.hero__title .line > * { display: inline-block; }
.hero__lead { max-width: 46ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__actions .btn { flex: 1 1 240px; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__facts { display: flex; gap: clamp(18px, 4vw, 44px); list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero__facts b { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; line-height: 1; color: var(--gold-text); }
.hero__facts li > span { font-size: .85rem; line-height: 1.35; color: var(--muted); }

.hero__visual { position: relative; justify-self: center; width: min(86vw, 460px); order: -1; margin-top: 4px; }
.hero__arch { position: absolute; inset: 9% 4% 0; border-radius: 999px 999px 28px 28px; background: linear-gradient(180deg, #F3E7DA 0%, #E7D3BF 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 60%); }
/* золотой контур арки рисуется по её же форме — совпадает на любом экране */
.hero__arch::after { content: ""; position: absolute; inset: -12px -12px 0; border: 1.2px solid rgb(199 154 91 / 75%); border-bottom: 0; border-radius: 999px 999px 0 0; clip-path: inset(0 0 100% 0); animation: arch-draw 2.2s var(--ease-silk) .5s forwards; }
@keyframes arch-draw { to { clip-path: inset(0 0 0 0); } }
.hero__img { position: relative; width: 78%; margin: 0 auto; filter: drop-shadow(0 30px 40px rgb(80 50 30 / 25%)); max-height: 62svh; object-fit: contain; object-position: bottom; }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; max-width: 220px; border-radius: 18px;
  background: rgb(255 253 251 / 94%); box-shadow: var(--shadow);
  font-size: .8rem; line-height: 1.35; color: var(--muted);
  animation: float 7s ease-in-out infinite;
}
.float-card b { display: block; color: var(--ink); font-size: .85rem; }
.float-card .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--pearl-2); color: var(--gold-3); }
.float-card--a { left: -6%; top: 30%; }
.float-card--b { right: -6%; bottom: 14%; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: none; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue svg { width: 14px; height: 42px; }
.scroll-cue path { fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-dasharray: 70; animation: cue 2.4s var(--ease-silk) infinite; }
@keyframes cue { 0% { stroke-dashoffset: 70; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -70; } }

@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: var(--header-h); padding-bottom: 56px; }
  .hero__grid { min-height: 0; gap: 18px; }
  .hero .eyebrow { display: none; }
  .hero__kicker { margin-bottom: 10px; font-size: .74rem; }
  .hero__title { margin-bottom: 14px; }
  .hero__lead { font-size: .98rem; line-height: 1.55; }
  .hero__actions { margin: 20px 0 26px; }
  /* арка считается от высоты фото: фигура и арка всегда в одной пропорции */
  /* телефон: Алеся крупно — до середины бедра, низ платья растворяется в арке */
  .hero__visual { --ih: 50svh; width: min(88vw, calc(var(--ih) * .82)); height: var(--ih); }
  .hero__visual picture { position: relative; display: block; height: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
  .hero__img { height: calc(var(--ih) * 1.45); max-height: none; width: auto; object-position: top; }
  .float-card { padding: 9px 12px; max-width: 180px; font-size: .74rem; }
  .float-card--a { left: -18%; top: auto; bottom: 8%; }
  .float-card--b { display: none; }
}
/* низкие телефоны (iPhone SE и т. п.): кнопка записи должна быть видна сразу */
@media (max-width: 899px) and (max-height: 760px) {
  .hero__visual { --ih: 36svh; }
  .hero__grid { gap: 12px; }
  .hero__title .line { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero__kicker { margin-bottom: 6px; }
  .hero__lead { font-size: .94rem; line-height: 1.5; }
  .hero__actions { margin: 14px 0 22px; }
  .float-card { display: none; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .hero__visual { order: 0; width: min(100%, 480px); }
  .hero__img { max-height: 76svh; }
  .scroll-cue { display: flex; }
}

/* ── Бегущая строка ───────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); white-space: nowrap; color: var(--ink-2); }
.marquee li::after { content: "✦"; font-style: normal; font-size: .8rem; color: var(--gold-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Портфолио ────────────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin: -12px calc(var(--gutter) * -1) 28px; padding: 4px var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.works__grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .works__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .works__grid { grid-template-columns: repeat(3, 1fr); } }
.work { opacity: 1; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.work.is-extra, .work.is-filtered { display: none; }
.work.is-entering { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: var(--radius); background: var(--pearl-2);
  box-shadow: var(--shadow-sm);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.work:hover .ba { box-shadow: var(--shadow); transform: translateY(-4px); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.work:hover .ba__img { transform: scale(1.03); }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: linear-gradient(180deg, transparent, #fff 12%, #fff 88%, transparent); box-shadow: 0 0 12px rgb(0 0 0 / 25%); }
.ba__knob { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: rgb(255 253 251 / 88%); backdrop-filter: blur(6px); color: var(--gold-3); box-shadow: 0 6px 18px rgb(0 0 0 / 22%); transition: scale .3s var(--ease); }
.ba__knob .ico { width: 20px; height: 20px; }
.ba.is-dragging .ba__knob { scale: 1.12; }
.ba__label { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgb(28 21 19 / 55%); backdrop-filter: blur(6px); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; transition: opacity .3s; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; background: rgb(168 118 62 / 80%); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ba__range:focus-visible + * , .ba:focus-within { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.work__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.15; }
.works__more { display: flex; justify-content: center; margin-top: 40px; }

/* ── Калькулятор ──────────────────────────────────────── */
.calc { background: linear-gradient(180deg, var(--pearl) 0%, var(--pearl-2) 100%); }
.calc__wrap { max-width: 1040px; }
.quiz {
  position: relative;
  padding: clamp(22px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(227 214 200 / 70%);
}
.quiz__progress { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.quiz__progress svg { flex: 1; min-width: 0; width: 100%; height: 18px; overflow: visible; }
.quiz__progress path { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.quiz__progress-bg { stroke: var(--line); }
.quiz__progress-fg { stroke: var(--gold-2); stroke-dasharray: 1; stroke-dashoffset: .75; transition: stroke-dashoffset .8s var(--ease); }
.quiz__step-label { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.quiz__step.is-active { display: block; animation: step-in .55s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
.quiz__q { padding: 0; margin-bottom: 22px; font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.1; }
.options { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .options--4 { grid-template-columns: repeat(4, 1fr); } .options--3 { grid-template-columns: repeat(3, 1fr); } }
.options--3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .options--3 { grid-template-columns: repeat(3, 1fr); } }
.option input, .shade input { position: absolute; opacity: 0; pointer-events: none; }
.option__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%;
  padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--pearl);
  cursor: pointer; transition: .35s var(--ease);
}
.option__card b { font-size: 1rem; }
.option__card small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.option__ico { width: 46px; height: 46px; margin-bottom: 8px; }
.option__ico path { fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 0; }
.option:hover .option__card { border-color: var(--sand); transform: translateY(-2px); }
.option input:checked + .option__card { border-color: var(--gold-2); background: #FFF8EE; box-shadow: 0 0 0 1px var(--gold-2), var(--shadow-sm); }
.option input:checked + .option__card .option__ico path { animation: draw-in .9s var(--ease-silk); }
.option input:focus-visible + .option__card { outline: 2px solid var(--gold-3); outline-offset: 2px; }
@keyframes draw-in { from { stroke-dashoffset: 90; } }

.length { display: grid; gap: 20px; align-items: center; }
@media (min-width: 700px) { .length { grid-template-columns: 260px 1fr; gap: 48px; } }
.length__visual { justify-self: center; width: 200px; }
.silhouette { width: 100%; overflow: visible; }
.silhouette__body path { fill: var(--pearl-2); stroke: var(--sand); stroke-width: 1.2; }
.silhouette__body circle { fill: #E9D7C6; stroke: var(--sand); stroke-width: 1.2; }
.silhouette__hair path { fill: none; stroke-linecap: round; }
.silhouette stop { transition: stop-color .9s var(--ease); }
/* вспышка блеска при окрашивании */
.silhouette.is-dyed .silhouette__hair { animation: dye 1.3s var(--ease); }
@keyframes dye { 0% { filter: brightness(1.7) saturate(.5); } 100% { filter: none; } }
.silhouette__hair .silhouette__mass { stroke: none; opacity: .92; }
.silhouette__shine { fill: none; stroke: rgb(255 238 205 / 55%) !important; stroke-width: 1.6; }
.silhouette__ruler line { stroke: var(--sand); stroke-width: 1; }
.silhouette__ruler text { font: 600 9px var(--sans); fill: var(--muted); }
.length__value { display: block; font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; color: var(--gold-3); }
.length__hint { color: var(--muted); margin: 4px 0 22px; }
input[type="range"][data-len-range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type="range"][data-len-range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-2) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"][data-len-range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-2) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"][data-len-range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold-2); box-shadow: var(--shadow-gold); }
input[type="range"][data-len-range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold-2); }
.length__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }

.shades { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.shade { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-align: center; }
.shade__swatch { display: grid; place-items: center; width: 64px; height: 92px; border-radius: 999px 999px 18px 18px; background: var(--pearl); border: 1px solid var(--line); transition: .35s var(--ease); overflow: hidden; }
.shade__swatch svg { width: 44px; height: 84px; }
.shade__swatch path { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.shade__swatch--q { font-family: var(--serif); font-size: 2rem; color: var(--gold-3); }
.shade__name { font-size: .84rem; line-height: 1.25; color: var(--ink-2); }
.shade:hover .shade__swatch { transform: translateY(-3px); }
.shade input:checked + .shade__swatch { border-color: var(--gold-2); box-shadow: 0 0 0 2px var(--gold-2), var(--shadow-sm); transform: translateY(-3px); }
.shade input:checked + .shade__swatch path { animation: sway 2.4s ease-in-out infinite; transform-origin: top; }
.shade input:focus-visible + .shade__swatch { outline: 2px solid var(--gold-3); outline-offset: 3px; }
@keyframes sway { 50% { transform: skewX(4deg); } }

/* шаг 1: цели — иллюстрации (свои волосы — шоколад, нарощенные пряди — золото) */
.aims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .aims { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.aim input { position: absolute; opacity: 0; pointer-events: none; }
.aim__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; padding: 14px 12px 16px; text-align: center; cursor: pointer;
  border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.aim__card b { margin-top: 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.aim__card small { font-size: .82rem; color: var(--muted); }
.aim__check { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-btn); color: #fff; transform: scale(0); transition: transform .4s var(--ease); }
.aim__check .ico { width: 15px; height: 15px; }
.aim:hover .aim__card { transform: translateY(-4px); box-shadow: var(--shadow); }
.aim input:checked + .aim__card { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--gold-2), var(--shadow); transform: translateY(-4px); }
.aim input:checked + .aim__card .aim__check { transform: scale(1); }
.aim input:focus-visible + .aim__card { outline: 2px solid var(--gold-3); outline-offset: 4px; }
.ill { width: min(100%, 150px); height: auto; overflow: visible; }
.ill__arch { fill: url(#g-ill-arch); }
.ill__body { fill: #F7EFE6; stroke: #E3D2BF; stroke-width: 1; }
.ill__own { fill: url(#g-ill-own); }
.ill__ownhair { fill: url(#g-ill-own); }
.ill__ownlines--soft path { stroke: rgb(255 222 186 / 22%) !important; stroke-width: .9 !important; }
.ill__shadow { fill: rgb(90 60 40 / 12%); }
.ill__ext .ext--light { stroke: #F3DDB2; opacity: .9; }
.ill__ownlines path { fill: none; stroke: #6B4630; stroke-width: 1.6; stroke-linecap: round; }
.ill__mass { fill: url(#g-ill-gold); opacity: .32; }
.ill__ext path { fill: none; stroke: url(#g-ill-gold); stroke-linecap: round; stroke-dasharray: 140; stroke-dashoffset: 0; }
.ill__ruler path, .ill__arrows path, .ill__move { fill: none; stroke: var(--gold-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ill__ruler path:first-child { stroke-dasharray: 3 3; }
.ill__capsule { fill: url(#g-ill-keratin); stroke: #C49A5E; stroke-width: 1; }
.ill__ghost { fill: none; stroke: var(--gold-2); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .7; }
.ill__shine { stroke: rgb(255 255 255 / 85%); stroke-width: 2; stroke-linecap: round; }
.ill__spark { fill: var(--gold-2); transform-box: fill-box; transform-origin: center; }
/* выбор: золотые пряди дорисовываются, блёстки мерцают, стрелки «дышат» */
.aim input:checked + .aim__card .ill__ext path, .aim:hover .ill__ext path { animation: ill-draw 1.2s var(--ease-silk) both; }
@keyframes ill-draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
.aim input:checked + .aim__card .ill__spark, .aim:hover .ill__spark { animation: ill-twinkle 1.6s ease-in-out infinite; }
.aim .ill__spark:nth-of-type(2) { animation-delay: .3s !important; } .aim .ill__spark:nth-of-type(3) { animation-delay: .6s !important; }
@keyframes ill-twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }
.aim input:checked + .aim__card .ill__arrows, .aim:hover .ill__arrows { animation: ill-breathe 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ill-breathe { 50% { transform: scaleX(1.12); } }
.aim input:checked + .aim__card .ill__capsule, .aim:hover .ill__capsule { animation: ill-capsule 1.6s var(--ease) both; }
@keyframes ill-capsule { from { transform: translateY(42px); } }

/* ── иллюстрации калькулятора (assets/js/hair-art.js) ── */
.art { width: min(100%, 150px); height: auto; overflow: visible; }
.art__arch { fill: url(#g-ill-arch); }
.art__skin { fill: #F4E4D7; stroke: #E2C8B4; stroke-width: .6; }
.art__fold { fill: none; stroke: #E2C8B4; stroke-width: .6; stroke-linecap: round; }
.art__dress { fill: url(#g-ill-dress); }
.art__before { fill: none; stroke: rgb(255 250 240 / 85%); stroke-width: 1.1; stroke-dasharray: 2.5 2.5; stroke-linecap: round; }
.art__headlines path { fill: none; stroke: rgb(255 226 192 / 16%); stroke-width: .7; stroke-linecap: round; }
.art__lockbody--soft { stroke: none; }
.art__gloss { fill: rgb(255 238 214 / 34%); }
.art__mass { stroke: rgb(52 30 18 / 18%); stroke-width: .4; }
.art__lockbody { stroke: rgb(52 30 18 / 32%); stroke-width: .45; stroke-linejoin: round; }
.art__ext .art__lockbody, .art--tone .art__lockbody, .art--len .art__lockbody { stroke: rgb(140 92 46 / 38%); }
.art__strand { fill: none; stroke: rgb(255 236 210 / 15%); stroke-width: .45; stroke-linecap: round; }
.art__hl { fill: none; stroke: rgb(255 249 238 / 38%); stroke-width: .8; stroke-linecap: round; }
.art__cap { stroke: rgb(40 22 12 / 30%); stroke-width: .45; }
.art__caplines path { fill: none; stroke: rgb(255 222 186 / 26%); stroke-width: .6; stroke-linecap: round; }
.art__spark { fill: var(--gold-2); transform-box: fill-box; transform-origin: center; }
.art__ruler path, .art__arrows path, .art__move { fill: none; stroke: var(--gold-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.art__ghost { fill: none; stroke: var(--gold-2); stroke-width: 1.1; stroke-dasharray: 3 3; opacity: .75; }
.art__band { fill: url(#g-ill-gold); stroke: #93652F; stroke-width: .5; }
.art__clip { fill: url(#g-ill-gold); stroke: #93652F; stroke-width: .6; }
.art__clipline { stroke: rgb(255 255 255 / 55%); stroke-width: 1; stroke-linecap: round; }
.art__ext, .art__pony { transform-box: view-box; transform-origin: 60px 58px; }
/* выбор: золотые локоны «отрастают» сверху вниз, затем мягко покачиваются */
.aim input:checked + .aim__card .art__ext { animation: art-grow 1.1s var(--ease) both, art-sway 4s ease-in-out 1.1s infinite; }
.aim:hover .art__ext, .aim:hover .art__pony, .aim input:checked + .aim__card .art__pony { animation: art-sway 3.2s ease-in-out infinite; }
@keyframes art-grow { from { transform: scaleY(.25); opacity: 0; } }
@keyframes art-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }
.aim input:checked + .aim__card .art__spark, .aim:hover .art__spark { animation: ill-twinkle 1.6s ease-in-out infinite; }
.aim input:checked + .aim__card .art__arrows, .aim:hover .art__arrows { animation: ill-breathe 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.aim input:checked + .aim__card .art__capsule, .aim:hover .art__capsule { animation: ill-capsule 1.6s var(--ease) both; }
.art--len { width: 100%; height: 100%; }
.art--tone { position: absolute; inset: 0; width: 100%; height: 100%; }
.art--tone g.art__lock { transform-box: view-box; transform-origin: 50px 14px; }
.tone:hover .art--tone g.art__lock, .tone input:checked + .tone__swatch .art--tone g.art__lock { animation: art-sway 2.8s ease-in-out infinite; }
.tone__swatch--art { background: radial-gradient(90% 70% at 50% 30%, #FFFDF9, #EFE3D4); }

/* шаг 2: хвосты */
.aims--3 { grid-template-columns: repeat(3, 1fr) !important; }
/* телефон: густота — строки «рисунок + текст» */
@media (max-width: 559px) {
  .aims--3 { grid-template-columns: 1fr !important; gap: 10px; }
  .aims--3 .aim__card { display: grid; grid-template-columns: 78px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; justify-items: start; padding: 10px 16px 10px 10px; text-align: left; }
  .aims--3 .art { grid-row: 1 / span 2; width: 78px; }
  .aims--3 .aim__card b { margin: 0; align-self: end; font-size: 1.3rem; }
  .aims--3 .aim__card small { align-self: start; }
}
.ill__texture path { fill: none; stroke: rgb(255 228 196 / 28%); stroke-width: .8; stroke-linecap: round; }
.ill__pony { fill: url(#g-ill-own); }
.ill__band { fill: url(#g-ill-gold); stroke: #A8763E; stroke-width: .6; }
.ill__ponywrap { transform-box: view-box; transform-origin: 60px 64px; }
.aim:hover .ill__ponywrap, .aim input:checked + .aim__card .ill__ponywrap { animation: pony-sway 2.4s ease-in-out infinite; }
@keyframes pony-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }

/* шаг 3: длина на рисованной фигуре */
@media (max-width: 699px) { .lenphoto.lenphoto--ill { width: min(50vw, 200px); } .length { gap: 12px; } .length__value { font-size: 2.6rem; } .length__hint { margin-bottom: 12px; } }
.lenphoto.lenphoto--ill { aspect-ratio: 2 / 3; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.lenphoto--ill .lenill { width: 100%; height: 100%; }
.lenill__hair path { fill: none; stroke-linecap: round; }
.lenill__hair .lenill__mass { stroke: none; opacity: 1; }
.lenill__hair .lenill__shine { stroke: rgb(255 236 205 / 55%); stroke-width: 1.1; }
.lenphoto--ill .lenphoto__marks li { left: auto; right: -4px; background: rgb(28 21 19 / 50%); }
.lenphoto--ill .lenphoto__marks li.is-active { background: var(--gold-btn); }
.lenphoto--ill .lenphoto__chip { right: auto; left: -4px; }

/* шаг 4: нарисованные локоны */
.tone__swatch--lock { background: linear-gradient(180deg, #FBF6EF, #EFE3D4); }
.tone__swatch--lock svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock__hl path { fill: none; stroke: rgb(255 246 230 / 30%); stroke-width: 1.1; stroke-linecap: round; }
.tone__swatch--lock svg g:first-of-type { transform-origin: 50% 0; transform-box: view-box; }
.tone:hover .tone__swatch--lock svg g, .tone input:checked + .tone__swatch--lock svg g { animation: lock-sway 2.6s ease-in-out infinite; }
@keyframes lock-sway { 50% { transform: skewX(3deg); } }

/* шаг 1: цели — карточки с настоящими фото */
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .goals { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.goals--3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 760px) { .goals--3 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.goal__card--density { aspect-ratio: 4 / 5; background-position: 50% 40%; background-size: 150% auto; }
@media (max-width: 759px) { .goals--3 .goal__text { padding: 10px 10px 12px; } .goals--3 .goal__text b { font-size: 1.1rem; } .goals--3 .goal__text small { font-size: .72rem; } }
.goal input, .density input { position: absolute; opacity: 0; pointer-events: none; }
.goal__card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  aspect-ratio: 3 / 4; border-radius: 22px; cursor: pointer;
  background-color: var(--pearl-2); background-size: cover; background-position: 50% 42%;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.goal__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgb(28 21 19 / 82%) 100%); }
.goal__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 28%) 50%, transparent 65%); transform: translateX(-130%); }
.goal__card--macro { background-position: 30% 18%; background-size: 230% auto; }
.goal:hover .goal__card { transform: translateY(-5px); box-shadow: var(--shadow); }
.goal:hover .goal__card::after, .goal input:checked + .goal__card::after { animation: tone-sheen 1.1s var(--ease-silk); }
.goal__text { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; color: #fff; }
.goal__text b { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.05; }
.goal__text small { font-size: .8rem; color: rgb(255 255 255 / 86%); }
.goal__check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-btn); color: #fff; transform: scale(0); transition: transform .4s var(--ease); }
.goal__check .ico { width: 16px; height: 16px; }
.goal input:checked + .goal__card { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold-2), var(--shadow); }
.goal input:checked + .goal__card .goal__check { transform: scale(1); }
.goal input:focus-visible + .goal__card, .density input:focus-visible + .density__card { outline: 2px solid var(--gold-3); outline-offset: 5px; }

/* шаг 2: густота — пучки из тонких волосков */
.densities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 760px) { .densities { gap: 16px; } }
.density__card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; padding: 18px 10px 16px; text-align: center; cursor: pointer;
  border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--pearl));
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease), background .3s;
}
.density__card b { font-size: 1rem; }
.density__card small { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.tail { width: 70px; height: 96px; margin-bottom: 8px; overflow: visible; }
.tail g { transform-origin: 50% 20%; transition: transform .6s var(--ease); }
.tail__band { fill: #93652F; }
.density:hover .density__card { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.density:hover .tail g, .density input:checked + .density__card .tail g { animation: tail-sway 2.6s ease-in-out infinite; }
@keyframes tail-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg) skewX(-3deg); } }
.density input:checked + .density__card { border-color: var(--gold-2); background: #FFF8EE; box-shadow: 0 0 0 1px var(--gold-2), var(--shadow-sm); transform: translateY(-4px); }

/* шаг 3: длина на настоящем фото */
.lenphoto { position: relative; justify-self: center; width: min(68vw, 270px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 24px; background: var(--pearl-2); box-shadow: var(--shadow); }
.lenphoto img { width: 100%; height: 100%; object-fit: cover; }
.lenphoto__veil { position: absolute; left: 0; right: 0; bottom: 0; top: var(--cut); background: linear-gradient(180deg, rgb(247 242 238 / 45%) 0, rgb(247 242 238 / 88%) 36px); transition: top .3s var(--ease); }
.lenphoto__line { position: absolute; left: 6%; right: 6%; top: var(--cut); height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2) 12%, var(--gold-1) 50%, var(--gold-2) 88%, transparent); box-shadow: 0 0 10px rgb(232 207 160 / 90%); transition: top .3s var(--ease); }
.lenphoto__chip { position: absolute; right: 4%; top: 0; transform: translateY(-50%); padding: 4px 11px; border-radius: 999px; background: var(--gold-btn); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-gold); }
.lenphoto__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.lenphoto__marks li { position: absolute; left: 10px; top: var(--y); transform: translateY(-50%); padding: 2px 9px; border-radius: 999px; background: rgb(28 21 19 / 42%); color: #fff; font-size: .72rem; font-weight: 600; opacity: .55; transition: opacity .3s, background .3s, transform .3s var(--ease); }
.lenphoto__marks li.is-passed { opacity: .85; }
.lenphoto__marks li.is-active { opacity: 1; background: var(--gold-btn); transform: translateY(-50%) scale(1.06); }
@media (min-width: 700px) { .lenphoto { width: 300px; } .length { grid-template-columns: 300px 1fr !important; } }

/* шаг 4: образцы оттенков из настоящих волос */
.quiz__hint { margin: -12px 0 24px; color: var(--muted); }
.tones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
@media (min-width: 760px) { .tones { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; } }
.tone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-align: center; }
.tone input { position: absolute; opacity: 0; pointer-events: none; }
.tone__swatch {
  position: relative; overflow: hidden; width: 100%; max-width: 112px; aspect-ratio: 3 / 4.3;
  border-radius: 999px 999px 22px 22px; background-color: var(--pearl-2); background-size: 320% auto; background-position: 50% 60%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%), var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tone__swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 45%) 50%, transparent 65%); transform: translateX(-130%); }
.tone:hover .tone__swatch { transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow); }
.tone:hover .tone__swatch::after, .tone input:checked + .tone__swatch::after { animation: tone-sheen 1.1s var(--ease-silk); }
@keyframes tone-sheen { to { transform: translateX(130%); } }
.tone input:checked + .tone__swatch { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold-2), var(--shadow); }
.tone input:focus-visible + .tone__swatch { outline: 2px solid var(--gold-3); outline-offset: 6px; }
.tone__swatch--q { display: grid; place-items: center; background: linear-gradient(160deg, #FBF5EC, var(--champagne)); color: var(--gold-3); }
.tone__swatch--q .ico { width: 34px; height: 34px; }
.tone__name { font-size: .86rem; line-height: 1.25; color: var(--ink-2); }
.tone input:checked ~ .tone__name { color: var(--ink); font-weight: 600; }

/* результат: превращение «до → после» и цена рядом */
.glow-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.glow-result__media, .glow-result__info { min-width: 0; }
@media (min-width: 860px) { .glow-result { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; } }
.ba--result { aspect-ratio: 3 / 4; border-radius: 26px; box-shadow: var(--shadow); }
.ba--result::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%) var(--pearl-2); background-size: 200% 100%; }
.ba--result.is-loading::after { opacity: 1; animation: shimmer 1.2s linear infinite; }
.glow-result__tag { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgb(28 21 19 / 70%); color: var(--gold-1); font-size: .76rem; font-weight: 600; pointer-events: none; }
.glow-result__tag .ico { width: 14px; height: 14px; }
.glow-result__caption { margin: 14px 4px 12px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--ink-2); min-height: 1.5em; }
.glow-result__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 6px; scrollbar-width: none; }
.glow-result__thumbs::-webkit-scrollbar { display: none; }
.glow-result__thumb { flex: 0 0 66px; height: 88px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; opacity: .6; cursor: pointer; transition: opacity .3s, transform .3s var(--ease), box-shadow .3s; }
.glow-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.glow-result__thumb:hover { opacity: .9; transform: translateY(-2px); }
.glow-result__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold-2); }
.glow-result__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.05; }
.glow-result__sub { margin: 0 0 22px; color: var(--muted); }
.glow-result__price { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 22px; background: radial-gradient(120% 120% at 100% 0%, #3A2B24, var(--night) 70%); color: var(--pearl); }
.glow-result__price-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); }
.glow-result__price .result__total { margin: 6px 0 4px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glow-result__note { margin: 0; font-size: .86rem; color: rgb(247 242 238 / 72%); }
.glow-result .result__list { margin-top: 10px; }
.glow-result__cta { display: grid; gap: 10px; margin-top: 22px; }
/* появление результата */
.quiz__result:not([hidden]) .glow-result__media { animation: rise .7s var(--ease) both; }
.quiz__result:not([hidden]) .glow-result__info > * { animation: rise .7s var(--ease) both; }
.quiz__result:not([hidden]) .glow-result__info > :nth-child(2) { animation-delay: .08s; }
.quiz__result:not([hidden]) .glow-result__info > :nth-child(3) { animation-delay: .16s; }
.quiz__result:not([hidden]) .glow-result__info > :nth-child(4) { animation-delay: .26s; }
.quiz__result:not([hidden]) .glow-result__info > :nth-child(n+5) { animation-delay: .36s; }

.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.quiz__nav [data-quiz-next] { margin-left: auto; }
.quiz__result { animation: step-in .6s var(--ease) both; }
.result { display: grid; gap: 24px; }
@media (min-width: 800px) { .result { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.result__total { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin-bottom: 8px; background: var(--gold-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result__list { margin: 22px 0 0; display: grid; gap: 0; }
.result__list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.result__list dt { color: var(--muted); }
.result__list dd { margin: 0; font-weight: 600; text-align: right; }
.result__cta { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: var(--pearl); }
.result__cta p { margin: 0 0 4px; font-size: .92rem; color: var(--ink-2); }
.result__small { font-size: .86rem; }
.result__disclaimer { margin: 22px 0 0; font-size: .86rem; color: var(--muted); }

/* ── Метод: scroll-сцена ──────────────────────────────── */
.method { position: relative; height: 320vh; background: var(--night); color: var(--pearl); }
.method__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: calc(var(--header-h) * .6); }
.method__sticky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 70% 50%, rgb(199 154 91 / 18%), transparent 70%), radial-gradient(40% 50% at 10% 20%, rgb(185 163 192 / 12%), transparent 70%); }
.method__grid { position: relative; display: grid; gap: 8px; align-items: center; width: 100%; }
.method__text { order: 2; }
.method__text .h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
.method__steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; min-height: 120px; }
.method__steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid rgb(247 242 238 / 10%); opacity: .3; transition: opacity .5s var(--ease); }
.method__steps li.is-active { opacity: 1; }
.method__steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--gold-1); }
.method__steps p { margin: 0; font-size: .95rem; color: rgb(247 242 238 / 80%); }
.method__n { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); min-width: 32px; }
.method__stage { position: relative; order: 1; justify-self: center; width: min(62vw, 300px); }
.capsule { width: 100%; overflow: visible; }
.capsule__own path, .capsule__donor path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.capsule__waves path { fill: none; stroke: #FFB36B; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.capsule__heat { opacity: 0; }
.capsule__cap { transform-box: fill-box; transform-origin: center; }
.capsule__cap-hot { fill: #FF8A3D; opacity: 0; mix-blend-mode: screen; }
.capsule__cap-shine { stroke: rgb(255 255 255 / 70%); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.capsule__rice { opacity: 0; }
.capsule__rice text { font: 600 13px var(--sans); fill: rgb(247 242 238 / 70%); }
.method__temp { position: absolute; right: -6%; top: 6%; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1; color: var(--gold-1); }
.method__temp small { font-size: .45em; margin-left: 2px; color: var(--gold-2); }
@media (max-width: 899px) {
  .method__steps li { position: absolute; inset: 0 0 auto; border: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .method__steps li.is-active { opacity: 1; transform: none; }
  .method__stage { width: min(56vw, 250px); }
  .method__text .eyebrow { margin-bottom: .5rem; }
}
@media (min-width: 900px) {
  .method__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .method__text { order: 0; }
  .method__stage { width: min(100%, 420px); }
}

/* ── Волосы ───────────────────────────────────────────── */
.hair__grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .hair__grid { grid-template-columns: repeat(3, 1fr); } }
.hair-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.hair-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hair-card__strands { width: 100%; height: 130px; }
.hair-card__strands path { fill: none; stroke-width: 2.2; stroke-linecap: round; transform-origin: 50% 0; animation: sway-strand 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.35s); }
.hair-card--standard .hair-card__strands { background: linear-gradient(180deg, #EFE3D3, #E3D0B8); }
.hair-card--standard path { stroke: #B48A5C; }
.hair-card--lux .hair-card__strands { background: linear-gradient(180deg, #F0E5D9, #DCC3A4); }
.hair-card--lux path { stroke: #9B6B3E; }
.hair-card--premium .hair-card__strands { background: linear-gradient(180deg, #2E2320, #1C1513); }
.hair-card--premium path { stroke: #D9B67C; }
.hair-card:hover .hair-card__strands path { animation-duration: 2.6s; }
@keyframes sway-strand { 50% { transform: skewX(6deg) translateX(-4px); } }
.hair-card__body { padding: 24px 26px 28px; }
.hair-card__tier { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 6px; }
.hair-card__price { font-family: var(--serif); font-size: 2rem; line-height: 1.05; margin-bottom: 10px; }
.hair-card__len { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.hair-card__len .ico { color: var(--gold-2); }

/* ── Цены ─────────────────────────────────────────────── */
.prices { background: var(--pearl-2); }
.prices__grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .prices__grid { grid-template-columns: 1.15fr 1fr 1fr; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.price-card .btn { margin-top: auto; }
.price-card--featured { background: var(--night); color: var(--pearl); box-shadow: var(--shadow); }
.price-card--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gold); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-card__badge { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.price-card__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin-bottom: 16px; }
.price-card__from { margin: 0; font-size: 1rem; color: var(--muted); }
.price-card--featured .price-card__from { color: rgb(247 242 238 / 65%); }
.price-card__from b { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--ink); }
.price-card--featured .price-card__from b { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__unit { margin-bottom: 22px; font-size: .9rem; color: var(--gold-text); font-weight: 600; }
.price-card--featured .price-card__unit { color: var(--gold-1); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: .92rem; }
.ticks .ico { width: 20px; height: 20px; color: var(--gold-2); }

/* ── Процесс ──────────────────────────────────────────── */
.process__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.process__line { display: none; }
.process__list li { position: relative; padding-left: 70px; }
.process__list li::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: -28px; width: 1px; background: linear-gradient(var(--gold-2), transparent); }
.process__list li:last-of-type::before { display: none; }
.process__dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); color: var(--gold-3); }
.process__list b { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; margin: 10px 0 6px; }
.process__list p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (min-width: 900px) {
  .process__list { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 8px; }
  .process__list li { padding-left: 0; padding-top: 74px; }
  .process__list li::before { display: none; }
  .process__line { display: block; position: absolute; left: 26px; right: 0; top: 6px; width: calc(100% - 26px); height: 40px; }
  .process__line path { fill: none; stroke: var(--gold-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-silk); }
  .process__list.is-in .process__line path { stroke-dashoffset: 0; }
}

/* ── О мастере ────────────────────────────────────────── */
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } }
.about__photo { position: relative; justify-self: center; width: min(100%, 440px); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px 28px 28px; }
.about__frame { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); pointer-events: none; }
.about__frame path { fill: none; stroke: url(#g-gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.about__text > p { color: var(--ink-2); font-size: 1.04rem; }
.about__text .h2 { margin-bottom: 26px; }
.about__values { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 16px; }
.about__values li { display: flex; gap: 14px; align-items: flex-start; }
.about__values .ico { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--surface); color: var(--gold-3); box-shadow: var(--shadow-sm); }
.about__values b { display: block; }
.about__values span { color: var(--muted); font-size: .92rem; }
.about__sign { font-family: var(--serif); font-size: 2.4rem; margin: 0; }
.about__years { display: flex; align-items: baseline; gap: 12px; margin: -8px 0 22px; color: var(--muted); }
.about__years b { font-family: var(--serif); font-size: 3.4rem; line-height: 1; font-weight: 500; background: var(--gold-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Видео ────────────────────────────────────────────── */
.video { background: var(--pearl-2); }
.video__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .video__grid { grid-template-columns: 400px 1fr; gap: 80px; } }
.video__player { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); box-shadow: var(--shadow); }
.video__player img, .video__player video { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 84px; height: 84px; border: 0; border-radius: 50%; background: rgb(255 253 251 / 85%); backdrop-filter: blur(8px); color: var(--gold-3); box-shadow: 0 0 0 0 rgb(255 255 255 / 50%); animation: pulse 2.6s ease-out infinite; transition: transform .3s var(--ease); }
.video__play:hover { transform: scale(1.08); }
.video__play .ico { width: 30px; height: 30px; margin-left: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgb(255 255 255 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0%); } }
.cases { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.case h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.case__chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.case__chips li { padding: 4px 11px; border-radius: 999px; background: var(--pearl); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.case p { margin: 0; font-size: .9rem; }

/* ── Отзывы ───────────────────────────────────────────── */
.reviews__layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .reviews__layout { grid-template-columns: 360px 1fr; gap: 32px; } }

/* тёмная карточка рейтинга */
.rating-card { position: relative; overflow: hidden; isolation: isolate; padding: 32px 28px 28px; border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 100% 0%, #3A2B24 0%, var(--night) 65%); color: var(--pearl); box-shadow: var(--shadow); }
@media (min-width: 980px) { .rating-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.rating-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gold); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.rating-card__strands { position: absolute; inset: auto 0 0; width: 100%; height: 60%; z-index: -1; opacity: .35; }
.rating-card__strands path { fill: none; stroke: var(--gold-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rating-card__source { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(247 242 238 / 70%); }
.rating-card__source .ico { width: 20px; height: 20px; }
.rating-card__value { margin: 0; font-family: var(--serif); font-size: 6.4rem; line-height: .85; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-card__stars { display: flex; gap: 4px; margin: 14px 0 8px; color: var(--gold-1); }
.rating-card__stars .ico { width: 22px; height: 22px; }
.rating-card__count { margin: 0 0 22px; color: rgb(247 242 238 / 70%); font-size: .92rem; }
.rating-card__award { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 26px; padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(232 207 160 / 22%); font-size: .82rem; color: rgb(247 242 238 / 65%); }
.rating-card__award b { display: block; color: var(--gold-1); font-size: .95rem; }
.rating-card__award .ico { width: 26px; height: 26px; color: var(--gold-1); flex: none; }
.rating-card__actions { display: grid; gap: 10px; }
.btn--glass { background: rgb(255 255 255 / 6%); border-color: rgb(232 207 160 / 30%); color: var(--pearl); }
.btn--glass:hover { color: #fff; border-color: var(--gold-2); transform: translateY(-2px); }

/* рамка живой ленты Яндекса */
.yreviews { position: relative; height: 680px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
/* шапку виджета (название + 4,9) прячем: рейтинг уже есть в карточке слева */
.yreviews iframe { position: absolute; left: 0; top: -114px; width: 100%; height: calc(100% + 114px); border: 0; opacity: 0; transition: opacity .6s var(--ease); }
.yreviews.is-loaded iframe { opacity: 1; }
.yreviews.is-loaded .yreviews__skeleton { opacity: 0; visibility: hidden; }
.yreviews__fade { position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.yreviews__skeleton { position: absolute; inset: 0; padding: 28px; display: grid; gap: 28px; align-content: start; transition: opacity .4s, visibility .4s; }
.sk { display: grid; grid-template-columns: 44px 1fr; gap: 10px 14px; }
.sk__ava { grid-row: span 4; width: 44px; height: 44px; border-radius: 50%; }
.sk__line { height: 12px; border-radius: 6px; }
.sk__line--s { width: 30%; } .sk__line--m { width: 60%; }
.sk__ava, .sk__line { background: linear-gradient(90deg, var(--pearl-2) 0%, #fff 50%, var(--pearl-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 979px) { .yreviews { height: 600px; } .rating-card__value { font-size: 5rem; } }
@media (min-width: 640px) and (max-width: 979px) {
  .rating-card { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "src src" "val award" "stars actions" "count actions"; column-gap: 40px; align-items: start; }
  .rating-card__source { grid-area: src; }
  .rating-card__value { grid-area: val; }
  .rating-card__stars { grid-area: stars; }
  .rating-card__count { grid-area: count; margin: 0; }
  .rating-card__award { grid-area: award; margin: 0 0 14px; }
  .rating-card__actions { grid-area: actions; }
}

.reviews__fav-title { margin: 56px 0 18px; font-family: var(--serif); font-size: 1.8rem; }
.award { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--gold-btn); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; box-shadow: var(--shadow-gold); }
.award .ico { width: 16px; height: 16px; }
.hero__facts .star { font-size: .55em; vertical-align: .35em; }
.reviews__badge .link-arrow { font-size: .88rem; }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .reviews__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 6px 0 0; } }
.review { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); scroll-snap-align: start; }
.review__stars { display: flex; gap: 3px; color: var(--gold-2); }
.review__stars .ico { width: 18px; height: 18px; }
.review blockquote { margin: 0; flex: 1; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }
.review figcaption b { color: var(--ink); }
.review__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--serif); font-size: 1.3rem; }
.review__src { margin-left: auto; }
.review__src .ico { width: 22px; height: 22px; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.reviews__yandex { max-width: 560px; margin-inline: auto; margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.reviews__yandex iframe { display: block; width: 100%; height: 720px; border: 0; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.2; }
.acc summary::-webkit-details-marker { display: none; }
.acc__ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-3); transition: transform .45s var(--ease), background-color .3s; }
.acc[open] .acc__ico { transform: rotate(135deg); background: var(--surface); }
.acc__body { overflow: hidden; }
.acc__body p { margin: 0 0 22px; max-width: 64ch; color: var(--ink-2); }
.care { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--night); color: var(--pearl); }
.care__title { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 20px; }
.care__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.care__list li { display: flex; gap: 14px; font-size: .92rem; color: rgb(247 242 238 / 80%); }
.care__list b { display: block; color: var(--gold-1); font-size: .95rem; }
.care__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(232 207 160 / 30%); color: var(--gold-1); }

/* ── Запись ───────────────────────────────────────────── */
.booking { position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 150px); background: radial-gradient(70% 60% at 50% 0%, #3A2B24 0%, var(--night) 70%); color: var(--pearl); }
.booking__hair { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.booking__inner { position: relative; }
.channels { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .channels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) {
  .channels .channel { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center; justify-items: start; padding: 16px 20px; text-align: left; }
  .channels .channel__ico { grid-row: 1 / span 2; grid-column: 1; width: 52px; height: 52px; margin: 0; }
  .channels .channel b { grid-column: 2; align-self: end; }
  .channels .channel small { grid-column: 2; align-self: start; }
}
.channel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 20px; border-radius: var(--radius-lg); background: rgb(42 32 28 / 72%); border: 1px solid rgb(232 207 160 / 18%); color: var(--pearl); text-decoration: none; text-align: center; transition: .45s var(--ease); }
.channel:hover { color: #fff; transform: translateY(-6px); border-color: var(--gold-2); background: rgb(52 40 34 / 82%); }
.channel b { font-size: 1.1rem; }
.channel small { color: rgb(247 242 238 / 74%); }
.channel__ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: 50%; background: var(--gold); color: #fff; box-shadow: var(--shadow-gold); }
.channel__ico .ico { width: 28px; height: 28px; }
.channel__ico--wa { background: linear-gradient(135deg, #5BE07F, #1FAF55); box-shadow: 0 12px 28px -10px rgb(31 175 85 / 60%); }
.channel__ico--tg { background: linear-gradient(135deg, #5FC2F5, #2A8FD6); box-shadow: 0 12px 28px -10px rgb(42 143 214 / 60%); }
.contacts { display: grid; gap: 24px; max-width: 980px; margin: 48px auto 0; }
@media (min-width: 860px) { .contacts { grid-template-columns: 1fr 1.4fr; align-items: stretch; } }
.contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; align-content: center; }
.contacts__list li { display: flex; gap: 14px; color: rgb(247 242 238 / 76%); font-size: .92rem; }
.contacts__list b { display: block; color: var(--pearl); font-size: 1rem; }
.contacts__list .ico { width: 24px; height: 24px; color: var(--gold-1); }
.map { position: relative; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: #2A201C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23463831' stroke-width='1'/%3E%3C/svg%3E"); border: 1px solid rgb(232 207 160 / 15%); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s var(--ease); }
.map.is-loaded iframe { opacity: 1; }
.map__btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: 1px solid var(--gold-2); border-radius: 999px; background: rgb(28 21 19 / 70%); color: var(--gold-1); font-weight: 600; }
.map__btn .ico { width: 20px; height: 20px; }

/* ── Подвал ───────────────────────────────────────────── */
.site-footer { padding: 56px 0 28px; background: var(--night); color: rgb(247 242 238 / 60%); font-size: .88rem; border-top: 1px solid rgb(232 207 160 / 10%); }
.site-footer a { color: rgb(247 242 238 / 80%); }
.site-footer a:hover { color: var(--gold-1); }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__brand { font-family: var(--serif); font-size: 1.6rem; color: var(--pearl); margin-bottom: 6px; }
.site-footer__title { color: var(--gold-1); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.site-footer .muted { color: rgb(247 242 238 / 64%); }
.site-footer__bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(247 242 238 / 8%); }
.to-top { text-decoration: none; }

/* ── Нижняя панель (мобильная) ────────────────────────── */
.dock {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 6px;
  border-radius: 22px; background: rgb(28 21 19 / 95%); box-shadow: 0 14px 40px -10px rgb(0 0 0 / 45%);
  transition: transform .45s var(--ease);
}
.dock.is-hidden { transform: translateY(140%); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 16px; color: var(--pearl); text-decoration: none; font-size: .78rem; font-weight: 600; }
.dock a .ico { width: 20px; height: 20px; }
.dock a:first-child .ico { color: #4CD478; }
.dock a:nth-child(2) .ico { color: #5FC2F5; }
.dock__main { background: var(--gold-btn); color: #fff !important; }
@media (min-width: 900px) { .dock { display: none; } }

/* ── Cookie ───────────────────────────────────────────── */
.cookie {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 18px);
  display: flex; flex-direction: column; gap: 12px; max-width: 440px; padding: 18px 20px;
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); font-size: .85rem; color: var(--ink-2);
  animation: rise .6s var(--ease) both;
}
.cookie p { margin: 0; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .cookie { left: 24px; right: auto; bottom: 24px; } }

/* ── Лайтбокс ─────────────────────────────────────────── */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--pearl); }
.lightbox::backdrop { background: rgb(20 15 13 / 92%); backdrop-filter: blur(6px); }
.lightbox[open] { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lightbox__inner { position: relative; display: flex; flex-direction: column; height: 100%; padding: 56px 12px 12px; }
.lightbox__media { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.lightbox__media img { width: auto; max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 14px; transition: opacity .25s; }
.lightbox__media img.is-swapping { opacity: 0; }
.lightbox__toggle { position: absolute; top: 12px; left: 50%; translate: -50% 0; display: flex; padding: 4px; border-radius: 999px; background: rgb(28 21 19 / 70%); backdrop-filter: blur(8px); }
.lightbox__toggle button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--pearl); font-weight: 600; font-size: .85rem; }
.lightbox__toggle button[aria-pressed="true"] { background: var(--gold-btn); color: #fff; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; backdrop-filter: blur(6px); }
.lightbox__nav:hover { background: rgb(255 255 255 / 22%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 6px 4px; max-width: 900px; width: 100%; margin: 0 auto; }
.lightbox__bar h2 { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); }
.lightbox__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; }

/* ── Появление при прокрутке ──────────────────────────── */
.js .h2.reveal { opacity: 1; clip-path: inset(-12% -4% 100% -4%); transform: translateY(.35em); transition: clip-path 1.15s var(--ease), transform 1.15s var(--ease); }
.js .h2.reveal.is-in { clip-path: inset(-12% -4% -25% -4%); transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .line > * { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .hero.is-ready .hero__title .line > * { transform: none; }
.js .hero.is-ready .hero__title .line:nth-child(3) > * { transition-delay: .12s; }
.js .hero .reveal { transition-delay: calc(var(--d, 0ms) + .25s); }

/* ── Свечение под курсором ──────────────────────────── */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(199 154 91 / 16%), transparent 50%); }
.spot:hover::after { opacity: 1; }
.channel.spot::after, .price-card--featured.spot::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(232 207 160 / 18%), transparent 50%); }
@media (hover: none) { .spot::after { display: none; } }

/* ── Юридические страницы ─────────────────────────────── */
.legal { padding: calc(var(--header-h) + 48px) 0 96px; }
.legal__body { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 32px; }
.legal h2 { font-family: var(--serif); font-size: 1.5rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }

/* ── Меньше движения ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__title .line > * { opacity: 1; transform: none; }
  .js .h2.reveal { clip-path: none; }
  .method { height: auto; }
  .method__sticky { position: relative; height: auto; padding-block: 96px; }
  .method__steps li { position: static !important; opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}
