/* «Шо там» — тёплый кремовый фон, тёмный «чернильный» текст, один акцент (томатный) только на кнопках */
:root {
  --bg: #F6F0E8;
  --bg-2: #EEE4D7;
  --surface: #FFFBF6;
  --ink: #221B16;
  --ink-2: #4A3F37;
  --muted: #7C6F63;
  --line: #E5D8C8;
  --accent: #E0472A;
  --accent-press: #C63A20;
  --accent-ink: #FFFFFF;
  --ok: #2F7D4F;
  --tg: #2A9FD6;
  --vb: #7360F2;
  --r: 18px;
  --r-s: 12px;
  --shadow: 0 1px 2px rgba(34,27,22,.06), 0 8px 24px rgba(34,27,22,.08);
  --shadow-lg: 0 24px 60px rgba(34,27,22,.22);
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --top-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }
h2 { font: 700 clamp(24px, 5.4vw, 34px)/1.1 var(--head); letter-spacing: -.02em; margin: 0 0 18px; }

.draft { background: #FFF0B3; color: #6B4F00; font-size: 12.5px; line-height: 1.4; padding: 7px 16px; text-align: center; }
.todo { background: #FFF0B3; color: #6B4F00; border: 1px dashed #D4A900; border-radius: 6px; padding: 0 5px; font-size: .82em; font-weight: 600; font-family: var(--body); letter-spacing: 0; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(246,240,232,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 10px; height: var(--top-h); }
.logo-link { text-decoration: none; margin-right: auto; }
.logo { display: inline-flex; align-items: baseline; gap: 7px; }
.logo-w { font: 700 22px/1 var(--head); letter-spacing: -.04em; }
.logo-w::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; transform: translateY(-1px); }
.logo-t { font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; text-decoration: none; }
.back:hover { background: var(--bg-2); }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface); cursor: pointer; transition: transform .2s var(--ease); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn:active { transform: scale(.94); }
.cart-btn.bump { animation: bump .5s var(--ease); }
.cart-n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font: 800 11.5px/20px var(--body); text-align: center; border: 2px solid var(--bg); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }

/* ---------- кнопки ---------- */
.btn, .add, .btn-ghost, .m-add { -webkit-tap-highlight-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 16.5px var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .15s var(--ease), box-shadow .2s; box-shadow: 0 6px 18px rgba(224,71,42,.28); }
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(.97); }
.add { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 14.5px var(--body); cursor: pointer; overflow: hidden; transition: background .2s, color .2s, box-shadow .2s, transform .15s var(--ease); }
.add:hover { background: var(--accent-press); }
.add:active { transform: scale(.97); }
.add > span { display: inline-flex; align-items: center; gap: 6px; transition: transform .3s var(--ease), opacity .25s; }
.add svg { width: 18px; height: 18px; stroke-width: 2.4; }
.add .a-on { position: absolute; inset: 0; justify-content: center; transform: translateY(110%); opacity: 0; }
.add.in { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.add.in .a-off { transform: translateY(-110%); opacity: 0; }
.add.in .a-on { transform: none; opacity: 1; }
.add.big { min-height: 56px; font-size: 16.5px; margin: 0; }
.btn-ghost { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 800 15.5px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }

/* ---------- первый экран ---------- */
.hero { padding: 26px 0 8px; overflow: hidden; }
.hero-in { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 13px 7px 11px; border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); }
.kicker svg { width: 18px; height: 18px; }
.hero h1 { font: 700 clamp(40px, 11.5vw, 84px)/.98 var(--head); letter-spacing: -.045em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); display: inline-block; }
.lead { margin: 0 0 22px; max-width: 520px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.proof { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.proof svg { width: 18px; height: 18px; }
.marquee { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; animation: mq 46s linear infinite; }
.mq-track img { width: 132px; height: 176px; object-fit: cover; border-radius: 16px; background: var(--bg-2); }
.mq-track img:nth-child(odd) { transform: translateY(10px) rotate(-1.5deg); }
.mq-track img:nth-child(even) { transform: rotate(1.5deg); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .mq-track img { width: 170px; height: 226px; }
}

/* ---------- каталог ---------- */
.catalog { padding-top: 40px; padding-bottom: 24px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.count { color: var(--muted); font-weight: 600; font-size: 14px; }
.link { font-weight: 700; font-size: 14.5px; text-underline-offset: 3px; }
.chips { position: sticky; top: var(--top-h); z-index: 20; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 8px 16px 12px; background: linear-gradient(var(--bg) 78%, rgba(246,240,232,0)); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; font: 700 14px var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card[hidden] { display: none; }
.card.flash { animation: fadeIn .35s var(--ease); }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.swipe { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.swipe::-webkit-scrollbar { display: none; }
.swipe img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; scroll-snap-align: start; filter: saturate(1.05) contrast(1.03); }
.dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); box-shadow: 0 0 3px rgba(0,0,0,.25); transition: width .25s var(--ease), background .25s; }
.dots i.on { width: 16px; background: #fff; }
.sw-a { position: absolute; top: 50%; z-index: 2; display: none; place-items: center; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; background: rgba(255,251,246,.92); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .2s; }
.sw-a svg { width: 17px; height: 17px; stroke-width: 2.2; }
.sw-l { left: 8px; } .sw-r { right: 8px; }
@media (hover: hover) { .sw-a { display: grid; } .ph:hover .sw-a { opacity: 1; } }
.badge { position: absolute; left: 9px; top: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 9px; border-radius: 999px; background: rgba(34,27,22,.86); color: #fff; font: 700 11.5px/1 var(--body); backdrop-filter: blur(4px); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #FF8A6B; box-shadow: 0 0 0 0 rgba(255,138,107,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,138,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,107,0); } }
.c-name { display: block; margin-top: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-price { margin-top: 4px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
@media (max-width: 380px) { .add { font-size: 13.5px; } }

/* ---------- как заказать / почему мы / вопросы ---------- */
.how { margin-top: 48px; padding: 48px 0 52px; background: var(--ink); color: var(--surface); border-radius: 32px 32px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.steps li { position: relative; padding-left: 58px; }
.st-n { position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 17px var(--head); }
.steps b { display: block; font-size: 17.5px; margin-bottom: 4px; }
.steps p { margin: 0; color: rgba(255,251,246,.72); font-size: 15px; }
.steps .todo { color: #6B4F00; }
.why { padding-top: 52px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 820px) { .why-list { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.why-list li { display: flex; gap: 14px; }
.why-list svg { width: 26px; height: 26px; margin-top: 2px; color: var(--accent); }
.why-list b { display: block; font-size: 17px; margin-bottom: 3px; }
.why-list p { margin: 0; color: var(--ink-2); font-size: 15px; }
.faq { padding-top: 52px; padding-bottom: 20px; max-width: 760px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary, .acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.qa summary svg, .acc summary svg { transition: transform .25s var(--ease); color: var(--muted); }
.qa[open] summary svg, .acc[open] summary svg { transform: rotate(180deg); }
.qa p { margin: -4px 0 16px; color: var(--ink-2); }

/* ---------- товар ---------- */
.prod { display: grid; gap: 20px; padding-top: 4px; padding-bottom: 12px; }
.prod > * { min-width: 0; }
@media (min-width: 900px) { .prod { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; padding-top: 24px; align-items: start; } .pinfo { position: sticky; top: calc(var(--top-h) + 20px); } }
.gal-wrap { position: relative; margin: 0 -16px; }
@media (min-width: 760px) { .gal-wrap { margin: 0; } }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg-2); overscroll-behavior-x: contain; }
@media (min-width: 760px) { .gal { border-radius: 24px; } }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: start; filter: saturate(1.05) contrast(1.03); }
.gal-wrap .badge { left: 14px; top: 14px; font-size: 12.5px; padding: 8px 12px 8px 10px; }
@media (min-width: 760px) { .gal-wrap .badge { left: 16px; top: 16px; } }
.g-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.g-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.6); box-shadow: 0 0 3px rgba(0,0,0,.3); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.g-dots button.on { width: 22px; background: #fff; }
.g-thumbs { display: none; }
@media (min-width: 900px) {
  .g-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
  .g-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; transition: border-color .2s; }
  .g-thumbs button.on { border-color: var(--ink); }
  .g-thumbs img { aspect-ratio: 3 / 4; object-fit: cover; }
}
.p-cat { margin: 0 0 6px; color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }
.pinfo h1 { font: 700 clamp(25px, 6vw, 36px)/1.08 var(--head); letter-spacing: -.03em; margin: 0 0 12px; }
.p-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.bens { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; }
.bens li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; font-weight: 500; }
.bens svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #E3F0E7; color: var(--ok); stroke-width: 2.6; }
.buy-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .buy-row { grid-template-columns: 1.3fr 1fr; } }
.gift { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14.5px; font-weight: 700; color: var(--ok); }
.gift svg { width: 20px; height: 20px; }
.disc { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.facts { list-style: none; margin: 22px 0 6px; padding: 16px; display: grid; gap: 14px; background: var(--surface); border-radius: var(--r); }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts svg { width: 22px; height: 22px; color: var(--ink-2); margin-top: 1px; }
.facts b { display: block; font-size: 14.5px; }
.facts span { display: block; color: var(--muted); font-size: 14px; }
.acc { border-bottom: 1px solid var(--line); }
.acc p { margin: -4px 0 16px; color: var(--ink-2); }
.attrs { margin: -4px 0 14px; }
.attrs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 15px; border-top: 1px dashed var(--line); }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; text-align: right; font-weight: 600; }
.ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

.also { padding-top: 40px; }
.also-row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
.also-row::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .also-row { grid-auto-columns: 23%; margin: 0; padding: 0; } }
.mini { scroll-snap-align: start; min-width: 0; }
.m-ph { display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.m-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.mini:hover .m-ph img { transform: scale(1.04); }
.m-name { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.m-price { font-weight: 800; font-size: 15px; }
.m-add { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; transition: background .2s, transform .15s; }
.m-add svg { width: 18px; height: 18px; stroke-width: 2.4; }
.m-add .a-on { display: none; }
.m-add.in { background: var(--ink); }
.m-add.in .a-off { display: none; } .m-add.in .a-on { display: grid; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,251,246,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky.show { transform: none; }
.s-info { display: grid; min-width: 0; flex: 1; }
.s-name { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-price { font-weight: 800; font-size: 18px; }
.sticky .add { margin: 0; width: auto; flex: 0 0 52%; min-height: 48px; }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---------- окно «Є питання» ---------- */
.sheet { border: 0; border-radius: 24px; padding: 28px 20px 20px; width: min(420px, calc(100% - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.sheet::backdrop { background: rgba(20,15,12,.5); }
.sheet h3 { font: 700 20px/1.2 var(--head); margin: 0 30px 6px 0; }
.sheet-sub { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.sheet form { position: absolute; right: 10px; top: 10px; margin: 0; }
.x { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); width: 40px; height: 40px; }
.opt { display: block; text-align: center; text-decoration: none; color: #fff; font-weight: 800; padding: 15px; border-radius: 999px; margin-top: 10px; }
.opt-tg { background: var(--tg); } .opt-vb { background: var(--vb); } .opt-ph { background: var(--ink); }

/* ---------- корзина ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(20,15,12,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 41; right: 0; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .38s var(--ease); }
.drawer.open { transform: none; }
@media (max-width: 599px) { .drawer { top: auto; height: 92dvh; width: 100%; border-radius: 24px 24px 0 0; transform: translateY(105%); } }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; }
.dr-head h3 { margin: 0; font: 700 21px/1.1 var(--head); letter-spacing: -.02em; }
.dr-head .x { margin-right: -6px; }
.dr-back { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-weight: 700; color: var(--muted); cursor: pointer; }
.dr-body { flex: 1; overflow-y: auto; padding: 0 20px 16px; overscroll-behavior: contain; }
.dr-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.dr-foot .btn { width: 100%; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: fadeIn .3s var(--ease); }
.line img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.l-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.l-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.l-right { display: grid; justify-items: end; gap: 6px; }
.l-price { font-weight: 800; }
.l-del { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; font-weight: 800; cursor: pointer; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 700 19px var(--head); margin-bottom: 6px; }
.empty .btn { margin-top: 18px; }
.nudge { margin: 16px 0 4px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); font-size: 14px; font-weight: 600; }
.nudge.ok { background: #E3F0E7; color: var(--ok); }
.nudge .bar { height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.nudge .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.x-sell h4 { margin: 22px 0 10px; font: 700 15px var(--head); }
.x-row { display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; scroll-padding-inline: 20px; }
.x-row::-webkit-scrollbar { display: none; }
.x-it img { width: 108px; height: 144px; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.x-it .m-row { margin-top: 6px; }
.x-it .m-price { font-size: 13.5px; }
.x-it .m-add { width: 32px; height: 32px; }
.sum { display: grid; gap: 4px; margin-bottom: 12px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { font-size: 19px; font-weight: 800; }
.sum .minus { color: var(--ok); font-weight: 700; }
.note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

.of { display: grid; gap: 14px; padding-top: 4px; }
.of label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.of input, .of textarea { width: 100%; padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: 500 16px var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.of input:focus, .of textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(34,27,22,.08); }
.of input.bad { border-color: var(--accent); }
.of .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.seg label { display: block; position: relative; }
.done { text-align: center; padding: 34px 6px 10px; }
.done .ok { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: #E3F0E7; color: var(--ok); animation: pop .5s var(--ease); }
.done .ok svg { width: 38px; height: 38px; stroke-width: 2.6; }
.done h4 { font: 700 22px/1.2 var(--head); margin: 0 0 8px; }
.done p { color: var(--ink-2); margin: 0 0 8px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.toast { position: fixed; z-index: 35; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(100% + 140px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--ease); }
.toast button { border: 0; border-radius: 999px; padding: 9px 14px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; }
body.has-sticky .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- подвал ---------- */
.foot { margin-top: 56px; padding: 40px 0 calc(100px + env(safe-area-inset-bottom)); background: var(--bg-2); font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .foot { padding-bottom: 44px; } }
.foot-in { display: grid; gap: 24px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.2fr 1fr; } .foot-seller { grid-column: 1 / -1; } }
.foot-logo .logo-w { font-size: 26px; }
.foot-about { margin: 10px 0 8px; }
.foot-contacts a { font-weight: 700; }
.foot .facts { margin: 0; background: transparent; padding: 0; }
.foot-seller { color: var(--muted); font-size: 13px; }

/* ---------- появление при прокрутке ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-in > * { animation: fadeIn .7s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .06s; } .hero-in > *:nth-child(3) { animation-delay: .12s; } .hero-in > *:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- оформление v3: выбор отделения НП, оплата ---------- */
.of-h { margin: 0; font: 700 21px/1.1 var(--head); }
.f-cap { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.of .fld { display: grid; gap: 6px; position: relative; }
.of .fld > label { font-weight: 700; font-size: 14px; }
.of input:disabled { background: var(--bg); color: var(--muted); }
.seg span small { display: block; margin-top: 3px; font-weight: 500; font-size: 11.5px; line-height: 1.25; opacity: .8; }
.seg-tall span { padding: 12px 6px; }
.ac-list { max-height: 300px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); overscroll-behavior: contain; }
.ac-list li { display: grid; gap: 2px; padding: 10px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.ac-list li span { color: var(--muted); font-size: 12.5px; }
.ac-list li:hover, .ac-list li.on { background: var(--bg); }
.ac-list li.ac-msg { cursor: default; color: var(--muted); }
.ac-list li.ac-msg:hover { background: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.of-err { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #FBE6E0; color: #9A2A14; font-weight: 700; font-size: 14px; }
.dr-foot .btn + .btn, .dr-foot .btn-tg + .btn { margin-top: 10px; }
.dr-foot .btn.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--ink); }
.dr-foot .btn.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-tg { background: var(--tg); box-shadow: 0 6px 18px rgba(42,159,214,.28); color: #fff; }
.btn-tg:hover { background: #1F8BC0; }
.done .ok.fail { background: #FBE6E0; color: var(--accent); font: 800 34px var(--head); }
.spin { width: 54px; height: 54px; margin: 10px auto 20px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sold-box { display: grid; gap: 6px; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.sold-box span { color: var(--muted); font-size: 14px; }
.sold-box .btn { margin-top: 6px; }
.badge.badge-sold { background: var(--ink); color: var(--surface); }
