:root {
  --navy: #18193f;
  --navy-2: #24265a;
  --pink: #f5146e;
  --pink-d: #d40c5c;
  --pink-l: #fde7f0;
  --bg: #f4f4f8;
  --card: #ffffff;
  --ink: #18193f;
  --muted: #6b6d8a;
  --line: #e4e4ee;
  --ok: #12a26b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 25, 63, .06), 0 8px 24px rgba(24, 25, 63, .06);
}

* { box-sizing: border-box; }
/* без горизонтальной прокрутки: в Safari на iPhone элемент шире экрана (например, iframe плашки Netlify)
   расширяет страницу, и шапка выглядит «островком». На html, а не на body — иначе перестанет работать sticky-шапка */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ---------- top line & header ---------- */
.topline { background: var(--navy); color: #c9cae0; font-size: 13px; }
.topline__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topline__right { display: flex; gap: 20px; white-space: nowrap; }
.topline__right a { color: #fff; }

.header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; gap: 16px; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo__word { font-weight: 800; font-size: 28px; letter-spacing: -1.2px; color: var(--pink); }
.logo__tag {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
  background: var(--navy); color: #fff; border-radius: 7px; padding: 3px 7px; transform: translateY(2px);
}
.logo--light .logo__tag { background: #fff; color: var(--navy); }

.btn-catalog {
  display: inline-flex; align-items: center; gap: 8px; border: 0; height: 46px; padding: 0 20px;
  background: var(--pink); color: #fff; border-radius: 12px; font-weight: 600; flex-shrink: 0;
  transition: background .15s;
}
.btn-catalog:hover { background: var(--pink-d); }

.search { flex: 1; display: flex; min-width: 0; height: 46px; border: 2px solid var(--line); border-radius: 12px; transition: border-color .15s; position: relative; }
.search:focus-within { border-color: var(--pink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; background: transparent; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--muted); }

.city select {
  height: 46px; border: 0; background: var(--bg); border-radius: 12px; padding: 0 30px 0 14px; font-weight: 500;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}

.hnav { display: flex; gap: 6px; }
.hnav__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 10px; min-width: 72px; }
.hnav__item:hover { color: var(--ink); background: var(--bg); }
.hnav__item svg { color: var(--ink); }
.badge { position: absolute; top: 0; right: 12px; background: var(--pink); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 6px; font-weight: 700; }

.subnav { border-top: 1px solid var(--line); }
.subnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 7px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); font-weight: 500; }
.subnav a:hover, .subnav a.is-active { background: var(--pink-l); color: var(--pink-d); }

/* ---------- buttons & bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 12px; border: 0; font-weight: 600; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--pink-d); }
.btn--white { background: #fff; color: var(--navy); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--line { background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.btn--block { width: 100%; }

.section { padding: 40px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; font-size: 30px; letter-spacing: -.8px; font-weight: 800; }
.section__head a { color: var(--pink); font-weight: 600; white-space: nowrap; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 8px; }
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.hero__main {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--navy); color: #fff;
  padding: 48px 48px 40px; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between;
}
.hero__main::before {
  content: ""; position: absolute; right: -110px; bottom: -150px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), #b10c50 70%); opacity: .95;
}
.hero__main::after {
  content: "%"; position: absolute; right: 40px; bottom: 16px; font-size: 170px; font-weight: 800; line-height: 1; color: rgba(255,255,255,.95); letter-spacing: -8px;
}
.hero__main > * { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 16px; font-size: 52px; line-height: 1.02; letter-spacing: -2px; font-weight: 800; max-width: 600px; }
.hero h1 em { font-style: normal; color: var(--pink); background: #fff; padding: 0 10px; border-radius: 10px; }
.hero__lead { color: #c9cae0; font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero__stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.hero__stats span { color: #a9abc9; font-size: 13px; }

.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.promo { border-radius: 24px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.promo h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.6px; line-height: 1.1; }
.promo p { margin: 0; font-size: 14px; color: var(--muted); max-width: 250px; }
.promo--pink { background: var(--pink); color: #fff; }
.promo--pink p { color: #ffe0ec; }
.promo--light { background: #fff; }
.promo__big { position: absolute; right: 22px; bottom: 6px; font-size: 92px; font-weight: 800; letter-spacing: -5px; line-height: 1; opacity: .95; }
.promo--light .promo__big { color: var(--pink); }
.promo a { font-weight: 700; margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { background: #fff; border-radius: var(--radius); padding: 22px; }
.benefit__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--pink-l); color: var(--pink); display: grid; place-items: center; margin-bottom: 14px; }
.benefit h4 { margin: 0 0 6px; font-size: 17px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  background: #fff; border-radius: var(--radius); padding: 18px 18px 0; min-height: 168px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat b { font-size: 16px; line-height: 1.2; }
.cat small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.cat__imgs { display: flex; justify-content: flex-end; margin-right: -8px; }
.cat__imgs img { width: 76px; height: 76px; object-fit: contain; margin-left: -18px; mix-blend-mode: multiply; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card__img { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
a.card__name:hover { color: var(--pink-d); }
.card__pu { float: right; color: var(--ink); font-weight: 500; }
.card__img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.flag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 7px; background: var(--pink); color: #fff; }
.flag--navy { background: var(--navy); }
.card__cat { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.card__name { font-size: 14px; font-weight: 500; line-height: 1.3; min-height: 54px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card__price b { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.card__price s { color: var(--muted); font-size: 13px; }
.card__unit { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; }
.tier { background: var(--bg); border-radius: 8px; padding: 5px 6px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.25; }
.tier b { display: block; color: var(--ink); font-size: 13px; }
.tier.is-on { background: var(--pink-l); color: var(--pink-d); }
.tier.is-on b { color: var(--pink-d); }
.card__foot { margin-top: auto; }

.qty { display: flex; align-items: center; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; overflow: hidden; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; color: #fff; font-size: 20px; }
.qty button:hover { background: var(--navy-2); }
.qty input { flex: 1; width: 40px; min-width: 0; border: 0; background: transparent; text-align: center; color: #fff; font-weight: 700; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty small { font-size: 11px; opacity: .7; margin-left: -6px; padding-right: 4px; }
.add { width: 100%; height: 44px; }

/* ---------- catalog layout ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 8px; }
.crumbs a:hover { color: var(--pink); }
.page-title { font-size: 36px; letter-spacing: -1.2px; margin: 0 0 20px; font-weight: 800; }
.page-title small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding-bottom: 48px; }
.side { background: #fff; border-radius: var(--radius); padding: 10px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; }
.side a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.side a span { color: var(--muted); font-size: 12px; }
.side a:hover { background: var(--bg); }
.side a.is-active { background: var(--navy); color: #fff; }
.side a.is-active span { color: #a9abc9; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; background: #fff; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.chip.is-on { background: var(--navy); color: #fff; }
.toolbar select { height: 40px; border: 0; background: #fff; border-radius: 10px; padding: 0 12px; }
.empty { background: #fff; border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; padding-bottom: 48px; }
.cart__list { background: #fff; border-radius: var(--radius); }
.row { display: grid; grid-template-columns: 72px 1fr 150px 130px 36px; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.row__name { font-size: 14px; font-weight: 500; }
.row__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.row__sum { text-align: right; font-weight: 800; font-size: 17px; }
.row__sum small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.row .qty { height: 38px; }
.row .qty button { width: 36px; }
.x { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 8px; height: 36px; }
.x:hover { background: var(--bg); color: var(--pink); }
.summary { background: #fff; border-radius: var(--radius); padding: 24px; position: sticky; top: 140px; }
.summary h3 { margin: 0 0 16px; font-size: 22px; }
.sline { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--muted); }
.sline b { color: var(--ink); font-weight: 600; }
.sline--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 16px; color: var(--ink); }
.sline--total b { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.meter { height: 8px; border-radius: 6px; background: var(--bg); overflow: hidden; margin: 12px 0 6px; }
.meter i { display: block; height: 100%; background: var(--pink); border-radius: 6px; transition: width .3s; }
.note { font-size: 13px; color: var(--muted); }
.note--ok { color: var(--ok); font-weight: 600; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; outline: 0; color: var(--ink); font-size: 15px; }
.field textarea { height: auto; min-height: 160px; padding: 12px 14px; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); }
.radio { display: flex; gap: 8px; flex-wrap: wrap; }
.radio label { flex: 1; min-width: 140px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--ink); }
.radio input { accent-color: var(--pink); margin-right: 6px; }
.radio label:has(input:checked) { border-color: var(--pink); background: var(--pink-l); }

.panel { background: #fff; border-radius: var(--radius); padding: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding-bottom: 48px; }
.steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.band { background: var(--navy); color: #fff; border-radius: 24px; padding: 40px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.band h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -1px; line-height: 1.1; }
.band p { margin: 0; color: #c9cae0; }

.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.terms .panel h3 { margin: 0 0 10px; }
.terms .panel p, .terms .panel li { color: var(--muted); font-size: 14px; }
.terms .panel ul { padding-left: 18px; margin: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t td, table.t th { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
table.t th { color: var(--muted); font-weight: 500; }

/* ---------- footer & toast ---------- */
.footer { background: var(--navy); color: #fff; padding: 48px 0 24px; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 15px; }
.footer__grid a { display: block; color: #c9cae0; font-size: 14px; padding: 3px 0; }
.footer__grid a:hover { color: #fff; }
.footer__muted { color: #8d8fb3; font-size: 14px; max-width: 360px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: 13px; color: #8d8fb3; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 14px; font-weight: 500; box-shadow: 0 12px 32px rgba(0,0,0,.25); transition: transform .25s; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .cart { grid-template-columns: 1fr; }
  .city, .topline__in > span:first-child { display: none; }
  .topline__in { justify-content: flex-end; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .header__in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .search { order: 5; flex-basis: 100%; }
  .btn-catalog { margin-left: auto; height: 42px; padding: 0 14px; }
  .hnav { display: none; }
  .city { display: block; margin-left: auto; }
  .btn-catalog { display: none; }
  .city select { height: 42px; font-size: 14px; padding: 0 28px 0 12px; }
  .topline { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero__main { padding: 32px 24px; min-height: 0; }
  .hero__main::before { width: 220px; height: 220px; right: -90px; bottom: -90px; }
  .hero__main::after { font-size: 80px; right: 14px; bottom: 10px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.2px; }
  .hero__side { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 10px; }
  .card__price b { font-size: 18px; }
  .tiers { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .row { grid-template-columns: 56px 1fr 30px; }
  .row img { width: 56px; height: 56px; }
  .row .qty, .row__sum { grid-column: 2 / 3; }
  .row__sum { text-align: left; }
  .row .x { grid-column: 3; grid-row: 1; }
  .two, .terms, .band, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .band { padding: 28px 24px; }
  .section__head h2, .page-title { font-size: 26px; }
}
.card__noimg { color: var(--muted); font-size: 13px; }

/* ---------- search suggestions ---------- */
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(24, 25, 63, .18); padding: 6px; z-index: 50; max-height: 520px; overflow-y: auto; }
.suggest__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 10px; font-size: 14px; }
.suggest__row:hover, .suggest__row.is-hl { background: var(--bg); }
.suggest__row img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.suggest__row small { display: block; color: var(--muted); font-size: 12px; }
.suggest__row b { white-space: nowrap; }
.suggest__row mark { background: none; color: var(--pink-d); font-weight: 700; }
.suggest__ic { width: 44px; height: 36px; display: grid; place-items: center; background: var(--pink-l); color: var(--pink); border-radius: 10px; font-size: 16px; }
.suggest__cat { grid-template-columns: 44px 1fr; }
.suggest__all { grid-template-columns: 1fr; color: var(--pink); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding: 12px 10px; }
.suggest__fix, .suggest__empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.hint { margin: -12px 0 16px; color: var(--muted); font-size: 14px; }

/* ---------- catalog filters ---------- */
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { white-space: nowrap; }
.chip small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.chip.is-on small { color: #a9abc9; }
.chips--mob, .chip--filter, .side__head, .side__apply { display: none; }
.chip--filter { align-items: center; gap: 6px; }
.chip--filter b { background: var(--pink); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 12px; }
.chip--tag { background: var(--pink-l); color: var(--pink-d); }
.chip--tag span { margin-left: 4px; font-weight: 700; }
.toolbar .chips { flex: 1; }
.side__head { justify-content: space-between; align-items: center; padding: 16px 0 8px; font-size: 18px; }
.fgroup { padding: 12px 6px; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; }
.fgroup h4 { margin: 0 0 10px; font-size: 14px; }
.side .side__back { color: var(--muted); font-size: 13px; }
.side .side__sub { padding-left: 22px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }
.check span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check small { color: var(--muted); font-size: 12px; }
.check.is-more { display: none; }
.is-searching .check.is-more:not([hidden]) { display: flex; }
.is-searching .linkbtn { display: none; }
.prange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prange input, .fsearch { width: 100%; height: 38px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; outline: 0; font-size: 14px; background: #fff; }
.prange input:focus, .fsearch:focus { border-color: var(--pink); }
.fsearch { margin-bottom: 8px; }
.linkbtn { border: 0; background: none; padding: 6px 2px; color: var(--pink); font-weight: 600; font-size: 13px; }
.side .btn { margin-top: 8px; }
body.no-scroll { overflow: hidden; }

/* ---------- product page ---------- */
.pp { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 24px; align-items: start; padding-top: 8px; }
.pp__img { position: relative; background: #fff; border-radius: 24px; display: grid; place-items: center; padding: 32px; min-height: 420px; }
.pp__img img { max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
.pp__name { font-size: 28px; line-height: 1.15; letter-spacing: -.6px; margin: 0 0 20px; }
.pp__meta a { color: var(--pink-d); }
.pp__meta th { width: 120px; }
.pp__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pp__price b { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.pp__price s { color: var(--muted); }
.pp__tiers { margin: 16px 0; }
.pp__tiers tr.is-on td { color: var(--pink-d); }
.pp__buy .qty, .pp__buy .add { height: 52px; }
.pp__perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.pp__perks li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.pp__perks svg { flex-shrink: 0; color: var(--pink); }
@media (max-width: 1100px) and (min-width: 821px) {
  .pp { grid-template-columns: 1fr 1fr; }
  .pp__side { grid-column: 1 / -1; }
}

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; grid-template-columns: repeat(5, 1fr); background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(24, 25, 63, .06); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; color: var(--muted); }
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar a.is-active { color: var(--pink); }
.tabbar .badge { top: 3px; right: calc(50% - 22px); }

@media (max-width: 820px) {
  .tabbar { display: grid; }
  .side { display: none; position: fixed; inset: 0; z-index: 60; border-radius: 0; max-height: none; padding: 0 16px 96px; top: 0; }
  .side.is-open { display: block; }
  .side__head { display: flex; position: sticky; top: 0; background: #fff; z-index: 1; }
  .side__apply { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; }
  .fgroup--cats { display: none; }
  .chip--filter { display: inline-flex; }
  .chips--mob { display: flex; }
  .toolbar { flex-wrap: nowrap; }
  .toolbar .chips { display: none; }
  .pp { grid-template-columns: 1fr; gap: 16px; padding-top: 4px; }
  .pp__img { min-height: 0; aspect-ratio: 4 / 3; }
  .pp__name { font-size: 22px; }
  .suggest { max-height: 60vh; }
}

/* ---------- excel order ---------- */
.quick { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: stretch; margin-bottom: 24px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 240px; border: 2px dashed var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--pink); background: var(--pink-l); }
.dropzone b { font-size: 18px; }
.dropzone u { color: var(--pink); text-decoration: none; }
.dropzone .note { max-width: 460px; margin: 0; }
.dropzone__ic { width: 56px; height: 56px; border-radius: 16px; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.dropzone__busy { display: none; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.9); place-items: center; font-weight: 600; }
.dropzone.is-busy .dropzone__busy { display: grid; }
.quick__side { display: flex; flex-direction: column; gap: 10px; }
.quick__side .eyebrow { margin-bottom: 4px; }
.quick__paste summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 0; }
.quick__paste textarea { width: 100%; min-height: 140px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; outline: 0; resize: vertical; margin-bottom: 4px; }
.quick__paste textarea:focus { border-color: var(--pink); }

.qres { margin-bottom: 48px; padding: 24px; }
.qres__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.qres__head h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.6px; }
.qstats { display: flex; gap: 8px; flex-wrap: wrap; }
.qs { font-size: 13px; font-weight: 600; border-radius: 8px; padding: 4px 10px; }
.qs--ok { background: #e3f6ee; color: var(--ok); }
.qs--check { background: #fff4dc; color: #a86a00; }
.qs--miss { background: var(--pink-l); color: var(--pink-d); }
.qmap { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.qmap label:not(.check) { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.qmap select { height: 36px; border: 2px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; max-width: 190px; }
.qmap .check { padding-bottom: 8px; font-size: 13px; }
.qtable { border-top: 1px solid var(--line); }
.qrow { display: grid; grid-template-columns: 32px minmax(160px, 1fr) minmax(260px, 1.6fr) 120px 110px; gap: 14px; align-items: center; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--line); font-size: 14px; border-left: 3px solid transparent; }
.qrow--head { font-size: 12px; color: var(--muted); font-weight: 500; border-left: 0; padding-left: 13px; }
.qrow--exact { border-left-color: var(--ok); }
.qrow--check { border-left-color: #f0b429; background: #fffbf0; }
.qrow--miss { border-left-color: var(--pink); background: #fff7fa; }
.qrow__n { color: var(--muted); font-size: 12px; }
.qrow__src small { display: block; color: var(--muted); font-size: 12px; }
.qrow__pick { display: flex; gap: 10px; align-items: center; min-width: 0; }
.qrow__pick img, .qrow__noimg { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; mix-blend-mode: multiply; }
.qrow__pick select, .qfind { flex: 1; min-width: 0; height: 38px; border: 2px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; font-size: 13px; outline: 0; }
.qfind:focus, .qrow__pick select:focus, .qrow__qty input:focus { border-color: var(--pink); }
.qrow__qty { display: flex; align-items: center; gap: 6px; }
.qrow__qty input { width: 70px; height: 38px; border: 2px solid var(--line); border-radius: 10px; padding: 0 8px; text-align: center; outline: 0; }
.qrow__qty small { color: var(--muted); font-size: 12px; }
.qrow__sum { text-align: right; font-weight: 700; padding-right: 4px; }
.qres__foot { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; }
.qres__foot b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.qres__foot .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 820px) {
  .quick { grid-template-columns: 1fr; }
  .dropzone { min-height: 180px; }
  .qres { padding: 16px; }
  .qrow { grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0 12px 10px; }
  .qrow--head, .qrow__n { display: none; }
  .qrow__src { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
  .qrow__pick { grid-column: 1 / -1; }
  .qres__foot { justify-content: stretch; }
  .qres__foot .btn { width: 100%; }
}

/* ---------- избранное, корзина, оформление, печать ---------- */
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .15s, transform .15s; }
.fav:hover { color: var(--pink); transform: scale(1.08); }
.fav.is-on { color: var(--pink); }
.pp__title { display: flex; gap: 12px; align-items: flex-start; }
.pp__title .fav { position: static; flex: none; background: var(--bg); margin-top: 2px; }
.row__noimg { display: block; width: 72px; height: 72px; border-radius: 12px; background: var(--bg); }
a.row__name { color: inherit; display: block; }
a.row__name:hover { color: var(--pink); }
.summary__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.summary__tools .btn { padding-left: 8px; padding-right: 8px; }
.radio label.is-off { opacity: .5; cursor: not-allowed; }
.radio small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.t-scroll { overflow-x: auto; }
.footer p.footer__muted { margin: 0; line-height: 1.6; }
@media (max-width: 820px) {
  .row__noimg { width: 56px; height: 56px; }
}
@media print {
  .topline, .header, .footer, .tabbar, .toast, .crumbs, .no-print { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .panel { box-shadow: none !important; padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .t th, .t td { padding: 6px 8px; }
}

/* шапка на телефоне — в цвет фона страницы, чтобы при прокрутке не было белого «островка» */
@media (max-width: 820px) {
  .header { background: var(--bg); box-shadow: none; transition: box-shadow .2s; }
  .header.is-scrolled { box-shadow: 0 6px 18px rgba(27, 29, 72, .08); }
  .subnav { border-top: 0; }
  .search { background: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(27, 29, 72, .06); }
  .city select { background-color: #fff; box-shadow: 0 1px 2px rgba(27, 29, 72, .06); }
  .subnav a.is-active, .subnav a:hover { background: #fff; }
}

/* плашка «Powered by Netlify» (iframe, вставляет хостинг): на телефоне — над нижним меню, а не поверх «Корзины» */
@media (max-width: 820px) {
  #nl-badge-frame { bottom: calc(55px + env(safe-area-inset-bottom)) !important; max-width: 100vw !important; }
}

/* проверка БИН в анкете регистрации */
.binbox { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin: -4px 0 4px; }
.binbox--wait { background: var(--bg); color: var(--muted); }
.binbox--ok { background: #eaf7ef; color: var(--ink); }
.binbox--warn { background: #fff6e5; color: #7a5300; }
.binbox--err { background: var(--pink-l); color: var(--pink-d); }
.binbox__ok { display: block; color: var(--ok); font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.binbox dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; font-size: 13px; }
.binbox dt { color: var(--muted); }
.binbox dd { margin: 0; }

/* переключатель языка */
.lang { flex: none; height: 46px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 14px; }
.lang:hover { background: var(--pink-l); color: var(--pink-d); }
@media (max-width: 820px) {
  .lang { height: 42px; min-width: 46px; padding: 0 10px; background: #fff; box-shadow: 0 1px 2px rgba(27, 29, 72, .06); }
  .city { min-width: 0; }
  .city select { max-width: 150px; }
}

/* прокрутка категорий под поиском: стрелки, затухание по краям, колесо мыши */
.subnav__box { position: relative; }
.subnav__in { position: relative; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.subnav__box.fade-l .subnav__in { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px); mask-image: linear-gradient(90deg, transparent 0, #000 48px); }
.subnav__box.fade-r .subnav__in { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 48px); mask-image: linear-gradient(270deg, transparent 0, #000 48px); }
.subnav__box.fade-l.fade-r .subnav__in { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.subnav__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; box-shadow: 0 2px 10px rgba(27, 29, 72, .15); display: grid; place-items: center; padding: 0 0 3px; }
.subnav__arrow:hover { color: var(--pink); }
.subnav__arrow--l { left: 12px; }
.subnav__arrow--r { right: 12px; }
.subnav__arrow[hidden] { display: none; }
/* на сенсорных экранах листают пальцем — стрелки не нужны, затухание остаётся подсказкой */
@media (hover: none) { .subnav__arrow { display: none; } }
