/* ============================================================
   Тема 04 «Усе Поруч» — интернет-магазин казанов, скороварок и
   подарков для отдыха на природе. Графитовая шапка + огненный акцент.
   Шрифты: Oswald (заголовки) + Rubik (текст). Брейкпоинт мобильной
   раскладки — 900px (совпадает с логикой shop.js).
   ============================================================ */

/* ---------- Переменные и базовые стили ---------- */
:root {
  --coal: #1b1b1f;
  --coal-2: #26262b;
  --coal-3: #33333a;
  --coal-line: #3b3b44;
  --fire: #ff7a1a;
  --fire-2: #ffb347;
  --fire-dark: #d9610a;
  --fire-soft: #fff1e6;
  --cream: #f7f3ee;
  --cream-2: #efe8df;
  --ink: #1d1b19;
  --muted: #6c655e;
  --line: #e3dcd3;
  --on-dark: #ebe6df;
  --on-dark-muted: #a9a39c;
  --ok: #2e9e5b;
  --danger: #d63a3a;
  --white: #fff;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 10px 30px rgba(27, 27, 31, .12);
  --shadow-sm: 0 2px 10px rgba(27, 27, 31, .08);
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-text: 'Rubik', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 15px/1.55 var(--font-text);
  color: var(--ink);
  background: var(--white);
  min-width: 320px;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fire-dark); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(28px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; display: inline-block; }
.ico--lg { width: 28px; height: 28px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(900px, 100% - 32px); }
.muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); max-width: 70ch; }
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.kicker--fire { color: var(--fire); }
.link { color: var(--fire-dark); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link .ico { width: 16px; height: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 2px solid transparent;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 17px; height: 17px; }
.btn--primary { background: var(--fire); color: var(--coal); border-color: var(--fire); }
.btn--primary:hover { background: var(--fire-dark); border-color: var(--fire-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--coal); border-color: var(--coal); }
.btn--outline:hover { background: var(--coal); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--coal); border-color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 10px; }
.btn--ghost:hover { color: var(--fire-dark); background: var(--fire-soft); }
.btn--ghost.is-active { color: var(--fire-dark); }
.btn--ghost.is-active .ico { fill: var(--fire); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:not([class*="btn--"]) { background: var(--coal); color: var(--white); border-color: var(--coal); }
.btn:not([class*="btn--"]):hover { background: var(--fire); border-color: var(--fire); color: var(--coal); }
.btn--sm:not(.btn--outline):not(.btn--primary) { background: var(--coal); color: var(--white); border-color: var(--coal); }
.btn--sm:not(.btn--outline):not(.btn--primary):hover { background: var(--fire); border-color: var(--fire); color: var(--coal); }
.js-buy.is-in-cart { background: var(--ok); border-color: var(--ok); color: var(--white); }

/* ---------- Бейджи, цены, наличие ---------- */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--coal);
  color: var(--white);
}
.badge--sale { background: var(--fire); color: var(--coal); }
.badge--hit { background: var(--coal); color: var(--fire-2); }
.badge--new { background: var(--ok); }
.price { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--coal); line-height: 1.1; }
.price small { font-size: 12px; font-family: var(--font-text); font-weight: 400; color: var(--muted); text-transform: none; }
.price--sale { color: var(--fire-dark); }
.price--old { color: var(--muted); font-size: 13px; }
.price--big { font-size: 36px; }
.avail { font-size: 13px; color: var(--ok); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.avail--pre { color: var(--muted); }
.avail--pre::before { background: var(--fire-2); }

/* ---------- Промо-полоса ---------- */
.promo { background: var(--coal-3); color: var(--on-dark-muted); font-size: 12.5px; border-bottom: 1px solid var(--coal-line); }
.promo__in { display: flex; gap: 28px; align-items: center; min-height: 32px; overflow: hidden; white-space: nowrap; }
.promo__in span { display: inline-flex; align-items: center; gap: 6px; }
.promo__in a { color: var(--on-dark); }
.promo__in a:hover { color: var(--fire-2); }
.promo__in .ico { width: 14px; height: 14px; color: var(--fire); }
.promo__hours { margin-left: auto; }

/* ---------- Тёмная шапка ---------- */
.hdr__dark { background: var(--coal); color: var(--on-dark); }
.hdr__main { display: flex; align-items: center; gap: 22px; min-height: 84px; padding-block: 10px; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border-radius: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--on-dark); 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: inline-flex; align-items: center; gap: 10px; color: var(--white); flex: 0 0 auto; }
.logo:hover { color: var(--white); }
.logo__flame { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 122, 26, .45)); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .04em; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.logo__text small { font-family: var(--font-text); font-weight: 400; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--on-dark-muted); }

/* Поиск на тёмном фоне */
.search { position: relative; display: flex; flex: 1 1 auto; max-width: 520px; }
.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--coal-line);
  border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  background: var(--coal-2);
  color: var(--on-dark);
  outline: none;
}
.search input::placeholder { color: var(--on-dark-muted); }
.search input:focus { border-color: var(--fire); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  background: var(--fire); color: var(--coal);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-head); text-transform: uppercase; font-weight: 600; letter-spacing: .05em; font-size: 14px;
}
.search button:hover { background: var(--fire-dark); color: var(--white); }
.search--mobile { display: none; }
.search__drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--white); color: var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; z-index: 120; max-height: 70vh; overflow-y: auto;
}
.search__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.search__item:hover { background: var(--cream); color: inherit; }
.search__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.search__name { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.search__name small { color: var(--muted); font-size: 12px; }
.search__price { font-family: var(--font-head); font-weight: 600; font-size: 15px; white-space: nowrap; }
.search__all, .search__empty { display: block; padding: 10px 12px; font-size: 14px; }
.search__all { color: var(--fire-dark); font-weight: 500; text-align: center; }
.search__empty { color: var(--muted); }

.hdr__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); margin-left: auto; white-space: nowrap; }
.hdr__phone:hover { color: var(--fire-2); }
.hdr__phone .ico { color: var(--fire); }
.hdr__phone span { display: flex; flex-direction: column; line-height: 1.2; }
.hdr__phone strong { font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.hdr__phone small { font-size: 11px; color: var(--on-dark-muted); }
.hdr__acts { display: flex; gap: 6px; }
.hdr__act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: var(--r); color: var(--on-dark); font-size: 11px; min-width: 64px; }
.hdr__act:hover { background: var(--coal-2); color: var(--white); }
.hdr__act .ico { width: 24px; height: 24px; }
.hdr__act span { white-space: nowrap; }
.hdr__cnt {
  position: absolute; top: 2px; right: 10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--fire); color: var(--coal);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.hdr__cnt.is-empty { display: none; }
body.has-cart .hdr__act--cart { color: var(--fire-2); }

/* ---------- Светлая строка меню ---------- */
.hdr__bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; }
.hdr__bar-in { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.catmenu-wrap { position: relative; flex: 0 0 auto; }
.catbtn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: var(--r);
  background: var(--fire); color: var(--coal);
  font-family: var(--font-head); text-transform: uppercase; font-weight: 600; letter-spacing: .06em; font-size: 15px;
  transition: background .18s;
}
.catbtn:hover, .catbtn.is-open { background: var(--coal); color: var(--white); }
.catbtn__chev { transition: transform .2s; width: 16px; height: 16px; }
.catbtn.is-open .catbtn__chev { transform: rotate(180deg); }
.catmenu {
  display: none; position: absolute; left: 0; top: calc(100% + 7px);
  width: 320px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); z-index: 110;
}
.catmenu.is-open { display: block; }
.catmenu__list { list-style: none; margin: 0; padding: 8px; }
.catmenu__item { position: relative; }
.catmenu__link { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.catmenu__link img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; border: 2px solid var(--cream-2); }
.catmenu__link span { flex: 1 1 auto; }
.catmenu__link em { font-style: normal; color: var(--muted); font-size: 12px; }
.catmenu__arr { width: 14px; height: 14px; color: var(--muted); }
.catmenu__item:hover > .catmenu__link { background: var(--cream); color: var(--fire-dark); }
.catmenu__item--col .catmenu__link .ico { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--fire-soft); color: var(--fire-dark); }
.catmenu__item--col:first-of-type { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.catmenu__sub {
  display: none; position: absolute; left: 100%; top: -9px; min-width: 300px; min-height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px;
}
.catmenu__item:hover > .catmenu__sub { display: block; }
.catmenu__sub a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.catmenu__sub a:hover { background: var(--cream); }
.catmenu__sub a img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.catmenu__sub a em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.catmenu__sub-title { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 10px !important; }
.catmenu__sub-title small { font-family: var(--font-text); text-transform: none; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; overflow: hidden; }
.nav > a { padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav > a:hover { background: var(--cream); color: var(--fire-dark); }
.nav > a.is-active { color: var(--fire-dark); box-shadow: inset 0 -2px 0 var(--fire); border-radius: 0; }
.nav__col { color: var(--fire-dark); }
.nav__mobile-head, .nav__mobile-cats, .nav__mobile-foot { display: none; }
.hdr__note { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hdr__note .ico { width: 15px; height: 15px; color: var(--fire); }

/* ---------- Крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs__sep { color: var(--line); }
.crumbs__cur { color: var(--ink); }

/* ---------- Секции ---------- */
main { min-height: 50vh; }
.sec { padding: 44px 0; }
.sec--first { padding-top: 24px; }
.sec--tint { background: var(--cream); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec__head h2 { margin: 0; position: relative; padding-left: 16px; }
.sec__head h2::before { content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--fire); }
.phead { margin-bottom: 22px; }
.phead h1 { margin-bottom: 8px; }
.phead .lead { margin: 0; }

/* ---------- Слайдер на главной ---------- */
.hero { padding: 20px 0 0; }
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--coal); color: var(--on-dark); min-height: 440px; }
.slide { display: none; grid-template-columns: 1fr 1.1fr; min-height: 440px; }
.slide.is-active { display: grid; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide__text { padding: 56px 24px 70px 48px; display: flex; flex-direction: column; justify-content: center; }
.slide__text h1, .slide__text h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 16px; }
.slide__sub { font-size: 16px; color: var(--on-dark-muted); max-width: 48ch; margin-bottom: 24px; }
.slide__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.slide__media { position: relative; display: block; min-height: 300px; background: var(--coal-2); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slide__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--coal) 0, rgba(27, 27, 31, 0) 25%); }
.slide__tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: rgba(27, 27, 31, .85); color: var(--on-dark); backdrop-filter: blur(4px);
  padding: 10px 14px; border-radius: var(--r); border-left: 4px solid var(--fire);
  font-size: 13px; max-width: 75%; display: flex; flex-direction: column; gap: 2px;
}
.slide__tag small { color: var(--fire-2); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.slide--sale .slide__text { background: linear-gradient(135deg, var(--coal) 0, #3a1c08 100%); }
.slide--opt .slide__text { background: linear-gradient(135deg, var(--coal) 0, var(--coal-3) 100%); }
.slider__dots { position: absolute; left: 48px; bottom: 24px; display: flex; gap: 8px; z-index: 3; }
.slider__dots button { width: 32px; height: 4px; border-radius: 2px; background: var(--coal-line); transition: background .2s; }
.slider__dots button.is-active { background: var(--fire); }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(27, 27, 31, .7); color: var(--white); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--coal-line);
}
.slider__arrow:hover { background: var(--fire); color: var(--coal); }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }

/* ---------- Круглые категории ---------- */
.sec--rcats { padding-top: 36px; padding-bottom: 28px; }
.rcats { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rcats--wrap { flex-wrap: wrap; overflow: visible; justify-content: flex-start; }
.rcat { flex: 0 0 auto; width: 132px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; scroll-snap-align: start; }
.rcat__img { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 3px solid var(--cream-2); background: var(--cream); transition: border-color .2s, transform .2s; display: flex; align-items: center; justify-content: center; }
.rcat__img img { width: 100%; height: 100%; object-fit: cover; }
.rcat__img--ico { background: var(--coal); color: var(--fire); }
.rcat:hover .rcat__img { border-color: var(--fire); transform: translateY(-3px); }
.rcat__name { font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.rcat__n { font-size: 11.5px; color: var(--muted); margin-top: -4px; }

/* ---------- Преимущества ---------- */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usp__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; }
.usp__item h3 { margin: 0; font-size: 16px; align-self: center; }
.usp__item p { margin: 0; grid-column: 2; font-size: 14px; color: var(--muted); }
.usp__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--coal); color: var(--fire); display: flex; align-items: center; justify-content: center; grid-row: span 2; }

/* ---------- Вкладки ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.tabs__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; margin-bottom: -2px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 16px;
  color: var(--muted); border-bottom: 3px solid transparent; transition: color .18s, border-color .18s;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--fire-dark); border-bottom-color: var(--fire); }
.tabs__more { text-align: center; margin: 26px 0 0; }

/* ---------- Сетки и карточка товара ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--muted);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: color .18s, transform .18s;
}
.card__fav:hover { color: var(--fire-dark); transform: scale(1.08); }
.card__fav.is-active { color: var(--fire); }
.card__fav.is-active .ico { fill: var(--fire); }
.card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--cream); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1 1 auto; }
.card__cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.card__title { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; line-height: 1.35; margin: 0; }
.card__title a:hover { color: var(--fire-dark); }
.card__lead { display: none; font-size: 14px; color: var(--muted); margin: 0; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 6px; }
.card__price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__price .price { font-size: 22px; }
.card__opt { font-size: 11.5px; color: var(--fire-dark); font-weight: 500; white-space: nowrap; }
.card__buy { padding: 8px 12px; font-size: 13px; flex: 0 0 auto; }
.card__buy .ico { width: 16px; height: 16px; }
/* Режим списка в категории */
.grid--list { grid-template-columns: 1fr; }
.grid--list .card { flex-direction: row; align-items: stretch; }
.grid--list .card__img { width: 220px; flex: 0 0 220px; aspect-ratio: auto; min-height: 200px; }
.grid--list .card__body { padding: 18px 20px; }
.grid--list .card__lead { display: block; }
.grid--list .card__title { font-size: 18px; }
.grid--list .card__foot { border-top: 0; margin-top: auto; }

/* ---------- Баннер «Опт» ---------- */
.optban { background: var(--coal); color: var(--on-dark); padding: 56px 0; background-image: radial-gradient(circle at 85% 20%, rgba(255, 122, 26, .22), transparent 40%); }
.optban__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.optban__text h2 { color: var(--white); font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.optban__text p { color: var(--on-dark-muted); font-size: 16px; max-width: 56ch; }
.optban__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.optban__tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.optier { background: var(--coal-2); border: 1px solid var(--coal-line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.optier b { font-family: var(--font-head); font-size: 28px; font-weight: 700; text-transform: uppercase; color: var(--white); line-height: 1; }
.optier span { font-size: 13px; color: var(--on-dark-muted); }
.optier--fire { background: var(--fire); border-color: var(--fire); color: var(--coal); }
.optier--fire b { color: var(--coal); font-size: 36px; }
.optier--fire span { color: var(--coal); font-weight: 500; }
.optban__tiers--page { grid-template-columns: repeat(4, 1fr); margin: 10px 0 14px; }
.optban__tiers--page .optier { background: var(--cream); border-color: var(--line); }
.optban__tiers--page .optier b { color: var(--ink); }
.optban__tiers--page .optier span { color: var(--muted); }
.optban__tiers--page .optier--fire { background: var(--fire); border-color: var(--fire); }
.optban__tiers--page .optier--fire b, .optban__tiers--page .optier--fire span { color: var(--coal); }

/* ---------- Как мы работаем ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; background: var(--cream); border-radius: var(--r-lg); padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li .ico { color: var(--fire); }
.steps li strong { font-family: var(--font-head); text-transform: uppercase; font-size: 17px; letter-spacing: .03em; }
.steps li small { color: var(--muted); font-size: 13.5px; }
.steps__n { position: absolute; top: 14px; right: 16px; font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--line); line-height: 1; }

/* ---------- FAQ и о компании ---------- */
.about2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 500; position: relative; font-size: 15.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 24px; color: var(--fire); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.prose p, .prose li { font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose a { color: var(--fire-dark); text-decoration: underline; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; font-size: 14px; }
.prose--muted { color: var(--muted); }
.fopcard { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--fire); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 18px 0 20px; }
.fopcard b { font-size: 16px; }
.fopcard__phone { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--fire-dark); }
.fopcard__msg { display: flex; gap: 14px; margin-top: 6px; }
.fopcard__msg a { color: var(--fire-dark); font-weight: 500; }

/* ---------- Недавно просмотренные, мини-карточки (обране, поиск) ---------- */
.recent__row, .favs__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.favs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.mcard:hover { box-shadow: var(--shadow-sm); }
.mcard__img { display: block; aspect-ratio: 1 / 1; background: var(--cream); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mcard__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.mcard__cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mcard__name { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.mcard__price { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.mcard__price s { color: var(--muted); font-size: 12px; font-family: var(--font-text); font-weight: 400; margin-left: 4px; }
.mcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.mcard__foot .link { font-size: 13px; }
.favs__empty, .cart__empty { text-align: center; padding: 48px 20px; background: var(--cream); border-radius: var(--r-lg); }
.favs__empty-title, .cart__empty-title { font-family: var(--font-head); text-transform: uppercase; font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.favs__empty p, .cart__empty p { color: var(--muted); }
.cart__loading, .favs__loading { color: var(--muted); padding: 24px 0; }

/* ---------- Каталог: чипсы и подкатегории ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--cream); font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.chip:hover { border-color: var(--fire); color: var(--fire-dark); }
.chip span { color: var(--muted); font-size: 12px; }
.subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.subcat { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .2s; }
.subcat img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.subcat em { font-style: normal; color: var(--muted); font-size: 12px; }
.subcat:hover, .subcat.is-active { border-color: var(--fire); color: var(--fire-dark); }
.subcat.is-active { background: var(--fire-soft); }
.subcat--back { padding-left: 12px; }
.subcat--back .ico { width: 16px; height: 16px; }

/* ---------- Категория: раскладка с фильтрами ---------- */
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 14px; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 16px 10px; }
.filters__head, .filters__foot { display: none; }
.facc { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
.facc:last-of-type { border-bottom: 0; }
.facc summary { cursor: pointer; list-style: none; position: relative; padding: 10px 24px 8px 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 15px; }
.facc summary::-webkit-details-marker { display: none; }
.facc summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.facc[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.cattree { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cattree ul { list-style: none; margin: 2px 0 4px; padding-left: 14px; border-left: 2px solid var(--cream-2); }
.cattree a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 4px; border-radius: 6px; }
.cattree a em { font-style: normal; color: var(--muted); font-size: 12px; }
.cattree a:hover { background: var(--cream); }
.cattree a.is-active { color: var(--fire-dark); font-weight: 500; }
.cattree__col a { color: var(--fire-dark); }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.range input:focus { outline: none; border-color: var(--fire); }
.range span { color: var(--muted); }
.range__sliders { position: relative; height: 24px; margin-top: 10px; }
.range__sliders input { position: absolute; left: 0; right: 0; top: 0; width: 100%; margin: 0; height: 24px; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range__sliders input::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 2px; }
.range__sliders input::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
.range__sliders input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--fire); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--fire-dark); pointer-events: auto; cursor: pointer; }
.range__sliders input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fire); border: 2px solid var(--white); pointer-events: auto; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--fire); margin: 0; flex: 0 0 auto; }
.check span { flex: 1 1 auto; }
.check em { font-style: normal; color: var(--muted); font-size: 12px; }
.sidebar__help, .sidebar__opt { background: var(--cream); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.sidebar__help strong, .sidebar__opt strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 15px; margin-bottom: 4px; }
.sidebar__help .ico, .sidebar__opt .ico { color: var(--fire); }
.sidebar__phone { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--fire-dark); }
.sidebar__help small { color: var(--muted); font-size: 12.5px; }
.sidebar__msgs a { color: var(--fire-dark); font-weight: 500; }
.sidebar__opt span b { font-family: var(--font-head); font-size: 18px; color: var(--fire-dark); margin-right: 6px; }
.sidebar__opt a { color: var(--fire-dark); font-weight: 500; margin-top: 6px; }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; background: var(--cream); border-radius: var(--r); margin-bottom: 18px; font-size: 14px; }
.toolbar__filters { display: none; }
.toolbar__count { color: var(--muted); }
.toolbar__sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.toolbar__sort select { height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c655e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; color: var(--ink); }
.toolbar__view { display: flex; gap: 4px; }
.toolbar__view button { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid transparent; }
.toolbar__view button.is-active { background: var(--white); border-color: var(--line); color: var(--fire-dark); }
.grid-empty { background: var(--cream); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); margin: 20px 0; }
.grid-empty a { color: var(--fire-dark); text-decoration: underline; }
.grid-more { text-align: center; margin: 26px 0 0; }
.cat-seo { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; max-width: 80ch; }
.cat-seo h2 { font-size: 20px; color: var(--ink); }

/* ---------- Страница товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 272px; gap: 32px; align-items: start; }
.product__gallery { display: flex; gap: 12px; position: sticky; top: 64px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 8px; width: 72px; flex: 0 0 72px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.gallery__thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: var(--cream); transition: border-color .18s; flex: 0 0 auto; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover, .gallery__thumb.is-active { border-color: var(--fire); }
.gallery__main { position: relative; flex: 1 1 auto; min-width: 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main .card__badges { left: 14px; top: 14px; }
.product__info h1 { font-size: clamp(24px, 2.4vw, 32px); margin: 4px 0 12px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.product__meta a { color: var(--fire-dark); }
.product__lead { font-size: 15.5px; color: var(--muted); }
.product__bullets { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.product__bullets li { display: flex; gap: 8px; align-items: flex-start; }
.product__bullets .ico { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.product__buy { background: var(--cream); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line); }
.product__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.product__min { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.product__min .ico { width: 15px; height: 15px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product__actions .js-buy { flex: 1 1 160px; }
.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--coal); border-radius: var(--r); overflow: hidden; background: var(--white); height: 48px; }
.qty button { width: 40px; font-size: 20px; color: var(--coal); display: flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--coal); color: var(--white); }
.qty input { width: 56px; text-align: center; border: 0; outline: none; font-family: var(--font-head); font-size: 17px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product__tiers { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.product__tiers-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.product__tiers-title .ico { color: var(--fire); }
.product__tiers small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.product__tiers small a { color: var(--fire-dark); }
.tiers-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tiers-tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.tiers-tbl td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.tiers-tbl tr:last-child td { border-bottom: 0; }
.tiers-tbl td:nth-child(2) { font-family: var(--font-head); font-size: 15px; }
.tier-pct { display: inline-block; padding: 2px 8px; border-radius: 12px; background: var(--fire); color: var(--coal); font-weight: 600; font-size: 12px; }
.product__side { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.side-card__row { display: flex; gap: 12px; align-items: flex-start; }
.side-card__row .ico { color: var(--fire); width: 22px; height: 22px; margin-top: 2px; }
.side-card__row strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.side-card__row small { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: block; }
.side-card--seller { background: var(--coal); color: var(--on-dark); border-color: var(--coal); gap: 6px; }
.side-card--seller > strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--white); }
.side-card--seller > strong .ico { color: var(--fire); }
.side-card--seller p { margin: 0; color: var(--on-dark-muted); font-size: 13px; }
.side-card__phone { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--fire-2); }
.side-card--seller small { color: var(--on-dark-muted); }
.side-card__msgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.side-card__msgs .btn { color: var(--on-dark); border-color: var(--coal-line); padding: 6px 10px; }
.side-card__msgs .btn:hover { background: var(--fire); border-color: var(--fire); color: var(--coal); }
.tabs--product .tabs__btn { font-size: 15px; }
.product__desc { max-width: 80ch; }
.features { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 14.5px; }
.features th, .features td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.features th { font-weight: 500; color: var(--muted); width: 40%; }

/* ---------- Корзина ---------- */
.cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart__table thead th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 0 8px 10px; border-bottom: 2px solid var(--line); }
.cart__row td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart__img { width: 84px; }
.cart__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--cream); }
.cart__name a { font-weight: 500; display: block; }
.cart__sku, .cart__min { display: block; font-size: 12px; color: var(--muted); }
.cart__price s { color: var(--muted); font-size: 12px; margin-left: 4px; }
.cart__price, .cart__sum { white-space: nowrap; }
.cart__sum strong { font-family: var(--font-head); font-size: 17px; }
.cart__qty .qty { height: 40px; }
.cart__qty .qty button { width: 32px; font-size: 17px; }
.cart__qty .qty input { width: 48px; font-size: 15px; }
.cart__rm button { width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--muted); }
.cart__rm button:hover { background: var(--cream-2); color: var(--danger); }
.cart__actions { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.cart__side { position: sticky; top: 64px; }
.cart__summary { background: var(--cream); border-radius: var(--r-lg); padding: 22px; }
.cart__summary h3 { margin-bottom: 14px; }
.cart__line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart__line span:first-child { display: flex; flex-direction: column; }
.cart__line small { color: var(--muted); font-size: 12px; }
.cart__line--disc { color: var(--ok); }
.cart__line--total { border-bottom: 0; font-family: var(--font-head); font-size: 22px; font-weight: 600; text-transform: uppercase; padding-top: 12px; }
.cart__hint { font-size: 13px; color: var(--muted); background: var(--white); border-left: 3px solid var(--fire); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 12px 0; }
.cart__form, .order-modal__form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cart__form label, .order-modal__form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cart__form input, .cart__form textarea, .order-modal__form input {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); width: 100%;
}
.cart__form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.cart__form input:focus, .cart__form textarea:focus, .order-modal__form input:focus { outline: none; border-color: var(--fire); }
.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 { padding: 7px 12px; font-size: 12px; flex: 1 1 auto; }
.cart__seller { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--fire); }
.trust a { color: var(--fire-dark); font-weight: 500; }

/* ---------- Текстовые страницы ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin: 28px 0; }
.contacts__card { background: var(--cream); border-radius: var(--r-lg); padding: 24px; font-size: 14.5px; }
.contacts__card h3 { margin-bottom: 10px; }
.contacts__card p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.contacts__card .ico { color: var(--fire); margin-top: 2px; }
.contacts__card a { color: var(--fire-dark); font-weight: 500; }
.contacts__phone { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.contacts__map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.contacts__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--cream); border-left: 5px solid var(--fire); border-radius: var(--r-lg); padding: 22px 26px; margin-top: 32px; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--muted); font-size: 14px; }
.callout__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Полоса CTA для оптовиков ---------- */
.cta-band { background: var(--coal); color: var(--on-dark); padding: 36px 0; border-top: 4px solid var(--fire); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band__text h2 { color: var(--white); margin-bottom: 6px; font-size: clamp(20px, 2.2vw, 28px); }
.cta-band__text p { margin: 0; color: var(--on-dark-muted); font-size: 14.5px; }
.cta-band__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.ftr { background: var(--coal-2); color: var(--on-dark-muted); font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 36px; }
.ftr__col { display: flex; flex-direction: column; gap: 7px; }
.ftr__col > a { color: var(--on-dark); }
.ftr__col > a:hover { color: var(--fire-2); }
.ftr__col h4 { color: var(--white); margin-bottom: 6px; letter-spacing: .08em; }
.ftr__h4-gap { margin-top: 16px; }
.ftr__col p { margin: 0; }
.ftr__col--brand .logo { margin-bottom: 8px; }
.ftr__col--brand .logo__text { font-size: 22px; }
.ftr__tag { color: var(--on-dark); }
.ftr__fop { color: var(--white); font-weight: 500; }
.ftr__opt { display: inline-flex; align-items: center; gap: 8px; color: var(--fire-2); font-weight: 500; margin-top: 6px; }
.ftr__phone { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--white) !important; }
.ftr__phone:hover { color: var(--fire-2) !important; }
.ftr__msg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ftr__msg a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--coal-line); color: var(--on-dark); font-size: 13px; }
.ftr__msg a:hover { border-color: var(--fire); color: var(--fire-2); }
.ftr__pay { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; }
.ftr__pay span { display: inline-flex; align-items: center; gap: 6px; }
.ftr__pay .ico { width: 15px; height: 15px; color: var(--fire); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 20px; border-top: 1px solid var(--coal-line); font-size: 12.5px; }

/* ---------- Модалка «Купити в один клік» ---------- */
.order-modal { position: fixed; inset: 0; z-index: 200; background: rgba(27, 27, 31, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.order-modal__box { position: relative; width: min(460px, 100%); max-height: 100%; overflow-y: auto; background: var(--white); border-radius: var(--r-lg); padding: 28px 26px 22px; border-top: 5px solid var(--fire); }
.order-modal__box h3 { padding-right: 32px; }
.order-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.order-modal__close:hover { background: var(--cream); color: var(--ink); }
.order-modal__prod { color: var(--muted); font-size: 14px; }
.order-modal__hint { font-size: 13px; color: var(--ok); margin: 0; }
.order-modal__or { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 8px; }
.order-modal__row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.order-modal__row .btn { padding: 7px 12px; font-size: 12px; }
.order-modal__note { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--coal); color: var(--on-dark); padding: 12px 18px; border-radius: var(--r);
  border-left: 4px solid var(--fire); box-shadow: var(--shadow); font-size: 14px; max-width: min(420px, calc(100% - 32px));
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--fire-2); text-decoration: underline; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1400px) {
  .hdr__note { display: none; }
}

@media (max-width: 1100px) {
  .hdr__phone small { display: none; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product__side { grid-column: 1 / -1; flex-direction: row; }
  .product__side .side-card { flex: 1 1 0; }
  .grid, .grid--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  /* 11.11.2026: на 901–1100 пункты меню («Хто ми», «Написати нам») обрезались из-за overflow:hidden у .nav, а верхний ряд шапки вылезал за экран на 5px — компактные отступы и шрифт */
  .nav { gap: 0; }
  .nav > a { padding: 8px 7px; font-size: 13.5px; }
  .hdr__main { gap: 14px; }
  .search--desk { min-width: 0; }
}

@media (min-width: 901px) and (max-width: 980px) {
  .nav > a { padding: 8px 4px; font-size: 13px; }
  .hdr__bar-in { gap: 4px; }
}

@media (max-width: 900px) {
  body { font-size: 14.5px; }
  .promo__in { gap: 18px; font-size: 12px; }
  .promo__in span:nth-child(2), .promo__hours { display: none; }
  .hdr__main { gap: 10px; min-height: 64px; padding-block: 8px; }
  .burger { display: flex; margin-left: -8px; }
  .logo__flame { width: 32px; height: 32px; }
  .logo__text { font-size: 19px; }
  .logo__text small { display: none; }
  .search--desk { display: none; }
  .search--mobile { display: flex; max-width: none; }
  .search--mobile input, .search--mobile button { height: 40px; }
  .search--mobile button { padding: 0 14px; }
  .hdr__mobile-search { padding-bottom: 10px; }
  .hdr__phone { margin-left: auto; }
  .hdr__phone .ico { width: 22px; height: 22px; }
  .hdr__phone strong { font-size: 15px; }
  .hdr__acts { gap: 0; }
  .hdr__act { min-width: 48px; padding: 4px 6px; }
  .hdr__act span { display: none; }
  .hdr__cnt { right: 2px; top: -2px; }
  .hdr__bar-in { min-height: 46px; }
  .catmenu-wrap { display: none; }
  /* Выезжающее меню на мобильном */
  .nav {
    position: fixed; inset: 0 auto 0 0; width: min(340px, 86vw); z-index: 150;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--white); box-shadow: var(--shadow);
    transform: translateX(-105%); transition: transform .25s ease; padding: 0 0 24px;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { padding: 12px 20px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav > a.is-active { box-shadow: inset 4px 0 0 var(--fire); background: var(--fire-soft); }
  .nav__mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; background: var(--coal); color: var(--on-dark); }
  .nav__brand { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 20px; color: var(--white); }
  .nav__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--fire-2); font-weight: 500; font-size: 14px; }
  .nav__mobile-cats { display: flex; flex-direction: column; padding: 8px 0; background: var(--cream); }
  .nav__mobile-title { padding: 10px 20px 4px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); }
  .nav__mobile-cats a { display: flex; align-items: center; gap: 12px; padding: 8px 20px; font-size: 14px; }
  .nav__mobile-cats a img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
  .nav__mobile-cats a em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
  .nav__mobile-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 0; }
  .nav__mobile-foot a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); font-size: 13px; }
  .nav__mobile-fop { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 8px; }
  /* Светлая строка меню на мобильном схлопывается: nav уезжает в off-canvas, кнопка «Каталог» скрыта */
  .hdr__bar { position: static; border: 0; }
  .hdr__bar-in { min-height: 0; display: block; }

  .sec { padding: 30px 0; }
  .sec--first { padding-top: 16px; }
  .sec__head { margin-bottom: 14px; }
  .hero { padding-top: 12px; }
  .slider, .slide { min-height: 0; }
  .slide { grid-template-columns: 1fr; }
  .slide__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .slide__media::after { background: linear-gradient(0deg, var(--coal) 0, rgba(27, 27, 31, 0) 35%); }
  .slide__tag { display: none; }
  .slide__text { padding: 18px 18px 56px; }
  .slide__text h1, .slide__text h2 { font-size: 24px; }
  .slide__sub { font-size: 14px; margin-bottom: 16px; }
  .slide__btns .btn { padding: 11px 16px; font-size: 13px; }
  .slider__dots { left: 18px; bottom: 18px; }
  .slider__arrow { width: 36px; height: 36px; top: 28%; }
  .slider__arrow--prev { left: 8px; }
  .slider__arrow--next { right: 8px; }
  .sec--rcats { padding-top: 22px; padding-bottom: 10px; }
  .rcat { width: 96px; }
  .rcat__img { width: 80px; height: 80px; }
  .rcat__name { font-size: 12px; }
  .rcats--wrap { flex-wrap: nowrap; overflow-x: auto; }
  .usp { grid-template-columns: 1fr 1fr; gap: 10px; }
  .usp__item { padding: 14px; grid-template-columns: 1fr; }
  .usp__ico { width: 40px; height: 40px; grid-row: auto; }
  .usp__ico .ico { width: 20px; height: 20px; }
  .usp__item h3 { font-size: 14px; }
  .usp__item p { grid-column: 1; font-size: 12.5px; }
  .tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs__btn { font-size: 14px; padding: 8px 12px; white-space: nowrap; }
  .grid, .grid--cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 10px 12px; gap: 4px; }
  .card__title { font-size: 13.5px; }
  .card__cat { font-size: 10.5px; }
  .card__meta { font-size: 11px; flex-direction: column; gap: 2px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card__price .price { font-size: 19px; }
  .card__buy { width: 100%; }
  .card__fav { width: 32px; height: 32px; top: 8px; right: 8px; }
  .grid--list .card { flex-direction: column; }
  .grid--list .card__img { width: auto; flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .optban { padding: 32px 0; }
  .optban__in { grid-template-columns: 1fr; gap: 20px; }
  .optban__tiers, .optban__tiers--page { grid-template-columns: 1fr 1fr; gap: 8px; }
  .optier { padding: 14px; }
  .optier b, .optier--fire b { font-size: 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps li { padding: 16px 14px; }
  .steps li strong { font-size: 15px; }
  .steps__n { font-size: 32px; }
  .about2 { grid-template-columns: 1fr; gap: 28px; }
  .recent__row, .favs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* Категория на мобильном: фильтры — выезжающая панель */
  .cat-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(360px, 90vw); z-index: 160; border-radius: 0; border: 0;
    padding: 0 16px 16px; overflow-y: auto; background: var(--white); box-shadow: var(--shadow);
    transform: translateX(-105%); transition: transform .25s ease;
  }
  .filters.is-open { transform: translateX(0); }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 2px solid var(--line); font-family: var(--font-head); text-transform: uppercase; font-size: 17px; }
  .filters__head strong { display: inline-flex; align-items: center; gap: 8px; }
  .filters__close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .filters__foot { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--white); padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 8px; }
  .filters__foot .btn { flex: 1 1 0; }
  .sidebar__help, .sidebar__opt { display: none; }
  .toolbar { padding: 8px 10px; gap: 8px; font-size: 13px; }
  .toolbar__filters { display: inline-flex; }
  .toolbar__filters b { background: var(--fire); color: var(--coal); border-radius: 10px; padding: 0 6px; font-size: 11px; }
  .toolbar__count { flex: 1 1 auto; }
  .toolbar__sort { margin-left: 0; flex: 1 1 100%; }
  .toolbar__sort select { flex: 1 1 auto; }
  .toolbar__view { display: none; }
  .subcat { font-size: 13px; padding: 4px 10px 4px 4px; }
  .subcat img { width: 30px; height: 30px; }

  /* Товар */
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product__gallery { position: static; flex-direction: column-reverse; }
  .gallery__thumbs { flex-direction: row; width: auto; flex: none; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .gallery__thumb { width: 60px; height: 60px; }
  .product__side { flex-direction: column; }
  .product__info h1 { font-size: 22px; }
  .price--big { font-size: 30px; }
  .product__actions .js-order { flex: 1 1 auto; }
  .product__actions .btn--lg { padding: 12px 16px; font-size: 14px; }
  .tabs--product .tabs__btn { font-size: 13.5px; }

  /* Корзина — таблица превращается в карточки */
  .cart__grid { grid-template-columns: 1fr; gap: 20px; }
  .cart__table thead { display: none; }
  .cart__table, .cart__table tbody { display: block; }
  .cart__row { display: grid; grid-template-columns: 72px 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart__row td { display: block; padding: 0; border: 0; }
  .cart__img { grid-row: 1 / span 3; width: auto; }
  .cart__name { grid-column: 2; }
  .cart__rm { grid-column: 3; grid-row: 1; justify-self: end; }
  .cart__price { grid-column: 2; font-size: 13px; color: var(--muted); }
  .cart__qty { grid-column: 2; }
  .cart__sum { grid-column: 3; grid-row: 3; align-self: end; }
  .cart__side { position: static; }
  .cart__summary { padding: 16px; }

  .contacts { grid-template-columns: 1fr; gap: 16px; }
  .callout { padding: 18px; }
  .cta-band { padding: 26px 0; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0 24px; }
  .ftr__col--brand { grid-column: 1 / -1; }
  .ftr__bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 420px) {
  .promo__in span:nth-child(3) { display: none; }
  .hdr__phone strong { display: none; }
  .hdr__phone span { display: none; }
  .hdr__phone { padding: 6px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

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