/* =========================================================
   PARFÉ ✦ NOVA — сайт
   Mobile-first. Сцены: Ткань → Создание → Паркет → Ваше платье
   ========================================================= */

:root {
  --ink: #15110f;
  --ink-2: #3b332d;
  --ivory: #f3ece1;
  --paper: #efe7da;
  --teal-950: #041d20;
  --teal-900: #062a2d;
  --teal: #0f6e6f;
  --aqua: #6fd8cd;
  --blush: #f4e8e3;
  --rose: #9a7130;
  --fabric: #e58aa8;
  --ink-0: #0e0c0b;
  --dress: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 560'%3E%3Cpath d='M170 62 Q200 84 230 62 L268 74 C282 120 296 190 306 250 L286 255 C276 200 264 150 253 122 C250 160 245 200 242 232 C270 300 308 380 342 462 Q320 452 300 468 Q280 452 260 470 Q240 455 220 472 Q200 456 180 472 Q160 455 140 470 Q120 452 100 468 Q80 452 58 462 C92 380 130 300 158 232 C155 200 150 160 147 122 C136 150 124 200 114 255 L94 250 C104 190 118 120 132 74 Z'/%3E%3C/svg%3E");
  --rose-2: #f2b9c4;
  --gold: #d4a752;
  --gold-2: #f3dc9b;
  --parquet: #120b08;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fg: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ivory);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-theme="light"] { --fg: var(--ink); }
main { overflow-x: clip; }
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* фон-сцена, плавно меняет цвет между главами */
.stage-bg { position: fixed; inset: 0; z-index: -1; background: var(--bg, #0e0c0b); transition: background-color 1s ease; }

/* плёночное зерно поверх всего */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.star { fill: url(#gold); width: .8em; height: .8em; flex: none; }

/* ---------- типографика ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 116px);
  line-height: .94;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display em { font-style: italic; }
.display.small { font-size: clamp(36px, 4.4vw, 64px); }
.title { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -.015em; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.kicker span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--gold); }
.kicker .star { width: 14px; height: 14px; }
.center { text-align: center; justify-content: center; }
.body { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 36em; opacity: .86; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 45%, transparent); color: inherit; backdrop-filter: blur(8px); }
.btn-outline { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn-wide { width: 100%; }

/* ---------- header ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h); padding: 0 var(--pad); padding-top: env(safe-area-inset-top);
  color: var(--fg); transition: color .6s ease;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: color-mix(in srgb, var(--bg, #0e0c0b) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
body.scrolled .topbar::before { opacity: 1; }
.logo { display: flex; align-items: center; gap: .45em; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.logo .star { width: 14px; height: 14px; }
.chapters { display: none; }
.head-cta { display: none; margin-left: auto; }
.menu-btn {
  margin-left: auto; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.menu-btn i { position: relative; width: 22px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] i { transform: scaleY(0); }
.progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress span { height: 1.5px; background: color-mix(in srgb, currentColor 18%, transparent); position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }

.menu {
  position: fixed; inset: 0; z-index: 35; padding: calc(var(--header-h) + 28px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--ink-0); color: var(--ivory); display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font-family: var(--serif); font-size: 38px; line-height: 1.05; text-decoration: none; border-bottom: 1px solid rgba(243,236,225,.1); }
.menu nav a i { font-size: 15px; color: var(--gold); }
.menu-foot { font-size: 14px; opacity: .7; }
.menu.open nav a { animation: menuIn .7s var(--ease) both; }
.menu.open nav a:nth-child(2) { animation-delay: .04s } .menu.open nav a:nth-child(3) { animation-delay: .08s }
.menu.open nav a:nth-child(4) { animation-delay: .12s } .menu.open nav a:nth-child(5) { animation-delay: .16s }
.menu.open nav a:nth-child(6) { animation-delay: .2s } .menu.open nav a:nth-child(7) { animation-delay: .24s }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }

/* =========================================================
   01 — ТКАНЬ: сцена. Живая ткань в силуэте платья под софитом
   ========================================================= */
.hero { position: relative; height: 220vh; height: 220svh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ivory); background: var(--ink-0); }
.stage-glow { position: absolute; pointer-events: none; opacity: var(--content-o, 1); }
.stage-glow::before {
  content: ""; position: absolute; left: -70%; right: -70%; top: -30%; height: 125%;
  background: radial-gradient(closest-side, rgba(255,228,196,.17), rgba(255,228,196,.05) 55%, transparent);
}
.stage-glow::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgba(243,220,155,.28), transparent);
}
.fabric-wrap { position: absolute; inset: 0; touch-action: pan-y; }
.fabric-wrap.masked {
  -webkit-mask-image: var(--dress); mask-image: var(--dress);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.fabric-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fabric-fallback { position: absolute; inset: 0; }
.dress-img { position: absolute; left: 50%; top: 80px; height: 50vh; width: auto; pointer-events: none; opacity: var(--content-o, 1); }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--chap-o, 0);
  background: linear-gradient(to top, rgba(14,12,11,.88) 0%, rgba(14,12,11,.35) 45%, transparent 70%);
}

.hero-content {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(22px + env(safe-area-inset-bottom));
  opacity: var(--content-o, 1); transform: translateY(var(--content-y, 0px));
}
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.55; text-transform: uppercase; color: rgba(243,236,225,.72); margin-bottom: 10px; max-width: 32em; }
.wordmark {
  display: flex; align-items: center; gap: .16em; white-space: nowrap;
  font-family: var(--serif); font-weight: 500; font-size: 11.4vw; line-height: .92; letter-spacing: .03em;
  background: linear-gradient(100deg, #f7e5ad 0%, #d4a752 38%, #f6dfa0 58%, #a8792e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark .star { width: .42em; height: .42em; animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.86); } }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; margin: 6px 0 0; color: var(--ivory); }
.lead { display: none; font-size: 18px; line-height: 1.55; max-width: 27em; margin-top: 20px; color: rgba(243,236,225,.78); }
.cta-row { display: flex; align-items: center; gap: 10px 14px; margin-top: 18px; }
.cta-row .btn-light { flex: 1 1 auto; }
.cta-row .btn-ghost { flex: 0 0 auto; }
.price-link { display: none; white-space: nowrap; font-size: 14px; text-decoration: none; color: rgba(243,236,225,.85); }
.price-link b { color: var(--gold-2); font-weight: 700; }
.d-only { display: none !important; }

.fabric-picker {
  position: absolute; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px;
  opacity: var(--content-o, 1);
}
.fabric-picker button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; }
.fabric-picker .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(243,236,225,.25); transition: box-shadow .3s, transform .3s; }
.fabric-picker button:hover .sw { transform: scale(1.15); }
.fabric-picker button[aria-pressed="true"] .sw { box-shadow: 0 0 0 2px var(--ink-0), 0 0 0 3px var(--gold); }
.picker-name { flex-basis: 100%; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold-2); white-space: nowrap; }

.hero-chapter {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(26px + env(safe-area-inset-bottom));
  opacity: var(--chap-o, 0); transform: translateY(calc((1 - var(--chap-o, 0)) * 40px)); pointer-events: none;
}
.hero-chapter .kicker { margin-bottom: 10px; }
.hero-chapter .display { font-size: clamp(40px, 11vw, 104px); }
.hero-chapter .body { display: none; margin-top: 18px; }
.hint-touch { margin-top: 12px; font-size: 13px; opacity: .6; }
.scroll-hint { display: none; }

/* =========================================================
   Сцены — общие
   ========================================================= */
.scene { position: relative; padding: clamp(96px, 16vh, 190px) var(--pad); }

[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- фото-слоты ---------- */
.slot { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: #000; isolation: isolate; }
.slot-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.14); transition: transform 1.8s var(--ease); }
.slot.in .slot-media, .in .slot .slot-media, .rail .slot .slot-media { transform: scale(1); }
.slot::before, .slot::after { content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.75); pointer-events: none; }
.slot::before { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.slot::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.slot figcaption {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 40px; color: #fff; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.slot figcaption b { font-weight: 700; }
/* слот ещё без фото: фактура ткани + монограмма бренда */
.slot[data-photo]:not(.has-photo) .slot-media::after { content: "P✦"; position: absolute; inset: 0; display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-size: clamp(44px, 9vw, 96px); letter-spacing: .04em; color: #d4a752; opacity: .5; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.slot:not(.has-photo) .ph-cap { display: none; }
.slot::before, .slot::after { display: none; }

/* ---------- процедурные фактуры (плейсхолдеры и свотчи) ---------- */
.tex-velvet {
  background:
    radial-gradient(60% 50% at 28% 22%, rgba(140,255,240,.55), transparent 60%),
    repeating-linear-gradient(103deg, rgba(0,0,0,0) 0 7%, rgba(0,0,0,.35) 11%, rgba(120,240,225,.18) 15%, rgba(0,0,0,0) 19%),
    radial-gradient(120% 90% at 70% 90%, #031a1c, transparent 70%),
    linear-gradient(160deg, #1aa39c 0%, #0b5b5d 40%, #04282b 100%);
}
.tex-pleat {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,.35), transparent 70%),
    repeating-conic-gradient(from -40deg at 50% -30%, #f6c6cf 0deg 1.1deg, #d98a9c 1.1deg 2deg, #fbe1e6 2deg 2.6deg),
    #e9a8b6;
}
.tex-leopard {
  background:
    radial-gradient(70% 60% at 30% 25%, rgba(255,240,220,.18), transparent 60%),
    radial-gradient(circle at 30% 30%, transparent 5px, #2b2520 6px 9px, transparent 10px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 75%, transparent 4px, #2b2520 5px 8px, transparent 9px) 0 0 / 46px 46px,
    radial-gradient(ellipse 5px 3px at 50% 50%, #26211c 99%, transparent) 12px 20px / 31px 37px,
    linear-gradient(150deg, #1a1714, #060505 70%);
}
.tex-yellow {
  background:
    radial-gradient(40% 35% at 35% 30%, rgba(255,255,230,.9), transparent 70%),
    repeating-linear-gradient(80deg, transparent 0 9%, rgba(120,70,0,.25) 13%, transparent 18%),
    linear-gradient(170deg, #ffe066 0%, #f0b400 45%, #8a5a00 100%);
}
.tex-sugar {
  background:
    radial-gradient(45% 40% at 32% 26%, rgba(255,255,255,.75), transparent 70%),
    repeating-linear-gradient(98deg, transparent 0 8%, rgba(150,40,80,.16) 12%, rgba(255,255,255,.22) 15%, transparent 19%),
    linear-gradient(165deg, #ffd3e0 0%, #f59ab8 48%, #c9628a 100%);
}
.tex-tiffany {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,.45), transparent 70%),
    repeating-conic-gradient(from -40deg at 50% -30%, #a9e7e0 0deg 1.1deg, #6cc5bb 1.1deg 2deg, #d4f5f1 2deg 2.6deg),
    #8fd9d0;
}
.tex-holo {
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(255,255,255,.9), transparent 70%),
    conic-gradient(from 200deg at 60% 60%, #ffd1f0, #c9f0ff, #e6ffd1, #fff2c2, #f0d1ff, #ffd1f0),
    #d8dbe2;
  background-blend-mode: screen, normal, normal;
}
.tex-red {
  background:
    radial-gradient(45% 40% at 30% 26%, rgba(255,220,225,.6), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 9%, rgba(90,0,20,.22) 13%, transparent 18%),
    linear-gradient(165deg, #ff5a78 0%, #f0193f 50%, #8e0a26 100%);
}
.tex-blue {
  background:
    radial-gradient(45% 40% at 30% 26%, rgba(200,215,255,.5), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 9%, rgba(0,10,60,.25) 13%, transparent 18%),
    linear-gradient(165deg, #4d6dff 0%, #1d3ee0 50%, #0b1a7a 100%);
}
.tex-white {
  background:
    radial-gradient(45% 40% at 30% 26%, #fff, transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 9%, rgba(120,120,140,.14) 13%, transparent 18%),
    linear-gradient(165deg, #ffffff 0%, #e9e8ee 55%, #b9b8c4 100%);
}
.tex-paper {
  background:
    linear-gradient(rgba(21,17,15,.07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(21,17,15,.07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(70% 60% at 50% 40%, #f8f2e8, #ddd0bc);
}

/* =========================================================
   02 — СОЗДАНИЕ
   ========================================================= */
/* =========================================================
   ИМЯ БРЕНДА — словарная расшифровка
   ========================================================= */
.meaning { color: var(--ink); text-align: center; padding-bottom: clamp(48px, 8vh, 96px); }
.meaning .kicker { color: var(--ink); }
.meaning .kicker .star { width: 14px; height: 14px; }
.defs { display: grid; gap: 36px; justify-items: center; max-width: 1080px; margin: 28px auto 0; }
.def-word { font-family: var(--serif); font-weight: 500; font-size: clamp(68px, 19vw, 168px); line-height: .88; letter-spacing: .05em; }
.def-src { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.def-src i { font-family: var(--serif); font-size: 17px; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.def-text { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.def-star { width: 26px; height: 26px; }
.meaning-sum { max-width: 920px; margin: clamp(48px, 8vh, 88px) auto 0; padding-top: clamp(36px, 6vh, 56px); border-top: 1px solid rgba(154,113,48,.45); }
.meaning-sum .display { font-size: clamp(38px, 6.4vw, 92px); }
.meaning-sum .body { margin: 22px auto 0; }
.meaning + .plate { padding-top: clamp(72px, 12vh, 140px); }
.foot-motto { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); color: var(--gold-2); }

.fabrics { color: var(--ink); padding-top: clamp(120px, 20vh, 220px); }
.create { color: var(--ink); }
.create .kicker span { color: var(--rose); }
.tape { position: absolute; left: -5%; right: -5%; top: 34px; height: 46px; transform: rotate(-2.2deg); overflow: hidden; background: #ead08a; box-shadow: 0 10px 30px -18px rgba(80,50,0,.6); }
.tape-track {
  display: flex; height: 100%; width: max-content; will-change: transform;
  background:
    repeating-linear-gradient(90deg, rgba(40,25,0,.7) 0 1px, transparent 1px 8px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(40,25,0,.85) 0 1px, transparent 1px 40px) 0 0 / 100% 18px no-repeat;
}
.tape-track span { flex: none; width: 80px; padding: 22px 0 0 4px; font-size: 12px; font-weight: 700; color: #3a2700; font-variant-numeric: tabular-nums; }
.tape-track span:nth-child(5n+1) { color: #b0201a; }

.create-grid { display: grid; gap: 56px; }
.create .display { margin-bottom: 26px; }
.mini-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.mini-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(21,17,15,.14); }
.mini-steps .n { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--rose); line-height: 1; }
.mini-steps b { font-size: 16px; font-weight: 700; }
.mini-steps p { font-size: 15px; opacity: .78; margin-top: 2px; }

.sketch { margin: 0; position: relative; padding: 18px; border-radius: 8px;
  background:
    linear-gradient(rgba(21,17,15,.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(21,17,15,.06) 1px, transparent 1px) 0 0 / 20px 20px,
    #f7f1e6;
  box-shadow: 0 30px 60px -40px rgba(60,40,20,.5), inset 0 0 0 1px rgba(21,17,15,.08);
}
.sketch-svg { width: 100%; height: auto; max-height: 76vh; margin: 0 auto; overflow: visible; }
.sketch-svg .draw path, .sketch-svg .leaders path { opacity: var(--po, 0); }
.sketch-svg .draw path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: var(--o, 1); }
.sketch-svg .ink path { stroke: var(--ink); stroke-width: 1.6; }
.sketch-svg .ink .thin { stroke-width: .8; opacity: .55; }
.sketch-svg .ink .rose { stroke: var(--fabric); stroke-width: 1.2; }
.sketch-svg .ink .dash { stroke-width: .8; }
.sketch-svg .measure path { stroke: var(--teal); stroke-width: 1; }
.sketch-svg .labels text { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; fill: var(--teal); text-anchor: middle; opacity: var(--lo, 0); transition: opacity .5s; }
.sketch-svg .labels text.l { text-anchor: start; fill: var(--ink); font-family: var(--serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.sketch-svg .labels text.rose { fill: var(--fabric); }
.sketch-svg .leaders path { fill: none; stroke: var(--ink); stroke-width: .7; stroke-dasharray: 1 1; stroke-dashoffset: var(--o, 1); }
.sketch figcaption { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }


/* =========================================================
   03 — ПАРКЕТ
   ========================================================= */
.parket { color: var(--ivory); padding-left: 0; padding-right: 0; padding-top: clamp(40px, 8vh, 90px); }
.spot { position: absolute; inset: 0 0 auto; height: 120vh; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,214,150,.18), transparent 70%),
              conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(255,220,170,.07) 172deg, rgba(255,220,170,.1) 180deg, rgba(255,220,170,.07) 188deg, transparent 200deg);
}
.marquee { overflow: hidden; padding: 18px 0 48px; }
.marquee-track { display: flex; width: max-content; will-change: transform; transform: translate3d(var(--mx, 0), 0, 0) skewX(var(--skew, 0deg)); }
.marquee-track span {
  display: flex; align-items: center; gap: .3em; padding-right: .3em;
  font-family: var(--serif); font-size: clamp(76px, 15vw, 240px); line-height: 1; letter-spacing: -.03em; white-space: nowrap;
}
.marquee-track span i { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--gold-2); }
.marquee-track .star { width: .42em; height: .42em; }

.parket-head { padding: 0 var(--pad); max-width: 1100px; }
.parket-head .display { margin-bottom: 24px; }

.rail { margin-top: 56px; }
.rail-sticky { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail-sticky::-webkit-scrollbar { display: none; }
.rail-track { display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); width: max-content; }
.rail .slot { flex: none; scroll-snap-align: center; width: 78vw; height: 62svh; height: 62vh; }
.rail .slot.r-wide { width: 88vw; height: 52vh; }
.rail .slot.r-sq { height: 48vh; }
.rail-end { flex: none; width: 74vw; padding: 0 8px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; scroll-snap-align: center; }
.play {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.18); backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform .4s var(--ease);
}
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.play:hover { transform: scale(1.08); }

.champ { position: relative; padding: clamp(110px, 18vh, 200px) var(--pad) 0; }
.champ-star { width: 64px; height: 64px; margin: 0 auto 28px; animation: twinkle 8s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(243,220,155,.45)); }
.champ .display { max-width: 12em; margin: 0 auto; }
.cases { display: grid; gap: 28px; margin-top: 64px; }
.case .slot { aspect-ratio: 4 / 5; margin-bottom: 16px; outline: 1px dashed rgba(243,236,225,.25); outline-offset: 6px; }
.case-meta { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.case h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 6px 0 6px; }
.case-text { font-size: 15px; opacity: .7; }

/* =========================================================
   04 — ВАШЕ ПЛАТЬЕ
   ========================================================= */
.plate { color: var(--ink); }
.plate .kicker span { color: var(--rose); }
.plate-head { margin-bottom: clamp(56px, 8vh, 100px); }

.works-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters button { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(21,17,15,.2); background: transparent; font-size: 14px; font-weight: 600; transition: background-color .3s, color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.work { transition: opacity .5s, filter .5s; }
.work.dim { opacity: .18; filter: grayscale(1); }
.work .slot { aspect-ratio: 3 / 4; margin-bottom: 14px; }
.work:first-child { grid-column: span 2; }
.work:first-child .slot { aspect-ratio: 4 / 5; }
.work h4 { font-family: var(--serif); font-size: 26px; line-height: 1.05; }
.work-meta { font-size: 13px; opacity: .7; margin: 4px 0 10px; }
.work-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 700; }
.work-actions a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.work-actions .like { color: var(--rose); }
.work-badge { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--gold-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.palette { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.palette .title em { font-style: italic; }
.palette .title { margin-bottom: 18px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 12px; }
.swatches li { display: flex; flex-direction: column; min-width: 0; }
.fab-w { display: block; margin-bottom: 14px; filter: drop-shadow(0 16px 16px rgba(70,40,20,.22)); transition: transform .7s var(--ease); }
.swatches li:hover .fab-w { transform: translateY(-6px); }
/* образец ткани: прямоугольник с краем «зигзаг», как в книге образцов */
.fab {
  --z: 9px; position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 2px 2px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--z) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--z) 100%;
}
.fab::after { content: ""; position: absolute; left: 9%; right: 9%; top: 9px; border-top: 1px dashed rgba(255,255,255,.5); }
.m-lycra { background:
  linear-gradient(115deg, transparent 28%, rgba(255,255,255,.34) 44%, transparent 58%),
  radial-gradient(60% 120% at 82% 70%, rgba(0,0,0,.20), transparent 70%),
  linear-gradient(165deg, var(--c1), var(--c2) 46%, var(--c3)); }
.m-velvet { background:
  linear-gradient(128deg, var(--c3) 0%, var(--c2) 30%, color-mix(in srgb, var(--c1) 70%, var(--c2)) 50%, var(--c2) 66%, var(--c3) 100%); }
.m-velvet::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.35)); }
.m-pleat { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.26) 0 1px, transparent 1px 3.5px, rgba(0,60,55,.07) 3.5px 4.5px, transparent 4.5px 6px),
  linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 46%, transparent 60%),
  linear-gradient(165deg, var(--c1), var(--c2) 50%, var(--c3)); }
.m-holo { background:
  radial-gradient(circle at 30% 30%, #fff 0 .9px, transparent 1.4px) 0 0 / 13px 13px,
  radial-gradient(circle at 70% 70%, rgba(255,255,255,.85) 0 .7px, transparent 1.2px) 0 0 / 9px 9px,
  linear-gradient(115deg, transparent 26%, rgba(255,255,255,.5) 44%, transparent 60%),
  conic-gradient(from 210deg at 35% 40%, #ffc9e6, #c6e4ff, #d2ffe6, #fff0b8, #ffd2c4, #ffc9e6); }
.swatches b { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.05; hyphens: auto; }
.swatches small { margin-top: 4px; font-size: 12px; line-height: 1.3; opacity: .65; }
.work-yours {
  grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 22px; min-height: 260px;
  padding: 28px; border-radius: 999px 999px 8px 8px; border: 1px dashed rgba(21,17,15,.35); text-decoration: none; position: relative;
  background: radial-gradient(70% 60% at 50% 20%, rgba(255,255,255,.6), transparent);
}
.work-yours .star { width: 40px; height: 40px; }

.prices { display: grid; gap: 36px; margin-top: clamp(110px, 16vh, 180px); }
.prices .title { margin-bottom: 18px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pay div { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(21,17,15,.06); }
.pay b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 500; }
.pay span { font-size: 13px; opacity: .75; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(21,17,15,.14);
  transition: background-color .6s;
}
.price-list li:last-child { border-bottom: 1px solid rgba(21,17,15,.14); }
.price-list li.flash { background: rgba(212,167,82,.22); }
.pair { position: relative; width: 50px; height: 34px; }
.pair i { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ivory); transition: transform .5s var(--ease); }
.pair i:last-child { left: 16px; }
.price-list li:hover .pair i:last-child { transform: translateX(6px) rotate(20deg); }
.pname { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pname small { display: block; font-weight: 400; font-size: 13px; opacity: .7; }
.pval { font-family: var(--serif); font-size: 26px; font-weight: 500; white-space: nowrap; }

.howto { margin-top: clamp(110px, 16vh, 180px); }
.howto .title { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 0 0 26px; }
.steps li::before { content: ""; position: absolute; left: 22px; top: 44px; bottom: 6px; width: 1px; background: rgba(21,17,15,.2); }
.steps li:last-child::before { display: none; }
.sn { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--rose); }
.steps b { font-size: 17px; padding-top: 6px; }
.steps p { font-size: 15px; opacity: .75; }
.remote { display: flex; gap: 18px; align-items: flex-start; margin-top: 18px; padding: 26px; border-radius: 18px; background: var(--ink); color: var(--ivory); }
.remote .star { width: 30px; height: 30px; margin-top: 4px; }
.remote h4 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
.remote p { font-size: 15px; opacity: .85; }

.review { margin-top: clamp(110px, 16vh, 180px); text-align: center; }
.review .kicker { justify-content: center; }
.review blockquote { margin: 0 auto; max-width: 22em; }
.review blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.12; opacity: .55; }
.review .q { color: var(--rose); }
.review footer { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }

.faq { margin-top: clamp(110px, 16vh, 180px); display: grid; gap: 28px; }
.faq details { border-top: 1px solid rgba(21,17,15,.16); }
.faq details:last-child { border-bottom: 1px solid rgba(21,17,15,.16); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; font-size: 18px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 32px; line-height: 1; transition: transform .4s var(--ease); color: var(--rose); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 40em; opacity: .8; }

/* =========================================================
   ЗАЯВКА
   ========================================================= */
.order { color: var(--ivory); overflow: hidden; }
.order-bg { position: absolute; inset: 0; opacity: .35; }
.order-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 10%, transparent, rgba(20,18,16,.85) 60%), linear-gradient(180deg, rgba(20,18,16,.5), #141210 75%); }
.order-grid { position: relative; display: grid; gap: 48px; }
.order-text .display { margin-bottom: 24px; }
.order-text .btn { margin-top: 28px; }
.order-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 22px; border-radius: 22px;
  background: rgba(243,236,225,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(243,236,225,.14);
}
.field { grid-column: span 2; display: grid; gap: 6px; }
.field.half { grid-column: span 1; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .75; }
.field input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(243,236,225,.2);
  background: rgba(20,18,16,.55); color: var(--ivory); font: inherit; font-size: 16px; transition: border-color .3s;
}
.field input::placeholder { color: rgba(243,236,225,.4); }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #ff8d8d; }
.check { grid-column: span 2; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; opacity: .85; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; flex: none; }
.order-form .btn { grid-column: span 2; margin-top: 6px; }
.form-status { grid-column: span 2; font-size: 14px; min-height: 1.4em; }
.form-status.err { color: #ffb0b0; }
.form-status.info { color: var(--gold-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; padding: 80px var(--pad) calc(110px + env(safe-area-inset-bottom)); color: var(--ivory); background: var(--ink-0); }
.foot-mark { display: flex; align-items: center; gap: .2em; font-family: var(--serif); font-weight: 500; font-size: 11.4vw; color: var(--gold-2); line-height: .9; letter-spacing: -.01em; white-space: nowrap; }
.foot-mark .star { width: .45em; height: .45em; }
.foot-grid { display: grid; gap: 22px; margin-top: 44px; font-size: 15px; opacity: .85; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-grid a { text-decoration: none; border-bottom: 1px solid rgba(243,236,225,.3); }
.foot-copy { margin-top: 40px; font-size: 12px; opacity: .5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(16,12,10,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.1);
  color: var(--ivory); transform: translateY(140%); transition: transform .6s var(--ease);
}
.dock .btn { min-height: 46px; }
.dock .btn-ghost { padding: 0 20px; }
.dock.show { transform: none; }


/* =========================================================
   ≥ 600px
   ========================================================= */
@media (min-width: 600px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  .cases .case:nth-child(2) { transform: translateY(48px); }
  .cases .case:nth-child(2).in { transform: translateY(48px); }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 18px; }
  .work:first-child { grid-column: span 1; }
  .work:first-child .slot { aspect-ratio: 3 / 4; }
  .work-yours { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
}

/* =========================================================
   ≥ 960px — компьютер
   ========================================================= */
@media (min-width: 960px) {
  .defs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px); }
  .def-word { font-size: clamp(64px, 8.6vw, 168px); }
  .def-star { width: 34px; height: 34px; }
  :root { --header-h: 76px; }
  .chapters { display: flex; gap: 28px; margin: 0 auto; }
  .chapters a { display: flex; gap: 8px; align-items: baseline; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .5; transition: opacity .3s; }
  .chapters a i { font-family: var(--serif); font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 500; }
  .chapters a:hover, .chapters a.active { opacity: 1; }
  .chapters a.active i { color: var(--gold); }
  .head-cta { display: inline-flex; margin-left: 0; }
  .menu-btn { margin-left: 0; }
  .logo { font-size: 22px; }

  .hero-content { left: var(--pad); right: auto; top: 50%; bottom: auto; width: min(46vw, 680px); transform: translateY(calc(-50% + var(--content-y, 0px))); }
  .eyebrow { font-size: 12px; letter-spacing: .2em; margin-bottom: 18px; }
  .wordmark { flex-wrap: wrap; width: 4.6em; font-size: min(8.6vw, 156px); line-height: .9; }
  .lead { display: block; }
  .price-link { display: block; flex-basis: 100%; margin-top: 4px; }
  .cta-row { flex-wrap: wrap; }
  .m-only { display: none !important; }
  .d-only { display: inline-flex !important; }
  .cta-row { margin-top: 30px; }
  .cta-row .btn-light { flex: 0 0 auto; }
  .hero-scrim { background: linear-gradient(90deg, rgba(14,12,11,.88) 0%, rgba(14,12,11,.45) 42%, transparent 68%); }
  .hero-chapter { left: var(--pad); right: auto; bottom: auto; top: 50%; width: 40vw; transform: translateY(calc(-50% + (1 - var(--chap-o, 0)) * 40px)); }
  .hero-chapter .display { font-size: clamp(56px, 6.2vw, 112px); }
  .hero-chapter .body { display: block; }
  .hint-touch { display: none; }
  .scroll-hint {
    position: absolute; left: var(--pad); bottom: 36px; display: flex; align-items: center; gap: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; opacity: var(--content-o, 1); color: rgba(243,236,225,.7);
  }
  .scroll-hint i { width: 34px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: left; }
  @keyframes drip { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

  .create-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
  .sketch { padding: 32px; }

  .parket-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; max-width: none; }
  .parket-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .parket-head .display { margin-bottom: 0; }

  /* закреплённая горизонтальная галерея */
  .rail.pinned .rail-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; scroll-snap-type: none; }
  .rail.pinned .rail-track { will-change: transform; gap: 4vw; }
  .rail .slot { width: 34vw; height: 74vh; }
  .rail .slot.r-tall { width: 30vw; height: 78vh; }
  .rail .slot.r-wide { width: 52vw; height: 58vh; }
  .rail .slot.r-mid { width: 30vw; height: 52vh; }
  .rail .slot.r-sq { width: 36vh; height: 40vh; }
  .rail .slot.low { align-self: flex-end; margin-bottom: 8vh; }
  .rail .slot.high { align-self: flex-start; margin-top: 10vh; }
  .rail-end { width: 34vw; }

  .champ .display { max-width: 14em; }

  .plate-head { display: flex; align-items: end; justify-content: space-between; }
  .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; }
  .work:nth-child(4n+2), .work:nth-child(4n+4) { margin-top: 90px; }
  .work-yours { grid-column: span 1 !important; padding: 36px; }
  .swatches { gap: 40px 20px; }
  .swatches b { font-size: 24px; }
  .swatches small { font-size: 13px; }
  .palette-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 110px); align-items: end; }
  .palette-head .kicker { grid-column: 1 / -1; }
  .palette-head .body { margin: 0 0 18px; }
  .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 24px; }

  .prices { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .prices-intro { position: sticky; top: 120px; }
  .price-list li { grid-template-columns: 64px 1fr auto; padding: 24px 0; gap: 20px; }
  .pair { width: 64px; height: 42px; } .pair i { width: 42px; height: 42px; } .pair i:last-child { left: 22px; }
  .pname { font-size: 17px; } .pval { font-size: 34px; }

  .steps { grid-template-columns: repeat(6, 1fr); column-gap: 24px; }
  .steps li { grid-template-columns: 1fr; padding: 0; }
  .steps li::before { left: 56px; right: -16px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .sn { grid-row: auto; font-size: 52px; margin-bottom: 14px; }
  .remote { max-width: 760px; margin: 56px 0 0 auto; padding: 36px 40px; }

  .faq { grid-template-columns: 4fr 7fr; gap: 64px; }

  .order-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
  .order-form { padding: 32px; }

  .foot-grid { grid-template-columns: 2fr 1fr 1.4fr; }
  .footer { padding-bottom: 48px; }
  .dock { display: none; }
}

@media (min-width: 1600px) {
  .rail .slot.r-tall { width: 26vw; }
}

/* =========================================================
   Уменьшенное движение
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero-sticky { position: relative; }
  .hero-chapter { display: none; }
  .slot-media { transform: none; }
  .sketch-svg .draw path, .sketch-svg .leaders path { stroke-dashoffset: 0; opacity: 1; }
  .sketch-svg .labels text { opacity: 1; }
}

/* =========================================================
   Доработка разделов: чемпионы, мастер, отзыв, контакты
   ========================================================= */
.champ-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--gold-2);
}
.champ-link .star { width: 14px; height: 14px; animation: twinkle 6s ease-in-out infinite; }
.champ-link span { border-bottom: 1px solid rgba(243,220,155,.35); padding-bottom: 2px; transition: border-color .3s; }
.champ-link:hover span { border-color: var(--gold-2); }

.champ { padding: clamp(110px, 18vh, 200px) var(--pad) clamp(40px, 8vh, 80px); scroll-margin-top: 40px; }
.body.center { text-align: center; margin-left: auto; margin-right: auto; }
.champ-lead { margin-top: 22px; max-width: 34em; }
.moments {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 18px; margin: 56px calc(-1 * var(--pad)) 0;
  padding: 12px var(--pad) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.moments::-webkit-scrollbar { display: none; }
.moment { scroll-snap-align: center; display: grid; gap: 22px; align-content: start; }
.moment .slot { aspect-ratio: 3 / 4; outline: 1px solid rgba(212,167,82,.45); outline-offset: 7px; margin: 8px; }
.moment-body { text-align: center; }
.moment-n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.moment-tag { margin: 6px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.moment h3 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; }
.moment p:not(.moment-tag) { margin-top: 8px; font-size: 15px; opacity: .75; }
.moment q { quotes: "«" "»"; font-family: var(--serif); font-style: italic; font-size: 19px; }
.moment a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--gold-2); text-decoration: none; border-bottom: 1px solid rgba(243,220,155,.4); }

.master { display: grid; gap: 40px; align-items: center; margin-top: clamp(96px, 14vh, 160px); }
.master-photo { aspect-ratio: 4 / 5; width: 100%; max-width: 520px; }
.master .title em { font-style: italic; }
.master .title { margin-bottom: 20px; }
.master-facts { list-style: none; padding: 0; margin: 30px 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.master-facts li { padding-top: 14px; border-top: 1px solid rgba(21,17,15,.18); }
.master-facts b { display: block; font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1; color: var(--rose); }
.master-facts span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; opacity: .75; }
.master-link { font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.review { display: grid; gap: 32px; align-items: center; text-align: left; margin-top: clamp(110px, 16vh, 180px); scroll-margin-top: 40px; }
.review-photo { aspect-ratio: 3 / 4; width: 100%; max-width: 420px; }
.review .kicker { justify-content: flex-start; }
.review blockquote { margin: 0; max-width: 15em; }
.review blockquote p { opacity: 1; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.06; }
.review footer { text-align: left; }
.review footer b { font-weight: 800; }
.review-text .btn { margin-top: 30px; }

.contacts { margin: 36px 0 0; max-width: 480px; scroll-margin-top: 90px; }
.contacts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid rgba(243,236,225,.14); }
.contacts dt { padding-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.contacts dd { margin: 0; font-size: 15px; }
.contacts a { color: var(--gold-2); text-decoration: none; border-bottom: 1px solid rgba(243,220,155,.35); }

.work h4 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.work h4 a:hover { background-size: 100% 1px; }

@media (min-width: 960px) {
  .champ-link { margin-top: 20px; }
  .moments { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 40px; margin: 72px 0 0; padding: 0; overflow: visible; }
  .master { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); }
  .review { grid-template-columns: 4fr 7fr; gap: clamp(48px, 7vw, 120px); }
  .contacts div { grid-template-columns: 150px minmax(0, 1fr); }
}

/* =========================================================
   Страницы работ (raboty/<slug>/) и 404
   ========================================================= */
.case-page .topbar { gap: 16px; }
.c-back { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .75; }
.c-back:hover { opacity: 1; }
.c-head-cta { display: inline-flex; }
.c-hero {
  display: grid; gap: 40px; align-items: center; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 36px) var(--pad) 64px; color: var(--ivory);
}
.c-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 13vw, 156px); line-height: .9; letter-spacing: .01em; }
.c-sub { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); color: var(--gold-2); }
.c-facts { margin: 30px 0 0; max-width: 560px; }
.c-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid rgba(243,236,225,.14); }
.c-facts dt { padding-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.c-facts dd { margin: 0; font-size: 16px; }
.c-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.c-cta.center { justify-content: center; }
.c-photo { margin: 0; justify-self: center; width: min(100%, 500px); aspect-ratio: 3 / 4; border-radius: 999px 999px 8px 8px; overflow: hidden; outline: 1px solid rgba(212,167,82,.5); outline-offset: 10px; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; }
.c-story { padding: clamp(96px, 14vh, 160px) var(--pad); color: var(--ink); }
.c-story > .kicker span { color: var(--rose); }
.c-steps { list-style: none; margin: 0; padding: 0; max-width: 1160px; }
.c-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; padding: 30px 0; border-top: 1px solid rgba(21,17,15,.15); }
.c-step .n { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; color: var(--rose); }
.c-step h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.02; }
.c-step p { margin-top: 10px; font-size: 17px; line-height: 1.6; max-width: 36em; opacity: .85; }
.c-step a { font-weight: 700; color: var(--ink); }
.c-note { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin-top: 18px; padding: 22px 24px; border-radius: 16px; background: var(--ink-0); color: var(--ivory); font-size: 16px; }
.c-note .star { width: 22px; height: 22px; margin-top: 2px; }
.c-final { padding: clamp(96px, 14vh, 160px) var(--pad) clamp(64px, 10vh, 120px); color: var(--ivory); }
.c-final .body { margin-top: 18px; }
.c-more { margin-top: clamp(96px, 14vh, 150px); }
.c-more-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad); }
.c-more-grid::-webkit-scrollbar { display: none; }
.c-card { scroll-snap-align: start; display: grid; gap: 4px; text-decoration: none; color: var(--ivory); }
.c-card-img { display: block; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden; margin-bottom: 12px; }
.c-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.c-card:hover .c-card-img img { transform: scale(1.05); }
.c-card b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1; }
.c-card small { font-size: 13px; opacity: .7; }
.c-footer { padding-bottom: 48px; }
.c-footer .foot-copy a { color: inherit; }

.e404 { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: var(--pad); text-align: center; color: var(--ivory); }
.e404 .num { font-family: var(--serif); font-size: clamp(120px, 30vw, 300px); line-height: .85; background: linear-gradient(100deg, #f7e5ad, #d4a752 45%, #8d6525); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (min-width: 960px) {
  .c-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); }
  .c-step { grid-template-columns: 110px minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 40px 0; }
  .c-step .n { grid-row: auto; font-size: 46px; }
  .c-step p { margin-top: 6px; }
  .c-more-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 28px; margin: 0; padding: 0; overflow: visible; }
}
@media (max-width: 599px) { .c-back { display: none; } .case-page .c-head-cta { margin-left: auto; } }

/* заявка: статусы и ловушка для ботов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: var(--gold-2); font-weight: 600; }
.form-status a { color: var(--gold-2); }
.order-form button[disabled] { opacity: .6; cursor: progress; transform: none; }
