

/* Start:/local/templates/skl_v2/css/auth-restore.css?17944183521919*/
/* === REDESIGN: восстановление пароля и удобная капча === */
.auth__std .restore__form{display:grid;gap:16px;margin-top:24px}
.auth__std .restore__field{display:grid;gap:7px;font-size:14px;font-weight:650;color:var(--ink,#16181d)}
.auth__std .restore__field input{width:100%;height:48px;padding:0 14px;border:1px solid #d9dce0;border-radius:10px;background:#fff;color:#16181d;font:inherit;outline:none}
.auth__std .restore__field input:focus{border-color:#d21f1a;box-shadow:0 0 0 3px rgba(210,31,26,.12)}
.auth__std .restore__hint{margin:-7px 0 0;color:#62666e;font-size:13px;line-height:1.5}
.auth__std .restore__captcha{display:grid;gap:12px;padding:16px;border:1px solid #e6e8eb;border-radius:12px;background:#fafafa}
.auth__std .restore__caption{font-size:14px;font-weight:700}
.auth__std .restore__captcha-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.auth__std .restore__captcha-row img{display:block;width:180px;height:40px;border-radius:8px;background:#fff}
.auth__std .restore__refresh{border:0;background:none;color:#be1915;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:10px 0}
.auth__std .restore__refresh:hover{text-decoration:underline}
.auth__std .restore__notice{padding:14px 16px;margin:18px 0 8px;border-radius:10px;line-height:1.5}
.auth__std .restore__notice--error{background:#fff0ee;color:#9e1712}
.auth__std .restore__notice--ok{background:#eaf6ee;color:#176b34}
.auth__std .restore__submit{display:grid;place-items:center;min-height:50px;padding:10px 20px;border:0;border-radius:10px;background:#d21f1a;color:#fff;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}
.auth__std .restore__submit:hover{background:#b81814;color:#fff}
.auth__std .restore__submit--link{margin-top:20px}
@media(max-width:480px){.auth__std .restore__captcha{padding:12px}.auth__std .restore__refresh{padding:8px 0}}
/* === END === */

/* End */


/* Start:/local/templates/skl_v2/template_styles.css?179380340554020*/
/* SKLmarket v2 — практичный магазин-склад.
   Сетка: контейнер 1280px; шапка из трёх строк; на телефоне — нижняя панель.
   Цвет: белый + светло-серая подложка; красный только для действий и акцентов. */
:root {
  --ink: #16181D;          /* основной текст */
  --ink-2: #3A3E46;
  --muted: #6B7079;        /* вторичный текст */
  --paper: #FFFFFF;
  --ground: #F3F4F2;       /* подложка страницы */
  --ground-2: #E9EAE6;
  --line: #E2E3DF;
  --line-2: #CFD1CB;
  --brand: #D21F1A;        /* красный логотипа */
  --brand-ink: #A8150F;
  --brand-tint: #FCEDEC;
  --ok: #1E7F46;
  --ok-tint: #E7F4EC;
  --amber: #9A5B00;

  --font: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 10px;
  --r-lg: 14px;
  --wrap: 1280px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 4px 14px rgba(22, 24, 29, .06);
  --shadow-lg: 0 12px 40px rgba(22, 24, 29, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0 0 .75em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { border-color: var(--line-2); background: var(--paper); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { background: var(--ground); }
.btn--ghost:hover { background: var(--ground-2); }
.btn--in-cart { background: var(--ok); color: #fff; }
.btn--in-cart:hover { background: #17653A; }
.btn[disabled] { background: var(--ground); color: var(--muted); cursor: default; }

/* ---------- Шапка ---------- */
.topbar { background: var(--ink); color: #C9CCD2; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar a:hover { color: #fff; }
.topbar__city { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar__city .ico { width: 15px; height: 15px; }
.topbar__links { display: flex; gap: 20px; margin-left: auto; }
.topbar__opt { color: #fff; font-weight: 600; }

.head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.head__row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo img { width: 150px; }
.catbtn { height: 48px; padding: 0 20px 0 16px; font-size: 16px; }
.catbtn .ico { width: 22px; height: 22px; }
.search { position: relative; flex: 1 1 auto; min-width: 0; }
.search input {
  width: 100%; height: 48px; padding: 0 56px 0 18px;
  border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--paper); font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand); }
.search__go {
  position: absolute; top: 4px; right: 4px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 7px;
  background: var(--brand); color: #fff;
}
.search__go:hover { background: var(--brand-ink); }
.search__hints { display: flex; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.search__hints a { color: var(--ink-2); border-bottom: 1px dashed var(--line-2); }
.search__hints a:hover { color: var(--brand); border-color: var(--brand); }
.suggest { position: absolute; z-index: 65; top: 52px; left: 0; right: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg); }
.suggest a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.suggest a:hover { background: var(--ground); }
.suggest a b { white-space: nowrap; }
.suggest__all { color: var(--brand); font-weight: 700; }
.phone { display: grid; line-height: 1.25; }
.phone__num { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.phone__cb { justify-self: start; padding: 0; border: 0; background: none; color: var(--brand); font-size: 13px; font-weight: 600; }
.phone__cb:hover { color: var(--brand-ink); }
.head__icons { display: flex; gap: 4px; }
.iconbtn {
  position: relative; display: grid; justify-items: center; gap: 2px;
  min-width: 64px; padding: 6px 4px; border-radius: var(--r);
  color: var(--ink); font-size: 12px; font-weight: 600;
}
.iconbtn .ico { width: 24px; height: 24px; }
.iconbtn:hover { background: var(--ground); }
.badge-count {
  position: absolute; top: 2px; left: 50%; margin-left: 6px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.badge-count:empty, .badge-count[data-n="0"] { display: none; }
.cart-sum { font-variant-numeric: tabular-nums; }

.catnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.catnav ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: block; padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--brand); border-color: var(--brand); }
.catnav .is-red a { color: var(--brand); }
/* «Каталог RED» и «Все бренды» — заметные кнопки на 2-м и 3-м месте */
.catnav ul { align-items: center; }
.catnav__red a, .catnav__brands a { margin: 0 2px; padding: 6px 14px; border: 0; border-radius: 99px; font-weight: 800; }
.catnav__red a { background: var(--brand); color: #fff; }
.catnav__red a:hover { background: var(--brand-ink); color: #fff; }
.catnav__brands a { background: var(--ink); color: #fff; }
.catnav__brands a:hover { background: #000; color: #fff; }
/* Войти / Зарегистрироваться в шапке */
.authlinks { display: flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--ink); }
.authlinks[hidden] { display: none; }
.authlinks .ico { width: 24px; height: 24px; flex: none; }
.authlinks__text { display: grid; line-height: 1.25; font-size: 13px; font-weight: 700; white-space: nowrap; }
.authlinks__text a:hover { color: var(--brand); }
.authlinks__text a + a { color: var(--brand); font-weight: 600; }
.iconbtn[hidden] { display: none; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* мега-меню каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; display: none; }
.mega.is-open { display: block; }
.mega__panel { display: grid; grid-template-columns: 300px 1fr; min-height: 440px; max-height: calc(100vh - 140px); background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mega__roots { padding: 10px; background: var(--ground); overflow: auto; }
.mega__roots button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 600; font-size: 14.5px;
}
.mega__roots button .ico { width: 16px; height: 16px; color: var(--muted); }
.mega__roots button.is-on { background: var(--paper); color: var(--brand); box-shadow: var(--shadow); }
.mega__subs { padding: 20px 24px; overflow: auto; }
.mega__group { display: none; columns: 3 220px; column-gap: 28px; }
.mega__group.is-on { display: block; }
.mega__group h3 { column-span: all; margin-bottom: 14px; font-size: 20px; }
.mega__block { break-inside: avoid; margin-bottom: 16px; }
.mega__block > a { display: block; margin-bottom: 4px; font-weight: 700; font-size: 14.5px; }
.mega__block > a:hover, .mega__block li a:hover { color: var(--brand); }
.mega__block li a { display: block; padding: 2px 0; color: var(--muted); font-size: 13.5px; }
.mega-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(22, 24, 29, .35); display: none; }
.mega-backdrop.is-open { display: block; }

/* ---------- Общие секции ---------- */
.sec { padding: 40px 0; }
.sec--ground { background: var(--ground); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec__title { font-size: 28px; font-weight: 800; line-height: 1.15; }
.sec__more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.sec__more .ico { width: 16px; height: 16px; }
.sec__more:hover { color: var(--brand-ink); }

/* ---------- Первый экран ---------- */
.hero { padding: 20px 0 8px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__slide img { width: 100%; aspect-ratio: 1060 / 422; object-fit: contain; background: #fff; }
.slider__nav { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.slider__dots { display: flex; gap: 6px; padding: 6px 8px; border-radius: 99px; background: rgba(22, 24, 29, .55); pointer-events: auto; }
.slider__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .55); transition: width .2s, background-color .2s; }
.slider__dots button.is-on { width: 20px; background: #fff; }
.slider__arrows { display: flex; gap: 6px; pointer-events: auto; }
.slider__arrows button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.slider__arrows button:hover { background: #fff; color: var(--brand); }

.service { display: grid; gap: 10px; align-content: start; }
.service__card { padding: 16px 18px; border-radius: var(--r-lg); background: var(--ground); }
.service__card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.service__card h3 .ico { color: var(--brand); }
.service__card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.service__card b { color: var(--ink); }
.service__card--ink { background: var(--ink); color: #fff; }
.service__card--ink p { color: #C9CCD2; }
.service__card--ink h3 .ico { color: #fff; }
.service__card--ink .btn { margin-top: 12px; width: 100%; }

.strip { padding: 8px 0 0; }
.strip img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cat__name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cat__name:hover { color: var(--brand); }
.cat__subs { display: flex; flex-wrap: wrap; gap: 6px; }
.cat__subs a { padding: 4px 9px; border-radius: 99px; background: var(--ground); font-size: 12.5px; color: var(--ink-2); }
.cat__subs a:hover { background: var(--brand-tint); color: var(--brand); }

/* ---------- Вкладки ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ground-2); }
.tabs button { padding: 8px 16px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.tabs button.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.tabpanel[hidden] { display: none; }

/* ---------- Карточка товара в списке ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc {
  position: relative; display: flex; flex-direction: column;
  padding: 12px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.pc:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pc__img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); background: #fff; overflow: hidden; }
.pc__img img { width: 82%; height: 82%; object-fit: contain; }
.nophoto { width: 100%; height: 100%; display: grid; place-content: center; gap: 6px; justify-items: center; background: var(--ground); color: var(--muted); font-size: 12px; }
.nophoto .ico { width: 30px; height: 30px; stroke-width: 1.4; }
.nophoto code { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.tags { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.tag { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.tag--hit { background: var(--brand); color: #FFD60A; }
.tag--sale { background: var(--brand); color: #fff; }
.tag--new { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.fav { position: absolute; top: 6px; right: 6px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--muted); }
.fav:hover { color: var(--brand); }
.fav.is-on { color: var(--brand); }
.fav.is-on .ico { fill: currentColor; }
.pc__meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; min-height: 20px; }
.art { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 1px 6px; border-radius: 5px; background: var(--ground); }
.brand-name { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pc__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pc__name:hover { color: var(--brand); }
.stock { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 10px; font-size: 13px; font-weight: 600; color: var(--ok); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--few { color: var(--amber); }
.stock--none { color: var(--muted); }
.pc__buy { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: auto; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .62em; font-weight: 700; }
.price--ask { font-size: 15px; color: var(--muted); }
.pc__price-row { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pc__unit { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); }
.qty button { width: 34px; height: 100%; border: 0; background: none; color: var(--ink-2); font-size: 18px; line-height: 1; }
.qty button:hover { color: var(--brand); }
.qty input { width: 36px; height: 100%; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }
.pc__buy .btn { padding: 0 12px; }

/* ---------- Плакат бренда ---------- */
.poster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.poster__img { border-radius: var(--r-lg); overflow: hidden; }
.poster .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }

/* ---------- Бренды ---------- */
.brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands a { display: grid; place-items: center; min-height: 76px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--ink-2); text-align: center; transition: color .15s, background-color .15s; }
.brands a:hover { color: var(--brand); background: var(--ground); }

/* ---------- Широкие баннеры, каталоги инструмента ---------- */
.wide { display: grid; gap: 12px; }
.wide img { width: 100%; border-radius: var(--r-lg); }
.toolcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.toolcat { display: grid; grid-template-columns: 1fr 88px; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.toolcat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.toolcat b { display: block; font-size: 16px; }
.toolcat span { color: var(--brand); font-size: 13.5px; font-weight: 700; }
.toolcat img { border-radius: 6px; box-shadow: var(--shadow); }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.about__text { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.fact b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 13.5px; }

/* ---------- Подвал ---------- */
.foot { background: var(--ink); color: #C9CCD2; font-size: 14px; }
.foot .wrap { padding-top: 40px; padding-bottom: 28px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.foot li { margin-bottom: 8px; }
.foot a:hover { color: #fff; }
.foot__phone { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8E929A; }
.sub { display: flex; gap: 8px; margin-top: 12px; }
.sub input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #3A3E46; border-radius: var(--r); background: #1F2228; color: #fff; }
.sub input::placeholder { color: #8E929A; }

/* ---------- Хлебные крошки, заголовок страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 16px 0 8px; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--line-2); }
.crumbs li:last-child { color: var(--ink-2); }
.pagehead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead h1 { font-size: 32px; font-weight: 800; line-height: 1.15; }
.pagehead .count { color: var(--muted); font-size: 15px; }

/* ---------- Раздел каталога ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--ground); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip:hover { background: var(--ground-2); }
.chip.is-on { background: var(--ink); color: #fff; }
.listing { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.filters { position: sticky; top: 92px; display: grid; gap: 4px; }
.fgroup { padding: 14px 16px; border-radius: var(--r-lg); background: var(--ground); }
.fgroup h3 { font-size: 14.5px; margin-bottom: 10px; }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frange input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); font-variant-numeric: tabular-nums; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--brand); }
.fcheck em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12.5px; }
.filters__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sort { display: flex; gap: 4px; }
.sort button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.sort button.is-on { background: var(--ground); color: var(--ink); }
.toolbar__right { margin-left: auto; display: flex; gap: 8px; }
.ffilter-btn { display: none; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding-bottom: 40px; }
.product__gallery { position: relative; display: grid; place-items: center; height: min(520px, 70vw); border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.product__gallery img { width: min(72%, 420px); max-height: 86%; object-fit: contain; }
.product__gallery .nophoto { border-radius: var(--r-lg); }
.product__gallery .tags { top: 14px; left: 14px; }
.buybox { position: sticky; top: 92px; display: grid; gap: 14px; }
.buybox__main { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.buybox__ids { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.buybox .price { font-size: 36px; }
.buybox__row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 14px; }
.buybox__row .btn, .buybox__row .qty { height: 52px; }
.buybox__row .btn { font-size: 16px; }
.buybox__total { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.buybox__fav { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.buybox__fav:hover, .buybox__fav.is-on { color: var(--brand); }
.buybox__fav.is-on .ico { fill: currentColor; }
.terms { display: grid; gap: 0; border-radius: var(--r-lg); background: var(--ground); }
.terms li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.terms li:last-child { border-bottom: 0; }
.terms b { display: block; color: var(--ink); font-size: 14px; }
.terms .ico { color: var(--brand); margin-top: 1px; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 8px 0 40px; }
.spec h2 { font-size: 22px; margin-bottom: 14px; }
.spec table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { width: 45%; color: var(--muted); padding-right: 12px; }
.spec__text { color: var(--ink-2); line-height: 1.65; max-width: 62ch; }

/* мобильная панель покупки */
.mbuy { display: none; }

/* ---------- Нижняя панель на телефоне ---------- */
.tabbar { display: none; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.toast .ico { color: #6FD39B; }

/* ---------- Окно «Обратный звонок» ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(22, 24, 29, .45); }
.modal.is-open { display: grid; }
.modal__box { position: relative; width: 100%; max-width: 420px; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg); }
.modal__box h2 { font-size: 22px; margin-bottom: 6px; }
.modal__box p { color: var(--muted); font-size: 14px; }
.modal__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ground); }
.field { display: grid; gap: 6px; margin: 12px 0; font-size: 13.5px; font-weight: 600; }
.field input { height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); }
.field input:focus { outline: none; border-color: var(--ink); }
.agree { font-size: 12px; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .phone { display: none; }
}
@media (max-width: 991px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .topbar__links a:not(.topbar__opt) { display: none; }
  .topbar__addr { display: none; }
  .topbar .wrap { gap: 12px; }
  .topbar__opt { white-space: nowrap; }
  .head__row { min-height: 64px; gap: 10px; flex-wrap: wrap; padding-block: 10px; }
  .logo img { width: 112px; }
  .catbtn, .head__icons, .search__hints { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .search input { height: 44px; }
  .search__go { width: 36px; height: 36px; }
  .head__mphone { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ground); }
  .catnav { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service__card--ink { grid-column: 1 / -1; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 95; top: 0; display: none; align-content: start; padding: 64px 16px 24px; background: var(--paper); overflow: auto; }
  .filters.is-open { display: grid; }
  .filters__close { position: fixed; top: 12px; right: 12px; }
  .ffilter-btn { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 16px; }
  .buybox { position: static; }
  .spec { grid-template-columns: 1fr; }
  .mega__panel { grid-template-columns: 1fr; min-height: 0; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .mega { position: fixed; inset: 0; z-index: 96; background: var(--paper); }
  .mega > .wrap { height: 100%; padding: 0; }
  .mega__panel { box-shadow: none; }
  .mega__roots { background: var(--paper); padding: 64px 12px 24px; }
  .mega__subs { display: none; }
  .mega.is-sub .mega__roots { display: none; }
  .mega.is-sub .mega__subs { display: block; padding: 64px 16px 24px; }
  .mega__group { columns: 1; }
  .mega__close { position: fixed; top: 12px; right: 12px; z-index: 2; }
  .mega__back { position: fixed; top: 12px; left: 12px; z-index: 2; display: none; }
  .mega.is-sub .mega__back { display: inline-flex; }

  .tabbar {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; font-size: 11px; font-weight: 600; color: var(--ink-2); }
  .tabbar .ico { width: 23px; height: 23px; }
  .tabbar .is-on { color: var(--brand); }
  .tabbar .badge-count { top: 0; }

  .mbuy {
    position: fixed; z-index: 71; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 10px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(22, 24, 29, .06);
  }
  .mbuy .price { font-size: 22px; }
  .mbuy .btn { margin-left: auto; height: 46px; }
  .page-product { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 992px) {
  .head__mphone, .mega__close, .mega__back, .filters__close { display: none; }
}
@media (max-width: 640px) {
  .sec { padding: 28px 0; }
  .sec__title { font-size: 22px; }
  .sec__head { flex-wrap: wrap; align-items: center; }
  .tabs { width: 100%; overflow-x: auto; }
  /* условия доставки — лентой с прокруткой, чтобы товары были ближе */
  .service { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .service::-webkit-scrollbar { display: none; }
  .service__card { flex: 0 0 84%; scroll-snap-align: start; padding: 14px; }
  .service__card p { font-size: 13.5px; }
  .service__card--ink .btn { height: 40px; }
  .slider__arrows { display: none; }
  .slider__nav { justify-content: center; bottom: 8px; }
  .cats { grid-template-columns: 1fr; gap: 8px; }
  .cat { padding: 14px; }
  .grid { gap: 8px; }
  .pc { padding: 8px; }
  .pc__name { font-size: 13.5px; }
  .price { font-size: 19px; }
  .pc__buy { grid-template-columns: 1fr; }
  .pc__buy .qty { display: none; }
  .pc__buy .btn { width: 100%; height: 42px; }
  .pc__buy .btn span { display: inline; }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands a { min-height: 60px; font-size: 14px; }
  .toolcats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 24px; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .pagehead h1 { font-size: 24px; }
  .sort { overflow-x: auto; }
  .buybox .price { font-size: 30px; }
  .poster .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Полный каталог, бренд RED, оформление заказа, вход/регистрация, кабинет
   ===================================================================== */
.brand-name:hover { color: var(--brand); }
.stock--order { color: var(--ink-2); }
.stock--order::before { background: var(--line-2); }
.cat__count { color: var(--muted); font-size: 13px; font-weight: 600; }
.chip__n { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.chip.is-on .chip__n { color: #C9CCD2; }
.more { display: grid; justify-items: center; gap: 8px; padding: 24px 0 8px; }
.more .btn { min-width: 240px; }
.more__info { color: var(--muted); font-size: 13px; }
.emptybox { padding: 24px; border-radius: var(--r-lg); background: var(--ground); color: var(--ink-2); }
.emptybox a { color: var(--brand); font-weight: 700; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; border-radius: var(--r-lg); background: #FFF6E5; color: var(--ink-2); font-size: 14px; }
.notice .ico { color: var(--amber); margin-top: 1px; }
.notice--ok { background: var(--ok-tint); }
.notice--ok .ico { color: var(--ok); }
.service--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* RED */
.redband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; }
.redband__text p { color: var(--ink-2); max-width: 46ch; margin: 10px 0 18px; }
.redband__mark { display: inline-grid; place-items: center; min-width: 64px; height: 34px; padding: 0 10px; margin-bottom: 12px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .08em; }
.redband__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.redband__cats a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.redband__cats a:hover { border-color: var(--brand); color: var(--brand); }
.redband__cats b { color: var(--muted); font-weight: 600; }
.brandhead { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--brand-tint); }
.brandhead .redband__mark { margin: 0; flex: none; }
.brandhead p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.brandlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.brandlist a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.brandlist a:hover { border-color: var(--ink); }
.brandlist a b { font-size: 16px; }
.brandlist a span { color: var(--muted); font-size: 13px; }
.brandlist a.is-red { grid-column: span 2; background: var(--brand); border-color: var(--brand); color: #fff; }
.brandlist a.is-red span { color: #FFD9D7; }
.buybox__opt { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--ground); font-size: 13.5px; color: var(--ink-2); }

/* Корзина и оформление */
.cartlayout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cartlayout .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout { position: sticky; top: 92px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.checkout h2 { font-size: 20px; margin-bottom: 12px; }
.checkout__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.checkout__row b { font-size: 16px; }
.checkout__hint { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--ground); font-size: 13.5px; }
.checkout__hint.is-warn { background: #FFF6E5; }
.checkout__hint.is-ok { display: flex; gap: 6px; align-items: center; background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.checkout__ways { margin: 14px 0 4px; padding: 0; border: 0; display: grid; gap: 6px; }
.checkout__ways legend { margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.checkout__ways label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 13px; color: var(--muted); }
.checkout__ways label:has(input:checked) { border-color: var(--ink); background: var(--ground); }
.checkout__ways input { margin-top: 3px; accent-color: var(--brand); }
.checkout__ways b { display: block; color: var(--ink); font-size: 14px; }
.checkout__pay { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 13.5px; }
.checkout__go { width: 100%; height: 52px; font-size: 16px; }

/* Вход и регистрация */
.page-auth { background: var(--ground); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); }
.auth__side { position: relative; display: flex; flex-direction: column; gap: 32px; padding: 32px 40px; background: var(--ink); color: #C9CCD2; overflow: hidden; }
.auth__side::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(210, 31, 26, .22); pointer-events: none; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 14px; }
.auth__back .ico { width: 18px; height: 18px; }
.auth__pitch { margin: auto 0; }
.auth__pitch h2 { color: #fff; font-size: 30px; line-height: 1.15; margin-bottom: 24px; }
.auth__pitch ul { display: grid; gap: 18px; }
.auth__pitch li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 14.5px; line-height: 1.45; }
.auth__pitch li .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; }
.auth__pitch b { color: #fff; }
.auth__contact { font-size: 13px; color: #8E929A; margin: 0; }
.auth__contact a { color: #fff; font-weight: 700; }
.auth__main { display: flex; flex-direction: column; align-items: center; padding: 40px 24px; }
.auth__logo img { width: 180px; margin: 8px auto 28px; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 520px; padding: 4px; border-radius: 12px; background: var(--ground-2); }
.auth__tabs button { height: 44px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.auth__tabs button.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.auth__form { width: 100%; max-width: 520px; margin-top: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); }
.auth__form h1 { font-size: 26px; }
.auth__lead { color: var(--muted); font-size: 14.5px; margin: 6px 0 16px; }
.auth__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.auth__wide { grid-column: 1 / -1; }
.auth__opt { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.auth__opt[hidden] { display: none; }
.auth__opt .auth__note { grid-column: 1 / -1; margin: -2px 0 6px; color: var(--muted); font-size: 13px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; font-size: 14px; }
.auth__row a, .auth__switch a { color: var(--brand); font-weight: 700; }
.auth__agree { margin: 4px 0 8px; font-size: 13px; color: var(--ink-2); }
.auth__error { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-ink); font-size: 13.5px; font-weight: 600; }
.auth__submit { width: 100%; height: 52px; margin-top: 8px; font-size: 16px; }
.auth__switch { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth__proto { max-width: 520px; margin: 16px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.segment label { cursor: pointer; }
.segment input { position: absolute; opacity: 0; }
.segment span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.segment input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.segment input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pass { position: relative; display: block; }
.pass input { width: 100%; padding-right: 48px; }
.pass__eye { position: absolute; top: 5px; right: 5px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.pass__eye:hover { color: var(--ink); background: var(--ground); }
.field input { width: 100%; }

/* Личный кабинет */
.acc__head { display: flex; align-items: center; gap: 16px; margin: 4px 0 24px; }
.acc__avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-size: 22px; font-weight: 800; }
.acc__head h1 { font-size: 28px; }
.acc__sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.acc__shop { margin-left: auto; }
.acc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.acc__menu { position: sticky; top: 92px; display: grid; gap: 2px; padding: 8px; border-radius: var(--r-lg); background: var(--ground); }
.acc__menu a, .acc__menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-align: left; }
.acc__menu a:hover, .acc__menu button:hover { background: var(--paper); color: var(--ink); }
.acc__menu a.is-on { background: var(--paper); color: var(--brand); box-shadow: var(--shadow); }
.acc__menu button { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; color: var(--muted); }
.acc__badge { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--paper); color: var(--ink-2); font-size: 12px; font-weight: 800; text-align: center; }
.acc__badge:empty { display: none; }
.acc__title { font-size: 22px; margin: 0 0 14px; }
.acc__lead { color: var(--ink-2); max-width: 60ch; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { display: grid; gap: 2px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.tile:hover { border-color: var(--ink); }
.tile span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.tile b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.tile em { font-style: normal; color: var(--muted); font-size: 13px; }
.tile:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile:first-child span, .tile:first-child em { color: #C9CCD2; }
.order { margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.order summary { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.order summary::-webkit-details-marker { display: none; }
.order__no { font-family: var(--mono); font-weight: 500; }
.order__date { color: var(--muted); font-size: 14px; }
.order__st { padding: 3px 10px; border-radius: 99px; background: var(--ok-tint); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.order__body { padding: 0 18px 16px; border-top: 1px solid var(--line); }
.order__body p { margin: 12px 0 8px; color: var(--muted); font-size: 14px; }
.order__body ul { display: grid; gap: 6px; margin-bottom: 12px; }
.order__body li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.order__body li a:hover { color: var(--brand); }
.bonus { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.bonus span { color: #C9CCD2; font-size: 13.5px; }
.bonus b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.bonus em { font-style: normal; color: #8E929A; font-size: 13px; }
.bonus__bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bonus__bar i { display: block; height: 100%; background: var(--brand); }
.bonus p { margin: 0; color: #C9CCD2; font-size: 14px; }
.bonus p b { display: inline; font-size: inherit; color: #fff; }
.rules { display: grid; gap: 8px; margin: 16px 0; padding-left: 20px; list-style: disc; color: var(--ink-2); font-size: 14.5px; }
.addr { display: grid; gap: 8px; margin-bottom: 16px; }
.addr li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.addr li .ico { color: var(--brand); }
.addr em { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--ground); font-size: 12px; color: var(--muted); }
.addr__form, .profile { display: grid; gap: 4px; max-width: 520px; }
.addr__form .btn, .profile .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 991px) {
  .redband { grid-template-columns: 1fr; gap: 20px; }
  .cartlayout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { order: 2; padding: 28px 20px; }
  .auth__pitch h2 { font-size: 24px; }
  .auth__main { padding: 20px 16px 32px; }
  .acc { grid-template-columns: 1fr; }
  .acc__menu { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .acc__menu::-webkit-scrollbar { display: none; }
  .acc__menu a, .acc__menu button { white-space: nowrap; }
  .acc__menu button { margin-top: 0; border-top: 0; border-radius: 9px; }
  .acc__shop { display: none; }
  .service--row { grid-template-columns: 1fr; }
  .brandlist a.is-red { grid-column: auto; }
}
@media (max-width: 640px) {
  .auth__form { padding: 20px 16px; }
  .auth__grid, .auth__opt { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile b { font-size: 26px; }
  .order summary { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .order__date { grid-column: 1; grid-row: 2; }
  .acc__head h1 { font-size: 22px; }
  .acc__avatar { width: 52px; height: 52px; font-size: 18px; }
  .redband__cats { grid-template-columns: 1fr; }
  .cartlayout .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Битрикс-версия (шаблон skl_v2): то, чего не было в прототипе ===== */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.page { padding-bottom: 8px; }
.page__body { min-height: 30vh; }
.page__body > p, .page__body > ul, .page__body > ol, .page__body > h2, .page__body > h3, .page__body > h4 { max-width: 75ch; }
.page__body > p, .page__body > ul, .page__body > ol { margin: 0 0 14px; line-height: 1.6; color: var(--ink-2); }
.page__body > ul, .page__body > ol { padding-left: 22px; }
.page__body > ul { list-style: disc; }
.page__body > ol { list-style: decimal; }
.page__body > h2 { font-size: 22px; margin: 24px 0 10px; }
.page__body > h3, .page__body > h4 { font-size: 17px; margin: 20px 0 8px; }
.page__body > p a, .page__body > ul a { color: var(--brand); font-weight: 600; }
.page__body table { border-collapse: collapse; }
.pc-wrap { display: flex; min-width: 0; }
.pc-wrap > .pc { flex: 1; min-width: 0; }
.grid > .pc-wrap:empty { display: none; }
.sort a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sort a.is-on { background: var(--ground); color: var(--ink); }
.sort a:hover { color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 28px 0 8px; }
.pager__btn { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 15px; color: var(--ink-2); }
a.pager__btn:hover { border-color: var(--ink); color: var(--ink); }
.pager__btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__gap { padding: 0 4px; color: var(--muted); }
.pager__info { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.fvalues { display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.strip__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.contact { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.contact > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.contact span { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 2px; }
.contact__big { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.contact .phone__cb { margin-top: 6px; }
.account { padding-top: 4px; }
.acc__hello { font-size: 24px; margin: 0; }
.acc__body { min-width: 0; }
.page-account .pagehead { display: none; }
.auth__std form { display: grid; gap: 10px; }
.auth__std input[type="text"], .auth__std input[type="password"], .auth__std input[type="email"] { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.auth__std input[type="submit"] { height: 48px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.auth__std table { width: 100%; }
.auth__std td { padding: 4px 0; display: block; }
a.checkout__go { display: flex; align-items: center; justify-content: center; }
.checkout .field[hidden] { display: none; }
@media (max-width: 991px) {
    .contacts { grid-template-columns: 1fr; }
    body:has(.mbuy) { padding-bottom: 136px; }
}
@media (max-width: 640px) {
    .strip__row { grid-template-columns: 1fr; }
    .pager__btn { min-width: 36px; height: 36px; }
}
.checkout [hidden], .checkout__hint[hidden] { display: none !important; }
.order__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Плашка о персональных данных (152-ФЗ) ---------- */
.consent {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 960px;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.consent .btn { flex: none; }
@media (max-width: 991px) {
  .consent { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; gap: 10px; font-size: 13px; }
}

/* 01.11.2026: фото не вылезают за рамку (вертикальные картинки). У grid-блока без явной строки
   проценты высоты у картинки не работали — задаём строку 100 %. */
.pc__img, .product__gallery { grid-template-rows: 100%; grid-template-columns: 100%; }
.pc__img img, .product__gallery img { justify-self: center; align-self: center; min-height: 0; }

/* 04.11.2026: три профиля покупателя при регистрации и пометка «в поставке» у строк заказа в кабинете */
.segment--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .segment--3 span { font-size: 13px; gap: 4px; } .segment--3 .ico { display: none; } }
.order__pre { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #FFF6E5; color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* End */
/* /local/templates/skl_v2/css/auth-restore.css?17944183521919 */
/* /local/templates/skl_v2/template_styles.css?179380340554020 */
