/* =====================================================================
   «Вуаль» — ателье свадебного платья, Санкт-Петербург (демо NXAI)
   Direction: «Дневник заказа». Porcelain + champagne + deep plum.
   Display: Noto Serif Display, light, narrow width axis (tall Didone).
   Body: Inter Tight. Rectangles only, hairlines and stitch lines carry
   information (time scales, prices, measurements).
   ===================================================================== */

:root {
  /* colour */
  --bg: #F6F3EF;          /* porcelain: page */
  --bg-2: #EEE8E0;        /* linen: alternate sections */
  --paper: #FBF9F6;       /* drawer, inputs, cards */
  --ink: #26201C;
  --ink-2: rgba(38, 32, 28, .74);
  --ink-3: #6B625A;       /* small secondary text, AA on --bg */
  --muted: #837A72;       /* large captions, decorative */
  --line: rgba(38, 32, 28, .14);
  --line-strong: rgba(38, 32, 28, .32);
  --plum: #4A2C3A;
  --plum-2: #5D3949;
  --plum-deep: #3A222D;
  --plum-ink: #F4ECEE;    /* text on plum */
  --plum-line: rgba(244, 236, 238, .18);
  --champagne: #D9C7A7;
  --champagne-2: #EADFCB;
  --champagne-deep: #A88D5F; /* thread on light backgrounds */
  --ok: #4E6A4C;
  --ok-light: #BFD0AE;
  --warn: #9A5F2C;
  --warn-light: #E8BE92;
  --rose-light: #E9C8D3;

  /* type */
  --f-display: "Noto Serif Display", "Bodoni 72", "Didot", "Bodoni MT", "Times New Roman", serif;
  --f-body: "Inter Tight", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --stretch: 68%;
  --t-hero: clamp(3.2rem, min(6.8vw, 13vh), 8.2rem);
  --t-h2: clamp(2.5rem, 5.6vw, 5.9rem);
  --t-h3: clamp(1.75rem, 2.8vw, 2.6rem);
  --t-h4: clamp(1.3rem, 1.7vw, 1.6rem);
  --t-lead: clamp(1.4rem, 2.25vw, 2.15rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .75rem;

  /* space */
  --maxw: 1440px;
  --gutter: clamp(16px, 4.6vw, 64px);
  --section: clamp(88px, 11vw, 168px);
  --head-h: 64px;
  --radius: 0;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --veil-ease: cubic-bezier(.65, .02, .23, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 300; font-stretch: var(--stretch); letter-spacing: -.005em; line-height: .98; text-wrap: balance; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.on-plum :focus-visible, .on-dark :focus-visible { outline-color: var(--champagne); }
::selection { background: var(--plum); color: var(--plum-ink); }
[hidden] { display: none !important; }
html.lock-menu, html.lock-drawer { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--linen { background: var(--bg-2); }
.section--paper { background: var(--paper); }
.section--plum { background: var(--plum); color: var(--plum-ink); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- type ---------- */
.t-hero { font-size: var(--t-hero); line-height: .9; }
.t-h2 { font-size: var(--t-h2); line-height: .94; }
.t-h3 { font-size: var(--t-h3); line-height: 1.02; }
.t-h4 { font-size: var(--t-h4); line-height: 1.1; }
.t-lead { font-family: var(--f-display); font-stretch: 82%; font-weight: 300; font-size: var(--t-lead); line-height: 1.22; letter-spacing: 0; }
.t-small { font-size: var(--t-small); line-height: 1.55; }
.t-num { font-family: var(--f-display); font-style: italic; font-weight: 300; font-stretch: var(--stretch); font-variant-numeric: lining-nums; }
.t-h2 em, .t-h3 em, .t-hero em { font-style: italic; color: var(--plum); }
.on-plum .t-h2 em, .on-plum .t-h3 em { color: var(--champagne); }
.label { font: 500 var(--t-label)/1.35 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.label--stitch { display: inline-flex; align-items: center; gap: 12px; }
.label--stitch::before { content: ""; width: 34px; height: 1px; background: repeating-linear-gradient(90deg, var(--champagne-deep) 0 5px, transparent 5px 9px); flex: none; }
.on-plum .label { color: rgba(244, 236, 238, .7); }
.on-plum .label--stitch::before { background: repeating-linear-gradient(90deg, var(--champagne) 0 5px, transparent 5px 9px); }
.muted { color: var(--ink-3); }
.plum { color: var(--plum); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.center { text-align: center; }

/* chapter head: label row + title + aside */
.chapter { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 88px); }
.chapter__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.on-plum .chapter__top { border-color: var(--plum-line); }
.chapter__no { font: 400 var(--t-label)/1 var(--f-body); letter-spacing: .16em; color: var(--ink-3); }
.on-plum .chapter__no { color: rgba(244, 236, 238, .6); }
.chapter__title { max-width: 15ch; }
.chapter__aside { max-width: 46ch; color: var(--ink-2); margin: 0; }
.on-plum .chapter__aside { color: rgba(244, 236, 238, .82); }
@media (min-width: 960px) {
  .chapter { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 48px; }
  .chapter__top { grid-column: 1 / -1; }
  .chapter__aside { justify-self: end; padding-bottom: .5em; }
}

/* ---------- buttons & links ---------- */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid var(--b); background: transparent; color: var(--ink); font: 500 .8125rem/1.1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--plum { --b: var(--plum); background: var(--plum); color: var(--plum-ink); }
.btn--plum:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--plum-ink); }
.btn--champagne { --b: var(--champagne); background: var(--champagne); color: var(--plum-deep); }
.btn--champagne:hover { background: var(--champagne-2); color: var(--plum-deep); }
.btn--ghost-light { --b: rgba(244, 236, 238, .5); color: var(--plum-ink); }
.btn--ghost-light:hover { background: var(--plum-ink); color: var(--plum); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .75rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: var(--line-strong); transition: text-decoration-color .3s var(--ease), color .3s var(--ease); }
.link:hover { text-decoration-color: currentColor; color: var(--plum); }
.on-plum .link:hover { color: var(--champagne); }
.link--arrow::after { content: " →"; }
.textbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: 500 .8125rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: inherit; border-bottom: 1px solid currentColor; }
.textbtn:hover { color: var(--plum); }

/* messenger buttons — always Telegram → MAX → WhatsApp */
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; color: inherit; font: 500 .9375rem/1 var(--f-body); text-decoration: none; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.ch:hover { border-color: var(--ink); background: var(--paper); }
.ch svg { width: 18px; height: 18px; flex: none; }
.on-plum .ch { border-color: rgba(244, 236, 238, .3); }
.on-plum .ch:hover { border-color: var(--plum-ink); background: rgba(255, 255, 255, .06); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(246, 243, 239, .9); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__word { font: italic 300 2rem/1 var(--f-display); font-stretch: 62.5%; letter-spacing: .01em; }
.logo__sub { font: 500 .625rem/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); display: none; }
@media (min-width: 1100px) { .logo__sub { display: inline; } }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a { position: relative; display: inline-block; padding: 10px 0; font-size: .9375rem; text-decoration: none; color: var(--ink-2); transition: color .3s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-cta { display: flex; align-items: center; gap: 8px; }
.head-cta .btn { min-height: 44px; padding: 0 18px; font-size: .75rem; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; }
.burger span { display: block; width: 18px; height: 1px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.burger[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { content: ""; display: block; width: 18px; height: 1px; background: var(--ink); transform: rotate(-90deg); }
@media (min-width: 900px) { .nav { display: block; } .burger { display: none; } }
@media (max-width: 899px) { .head-cta .btn { padding: 0 14px; } }
@media (max-width: 359px) { .head-cta .btn { display: none; } }

.mnav { position: fixed; inset: var(--head-h) 0 0; z-index: 49; background: var(--bg); padding: 28px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.mnav[hidden] { display: none; }
.mnav__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 300 2.4rem/1 var(--f-display); font-stretch: var(--stretch); }
.mnav__list a span { font: 400 .75rem/1 var(--f-body); letter-spacing: .14em; color: var(--ink-3); }
.mnav__list a[aria-current="page"] { color: var(--plum); }

/* ---------- hero (veil lifts on load) ---------- */
.hero { position: relative; min-height: clamp(560px, calc(100svh - var(--head-h) - 34px), 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--bg-2); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 72% 42%; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(246, 243, 239, .9) 0%, rgba(246, 243, 239, .62) 32%, rgba(246, 243, 239, 0) 62%),
    linear-gradient(180deg, rgba(246, 243, 239, .5) 0%, rgba(246, 243, 239, 0) 22%); }
.hero__veil { position: absolute; left: -4%; right: -4%; top: -6%; height: 118%; z-index: 2; pointer-events: none; display: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .0) 1.3px, rgba(255, 255, 255, .55) 1.7px, rgba(255, 255, 255, 0) 2.3px) 0 0 / 5px 5px,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .0) 1.3px, rgba(255, 255, 255, .4) 1.7px, rgba(255, 255, 255, 0) 2.3px) 2.5px 2.5px / 5px 5px,
    linear-gradient(97deg, rgba(246, 243, 239, .86) 0%, rgba(250, 248, 244, .74) 28%, rgba(240, 234, 226, .82) 47%, rgba(250, 248, 244, .7) 70%, rgba(246, 243, 239, .86) 100%);
  backdrop-filter: blur(16px) saturate(.85); -webkit-backdrop-filter: blur(16px) saturate(.85);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, .55) 92%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, .55) 92%, transparent 100%);
  transform-origin: 50% 0; }
.hero__veil::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(98deg, rgba(255, 255, 255, 0) 0 70px, rgba(255, 255, 255, .22) 110px, rgba(255, 255, 255, 0) 160px); mix-blend-mode: soft-light; }
.hero__inner { position: relative; z-index: 3; padding-block: clamp(28px, 5vw, 64px); display: grid; gap: clamp(20px, 3vw, 36px); }
.hero__kicker { color: var(--ink-2); }
.hero__title { font-size: var(--t-hero); line-height: .9; color: var(--ink); }
@media (min-aspect-ratio: 1001/1000) and (min-width: 768px) { .hero__title .ln { white-space: nowrap; } }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .ln > span { display: block; }
.hero__title em { color: var(--plum); }
.hero__foot { display: grid; gap: 22px; max-width: 560px; }
.hero__lead { margin: 0; font-size: 1.0625rem; color: var(--ink-2); max-width: 40ch; }
.hero__cap { position: absolute; right: var(--gutter); bottom: clamp(28px, 5vw, 64px); z-index: 3; margin: 0; max-width: 24ch; text-align: right; font-size: .8125rem; line-height: 1.45; color: rgba(38, 32, 28, .8); display: none; }
.hero__cap b { display: block; font: 500 var(--t-label)/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
@media (min-width: 1100px) { .hero__cap { display: block; background: rgba(246, 243, 239, .72); padding: 12px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }
/* portrait screens (phones, tablets upright): portrait crop, text sits low over the skirt */
@media (max-aspect-ratio: 1/1) {
  .hero { min-height: min(calc(100svh - var(--head-h) - 34px), 1100px); }
  .hero__media img { object-position: 50% 22%; }
  .hero__shade { background: linear-gradient(180deg, rgba(246, 243, 239, 0) 30%, rgba(246, 243, 239, .62) 48%, rgba(246, 243, 239, .9) 66%, rgba(246, 243, 239, .97) 100%); }
  .hero__kicker { display: none; }
  .hero__title { font-size: clamp(3rem, 13.5vw, 7rem); }
  .hero__lead { font-size: 1rem; }
  .hero__inner { gap: 18px; }
}
@media (max-width: 767px) { .hero { min-height: calc(100svh - var(--head-h) - 40px); } }

/* JS choreography: veil covers the photo, then lifts like tulle; the title rises after */
.js .hero__veil { display: block; }
.js .hero:not(.is-lifted) .hero__title .ln > span { transform: translate3d(0, 105%, 0); }
.js .hero:not(.is-lifted) .hero__kicker,
.js .hero:not(.is-lifted) .hero__foot,
.js .hero:not(.is-lifted) .hero__cap { opacity: 0; transform: translate3d(0, 14px, 0); }
.js .hero .hero__title .ln > span { transition: transform 1.25s var(--ease); }
.js .hero .hero__title .ln:nth-child(1) > span { transition-delay: 1.05s; }
.js .hero .hero__title .ln:nth-child(2) > span { transition-delay: 1.17s; }
.js .hero .hero__title .ln:nth-child(3) > span { transition-delay: 1.29s; }
.js .hero .hero__kicker, .js .hero .hero__foot, .js .hero .hero__cap { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero .hero__kicker { transition-delay: .9s; }
.js .hero .hero__foot { transition-delay: 1.55s; }
.js .hero .hero__cap { transition-delay: 1.8s; }
.js .hero .hero__media img { transform: scale(1.06); transition: transform 3.6s var(--ease); }
.js .hero.is-lifted .hero__media img { transform: scale(1); }
.js .hero.is-lifted .hero__veil { animation: veil-lift 2.5s var(--veil-ease) .15s forwards; }
@keyframes veil-lift {
  0%   { transform: translate3d(0, 0, 0) skewY(0deg) scaleY(1); opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: translate3d(0, -104%, 0) skewY(-2.5deg) scaleY(.82); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__veil { display: none; }
  .js .hero .hero__title .ln > span, .js .hero .hero__kicker, .js .hero .hero__foot, .js .hero .hero__cap, .js .hero .hero__media img { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------- intro / manifesto ---------- */
.intro__label { grid-column: 1 / -1; margin-bottom: 20px; }
.intro__text { grid-column: 1 / -1; max-width: 26ch; font-size: clamp(1.9rem, 3.9vw, 3.8rem); line-height: 1.06; }
.intro__text em { color: var(--plum); }
.intro__side { grid-column: 1 / -1; margin-top: 28px; color: var(--ink-2); max-width: 46ch; }
@media (min-width: 960px) {
  .intro__label { grid-column: 1 / 4; padding-top: .9em; margin-bottom: 0; }
  .intro__text { grid-column: 4 / 13; }
  .intro__side { grid-column: 4 / 9; }
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 104px); }
.facts__item { padding: 22px 16px 6px 0; border-bottom: 1px solid var(--line); }
.facts__item:nth-child(odd) { border-right: 1px solid var(--line); }
.facts__item:nth-child(even) { padding-left: 16px; }
.facts__val { margin: 0 0 8px; font: 300 clamp(2.4rem, 4.6vw, 4.2rem)/1 var(--f-display); font-stretch: var(--stretch); }
.facts__val small { font-size: .42em; font-style: italic; margin-left: .2em; letter-spacing: 0; }
.facts__lbl { margin: 0 0 16px; font-size: var(--t-small); color: var(--ink-3); max-width: 24ch; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item { padding: 28px 24px 8px; border-right: 1px solid var(--line); }
  .facts__item:first-child { padding-left: 0; }
  .facts__item:last-child { border-right: 0; }
  .facts__item:nth-child(even) { padding-left: 24px; }
}

/* ---------- horizontal diary of one dress ---------- */
.diary { background: var(--bg-2); padding-top: var(--section); padding-bottom: calc(var(--section) * .6); }
.diary__stage { position: relative; }
.diary__pin { position: relative; }
.diary__rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(18px, 2.4vw, 32px); }
@media (max-width: 599px) { .diary__rail { grid-template-columns: auto auto; justify-content: space-between; } .diary__rail .thread { grid-column: 1 / -1; grid-row: 2; } }
.diary__counter { display: grid; gap: 4px; min-width: 10ch; }
.diary__counter .label { color: var(--ink-3); }
.diary__day { font: italic 300 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--f-display); font-stretch: var(--stretch); font-variant-numeric: tabular-nums lining-nums; color: var(--plum); }
.thread { position: relative; height: 44px; margin-inline: 10px; }
.thread__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--champagne-deep) 0 7px, transparent 7px 12px); }
.thread__done { position: absolute; left: 0; top: calc(50% - .5px); height: 2px; width: calc(var(--p, 0) * 100%); background: var(--plum); transition: width .2s linear; }
.thread__needle { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 2px; height: 26px; background: var(--plum); transform: translate(-1px, -50%); transition: left .2s linear; }
.thread__needle::after { content: ""; position: absolute; left: -3px; top: -6px; width: 8px; height: 8px; border: 1.5px solid var(--plum); border-radius: 50%; background: var(--bg-2); }
.thread__ticks { position: absolute; inset: 0; }
.thread__tick { position: absolute; top: 50%; left: var(--x); transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.thread__tick::before { content: ""; width: 9px; height: 9px; background: var(--bg-2); border: 1px solid var(--ink-3); transform: rotate(45deg); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.thread__tick.is-past::before { background: var(--plum); border-color: var(--plum); }
.thread__tick span { position: absolute; top: 34px; font-size: .6875rem; letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; }
.thread__scale { display: flex; justify-content: space-between; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; grid-column: 2; }

.diary__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.diary__viewport::-webkit-scrollbar { display: none; }
.diary__track { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 56px); width: max-content; padding-bottom: 8px; }
.diary__track::after { content: ""; flex: 0 0 1px; }
.entry { --mh: min(78vw, 400px); flex: 0 0 auto; width: min(80vw, 340px); scroll-snap-align: start; display: grid; gap: 18px; }
.entry__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.entry__media img { width: 100%; height: 100%; object-fit: cover; }
.entry__meta { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.entry__day { font: italic 300 2.2rem/1 var(--f-display); font-stretch: var(--stretch); color: var(--plum); }
.entry__date { font-size: .8125rem; color: var(--ink-3); letter-spacing: .04em; }
.entry__title { font-size: var(--t-h4); margin-bottom: -4px; }
.entry__text { margin: 0; font-size: var(--t-small); color: var(--ink-2); }
.entry__decision { margin: 0; padding: 10px 0 0 22px; position: relative; font-size: var(--t-small); line-height: 1.45; }
.entry__decision::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 1px; background: repeating-linear-gradient(90deg, var(--plum) 0 3px, transparent 3px 5px); }
.entry__decision b { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .6875rem; color: var(--plum); display: block; margin-bottom: 2px; }
.diary__hint { display: block; margin-top: 10px; font-size: .8125rem; letter-spacing: .04em; color: var(--ink-3); }
.diary__nav { display: flex; gap: 8px; }
.diary__nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; transition: background-color .3s var(--ease); }
.diary__nav button:hover { background: var(--paper); }
.diary__nav svg { width: 18px; height: 18px; }

/* desktop: media has a fixed height, width follows its proportion (--ar) */
@media (min-width: 900px) {
  .entry { --mh: min(46vh, 440px); width: calc(var(--mh) * var(--ar, .8)); min-width: 300px; }
  .entry__media { aspect-ratio: auto; height: var(--mh); }
  .entry__text, .entry__decision { max-width: 40ch; }
}
/* pinned mode (JS on wide screens): vertical scroll drives the track sideways */
.diary.is-pinned .diary__pin { position: sticky; top: var(--head-h); height: calc(100svh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 16px; }
.diary.is-pinned .diary__viewport { overflow: visible; scroll-snap-type: none; }
.diary.is-pinned .diary__track { will-change: transform; }
.diary.is-pinned .entry { --mh: clamp(200px, calc(100svh - var(--head-h) - 440px), 440px); gap: 14px; }
@media (max-height: 820px) { .diary.is-pinned .entry__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

/* craft illustrations inside entries */
/* the lined note scales with its card (container units), so all six lines fit at any card height */
.entry__media:has(.note) { container-type: size; }
.note { width: 100%; height: 100%; padding: 24px 18px 16px 44px; background:
    linear-gradient(90deg, transparent 32px, rgba(74, 44, 58, .35) 32px 33px, transparent 33px),
    repeating-linear-gradient(180deg, transparent 0 calc(1.6em - 1px), rgba(38, 32, 28, .12) calc(1.6em - 1px) 1.6em), #FBF8F1;
  background-position: 0 0, 0 calc(25px - .5em), 0 0; display: flex; flex-direction: column; gap: 0; font-family: var(--f-display); font-style: italic; font-weight: 300; font-stretch: 85%; font-size: clamp(.875rem, 4.5cqh, 1.25rem); line-height: 1.6em; color: #3B3330; }
.note p { margin: 0; hyphens: manual; -webkit-hyphens: manual; }
.note .note__h { font-family: var(--f-body); font-style: normal; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.note s { text-decoration-color: var(--plum); }
.note mark { background: linear-gradient(transparent 58%, rgba(217, 199, 167, .7) 58%); color: inherit; }

.sketch { width: 100%; height: 100%; background: #FBF8F1; }
.sketch svg { width: 100%; height: 100%; }
.sk-line { fill: none; stroke: #3B3330; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.sk-soft { fill: none; stroke: #8E847B; stroke-width: .8; stroke-linecap: round; }
.sk-lace { fill: none; stroke: #8E847B; stroke-width: .7; }
.sk-dim { fill: none; stroke: var(--plum); stroke-width: .8; stroke-dasharray: 3 3; }
.sk-txt { font: italic 300 11px var(--f-display); fill: var(--plum); }
.sk-txt--ink { fill: #6B625A; font-style: normal; font-family: var(--f-body); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.js .entry.is-in .sk-draw { animation: sk-draw 2.6s var(--ease-io) forwards; }
.js .sk-draw { stroke-dasharray: 900; stroke-dashoffset: 0; }
.js .entry:not(.is-in) .sk-draw { stroke-dashoffset: 900; }
@keyframes sk-draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }

.calico { position: relative; width: 100%; height: 100%; background:
    repeating-linear-gradient(0deg, rgba(120, 100, 70, .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 100, 70, .06) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 30% 20%, #F3EBDD, #E6DAC4); }
.calico svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.calico__notes { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; }
.calico__notes p { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: rgba(251, 249, 246, .88); font-size: .8125rem; line-height: 1.3; }
.calico__notes b { font-weight: 500; color: var(--plum); white-space: nowrap; }

.quote-card { width: 100%; height: 100%; padding: clamp(22px, 2.4vw, 32px); background: var(--plum); color: var(--plum-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote-card blockquote { margin: 0; font: italic 300 clamp(1.45rem, 2vw, 1.9rem)/1.15 var(--f-display); font-stretch: 80%; color: var(--champagne-2); }
.quote-card p { margin: 0; font-size: .8125rem; color: rgba(244, 236, 238, .75); letter-spacing: .04em; }
.quote-card svg { width: 46px; height: 30px; color: var(--champagne); }

/* ---------- wedding calendar (signature) ---------- */
.wc { display: grid; gap: clamp(28px, 4vw, 48px); }
.wc__form { display: grid; gap: 16px; align-items: end; }
.wc__field { display: grid; gap: 8px; }
.wc__field label { font: 500 var(--t-label)/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 236, 238, .72); }
.wc__date { min-height: 56px; padding: 0 16px; border: 1px solid rgba(244, 236, 238, .38); background: rgba(255, 255, 255, .04); color: var(--plum-ink); font: 300 1.5rem/1 var(--f-display); font-stretch: 85%; color-scheme: dark; border-radius: 0; width: 100%; }
.wc__date:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.wc__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.wc__quick button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(244, 236, 238, .26); background: transparent; color: rgba(244, 236, 238, .86); font-size: .875rem; }
.wc__quick button:hover, .wc__quick button[aria-pressed="true"] { border-color: var(--champagne); color: var(--champagne-2); }
@media (min-width: 760px) { .wc__form { grid-template-columns: minmax(240px, 340px) auto; } .wc__quick { align-self: center; } }

.wc__out { border-top: 1px solid var(--plum-line); padding-top: clamp(24px, 3vw, 36px); display: grid; gap: clamp(24px, 3vw, 40px); }
.verdict { display: grid; gap: 10px; max-width: 760px; }
.verdict__badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid currentColor; font: 500 .75rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ok-light); }
.verdict__badge::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.verdict[data-level="tight"] .verdict__badge { color: var(--champagne); }
.verdict[data-level="urgent"] .verdict__badge { color: var(--warn-light); }
.verdict[data-level="ready"] .verdict__badge, .verdict[data-level="late"] .verdict__badge { color: var(--rose-light); }
.verdict__title { font-size: var(--t-h3); color: var(--plum-ink); }
.verdict__text { margin: 0; color: rgba(244, 236, 238, .84); max-width: 60ch; }

/* stitched timeline: proportional on desktop, vertical list on mobile */
.tl { position: relative; }
.tl__list { display: grid; gap: 0; position: relative; padding-left: 26px; }
.tl__list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: repeating-linear-gradient(180deg, var(--champagne) 0 6px, transparent 6px 11px); }
.tl__node { position: relative; padding: 0 0 18px; display: grid; gap: 2px; }
.tl__node::before { content: ""; position: absolute; left: -24px; top: 6px; width: 9px; height: 9px; background: var(--plum); border: 1px solid var(--champagne); transform: rotate(45deg); }
.tl__node--key::before { background: var(--champagne); }
.tl__node--wed::before { width: 13px; height: 13px; left: -26px; top: 4px; background: var(--plum-ink); border-color: var(--plum-ink); border-radius: 50%; transform: none; }
.tl__node--past { opacity: .45; }
.tl__node--today::before { background: transparent; border-style: dashed; }
.tl__date { font: italic 300 1.3rem/1.1 var(--f-display); font-stretch: 80%; color: var(--champagne-2); }
.tl__name { margin: 0; font-weight: 500; font-size: .9375rem; color: var(--plum-ink); }
.tl__note { margin: 0; font-size: .8125rem; color: rgba(244, 236, 238, .68); }
@media (min-width: 900px) {
  .tl { padding: 92px 0 96px; }
  .tl__list { display: block; height: 2px; padding: 0; }
  .tl__list::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--champagne) 0 8px, transparent 8px 13px); }
  .tl__node { position: absolute; left: var(--x); top: 0; width: 0; padding: 0; }
  .tl__node::before { left: -5px; top: -5px; }
  .tl__node--wed::before { left: -7px; top: -6px; }
  .tl__node > div { position: absolute; left: 0; width: max-content; max-width: 170px; transform: translateX(-50%); text-align: center; }
  .tl__node[data-side="up"] > div { bottom: 18px; }
  .tl__node[data-side="down"] > div { top: 18px; }
  .tl__node[data-align="start"] > div { transform: translateX(-12px); text-align: left; }
  .tl__node[data-align="end"] > div { transform: translateX(calc(-100% + 12px)); text-align: right; }
  .tl__node::after { content: ""; position: absolute; left: 0; width: 1px; background: rgba(217, 199, 167, .45); }
  .tl__node[data-side="up"]::after { bottom: 6px; height: 10px; }
  .tl__node[data-side="down"]::after { top: 6px; height: 10px; }
  .tl__bar { position: absolute; left: 0; top: 91px; height: 3px; width: var(--w, 0%); background: linear-gradient(90deg, rgba(217, 199, 167, .0), rgba(217, 199, 167, .55)); }
}
.tl__bar { display: none; }
@media (min-width: 900px) { .tl__bar { display: block; } }
/* full mode (calendar.html): the plan as a plain list under the timeline */
.wc__steps { display: grid; border-top: 1px solid var(--plum-line); }
.wc__steps li { padding: 10px 0; border-bottom: 1px solid var(--plum-line); font-size: var(--t-small); color: rgba(244, 236, 238, .86); }
.wc__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wc__aside { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--plum-line); }
.wc__aside p { margin: 0; font-size: var(--t-small); color: rgba(244, 236, 238, .78); }
@media (min-width: 960px) { .wc__grid { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: start; } .wc__aside { border-top: 0; border-left: 1px solid var(--plum-line); padding: 0 0 0 32px; } }

/* ---------- looks: editorial index with a single preview ---------- */
.looks { position: relative; display: grid; }
.look { border-top: 1px solid var(--line); }
.look:last-child { border-bottom: 1px solid var(--line); }
.look__a { display: grid; grid-template-columns: 92px 1fr; gap: 6px 18px; padding: 16px 0; text-decoration: none; color: inherit; align-items: center; }
.look__no { display: none; font: italic 300 1.4rem/1 var(--f-display); font-stretch: var(--stretch); color: var(--ink-3); }
.look__media { grid-row: span 3; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.look__media img { width: 100%; height: 100%; object-fit: cover; }
.look__name { font: 300 clamp(2rem, 4.6vw, 4.6rem)/.95 var(--f-display); font-stretch: var(--stretch); transition: color .35s var(--ease), transform .6s var(--ease); }
.look__desc { font-size: var(--t-small); line-height: 1.45; color: var(--ink-3); max-width: 46ch; }
.look__meta { display: flex; gap: 16px; font-size: .875rem; align-items: baseline; flex-wrap: wrap; }
.look__price { font-weight: 500; }
.look__term { color: var(--ink-3); }
.look__a:hover .look__name, .look__a:focus-visible .look__name { color: var(--plum); }
.looks__stage { display: none; }
@media (min-width: 960px) {
  .looks { grid-template-columns: 7fr 5fr; column-gap: clamp(32px, 5vw, 96px); align-items: start; }
  .look__a { grid-template-columns: 52px 1fr auto; column-gap: 24px; row-gap: 8px; padding: 24px 0; }
  .look__no { display: block; grid-row: span 2; align-self: start; padding-top: .55em; }
  .look__media { display: none; }
  .look__name { grid-column: 2; }
  .look__desc { grid-column: 2; }
  .look__meta { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; align-self: center; }
  .look.is-active .look__name { color: var(--plum); transform: translateX(12px); }
  .look.is-active .look__no { color: var(--plum); }
  html:not(.js) .look__a { grid-template-columns: 52px 92px 1fr auto; }
  html:not(.js) .look__media { display: block; grid-row: span 2; }
  html:not(.js) .look__name, html:not(.js) .look__desc { grid-column: 3; }
  html:not(.js) .look__meta { grid-column: 4; }
  .js .looks__stage { display: block; position: sticky; top: calc(var(--head-h) + 24px); aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
  .looks__stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
  .looks__stage figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.6s var(--ease); }
  .looks__stage figure.is-on { opacity: 1; }
  .looks__stage figure.is-on img { transform: scale(1); }
  .looks__stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(38, 32, 28, .62), rgba(38, 32, 28, 0)); color: #fff; font-size: .8125rem; letter-spacing: .04em; }
  .looks__stage figcaption b { font: italic 300 1.5rem/1 var(--f-display); font-stretch: var(--stretch); letter-spacing: 0; }
}

/* ---------- fabrics & lace library ---------- */
.fabrics { display: grid; gap: clamp(24px, 4vw, 56px); }
.fab-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fab-btn { display: grid; gap: 10px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: inherit; }
.fab-btn__chip { display: block; aspect-ratio: 1; width: 100%; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.fab-btn__name { font-size: .875rem; line-height: 1.25; font-weight: 500; }
.fab-btn__price { display: block; font-size: .75rem; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.fab-btn:hover .fab-btn__chip { transform: translateY(-3px); }
.fab-btn[aria-pressed="true"] { border-bottom-color: var(--plum); }
.fab-btn[aria-pressed="true"] .fab-btn__chip { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--plum); }
@media (min-width: 700px) { .fab-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fab-panel { display: grid; gap: clamp(20px, 3vw, 48px); }
.fab-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.fab-view > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab-view img { object-fit: cover; }
.fab-view [data-fab-view] { opacity: 0; transition: opacity .6s var(--ease); }
.fab-view [data-fab-view].is-on { opacity: 1; }
.no-js-fab .fab-view [data-fab-view]:first-child { opacity: 1; }
.fab-info { display: grid; gap: 18px; align-content: start; }
.fab-info__name { font-size: var(--t-h3); }
.fab-info__lead { margin: 0; color: var(--ink-2); max-width: 46ch; }
.spec { display: grid; border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.spec__row dt { color: var(--ink-3); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding-top: .2em; }
.spec__row dd { margin: 0; }
@media (min-width: 900px) { .fab-panel { grid-template-columns: 5fr 6fr; align-items: start; } .fab-view { aspect-ratio: 4 / 5; } }
/* CSS cloth textures (also used as chips) */
.tex { background-color: #F4EFE6; }
.tex--tulle { background:
    radial-gradient(circle at 50% 50%, transparent 1.6px, rgba(118, 104, 92, .26) 2px, transparent 2.6px) 0 0 / 7px 7px,
    radial-gradient(circle at 50% 50%, transparent 1.6px, rgba(118, 104, 92, .2) 2px, transparent 2.6px) 3.5px 3.5px / 7px 7px,
    linear-gradient(115deg, #F8F5F0 0%, #ECE5DA 35%, #F9F7F2 55%, #E7DED1 80%, #F6F2EB 100%); }
.tex--mikado { background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 3px),
    linear-gradient(118deg, #E9E0CF 0%, #FAF6EE 22%, #DCCFB7 46%, #F6F0E3 64%, #E3D7C1 82%, #F3ECDD 100%); }
.tex--chantilly { background-color: #F6F1E8; background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23857869' stroke-width='.7' opacity='.75'%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3Cpath d='M28 24c-3-6-1-11 0-13 1 2 3 7 0 13zM32 28c6-3 11-1 13 0-2 1-7 3-13 0zM28 32c3 6 1 11 0 13-1-2-3-7 0-13zM24 28c-6 3-11 1-13 0 2-1 7-3 13 0z'/%3E%3Cpath d='M0 0c6 4 8 8 6 14M56 0c-6 4-8 8-6 14M0 56c6-4 8-8 6-14M56 56c-6-4-8-8-6-14' /%3E%3C/g%3E%3Cg fill='%23857869' opacity='.18'%3E%3Ccircle cx='14' cy='14' r='.8'/%3E%3Ccircle cx='42' cy='14' r='.8'/%3E%3Ccircle cx='14' cy='42' r='.8'/%3E%3Ccircle cx='42' cy='42' r='.8'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 50%, transparent 1.2px, rgba(118, 104, 92, .14) 1.5px, transparent 2px);
  background-size: 56px 56px, 5px 5px; }
.tex--atlas { background: linear-gradient(125deg, #F2F2F0 0%, #FFFFFF 26%, #D9D9D6 44%, #FAFAF8 60%, #E4E3DF 82%, #F7F7F5 100%); }
.tex--krep { background: linear-gradient(130deg, #EDE6D6 0%, #F7F2E6 30%, #DED3BD 55%, #F2ECDD 80%, #E6DCC8 100%); }
.tex--rishelye { background: radial-gradient(circle at 50% 50%, #F2F0EB 0 26%, transparent 27%) 0 0 / 22px 22px, radial-gradient(circle at 50% 50%, #CFCBC2 0 32%, transparent 33%) 0 0 / 22px 22px, #E6E3DC; }

/* ---------- price: receipt + ready band ---------- */
.price { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 1000px) { .price { grid-template-columns: 7fr 5fr; align-items: start; } }
.receipt { position: relative; background: var(--paper); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(38, 32, 28, .25); }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 5px 0, transparent 4px, var(--paper) 4.5px) 0 0 / 10px 10px repeat-x; }
.receipt::before { top: -10px; transform: scaleY(-1); }
.receipt::after { bottom: -10px; }
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 8px; flex-wrap: wrap; }
.receipt__title { font-size: var(--t-h3); }
.receipt__list { display: grid; }
.rline { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rline__name { position: relative; }
.rline__name small { display: block; font-size: .8125rem; color: var(--ink-3); margin-top: 2px; }
.rline__val { font-size: .875rem; white-space: nowrap; color: var(--ok); font-weight: 500; letter-spacing: .02em; }
.rline__val--extra { color: var(--ink); font-weight: 400; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.receipt__sum { font: 300 clamp(2.4rem, 4.4vw, 3.8rem)/1 var(--f-display); font-stretch: var(--stretch); }
.receipt__sub { margin: 26px 0 6px; }
.receipt__note { margin: 18px 0 0; font-size: .8125rem; color: var(--ink-3); }
.ready { display: grid; gap: 22px; }
.ready__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.ready__media img { width: 100%; height: 100%; object-fit: cover; }
.ready__title { font-size: var(--t-h3); }
.ready__list { display: grid; border-top: 1px solid var(--line); }
.ready__list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.ready__list li span:last-child { color: var(--ink-3); text-align: right; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: clamp(48px, 6vw, 88px); }
.review { display: grid; gap: 18px; max-width: 760px; }
.review__text { margin: 0; font: italic 300 clamp(1.6rem, 2.8vw, 2.6rem)/1.12 var(--f-display); font-stretch: 80%; text-wrap: pretty; }
.review__who { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: .875rem; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line); }
.review__who b { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) {
  .review:nth-child(2) { justify-self: end; }
  .review:nth-child(3) { margin-left: 12%; }
}

/* ---------- contacts & map ---------- */
.visit { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .visit { grid-template-columns: 7fr 5fr; align-items: start; } }
.map { position: relative; margin: 0; background: #EFE9E0; border: 1px solid var(--line); overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); background: var(--paper); flex-wrap: wrap; }
.m-water { fill: #CFD5D3; }
.m-park { fill: #DCE0CF; }
.m-block { fill: #E6DFD3; }
.m-road { fill: none; stroke: #FBF9F6; stroke-linecap: round; }
.m-road--main { stroke-width: 15; }
.m-road--mid { stroke-width: 9; }
.m-road--small { stroke-width: 5; }
.m-label { font: 500 10px var(--f-body); letter-spacing: .12em; text-transform: uppercase; fill: #7C746B; }
.m-label--water { fill: #6E7E7B; font-style: italic; text-transform: none; letter-spacing: .04em; font-family: var(--f-display); font-size: 15px; font-weight: 300; }
.m-walk { fill: none; stroke: var(--plum); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.m-pin circle { fill: var(--plum); }
.m-pin .m-pin__halo { fill: rgba(74, 44, 58, .16); transform-origin: center; transform-box: fill-box; }
.js .m-pin__halo { animation: halo 2.8s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .m-pin__halo { animation: none; } }
.m-tag rect { fill: var(--ink); }
.m-tag text { font: 500 11px var(--f-body); fill: var(--bg); letter-spacing: .04em; }
.m-metro text { font: 600 10px var(--f-body); fill: #fff; }
.m-metro circle { fill: #8E2A3E; }

.addr { display: grid; gap: 22px; }
.addr__street { font: 300 var(--t-h3)/1.08 var(--f-display); font-stretch: 80%; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.is-open { color: var(--ok); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(78, 106, 76, .16); }
.status.is-closed { color: var(--plum); }
.status.is-closed::before { background: var(--plum); }
.hours { display: grid; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.hours li.is-today { font-weight: 500; color: var(--plum); }
.hours li.is-today span:first-child::after { content: " · сегодня"; font-weight: 400; color: var(--ink-3); }
.phone { font: 300 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--f-display); font-stretch: 80%; text-decoration: none; color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.phone:hover { color: var(--plum); }
.addr__note { margin: 0; padding: 16px 18px; background: var(--paper); border-left: 2px solid var(--champagne-deep); font-size: var(--t-small); color: var(--ink-2); }

/* ---------- forms ---------- */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 7px; }
.field label, .field__label { font: 500 var(--t-label)/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 0; font-size: 1rem; transition: border-color .3s var(--ease); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--plum); outline-offset: 0; border-color: var(--plum); }
.form__two { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__two { grid-template-columns: 1fr 1fr; } }
.step { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.step legend { display: flex; align-items: baseline; gap: 12px; float: left; width: 100%; margin-bottom: 4px; font: 300 1.6rem/1 var(--f-display); font-stretch: 80%; }
.step legend span { font: italic 300 1rem/1 var(--f-display); color: var(--plum); }
.step legend + * { clear: both; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; min-width: 64px; padding: 6px 14px; border: 1px solid var(--line-strong); background: var(--paper); font-size: .875rem; line-height: 1.2; text-align: center; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.pill span small { font-size: .6875rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.pill input:hover + span { border-color: var(--ink); }
.pill input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--plum-ink); }
.pill input:checked + span small { color: rgba(244, 236, 238, .75); }
.pill input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.pill input:disabled { cursor: not-allowed; }
.pill input:disabled + span { color: var(--muted); border-style: dashed; background: transparent; text-decoration: line-through; text-decoration-color: var(--line-strong); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); }
.check a { color: var(--ink); }
.form__note { margin: 0; font-size: .8125rem; color: var(--ink-3); }

/* ---------- booking drawer ---------- */
.drawer { background: var(--paper); padding-block: var(--section); }
.drawer__panel { max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }
.drawer__head { display: grid; gap: 12px; margin-bottom: 18px; position: relative; }
.drawer__close { display: none; }
.drawer__intro { color: var(--ink-2); margin-bottom: 26px; }
.drawer__plan { padding: 12px 14px; background: var(--bg); border-left: 2px solid var(--plum); }
.drawer__plan .input { border: 0; background: transparent; padding: 0; min-height: 0; font-size: .875rem; }
.drawer__plan[hidden] { display: none; }
.js .drawer { position: fixed; inset: 0; z-index: 90; padding: 0; background: rgba(38, 32, 28, .38); display: flex; justify-content: flex-end; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.js .drawer.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease), visibility 0s; }
.js .drawer__panel { width: min(560px, 100%); max-width: none; height: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 28px clamp(18px, 3vw, 40px) 40px; transform: translate3d(100%, 0, 0); transition: transform .6s var(--ease-io); box-shadow: -30px 0 80px -40px rgba(38, 32, 28, .4); }
.js .drawer.is-open .drawer__panel { transform: none; }
.js .drawer__close { display: grid; place-items: center; position: absolute; right: -8px; top: -8px; width: 48px; height: 48px; border: 0; background: transparent; }
.js .drawer__close svg { width: 22px; height: 22px; }
.js .drawer__close:hover { color: var(--plum); }
@media (prefers-reduced-motion: reduce) { .js .drawer, .js .drawer__panel { transition: none; } }
.drawer__done { display: grid; gap: 10px; }

/* ---------- sticky mobile CTA ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-strong); border-top: 1px solid var(--line-strong); transform: translate3d(0, 110%, 0); transition: transform .5s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.mbar.is-on { transform: none; }
.mbar a { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 12px; text-decoration: none; font: 500 .8125rem/1.1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: var(--bg); color: var(--ink); }
.mbar a:last-child { background: var(--plum); color: var(--plum-ink); }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { .site-foot { padding-bottom: 72px; } }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(246, 243, 239, .78); padding-top: clamp(64px, 8vw, 120px); font-size: var(--t-small); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--champagne); }
.site-foot :focus-visible { outline-color: var(--champagne); }
.foot__big { font: italic 300 clamp(4.5rem, 16vw, 15rem)/.8 var(--f-display); font-stretch: 62.5%; color: var(--bg); letter-spacing: -.01em; margin: 0 0 clamp(40px, 6vw, 80px); }
.foot__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 48px; border-bottom: 1px solid rgba(246, 243, 239, .14); }
.foot__grid h2 { font: 500 var(--t-label)/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 243, 239, .5); margin-bottom: 14px; }
.foot__grid li { margin-bottom: 8px; }
.foot__grid li a { display: inline-block; padding: 3px 0; }
@media (max-width: 899px) { .foot__grid li { margin-bottom: 0; } .foot__grid li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; } .link--arrow { display: inline-block; padding-block: 10px; } }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; font-size: .8125rem; color: rgba(246, 243, 239, .5); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: var(--t-h2); margin: 16px 0 28px; }
.legal h2 { font-size: var(--t-h4); margin: 40px 0 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.legal ul li { padding-left: 20px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--champagne-deep); }
.legal__demo { padding: 14px 16px; background: var(--paper); border-left: 2px solid var(--plum); font-size: var(--t-small); }

/* ---------- reveal helpers on top of motion-lite ---------- */
.ml-ready .frame-reveal { overflow: hidden; }
.ml-ready [data-reveal="veil"] { opacity: 1 !important; position: relative; }
.ml-ready [data-reveal="veil"]::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bg); transform-origin: 50% 0; transition: transform 1.3s var(--veil-ease); pointer-events: none; }
.section--linen.ml-ready [data-reveal="veil"]::after, .ml-ready .section--linen [data-reveal="veil"]::after, .ml-ready .diary [data-reveal="veil"]::after { background: var(--bg-2); }
.ml-ready [data-reveal="veil"].is-in::after { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) { .ml-ready [data-reveal="veil"]::after { display: none; } }

/* =====================================================================
   Subpages: dresses.html, calendar.html, prices.html
   ===================================================================== */
/* long Russian words never break the layout */
p, li, dd, dt, b, blockquote, figcaption, .label, .rline__name, .tl__name, .tl__note, .look__desc, h1, h2, h3, h4 { overflow-wrap: break-word; }
@media (max-width: 759px) { p, li, dd, blockquote, figcaption, .rline__name, .tl__note, .look__desc, .ruler__seg b { hyphens: auto; -webkit-hyphens: auto; } }
@media (max-width: 420px) { .t-lead, .review__text { hyphens: auto; -webkit-hyphens: auto; } }
.chapter__no { white-space: nowrap; }
.ml-ready .section--paper [data-reveal="veil"]::after { background: var(--paper); }

/* page head: a diary page title */
.phead { padding-top: clamp(40px, 7vw, 112px); padding-bottom: clamp(48px, 7vw, 104px); }
.phead__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 56px); }
.phead__title { font-size: clamp(2.6rem, 9vw, 8.6rem); line-height: .92; }
@media (min-width: 760px) { .phead__title { max-width: 12ch; } }
.phead__title em { font-style: italic; color: var(--plum); }
.phead__row { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
.phead__lead { margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 1.0625rem; }
@media (min-width: 960px) { .phead__row { grid-template-columns: 7fr 5fr; column-gap: 48px; align-items: end; } .phead__row > :last-child { justify-self: end; } }

/* anchor index (dresses / prices) */
.dindex { display: grid; border-top: 1px solid var(--line-strong); margin-top: clamp(40px, 6vw, 80px); counter-reset: none; }
.dindex li { border-bottom: 1px solid var(--line); }
.dindex a { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 12px; align-items: baseline; min-height: 52px; padding: 12px 0; text-decoration: none; color: inherit; transition: color .3s var(--ease), padding .4s var(--ease); }
.dindex a:hover, .dindex a:focus-visible { color: var(--plum); padding-left: 8px; }
.dindex__no { font: italic 300 1.1rem/1 var(--f-display); color: var(--ink-3); }
.dindex__name { font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--f-display); font-stretch: var(--stretch); }
.dindex__meta { font-size: .875rem; color: var(--ink-3); text-align: right; white-space: nowrap; }
@media (min-width: 900px) { .dindex { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); } }

/* one dress = one story section */
.dress { padding-block: clamp(56px, 8vw, 128px); border-top: 1px solid var(--line); }
.dress__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
.dress__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); margin: 0; }
.dress__media img { width: 100%; height: 100%; object-fit: cover; }
.dress__media figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; background: rgba(246, 243, 239, .86); font-size: .75rem; letter-spacing: .08em; color: var(--ink-2); }
.dress__body { display: grid; gap: 22px; align-content: start; }
.dress__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.dress__name { font-size: clamp(3rem, 7vw, 6.6rem); line-height: .9; }
.dress__story { margin: 0; font: 300 clamp(1.3rem, 1.9vw, 1.75rem)/1.25 var(--f-display); font-stretch: 82%; max-width: 32ch; }
.dress__for { margin: 0; color: var(--ink-2); max-width: 52ch; }
.dress__change { margin: 0; padding: 14px 16px; background: var(--paper); border-left: 2px solid var(--champagne-deep); font-size: var(--t-small); color: var(--ink-2); }
.dress__change b { display: block; font-weight: 500; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: 4px; }
.dress .spec__row dd b { font-weight: 500; }
@media (min-width: 960px) {
  .dress__grid { grid-template-columns: 5fr 7fr; }
  .dress--flip .dress__media { order: 2; }
  .dress__media { position: sticky; top: calc(var(--head-h) + 24px); }
}

/* ways to order: three columns divided by hairlines (not cards) */
.ways { display: grid; border-top: 1px solid var(--line-strong); }
.ways li { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ways__no { font: italic 300 2.2rem/1 var(--f-display); font-stretch: var(--stretch); color: var(--plum); }
.ways h3 { font-size: var(--t-h4); }
.ways p { margin: 0; color: var(--ink-2); font-size: var(--t-small); max-width: 40ch; }
.ways__price { font-weight: 500; color: var(--ink) !important; }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ways li { padding: 32px 32px 32px 0; border-bottom: 0; } .ways li + li { padding-left: 32px; border-left: 1px solid var(--line); } }

/* plum band CTA */
.band { display: grid; gap: 24px; align-items: end; }
.band__title { font-size: var(--t-h3); max-width: 18ch; }
.band p { margin: 0; color: rgba(244, 236, 238, .82); max-width: 52ch; }
@media (min-width: 960px) { .band { grid-template-columns: 7fr 5fr; column-gap: 48px; } .band > :last-child { justify-self: end; } }

/* calendar.html: preparation for each visit (filled with real dates by JS) */
.prep { display: grid; border-top: 1px solid var(--line-strong); }
.prep__item { display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.prep__when { font: italic 300 1.5rem/1.1 var(--f-display); font-stretch: 80%; color: var(--plum); }
.prep__when small { display: block; font: 400 .75rem/1.4 var(--f-body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.prep__name { font-size: var(--t-h4); }
.prep__what { margin: 0; color: var(--ink-2); font-size: var(--t-small); max-width: 56ch; }
.prep__who { margin: 0; font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 900px) { .prep__item { grid-template-columns: 220px 1fr; } .prep__item > :not(.prep__when) { grid-column: 2; } .prep__when { grid-row: span 3; } }
.prep__item.is-off { display: none; }
.fallback { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); background: var(--paper); border-left: 2px solid var(--plum); }
.fallback h3 { font-size: var(--t-h3); }
.fallback p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.remind { display: grid; gap: 14px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.remind p { margin: 0; color: var(--ink-2); max-width: 56ch; }

/* calendar.html: sixteen-week ruler + stage table */
.ruler { --weeks: 16; margin-bottom: clamp(32px, 5vw, 64px); }
.ruler__bar { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.ruler__seg { position: relative; grid-column: span var(--span); min-height: 92px; padding: 12px 8px 10px; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--span) - 1px), var(--line) calc(100% / var(--span) - 1px) calc(100% / var(--span))); }
.ruler__seg:nth-child(even) { background-color: rgba(217, 199, 167, .18); }
.ruler__seg b { font-weight: 500; font-size: .8125rem; line-height: 1.2; }
.ruler__seg span { font: italic 300 1.05rem/1 var(--f-display); color: var(--plum); }
.ruler__seg--wed { background: var(--plum); color: var(--plum-ink); border-left-color: var(--plum); }
.ruler__seg--wed span { color: var(--champagne); }
.ruler__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 759px) {
  .ruler__bar { grid-template-columns: 1fr; border-top: 0; border-bottom: 0; }
  .ruler__seg { grid-column: auto; min-height: 0; flex-direction: row; align-items: baseline; padding: 12px 0 12px 14px; border-left: 3px solid var(--champagne-deep); border-bottom: 1px solid var(--line); background: none; }
  .ruler__seg:nth-child(even) { background: none; }
  .ruler__seg--wed { background: none; color: var(--plum); border-left-color: var(--plum); }
  .ruler__seg--wed span { color: var(--plum); }
  .ruler__scale { display: none; }
}
.stages { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.stages th, .stages td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.stages thead th { font: 500 var(--t-label)/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--line-strong); }
.stages td:first-child { font: italic 300 1.3rem/1.1 var(--f-display); color: var(--plum); white-space: nowrap; }
.stages td b { font-weight: 500; display: block; }
.stages td span { color: var(--ink-3); }
@media (max-width: 759px) {
  .stages thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stages, .stages tbody, .stages tr, .stages td { display: block; }
  .stages tr { display: grid; grid-template-columns: 3em 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .stages td { border: 0; padding: 2px 0; grid-column: 2; }
  .stages td:first-child { grid-column: 1; grid-row: span 4; }
  .stages td[data-th]::before { content: attr(data-th) " · "; color: var(--ink-3); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 300 clamp(1.35rem, 2.2vw, 1.9rem)/1.15 var(--f-display); font-stretch: 80%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--plum), var(--plum)) 50% 50% / 100% 1px no-repeat, linear-gradient(var(--plum), var(--plum)) 50% 50% / 1px 100% no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--plum); }
.faq__a { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* prices.html */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); text-decoration: none; font-size: .875rem; transition: border-color .3s var(--ease), color .3s var(--ease); }
.jump a:hover { border-color: var(--plum); color: var(--plum); }
.pricing { display: grid; gap: clamp(48px, 6vw, 96px); }
.receipts { display: grid; gap: clamp(48px, 5vw, 72px); }
.receipt { scroll-margin-top: calc(var(--head-h) + 24px); }
.receipt__lead { margin: 6px 0 4px; font-size: var(--t-small); color: var(--ink-2); max-width: 52ch; }
.receipt__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.swatch { display: grid; gap: 6px; font-size: .75rem; color: var(--ink-3); }
.swatch i { display: block; width: 52px; height: 52px; border: 1px solid var(--line); }
.side { display: grid; gap: 32px; align-content: start; }
.side h3 { font-size: var(--t-h4); margin-bottom: 12px; }
.pay { display: grid; border-top: 1px solid var(--line-strong); }
.pay li { display: grid; grid-template-columns: 3.4em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.pay li b { font: italic 300 1.6rem/1 var(--f-display); color: var(--plum); }
.pay li span { color: var(--ink-2); }
@media (min-width: 1000px) {
  .pricing { grid-template-columns: 8fr 4fr; align-items: start; }
  .side { position: sticky; top: calc(var(--head-h) + 32px); }
}
@media (max-width: 420px) {
  .rline { grid-template-columns: 1fr; gap: 2px; }
  .rline__val { justify-self: start; }
  .dindex a { grid-template-columns: 2.2em 1fr; }
  .dindex__meta { grid-column: 2; text-align: left; }
  .spec__row { grid-template-columns: 1fr; gap: 2px; }
}
.ruler { margin-inline: 0; margin-top: 0; }

/* ---------- dresses.html: a paper sketch pinned to the inner top corner of each photo ---------- */
.dress__sketch { position: absolute; z-index: 1; top: clamp(12px, 1.6vw, 22px); right: clamp(12px, 1.6vw, 22px); width: clamp(70px, 8.4vw, 116px); aspect-ratio: 3 / 5; margin: 0; background: #FBF8F1; border: 1px solid rgba(38, 32, 28, .1); box-shadow: 0 16px 28px -18px rgba(20, 14, 12, .55); transform: rotate(1.5deg); }
.dress--flip .dress__sketch { right: auto; left: clamp(12px, 1.6vw, 22px); transform: rotate(-1.5deg); }
.dress__sketch::before { content: ""; position: absolute; top: -7px; left: 50%; width: 34px; height: 12px; margin-left: -17px; background: rgba(217, 199, 167, .72); transform: rotate(-3deg); }
.dress__sketch svg { width: 100%; height: 100%; padding: 6px 4px 15px; }
.dress__media .dress__sketch figcaption { position: absolute; left: 0; right: 0; bottom: 4px; padding: 0; background: none; text-align: center; font: italic 300 .75rem/1 var(--f-display); letter-spacing: 0; color: var(--ink-3); }
.dress__sketch .sk-txt { font-size: 10px; }
.ml-ready .dress__media:not(.is-in) .sk-draw { stroke-dasharray: 900; stroke-dashoffset: 900; }
.ml-ready .dress__media.is-in .sk-draw { stroke-dasharray: 900; animation: sk-draw 2.6s var(--ease-io) .9s both; }
@media (prefers-reduced-motion: reduce) { .dress__sketch .sk-draw { animation: none !important; stroke-dashoffset: 0 !important; } }

/* ---------- dresses.html: cinematic interlude between dresses ---------- */
.interlude { position: relative; overflow: hidden; min-height: clamp(460px, 78vh, 820px); display: grid; align-items: end; background: var(--plum-deep); color: var(--plum-ink); }
.interlude__media { position: absolute; inset: -8% 0; }
.interlude__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .62; mix-blend-mode: luminosity; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 34, 45, .1) 30%, rgba(58, 34, 45, .82) 100%); pointer-events: none; }
.interlude__text { position: relative; z-index: 1; display: grid; gap: 22px; padding-block: clamp(56px, 8vw, 112px); }
.interlude .label { color: rgba(244, 236, 238, .75); }
.interlude .label--stitch::before { background: repeating-linear-gradient(90deg, var(--champagne) 0 5px, transparent 5px 9px); }
.interlude__title { font-size: clamp(2.2rem, 5vw, 5rem); line-height: .98; max-width: 18ch; }
.interlude__note { margin: 0; max-width: 52ch; color: rgba(244, 236, 238, .85); }
@media (min-width: 960px) { .interlude__text { grid-template-columns: 7fr 5fr; column-gap: 48px; align-items: end; } .interlude__text .label { grid-column: 1 / -1; } .interlude__note { justify-self: end; } }

/* plum band: spacing + champagne key word */
.band__title + .band__text { margin-top: 18px; }
.on-plum .band__title em { color: var(--champagne); }

/* ---------- calendar.html: prep rows get a third column for the master's tip ---------- */
@media (min-width: 1100px) {
  .prep__item { grid-template-columns: 220px minmax(0, 1fr) minmax(220px, 300px); column-gap: 40px; }
  .prep__item > .prep__name, .prep__item > .prep__what { grid-column: 2; }
  .prep__item > .prep__who { grid-column: 3; grid-row: 1 / span 2; align-self: start; padding-left: 18px; border-left: 1px dashed var(--champagne-deep); font: italic 300 1.08rem/1.35 var(--f-display); font-stretch: 85%; color: var(--ink-2); }
  .prep__item > .prep__who::before { content: "Совет мастера"; display: block; margin-bottom: 6px; font: 500 .6875rem/1.3 var(--f-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---------- calendar.html: FAQ with a workshop photo ---------- */
.faq-wrap { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-photo { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); max-width: 420px; }
.faq-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.55) contrast(1.02); }
.faq-photo figcaption { padding: 14px 0 0; font-size: var(--t-small); color: var(--ink-2); background: var(--bg); }
.faq-photo figcaption b { display: block; font-weight: 500; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: 4px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } .faq-photo { justify-self: end; } }

/* ---------- prices.html: «Соберите своё платье» — live estimate ---------- */
.est { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) { .est { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .est__out { position: sticky; top: calc(var(--head-h) + 32px); } }
.est__form { gap: 34px; }
.opts { display: grid; border-top: 1px solid var(--line); }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 56px; padding: 12px 12px 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .3s var(--ease); }
.opt:hover { background: rgba(251, 249, 246, .9); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); cursor: pointer; }
.opt input:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.opt__name { font-size: 1rem; line-height: 1.3; transition: color .3s var(--ease); }
.opt__name small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--ink-3); }
.opt__val { font-size: .875rem; white-space: nowrap; color: var(--ink-2); }
.opt:has(input:checked) { background: var(--paper); }
.opt:has(input:checked) .opt__name { color: var(--plum); }
.opt:has(input:checked) .opt__val { color: var(--ink); font-weight: 500; }
.tones { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tone { position: relative; cursor: pointer; }
.tone input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tone span { display: grid; justify-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-3); }
.tone i { display: block; width: 52px; height: 52px; background: var(--c); border: 1px solid var(--line); outline: 1px solid transparent; outline-offset: 4px; transition: outline-color .3s var(--ease); }
.tone input:checked + span { color: var(--plum); }
.tone input:checked + span i { outline-color: var(--plum); }
.tone input:focus-visible + span i { outline: 2px solid var(--plum); }
.est__date { max-width: 320px; }
.est__verdict { margin: 0; padding: 12px 14px; background: var(--paper); border-left: 2px solid var(--champagne-deep); font-size: var(--t-small); color: var(--ink-2); }
.est__verdict[data-level="urgent"] { border-left-color: var(--warn); }
.est__verdict[data-level="ready"], .est__verdict[data-level="late"] { border-left-color: var(--plum); }
.est__verdict a { color: var(--plum); }
.receipt--live .receipt__head { margin-bottom: 0; }
.receipt--live .rline.is-new { animation: rline-in .55s var(--ease) both; }
@keyframes rline-in { from { opacity: 0; transform: translate3d(0, -8px, 0); background: rgba(217, 199, 167, .35); } }
.receipt--live .receipt__sum { font-variant-numeric: tabular-nums lining-nums; }
.est__pay { display: grid; margin-top: 16px; border-top: 1px dashed var(--line-strong); }
.est__pay li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .875rem; color: var(--ink-2); }
.est__pay b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.est__send { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .receipt--live .rline.is-new { animation: none; } }

/* ---------- prices.html: receipts paired with a photo or a hang tag ---------- */
.pair { display: grid; gap: clamp(36px, 4vw, 64px); align-items: center; }
.pair + .pair { margin-top: clamp(72px, 9vw, 140px); }
@media (min-width: 1000px) {
  .pair { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pair--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pair--flip > :first-child { order: 2; }
}
.pair__media { position: relative; margin: 0; overflow: hidden; }
.pair__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pair__media figcaption { padding-top: 12px; font-size: .8125rem; color: var(--ink-3); background: var(--bg-2); max-width: 46ch; }
.tag-card { margin: 0; display: grid; justify-items: center; align-content: start; }
.tag-card__string { width: 120px; height: 80px; overflow: visible; }
.tag-card__string path { fill: none; stroke: var(--champagne-deep); stroke-width: 1.2; stroke-linecap: round; }
.tag-wrap { position: relative; z-index: 1; width: min(300px, 82%); margin-top: -2px; filter: drop-shadow(0 22px 22px rgba(38, 32, 28, .16)); transform-origin: 50% 0; transform: rotate(-3deg); transition: transform 1.4s var(--ease); }
.tag-card:hover .tag-wrap { transform: rotate(2deg); }
.tag { position: relative; padding: 52px 26px 28px; background: repeating-linear-gradient(0deg, rgba(120, 100, 70, .05) 0 1px, transparent 1px 3px), linear-gradient(160deg, #F1E7D6, #E5D6BC); clip-path: polygon(24% 0, 76% 0, 100% 10%, 100% 100%, 0 100%, 0 10%); color: var(--ink); }
.tag__hole { position: absolute; top: 16px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: var(--bg-2); box-shadow: 0 0 0 2px var(--champagne-deep); }
.tag__brand { margin: 0; text-align: center; font: italic 300 2.6rem/1 var(--f-display); font-stretch: var(--stretch); }
.tag__kind { margin: 8px 0 18px; text-align: center; font: 500 .6875rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tag__rows { border-top: 1px dashed rgba(38, 32, 28, .3); }
.tag__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(38, 32, 28, .3); font-size: .875rem; }
.tag__rows dt { color: var(--ink-3); }
.tag__sizes { display: flex; justify-content: space-between; margin: 16px 0 0; font-size: .75rem; color: var(--ink-3); }
.tag__sizes .is-on { color: var(--plum); outline: 1px solid var(--plum); outline-offset: 3px; }
.tag__price { margin: 20px 0 0; text-align: center; font: 300 2.1rem/1 var(--f-display); font-stretch: var(--stretch); }
.tag-card figcaption { margin-top: 28px; max-width: 34ch; text-align: center; font-size: .8125rem; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .tag-wrap { transition: none; } }
.tag-card::before { content: ""; width: min(240px, 70%); height: 3px; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--line-strong); }
.pair__media img { filter: saturate(.78); }
/* mobile: the running total stays in view while the options are long */
.est__mini { position: sticky; top: calc(var(--head-h) + 6px); z-index: 5; display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 24px -20px rgba(38, 32, 28, .4); text-decoration: none; color: var(--ink); }
.est__mini span { font: 500 .6875rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.est__mini b { margin-left: auto; font: 300 1.5rem/1 var(--f-display); font-stretch: var(--stretch); color: var(--plum); }
.est__mini i { font-style: normal; color: var(--ink-3); }
@media (min-width: 1000px) { .est__mini { display: none; } }
@media (max-width: 999px) { .est__mini { margin-bottom: -20px; } }

/* the veil reveal sets position: relative; keep the dress photos sticky on desktop */
@media (min-width: 960px) { .ml-ready .dress__media[data-reveal="veil"] { position: sticky; } }
