/* ==========================================================================
   Царь-портрет — стили сайта
   ========================================================================== */
:root {
  --navy-950: #061430;
  --navy-900: #0a2752;
  --navy-800: #012d6b;
  --navy-600: #2a4f8f;
  --gold-700: #a86a14;
  --gold-600: #c98421;
  --gold-500: #e0a13e;
  --gold-400: #ecac44;
  --gold-300: #f4c76e;
  --gold-100: #fbecc8;
  --cream: #faf6ec;
  --paper: #fffdf8;
  --ink: #15203a;
  --muted: #5b6480;
  --line: #e9e0cc;
  --red: #a3202f;
  --green: #1f7a4d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 39, 82, .06);
  --shadow: 0 14px 40px rgba(10, 39, 82, .12);
  --gold-grad: linear-gradient(135deg, #f7d58a 0%, #e0a13e 45%, #c98421 70%, #f0c063 100%);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--gold-grad); color: var(--navy-950); box-shadow: 0 6px 18px rgba(201, 132, 33, .35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { color: var(--navy-950); box-shadow: 0 10px 26px rgba(201, 132, 33, .45), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 6px 18px rgba(1, 45, 107, .25); }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-800); box-shadow: inset 0 0 0 2px var(--navy-800); }
.btn-ghost:hover { background: var(--navy-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1.05em 2.1em; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-800); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Промо и шапка ---------- */
.promo-bar {
  background: var(--navy-950); color: var(--gold-300); text-align: center;
  font-size: .86rem; font-weight: 600; padding: .5em 1em; letter-spacing: .02em;
}
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-right: auto; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .96rem; position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-500); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: var(--navy-800); transition: background .2s; }
.cart-link:hover { background: var(--gold-100); color: var(--navy-800); }
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--paper);
}
.cart-count[hidden] { display: none; }
.cart-count.bump, .cart-fab-count.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--navy-800); }
.burger svg { width: 26px; height: 26px; }

/* ---------- Плавающая корзина ---------- */
.cart-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 44; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800); color: #fff;
  box-shadow: 0 10px 28px rgba(6, 20, 48, .35), 0 0 0 3px rgba(255, 253, 248, .9);
  transition: transform .2s ease, background .2s ease; animation: fab-in .35s ease;
}
.cart-fab:hover { color: #fff; background: var(--navy-900); transform: translateY(-3px); }
.cart-fab[hidden] { display: none; }
.cart-fab svg { width: 28px; height: 28px; }
.cart-fab-count {
  position: absolute; top: -4px; right: -4px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
  background: var(--red); color: #fff; font-size: .8rem; font-weight: 800; line-height: 1;
  display: grid; place-items: center; border: 2px solid var(--paper);
}
@keyframes fab-in { from { transform: scale(.6); opacity: 0; } }
body.has-order-bar .cart-fab { bottom: 104px; }

/* ---------- Баннер cookie ---------- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 130; max-width: 560px; width: calc(100% - 32px);
  background: var(--navy-950); color: #dfe6f5; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(6, 20, 48, .35); display: flex; flex-direction: column; gap: 12px; font-size: .88rem; line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--gold-300); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Сообщения ---------- */
/* Всплывающие уведомления (сообщения после действий: «Портрет добавлен в корзину» и т.п.) */
.flash-stack { position: fixed; top: 120px; right: 20px; z-index: 125; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.flash {
  pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 10px 14px 14px;
  box-shadow: 0 16px 40px rgba(6, 20, 48, .18), 0 0 0 1px rgba(10, 39, 82, .06);
  animation: flash-in .4s cubic-bezier(.2, .9, .3, 1.15); transition: opacity .3s ease, transform .3s ease;
}
.flash.is-hiding { opacity: 0; transform: translateX(24px); }
.flash-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.flash-icon svg { width: 20px; height: 20px; }
.flash-success .flash-icon { background: #dff3e8; color: var(--green); }
.flash-error .flash-icon, .flash-warning .flash-icon { background: #fde4e4; color: var(--red); }
.flash-info .flash-icon, .flash-debug .flash-icon { background: var(--gold-100); color: var(--gold-700); }
.flash-text { flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.35; color: var(--navy-900); }
.flash-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .15s, color .15s; }
.flash-close:hover { background: var(--cream); color: var(--ink); }
.flash-close svg { width: 16px; height: 16px; }
.flash::after {  /* полоска времени до автоскрытия */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left;
  animation: flash-timer var(--flash-time, 5s) linear forwards;
}
.flash:hover::after { animation-play-state: paused; }
.flash-success::after { background: var(--green); }
.flash-error::after, .flash-warning::after { background: var(--red); }
.flash-info::after, .flash-debug::after { background: var(--gold-500); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes flash-timer { to { transform: scaleX(0); } }
@media (max-width: 640px) {
  .flash-stack { left: 16px; right: 16px; width: auto; }
}

.message { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; border-left: 4px solid var(--navy-800); box-shadow: var(--shadow-sm); }
.message.success { border-color: var(--green); }
.message.error { border-color: var(--red); }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-navy { background: radial-gradient(1200px 500px at 20% 0%, #163a78 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #dfe6f5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-navy .section-head p { color: #b9c6e2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-700);
}
.section-navy .eyebrow { color: var(--gold-300); }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 0; color: var(--gold-500); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); display: block; }

/* ---------- Рама (золочёный багет) ---------- */
.frame {
  position: relative; padding: 12px; border-radius: 6px;
  background: linear-gradient(145deg, #f9dc93, #c98421 30%, #f4c76e 52%, #a86a14 78%, #e7b65a);
  box-shadow: 0 24px 60px rgba(6, 20, 48, .35), inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.frame::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(90, 50, 5, .45); border-radius: 3px; pointer-events: none;
}
.frame > img, .frame > .frame-inner { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.frame-sm { padding: 7px; }
.frame-sm::before { inset: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 84px; background:
  radial-gradient(900px 480px at 85% 30%, rgba(236, 172, 68, .22), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(1, 45, 107, .08), transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold-700); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-weight: 600; font-size: .94rem; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 20px; height: 20px; color: var(--gold-600); flex-shrink: 0; }
.hero-visual { position: relative; max-width: 470px; margin-left: auto; width: 100%; }
.hero-visual .frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-before {
  position: absolute; left: -54px; bottom: -34px; width: 40%; background: #fff; padding: 8px 8px 30px; border-radius: 4px;
  box-shadow: 0 16px 40px rgba(6, 20, 48, .28); transform: rotate(-6deg); transition: opacity .5s;
}
.hero-before img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-before span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--muted); }
.hero-arrow { position: absolute; left: 22%; bottom: 31%; width: 74px; color: var(--gold-600); transform: rotate(-10deg); }
.hero-badge {
  position: absolute; right: -14px; top: 26px; background: var(--navy-900); color: var(--gold-300);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); transform: rotate(4deg);
}
.hero-badge b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.hero-slides img { transition: opacity .6s ease; }
.hero-visual > .frame { display: block; }
.hero-before[hidden], .hero-arrow[hidden] { display: none; }
a.hero-badge:hover { color: var(--gold-300); }
a.compare-caption { display: block; }
a.compare-caption:hover { color: var(--gold-300); }
.fade-swap { opacity: 0; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px; position: relative; }
.step-num { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--gold-500); font-weight: 700; margin-bottom: 14px; display: block; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Табы и чипсы ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chips.left { justify-content: flex-start; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: .5em 1.15em; font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--gold-500); color: var(--navy-900); }
.chip.active, .chip[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tab-panel[hidden] { display: none; }

/* ---------- Карточки стилей ---------- */
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.style-card { display: flex; flex-direction: column; color: var(--ink); }
.style-card:hover { color: var(--ink); }
.style-card .frame { transition: transform .25s ease, box-shadow .25s ease; }
.style-card:hover .frame { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(6, 20, 48, .35), inset 0 0 0 2px rgba(255,255,255,.35); }
.style-card .frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e9e2d0; }
.style-card .noimg { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); display: grid; place-items: center; color: var(--gold-300); font-family: var(--font-display); font-size: 1.2rem; padding: 20px; text-align: center; }
.style-card-body { padding: 16px 4px 0; text-align: center; }
.style-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.style-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.style-card .hit { position: absolute; top: 20px; left: 20px; z-index: 2; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* ---------- Сравнение до/после ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.compare { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.4); pointer-events: none; }
.compare .compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-950); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.35); font-size: 1.1rem; letter-spacing: 2px;
}
.compare.is-returning .compare-before { transition: clip-path .6s cubic-bezier(.22, .61, .36, 1); }
.compare.is-returning .compare-handle { transition: left .6s cubic-bezier(.22, .61, .36, 1); }
.compare-label { position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(6, 20, 48, .7); color: #fff; font-size: .75rem; font-weight: 700; pointer-events: none; }
.compare-label.l { left: 12px; } .compare-label.r { right: 12px; }
.compare-caption { text-align: center; margin-top: 16px; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }

/* ---------- Форматы / цены ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.product-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.product-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow); }
.product-badge { position: absolute; top: -12px; left: 24px; background: var(--gold-grad); color: var(--navy-950); font-weight: 800; font-size: .75rem; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.product-icon { width: 46px; height: 46px; color: var(--gold-600); margin-bottom: 14px; }
.product-card h3 { margin-bottom: 6px; }
.product-card p { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.price-from { font-size: .9rem; color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--navy-900); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; margin-left: 8px; }
.discount { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .72rem; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.price-table { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: .95rem; }
.price-table td { padding: 9px 0; border-top: 1px dashed var(--line); }
.price-table td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.price-table s { color: var(--muted); font-weight: 500; margin-right: 6px; font-size: .85rem; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 8px; }
.review img { border-radius: 8px; margin-bottom: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.review footer { font-weight: 700; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--gold-600); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band h2 { text-wrap: balance; }
.cta-band p { color: #b9c6e2; font-size: 1.12rem; max-width: 600px; margin: 0 auto 28px; }
.cta-band .cta-note { font-size: .9rem; color: #8fa0c4; margin: 14px auto 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-950); color: #9fb0d3; padding: 60px 0 30px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: auto; }
.footer-brand span { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-300); font-weight: 700; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c8d3ea; }
.site-footer a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #7f8fb2; }

/* ---------- Страницы ---------- */
.page-head { padding: 54px 0 30px; text-align: center; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.prose { max-width: 780px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose p, .prose li { overflow-wrap: anywhere; }
.doc-meta { color: var(--muted); font-size: .92rem; margin-top: -6px; }
.doc-toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0 8px; font-size: .92rem; }
.doc-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; }
.doc-toc li { margin-bottom: 4px; break-inside: avoid; }
.doc-table { overflow-x: auto; margin: 0 0 1em; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--cream); font-weight: 800; }
.requisites { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.requisites p { margin: 0 0 .5em; }
.requisites p:last-child { margin-bottom: 0; }
.notice { background: var(--gold-100); border: 1px solid #f0d697; border-radius: var(--radius-sm); padding: 14px 18px; color: #6b4a10; font-size: .95rem; }
.notice-info { background: #eaf0fb; border-color: #c9d6f0; color: var(--navy-900); }

/* ---------- Студия ---------- */
.studio { display: grid; grid-template-columns: 370px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
.studio-panel { position: sticky; top: 94px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel-step { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-700); margin-bottom: 8px; }
.panel-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900); font-weight: 700; margin-bottom: 14px; }
.dropzone {
  display: flex; align-items: center; gap: 14px; position: relative;
  border: 2px dashed #cdbf9f; border-radius: var(--radius-sm); padding: 14px 16px; text-align: left; cursor: pointer;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(236,172,68,.05) 12px 24px), #fffcf3; transition: all .2s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold-500); background-color: var(--gold-100); }
.dropzone svg { width: 34px; height: 34px; color: var(--gold-600); flex-shrink: 0; }
.dropzone-text { min-width: 0; line-height: 1.35; }
.dropzone strong { display: block; color: var(--navy-900); }
.dropzone .small { display: block; color: var(--muted); }
.dropzone.has-photos { padding: 10px 14px; }
.dropzone.has-photos svg { width: 26px; height: 26px; }
.photo-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.photo-list:empty { display: none; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(6,20,48,.75); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.photo-thumb.uploading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%23c98421' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 28px no-repeat; }
.tips { margin: 14px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.tips li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.tips li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.panel-divider { height: 1px; background: var(--line); margin: 22px 0; }
.selected-style { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-height: 72px; }
.selected-style img { width: 46px; height: 60px; object-fit: cover; border-radius: 4px; }
.selected-style .ph { width: 46px; height: 60px; border-radius: 4px; background: var(--gold-100); display: grid; place-items: center; color: var(--gold-700); font-size: 1.4rem; }
.selected-style b { display: block; color: var(--navy-900); }
.selected-style span { font-size: .85rem; color: var(--muted); }
.generate-btn { margin-top: 18px; }
.remaining { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 10px; }
.studio-error { margin-top: 12px; color: var(--red); font-size: .9rem; font-weight: 600; }
.studio-error:empty { display: none; }

.studio-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.studio-tab { background: none; border: 0; padding: 12px 18px; font-weight: 800; font-size: 1rem; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; }
.studio-tab[aria-selected="true"] { color: var(--navy-900); border-color: var(--gold-500); }
.studio-tab .count { background: var(--navy-800); color: #fff; font-size: .74rem; border-radius: 999px; padding: 1px 8px; }
.studio-tab .count:empty { display: none; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.pick { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.pick[hidden] { display: none; }
.pick-img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #e9e2d0; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick:hover .pick-img { transform: translateY(-3px); box-shadow: var(--shadow); }
.pick[aria-pressed="true"] .pick-img { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--gold-500), var(--shadow); }
.pick[aria-pressed="true"] .pick-img::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-950); font-weight: 900; display: grid; place-items: center; }
.pick-name { font-weight: 800; margin-top: 10px; line-height: 1.25; font-size: .95rem; }
.pick-desc { font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.styles-more { text-align: center; margin-top: 30px; }
.styles-more[hidden] { display: none; }
.styles-more .btn { min-width: 240px; gap: 10px; }
.styles-more .count { background: var(--navy-800); color: #fff; font-size: .74rem; border-radius: 999px; padding: 1px 8px; }
.pick .hit { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--red); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.result-card { display: flex; flex-direction: column; }
.result-card .frame { margin-bottom: 14px; }
.result-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-radius: 2px; }
.result-img.landscape { aspect-ratio: 4/3; }
.result-img.square { aspect-ratio: 1; }
.result-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.result-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--gold-300); padding: 20px; gap: 14px; }
.result-loading .crown { width: 54px; height: 54px; animation: float 1.6s ease-in-out infinite; }
.result-loading .phrase { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; min-height: 2.6em; }
.result-loading .bar { width: 70%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.result-loading .bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width 1s linear; }
.result-failed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; color: #fff; padding: 20px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.result-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }
.result-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.result-actions .btn { flex: 1; }
.btn-icon { flex-shrink: 0; transition: transform .45s ease; }
.btn:hover .btn-icon { transform: rotate(180deg); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state svg { width: 56px; height: 56px; color: var(--gold-500); margin: 0 auto 12px; }

.mobile-bar { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(6,20,48,.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 48px); max-width: 100%; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 26px; transform: translate(-50%, 40px); opacity: 0; background: var(--navy-950); color: #fff; padding: 14px 18px 14px 22px; border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; transition: all .3s ease; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--gold-300); font-weight: 800; white-space: nowrap; }

/* ---------- Корзина и оформление ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 80px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cart-item { display: grid; grid-template-columns: 112px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item img { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #efebe4; }
.cart-thumb { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 8px; cursor: zoom-in; }
.cart-thumb img { transition: filter .2s ease; }
.cart-thumb:hover img { filter: brightness(.92); }
.cart-thumb-zoom {
  position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 253, 248, .92); color: var(--navy-900); display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(6, 20, 48, .2); transition: transform .2s ease;
}
.cart-thumb:hover .cart-thumb-zoom { transform: scale(1.1); }
.cart-thumb-zoom svg { width: 15px; height: 15px; }
.cart-item h3 { font-size: 1.12rem; margin-bottom: 2px; }
.cart-item .meta { color: var(--muted); font-size: .9rem; }
.cart-item .line-price { text-align: right; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.cart-item .line-price s { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; background: #fff; }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--navy-800); }
.qty button:hover { background: var(--gold-100); }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.item-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.item-controls form { display: inline; }
.remove-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .86rem; text-decoration: underline; margin-top: 10px; padding: 0; }
.remove-btn:hover { color: var(--red); }
.edit-link { color: var(--navy-800); font-size: .86rem; text-decoration: underline; margin-top: 10px; }
.gift-note { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: .84rem; font-weight: 600; margin-top: 2px; }
.summary { position: sticky; top: 94px; }
.summary h3 { font-size: 1.35rem; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.25rem; font-weight: 800; }
.summary-row .free { color: var(--green); font-weight: 800; }
.saving { color: var(--green); font-weight: 700; font-size: .92rem; }
.ship-progress { margin: 12px 0 4px; font-size: .86rem; color: var(--muted); }
.ship-progress .bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.ship-progress .bar i { display: block; height: 100%; background: var(--gold-grad); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 79, 143, .15); }
.field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--red); font-size: .85rem; font-weight: 600; }
.field.has-error input { border-color: var(--red); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
/* .field label и .field input задают блочную подпись и вид текстового поля — для галочки отменяем,
   иначе текст уходит под галочку, а сама галочка получает паддинги и рамку поля. */
.field label.checkbox { display: flex; font-weight: 500; margin-bottom: 0; cursor: pointer; }
.checkbox input, .field .checkbox input {
  flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; box-shadow: none;
  margin: calc((1.45em - 20px) / 2) 0 0;  /* по центру первой строки текста */
  accent-color: var(--navy-800); cursor: pointer;
}
.checkbox > span { flex: 1; min-width: 0; }
.form-section-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900); font-weight: 700; margin: 8px 0 14px; }
/* Доставка СДЭК: город и пункт выдачи */
.free-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #dff3e8; color: var(--green); font-family: var(--font-body); font-size: .78rem; font-weight: 800; vertical-align: middle; }
.cdek { border-radius: var(--radius-sm); }
.cdek-city { position: relative; }
.cdek-city input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; }
.cdek-city input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 79, 143, .15); }
.cdek.has-error .cdek-city input { border-color: var(--red); }
.cdek-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.cdek-suggest[hidden] { display: none; }
.cdek-suggest li { padding: 9px 10px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.cdek-suggest li span { display: block; font-size: .8rem; color: var(--muted); }
.cdek-suggest li.active, .cdek-suggest li:hover { background: #eef2fa; }
.cdek-suggest .cdek-empty { cursor: default; color: var(--muted); }
.cdek-selected { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--navy-800); border-radius: var(--radius-sm); background: #eef2fa; }
.cdek-selected[hidden] { display: none; }
.cdek-pin { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--navy-800); display: grid; place-items: center; }
.cdek-pin svg { width: 20px; height: 20px; }
.cdek-selected-text { flex: 1; min-width: 0; line-height: 1.35; }
.cdek-selected-text b { display: block; }
.cdek-selected-text small { color: var(--muted); font-size: .82rem; }
.cdek-points { margin-top: 14px; }
.cdek-points[hidden] { display: none; }
.cdek-points-head { display: flex; align-items: center; gap: 6px 10px; margin-bottom: 8px; flex-wrap: wrap; }
.cdek-map-btn { margin-left: auto; }
.cdek-selected-actions { display: flex; gap: 14px; flex-shrink: 0; }
.cdek-filter { width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #fff; margin-bottom: 10px; }
.cdek-filter:focus { outline: none; border-color: var(--navy-600); }
.cdek-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.cdek-point { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.35; transition: border-color .15s; }
.cdek-point:hover { border-color: var(--gold-400); }
.cdek-point input { margin-top: 3px; accent-color: var(--navy-800); flex-shrink: 0; }
.cdek-point b { display: block; font-size: .93rem; }
.cdek-point small { color: var(--muted); font-size: .8rem; }
.cdek-point:has(input:checked) { border-color: var(--navy-800); background: #eef2fa; }
.cdek-empty { color: var(--muted); font-size: .9rem; margin: 6px 2px; }
.cdek-status { margin: 10px 0 0; }
.cdek-status[hidden] { display: none; }
.cdek.has-error .cdek-status { color: var(--red); font-weight: 600; }
.cdek .errorlist { list-style: none; padding: 0; margin: 8px 0 0; color: var(--red); font-size: .85rem; font-weight: 600; }

/* Карта пунктов выдачи */
.map-modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 20px; }
.map-modal[hidden] { display: none; }
.map-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 48, .62); backdrop-filter: blur(2px); }
.map-modal-dialog { position: relative; width: min(1000px, 100%); height: min(680px, calc(100vh - 40px)); background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.map-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.map-modal-head b { font-size: 1.05rem; color: var(--navy-900); }
.map-modal-close { width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.map-modal-close:hover { background: var(--gold-100); }
.map-modal-close svg { width: 18px; height: 18px; }
.map-modal-map { flex: 1; position: relative; background: #e8e4dc; }
.map-modal-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); }
.map-modal .leaflet-container { font: inherit; font-size: .9rem; }
.cdek-marker { background: none; border: 0; }
.cdek-marker span { position: absolute; left: 1px; top: 1px; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy-800); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.cdek-marker span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.cdek-marker.is-selected span { background: var(--gold-600); }
.cdek-marker.is-selected { z-index: 1000 !important; }
.map-pop { display: flex; flex-direction: column; gap: 3px; min-width: 190px; }
.map-pop b { font-size: .95rem; color: var(--navy-900); line-height: 1.3; }
.map-pop small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.map-pop .btn { margin-top: 8px; width: 100%; }
.map-modal .marker-cluster-small, .map-modal .marker-cluster-medium, .map-modal .marker-cluster-large { background-color: rgba(1, 45, 107, .22); }
.map-modal .marker-cluster-small div, .map-modal .marker-cluster-medium div, .map-modal .marker-cluster-large div { background-color: rgba(1, 45, 107, .9); color: #fff; font-weight: 800; }
@media (max-width: 640px) {
  .map-modal { padding: 0; }
  .map-modal-dialog { width: 100%; height: 100%; border-radius: 0; }
  .cdek-map-btn { margin-left: 0; width: 100%; }
}

.mini-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.mini-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: #efebe4; }
.mini-item div { flex: 1; line-height: 1.35; }
.mini-item b { white-space: nowrap; }

/* ---------- Заказ ---------- */
.order-hero { text-align: center; padding: 50px 0 30px; }
.order-hero .seal { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: var(--navy-950); box-shadow: 0 10px 30px rgba(201,132,33,.4); }
.order-hero .seal svg { width: 42px; height: 42px; }
.pay-redirect { padding: 80px 0 40px; }
.pay-wait { display: flex; gap: 14px; align-items: flex-start; }
.pay-wait .spinner { flex: 0 0 22px; width: 22px; height: 22px; border-width: 2px; margin-top: 1px; }
.pay-redirect .spinner { width: 56px; height: 56px; margin: 0 auto 24px; }
.pay-redirect-fallback { margin: 24px 0 8px; }
.pay-redirect-fallback p { margin-bottom: 12px; }
.pay-redirect form + a { display: inline-block; margin-top: 18px; }
.timeline { display: flex; justify-content: space-between; margin: 10px 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.timeline li { list-style: none; flex: 1; text-align: center; position: relative; font-size: .82rem; font-weight: 700; color: var(--muted); }
.timeline li::before { content: ""; display: block; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); position: relative; z-index: 1; }
.timeline li.done { color: var(--navy-900); }
.timeline li.done::before { background: var(--gold-grad); border-color: var(--gold-500); }
.timeline li.current::before { box-shadow: 0 0 0 5px rgba(236,172,68,.25); }
.order-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item img { width: 110px; border-radius: 8px; aspect-ratio: 1; object-fit: cover; background: #efebe4; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: var(--gold-100); color: var(--gold-700); }
.status-pill.paid { background: #dff3e8; color: var(--green); }
.status-pill.cancelled { background: #fde4e4; color: var(--red); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .style-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { margin: 0 auto; max-width: 380px; }
  .hero-before { left: -14px; }
  .steps, .reviews, .compare-grid { grid-template-columns: 1fr; }
  .compare-grid { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; max-width: 460px; }
  .studio-panel { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,253,248,.97); border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobile-bar .info { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; }
  .mobile-bar .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar[hidden] { display: none; }
  body.has-mobile-bar { padding-bottom: 76px; }
  body.has-mobile-bar .cart-fab { bottom: 88px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header-inner { height: 64px; gap: 10px; }
  .logo img { height: 40px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .style-card .frame { padding: 7px; }
  .style-card .frame::before { inset: 4px; }
  .style-card h3 { font-size: 1.02rem; }
  .style-card p { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .prose { padding: 24px 18px; }
  .doc-toc ol { columns: 1; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .results-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item img { width: 84px; }
  .cart-thumb-zoom { width: 24px; height: 24px; right: 4px; bottom: 4px; }
  .cart-thumb-zoom svg { width: 13px; height: 13px; }
  .cart-item .line-price { grid-column: 2; text-align: left; }
  .order-item { grid-template-columns: 80px 1fr; }
  .order-item img { width: 80px; }
  .order-item > :last-child { grid-column: 1 / -1; }
  .timeline li { font-size: .7rem; }
  .hero-badge { right: 0; }
}
/* Главная на телефоне: пример «было → стало» виден на первом экране без прокрутки */
@media (max-width: 640px) {
  .hero { padding: 14px 0 44px; }
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; font-size: 1.75rem; text-align: center; margin-bottom: 8px; }
  .hero .eyebrow { order: 2; justify-content: center; margin: 0 0 16px; }  /* на телефоне — под заголовком */
  .hero .eyebrow::before, .hero .eyebrow::after { width: 18px; }
  .hero-visual {
    order: 3; margin: 0 auto 22px;
    max-width: 210px;
    max-width: clamp(165px, calc(75svh - 210px), 250px);  /* подстраиваемся под высоту экрана */
  }
  .hero-visual .frame { padding: 7px; }
  .hero-visual .frame::before { inset: 4px; }
  .hero-before { width: 46%; left: -34%; bottom: -12px; padding: 5px 5px 20px; }
  .hero-before span { font-size: .78rem; bottom: 2px; }
  .hero-arrow { width: 40px; left: 14%; bottom: 30%; }
  .hero-badge { right: -30%; top: 14px; padding: 6px 10px; font-size: .72rem; border-radius: 10px; }
  .hero-badge b { font-size: .9rem; }
  .hero-cta { order: 4; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .hero-cta .btn { width: 100%; }
  .hero .lead { order: 5; font-size: 1rem; text-align: center; margin: 0 auto 16px; }
  .trust-row { order: 6; justify-content: center; font-size: .86rem; gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Поиск стилей в студии ---------- */
.style-search { position: relative; margin-bottom: 14px; }
.style-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.style-search input { width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px 12px 46px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.style-search input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 79, 143, .15); }
.chips.left { margin-bottom: 22px; }

/* ---------- Этапы заказа ---------- */
.steps-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.steps-bar-inner { display: flex; align-items: center; gap: 16px; height: 58px; }
.back-btn, .back-btn-spacer { width: 36px; height: 36px; flex-shrink: 0; }
.back-btn { display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-800); transition: background .15s; }
.back-btn:hover { background: var(--gold-100); color: var(--navy-800); }
.order-steps { display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 0; list-style: none; font-weight: 700; font-size: .92rem; color: var(--muted); }
.order-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.order-steps li + li::before { content: ""; width: 48px; height: 1px; background: #d8ccb0; margin-right: 2px; }
.order-steps .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; border: 1.5px solid currentColor; }
.order-steps .done, .order-steps .current { color: var(--navy-900); }
.order-steps .done .num { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.order-steps .current .num { background: var(--gold-grad); border-color: var(--gold-500); color: var(--navy-950); }

/* ---------- Оформление заказа ---------- */
.customize { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; padding-top: 36px; padding-bottom: 64px; }
.mockup-col { position: sticky; top: 96px; }
.mockup-box { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #efebe4; box-shadow: var(--shadow-sm); }
.mockup-box img { width: 100%; height: 100%; object-fit: cover; }
.mockup-box.is-digital { background: radial-gradient(circle at 50% 35%, #f7f3ec, #e6dfd2); }
.mockup-box.is-digital img { object-fit: contain; padding: 9%; filter: drop-shadow(0 14px 24px rgba(10, 39, 82, .22)); }
.mockup-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 12px; background: rgba(10, 31, 68, .78); color: var(--gold-300); font-family: var(--font-display); font-size: clamp(.6rem, 2.75vw, .95rem); line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.mockup-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(239, 235, 228, .35); opacity: 0; pointer-events: none; transition: opacity .15s; }
.mockup-box.loading .mockup-loading { opacity: 1; transition-delay: .12s; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(10, 39, 82, .15); border-top-color: var(--navy-800); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.zoom-btn { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 253, 248, .92); color: var(--navy-900); display: grid; place-items: center; cursor: zoom-in; }
.zoom-btn:hover { background: #fff; }
.mockup-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

.opt-section { margin-bottom: 24px; }
.opt-section[hidden] { display: none; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.opt-head h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; color: var(--navy-900); margin: 0; }
.opt-head span { font-size: .82rem; color: var(--muted); }
.opt-hint { font-size: .85rem; color: var(--muted); margin: 8px 2px 0; line-height: 1.45; }
.opt-hint:empty { display: none; }
.opt-grid { display: grid; gap: 10px; }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt[hidden] { display: none; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body { display: flex; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s, background .15s; }
.opt:hover .opt-body { border-color: var(--gold-400); }
.opt input:checked + .opt-body { border-color: var(--navy-800); box-shadow: 0 0 0 1px var(--navy-800); background: #eef2fa; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.opt input:disabled + .opt-body { opacity: .45; cursor: not-allowed; }
.opt .star { position: absolute; top: 6px; left: 6px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); display: grid; place-items: center; font-size: 11px; line-height: 1; pointer-events: none; }
.opt .badge-top { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 1; background: var(--navy-800); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.opt-format .opt-body { align-items: stretch; min-height: 72px; }
.opt-format .pic { width: 72px; flex-shrink: 0; display: grid; place-items: center; background: #f4f2ee; }
.opt-format .pic img { width: 100%; height: 100%; object-fit: cover; }
.opt-format .pic svg { width: 50px; height: 50px; }
.opt-format .name { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.02rem; padding: 0 8px; }
.opt-frame .opt-body { flex-direction: column; }
.opt-frame .swatch { height: 50px; background-size: cover; background-position: center; }
.opt-frame .swatch.none { background: #dcdad6; }
.opt-frame .meta { padding: 8px 6px 9px; text-align: center; line-height: 1.25; }
.opt-frame .meta b { display: block; font-size: .95rem; }
.opt-frame .meta small { color: var(--muted); font-size: .8rem; }
.opt-size .opt-body { flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px 12px; min-height: 76px; text-align: center; }
.opt-size .dim { font-size: 1.08rem; font-weight: 800; }
.opt-size .prices { font-size: .86rem; white-space: nowrap; }
.opt-size .prices s { color: var(--muted); margin-right: 3px; }
.opt-size .na { color: var(--muted); }
.print-options { transition: opacity .2s; }
.print-options.is-muted { opacity: .45; }
.print-options.is-muted .opt input:checked + .opt-body { background: #fff; box-shadow: none; border-color: var(--line); }

.gift-row, .switch-row { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.gift-row[hidden] { display: none; }
.delivery-row { margin-top: 10px; }
.gift-row .ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; }
.gift-row .txt, .switch-row .txt { flex: 1; line-height: 1.3; min-width: 0; }
.gift-row .txt b, .switch-row .txt b { display: block; }
.gift-row .txt small, .switch-row .txt small { color: var(--muted); font-size: .82rem; }
.gift-row .val, .switch-row .val { white-space: nowrap; text-align: right; font-size: .92rem; }
.gift-row .val s, .switch-row .val s { color: var(--muted); margin-right: 6px; font-size: .84rem; }
.gift-row .free { color: var(--green); font-weight: 800; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.or-divider[hidden] { display: none; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.switch-row { cursor: pointer; }
.switch-row:hover { border-color: var(--gold-400); }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfc8bb; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + i { background: var(--navy-800); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 253, 248, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(10, 39, 82, .08); }
.order-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.order-bar .info { min-width: 0; line-height: 1.3; }
.order-bar .info b { display: block; font-size: 1.1rem; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-bar .info span { display: block; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-bar .btn { flex-shrink: 0; }
body.has-order-bar { padding-bottom: 88px; }
body.has-order-bar .site-footer { padding-bottom: 40px; }
.customize-faq { padding: 64px 0; }

@media (max-width: 1080px) {
  .customize { grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; }
}
@media (max-width: 900px) {
  .customize { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 22px; }
  .mockup-col { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
  .mockup-band { padding: 6px 8px; }
}
@media (max-width: 640px) {
  .steps-bar-inner { height: 52px; gap: 8px; }
  .back-btn-spacer { display: none; }
  .order-steps { gap: 5px; font-size: .76rem; }
  .order-steps li { gap: 5px; }
  .order-steps li + li::before { width: 10px; }
  .order-steps .num { width: 20px; height: 20px; }
  .opt-grid { gap: 8px; }
  .opt-format .pic { width: 64px; }
  .opt-format .pic svg { width: 42px; height: 42px; }
  .opt-frame .meta small, .opt-size .prices { font-size: .76rem; }
  .opt-size .dim { font-size: .98rem; }
  .opt-size .prices s { display: block; margin: 0; }
  .order-bar-inner { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .order-bar .info b { font-size: .95rem; }
  .order-bar .info span { font-size: .8rem; }
  .order-bar .btn { padding: .85em 1.1em; font-size: .95rem; }
  .order-bar .btn svg { display: none; }
  body.has-order-bar { padding-bottom: 76px; }
  .cart-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .cart-fab svg { width: 25px; height: 25px; }
  body.has-order-bar .cart-fab, body.has-mobile-bar .cart-fab { bottom: 84px; }
}

@media (max-width: 380px) {
  .hero .eyebrow { letter-spacing: .12em; white-space: nowrap; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
  .order-steps { font-size: .74rem; gap: 4px; }
  .order-steps li:not(.current) { font-size: 0; gap: 0; }  /* у пройденных и будущих шагов — только номер */
  .order-steps li + li::before { width: 14px; margin-right: 4px; }
}

/* ---------- Страница цен ---------- */
.price-blocks { display: flex; flex-direction: column; gap: 26px; }
.price-block { display: grid; grid-template-columns: 300px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-block-img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: #efebe4; }
.price-block-body { padding: 26px 30px; min-width: 0; }
.price-block h2 { font-size: 1.7rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.price-block h2 .price-from { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--gold-700); }
.price-block p { margin-bottom: 12px; }
.price-matrix-wrap { overflow-x: auto; }
.price-matrix { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-matrix th, .price-matrix td { padding: 10px 8px; border-top: 1px dashed var(--line); text-align: right; white-space: nowrap; vertical-align: bottom; }
.price-matrix thead th { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding-top: 0; }
.price-matrix th:first-child { text-align: left; padding-left: 0; }
.price-matrix td:last-child { padding-right: 0; }
.price-matrix tbody th { font-weight: 800; }
.price-matrix s { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.hit-mini { margin-left: 6px; background: var(--red); color: #fff; font-size: .6rem; text-transform: uppercase; font-weight: 800; padding: 1px 6px; border-radius: 999px; vertical-align: middle; letter-spacing: .04em; }
.digital-offer { display: flex; align-items: center; gap: 20px; margin-top: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.digital-offer .product-icon { margin: 0; flex-shrink: 0; }
.digital-offer > div:nth-child(2) { flex: 1; }
.digital-offer h3 { margin-bottom: 2px; }
.digital-offer p { margin: 0; }
.digital-offer-price { white-space: nowrap; text-align: right; display: flex; align-items: baseline; gap: 8px; }
@media (max-width: 900px) {
  .price-block { grid-template-columns: 220px 1fr; }
}
@media (max-width: 640px) {
  .price-block { grid-template-columns: 1fr; }
  .price-block-body { padding: 18px 14px 20px; }
  .price-matrix { font-size: .8rem; }
  .price-matrix th, .price-matrix td { padding: 8px 3px; }
  .price-matrix thead th { font-size: .66rem; letter-spacing: 0; white-space: normal; vertical-align: bottom; }
  .price-matrix s { font-size: .7rem; }
  .hit-mini { display: block; width: max-content; margin: 2px 0 0; }
  .digital-offer { flex-wrap: wrap; padding: 18px; gap: 12px 16px; }
  .digital-offer-price { width: 100%; }
}

/* ---------- Страница стиля ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 18px; font-size: .86rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-700); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.style-hero { padding: 26px 0 80px; background:
  radial-gradient(800px 460px at 20% 30%, rgba(236, 172, 68, .2), transparent 60%), var(--cream); }
.style-hero-grid {
  display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); column-gap: 64px;
  grid-template-areas: "gallery head" "gallery info"; grid-template-rows: auto 1fr; align-items: start;
}
.style-head { grid-area: head; padding-top: 6px; }
.style-head h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); text-wrap: balance; margin-bottom: .4em; }
.style-gallery { grid-area: gallery; position: sticky; top: 96px; }
.style-info { grid-area: info; }
.style-info .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 22px; }
.style-stage { position: relative; }
.style-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e9e2d0; }
.style-main .noimg { aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); display: grid; place-items: center; color: var(--gold-300); font-family: var(--font-display); font-size: 1.4rem; }
.style-main .hit { position: absolute; top: 24px; left: 24px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.style-before {
  position: absolute; left: -30px; bottom: -26px; width: 32%; background: #fff; padding: 6px 6px 24px; border-radius: 4px;
  box-shadow: 0 16px 36px rgba(6, 20, 48, .3); transform: rotate(-5deg); animation: fab-in .3s ease;
}
.style-before[hidden] { display: none; }
.style-before img, .example-before img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.style-before span, .example-before span { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: .9rem; color: var(--muted); }
.style-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 38px; }
.style-thumb { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #e9e2d0; opacity: .7; transition: opacity .15s, box-shadow .15s; }
.style-thumb:hover { opacity: 1; }
.style-thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--gold-500); }
.style-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }


.upload-card {
  border: 2px dashed #cdbf9f; border-radius: var(--radius); padding: 20px 22px 18px; transition: all .2s;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(236,172,68,.05) 12px 24px), #fffcf3;
}
.upload-card.dragover { border-color: var(--gold-500); background-color: var(--gold-100); }
.upload-card-hint { text-align: center; font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.upload-card .tips { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.upload-legal { font-size: .78rem; color: var(--muted); margin: 10px 2px 20px; line-height: 1.45; }
.upload-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; max-width: 1080px; margin: 0 auto; }
.example-card { position: relative; margin: 0 0 18px; }
.example-card .frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; background: #e9e2d0; }
.example-before {
  position: absolute; left: -16px; bottom: -22px; width: 36%; background: #fff; padding: 5px 5px 21px; border-radius: 4px;
  box-shadow: 0 12px 28px rgba(6, 20, 48, .3); transform: rotate(-6deg);
}

.style-article { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }
.style-article h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 1.6em 0 .55em; }
.style-article h2:first-child { margin-top: 0; }
.style-article h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.style-article ul { padding-left: 1.2em; margin: 0 0 1em; }
.style-article li { margin-bottom: .35em; }
.style-article li::marker { color: var(--gold-600); }
.style-article-cta { margin-top: 32px; }
.btn-wrap { white-space: normal; text-wrap: balance; max-width: 100%; }

.upload-overlay { position: fixed; inset: 0; z-index: 115; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 20, 48, .82); }
.upload-overlay[hidden] { display: none; }
.upload-dialog {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 40px); overflow-y: auto;
  background: var(--paper); border-radius: 18px; padding: 26px 26px 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  animation: flash-in .3s ease;
}
.upload-dialog.is-progress { max-width: 420px; padding: 30px 28px 26px; text-align: center; }
.upload-step[hidden] { display: none; }
.upload-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s;
}
.upload-close:hover { background: var(--cream); color: var(--ink); }
.upload-close[hidden] { display: none; }
.upload-close svg { width: 18px; height: 18px; }
.upload-dialog-head { display: flex; align-items: center; gap: 14px; margin: 0 34px 18px 0; }
.upload-dialog-head img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; box-shadow: 0 0 0 3px var(--gold-300), var(--shadow-sm); }
.upload-dialog-kicker { display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-700); margin-bottom: 4px; }
.upload-dialog-title { font-size: 1.35rem; line-height: 1.2; margin: 0; text-wrap: balance; }
body.modal-open { overflow: hidden; }
.upload-photos { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.upload-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); }
.upload-dialog .crown { width: 50px; height: 50px; color: var(--gold-500); margin: 0 auto; animation: float 1.6s ease-in-out infinite; }
.upload-dialog .crown[hidden] { display: none; }
.upload-status { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy-900); margin: 12px 0 4px; }
.upload-error { color: var(--red); font-weight: 600; margin: 8px 0 0; }
.upload-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.upload-actions[hidden] { display: none; }

@media (max-width: 1080px) {
  .style-hero-grid { column-gap: 40px; }
  .example-grid { gap: 40px 28px; }
}
@media (max-width: 900px) {
  .style-hero { padding: 14px 0 56px; }
  .style-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "gallery" "info"; }
  .style-head { text-align: center; padding-top: 0; }
  .style-gallery { position: static; width: 100%; max-width: 400px; margin: 0 auto 34px; }
  .example-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .breadcrumbs { padding-top: 12px; font-size: .8rem; }
  .style-head h1 { font-size: 1.7rem; }
  .style-head .eyebrow { margin-bottom: 8px; }
  .style-gallery { max-width: 300px; margin-bottom: 30px; }
  .style-main { padding: 8px; }
  .style-main::before { inset: 4px; }
  .style-before { left: -18px; bottom: -16px; padding: 4px 4px 18px; }
  .style-before span, .example-before span { font-size: .74rem; bottom: 1px; }
  .style-thumbs { gap: 8px; margin-top: 30px; }
  .style-info .lead { font-size: 1rem; }
  .upload-card { padding: 16px 14px 14px; }
  .upload-dialog { padding: 20px 18px 6px; }
  .upload-dialog-title { font-size: 1.15rem; }
  .upload-dialog-head { gap: 12px; }
  .upload-dialog-head img { width: 48px; height: 64px; }
  .example-grid { grid-template-columns: minmax(0, 1fr); max-width: 330px; gap: 44px; }
  .style-article { font-size: 1rem; }
}
