/* Тема 05 «Простір Товарів» — маркетплейс: цветная шапка в один ярус, постоянный сайдбар категорий на главной,
   компактные карточки, фильтры в сайдбаре категории, трёхколоночный товар, нижняя мобильная панель.
   Палитра: индиго #4f46e5 (бренд), тёмный индиго для подвала, amber для «Хіт» и акцентных кнопок, шрифт Inter. */

/* ---------- токены и сброс ---------- */
:root {
  --brand: #4f46e5; --brand-h: #4338ca; --brand-soft: #eef2ff; --brand-line: #c7d2fe; --brand-ink: #3730a3; --brand-dark: #312e81;
  --amber: #f59e0b; --amber-h: #d97706; --ok: #059669; --ok-soft: #ecfdf5; --warn: #d97706; --sale: #dc2626; --sale-soft: #fef2f2; --hit: #f59e0b; --new: #0891b2;
  --bg: #f1f2f6; --bg2: #f9fafb; --bg3: #f3f4f6; --white: #fff; --ink: #111827; --ink2: #374151; --muted: #6b7280; --line: #e5e7eb; --line2: #d1d5db;
  --r: 10px; --r-lg: 14px; --sh: 0 1px 2px rgba(17,24,39,.06); --sh2: 0 8px 28px rgba(17,24,39,.14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-h); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { background: var(--white); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-line); border-color: var(--brand); }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
body.no-scroll { overflow: hidden; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 16px; }
.lead { color: var(--ink2); font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; background: none; border: 0; padding: 0; font-size: 14px; }
.link:hover { text-decoration: underline; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; line-height: 1.2; border: 1px solid transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn--primary, .btn:not([class*="btn--"]) { background: var(--brand); color: var(--white); }
.btn--primary:hover, .btn:not([class*="btn--"]):hover { background: var(--brand-h); color: var(--white); }
.btn--outline { background: var(--white); color: var(--brand-ink); border-color: var(--brand-line); }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn--amber { background: var(--amber); color: #1f1300; }
.btn--amber:hover { background: var(--amber-h); color: #1f1300; }
.btn--white-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--white-outline:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--lg { padding: 13px 24px; font-size: 15px; }
.btn--icon { width: 46px; height: 46px; padding: 0; background: var(--white); border-color: var(--line2); color: var(--muted); }
.btn--icon:hover, .btn--icon.is-active { color: var(--sale); border-color: var(--sale); }
.btn--icon.is-active .ico { fill: var(--sale); }
.btn.is-in-cart { background: var(--ok); border-color: var(--ok); color: var(--white); }

/* ---------- шапка ---------- */
.hd { background: var(--brand); color: var(--white); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 8px rgba(49,46,129,.25); }
.hd__in { display: flex; align-items: center; gap: 14px; height: 66px; }
.burger { display: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; background: rgba(255,255,255,.14); }
.burger span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); flex: none; }
.logo:hover { color: var(--white); }
.logo__mark { width: 38px; height: 38px; }
.logo__text { font-weight: 800; font-size: 17px; line-height: 1.05; letter-spacing: -.01em; display: flex; flex-direction: column; }
.logo__text small { font-weight: 500; font-size: 11px; opacity: .8; letter-spacing: 0; }
.catwrap { position: relative; flex: none; }
.catbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 8px; background: rgba(255,255,255,.16); color: var(--white); font-weight: 600; font-size: 14px; transition: background .15s; }
.catbtn:hover, .catbtn.is-open { background: var(--white); color: var(--brand-ink); }
.catbtn__chev { width: 1em; height: 1em; transition: transform .2s; }
.catbtn.is-open .catbtn__chev { transform: rotate(180deg); }
.search { flex: 1 1 auto; display: flex; min-width: 0; height: 42px; background: var(--white); border-radius: 8px; overflow: visible; position: relative; }
.search input { height: 100%; border: 0; border-radius: 8px 0 0 8px; padding: 0 14px; font-size: 14px; color: var(--ink); flex: 1 1 auto; min-width: 0; }
.search input:focus { outline: none; }
.search button { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--amber); color: #1f1300; font-weight: 600; font-size: 14px; border-radius: 0 8px 8px 0; flex: none; }
.search button:hover { background: var(--amber-h); }
.hd__phone { display: flex; align-items: center; gap: 8px; color: var(--white); flex: none; }
.hd__phone:hover { color: var(--white); }
.hd__phone .ico { width: 22px; height: 22px; }
.hd__phone span { display: flex; flex-direction: column; line-height: 1.15; }
.hd__phone strong { font-size: 14px; font-weight: 700; }
.hd__phone small { font-size: 11px; opacity: .8; }
.hd__acts { display: flex; gap: 6px; flex: none; }
.hd__act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 50px; border-radius: 8px; color: var(--white); font-size: 11px; gap: 2px; transition: background .15s; }
.hd__act:hover { background: rgba(255,255,255,.14); color: var(--white); }
.hd__act .ico { width: 22px; height: 22px; }
.cnt { position: absolute; top: 2px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #1f1300; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cnt.is-empty { display: none; }

/* выпадающее меню каталога */
.catmenu { display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 1000px; max-width: calc(100vw - 32px); background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh2); z-index: 70; grid-template-columns: 1fr 250px; max-height: calc(100vh - 90px); overflow-y: auto; }
.catmenu.is-open { display: grid; }
.catmenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.catmenu .ctree--drop { display: grid; grid-template-columns: 1fr 1fr; padding: 10px; gap: 0 6px; align-content: start; }
.ctree--drop .ctree__item { position: static; }
.ctree--drop .ctree__sub { position: absolute; top: 0; right: 0; bottom: 0; width: 250px; background: var(--white); border-left: 1px solid var(--line); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 14px; overflow-y: auto; z-index: 2; }
.catmenu__aside { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--bg2); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.catmenu__aside-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.catmenu__aside > a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: var(--ink); font-size: 14px; font-weight: 500; }
.catmenu__aside > a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.catmenu__aside > a em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.catmenu__opt { margin-top: auto; background: var(--brand-soft); border-radius: 8px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.catmenu__opt strong { color: var(--brand-ink); margin-bottom: 2px; }
.catmenu__opt b { color: var(--sale); }
.catmenu__phone { margin-top: 10px; font-weight: 700; color: var(--brand-ink) !important; }

/* дерево категорий (общее для сайдбара и меню) */
.ctree { display: flex; flex-direction: column; }
.ctree__item { position: relative; }
.ctree__link { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.ctree__link img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg3); }
.ctree__link > .ico:first-child { width: 20px; height: 20px; color: var(--brand); margin: 3px; }
.ctree__link span { flex: 1 1 auto; min-width: 0; }
.ctree__link em { font-style: normal; font-size: 12px; color: var(--muted); }
.ctree__chev { width: 14px; height: 14px; color: var(--muted); }
.ctree__item:hover > .ctree__link, .ctree__item.is-active > .ctree__link { background: var(--brand-soft); color: var(--brand-ink); }
.ctree__item--col .ctree__link { font-weight: 600; }
.ctree__item--sale .ctree__link > .ico { color: var(--sale); }
.ctree__item--hits .ctree__link > .ico { color: var(--hit); }
.ctree__item--new .ctree__link > .ico { color: var(--new); }
.ctree__sub { display: none; }
.ctree__item:hover > .ctree__sub { display: block; }
.ctree__sub-title { display: block; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.ctree__sub-title small { font-weight: 500; color: var(--muted); font-size: 12px; }
.ctree__sub-link { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; color: var(--ink); font-size: 13.5px; }
.ctree__sub-link:hover { background: var(--brand-soft); color: var(--brand-ink); }
.ctree__sub-link img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: var(--bg3); }
.ctree__sub-link span { flex: 1 1 auto; }
.ctree__sub-link em { font-style: normal; font-size: 12px; color: var(--muted); }

/* постоянный сайдбар категорий (главная, каталог) */
.side-cats { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 8px; position: relative; }
.side-cats__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 8px 10px; font-weight: 700; font-size: 14px; color: var(--brand-ink); border-bottom: 1px solid var(--line); }
.side-cats__title em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.ctree--side .ctree__link { padding: 4px 8px; }
.ctree--side .ctree__sub { position: absolute; left: 100%; top: -8px; width: 560px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh2); padding: 14px; z-index: 40; margin-left: 6px; }
.ctree--side .ctree__sub::before { content: ""; position: absolute; left: -6px; top: 0; bottom: 0; width: 6px; }
.ctree--side .ctree__sub-title { grid-column: 1 / -1; }
.ctree--side .ctree__item:hover > .ctree__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }

/* мобильное меню */
.mnav { display: none; }

/* ---------- крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0 4px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs__cur { color: var(--ink2); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- секции ---------- */
.sec { padding: 28px 0; }
.sec--first { padding-top: 14px; }
.sec--white { background: var(--white); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec__head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.sec__head h2 .ico { color: var(--amber); }
.sec__head h2 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.sec__head--tight { margin: 22px 0 12px; }
.sec__head--tabs { justify-content: flex-start; }
.sec__more { text-align: center; margin: 18px 0 0; }
.page-head { margin-bottom: 14px; }
.page-head h1 { margin-bottom: 4px; }
.page-head .lead { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- главная: сайдбар + слайдер + популярное ---------- */
.home-top { padding-top: 16px; }
.home-top__in { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.home-main { min-width: 0; }

.slider { position: relative; height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-dark); color: var(--white); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: center; padding: 28px 40px 44px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide--hero { background: linear-gradient(115deg, #4338ca 0%, #4f46e5 55%, #6366f1 100%); }
.slide--sale { background: linear-gradient(115deg, #7f1d1d 0%, #b91c1c 55%, #dc2626 100%); }
.slide--opt { background: linear-gradient(115deg, #1e1b4b 0%, #312e81 60%, #3730a3 100%); }
.slide__text { min-width: 0; }
.slide__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 20px; margin-bottom: 12px; }
.slide h1, .slide h2 { font-size: 30px; line-height: 1.15; margin-bottom: 10px; font-weight: 800; }
.slide p { font-size: 15px; opacity: .92; margin-bottom: 14px; max-width: 48ch; }
.slide__price { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slide__price b { font-size: 26px; }
.slide__price s { opacity: .7; }
.slide__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.slide__pic { background: var(--white); border-radius: 12px; height: 250px; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.slide__pic img { max-height: 100%; width: auto; object-fit: contain; }
.slide__tiers { display: flex; flex-direction: column; gap: 10px; }
.slide__tiers div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 14px 18px; display: flex; align-items: baseline; gap: 12px; }
.slide__tiers b { font-size: 30px; color: var(--amber); }
.slide__tiers span { font-size: 15px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slider__dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.45); transition: width .2s, background .2s; }
.slider__dots button.is-active { width: 22px; background: var(--white); }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); color: var(--white); font-size: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; }
.slider__arrow:hover { background: rgba(255,255,255,.35); }
.slider__arrow--prev { left: 10px; } .slider__arrow--next { right: 10px; }

/* ---------- сетки и карточки ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.card:hover { box-shadow: var(--sh2); border-color: var(--brand-line); z-index: 1; }
.card__img { display: block; aspect-ratio: 1; background: var(--white); padding: 10px; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.badge { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1.4; color: var(--white); }
.badge--sale { background: var(--sale); }
.badge--hit { background: var(--hit); color: #1f1300; }
.badge--new { background: var(--new); }
.card__fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--white); box-shadow: var(--sh); color: var(--muted); display: flex; align-items: center; justify-content: center; z-index: 1; transition: color .15s; }
.card__fav:hover, .card__fav.is-active { color: var(--sale); }
.card__fav.is-active .ico { fill: var(--sale); }
.card__fav .ico { width: 17px; height: 17px; }
.card__body { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.card__title { color: var(--ink); font-size: 13.5px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__title:hover { color: var(--brand); }
.card__lead { display: none; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.avail--pre { color: var(--warn); }
.avail--pre::before { background: var(--warn); }
.card__sku { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card__price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.price { font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.price--sale { color: var(--sale); }
.price--old { font-size: 12.5px; color: var(--muted); }
.card__opt { font-size: 11px; color: var(--brand-ink); font-weight: 600; margin-top: 2px; }
.card__buy { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px; transition: background .15s; }
.card__buy:hover { background: var(--brand-h); }
.card__buy .ico { width: 20px; height: 20px; }
.card__buy .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card__buy.is-in-cart { background: var(--ok); }

/* вид списком */
.grid--list { grid-template-columns: 1fr; }
.grid--list .card { flex-direction: row; align-items: stretch; }
.grid--list .card__img { width: 180px; flex: none; aspect-ratio: auto; }
.grid--list .card__body { padding: 14px 16px; }
.grid--list .card__title { font-size: 16px; font-weight: 600; min-height: 0; -webkit-line-clamp: 3; }
.grid--list .card__lead { display: block; color: var(--ink2); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid--list .card__buy { width: auto; padding: 0 18px; }
.grid--list .card__buy .btn__label { position: static; width: auto; height: auto; clip: auto; }
.grid--list .card__fav { top: 12px; right: 12px; }
.grid-empty { background: var(--white); border-radius: var(--r); padding: 24px; text-align: center; color: var(--ink2); }
.grid-more { text-align: center; margin: 18px 0 0; }

/* мини-карточки (поиск, обране, недавно смотрели) */
.mgrid, .favs__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.recent__row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.recent__row .mcard { flex: 0 0 200px; scroll-snap-align: start; }
.mcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.mcard:hover { box-shadow: var(--sh2); }
.mcard__img { display: block; aspect-ratio: 1; padding: 10px; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; }
.mcard__body { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.mcard__cat { font-size: 11px; color: var(--muted); }
.mcard__name { color: var(--ink); font-size: 13.5px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__price { font-weight: 800; font-size: 17px; }
.mcard__price s { font-size: 12px; color: var(--muted); font-weight: 500; }
.mcard__foot { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.favs__empty, .cart__empty, .favs__loading, .cart__loading { background: var(--white); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; color: var(--ink2); }
.cart__empty-title, .favs__empty-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.search-results { margin-bottom: 20px; }
.search-results h2 { margin-bottom: 14px; }

/* подсказки поиска */
.search__drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); color: var(--ink); border-radius: var(--r); box-shadow: var(--sh2); z-index: 80; max-height: 70vh; overflow-y: auto; padding: 6px; }
.search__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 7px; color: var(--ink); }
.search__item:hover { background: var(--brand-soft); }
.search__item img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--bg3); flex: none; }
.search__name { flex: 1 1 auto; display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.search__name small { color: var(--muted); font-size: 12px; }
.search__price { font-weight: 700; white-space: nowrap; }
.search__all { display: block; text-align: center; padding: 10px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }
.search__empty { padding: 14px; color: var(--muted); text-align: center; }

/* ---------- плитки категорий ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px 12px; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.tile:hover { box-shadow: var(--sh2); border-color: var(--brand-line); color: var(--brand-ink); }
.tile img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; background: var(--bg3); }
.tile span { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.tile em { font-style: normal; font-size: 12px; color: var(--muted); }
.tile--all { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); justify-content: center; }
.tile--all .ico { width: 44px; height: 44px; margin: 20px 0; }

/* ---------- вкладки ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs__btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 20px; background: var(--bg3); color: var(--ink2); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.tabs__btn:hover { background: var(--brand-soft); color: var(--brand-ink); }
.tabs__btn.is-active { background: var(--brand); color: var(--white); }
.tabs__panel { min-width: 0; }

/* ---------- преимущества, опт, шаги, FAQ ---------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.usp__item { display: flex; gap: 12px; background: var(--white); border-radius: var(--r); padding: 16px; border: 1px solid var(--line); }
.usp__item .ico { width: 28px; height: 28px; color: var(--brand); flex: none; }
.usp__item strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.usp__item p { margin: 0; font-size: 13px; color: var(--ink2); }
.opt { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.opt__text h2 { font-size: 24px; }
.opt__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-size: 14px; }
.checks .ico { color: var(--ok); margin-top: 3px; }
.opt__tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt__tier { background: var(--brand); color: var(--white); border-radius: var(--r-lg); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.opt__tier b { font-size: 32px; line-height: 1; color: var(--amber); }
.opt__tier span { font-weight: 600; font-size: 14px; }
.opt__tier small { font-size: 12px; opacity: .8; }
.opt__tier--base { background: var(--bg3); color: var(--ink); }
.opt__tier--base b { color: var(--ink); font-size: 20px; padding: 6px 0; }
.opt__tiers--page { margin: 6px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.steps b { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 14px; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink2); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { color: var(--muted); transition: transform .2s; flex: none; }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item p { margin: 0 0 14px; color: var(--ink2); font-size: 14px; }
.about-box__card { margin-top: 14px; background: var(--brand-soft); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.about-box__card strong { font-size: 15px; }
.about-box__card span, .about-box__card a { display: inline-flex; align-items: center; gap: 8px; }
.about-box__card .ico { color: var(--brand); }
.prose { font-size: 15px; color: var(--ink2); }
.prose h2 { font-size: 20px; margin-top: 1.2em; color: var(--ink); }
.prose h3 { font-size: 17px; margin-top: 1em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 1em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: 4px; }
.prose table { margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- каталог ---------- */
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.cat-main { min-width: 0; }
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card { display: flex; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-width: 0; }
.cat-card__img { flex: none; }
.cat-card__img img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--bg3); }
.cat-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-card__title { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.cat-card__title:hover { color: var(--brand); }
.cat-card__title em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
.cat-card__subs { display: flex; flex-direction: column; gap: 1px; }
.cat-card__subs a { font-size: 12.5px; color: var(--ink2); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card__subs a:hover { color: var(--brand); }
.cat-card__more { color: var(--brand) !important; font-weight: 600; }
.cat-card__lead { font-size: 12.5px; color: var(--muted); margin: 0; }
.cat-row { margin-bottom: 28px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-row h2 a { color: var(--ink); }
.cat-row h2 a:hover { color: var(--brand); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 13px; color: var(--muted); }
.trust__item .ico { width: 26px; height: 26px; color: var(--brand); flex: none; }
.trust__item strong { display: block; color: var(--ink); font-size: 14.5px; }
.trust__item a strong { color: var(--brand-ink); }

/* чипы подкатегорий */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; color: var(--ink); font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s; }
.chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg3); }
.chip > .ico { width: 18px; height: 18px; margin-left: 6px; color: var(--brand); }
.chip em { font-style: normal; color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip.is-active em { color: rgba(255,255,255,.8); }
.chip--back { padding-left: 10px; }

/* сайдбар фильтров */
.sidebar { display: flex; flex-direction: column; gap: 12px; }
.filters { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 6px 14px 14px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.filters__head strong { display: inline-flex; align-items: center; gap: 6px; }
.filters__close { display: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg3); align-items: center; justify-content: center; }
.filters__group { padding: 12px 0; border-top: 1px solid var(--line); }
.filters__title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); margin-bottom: 8px; }
.flist { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; margin: 0 -6px; }
.flist a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--ink); font-size: 13.5px; }
.flist a em { font-style: normal; color: var(--muted); font-size: 12px; }
.flist a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.flist a.is-active { background: var(--brand); color: var(--white); font-weight: 600; }
.flist a.is-active em { color: rgba(255,255,255,.8); }
.flist li.is-open > a { font-weight: 600; }
.flist li ul { padding-left: 12px; border-left: 2px solid var(--brand-line); margin: 2px 0 6px 10px; }
.flist__col a { font-weight: 600; color: var(--brand-ink); }
.range { display: flex; align-items: center; gap: 6px; }
.range input { padding: 7px 8px; font-size: 13px; }
.range span { color: var(--muted); }
.range__sliders { position: relative; height: 24px; margin-top: 8px; }
.range__sliders input[type="range"] { position: absolute; left: 0; right: 0; top: 0; width: 100%; padding: 0; border: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; height: 24px; }
.range__sliders input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--brand-line); border-radius: 2px; }
.range__sliders input[type="range"]::-moz-range-track { height: 4px; background: var(--brand-line); border-radius: 2px; }
.range__sliders input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--brand); margin-top: -7px; pointer-events: auto; cursor: pointer; }
.range__sliders input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 2px solid var(--white); pointer-events: auto; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; padding: 0; accent-color: var(--brand); margin: 0; flex: none; }
.check span { flex: 1 1 auto; }
.check em { font-style: normal; color: var(--muted); font-size: 12px; }
.filters__foot { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters__foot .btn { flex: 1 1 0; }
.side-box { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.side-box > strong { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 4px; }
.side-box > strong .ico { color: var(--brand); }
.side-box > span b { color: var(--sale); }
.side-box small { color: var(--muted); font-size: 12.5px; }
.side-box p { margin: 0; color: var(--ink2); }
.side-box__phone { font-size: 19px; font-weight: 800; color: var(--ink); }
.side-box__msgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.side-box__row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-box__row:last-child { border-bottom: 0; padding-bottom: 0; }
.side-box__row:first-child { padding-top: 0; }
.side-box__row .ico { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.side-box__row strong { display: block; font-size: 13.5px; }
.side-box__row small { display: block; }

/* тулбар */
.toolbar { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--r); padding: 8px 12px; margin-bottom: 12px; box-shadow: var(--sh); flex-wrap: wrap; }
.toolbar__filters { display: none; }
.toolbar__count { font-size: 13px; color: var(--muted); }
.toolbar__sort { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.toolbar__sort select { width: auto; padding: 6px 28px 6px 10px; font-size: 13px; border-color: var(--line); }
.toolbar__view { display: flex; gap: 4px; }
.toolbar__view button { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--line); }
.toolbar__view button.is-active { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); }
.cat-seo { margin-top: 28px; background: var(--white); border-radius: var(--r-lg); padding: 20px 24px; font-size: 14px; }
.cat-seo h2 { font-size: 18px; margin-top: 0; }

/* ---------- товар ---------- */
.product { display: grid; grid-template-columns: 440px minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.product__gallery { position: sticky; top: 82px; }
.gallery__main { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery__main .card__badges { top: 12px; left: 12px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumb { width: 68px; height: 68px; border: 2px solid var(--line); border-radius: 8px; background: var(--white); padding: 4px; overflow: hidden; transition: border-color .15s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover, .gallery__thumb.is-active { border-color: var(--brand); }
.product__info h1 { font-size: 24px; margin-bottom: 8px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product__meta b { color: var(--ink); font-weight: 600; }
.product__lead { color: var(--ink2); margin-bottom: 16px; }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price--big { font-size: 32px; }
.price--big small { font-size: 15px; }
.buybox__price .price--old { font-size: 16px; }
.buybox__min { margin: -4px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warn); font-weight: 600; }
.buybox__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buybox__row .js-buy { flex: 1 1 auto; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; height: 46px; background: var(--white); flex: none; }
.qty button { width: 38px; height: 100%; font-size: 18px; color: var(--ink2); background: var(--bg3); }
.qty button:hover { background: var(--brand-soft); color: var(--brand-ink); }
.qty input { width: 64px; height: 100%; border: 0; border-radius: 0; text-align: center; padding: 0 4px; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.buybox__tiers { border-top: 1px solid var(--line); padding-top: 12px; }
.buybox__tiers-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.buybox__tiers-title .ico { color: var(--brand); }
.buybox__tiers small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.tiers-tbl { font-size: 13.5px; }
.tiers-tbl td, .tiers-tbl th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tiers-tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tiers-tbl tr:last-child td { border-bottom: 0; }
.tiers-tbl td:nth-child(2) { text-align: right; white-space: nowrap; }
.tier-pct { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--sale-soft); color: var(--sale); font-weight: 700; font-size: 12px; }
.checks--product { margin-top: 16px; }
.product__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 82px; }
.features th { width: 40%; text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.features td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ---------- инфостраницы ---------- */
.info { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.info__side { display: flex; flex-direction: column; gap: 12px; }
.info__nav { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.info__nav a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14px; }
.info__nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.info__nav a.is-active { background: var(--brand); color: var(--white); }
.info__main { background: var(--white); border-radius: var(--r-lg); padding: 28px 32px; min-width: 0; }
.info__main h1 { font-size: 26px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.contacts__card { background: var(--brand-soft); border-radius: var(--r-lg); padding: 20px; font-size: 14.5px; }
.contacts__card h2 { font-size: 18px; }
.contacts__card p { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.contacts__card .ico { color: var(--brand); flex: none; }
.contacts__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.contacts__msgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.contacts__note { font-size: 13px; color: var(--ink2); }
.contacts__map { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: var(--bg3); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.callout { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--brand-dark); color: var(--white); border-radius: var(--r-lg); padding: 18px 22px; flex-wrap: wrap; }
.callout strong { display: block; font-size: 16px; }
.callout span { font-size: 13px; opacity: .85; }
.callout .btn--primary { background: var(--amber); color: #1f1300; }

/* ---------- корзина ---------- */
.cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cart__list { background: var(--white); border-radius: var(--r-lg); padding: 8px 16px 16px; }
.cart__table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cart__table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart__img img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: var(--bg3); }
.cart__name a { color: var(--ink); font-weight: 500; display: block; }
.cart__name a:hover { color: var(--brand); }
.cart__sku, .cart__min { display: block; font-size: 12px; color: var(--muted); }
.cart__price s { color: var(--muted); font-size: 12px; }
.cart__qty .qty { height: 38px; }
.cart__qty .qty button { width: 32px; }
.cart__qty .qty input { width: 54px; }
.cart__sum { white-space: nowrap; }
.cart__rm button { width: 30px; height: 30px; border-radius: 50%; background: var(--bg3); color: var(--muted); font-size: 18px; }
.cart__rm button:hover { background: var(--sale-soft); color: var(--sale); }
.cart__actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.cart__summary { background: var(--white); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh); }
.cart__line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.cart__line small { display: block; color: var(--muted); font-size: 12px; }
.cart__line--disc { color: var(--sale); font-weight: 600; }
.cart__line--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 20px; font-weight: 800; }
.cart__hint { background: var(--brand-soft); color: var(--brand-ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.cart__form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cart__form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.cart__note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.cart__msgs { display: flex; flex-wrap: wrap; gap: 6px; }
.cart__msgs .btn { flex: 1 1 45%; font-size: 13px; padding: 8px 10px; }
.cart__seller { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- модалка быстрого заказа, тост ---------- */
.order-modal { position: fixed; inset: 0; z-index: 100; background: rgba(17,24,39,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.order-modal__box { position: relative; background: var(--white); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; }
.order-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; }
.order-modal__prod { color: var(--ink2); font-size: 14px; background: var(--brand-soft); padding: 8px 12px; border-radius: 8px; }
.order-modal__form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.order-modal__form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.order-modal__hint { font-size: 13px; color: var(--ok); margin: 0; }
.order-modal__or { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 8px; }
.order-modal__row { display: flex; flex-wrap: wrap; gap: 6px; }
.order-modal__row .btn { flex: 1 1 45%; font-size: 13px; padding: 8px 10px; }
.order-modal__note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--sh2); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; z-index: 110; max-width: calc(100vw - 32px); }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast a { color: var(--amber); font-weight: 600; }

/* ---------- CTA, футер, мобильная панель ---------- */
.cta { background: var(--brand); color: var(--white); padding: 28px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta__text h2 { font-size: 22px; margin-bottom: 4px; }
.cta__text p { margin: 0; opacity: .92; max-width: 70ch; font-size: 14.5px; }
.cta__text b { color: var(--amber); }
.cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ft { background: var(--brand-dark); color: #c7d2fe; padding: 36px 0 0; font-size: 14px; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 28px; }
.ft__col { display: flex; flex-direction: column; gap: 6px; }
.ft__col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ft__col a { color: #c7d2fe; }
.ft__col a:hover { color: var(--white); }
.ft__col p { margin: 0; display: flex; align-items: center; gap: 8px; }
.ft__col p .ico { flex: none; }
.ft__tag { color: var(--white); font-weight: 500; }
.ft__fop { color: var(--white); font-weight: 600; margin-top: 6px !important; }
.logo--ft { margin-bottom: 8px; }
.ft__opt { margin-top: 10px; background: rgba(255,255,255,.08); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ft__opt strong { color: var(--white); }
.ft__opt b { color: var(--amber); }
.ft__phone { font-size: 20px; font-weight: 800; color: var(--white) !important; }
.ft__msg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ft__msg a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; font-size: 13px; }
.ft__msg a:hover { background: rgba(255,255,255,.1); }
.ft__pay { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; }
.ft__pay span { display: inline-flex; align-items: center; gap: 6px; }
.ft__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #a5b4fc; }
.mbar { display: none; }

/* ---------- адаптив: планшет ---------- */
@media (max-width: 1100px) {
  .hd__phone span { display: none; }
  .hd__act span { display: none; }
  .hd__act { width: 48px; }
  .catmenu { width: calc(100vw - 32px); }
  .grid--5 { grid-template-columns: repeat(4, 1fr); }
  .product { grid-template-columns: 380px minmax(0, 1fr); }
  .product__side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; position: static; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .mgrid, .favs__grid { grid-template-columns: repeat(4, 1fr); }
  .ft__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- адаптив: мобильный ---------- */
@media (max-width: 899px) {
  body { padding-bottom: 64px; font-size: 14px; }
  h1 { font-size: 22px; } h2 { font-size: 19px; }
  .hd { position: static; box-shadow: none; }
  .hd__in { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; gap: 8px 10px; }
  .burger { display: flex; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text { font-size: 15px; }
  .logo__text small { display: none; }
  .catwrap { display: none; }
  .search { order: 10; flex: 1 1 100%; height: 40px; }
  .search button span { display: none; }
  .search button { padding: 0 14px; }
  .hd__phone { margin-left: auto; width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.14); justify-content: center; }
  .hd__acts { display: none; }
  .crumbs { padding-top: 10px; }
  .crumbs__cur { max-width: 100%; white-space: normal; }

  /* мобильное меню */
  .mnav { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: var(--white); color: var(--ink); z-index: 90; overflow-y: auto; transform: translateX(-104%); transition: transform .25s; box-shadow: var(--sh2); padding-bottom: 20px; }
  .mnav.is-open { transform: translateX(0); }
  .mnav__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--brand); color: var(--white); }
  .mnav__brand { font-weight: 800; font-size: 16px; }
  .mnav__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; font-size: 13px; }
  .mnav__links { display: flex; flex-direction: column; padding: 8px; border-bottom: 1px solid var(--line); }
  .mnav__links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
  .mnav__links a .ico { color: var(--brand); width: 20px; height: 20px; }
  .mnav__links a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--sale); }
  .mnav__links a.is-active { background: var(--brand-soft); color: var(--brand-ink); }
  .mnav__col { font-weight: 500 !important; font-size: 14px !important; }
  .mnav__title { margin: 0; padding: 12px 20px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .mnav__cats { display: flex; flex-direction: column; padding: 0 8px 8px; }
  .mnav__cats a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
  .mnav__cats a img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: var(--bg3); }
  .mnav__cats a span { flex: 1 1 auto; }
  .mnav__cats a em { font-style: normal; font-size: 12px; color: var(--muted); }
  .mnav__foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
  .mnav__foot p { flex: 1 1 100%; margin: 8px 0 0; }

  /* нижняя панель */
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 60px; background: var(--white); border-top: 1px solid var(--line); z-index: 80; box-shadow: 0 -4px 16px rgba(17,24,39,.08); }
  .mbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .mbar a .ico { width: 22px; height: 22px; }
  .mbar a.is-active { color: var(--brand); }
  .mbar .cnt { top: 4px; left: calc(50% + 2px); }
  .toast { bottom: 72px; }

  .sec { padding: 20px 0; }
  .home-top { padding-top: 12px; }
  .home-top__in, .cat-layout { grid-template-columns: 1fr; gap: 14px; }
  .side-cats { display: none; }
  .slider { height: 330px; }
  .slide { grid-template-columns: 1fr; padding: 20px 18px 40px; align-content: start; gap: 12px; }
  .slide__pic { display: none; }
  .slide h1, .slide h2 { font-size: 21px; }
  .slide p { font-size: 13.5px; margin-bottom: 10px; }
  .slide__kicker { font-size: 11px; margin-bottom: 8px; }
  .slide__price b { font-size: 22px; }
  .slide__tiers { flex-direction: row; gap: 8px; }
  .slide__tiers div { padding: 8px 12px; flex-direction: column; gap: 0; flex: 1 1 0; }
  .slide__tiers b { font-size: 22px; }
  .slide__tiers span { font-size: 12px; }
  .slider__arrow { display: none; }
  .slide .btn { padding: 9px 13px; font-size: 13px; }
  .grid, .grid--4, .grid--5, .mgrid, .favs__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card__body { padding: 8px 10px 10px; }
  .card__title { font-size: 12.5px; }
  .price { font-size: 16px; }
  .card__buy { width: 36px; height: 36px; }
  .card__meta .card__sku { display: none; }
  .grid--list .card__img { width: 120px; }
  .grid--list .card__buy { padding: 0 12px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { padding: 10px 6px; }
  .tile img { width: 60px; height: 60px; }
  .tile span { font-size: 12px; }
  .tile em { font-size: 11px; }
  .tile--all .ico { width: 32px; height: 32px; margin: 14px 0; }
  .tabs__btn { padding: 7px 12px; font-size: 13px; }
  .usp, .steps, .opt__tiers, .trust, .cat-cards, .contacts { grid-template-columns: 1fr; }
  .opt, .two-col { grid-template-columns: 1fr; gap: 20px; }
  .opt__tiers { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .opt__tier { padding: 12px 6px; }
  .opt__tier b { font-size: 22px; }
  .opt__tier--base b { font-size: 16px; }
  .opt__tier span { font-size: 11.5px; }
  .opt__tier small { display: none; }
  .recent__row .mcard { flex-basis: 160px; }

  /* фильтры — выезжающая панель */
  .sidebar .side-box { display: none; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 380px); z-index: 95; border-radius: 0; overflow-y: auto; transform: translateX(-104%); transition: transform .25s; box-shadow: var(--sh2); padding-bottom: 90px; }
  .filters.is-open { transform: translateX(0); }
  .filters__close { display: flex; }
  .filters__foot { position: fixed; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--white); padding: 12px 14px; border-top: 1px solid var(--line); }
  .filters__group--cats { display: none; }
  .toolbar { gap: 8px; padding: 8px 10px; }
  .toolbar__filters { display: inline-flex; }
  .toolbar__count { display: none; }
  .toolbar__sort span { display: none; }
  .toolbar__sort select { max-width: 160px; }
  .cat-seo { padding: 16px; }
  .chips { gap: 6px; }
  .chip { font-size: 12px; padding: 4px 10px 4px 4px; }
  .chip img { width: 26px; height: 26px; }

  /* товар */
  .product { grid-template-columns: 1fr; gap: 16px; }
  .product__gallery, .product__side { position: static; }
  .product__side { grid-template-columns: 1fr; }
  .product__info h1 { font-size: 20px; }
  .price--big { font-size: 26px; }
  .buybox { padding: 14px; }
  .buybox__row .js-buy { flex: 1 1 100%; order: 3; }
  .gallery__thumb { width: 56px; height: 56px; }

  /* инфостраницы, корзина */
  .info { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .info__side { min-width: 0; }
  .info__nav { flex-direction: row; overflow-x: auto; }
  .info__nav a { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
  .info__side .side-box { display: none; }
  .info__main { padding: 18px 16px; }
  .contacts__map { min-height: 260px; }
  .callout { padding: 16px; }
  .cart__grid { grid-template-columns: 1fr; }
  .cart__list { padding: 0 12px 12px; }
  .cart__table thead { display: none; }
  .cart__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart__table td { padding: 0; border: 0; }
  .cart__img { grid-row: 1 / 4; }
  .cart__name { grid-column: 2; }
  .cart__rm { grid-column: 3; grid-row: 1; }
  .cart__price, .cart__qty, .cart__sum { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .cart__price::before, .cart__qty::before, .cart__sum::before { content: attr(data-label) ":"; color: var(--muted); font-size: 12px; min-width: 70px; }
  .cart__actions { flex-wrap: wrap; }
  .cta { padding: 20px 0; }
  .cta__text h2 { font-size: 18px; }
  .ft { padding-top: 24px; }
  .ft__grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 20px; }
  .ft__bottom { flex-direction: column; gap: 4px; padding: 14px 16px; }
  .order-modal__box { padding: 22px 16px; }
}
@media (max-width: 420px) {
  .logo__text { font-size: 14px; }
  .search input { padding: 0 10px; font-size: 13px; }
}
