/* =====================================================================
   Boutique Lunaire — FR STORE 1 · дизайн на основе new24
   Сдержанный: белый фон, чёрные акценты, шрифт DM Sans
   ===================================================================== */
:root {
  --ink: #111111;
  --ink-2: #2B2B2B;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --soft: #F6F6F4;
  --paper: #FFFFFF;
  --red: #D12C2C;
  --red-soft: #FDF3F3;
  --red-line: #F2C4C4;
  --green: #2F7A4F;
  --font: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r: 6px;
  --wrap: 1180px;
  --gutter: 16px;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.ic { width: 22px; height: 22px; flex: none; }
.ic-xl { width: 44px; height: 44px; }

/* ---------- Type ---------- */
.h1, .h2, .h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.h1 { font-size: clamp(26px, 4vw, 34px); }
.h2 { font-size: clamp(21px, 3vw, 26px); }
.h3 { font-size: 18px; margin: 26px 0 8px; }
.kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); }
.link { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; text-align: center;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-line { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-muted { background: #8C8C8C; }
.btn-muted:hover { background: #7A7A7A; }
.is-off { display: none !important; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; height: 36px; display: flex; align-items: center; }
.marquee-track { display: flex; width: max-content; animation: mq 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-group { display: flex; }
.mq-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; font-size: 13px; font-weight: 600; white-space: nowrap; letter-spacing: .02em; }
.mq-item .ic { width: 16px; height: 16px; opacity: .9; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .5); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 62px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.header-inner > .icon-btn:first-child { justify-self: start; margin-left: -10px; }
.cart-btn { justify-self: end; position: relative; margin-right: -10px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand-logo { max-height: 38px; width: auto; }
.brand-word { font-size: 17px; font-weight: 700; letter-spacing: .28em; white-space: nowrap; }
.main-nav { display: none; }
@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: 24px; height: 72px; }
  .brand { order: -1; justify-content: flex-start; }
  .header-inner > .icon-btn:first-child { order: 3; margin: 0; }
  .main-nav { display: flex; gap: 28px; justify-content: center; }
  .main-nav a { font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; }
  .main-nav a:hover, .main-nav a.is-active { border-color: var(--ink); }
  .cart-btn { order: 4; }
}

/* ---------- Drawers ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 70; width: min(400px, 90vw); background: #fff; display: flex; flex-direction: column; transition: transform .3s ease; box-shadow: var(--shadow); }
.drawer-left { left: 0; transform: translateX(-102%); }
.drawer-right { right: 0; transform: translateX(102%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 17px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.menu { padding: 8px 20px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.menu a { padding: 9px 0; font-size: 15px; }
.menu a:hover { color: var(--muted); }
.menu .menu-main { font-size: 18px; font-weight: 600; padding: 11px 0; border-bottom: 1px solid var(--line); }
.menu-h { margin: 22px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-contact { padding: 16px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 13px; color: var(--muted); }

/* ---------- Media ---------- */
.media { position: relative; display: block; overflow: hidden; background: var(--soft); }
.media img { width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform .5s ease; }
.media img.is-broken { opacity: 0; }

/* ---------- Home ---------- */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 56px; padding-bottom: 60px; max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-title { margin: 0 0 14px; font-size: clamp(32px, 6vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.hero-text { margin: 0 auto 26px; max-width: 520px; color: var(--muted); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }
.assurance { border-bottom: 1px solid var(--line); }
.assurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding-top: 20px; padding-bottom: 20px; }
.assurance-grid > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.assurance-grid b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
@media (min-width: 900px) { .assurance-grid { grid-template-columns: repeat(4, 1fr); } }

.section { padding-top: 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
@media (min-width: 768px) { .section { padding-top: 72px; } }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; }
.cat-tile .media { position: absolute; inset: 0; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.cat-label { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; display: flex; flex-direction: column; }
.cat-name { font-size: 18px; font-weight: 700; }
.cat-count { font-size: 12px; opacity: .85; }
.cat-tile:hover img { transform: scale(1.04); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.story { background: var(--soft); border-radius: var(--r); padding: 32px 22px; text-align: center; }
.story p { max-width: 620px; margin: 12px auto 16px; color: var(--muted); }

/* ---------- Grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 32px 20px; } }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; }
.card-media .media { position: absolute; inset: 0; }
.card:hover .card-media img { transform: scale(1.03); }
.tag { position: absolute; z-index: 2; left: 8px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.tag-sale { top: 8px; background: var(--red); color: #fff; }
.tag-limited { bottom: 8px; background: #fff; color: var(--red); border: 1px solid var(--red-line); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 10px; }
.card-title { margin: 0 0 4px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.card-title a:hover { text-decoration: underline; }
.price-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: auto 0 10px; padding-top: 2px; }
.price { font-weight: 700; font-size: 16px; }
.old { color: var(--muted); font-size: 13px; }
.card .btn { min-height: 42px; font-size: 13px; padding: 0 10px; }

/* ---------- Shop ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 28px 0 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.select select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); }
@media (min-width: 900px) { .chips { margin: 0; padding: 0; } }

/* ---------- Product ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.pd { display: grid; gap: 22px; }
.pd-gallery { min-width: 0; margin: 0 calc(var(--gutter) * -1); }
.pd-stage { position: relative; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; }
.pd-slide .media { width: 100%; height: 100%; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: grid; place-items: center; z-index: 2; }
.pd-arrow .ic { width: 18px; height: 18px; }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.pd-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 0 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #CFCFCF; transition: background .2s, transform .2s; }
.dot.is-active { background: var(--ink); transform: scale(1.25); }
.pd-info { min-width: 0; }

/* Limited offer plate */
.limited { border: 1px solid var(--red-line); background: var(--red-soft); border-radius: 8px; padding: 12px 14px 12px; margin-bottom: 18px; }
.limited-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.limited-title { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.limited-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.limited-ends { font-size: 13px; color: var(--muted); }
.limited-left { margin: 4px 0 8px; font-size: 16px; font-weight: 600; }
.limited-left b { color: var(--red); font-size: 20px; }
.limited-bar { height: 4px; border-radius: 2px; background: #EADADA; overflow: hidden; margin-bottom: 8px; }
.limited-bar span { display: block; height: 100%; background: var(--red); border-radius: 2px; }
.limited-demand { margin: 0; font-size: 13px; color: var(--ink-2); }
@keyframes pulse { 50% { opacity: .35; } }

.pd-name { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 14px; }
.pd-price { font-size: 24px; font-weight: 700; }
.pd-price-row .old { font-size: 16px; }
.save { padding: 2px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; align-self: center; }
.pd-short { margin: 0 0 14px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.checks .ic { width: 22px; height: 22px; margin-top: -1px; }

.pd-options { display: grid; gap: 16px; margin-bottom: 18px; }
.opt-label { margin: 0 0 8px; font-size: 14px; }
.opt-label b { font-weight: 600; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { min-width: 48px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); font-size: 14px; font-weight: 500; background: #fff; transition: border-color .15s, background .15s, color .15s; }
.opt-btn:hover { border-color: var(--ink); }
.opt-btn.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt.is-flag .opt-values { animation: flag .5s ease 2; }
.opt.is-flag .opt-label { color: var(--red); }
@keyframes flag { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.pd-qty-row { margin-bottom: 16px; }
.pd-qty-line { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); height: 48px; background: #fff; }
.qty button { width: 44px; height: 100%; font-size: 20px; }
.qty button:disabled { color: #C8C8C8; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.qty-sm { height: 36px; }
.qty-sm button { width: 32px; font-size: 16px; }

.pd-actions { display: grid; gap: 10px; }
.pd-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.pd-trust span { display: inline-flex; align-items: center; gap: 6px; }
.pd-trust .ic { width: 18px; height: 18px; color: var(--ink); }
.pd-missing { padding: 60px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
@media (min-width: 900px) {
  .pd { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
  .pd-gallery { margin: 0; position: sticky; top: 92px; }
  .pd-slide .media { border-radius: var(--r); }
}

/* Accordion */
.accordion { margin-top: 18px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-size: 15px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc-body { padding: 0 0 16px; color: var(--ink-2); }
.acc-body h4 { font-size: 15px; margin: 6px 0 4px; }
.acc-body p { margin: 0 0 10px; }
.specs { margin: 0; display: grid; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.faq-group { margin-top: 30px; }

/* Sticky buy */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -16px rgba(0, 0, 0, .4); transform: translateY(110%); transition: transform .25s; }
.sticky-buy.is-on { transform: none; }
.sticky-img { width: 44px; height: 44px; flex: none; border-radius: 4px; overflow: hidden; }
.sticky-img .media { width: 100%; height: 100%; }
.sticky-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sticky-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-price { font-size: 15px; font-weight: 700; }
.sticky-buy .btn { min-height: 44px; flex: none; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Cart ---------- */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-media { display: block; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; }
.line-media .media { width: 100%; height: 100%; }
.line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-variant { font-size: 13px; color: var(--muted); }
.line-price { font-size: 13px; color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.line-remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-total { font-weight: 700; font-size: 14px; white-space: nowrap; }
.summary { display: grid; gap: 7px; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-discount { color: var(--green); font-weight: 600; }
.sum-muted { color: var(--muted); font-size: 13px; }
.sum-total { font-size: 18px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 3px; }
.sum-note { margin: 4px 0; padding: 10px 12px; background: var(--red-soft); color: var(--red); border-radius: 4px; font-size: 13px; }
.cap-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.cap-bar span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.cap-txt { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.secure .ic { width: 15px; height: 15px; }
.empty { text-align: center; padding: 50px 10px; display: grid; justify-items: center; gap: 12px; color: var(--muted); }
.empty-page { padding: 60px 10px 90px; }
.cart-layout { display: grid; gap: 26px; padding-bottom: 40px; }
.cart-aside { background: var(--soft); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; align-self: start; }
.cart-aside .h3 { margin: 0; }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1fr 360px; gap: 48px; }
  .cart-aside { position: sticky; top: 92px; }
  .lines-page .line { grid-template-columns: 96px 1fr auto; }
}

/* ---------- Forms / Track / Contact ---------- */
.form { display: grid; gap: 14px; margin: 20px 0; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r); outline: none; }
.form input:focus { border-color: var(--ink); }
.notice { padding: 14px 16px; background: var(--soft); border-left: 3px solid var(--ink); border-radius: 4px; margin-bottom: 24px; }
.notice-warn { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.steps { list-style: none; counter-reset: s; margin: 32px 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 48px; display: grid; gap: 2px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; border-left: 1.5px solid var(--line); }
.steps li:last-child::after { display: none; }
.steps span { color: var(--muted); font-size: 14px; }
.specs-contact { margin: 20px 0 24px; }
.prose p { margin: 0 0 14px; }
.prose .btn { margin-top: 12px; }

/* ---------- Legal ---------- */
.legal { padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: 1.15; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; }
.legal .box { background: var(--soft); border-radius: var(--r); padding: 16px 18px; }
.cfg-missing { background: #FFF3D6; color: #8A5A00; padding: 1px 6px; font-size: .85em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-grid { display: grid; gap: 30px; padding-top: 48px; padding-bottom: 34px; }
.footer-grid a { display: block; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-word { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .28em; }
.footer-brand p { margin: 10px 0 0; }
.footer-contact a { display: inline; padding: 0; }
.footer-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; }
.footer-bottom a { text-decoration: underline; }
.pay { display: flex; gap: 6px; }
.pay span { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
body[data-current="product"] .site-footer { padding-bottom: 70px; }
@media (min-width: 900px) { body[data-current="product"] .site-footer { padding-bottom: 0; } }

/* ---------- Toast / Cookie / Debug ---------- */
.toast { position: fixed; left: 50%; top: 110px; z-index: 90; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r); font-size: 14px; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; box-shadow: var(--shadow); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast-warn { background: var(--red); }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 10px; font-size: 13px; max-width: 480px; }
.cookie p { margin: 0; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.debug { position: fixed; right: 10px; top: 10px; z-index: 100; max-width: min(560px, 94vw); background: #111; color: #9fe; padding: 10px 12px; font: 12px/1.4 ui-monospace, monospace; word-break: break-all; opacity: .94; border-radius: 4px; }
.debug b { display: block; color: #fff; margin-bottom: 4px; }

/* Standalone legal header */
.legal-head { background: #fff; border-bottom: 1px solid var(--line); }
.legal-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.legal-head .back { font-size: 14px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Loading states ---------- */
body.is-booting #app { visibility: hidden; min-height: 70vh; }
body.is-booting::after { content: ""; position: fixed; left: 50%; top: 45%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; z-index: 5; }
@keyframes spin { to { transform: rotate(360deg); } }
.pd-info.is-loading #pd-details::before { content: ""; display: block; height: 140px; margin-top: 4px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft) 25%, #EFEFEC 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Product page: rating ---------- */
.pd-rating { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0 2px; font-size: 14px; }
.pd-rating b { font-weight: 700; }
.stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.stars .ic { width: 17px; height: 17px; }
.stars-bg { color: #D9D9D9; display: inline-flex; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #F2B01E; display: inline-flex; }

/* payment badges under buttons */
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.pay-row span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }

/* ---------- Long description (new24-style) ---------- */
.pd-story { margin-top: 48px; padding: 44px 0 20px; border-top: 1px solid var(--line); }
.story-wrap { max-width: 720px; }
.story-h { margin-bottom: 26px; }
.story-block { margin-bottom: 34px; text-align: center; }
.story-title { margin: 0 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.story-block p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.story-list { display: inline-grid; text-align: left; margin: 6px auto 14px; }
.story-img { margin: 18px auto 0; max-width: 600px; border-radius: 10px; overflow: hidden; }
.story-img .media { width: 100%; aspect-ratio: 1 / 1; }
.story-img .media img { position: static; }

/* ---------- Guarantee ---------- */
.guarantee { background: var(--soft); padding: 48px 0; margin-top: 28px; }
.guarantee-intro { max-width: 560px; margin: 10px auto 26px; color: var(--muted); }
.guarantee-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.g-item { background: #fff; border-radius: 10px; padding: 18px 18px 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.g-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.g-ic .ic { width: 22px; height: 22px; }
.g-item h3 { margin: 2px 0 4px; font-size: 15px; font-weight: 700; }
.g-item p { margin: 0; font-size: 14px; color: var(--muted); }
@media (min-width: 700px) { .guarantee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guarantee-grid { grid-template-columns: repeat(4, 1fr); } .g-item { grid-template-columns: 1fr; text-align: center; justify-items: center; } .g-ic { grid-row: auto; margin-bottom: 10px; } }

/* ---------- About strip ---------- */
.about-strip { padding: 44px 0; border-bottom: 1px solid var(--line); }
.about-inner { display: grid; gap: 18px; align-items: center; max-width: 900px; }
.about-brand { display: flex; align-items: center; gap: 12px; }
.about-logo { max-height: 44px; width: auto; }
.about-word { color: var(--ink); font-size: 15px; }
.about-logo:not([style*="none"]) + .about-word { display: none; }
.about-title { margin: 0 0 8px; }
.about-text { margin: 0 0 12px; color: var(--muted); }
@media (min-width: 900px) { .about-inner { grid-template-columns: 220px 1fr; gap: 40px; } .about-brand { justify-content: center; } }

/* ---------- Showcase carousel ---------- */
.showcase { padding: 44px 0 8px; }
.sc-nav { display: flex; gap: 8px; }
.pd-arrow-sm { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: #fff; }
.pd-arrow-sm:hover { border-color: var(--ink); }
.pd-arrow-sm .ic { width: 16px; height: 16px; }
.sc-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
.sc-track::-webkit-scrollbar { display: none; }
.sc-track .card { flex: 0 0 44%; scroll-snap-align: start; }
@media (min-width: 700px) { .sc-track .card { flex-basis: 30%; } }
@media (min-width: 1024px) {
  .sc-track { max-width: var(--wrap); margin: 0 auto; gap: 20px; }
  .sc-track .card { flex-basis: calc((100% - 60px) / 4); }
}
@media (max-width: 699px) { .sc-nav { display: none; } }

/* category link slots flow inside their parent (nav / menu / footer) */
.cat-links { display: contents; }
