/* ---------- fonts ---------- */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../assets/fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../assets/fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../assets/fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../assets/fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../assets/fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../assets/fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* текст на превью метрики */
@font-face { font-family: "Arimo"; font-weight: 400; font-display: swap; src: url("../assets/fonts/arimo-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Arimo"; font-weight: 400; font-display: swap; src: url("../assets/fonts/arimo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Arimo"; font-weight: 700; font-display: swap; src: url("../assets/fonts/arimo-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Arimo"; font-weight: 700; font-display: swap; src: url("../assets/fonts/arimo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --wall: #F3EADF;      /* тёплый фон */
  --foam: #FBF6F0;      /* светлые поверхности */
  --sky: #EFE3D8;
  --sand: #D6BC82;
  --sand-l: #F1E4C9;
  --rose: #E8B4AB;
  --rose-l: #F7DED9;
  --ink: #4A3731;       /* тёплый коричневый */
  --ink-2: #75605A;     /* вторичный текст, контраст на --wall ≥ 4.5:1 */
  --line: #E3D3C7;
  --danger: #B4443A;
  --brand: #9A6A57;
  --cta: linear-gradient(180deg, #AE7C70 0%, #8C5C54 100%);
  --glass: rgba(255, 255, 255, .55);
  --glass-line: rgba(255, 255, 255, .85);
  --glass-shadow: 0 8px 24px rgba(140, 96, 84, .10), inset 0 1px 0 rgba(255, 255, 255, .9);

  --font-display: "Onest", system-ui, sans-serif;
  --font-brand: "Nunito", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60% 55% at 4% 95%, rgba(236, 190, 184, .8) 0%, rgba(236, 190, 184, 0) 70%),
    radial-gradient(48% 48% at 92% 6%, rgba(210, 220, 192, .75) 0%, rgba(210, 220, 192, 0) 70%),
    radial-gradient(45% 40% at 55% 42%, rgba(255, 251, 244, .95) 0%, rgba(255, 251, 244, 0) 75%),
    var(--wall);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

[hidden] { display: none !important; }
.defs-holder { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1280px; margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { width: 56px; height: auto; filter: drop-shadow(0 6px 8px rgba(140, 96, 84, .22)); }
.brand-text { display: grid; gap: 2px; font: 800 15px/1.05 var(--font-brand); text-transform: uppercase; letter-spacing: .03em; color: var(--brand); text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.top-nav { display: flex; gap: 28px; }
.top-nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--ink); border-bottom-color: var(--rose); }
.top { position: relative; z-index: 5; }

/* ---------- hero / builder ---------- */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 4px var(--gutter) 88px;
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero h1 {
  font: 600 clamp(26px, 2.9vw, 40px)/1.12 var(--font-display);
  letter-spacing: -0.025em; text-wrap: balance;
}
.lead { margin-top: 14px; color: var(--ink-2); max-width: 44ch; font-size: 17px; }

.builder {
  margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px;
}
.builder .full, .shapes, .buy, .fields { grid-column: 1 / -1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }

.shapes { border: 0; margin: 0; padding: 0; min-width: 0; }
.shapes legend, .field label { font-weight: 500; font-size: 14.5px; color: var(--ink-2); padding: 0; margin-bottom: 8px; display: block; }
.shape-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shape input { position: absolute; opacity: 0; pointer-events: none; }
.shape label {
  display: grid; gap: 6px; justify-items: center; cursor: pointer;
  padding: 6px 6px 8px; border-radius: 20px; background: var(--glass);
  border: 1.5px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  margin: 0;
}
.shape label:hover { transform: translateY(-2px); }
.shape label svg { width: 78%; aspect-ratio: 1; }
.shape input:checked + label { background: rgba(255, 255, 255, .9); border-color: #C9988C; color: var(--ink); box-shadow: 0 10px 26px rgba(140, 96, 84, .22), inset 0 1px 0 #fff; }
.shape input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }

.field { position: relative; min-width: 0; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.3 var(--font-text); color: var(--ink);
  height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--glass-line); background: var(--glass); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { height: auto; padding: 12px 16px; resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #A39088; }
.field input:focus, .field textarea:focus { outline: none; border-color: #C9988C; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 4px rgba(232, 180, 171, .45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.opt { font-weight: 400; color: #8C7970; }
.err { margin-top: 6px; color: var(--danger); font-size: 14px; line-height: 1.35; }
.err[hidden] { display: none; }

.buy { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.price strong { display: block; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
.price span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

.btn {
  font: 600 16px/1 var(--font-text); color: #fff; background: var(--cta);
  height: 56px; padding: 0 36px; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 12px 26px rgba(140, 92, 84, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(.93); transform: translateY(-1px); box-shadow: 0 16px 30px rgba(140, 92, 84, .42), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(1px); filter: brightness(.9); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-block { width: 100%; }

/* сцена */
.hero-stage { min-width: 0; }
.arch {
  position: relative; width: min(100%, 600px); margin-inline: auto;
  aspect-ratio: 1 / 1.08;
  display: grid; place-items: end center;
  padding: 7% 7% 4%;
}
/* арка: размытая «детская» за стеклом */
.arch::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: 999px 999px 32px 32px;
  background:
    radial-gradient(34% 26% at 22% 30%, rgba(176, 198, 152, .85) 0%, rgba(176, 198, 152, 0) 100%),
    radial-gradient(30% 24% at 78% 24%, rgba(255, 247, 232, .95) 0%, rgba(255, 247, 232, 0) 100%),
    radial-gradient(40% 30% at 70% 62%, rgba(238, 200, 188, .75) 0%, rgba(238, 200, 188, 0) 100%),
    radial-gradient(26% 20% at 14% 70%, rgba(226, 214, 190, .8) 0%, rgba(226, 214, 190, 0) 100%),
    linear-gradient(180deg, #E4E6D6 0%, #F1E6DA 55%, #EBD9CE 100%);
  border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, .45), 0 34px 60px rgba(140, 96, 84, .18);
}
.arch::after {                      /* блик на стекле */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 32%);
}
.tilt {
  position: relative; z-index: 1;
  width: 100%;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s ease-out;
  will-change: transform;
}
#stage { width: 100%; height: auto; overflow: visible; }
.shelf { display: none; }
.stage-note {
  display: flex; align-items: flex-start; gap: 12px; margin: 20px auto 0; max-width: 440px;
  padding: 12px 18px 12px 14px; text-align: left; font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
  background: var(--glass); border: 1.5px solid var(--glass-line); border-radius: 18px; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.stage-note strong { color: var(--ink); font-weight: 600; }
.stage-note-i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose-l); color: var(--ink); }

/* ---------- sections ---------- */
.collection, .how { max-width: 1280px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font: 600 clamp(24px, 2.6vw, 34px)/1.15 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.section-head p { margin-top: 14px; color: var(--ink-2); }

.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.work:nth-child(even) { margin-top: 44px; }
.work-arch {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; background: var(--tint, var(--sky));
  border: 1.5px solid rgba(255, 255, 255, .8); box-shadow: inset 0 0 40px rgba(255, 255, 255, .4), 0 18px 34px rgba(140, 96, 84, .12);
  display: grid; place-items: center; padding: 14% 9% 9%;
}
.work-arch img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(110, 70, 58, .26)); }
.work h3 { margin-top: 18px; font: 600 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.work p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.work-foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.work-price { font-weight: 600; font-size: 15px; }
.link-btn {
  font: 500 15px/1.2 var(--font-text); color: var(--ink); background: none; border: 0; padding: 8px 0;
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link-btn:hover { text-decoration-color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; }
.steps li { position: relative; padding-top: 4px; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--glass); border: 1.5px solid var(--glass-line); box-shadow: var(--glass-shadow); font: 600 17px/1 var(--font-display); margin-bottom: 18px; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 58px; right: -28px; height: 0;
  border-top: 2px dashed #D7BFB3;
}
.steps h3 { font: 600 18px/1.25 var(--font-display); letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 32ch; }

.foot a { color: var(--ink-2); }

/* ---------- dialog ---------- */
dialog {
  padding: 0; border: 0; background: var(--foam); color: var(--ink);
  width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-radius: 28px; overflow: auto; box-shadow: 0 30px 80px rgba(74, 55, 49, .38);
}
dialog::backdrop { background: rgba(74, 55, 49, .45); backdrop-filter: blur(6px); }
.dlg { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.dlg-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); cursor: pointer;
}
.dlg-close:hover { background: #fff; }
.dlg-preview { background: linear-gradient(180deg, #EFE3D8, #F7EEE6); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.dlg-preview svg { width: 100%; height: auto; max-width: 340px; margin: 0 auto; }
.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.summary .total { font-family: var(--font-display); font-weight: 500; }
.dlg-body { padding: 34px 34px 34px; }
.dlg-body form { display: grid; gap: 16px; }
.dlg-body h2 { font: 600 24px/1.2 var(--font-display); letter-spacing: -0.02em; padding-right: 40px; }
.dlg-lead { color: var(--ink-2); margin-top: -6px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { margin: 0; padding: 12px 14px; background: #FBE9E6; border-radius: 12px; }
.done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 36px 0 8px; }
.done h2 { padding: 0; }
.done p { color: var(--ink-2); max-width: 36ch; }
.done .btn { margin-top: 10px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-l); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-bottom: 64px; }
  .hero-copy, .builder { display: contents; }
  .hero > .hero-stage, .hero-copy > *, .builder > * { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero h1 { margin-bottom: -8px; }
  .lead { margin-top: 0; }
  .fields { order: 1; margin-top: 4px; }
  .arch { width: min(100%, 460px); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work:nth-child(even) { margin-top: 36px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-left: 62px; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 52px; bottom: -22px; left: 22px; right: auto; border-top: 0; border-left: 2px dashed #D7BFB3; height: auto; }
  .dlg { grid-template-columns: 1fr; }
  .dlg-preview { flex-direction: row; align-items: center; padding: 18px 72px 18px 18px; gap: 14px; }
  .dlg-preview svg { width: 112px; flex: none; margin: 0; }
  .summary { font-size: 14px; flex: 1; }
  .dlg-body { padding: 24px 20px 28px; }
}
@media (max-width: 520px) {
  .top { gap: 12px; }
  .brand { font-size: 15px; }
  .top-nav { gap: 14px; }
  .top-nav a { font-size: 13.5px; }
  .buy { flex-direction: column; align-items: stretch; }
  .buy .btn { width: 100%; }
  .works { gap: 14px; }
  .work:nth-child(even) { margin-top: 24px; }
  .work-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tilt { transform: none !important; }
}

/* 3D-превью */
.tilt { position: relative; }
.arch > .stage3d-host { position: absolute; left: -17%; right: -17%; top: -13%; bottom: -3%; z-index: 3; }
#stage.is-off { visibility: hidden; }
.stage3d-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage3d-host canvas:active { cursor: grabbing; }

/* Загрузка 3D: размытый фон + печатающий принтер */
.loader3d {
  position: absolute; inset: -1%; z-index: 4; display: grid; place-items: center; border-radius: 28px;
  background: rgba(243, 234, 223, .42); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 100%);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.loader3d.is-on { opacity: 1; transition-delay: .12s; }
.printer { display: grid; justify-items: center; gap: 6px; }
.printer p { margin: 0; font-size: 14px; color: var(--ink-2); letter-spacing: .01em; }
.printer svg { overflow: visible; }
.pr-bed { fill: var(--ink); opacity: .85; }
.pr-post { fill: #E0D2C8; }
.pr-bar { fill: var(--ink); }
.pr-car { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.pr-nozzle { fill: var(--rose); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.pr-layers { fill: var(--rose); }
.pr-obj { transform-origin: 100px 146px; animation: pr-grow 2.4s steps(14, end) infinite; }
.pr-gantry { animation: pr-lift 2.4s steps(14, end) infinite; }
.pr-head { animation: pr-sweep .9s ease-in-out infinite alternate; }
@keyframes pr-grow { from { transform: scaleY(.04); } to { transform: scaleY(1); } }
@keyframes pr-lift { from { transform: translateY(78px); } to { transform: translateY(0); } }
@keyframes pr-sweep { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@media (prefers-reduced-motion: reduce) {
  .pr-obj, .pr-gantry, .pr-head { animation: none; }
  .loader3d { transition: none; }
}

/* окно с итогом оплаты без превью */
.dlg.is-note { grid-template-columns: 1fr; }
dialog.is-note { width: min(460px, calc(100% - 24px)); }
.dlg.is-note .dlg-preview { display: none; }

/* запасной вариант без WebGL: облака и искры на CSS */
.fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.arch.has3d .fx { display: none; }
.cloud { position: absolute; width: 150px; height: 52px; border-radius: 60px; background: linear-gradient(#fff, #FBF0EC); filter: drop-shadow(0 12px 14px rgba(170, 120, 110, .22)); animation: fx-drift 7s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 72px; height: 72px; left: 24px; top: -34px; }
.cloud::after { width: 56px; height: 56px; right: 26px; top: -24px; }
.cloud.c1 { right: -5%; top: 3%; transform: scale(1.1); }
.cloud.c2 { left: -6%; top: 9%; width: 108px; height: 40px; background: linear-gradient(#fff, #FCE9E5); animation-duration: 9s; animation-delay: -3s; }
.spark { position: absolute; width: 20px; height: 20px; background: linear-gradient(135deg, #FFE7A8, #F1C46A); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: fx-twinkle 3s ease-in-out infinite; }
.spark.s1 { left: 22%; top: 6%; } .spark.s2 { right: 12%; top: 32%; width: 14px; height: 14px; animation-delay: -1s; }
.spark.s3 { left: 6%; top: 30%; width: 14px; height: 14px; animation-delay: -2s; } .spark.s4 { right: 30%; top: 4%; width: 12px; height: 12px; animation-delay: -.5s; }
@keyframes fx-drift { from { translate: 0 0; } to { translate: 8px -10px; } }
@keyframes fx-twinkle { 0%, 100% { opacity: .55; scale: .8; } 50% { opacity: 1; scale: 1.1; } }
@media (max-width: 520px) { .top-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .cloud, .spark { animation: none; } }

/* ---------- форма: выбор, подзаголовки ---------- */
.field select {
  width: 100%; font: 400 17px/1.3 var(--font-text); color: var(--ink); height: 48px; padding: 0 40px 0 16px; border-radius: 14px;
  border: 1.5px solid var(--glass-line); background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2375605A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  box-shadow: var(--glass-shadow); appearance: none; -webkit-appearance: none;
}
.field select:focus { outline: none; border-color: #C9988C; box-shadow: 0 0 0 4px rgba(232, 180, 171, .45); }
.dlg-sub { font: 600 15px/1.2 var(--font-display); color: var(--brand); margin: 18px 0 10px; letter-spacing: .02em; text-transform: uppercase; }
.dlg-sub:first-of-type { margin-top: 6px; }
.consent + .err { margin-top: -6px; }

/* ---------- оплата, доставка, возврат ---------- */
.info { padding: 24px var(--gutter) 56px; max-width: 1280px; margin: 0 auto; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.info-grid article { background: var(--glass); border: 1.5px solid var(--glass-line); border-radius: 22px; padding: 20px 20px 22px; box-shadow: var(--glass-shadow); }
.info-grid h3 { font: 600 17px/1.2 var(--font-display); margin-bottom: 8px; }
.info-grid p { font-size: 15px; color: var(--ink-2); }
.info-grid a { color: var(--brand); }
@media (max-width: 1040px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- подвал с данными продавца ---------- */
.foot { display: grid; gap: 14px; padding: 28px var(--gutter) 40px; max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(154, 106, 87, .2); font-size: 14.5px; color: var(--ink-2); }
.foot-seller { display: grid; gap: 4px; }
.foot-seller strong { color: var(--ink); font: 600 16px/1.2 var(--font-display); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-copy { font-size: 13px; opacity: .85; }

/* ---------- документы и страницы результата ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 80px; }
.doc h1 { font: 600 clamp(26px, 3vw, 36px)/1.15 var(--font-display); letter-spacing: -0.02em; margin-bottom: 20px; }
.doc h2 { font: 600 19px/1.3 var(--font-display); margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink); margin-bottom: 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { color: var(--brand); }
.doc .meta { color: var(--ink-2); font-size: 15px; }
.result { max-width: 560px; margin: 6vh auto 0; padding: 36px 28px; text-align: center; background: var(--glass); border: 1.5px solid var(--glass-line); border-radius: 28px; box-shadow: var(--glass-shadow); }
.result h1 { font: 600 28px/1.15 var(--font-display); margin-bottom: 12px; }
.result .btn { display: inline-flex; margin-top: 18px; text-decoration: none; }

/* ---------- размеры ---------- */
.size-line { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(240, 200, 190, .35); color: var(--ink); font-size: 15px; }
.size-line svg { flex: none; color: var(--brand); }
.shape label small { font: 600 11.5px/1 var(--font-text); color: var(--brand); letter-spacing: .01em; }
.work-size { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 4px 10px; border-radius: 999px; background: rgba(240, 200, 190, .4); color: var(--ink) !important; font-weight: 600; font-size: 14px !important; }
.work-size svg { color: var(--brand); }
.sizes { max-width: 1280px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.size-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.size-card { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 14px 12px 16px; border-radius: 24px; border: 1.5px solid var(--glass-line); background: var(--glass); box-shadow: var(--glass-shadow); font: inherit; color: var(--ink); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.size-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(140, 96, 84, .2); }
.size-art { width: 100%; height: 200px; display: flex; align-items: flex-end; justify-content: center; border-radius: 16px; background: linear-gradient(var(--tint), transparent 120%); padding: 10px; }
.size-art img { width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(110, 70, 58, .25)); }
.size-name { font: 600 17px/1.2 var(--font-display); margin-top: 8px; }
.size-dim { font-size: 17px; color: var(--brand); }
.size-dim b { font: 700 24px/1 var(--font-display); }
.size-price { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .size-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- блок оплаты и доставки: иконки и акценты ---------- */
.info-grid article { position: relative; padding: 22px 20px 24px; overflow: hidden; }
.info-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: var(--cta); box-shadow: 0 8px 18px rgba(140, 96, 84, .3); }
.info-key { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: rgba(240, 200, 190, .5); color: var(--ink) !important; font: 700 15px/1.2 var(--font-display); }
.info-grid article:nth-child(2) .info-key { font-size: 20px; }

/* ---------- выбор города и пункта выдачи ---------- */
.pick-list { list-style: none; margin: 6px 0 0; padding: 4px; border-radius: 14px; border: 1.5px solid var(--glass-line); background: #fff; box-shadow: 0 14px 30px rgba(110, 70, 58, .18); max-height: 240px; overflow: auto; }
.pvz-city { position: relative; }
.pvz-city .pick-list { position: absolute; left: 0; right: 0; z-index: 5; }
.pick-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: grid; gap: 2px; }
.pick-list li:hover, .pick-list li.on { background: rgba(240, 200, 190, .45); }
.pick-list li strong { font-weight: 600; font-size: 15px; }
.pick-list li span { font-size: 13px; color: var(--ink-2); }
.pick-list li.empty { cursor: default; color: var(--ink-2); font-size: 14px; }
.pick-list li.empty:hover { background: none; }
.pick-points { max-height: 220px; box-shadow: none; }
.pvz-chosen { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(214, 232, 206, .6); font-size: 14.5px; font-weight: 500; }
.field input[type="search"] { height: 48px; }
