/* Бант · нейтральная тема с яркими акцентами: тёплый светлый фон, графит, коралл, солнечный жёлтый */
:root {
  --ink: #1F1D1B;
  --ink-2: #3A3632;
  --muted: #6B645C;
  --bg: #F6F3EE;
  --bg-alt: #EDE7DD;
  --surface: #FFFFFF;
  --line: #E2DACD;
  --coral: #FF5A36;
  --coral-hover: #FF7556;
  --coral-text: #D9381C;   /* коралл для текста на светлом — читается */
  --sun: #FFC93C;
  --sun-soft: #FFF1C9;
  --coral-soft: #FFE3DB;
  --radius: 20px;
  --gutter: 40px;
  --text: var(--ink);
  --text-2: var(--ink-2);
  --accent: var(--coral-text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral-text); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral-text); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.alt { background: var(--bg-alt); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); font-weight: 800; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--coral); }
.h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.025em; }
/* маркер-выделение слова в заголовке */
.mark { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--coral); color: var(--ink); font-weight: 800; font-size: 16px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--coral-hover); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: var(--ink-2); color: #FFFFFF; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--coral-text); }
.icon-btn {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 999px; border: 0;
  background: var(--coral); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--coral-hover); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.pill-btn {
  height: 46px; min-width: 46px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--ink); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 800; cursor: pointer;
}
.pill-btn:hover { background: var(--ink-2); }
.pill-btn [data-cart-count] { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.burger { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.burger:hover { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.stepper { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.stepper button { width: 40px; height: 46px; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 16px; text-align: center; font-weight: 800; font-size: 14px; }

/* ---------- шапка ---------- */
.header { background: rgba(246, 243, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .26em; color: var(--ink); }
.logo::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--coral); box-shadow: 8px 8px 0 -2px var(--sun); margin-right: 8px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--coral); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }
.mobile-nav { display: flex; flex-direction: column; padding: 4px var(--gutter) 16px; font-size: 16px; font-weight: 700; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- коробка-иллюстрация ---------- */
.gift { position: relative; width: 180px; height: 180px; --box: var(--coral); --ribbon: var(--sun); flex-shrink: 0; }
.gift i { position: absolute; display: block; }
.gift .g-body { left: 14px; bottom: 0; width: 152px; height: 122px; background: var(--box); border-radius: 8px; box-shadow: 0 18px 30px rgba(31, 29, 27, .18); }
.gift .g-lid { left: 0; top: 36px; width: 180px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--box), #fff 18%); }
.gift .g-rib { left: 77px; top: 36px; width: 26px; height: 144px; background: var(--ribbon); }
.gift .g-bl, .gift .g-br { top: 6px; width: 46px; height: 32px; border: 7px solid var(--ribbon); }
.gift .g-bl { left: 44px; border-radius: 50% 50% 8px 50%; transform: rotate(-12deg); }
.gift .g-br { left: 90px; border-radius: 50% 50% 50% 8px; transform: rotate(12deg); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: 72px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero .h1 { max-width: 920px; }
.hero-lead { max-width: 540px; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.star { position: absolute; pointer-events: none; }
.arches { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 36px; }
/* один-два праздника — не растягиваем на всю ширину, а ставим по центру */
.arches[data-count="1"] { grid-template-columns: minmax(0, 300px); justify-content: center; }
.arches[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.arch {
  height: 320px; border-radius: 200px 200px 24px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 16px 28px;
  transition: transform .2s;
}
.arch:hover { transform: translateY(-4px); }
.arch .gift { transform: scale(.88); transform-origin: center bottom; }
.arch-name { font-weight: 800; font-size: 20px; line-height: 1.2; }

/* ---------- секции ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; margin-top: 36px; }
.product { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding-bottom: 22px; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 14px 34px rgba(31, 29, 27, .10); transform: translateY(-2px); }
.product > :not(.product-art) { padding-left: 22px; padding-right: 22px; }
/* фото в карточке — квадрат: подходит и для вертикальных, и для горизонтальных снимков */
.product-art { position: relative; aspect-ratio: 1 / 1; background: var(--coral-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px; }
.product-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-art .gift { transform: scale(.95); }
.product-name { font-weight: 800; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.product-desc { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 18px; white-space: nowrap; }

.empty { padding: 48px 24px; border: 1.5px dashed #CFC5B5; border-radius: var(--radius); text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }

.promo { background: var(--coral); color: var(--ink); }
.promo-row { padding-top: 60px; padding-bottom: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.promo h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; max-width: 720px; }
.promo h2 span { box-shadow: inset 0 -.32em 0 var(--sun); }
.promo a:hover { color: #FFFFFF; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.step-num { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; background: var(--sun); color: var(--ink); }
.step:nth-child(2) .step-num { background: var(--coral); }
.step:nth-child(3) .step-num { background: var(--ink); color: #FFFFFF; }
.step h3 { font-weight: 800; font-size: 18px; }
.step p { font-size: 15px; color: var(--muted); }

.corp { border-radius: 28px; background: var(--ink); color: #FFFFFF; padding: 48px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.corp::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); opacity: .9; }
.corp > * { position: relative; z-index: 1; }
.corp-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.corp-text p { font-size: 16px; color: #CFC8BE; max-width: 540px; }

.contact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.contact-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 560px; margin-top: 12px; }
.contact-form .input { flex: 1 1 200px; }
.form-msg { font-size: 14px; min-height: 22px; }
.form-msg.ok { color: #1E7A4C; }
.form-msg.err { color: var(--coral-text); }

.input, .textarea {
  width: 100%; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 15px;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .85; }
.textarea { height: auto; min-height: 96px; padding: 14px 18px; border-radius: 16px; line-height: 1.5; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.footer { background: var(--ink); color: #CFC8BE; }
.footer .logo { color: #FFFFFF; }
.footer-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: 14px; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-contacts a:hover, .footer-legal a:hover { color: var(--sun); }
.footer-legal { width: 100%; font-size: 13px; color: #9C958B; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { text-decoration: underline; }

/* ---------- конструктор ---------- */
.intro { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.builder { padding-top: 56px; padding-bottom: 112px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.builder-steps { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 60px; }
.bstep { display: flex; flex-direction: column; gap: 20px; }
.bstep-head { display: flex; flex-direction: column; gap: 4px; }
.bstep-num { font-size: 13px; color: var(--coral-text); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bstep-title { font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.size {
  padding: 16px; border-radius: 16px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
}
.size[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sun-soft); }
.size-name { font-weight: 800; font-size: 15px; }
.size-meta { font-size: 13px; color: var(--muted); }
.colors-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch[aria-pressed="true"] span { box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 4px var(--ink); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 20px; padding-top: 6px; }
.item { background: var(--surface); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; }
.item > :not(.item-tile) { padding-left: 14px; padding-right: 14px; }
.item-tile { aspect-ratio: 1 / 1; background: var(--coral-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.item-tile img { width: 100%; height: 100%; object-fit: cover; }
.item-tile .gift { transform: scale(.6); }
.item-name { font-weight: 800; font-size: 15px; line-height: 1.35; }
.item-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.item-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

.summary {
  flex: 1 1 320px; min-width: 0; background: var(--surface); border-radius: 24px; border-top: 6px solid var(--coral);
  padding: 28px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; box-shadow: 0 10px 30px rgba(31, 29, 27, .06);
}
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-head h2 { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.summary-art { height: 190px; border-radius: 16px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.summary-art .gift { transform: scale(.8); }
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.meter-bar { height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.meter-bar i { display: block; height: 6px; width: 0; background: var(--coral); border-radius: 999px; transition: width .2s; }
.full-note { font-size: 13px; color: var(--coral-text); font-weight: 700; }
.chosen { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 12px; }
.chosen-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.x-btn { width: 44px; height: 40px; flex-shrink: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.x-btn:hover { color: var(--coral-text); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; }
.total-row b { font-weight: 800; font-size: 22px; }
.mbar { display: none; }

/* ---------- корзина ---------- */
.sheet {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(460px, 100%); max-width: 100%;
  border: 0; padding: 0; background: var(--bg); color: var(--ink);
}
.sheet::backdrop { background: rgba(31, 29, 27, .45); }
.sheet-inner { min-height: 100%; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 24px; background: var(--ink); color: #FFFFFF; position: sticky; top: 0; z-index: 1; }
.sheet-head h2 { font-weight: 800; font-size: 20px; }
.sheet-head .icon-btn { background: transparent; color: #FFFFFF; }
.sheet-head .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.sheet-body { padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.cart-line { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-line-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.cart-line-name { font-weight: 800; }
.cart-line-items { font-size: 13px; color: var(--muted); }
.cart-line-ctrl { display: flex; justify-content: space-between; align-items: center; }
.link-btn { min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--coral-text); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field > span { color: var(--ink-2); font-weight: 700; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; cursor: pointer; }
.radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.radio input:focus-visible + span { outline: 2px solid var(--coral-text); outline-offset: 2px; }
.note { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.done { text-align: center; padding: 48px 8px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done h3 { font-weight: 800; font-size: 24px; letter-spacing: -.01em; }

/* ---------- открыть подробнее ---------- */
button.product-art, button.item-tile { width: 100%; border: 0; padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
button.product-art img, button.item-tile img { transition: transform .3s; }
button.product-art:hover img, button.item-tile:hover img { transform: scale(1.03); }
.open-link { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.open-link:hover { color: var(--coral-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.item-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.detail {
  width: min(860px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 48px);
  border: 0; padding: 0; border-radius: 28px; background: var(--surface); color: var(--ink); overflow: auto;
  box-shadow: 0 30px 80px rgba(31, 29, 27, .3);
}
.detail::backdrop { background: rgba(31, 29, 27, .5); }
.detail-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 420px; }
/* в открытой карточке фото показывается целиком, без обрезки */
.detail-art { display: flex; align-items: center; justify-content: center; min-height: 420px; max-height: calc(100vh - 48px); overflow: hidden; }
.detail-art img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.detail-art .gift { transform: scale(1.1); }
.detail-body { padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 40px; }
.detail-tags span { padding: 4px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--ink); font-size: 12px; font-weight: 800; }
.detail-title { font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; padding-right: 40px; }
.detail-text { font-size: 15px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; }
.detail-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-price { font-weight: 800; font-size: 26px; }
.detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.detail-close:hover { background: var(--sun); }

/* ---------- варианты ---------- */
.variants-hint { display: inline-flex; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--sun-soft); color: var(--ink); font-size: 12px; font-weight: 800; }
.var-label { font-size: 14px; color: var(--ink-2); }
.var-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.var-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.var-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-left: -8px; }
.var-chip:hover { border-color: var(--ink); }
.var-chip[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sun-soft); }
.var-rows { display: flex; flex-direction: column; gap: 8px; }
.var-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 8px; border-radius: 16px; border: 1.5px solid var(--line); }
.var-row.is-preview { border-color: var(--ink); background: var(--sun-soft); }
.var-pick { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.var-pick img, .var-dot { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.var-dot { background: var(--coral-soft); }
.var-name { display: block; font-weight: 800; font-size: 14px; line-height: 1.3; }
.var-price { display: block; font-size: 13px; color: var(--muted); }

/* ---------- промокод ---------- */
.promo-box { padding: 16px; border-radius: 16px; background: var(--surface); border: 1.5px dashed var(--line); }
.promo-input-row { display: flex; gap: 8px; }
.promo-input-row .input { flex: 1; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.promo-input-row .input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.promo-input-row .btn { height: 54px; padding: 0 20px; font-size: 15px; flex-shrink: 0; }
.promo-box .form-msg { margin-top: 8px; min-height: 0; }
.promo-on { border-style: solid; border-color: var(--sun); background: var(--sun-soft); }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.totals { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.totals > div { display: flex; justify-content: space-between; }
.totals-discount { color: #1E7A4C; font-weight: 700; }
.totals + .total-row { border-top: 0; padding-top: 4px; }

/* ---------- плашки «Хит», «Новинка» ---------- */
.detail-art { position: relative; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 4px 12px rgba(31, 29, 27, .12); transform: rotate(-3deg);
}
.badge-hit { background: var(--coral); color: var(--ink); }
.badge-new { background: var(--sun); color: var(--ink); }
.badge-sale { background: var(--ink); color: var(--sun); }
.badge-other { background: var(--ink); color: #FFFFFF; }
.detail-art .badge { top: 20px; left: 20px; font-size: 13px; padding: 8px 16px; }

/* ---------- мобильная версия ---------- */
/* «фото может отличаться» */
.photo-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; }
.photo-note > span:first-child { color: var(--coral-text); font-weight: 800; flex: none; }
.sheet .photo-note { margin: 0; }

/* объявление вверху сайта */
.announce { background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 600; }
.announce-row { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.announce p { margin: 0; text-align: center; line-height: 1.4; flex: 1; white-space: pre-line; }
.announce p::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 10px; vertical-align: 1px; }
.announce-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; display: grid; place-items: center; }
.announce-x:hover { color: #FFFFFF; background: rgba(255,255,255,.1); }

/* открытка в корзине */
.card-add { align-self: flex-start; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.card-add:hover { border-color: var(--coral); color: var(--coral-text); }
.card-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; background: var(--sun-soft); border-radius: 10px; padding: 8px 12px; }
.card-text-label { font-weight: 700; }
.card-text-body { color: var(--ink-2); flex: 1 1 160px; overflow-wrap: anywhere; white-space: pre-line; }
.card-text .link-btn { min-height: auto; text-decoration: underline; }
.card-edit { display: flex; flex-direction: column; gap: 8px; }
.card-edit-actions { display: flex; gap: 16px; align-items: center; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* экран после заявки */
.done-num { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--sun-soft); border-radius: 16px; padding: 12px 24px; }
.done-num span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.done-num b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.done-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.done-links .btn { flex: 1 1 220px; max-width: 300px; }

/* поделиться в карточке */
.detail-actions { display: flex; gap: 8px; align-items: center; }

/* 18+ */
.adult-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(135deg, #2A2724 0 14px, #24211F 14px 28px); color: #FFFFFF; cursor: pointer; }
.adult-mark { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--coral); display: grid; place-items: center; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.adult-text { font-size: 13px; font-weight: 600; color: #CFC8BE; padding: 0 12px; text-align: center; }
.item-tile { position: relative; }
.item.is-adult .adult-mark { width: 48px; height: 48px; font-size: 16px; }
.age { border: 0; border-radius: 22px; padding: 32px 28px 28px; width: min(400px, calc(100% - 32px)); text-align: center; background: var(--surface); color: var(--ink); }
.age::backdrop { background: rgba(31, 29, 27, .6); backdrop-filter: blur(4px); }
.age h2 { font-size: 22px; font-weight: 800; margin: 12px 0 8px; letter-spacing: -.01em; }
.age p { font-size: 14px; margin: 0 0 20px; }
.age-badge { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ink); color: #FFFFFF; border: 3px solid var(--coral); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.age-actions { display: flex; flex-direction: column; gap: 8px; }

/* кнопка «Связаться» */
.help { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.help-btn { height: 56px; min-width: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--coral); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 10px 28px rgba(255, 90, 54, .35); transition: background .15s, transform .15s; }
.help-btn:hover { background: var(--coral-hover); transform: translateY(-1px); }
.help-x { display: none; }
.help.is-open .help-x { display: grid; }
.help.is-open .help-ico, .help.is-open .help-label { display: none; }
.help.is-open .help-btn { padding: 0; width: 56px; justify-content: center; background: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.help-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; width: 260px; box-shadow: 0 16px 40px rgba(31, 29, 27, .16); display: flex; flex-direction: column; gap: 4px; }
.help-menu[hidden] { display: none; }
.help-title { font-size: 13px; color: var(--muted); margin: 2px 6px 6px; line-height: 1.4; }
.help-link { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.help-link:hover { background: var(--bg); }
.help-link span { width: 24px; text-align: center; flex: none; }

@media (max-width: 760px) {
  :root { --gutter: 20px; --radius: 16px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-row { height: 64px; }
  .logo { font-size: 17px; }
  .pill-btn { height: 44px; padding: 0 14px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 27px; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 18px; }
  .hero-lead { font-size: 16px; }
  .star { display: none; }
  .hero-actions .btn { flex: 1 1 auto; height: 52px; }
  .arches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .arches[data-count="1"] { grid-template-columns: minmax(0, 150px); }
  .arches[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 150px)); }
  .arch { height: 170px; border-radius: 100px 100px 14px 14px; padding: 0 6px 14px; gap: 8px; }
  .arch .gift { zoom: .5; transform: none; }
  .arch-name { font-size: 13px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .product { gap: 8px; padding-bottom: 14px; border-radius: 16px; }
  .product:hover { transform: none; }
  .product > :not(.product-art) { padding-left: 12px; padding-right: 12px; }
  .product-art { margin-bottom: 2px; }
  .product-art .gift { transform: scale(.62); }
  .product-name { font-size: 15px; }
  .product-desc { font-size: 13px; }
  .price { font-size: 15px; }
  .icon-btn { width: 44px; height: 44px; }
  .promo-row { padding-top: 40px; padding-bottom: 40px; }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .step { padding: 20px; }
  .corp { padding: 28px 24px; gap: 20px; border-radius: 20px; }
  .corp::after { width: 120px; height: 120px; right: -40px; top: -40px; }
  .intro { padding-top: 32px; padding-bottom: 24px; }
  .builder { padding-top: 28px; padding-bottom: 40px; gap: 32px; }
  .builder-steps { gap: 40px; }
  .bstep-title { font-size: 22px; }
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .size { padding: 12px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item-tile .gift { transform: scale(.55); }
  .item-note { display: none; }
  .summary { padding: 20px; position: static; }
  .summary-art { display: none; }
  .mbar {
    display: flex; position: sticky; bottom: 0; z-index: 5; background: var(--ink); color: #FFFFFF;
    padding: 10px var(--gutter); align-items: center; justify-content: space-between; gap: 12px;
  }
  .mbar .muted { color: #CFC8BE; }
  .mbar .btn { height: 44px; padding: 0 20px; font-size: 14px; }
  .sheet-body { padding: 16px 20px 28px; }
  .detail { width: 100%; max-height: 92%; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .detail-inner { grid-template-columns: 1fr; min-height: 0; }
  .detail-art { min-height: 0; height: auto; aspect-ratio: 1 / 1; max-height: 56vh; }
  .detail-art img { max-height: 56vh; }
  /* с фото — высота по самому фото, без пустых полей */
  .detail-art:has(img) { aspect-ratio: auto; }
  .detail-art:has(img) img { height: auto; }
  .detail-art .gift { transform: scale(.85); }
  .detail-body { padding: 22px 20px 28px; gap: 12px; }
  .detail-title { font-size: 24px; padding-right: 0; }
  .detail-tags { padding-right: 0; }
  .detail-buy .btn { flex: 1 1 auto; }
  .detail-actions { flex: 1 1 auto; }
  .announce { font-size: 13px; }
  .help { right: 16px; bottom: 16px; }
  .help-btn { height: 52px; min-width: 52px; padding: 0 14px; }
  .help-label { display: none; }
  .help.is-open .help-btn { width: 52px; }
  .has-mbar .help { bottom: 80px; }
  .adult-text { display: none; }
  .badge { top: 8px; left: 8px; padding: 4px 9px; font-size: 10px; }
}

/* ---------- галерея в карточке ---------- */
.detail-art.has-gal { align-items: stretch; }
.gal { position: relative; width: 100%; outline: none; }
.gal:focus-visible { box-shadow: inset 0 0 0 3px var(--sun); }
.gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gal-slide img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; padding-bottom: 4px; }
.gal-nav:hover { background: var(--sun); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: transform .2s, background .2s; }
.gal-dots i.on { background: #fff; transform: scale(1.3); }
.gal-count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(31,29,27,.55); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 760px) {
  .gal-nav { display: none; }
  .detail-art.has-gal { aspect-ratio: 1 / 1; }
  .gal-slide img { max-height: 56vh; }
}
