/* Постери з фото (/posters/ і /posters/<дизайн>/). Лише світла тема. Спільні шапка, крихти, «Вам також сподобається»
   і футер — assets/site.css; їхні кольори для цього розділу — змінні нижче (футер темний, як був на лендингу). */

:root {
  color-scheme: light;
  --ground: #EEF1EB;
  --paper: #FBFCF9;
  --backdrop: #DCE3D5;
  --shelf: #C9D3C0;
  --ink: #1B221E;
  --ink-2: #545E57;
  --ink-3: #636D66;
  --line: #D3DACE;
  --line-strong: #A9B3A4;
  --accent: #8A2238;
  --accent-hover: #6F1A2C;
  --accent-tint: #F4E4E7;
  --burn: #4A2716;
  --warn: #7F4D00;
  --warn-tint: #F8EDD8;
  --err: #A8231C;
  --err-tint: #FAE5E2;
  --font-display: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-heading: var(--font-display);
  --menu-bg: var(--paper);
  --card-bg: var(--paper);
  --footer-bg: var(--ink);
  --footer-ink: #DDE3DC;
  --footer-muted: #A9B3AC;
  --footer-line: rgba(221, 227, 220, .18);
  --footer-hover: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Типографіка ── */
.display {
  font-family: var(--font-display);
  font-stretch: 76%;
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 500; color: var(--accent); }
.h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); }
.h2 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem); }
.h3 { font: 600 1.0625rem/1.3 var(--font-body); }
.lede { max-width: 34em; color: var(--ink-2); font-size: 1.0625rem; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.hint { color: var(--ink-3); font-size: .8125rem; font-weight: 400; }
.label { color: var(--ink-3); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: var(--r-m);
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { width: 100%; min-height: 58px; padding: 14px 24px; font-size: 1.0625rem; }
.btn:disabled { opacity: .65; cursor: progress; }

/* ── Шапка ── */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { display: block; width: auto; height: 46px; }
.nav { font-size: .9375rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ── Перший екран ── */
.hero { padding-block: 4px 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.viewer { position: sticky; top: 20px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: static; }
}

/* Сцена з прев'ю */
.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-l);
  background: var(--backdrop);
}
.slide { position: absolute; inset: 0; }

/* Фото й відео товару в галереї */
.slide-media { width: 100%; height: 100%; object-fit: cover; }
.slide-video { width: 100%; height: 100%; object-fit: contain; background: #141915; }
.slide-media-frame { width: 100%; height: 100%; border: 0; background: #141915; }
.slide-empty {
  display: grid; place-content: center; justify-items: center; gap: 12px;
  height: 100%; padding: 24px;
  background: repeating-linear-gradient(135deg, rgba(27, 34, 30, .04) 0 12px, transparent 12px 24px), var(--backdrop);
  color: var(--ink-2); text-align: center;
}

.thumbs { display: flex; gap: 10px; margin-top: 10px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.thumb {
  position: relative; flex: 0 0 auto;
  width: 68px; height: 68px; padding: 0;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--backdrop); color: var(--ink-2);
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ink); }
.thumb-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-icon.on-media { background: rgba(0, 0, 0, .2); color: #fff; }
.thumb-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0;
  background: rgba(27, 34, 30, .74); color: #fff;
  font-size: .625rem; font-weight: 600; text-align: center;
}

/* Живе прев'ю постера (конструктор) */
.poster-slide { background: #1A1512; }
.poster-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: zoom-in; }
.poster-canvas.is-dragging { cursor: grabbing; }
@media (pointer: fine) { .poster-canvas { touch-action: none; cursor: grab; } }
.poster-view {
  position: absolute; right: 10px; bottom: 10px;
  min-height: 36px; padding: 6px 12px;
  border: 0; border-radius: 999px;
  background: rgba(251, 252, 249, .92); color: var(--ink);
  font-size: .8125rem; font-weight: 600; cursor: pointer;
}
.editor-tools { display: grid; gap: 10px; margin-top: 12px; }
.editor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.editor-range { flex: 1 1 120px; min-width: 0; accent-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 12px; font-size: .875rem; }
.editor-full-btn { width: 100%; }
.editor-tools.is-compact .editor-row, .editor-tools.is-compact .hint { display: none; }
@media (pointer: fine) { .editor-full-btn { display: none; } }
.editor-full {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  border: 0; background: var(--paper); color: var(--ink);
}
.editor-full[open] { display: flex; flex-direction: column; gap: 10px; }
.editor-full::backdrop { background: var(--paper); }
.editor-full-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.editor-full-head h2 { font-size: 1.6rem; }
.editor-full-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; }
.editor-full-stage .poster-canvas { border-radius: var(--r-l); touch-action: none; }
.editor-full .editor-tools { margin-top: 0; }
.editor-full .editor-full-btn { display: none; }

.avatar-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.avatar-thumb { width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--backdrop); }
.avatar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.avatar-title { display: block; font-size: .9375rem; font-weight: 600; }
.avatar-actions { display: flex; gap: 6px; }
.avatar-pick { position: relative; overflow: hidden; }
.avatar-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ── Конструктор ── */
.product-head { display: grid; gap: 14px; padding-bottom: 24px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.price { font-size: 1.75rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }

.config { display: grid; gap: 28px; }
.group { display: grid; gap: 12px; min-width: 0; }
.group-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }

.option {
  position: relative;
  display: grid;
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.option:hover { border-color: var(--ink-2); }
.option:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.size-opt { grid-template-columns: 30px minmax(0, 1fr); align-items: end; gap: 2px 14px; padding: 14px 16px; }
.sheet { grid-row: 1 / span 2; justify-self: center; border: 1.5px solid var(--ink-2); border-radius: 2px; background: #fff; }
.sheet-a5 { width: 21px; height: 30px; }
.sheet-a4 { width: 30px; height: 42px; }
.opt-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 1.0625rem; font-weight: 600; }
.opt-price { color: var(--ink-2); font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt-dims { color: var(--ink-3); font: 400 .75rem/1.3 var(--font-mono); white-space: nowrap; }
@media (max-width: 420px) { .size-opt { column-gap: 10px; padding: 12px; } }

.drop {
  position: relative;
  display: grid; justify-items: center; gap: 4px;
  padding: 24px 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-m);
  background: var(--paper);
  text-align: center;
  transition: border-color .15s, background-color .15s, padding .15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fff; }
.drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop svg { color: var(--accent); }
.drop-title { font-weight: 600; }
.drop-title u { text-underline-offset: 3px; }
.drop.is-compact { grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; padding: 12px 16px; }
.drop.is-compact .hint, .drop.is-compact .drop-drag { display: none; }
@media (hover: none) { .drop-drag { display: none; } }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.file { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--backdrop); }
.file img { width: 100%; height: 100%; object-fit: cover; }
.file.is-main { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.file-pick { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.file-remove {
  position: absolute; top: 4px; right: 4px;
  display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(27, 34, 30, .74); color: #fff;
  cursor: pointer;
}
.file-badge {
  position: absolute; left: 4px; bottom: 4px; padding: 2px 6px;
  border-radius: 4px; background: var(--accent); color: #fff;
  font-size: .625rem; font-weight: 600; pointer-events: none;
}
.file-noprev { display: grid; place-items: center; height: 100%; padding: 6px; color: var(--ink-2); font: 500 .75rem/1.2 var(--font-mono); text-transform: uppercase; }

.later { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: .9375rem; cursor: pointer; }
.later .check { margin: 0; }
.notes { display: grid; gap: 6px; }
.notes:empty { display: none; }
.note { padding: 8px 12px; border-radius: var(--r-s); font-size: .8125rem; line-height: 1.45; }
.note-warn { background: var(--warn-tint); color: var(--warn); }
.note-err { background: var(--err-tint); color: var(--err); }
.note a { font-weight: 600; }

.addons { display: grid; gap: 10px; }
.addon {
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.addon:hover { border-color: var(--ink-2); }
.addon:has(.check:checked) { border-color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.addon-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 14px 16px; cursor: pointer; }
.addon-title { font-weight: 600; }
.addon-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.addon-desc { grid-column: 2 / -1; color: var(--ink-2); font-size: .875rem; }
.addon-extra { display: grid; gap: 6px; padding: 0 16px 16px 48px; }
@media (max-width: 420px) { .addon-extra { padding-left: 16px; } }

.check, .radio {
  appearance: none; -webkit-appearance: none;
  display: grid; place-content: center;
  width: 20px; height: 20px; margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}
.check { border-radius: 5px; }
.check::after { content: ""; width: 10px; height: 6px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; opacity: 0; transform: translateY(-1px) rotate(-45deg); }
.check:checked { border-color: var(--accent); background: var(--accent); }
.check:checked::after { opacity: 1; }
.radio { border-radius: 50%; }
.radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .12s; }
.radio:checked { border-color: var(--accent); }
.radio:checked::after { transform: scale(1); }

.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: .875rem; font-weight: 500; }
.input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: #fff;
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #7A847D; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(138, 34, 56, .16); }
.input[aria-invalid="true"] { border-color: var(--err); }
textarea.input { min-height: 88px; resize: vertical; }
.field-foot { display: flex; gap: 12px; font-size: .8125rem; }
.field-error { color: var(--err); font-size: .8125rem; }
.counter { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.summary { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.summary-rows { display: grid; gap: 6px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); font-size: .9375rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 4px; font-weight: 600; }
.ship-date { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9375rem; font-variant-numeric: normal; }
.ship-date::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3F8F5A; }
.summary-total strong { font-size: 1.625rem; letter-spacing: -0.01em; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .8125rem; }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure svg { flex: none; color: var(--ink-3); }

/* ── Секції ── */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: 16px;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
}
.reel { display: grid; align-content: start; gap: 10px; scroll-snap-align: start; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; border-radius: var(--r-l); background: #1B221E; }
.reel-frame > img, .reel-frame > video, .reel-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.reel-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35));
  cursor: pointer;
}
.reel-play span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(251, 252, 249, .92); color: var(--ink); }
.reel-empty {
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 20px;
  background: repeating-linear-gradient(135deg, rgba(27, 34, 30, .045) 0 12px, transparent 12px 24px), var(--backdrop);
  color: var(--ink-2); font-size: .875rem; text-align: center;
}
.reel figcaption { font-weight: 500; }

.custom { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.custom-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px;
  padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-l); background: var(--accent-tint);
}
.custom-card .lede { margin-top: 10px; }
.custom-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .custom-card { grid-template-columns: minmax(0, 1fr); } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.step { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); }
.step-num { color: var(--accent); font-family: var(--font-display); font-size: 2.75rem; font-stretch: 76%; font-style: italic; font-weight: 500; line-height: 1; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { display: grid; align-content: start; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); }
.review blockquote { font-size: 1.0625rem; }
.review figcaption { font-size: .9375rem; font-weight: 600; }
.review-shot { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--r-m); }
.review.is-sample { border-style: dashed; background: transparent; color: var(--ink-2); }
@media (max-width: 900px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.terms { display: grid; margin: 0; }
.term { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 6px 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.term:last-child { border-bottom: 1px solid var(--line); }
.term dt { font-weight: 600; }
.term dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .term { grid-template-columns: minmax(0, 1fr); } }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px;
  font-size: 1.0625rem; font-weight: 600;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat; }
.faq-body { max-width: 40rem; padding-bottom: 20px; color: var(--ink-2); }


/* ── Липка панель на телефоні ── */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 249, .97);
  visibility: hidden;
  transform: translateY(110%);
  transition: transform .25s ease, visibility 0s linear .25s;
}
.buybar.is-visible { visibility: visible; transform: none; transition: transform .25s ease, visibility 0s; }
.buybar-info { display: grid; min-width: 0; line-height: 1.25; }
.buybar-info span { overflow: hidden; color: var(--ink-2); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.buybar-info strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.buybar .btn { flex: none; margin-left: auto; }
@media (min-width: 901px) { .buybar { display: none; } }

/* ── Оформлення ── */
.checkout {
  width: min(560px, 100% - 32px);
  max-height: min(90vh, 920px);
  max-height: min(90dvh, 920px);
  padding: 0;
  overflow: hidden;
  border: 0; border-radius: var(--r-l);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(20, 26, 22, .45);
}
.checkout[open] { display: flex; flex-direction: column; animation: rise .28s cubic-bezier(.2, .7, .2, 1); }
.checkout::backdrop { background: rgba(20, 26, 22, .55); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.checkout-title { font-size: 1.9rem; }
.icon-btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.checkout-body { display: grid; gap: 24px; padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.checkout-foot { display: grid; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.checkout-foot .hint { text-align: center; }
@media (max-width: 600px) {
  .checkout { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}

.mini { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-m); background: var(--ground); }
.mini img { width: 56px; height: 79px; object-fit: cover; border-radius: 3px; }
.mini.no-photo { grid-template-columns: minmax(0, 1fr); }
.mini-title { font-weight: 600; }
.mini-total { margin-top: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }

.form-block { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field-row.field-row-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Список підказок Нової Пошти */
.combo { position: relative; }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5;
  max-height: 280px; margin: 0; padding: 4px;
  overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: #fff;
  box-shadow: 0 12px 30px -12px rgba(20, 26, 22, .35);
  list-style: none;
}
.combo-opt { display: grid; gap: 2px; padding: 10px 12px; border-radius: 4px; font-size: .9375rem; line-height: 1.35; cursor: pointer; }
.combo-opt:hover, .combo-opt[aria-selected="true"] { background: var(--ground); }
.combo-sub { color: var(--ink-3); font-size: .8125rem; }
.combo-status { padding: 10px 12px; color: var(--ink-3); font-size: .875rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: .9375rem; cursor: pointer; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.pay { display: grid; gap: 8px; }
.pay-opt { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 16px; }
.opt-title { display: block; font-weight: 600; }
.pay-marks { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.pay-mark { padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-2); font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.opt-desc { display: block; margin-top: 2px; color: var(--ink-2); font-size: .875rem; }

.progress { height: 4px; overflow: hidden; border-radius: 2px; background: var(--line); }
.progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; justify-items: start; gap: 14px; }
.done-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
.done-title { font-size: 2.2rem; }
.order-no { padding: 3px 8px; border-radius: 4px; background: var(--ground); font-family: var(--font-mono); }

/* Поля тексту з design.json */
.text-fields { display: grid; gap: 12px; }
textarea.input-2 { min-height: 70px; resize: none; }
.link-btn { margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent); font-size: .8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Каталог ── */
/* «Кому подарувати» на /posters/ */
.aud-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.aud { display: grid; align-content: start; gap: 8px; padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); }
.aud .h3 { margin: 0; }
.aud p { margin: 0; font-size: .9375rem; }
.aud .muted { line-height: 1.55; }
.aud-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.aud-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.aud-links a:hover { text-decoration: underline; }

/* Унікальні блоки сторінки дизайну (design.json → about) */
.points { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.points li:last-child { padding-bottom: 0; border-bottom: 0; }
.points b { font-weight: 600; }
.points span { color: var(--ink-2); }
.lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lines li { position: relative; padding-left: 22px; color: var(--ink-2); }
.lines li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.about-body .hint { margin: 18px 0 0; }

.catalog-hero { padding-block: clamp(16px, 3vw, 40px) clamp(24px, 4vw, 44px); }
.catalog-hero .wrap { display: grid; gap: 14px; }
.catalog { padding-bottom: clamp(48px, 7vw, 88px); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.card { display: grid; align-content: start; gap: 12px; height: 100%; color: inherit; text-decoration: none; }
.card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-l); background: var(--backdrop); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: grid; gap: 4px; }
.card-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.card:hover .card-title { color: var(--accent); }
.card-desc { color: var(--ink-2); font-size: .875rem; }
.card-price { margin-top: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .card-desc { display: none; } .card-title { font-size: .9375rem; } }
