/* «Добро град» — витрина. Цвета и шрифт из брендбука. */
:root {
  --green: #7CB342;
  --green-d: #5F9A28;
  --green-ink: #3F6B16;
  --green-soft: #EEF6E2;
  --orange: #F57C00;
  --orange-ink: #D86A00;
  --cream: #FFF8E1;
  --cream-d: #FBEFC8;
  --coral: #FF7F50;
  --ink: #2D2D2D;
  --ink-2: #66625A;
  --ink-3: #9A958A;
  --line: #EDE7D6;
  --bg: #FFFDF7;
  --card: #FFFFFF;
  --r: 20px;
  --r-s: 14px;
  --shadow: 0 1px 2px rgba(60, 50, 20, .06), 0 6px 20px rgba(60, 50, 20, .06);
  --shadow-h: 0 2px 4px rgba(60, 50, 20, .08), 0 14px 34px rgba(60, 50, 20, .12);
  --top-h: 64px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Golos Text', 'Inter', 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 64px); }
body { margin: 0; font: 400 16px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { max-width: 100%; display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid rgba(124, 179, 66, .55); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }

/* ---------- заставка ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--cream); transition: opacity .35s, visibility .35s; }
.splash img { width: 150px; animation: wave 1.2s ease-in-out infinite; transform-origin: 50% 90%; }
.splash b { font-size: 26px; font-weight: 800; color: var(--green-ink); }
.splash.gone { opacity: 0; visibility: hidden; }
@keyframes wave { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-3px); } }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 247, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 24px; min-height: var(--top-h); }
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo img { width: 52px; height: auto; }
.logo b { display: block; font-size: 21px; font-weight: 800; color: var(--green-ink); letter-spacing: -.02em; line-height: 1.05; }
.logo small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.district { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; }
.district svg { width: 18px; height: 18px; }
.district .chev { width: 16px; height: 16px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #F5F1E6; border-radius: 14px; padding: 0 14px; min-width: 0; height: 46px; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--green); background: #fff; }
.search svg { color: var(--ink-3); }
.search input { border: 0; outline: 0; background: none; width: 100%; height: 100%; font-size: 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.top-link { font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 6px; }
.top-link:hover { color: var(--ink); }
.top-cart { display: flex; align-items: center; gap: 8px; background: var(--green); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, transform .15s; }
.top-cart:hover { background: var(--green-d); }
.top-cart.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- раскладка ---------- */
.layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 28px; padding: 0 24px; }
main { padding: 20px 0 60px; min-height: 70vh; outline: 0; }
.rail { position: sticky; top: calc(var(--top-h) + 1px); align-self: start; padding: 20px 0; max-height: calc(100vh - var(--top-h)); overflow: auto; scrollbar-width: thin; }
.rail a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.rail a img { width: 28px; height: 28px; }
.rail a:hover { background: #F5F1E6; color: var(--ink); }
.rail a.on { background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.rail h4 { margin: 4px 10px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.rail .rail-info { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--cream); font-size: 13px; color: var(--ink-2); }
.rail .rail-info b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 14px; }
.side-cart { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; margin-top: 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); max-height: calc(100vh - var(--top-h) - 40px); display: flex; flex-direction: column; overflow: hidden; }

.no-side .side-cart { display: none; }
@media (min-width: 901px) { .no-side .layout { grid-template-columns: 220px minmax(0, 1fr); } }

/* ---------- общие блоки ---------- */
.sec { margin: 34px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec h2 { font-size: 26px; font-weight: 800; }
.sec a { color: var(--green-ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--green); color: #fff; font-weight: 700; font-size: 17px; transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 6px 16px rgba(124, 179, 66, .35); }
.btn:hover { background: var(--green-d); }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: #CFCAB9; box-shadow: none; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn.ghost { background: var(--green-soft); color: var(--green-ink); box-shadow: none; }
.btn.ghost:hover { background: #E2EFD0; }
.btn.light { background: #fff; color: var(--green-ink); box-shadow: none; }
.btn .sum { opacity: .9; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #F5F1E6; font-weight: 600; font-size: 14px; white-space: nowrap; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.chip:hover { background: #EEE8D8; }
.chip.on { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.chip[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

/* ---------- главная: герой ---------- */
.hero { position: relative; overflow: hidden; border-radius: 28px; background: radial-gradient(120% 140% at 100% 0%, #FFE9B0 0%, var(--cream) 46%, #F3F9EA 100%); padding: 36px 40px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px; min-height: 300px; }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 360px; height: 360px; border-radius: 50%; background: rgba(124, 179, 66, .14); }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--green-ink); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.hero .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(124, 179, 66, .2); }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; margin: 14px 0 10px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--green-ink); }
.hero p { margin: 0 0 22px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.hero .hero-art { position: relative; z-index: 1; justify-self: center; width: min(100%, 380px); }
.hero .hero-art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(93, 64, 55, .18)); animation: float 5s ease-in-out infinite; }
.hero .hero-art .fruit { position: absolute; width: 22%; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero .facts span { font-size: 14px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .7); padding: 6px 10px; border-radius: 10px; }
.hero > div { position: relative; z-index: 1; }

/* промо-карточки */
.promos { margin-top: 16px; }
.promo { width: min(78vw, 330px); min-height: 150px; border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.promo b { font-size: 19px; font-weight: 800; line-height: 1.2; max-width: 70%; }
.promo span { font-size: 14px; color: var(--ink-2); max-width: 68%; }
.promo img { position: absolute; right: -6px; bottom: -6px; width: 104px; transform: rotate(-8deg); }
.promo.p1 { background: #E6F2D6; } .promo.p2 { background: #FFE7CC; } .promo.p3 { background: #FFE2D8; } .promo.p4 { background: #FFF3C4; }

/* плитки категорий (как у Самоката: пастель + крупная иллюстрация) */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { position: relative; border-radius: var(--r); padding: 14px; min-height: 128px; overflow: hidden; font-weight: 700; font-size: 16px; line-height: 1.2; transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.cat img { position: absolute; right: 8px; bottom: 8px; width: 46%; max-width: 92px; transition: transform .25s; }
.cat:hover img { transform: scale(1.08) rotate(-4deg); }
.cat:nth-child(8n+1) { background: #FFE7DF; } .cat:nth-child(8n+2) { background: #FFEFD6; } .cat:nth-child(8n+3) { background: #FDE3EA; } .cat:nth-child(8n+4) { background: #E8F3DA; }
.cat:nth-child(8n+5) { background: #FFF2C7; } .cat:nth-child(8n+6) { background: #EDEBFA; } .cat:nth-child(8n+7) { background: #F3E9DD; } .cat:nth-child(8n+8) { background: #E2F1EE; }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.scroller .card { width: 178px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); padding: 8px 8px 12px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.card .ph { position: relative; aspect-ratio: 1; border-radius: var(--r-s); background: var(--cream); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.card .ph img { width: 62%; transition: transform .3s; }
.card .ph img.photo { width: 100%; height: 100%; object-fit: cover; }
.card:hover .ph img:not(.photo) { transform: scale(1.06); }
.card.out .ph img { filter: grayscale(1); opacity: .5; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: #fff; color: var(--green-ink); line-height: 1.1; }
.badge.sale { background: var(--coral); color: #fff; }
.badge.local { background: var(--green); color: #fff; }
.fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--ink-3); transition: color .15s, transform .15s; }
.fav svg { width: 19px; height: 19px; }
.fav:hover { color: var(--coral); }
.fav.on { color: var(--coral); }
.fav.on svg { fill: var(--coral); }
.fav:active { transform: scale(.85); }
.card .info { padding: 10px 6px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 19px; font-weight: 800; color: var(--orange-ink); }
.price b small { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.price s { font-size: 14px; color: var(--ink-3); }
.card .name { font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; cursor: pointer; }
.card .origin { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .act { margin-top: 10px; }
.add { width: 100%; height: 42px; border-radius: 12px; background: #F2EEE2; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.add svg { width: 18px; height: 18px; }
.add:hover { background: var(--green); color: #fff; }
.add[disabled] { cursor: default; background: #F5F3EE; color: var(--ink-3); font-weight: 500; }
.stepper { display: flex; align-items: center; height: 42px; border-radius: 12px; background: var(--green); color: #fff; overflow: hidden; }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 600; transition: background .15s; }
.stepper button:hover { background: rgba(0, 0, 0, .1); }
.stepper span { flex: 1; text-align: center; font-weight: 700; font-size: 15px; white-space: nowrap; }
.stepper.big { height: 54px; border-radius: 16px; }
.stepper.big button { width: 56px; font-size: 26px; }
.stepper.big span { font-size: 18px; }

/* ---------- блок доверия ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.value i { font-style: normal; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); margin-bottom: 12px; }
.value i img { width: 28px; }
.value b { display: block; font-size: 17px; margin-bottom: 4px; }
.value p { margin: 0; color: var(--ink-2); font-size: 14px; }
.zones { margin-top: 12px; background: linear-gradient(135deg, #7CB342, #5F9A28); color: #fff; border-radius: 24px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; overflow: hidden; position: relative; }
.zones h3 { font-size: 26px; font-weight: 800; }
.zones p { margin: 6px 0 14px; opacity: .92; }
.zones .zl { display: flex; flex-wrap: wrap; gap: 8px; }
.zones .zl span { background: rgba(255, 255, 255, .18); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.zones img { width: 170px; transform: scaleX(-1); }
.foot { margin-top: 40px; padding: 24px 0 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--ink-2); font-weight: 600; }
.announce { margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: #FFF0DB; color: #8A4B00; font-weight: 600; font-size: 15px; }

/* ---------- корзина ---------- */
.cart-head { padding: 18px 20px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.cart-head h3 { font-size: 22px; font-weight: 800; }
.cart-head button { color: var(--ink-3); font-size: 14px; }
.cart-head button:hover { color: var(--coral); }
.cart-list { overflow: auto; padding: 0 20px; flex: 1; }
.ci { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci .ph { width: 56px; height: 56px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.ci .ph img { width: 70%; }
.ci .ph img.photo { width: 100%; height: 100%; object-fit: cover; }
.ci .nm { font-size: 14px; font-weight: 500; line-height: 1.25; }
.ci .pr { font-size: 14px; font-weight: 700; color: var(--orange-ink); margin-top: 2px; }
.ci .stepper { height: 34px; border-radius: 10px; width: 116px; background: #F2EEE2; color: var(--ink); }
.ci .stepper button { width: 32px; color: var(--ink); font-size: 18px; }
.ci .stepper span { font-size: 13px; }
.cart-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); background: #FFFDF8; }
.progress { margin-bottom: 12px; }
.progress .bar { height: 8px; border-radius: 99px; background: #EEE8D8; overflow: hidden; margin-top: 6px; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #A5D46A); border-radius: 99px; transition: width .4s; }
.progress p { margin: 0; font-size: 14px; color: var(--ink-2); }
.progress p b { color: var(--ink); }
.rows { display: grid; gap: 6px; margin-bottom: 14px; font-size: 15px; }
.rows div { display: flex; justify-content: space-between; gap: 10px; }
.rows .total { font-size: 19px; font-weight: 800; padding-top: 6px; }
.empty { text-align: center; padding: 34px 20px; color: var(--ink-2); }
.empty img { width: 130px; margin: 0 auto 10px; opacity: .95; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.page-cart { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.page-cart .cart-list { overflow: visible; }

/* ---------- оформление ---------- */
.page-title { font-size: 30px; font-weight: 800; margin: 6px 0 18px; display: flex; align-items: center; gap: 12px; }
.back { width: 42px; height: 42px; border-radius: 12px; background: #F2EEE2; display: grid; place-items: center; flex: none; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.box { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.box h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.box h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; font-size: 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #FFFEFA; font-size: 16px; outline: 0; transition: border-color .15s; }
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 76px; }
.f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.days { margin-bottom: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots .chip { justify-content: center; border-radius: 12px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #D9E9C2; }
.opt.on { border-color: var(--green); background: #FAFDF5; }
.opt input { accent-color: var(--green); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.opt b { display: block; font-size: 16px; }
.opt small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.opt .paylogos { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.opt .paylogos span { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #F2EEE2; color: var(--ink-2); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 99px; background: #DDD6C4; position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(20px); }
.note { font-size: 14px; color: var(--ink-2); background: var(--cream); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.note img { width: 34px; flex: none; }
.summary { position: sticky; top: calc(var(--top-h) + 20px); }
.summary .mini { display: grid; gap: 6px; max-height: 260px; overflow: auto; margin-bottom: 14px; font-size: 14px; }
.summary .mini div { display: flex; justify-content: space-between; gap: 10px; }
.summary .mini span:first-child { color: var(--ink-2); }
.err { color: #C2410C; font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.legal { font-size: 12px; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* ---------- заказ ---------- */
.track { display: grid; gap: 0; margin: 6px 0 4px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 16px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step i { width: 34px; height: 34px; border-radius: 50%; background: #F2EEE2; display: grid; place-items: center; font-style: normal; color: var(--ink-3); z-index: 1; }
.step i svg { width: 18px; height: 18px; }
.step b { display: block; padding-top: 5px; color: var(--ink-3); }
.step small { color: var(--ink-3); font-size: 13px; }
.step.done i { background: var(--green); color: #fff; }
.step.done::before { background: var(--green); }
.step.done b { color: var(--ink); }
.step.cur i { background: var(--orange); color: #fff; box-shadow: 0 0 0 6px rgba(245, 124, 0, .18); animation: pulse 1.6s infinite; }
.step.cur b { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(245, 124, 0, .05); } }
.order-hero { display: flex; gap: 16px; align-items: center; background: var(--cream); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.order-hero img { width: 110px; flex: none; }
.order-hero h2 { font-size: 22px; font-weight: 800; }
.order-hero p { margin: 4px 0 0; color: var(--ink-2); }
.olist { display: grid; gap: 10px; }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.orow b { display: block; }
.orow small { color: var(--ink-2); }
.st { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: #F2EEE2; white-space: nowrap; }
.st.new, .st.assembling { background: #FFF0DB; color: #8A4B00; }
.st.on_way { background: #E3F0FF; color: #1D4F91; }
.st.done { background: var(--green-soft); color: var(--green-ink); }
.st.canceled { background: #F5F3EE; color: var(--ink-3); }

/* ---------- лист товара / выбор района ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(35, 30, 20, .45); animation: fade .2s; }
.sheet-card { position: relative; background: #fff; border-radius: 28px; width: min(860px, calc(100vw - 40px)); max-height: calc(100vh - 60px); overflow: auto; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.sheet-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 26px; line-height: 1; color: var(--ink-2); box-shadow: var(--shadow); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.pv { display: grid; grid-template-columns: 1fr 1fr; }
.pv .ph { background: var(--cream); display: grid; place-items: center; min-height: 380px; position: relative; }
.pv .ph img { width: 62%; }
.pv .ph img.photo { width: 100%; height: 100%; object-fit: cover; }
.pv .body { padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.pv h2 { font-size: 26px; font-weight: 800; padding-right: 36px; }
.pv .origin { color: var(--ink-2); display: flex; align-items: center; gap: 6px; font-size: 15px; }
.pv .origin svg { width: 18px; height: 18px; color: var(--green); }
.pv .price b { font-size: 28px; }
.pv p.desc { margin: 0; color: var(--ink-2); }
.pv .presets { display: flex; gap: 8px; flex-wrap: wrap; }
.pv .total { font-size: 15px; color: var(--ink-2); }
.pv .total b { color: var(--ink); }
.picker { padding: 28px; }
.picker h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.picker .opts { margin-top: 16px; }
.picker .head { display: flex; align-items: center; gap: 14px; }
.picker .head img { width: 90px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- мобильные кнопки (скрыты на компьютере) ---------- */
.tabbar { display: none; }
.cats-strip { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .side-cart { display: none; }
}
@media (max-width: 1100px) {
  .co { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 900px) {
  :root { --top-h: 112px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }
  .rail, .hide-m { display: none !important; }
  .top-in { flex-wrap: wrap; padding: 8px 16px 10px; gap: 8px 10px; }
  .logo img { width: 44px; }
  .logo b { font-size: 19px; }
  .logo small { font-size: 11px; }
  .district { margin-left: auto; padding: 8px 10px; font-size: 13px; max-width: calc(100vw - 222px); min-width: 0; }
  .district span { overflow: hidden; text-overflow: ellipsis; }
  .search { order: 3; flex-basis: 100%; height: 44px; }
  main { padding: 14px 0 calc(var(--tab-h) + var(--safe-b) + 30px); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 0; position: relative; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--green-ink); }
  .tabbar a.on svg { stroke-width: 2.4; }
  .tabbar .tab-cart.has { color: #fff; }
  .tabbar .tab-cart.has::before { content: ''; position: absolute; inset: -2px 4px; border-radius: 14px; background: var(--green); z-index: -1; }
  .tabbar i { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
  .cats-strip { display: flex; position: sticky; top: var(--top-h); z-index: 20; background: rgba(255, 253, 247, .95); backdrop-filter: blur(10px); margin: 0 -16px 6px; padding: 8px 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 0; border-radius: 24px; min-height: 0; }
  .hero h1 { font-size: 30px; margin-top: 12px; }
  .hero p { font-size: 16px; margin-bottom: 16px; }
  .hero .hero-art { width: 240px; margin: -6px auto -14px; }
  .hero .btn { width: 100%; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat { min-height: 104px; font-size: 14px; padding: 10px; border-radius: 16px; }
  .cat img { width: 52%; right: 4px; bottom: 4px; }
  .sec { margin: 26px 0 10px; }
  .sec h2 { font-size: 21px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scroller .card { width: 160px; }
  .card { border-radius: 18px; padding: 6px 6px 10px; }
  .card .info { padding: 8px 4px 0; }
  .price b { font-size: 17px; }
  .card .name { font-size: 14px; }
  .values { grid-template-columns: 1fr 1fr; gap: 8px; }
  .value { padding: 14px; }
  .value p { font-size: 13px; }
  .zones { grid-template-columns: 1fr; padding: 22px 20px; }
  .zones img { display: none; }
  .zones h3 { font-size: 22px; }
  .page-title { font-size: 24px; }
  .box { padding: 16px; border-radius: 18px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .sheet { place-items: end stretch; }
  .sheet-card { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; animation: up .3s cubic-bezier(.2, .9, .3, 1); padding-bottom: var(--safe-b); }
  @keyframes up { from { transform: translateY(100%); } }
  .pv { grid-template-columns: 1fr; }
  .pv .ph { min-height: 0; aspect-ratio: 4 / 3; }
  .pv .ph img { width: 46%; }
  .pv .body { padding: 18px 18px 20px; }
  .pv h2 { font-size: 22px; }
  .picker { padding: 22px 18px; }
  .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 14px); }
  .order-hero img { width: 84px; }
  .checkout-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 35; padding: 10px 16px; background: rgba(255, 253, 247, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .has-bar main { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 110px); }
}
@media (max-width: 380px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .f3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .checkout-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.ct { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-weight: 700; text-decoration: none; color: #fff; }
.ct svg { width: 20px; height: 20px; fill: currentColor; stroke: none; flex: none; }
.ct.tel { background: var(--green); }
.ct.wa { background: #25D366; }
.ct.tg { background: #2AABEE; }
.ct.max { background: linear-gradient(135deg, #3D7BFF, #A64DFF); }
.ct:hover { filter: brightness(.95); }
.ct span { white-space: nowrap; }
@media (max-width: 520px) { .contacts .ct { flex: 1 1 calc(50% - 4px); justify-content: center; } .contacts .ct.tel { flex-basis: 100%; } }

.doc h3 { margin: 18px 0 6px; }
.doc p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.55; }
.doc a { color: var(--green-ink); font-weight: 600; }
.foot .docs, .foot .req { flex-basis: 100%; }
.foot .req { font-size: 13px; }
.legal a { color: inherit; text-decoration: underline; }
