/* Марго — ателье вечерних и выпускных платьев (демо NXAI)
   Direction: «Дневник заказа», вариант ivory + emerald + gold, Yeseva One. */

:root {
  --bg: #F8F5EE;
  --bg-2: #F1ECE1;
  --paper: #FFFDF8;
  --ink: #1B1A1F;
  --ink-2: #3A3840;
  --muted: #6E6A73;
  --line: rgba(27, 26, 31, .14);
  --line-strong: rgba(27, 26, 31, .32);
  --accent: #0F5E4E;
  --accent-deep: #0A4439;
  --accent-ink: #F8F5EE;
  --gold: #C9A227;
  --gold-soft: #E7D49A;
  --dress: #0F5E4E;

  --f-display: "Yeseva One", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-xs: .78rem;
  --fs-s: .875rem;
  --fs-0: 1rem;
  --fs-1: 1.125rem;
  --fs-2: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
  --fs-3: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem);
  --fs-num: clamp(7rem, 3rem + 14vw, 15.5rem);
  --fs-h: clamp(2.5rem, 1.3rem + 3.6vw, 4.6rem);

  --gut: 16px;
  --wrap: 1320px;
  --sec: clamp(72px, 9vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1200px) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-0)/1.6 var(--f-body); overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, p, li, dd, figcaption, blockquote, summary { overflow-wrap: break-word; }
@media (max-width: 480px) { .lead, .entry__text, .quote-box__desc, .faq details p, .model__lead { hyphens: auto; -webkit-hyphens: auto; } }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-soft); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 52px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
.kicker { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.kicker--gold { color: var(--gold); }
.lead { font-size: var(--fs-1); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--muted); }
.gold-rule { display: block; width: 56px; height: 1px; background: var(--gold); }

/* ---------- buttons ---------- */
.btn { --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--b); background: var(--b); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: .98rem; letter-spacing: .01em; border-radius: 0; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease); }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--light { --b: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--gold { --b: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #b38f1d; border-color: #b38f1d; }
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.link:hover { color: var(--ink); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 238, .9); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; min-height: 44px; align-items: center; }
.logo__word { font-family: var(--f-display); font-size: 1.75rem; line-height: 1; color: var(--ink); }
.logo__word i { font-style: normal; color: var(--gold); }
.logo__sub { font-size: .72rem; line-height: 1.25; color: var(--muted); letter-spacing: .04em; display: none; }
@media (min-width: 560px) { .logo__sub { display: block; } }
.nav { display: none; margin-left: auto; gap: 26px; }
.nav a { position: relative; text-decoration: none; font-size: .94rem; color: var(--ink-2); padding: 12px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-head .btn { margin-left: 8px; min-height: 44px; padding: 0 18px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 999px) { .site-head__in { gap: 12px; } }
@media (min-width: 1000px) { .nav { display: flex; } }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

/* mobile menu: <details>, works without JS */
.mnav { margin-left: auto; }
@media (min-width: 1000px) { .mnav { display: none; } }
.mnav summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 8px; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav__icon { position: relative; width: 20px; height: 10px; }
.mnav__icon::before, .mnav__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.mnav__icon::before { top: 0; }
.mnav__icon::after { bottom: 0; }
.mnav[open] .mnav__icon::before { transform: translateY(4.25px) rotate(45deg); }
.mnav[open] .mnav__icon::after { transform: translateY(-4.25px) rotate(-45deg); }
.mnav__txt { display: none; }
@media (min-width: 400px) { .mnav__txt { display: inline; } }
.mnav__panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px var(--gut) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(27, 26, 31, .35); }
.mnav__panel a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: 1.45rem; color: var(--ink); }
.mnav__panel a:last-child { border-bottom: 0; }
.mnav__panel a[aria-current="page"] { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero h1 { font-family: var(--f-display); font-weight: 400; line-height: .95; letter-spacing: -.015em; }
.hero__l1 { display: block; font-size: var(--fs-h); }
/* верх цифр Yeseva выше строки: отступ растёт вместе с цифрой, чтобы «5» не задевала «выпускного» */
.hero__l2 { display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 24px); margin: calc(var(--fs-num) * .11) 0 2px; }
.hero__num { font-size: var(--fs-num); line-height: .8; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.035em; }
.hero__unit { font-size: var(--fs-3); line-height: 1; padding-bottom: .5em; white-space: nowrap; }
.hero__l3 { display: inline-block; position: relative; font-size: var(--fs-h); color: var(--ink); }
@media (min-width: 900px) { .hero__l3 { white-space: nowrap; } }
.hero__l3 svg { position: absolute; left: -2%; right: -2%; bottom: -.18em; width: 104%; height: .3em; color: var(--gold); overflow: visible; }
.hero__l3 svg path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { margin-top: 28px; }
.hero__verdict { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--fs-s); color: var(--accent); font-weight: 500; }
.hero__verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(15, 94, 78, .14); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* tape-measure timeline */
.tape { position: relative; margin-top: 44px; padding-top: 34px; }
.tape__bar { position: relative; height: 30px; background: var(--gold-soft); background-image: repeating-linear-gradient(90deg, rgba(27,26,31,.55) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(27,26,31,.7) 0 1px, transparent 1px 50px); background-size: 100% 9px, 100% 16px; background-repeat: no-repeat; background-position: 0 0, 0 0; border-top: 1px solid rgba(27,26,31,.25); border-bottom: 1px solid rgba(27,26,31,.25); }
.tape__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(15, 94, 78, .22); transition: width 1.6s var(--ease); }
.tape__mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.tape__mark::before { content: ""; width: 1px; height: 46px; background: var(--ink); margin-top: -34px; }
.tape__mark span { position: absolute; top: 18px; white-space: nowrap; font-size: .74rem; line-height: 1.25; color: var(--ink-2); text-align: center; }
.tape__mark b { display: block; font-weight: 600; color: var(--ink); }
.tape__mark--start { transform: none; align-items: flex-start; }
.tape__mark--start span { text-align: left; left: 0; }
.tape__mark--end { transform: translateX(-100%); align-items: flex-end; }
.tape__mark--end span { right: 0; text-align: right; }
.tape__mark--end::before { background: var(--accent); width: 2px; }
.tape__mark--mid span { transform: translateX(0); }
.tape__labels { height: 44px; }
.tape__mark[hidden] { display: none; }
/* на телефоне промежуточные отметки без подписей только путают: дату «успеем любой силуэт» называет строка-вердикт */
@media (max-width: 520px) { .tape__mark--mid { display: none; } }

.hero__art { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__art .dress-svg { width: 100%; height: auto; max-height: calc(100vh - 160px); }
.hero__art::before { content: ""; position: absolute; inset: 6% -6% 2%; background: radial-gradient(closest-side, rgba(201, 162, 39, .18), transparent 70%); z-index: -1; }
.note { position: absolute; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-2); white-space: nowrap; }
.note::before { content: ""; width: 40px; height: 1px; background: var(--ink); }
.note--l { flex-direction: row-reverse; }
.note--l::before { width: 40px; }
.note b { font-weight: 600; }
.note-1 { top: 31%; right: -2%; }
.note-2 { top: 54%; left: -4%; }
.note-3 { top: 9%; left: 4%; }
@media (max-width: 520px) { .note { font-size: .7rem; } .note::before { width: 22px; } .note-2 { left: 0; } }

.sway { transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }

/* dress svg shared */
.dress-svg .d-body { fill: var(--dress); transition: fill .7s var(--ease); }
.dress-svg .d-sheen { fill: url(#sheen); pointer-events: none; }
.dress-svg .d-folds { fill: url(#folds); pointer-events: none; mix-blend-mode: multiply; }
.dress-svg .d-seam { fill: none; stroke: rgba(27, 26, 31, .35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.dress-svg .d-strap { fill: none; stroke: var(--dress); stroke-width: 4; stroke-linecap: round; transition: stroke .7s var(--ease); }
.dress-svg .d-belt { fill: none; stroke: var(--gold); stroke-width: 2; }
.dress-svg .d-ruler { stroke: var(--ink); stroke-width: 1; }
.dress-svg .d-ruler-t { font: 500 11px var(--f-body); fill: var(--muted); }

/* ---------- marquee band ---------- */
.band { background: var(--accent); color: var(--accent-ink); padding: 22px 0; --ml-gap: 0px; --ml-speed: 46s; }
.band__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; }
.band__item::after { content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--tight { padding-top: calc(var(--sec) * .6); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 64px; } }
.sec-head h2 { font-size: clamp(2.2rem, 1.3rem + 2.7vw, 3.9rem); line-height: 1.04; }
.sec-head .kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.sec-head .kicker::before { content: attr(data-n); font-family: var(--f-display); font-size: 1rem; color: var(--gold); letter-spacing: 0; }

/* ---------- fitting room (signature) ---------- */
.fitting { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fitting__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .fitting__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.stage { position: relative; aspect-ratio: 4 / 5; background-color: var(--bg-2); background-image: linear-gradient(rgba(27,26,31,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(27,26,31,.06) 1px, transparent 1px); background-size: 28px 28px; border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 960px) { .stage { position: sticky; top: calc(var(--header-h) + 24px); } }
.stage .dress-svg { position: absolute; inset: 4% 6% 3%; width: 88%; height: 93%; }
.stage .shape { opacity: 0; transform: translateY(14px) scale(.98); transform-origin: 50% 10%; transition: opacity .55s var(--ease), transform .7s var(--ease); }
.stage[data-shape="a"] .shape--a, .stage[data-shape="mermaid"] .shape--mermaid, .stage[data-shape="slip"] .shape--slip, .stage[data-shape="corset"] .shape--corset { opacity: 1; transform: none; }
.stage__tag { position: absolute; left: 16px; top: 14px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage__no { position: absolute; right: 16px; top: 10px; font-family: var(--f-display); font-size: 1.6rem; color: var(--gold); }
.stage__fabric { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--ink-2); }

.ctrl { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.ctrl legend { padding: 0; margin-bottom: 14px; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input, .shape-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch__chip { display: grid; place-items: end start; width: 92px; height: 104px; padding: 8px; background: var(--c); color: var(--t, #fff); font-size: .78rem; line-height: 1.2; clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 88% 92%, 82% 100%, 76% 92%, 70% 100%, 64% 92%, 58% 100%, 52% 92%, 46% 100%, 40% 92%, 34% 100%, 28% 92%, 22% 100%, 16% 92%, 10% 100%, 4% 92%, 0 100%); background-image: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 45%, rgba(255,255,255,0) 60%); transition: transform .35s var(--ease); }
.swatch__chip b { font-weight: 600; display: block; }
.swatch:hover .swatch__chip { transform: translateY(-3px); }
.swatch input:checked + .swatch__chip { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--gold); }
.swatch input:checked + .swatch__chip::after { content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.swatch input:focus-visible + .swatch__chip { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 420px) { .swatch__chip { width: calc((100vw - 32px - 20px) / 3); height: 92px; } }

.shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 560px) { .shapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shape-opt { position: relative; cursor: pointer; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shape-opt span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; min-height: 44px; font-size: .86rem; text-align: center; transition: background .3s, color .3s; }
.shape-opt svg { width: 34px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.shape-opt:hover span { background: var(--bg-2); }
.shape-opt input:checked + span { background: var(--ink); color: var(--bg); }
.shape-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -4px; }

.quote-box { border-top: 2px solid var(--ink); padding-top: 22px; }
.quote-box__name { font-family: var(--f-display); font-size: var(--fs-3); line-height: 1.05; }
.quote-box__fabric { color: var(--muted); margin-top: 6px; }
.quote-box__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 22px 0 6px; }
.quote-box__price strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--accent); line-height: 1; }
.quote-box__price span { font-size: var(--fs-1); }
.quote-box__desc { color: var(--ink-2); max-width: 32em; }
.quote-box__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-box__meta div { padding: 12px 12px 12px 0; font-size: .82rem; color: var(--muted); }
.quote-box__meta div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.quote-box__meta b { display: block; color: var(--ink); font-size: 1rem; font-weight: 500; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; }
.channels .btn { flex: 1 1 auto; }
.chan-note { margin-top: 12px; font-size: var(--fs-s); color: var(--muted); }

/* ---------- diary ---------- */
.diary__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .diary__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.diary__aside { display: none; }
@media (min-width: 960px) {
  .diary__aside { display: block; }
  .diary__pin { position: sticky; top: calc(var(--header-h) + 32px); }
}
.diary__daylabel { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.diary__day { font-family: var(--f-display); font-size: clamp(7rem, 11vw, 12rem); line-height: .85; color: var(--accent); font-variant-numeric: tabular-nums; margin: 10px 0 18px; transition: opacity .3s; }
.diary__steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.diary__steps li { padding-top: 10px; font-size: .8rem; color: var(--muted); position: relative; transition: color .3s; }
.diary__steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.diary__steps li.is-on { color: var(--ink); }
.diary__steps li.is-on::before { width: 100%; }
.diary__intro { margin-top: 28px; color: var(--ink-2); max-width: 22em; }

.entry { display: grid; gap: 20px; padding-bottom: clamp(56px, 7vw, 110px); }
.entry + .entry { border-top: 1px solid var(--line); padding-top: 28px; }
.entry__date { display: flex; align-items: baseline; gap: 14px; }
.entry__date b { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-3); color: var(--accent); line-height: 1; }
.entry__date span { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.entry h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; }
.entry__date { flex-wrap: wrap; row-gap: 4px; }
.entry__date b { white-space: nowrap; }
.entry__body { display: grid; gap: 18px; }
.entry__text { font-size: var(--fs-1); color: var(--ink-2); max-width: 34em; }
.entry__decision { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 0 0; border-top: 1px dashed var(--line-strong); max-width: 36em; }
.entry__decision small { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 4px; font-weight: 600; }
.entry__decision p { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.3; }
.entry__media { margin: 6px 0 0; overflow: hidden; background: var(--bg-2); }
.entry__media { position: relative; }
.entry__media img { width: 100%; transition: transform 1.4s var(--ease); }
.entry__media:hover img { transform: scale(1.03); }
/* «Шторка» — отдельный слой поверх фото, который уезжает вверх. Не clip-path на самом фото:
   Chromium считает полностью обрезанный элемент невидимым, и тогда ни reveal, ни lazy-загрузка не срабатывают. */
.ml-ready .entry__media[data-reveal="curtain"] { opacity: 1; }
.ml-ready .entry__media[data-reveal="curtain"]::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
.ml-ready .entry__media[data-reveal="curtain"].is-in::after { transform: scaleY(0); }
.ml-ready .entry__media[data-reveal="curtain"]:not(.is-in) img { transform: scale(1.06); }
.entry__media figcaption { font-size: .8rem; color: var(--muted); padding: 10px 0 0; background: var(--bg); }

@media (min-width: 720px) {
  .entry:nth-child(2) .entry__media { width: 62%; margin-left: auto; }
  .entry:nth-child(3) .entry__media { width: 86%; }
  .entry__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}
.entry--wide .entry__media { margin-right: calc(var(--gut) * -1); }
@media (min-width: 960px) { .entry--wide .entry__media { margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gut)); } }

/* ---------- works ---------- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
.work { margin: 0; }
.work a { text-decoration: none; display: block; }
.work__img { overflow: hidden; background: var(--bg-2); position: relative; }
.work__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work__img img { transform: scale(1.04); }
.work__no { position: absolute; left: 10px; top: 8px; font-family: var(--f-display); font-size: 1.2rem; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.work figcaption { padding-top: 12px; display: grid; gap: 4px; }
.work__title { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; }
.work__meta { font-size: .8rem; color: var(--muted); }
.work__story { font-size: .9rem; color: var(--ink-2); }
.work__price { font-size: .9rem; font-weight: 600; color: var(--accent); }
@media (max-width: 559px) { .work__story { display: none; } }
@media (min-width: 900px) {
  .works { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
  .work:nth-child(1) { grid-column: 1 / span 5; }
  .work:nth-child(2) { grid-column: 7 / span 4; margin-top: 140px; }
  .work:nth-child(3) { grid-column: 2 / span 4; margin-top: 56px; }
  .work:nth-child(4) { grid-column: 8 / span 5; margin-top: 40px; }
  .work:nth-child(5) { grid-column: 1 / span 4; margin-top: 30px; }
  .work:nth-child(6) { grid-column: 6 / span 5; margin-top: 110px; }
  .work figcaption { grid-template-columns: 1fr auto; column-gap: 16px; }
  .work__title, .work__meta, .work__story { grid-column: 1; }
  .work__price { grid-column: 2; grid-row: 1; align-self: start; }
}

/* ---------- class order ---------- */
.klass { background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.klass .kicker, .klass .muted { color: rgba(248, 245, 238, .7); }
.klass .sec-head .kicker::before { color: var(--gold); }
.klass__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .klass__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; } }
.klass p.lead { color: rgba(248, 245, 238, .86); }
.klass__list { margin-top: 26px; border-top: 1px solid rgba(248, 245, 238, .25); }
.klass__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(248, 245, 238, .25); }
.klass__list b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--gold); white-space: nowrap; }
.calc { background: rgba(0, 0, 0, .14); border: 1px solid rgba(248, 245, 238, .2); padding: clamp(20px, 3vw, 36px); }
.calc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(248, 245, 238, .45); }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.stepper button:hover { background: rgba(248, 245, 238, .12); }
.stepper output { min-width: 56px; text-align: center; font-family: var(--f-display); font-size: 1.8rem; }
.girls { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; min-height: 56px; }
.girls svg { width: 22px; height: 44px; fill: rgba(248, 245, 238, .2); transition: fill .35s var(--ease), transform .35s var(--ease); }
.girls svg.on { fill: var(--gold); transform: translateY(-2px); }
.calc__out { font-family: var(--f-display); font-size: var(--fs-2); line-height: 1.25; min-height: 2.6em; }
.calc__sub { margin: 8px 0 22px; font-size: var(--fs-s); color: rgba(248, 245, 238, .75); }

/* ---------- prices teaser / table ---------- */
.ptable { border-top: 2px solid var(--ink); }
.prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .3s var(--ease); }
a.prow:hover { background: var(--paper); padding-left: 10px; padding-right: 10px; }
.prow svg { width: 40px; height: 60px; fill: none; stroke: var(--accent); stroke-width: 1.3; }
.prow__name { font-family: var(--f-display); font-size: var(--fs-2); line-height: 1.1; }
.prow__desc { font-size: .88rem; color: var(--muted); grid-column: 2; }
.prow__price { text-align: right; grid-column: 3; grid-row: 1 / span 2; }
.prow__price b { display: block; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.prow__price span { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.teaser__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .review { padding: 32px 32px 32px 0; border-bottom: 0; } .review + .review { padding-left: 32px; border-left: 1px solid var(--line); } }
.review blockquote { font-family: var(--f-display); font-size: var(--fs-2); line-height: 1.3; }
.review blockquote::before { content: "«"; color: var(--gold); }
.review blockquote::after { content: "»"; color: var(--gold); }
.review figcaption { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 600; }

/* ---------- contacts ---------- */
.contacts__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contacts__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.map { position: relative; border: 1px solid var(--line); background: var(--paper); }
.map svg { width: 100%; height: auto; }
.map .street { stroke: var(--line-strong); fill: none; }
.map .street--main { stroke: rgba(27,26,31,.55); }
.map .street-t { font: 500 12px var(--f-body); fill: var(--ink-2); letter-spacing: .03em; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map .park-t { fill: var(--accent); }
.map .map-tag { font: 400 17px var(--f-display); }
.map .river { fill: rgba(15, 94, 78, .12); }
.map .river-t { font: italic 400 13px var(--f-body); fill: var(--accent); letter-spacing: .1em; }
.map .park { fill: rgba(15, 94, 78, .08); stroke: rgba(15,94,78,.25); stroke-dasharray: 2 3; }
.map .tree { fill: rgba(15, 94, 78, .3); }
.map .pin-pulse { fill: var(--gold); opacity: .35; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
.map__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line); font-size: .84rem; font-weight: 500; }
.map__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.map__badge.is-open::before { background: #1f9d6b; box-shadow: 0 0 0 3px rgba(31, 157, 107, .2); }
.map__badge.is-closed::before { background: #b5473a; }
/* on phones the 640-unit map shrinks to ~330px: enlarge labels and move the badge under the map */
@media (max-width: 600px) {
  .map .street-t { font-size: 19px; stroke-width: 6px; }
  .map .river-t { font-size: 20px; }
  .map .map-tag { font-size: 22px; }
  .map__badge { position: static; display: flex; border: 0; border-top: 1px solid var(--line); }
  .map .street-t--minor { display: none; }
}
.info { display: grid; gap: 0; margin: 22px 0 24px; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info dt { color: var(--muted); font-size: .84rem; padding-top: 2px; }
.info dd a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.info dd a:hover { color: var(--accent); }
.form { display: grid; gap: 16px; }
.form h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-3); line-height: 1.05; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 94, 78, .15); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.form .btn { justify-self: start; }
.btn--route { margin-top: 4px; }
.book { display: grid; gap: 40px; margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .book { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; } }
.bring { background: var(--bg); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); }
.bring h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-2); line-height: 1.15; margin-bottom: 18px; }
.bring ol { counter-reset: bring; display: grid; gap: 14px; }
.bring li { counter-increment: bring; position: relative; padding-left: 38px; font-size: .95rem; color: var(--ink-2); }
.bring li::before { content: counter(bring, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--f-display); color: var(--gold); line-height: 1.6; }
.bring li b { color: var(--ink); font-weight: 600; }
.bring__note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-s); color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(248, 245, 238, .78); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .9rem; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot .logo__word { color: var(--bg); font-size: 2.4rem; }
.foot h4 { margin: 0 0 12px; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.foot ul { display: grid; gap: 0; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--gold-soft); }
.foot__base { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(248, 245, 238, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: rgba(248, 245, 238, .55); }

/* ---------- mobile CTA bar ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 245, 238, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
.mbar.is-on { transform: none; }
.mbar .btn { flex: 1; min-height: 48px; padding: 0 14px; }
.mbar .btn--ghost { flex: 0 0 auto; }
@media (min-width: 960px) { .mbar { display: none; } }
@media (max-width: 959px) { body.has-mbar .foot { padding-bottom: 96px; } }

/* ---------- prices page ---------- */
.p-hero { padding: clamp(40px, 7vw, 100px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.p-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-4); line-height: 1; max-width: 12em; margin: 16px 0 22px; }
.p-hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.p-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.p-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); text-decoration: none; font-size: .9rem; transition: background .25s, color .25s; }
.p-index a:hover { background: var(--ink); color: var(--bg); }
.model { display: grid; gap: 24px; padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .model { grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 48px; align-items: start; } }
.model__art { background-color: var(--bg-2); background-image: linear-gradient(rgba(27,26,31,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(27,26,31,.06) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid var(--line); display: grid; place-items: center; padding: 16px; aspect-ratio: 3 / 4; max-width: 220px; }
.model__art svg { width: 86%; height: auto; }
.model__art .d-body { fill: var(--dress, var(--accent)); }
.model__art .d-strap { fill: none; stroke: var(--dress, var(--accent)); stroke-width: 4; stroke-linecap: round; }
.model__art .d-seam { fill: none; stroke: rgba(27,26,31,.3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.model h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-3); line-height: 1.05; }
.model__lead { margin: 12px 0 20px; color: var(--ink-2); font-size: var(--fs-1); max-width: 34em; }
.lines { border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lines li span:first-child { color: var(--ink-2); }
.lines li .dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 20px; }
.lines li b { font-weight: 600; white-space: nowrap; }
.model__box { border: 1px solid var(--ink); padding: 22px; background: var(--paper); }
.model__box .from { font-family: var(--f-display); font-size: 2.3rem; color: var(--accent); line-height: 1; }
.model__box dl { display: grid; gap: 8px; margin: 18px 0 20px; font-size: .9rem; }
.model__box dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.model__box dt { color: var(--muted); }
.model__box .btn { width: 100%; }
.extras { display: grid; gap: 40px; }
@media (min-width: 900px) { .extras { grid-template-columns: 1fr 1fr; gap: 64px; } }
.extras h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-2); margin-bottom: 16px; }
.fabrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.fabric { margin: 0; }
.fabric__sw { aspect-ratio: 1; background: var(--c); background-image: var(--tx, linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.2) 46%, rgba(255,255,255,0) 62%)); background-size: var(--txs, auto); border: 1px solid var(--line); }
.fabric figcaption { padding-top: 8px; font-size: .86rem; line-height: 1.35; }
.fabric figcaption b { display: block; font-weight: 600; }
.fabric figcaption span { color: var(--muted); }
.when { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .when { grid-template-columns: repeat(3, 1fr); } }
.when div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .when div + div { padding-left: 22px; border-left: 1px solid var(--line); } }
.when b { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--fs-2); color: var(--accent); margin-bottom: 6px; }
.faq-grid { display: grid; gap: 18px; }
.faq-grid h2 { font-size: var(--fs-3); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--f-display); font-size: var(--fs-2); line-height: 1.2; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); color: var(--gold); font-size: 1.6rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(48px, 7vw, 96px) 0; }
.cta-band__in { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .cta-band__in { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-3); line-height: 1.05; max-width: 16em; }
.cta-band .channels .btn--ghost { color: var(--bg); border-color: rgba(248,245,238,.5); }
.cta-band .channels .btn--ghost:hover { background: var(--bg); color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 88px) 0 var(--sec); }
.legal__in { max-width: 760px; }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-3); line-height: 1.1; margin: 14px 0 24px; }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-2); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal__demo { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--paper); font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__l3 svg path { stroke-dashoffset: 0; }
}

/* mobile: keep the sketch in view while choosing colour and silhouette */
@media (max-width: 959px) {
  .stage { position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; aspect-ratio: auto; height: min(44vh, 400px); box-shadow: 0 12px 24px -18px rgba(27, 26, 31, .35); }
  .stage__fabric span + span { display: none; }
  .stage .dress-svg { inset: 10% 6% 13%; height: 77%; }
  .stage .d-ruler, .stage .d-ruler-t { display: none; }
}
