/* ============================================================
   ОСНОВА: Авто Б2Б — готовый интернет-магазин автозапчастей для 1С-Битрикс · S-WEBS24 × profycode.pro
   Дизайн-токены: весь акцентный цвет — через CSS-переменные.
   Смена темы = смена data-theme на <body>, HTML не меняется.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Russo+One&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* нейтральная база — не меняется от темы */
  --ink: #14171C;
  --ink-80: rgba(20, 23, 28, .8);
  --ink-60: rgba(20, 23, 28, .6);
  --ink-40: rgba(20, 23, 28, .4);
  --line: rgba(20, 23, 28, .15);
  --surface: #F3F5F8;
  --white: #FFFFFF;
  --success: #1D9E57;
  --success-tint: #E4F5EB;
  --danger: #D92D20;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Russo One', 'Inter', sans-serif;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .15s ease-out;
  --t-med: .35s ease-in-out;
}

/* ---------- Цветовые темы (скины модуля) ---------- */
body[data-theme="orange"] { --primary: #F05A14; --primary-strong: #C74508; --primary-tint: #FDE9DC; --primary-shadow: rgba(240, 90, 20, .45); }
body[data-theme="blue"]   { --primary: #2563EB; --primary-strong: #1C4FD6; --primary-tint: #E3EBFD; --primary-shadow: rgba(37, 99, 235, .45); }
body[data-theme="green"]  { --primary: #0E9F6E; --primary-strong: #0A7A55; --primary-tint: #DFF4EB; --primary-shadow: rgba(14, 159, 110, .45); }
body[data-theme="red"]    { --primary: #E11D48; --primary-strong: #B4123A; --primary-tint: #FBE3E9; --primary-shadow: rgba(225, 29, 72, .45); }
body[data-theme="violet"] { --primary: #7C3AED; --primary-strong: #6220D6; --primary-tint: #EEE5FD; --primary-shadow: rgba(124, 58, 237, .45); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--ink-40); transition: color .25s; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--primary); color: #fff; }

/* ---------- Icons ---------- */
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ic-lg { width: 22px; height: 22px; }

/* ---------- Typography helpers ---------- */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary);
}
.h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.15; font-weight: 400; }
.h2 { font-family: var(--font-display); font-size: 27px; line-height: 1.2; font-weight: 400; }
.h2-light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: translate var(--t-fast), box-shadow .3s ease, background-color var(--t-med), color .3s ease, border-color .3s ease;
}
.btn .ic, .btn .btn-t { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: var(--rx, 50%); top: var(--ry, 50%);
  width: 14px; height: 14px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translate(-50%, -50%) scale(42); }
.btn:hover { translate: 0 -2px; }
.btn:active { scale: .95; transition-duration: .1s; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary::before { background: var(--primary-strong); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px var(--primary-shadow); }

.btn-outline { background: var(--white); border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline::before { background: var(--primary-tint); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: #000; }

.btn-ghost-light { background: var(--white); color: var(--primary); }
.btn-ghost-light::before { background: var(--primary-tint); }

.btn-outline-light { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light::before { background: rgba(255, 255, 255, .14); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ripple при нажатии (span создаётся из JS) */
.ripple {
  position: absolute; z-index: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple .65s var(--ease-out) forwards;
}
.btn-outline .ripple, .btn-ghost-light .ripple, .btn-outline-light .ripple { background: var(--primary-tint); }
.btn-outline-light .ripple { background: rgba(255, 255, 255, .25); }
@keyframes ripple { to { width: 520px; height: 520px; opacity: 0; } }

/* ---------- Underline-ссылки ---------- */
.link-u { position: relative; width: fit-content; }
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1.5px; width: 0; background: currentColor;
  transition: width .3s linear;
}
.link-u:hover::after { width: 100%; }

.more-link {
  font-size: 15px; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.more-link::after { content: "→"; transition: translate .25s var(--ease-out); }
.more-link:hover::after { translate: 5px 0; }

/* ============================================================
   TOPBAR + HEADER
   ============================================================ */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .7); transition: color .25s; }
.tb-item:hover { color: #fff; }
.tb-item .ic { width: 13px; height: 13px; }
.tb-strong { color: #fff; font-weight: 600; }
.tb-accent { color: var(--primary); font-weight: 700; }
.topbar .link-u::after { background: currentColor; }

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(20, 23, 28, .25); }
.header-in { display: flex; align-items: center; gap: 22px; height: 92px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  transition: rotate .5s var(--ease-out), background-color var(--t-med);
}
.logo:hover .logo-box { rotate: -8deg; }
.logo-ic { width: 24px; height: 24px; fill: currentColor; }
.logo-txt { font-family: var(--font-display); font-size: 21px; line-height: 1; display: flex; flex-direction: column; gap: 5px; }
.logo-txt small { font-family: var(--font-body); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-60); font-weight: 600; }

.btn-catalog { flex: none; }

.search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 6px 6px 6px 16px; height: 48px;
  transition: border-color .3s, box-shadow .3s;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.search-ic { color: var(--ink-60); }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; }

.hnav { display: flex; align-items: center; gap: 6px; flex: none; }
.hnav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink);
  transition: color .25s, background-color .25s;
}
.hnav-item small { font-size: 10px; color: var(--ink-60); transition: color .25s; }
.hnav-item:hover { color: var(--primary); }
.hnav-item:hover small { color: var(--primary); }
.hnav-item .ic { width: 20px; height: 20px; transition: translate .25s var(--ease-out); }
.hnav-item:hover .ic { translate: 0 -2px; }
.badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--primary); color: #fff;
  border-radius: 99px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.badge.pop { animation: badge-pop .4s var(--ease-out); }
@keyframes badge-pop { 40% { scale: 1.5; } }
.hnav-user { border-left: 1px solid var(--line); border-radius: 0; padding-left: 18px; margin-left: 4px; flex-direction: row; gap: 8px; align-items: center; }
.hnav-user small { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); margin-top: 96px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 20px 40px; }
.footer .logo-txt { color: #fff; }
.f-about p { font-size: 13px; line-height: 1.6; margin-top: 18px; max-width: 340px; }
.f-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.f-col a { display: block; width: fit-content; font-size: 13px; margin-bottom: 10px; color: rgba(255, 255, 255, .6); transition: color .25s; }
.f-col a:hover { color: #fff; }
.f-phone { font-size: 17px !important; font-weight: 700; color: #fff !important; margin-bottom: 12px; }
.f-contacts p { font-size: 13px; margin-top: 12px; line-height: 1.5; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px; color: rgba(255, 255, 255, .45);
}

/* ============================================================
   FLOATING MINI-SETTINGS (тема + анимации)
   ============================================================ */
.float-panel { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.fp-body {
  width: 236px; padding: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -16px rgba(20, 23, 28, .35);
  opacity: 0; translate: 0 10px; scale: .94; transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .25s ease, translate .3s var(--ease-out), scale .3s var(--ease-out);
}
.float-panel:hover .fp-body, .float-panel.is-open .fp-body { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }

.fp-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-60); margin-bottom: 10px; }
.fp-dots { display: flex; gap: 10px; margin-bottom: 16px; }
.fp-dot {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: var(--dot); transition: scale var(--t-fast), box-shadow .25s;
}
.fp-dot:hover { scale: 1.18; }
.fp-dot:active { scale: .9; }
.fp-dot.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--dot); }
.fp-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s var(--ease-out);
}
.fp-dot:hover .fp-tip { opacity: 1; translate: -50% 0; }

.fp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.fp-row .fp-title { margin-bottom: 0; }
.fp-row small { display: block; font-size: 11px; color: var(--ink-40); margin-top: 2px; }

.switch {
  position: relative; width: 44px; height: 24px; border-radius: 99px; flex: none;
  background: rgba(20, 23, 28, .22);
  transition: background-color .3s;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(20, 23, 28, .3);
  transition: translate .25s var(--ease-out);
}
.switch.is-on { background: var(--primary); }
.switch.is-on .switch-knob { translate: 20px 0; }
.switch:active .switch-knob { scale: .85; }

.fp-toggle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(20, 23, 28, .5);
  transition: background-color var(--t-med), scale var(--t-fast), rotate .4s var(--ease-out);
}
.float-panel:hover .fp-toggle, .float-panel.is-open .fp-toggle { background: var(--primary); rotate: 90deg; }
.fp-toggle:active { scale: .9; }
.fp-toggle .ic { width: 22px; height: 22px; }

/* цветная вспышка при смене темы */
.theme-flash {
  position: fixed; right: 46px; bottom: 46px; z-index: 190;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--flash, #F05A14); opacity: .25;
  pointer-events: none;
  animation: theme-flash .8s var(--ease-out) forwards;
}
@keyframes theme-flash { to { scale: 260; opacity: 0; } }

/* плавная перекраска всего сайта при смене темы */
body.theme-anim *, body.theme-anim *::before, body.theme-anim *::after {
  transition-property: background-color, color, border-color, box-shadow, fill, stroke !important;
  transition-duration: .55s !important;
  transition-timing-function: ease !important;
}

/* ============================================================
   MOTION: reveal, marquee, hovers.  Отключение — body.no-motion
   ============================================================ */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s var(--ease-out); }
.reveal.in { opacity: 1; translate: 0 0; }

body.no-motion *, body.no-motion *::before, body.no-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0ms !important;
}
body.no-motion { scroll-behavior: auto; }
body.no-motion .reveal { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0 0 0 44%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(20, 23, 28, .88) 30%, rgba(20, 23, 28, .15) 100%);
}
.hero-in { position: relative; z-index: 2; padding: 88px 20px 92px; }
.hero-accent { width: 56px; height: 6px; background: var(--primary); margin-bottom: 24px; transition: background-color var(--t-med); }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 44px; line-height: 1.18; color: #fff;
  margin: 14px 0 22px;
}
.hero-title em { font-style: normal; color: var(--primary); transition: color var(--t-med); }
.hero-sub { color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 560px; line-height: 1.55; }

.hero-search {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--r-lg);
  padding: 8px 8px 8px 20px; max-width: 640px; height: 64px;
  margin: 32px 0 18px;
  transition: box-shadow .3s;
}
.hero-search:focus-within { box-shadow: 0 0 0 4px var(--primary-tint), 0 20px 40px -20px rgba(0, 0, 0, .5); }
.hero-search .ic { width: 20px; height: 20px; color: var(--ink-60); }
.hero-search input { flex: 1; border: 0; outline: none; font-size: 15px; background: none; }
.hero-search .btn { height: 48px; padding: 0 28px; }

.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 99px; font-size: 12px;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .25s, border-color .25s, color .25s, translate var(--t-fast);
}
.chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; translate: 0 -2px; }

/* ---------- Brands marquee ---------- */
.brands { border-bottom: 1px solid var(--line); }
.brands-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.brands-label { flex: none; font-size: 12px; color: var(--ink-60); }
.brands-marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-track span {
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--ink-40);
  transition: color .25s;
}
.brands-track span:hover { color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0 8px; }
.section-dark { background: var(--ink); margin-top: 72px; padding-bottom: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.sec-head .h2 { margin-top: 10px; }
.sec-note { max-width: 420px; font-size: 13px; color: var(--ink-60); line-height: 1.5; }
.section-dark .sec-note { color: rgba(255, 255, 255, .5); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 24px; min-height: 190px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s, box-shadow .35s, translate .3s var(--ease-out);
}
.cat-tile:hover { border-color: var(--primary); box-shadow: 0 18px 40px -20px var(--primary-shadow); translate: 0 -4px; }
.cat-ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 16px;
  transition: rotate .5s var(--ease-out), background-color var(--t-med), color var(--t-med);
}
.cat-ic .ic { width: 22px; height: 22px; }
.cat-tile:hover .cat-ic { rotate: -10deg; }
.cat-name { font-size: 17px; font-weight: 700; }
.cat-count { font-size: 13px; color: var(--ink-60); }
.cat-arrow {
  position: absolute; right: 20px; bottom: 20px;
  color: var(--ink-40); transition: color .25s, translate .25s var(--ease-out);
}
.cat-tile:hover .cat-arrow { color: var(--primary); translate: 6px 0; }

/* ---------- Benefits (dark) ---------- */
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ben { padding: 8px 28px 8px 0; border-right: 1px solid rgba(255, 255, 255, .14); }
.ben + .ben { padding-left: 28px; }
.ben:last-child { border-right: 0; }
.ben-num { font-family: var(--font-display); font-size: 26px; color: var(--primary); transition: color var(--t-med); }
.ben h3 { color: #fff; font-size: 17px; margin: 16px 0 10px; }
.ben p { font-size: 13px; color: rgba(255, 255, 255, .5); line-height: 1.55; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s, scale var(--t-fast);
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab:active { scale: .94; }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 16px;
  transition: box-shadow .35s, translate .3s var(--ease-out), border-color .3s;
}
.prod-card:hover { box-shadow: 0 22px 44px -20px rgba(20, 23, 28, .3); translate: 0 -5px; border-color: transparent; }
.prod-img {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border-radius: var(--r-sm);
  aspect-ratio: 1.53;
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .5s var(--ease-out); }
.prod-card:hover .prod-img img { transform: scale(1.07) rotate(-1deg); }
.tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 99px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
}
.tag-accent { background: var(--primary); color: #fff; }
.tag-dark { background: var(--ink); color: #fff; }
.prod-art { font-size: 11px; letter-spacing: 1px; color: var(--ink-60); margin-top: 14px; text-transform: uppercase; }
.prod-name {
  font-size: 14.5px; font-weight: 700; line-height: 1.35; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
  background: linear-gradient(var(--primary), var(--primary)) no-repeat 0 100% / 0 2px;
  transition: background-size .35s var(--ease-out);
  width: fit-content;
}
.prod-card:hover .prod-name, .prod-name:hover { background-size: 100% 2px; }
.prod-stock { font-size: 12px; margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.prod-stock span { color: var(--ink-60); font-size: 11px; }
.stock-ok { color: var(--success); font-weight: 600; }
.stock-ok::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; }
.stock-order { color: var(--ink-60); font-weight: 600; }
.stock-order::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; color: var(--primary); }
.prod-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.prod-price { display: flex; flex-direction: column; gap: 1px; }
.prod-price s { font-size: 12px; color: var(--ink-40); }
.prod-price strong { font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.prod-price small { font-size: 10px; color: var(--ink-40); }
.btn-cart { padding: 11px 16px; font-size: 12.5px; }
.btn-cart .ic { width: 15px; height: 15px; }
.btn-cart.is-added { background: var(--success); }
.btn-cart.is-added::before { background: var(--success); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); margin-top: 72px; transition: background-color var(--t-med); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 20px; }
.cta-text { font-family: var(--font-display); font-size: 19px; color: #fff; }

/* ============================================================
   ОБЩИЕ ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */
.crumbs { font-size: 13px; color: var(--ink-60); padding: 20px 0 0; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 8px; color: var(--ink-40); }
.crumbs .cur { color: var(--ink); }
.page-head { padding: 18px 0 28px; }
.page-head .h1 { margin-bottom: 8px; }
.count-note { font-size: 14px; color: var(--ink-60); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  translate: -50% 140%;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 14px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 24px 50px -16px rgba(20, 23, 28, .5);
  transition: translate .4s var(--ease-out);
}
.toast .ic { color: var(--success); }
.toast.show { translate: -50% 0; }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  transition: background-color .3s, scale var(--t-fast);
}
.chip-filter:hover { background: var(--primary); }
.chip-filter:active { scale: .94; }
.chip-filter i { font-style: normal; opacity: .6; }
.tb-reset { font-size: 12px; color: var(--ink-60); }
.tb-reset:hover { color: var(--primary); }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sort-label { font-size: 13px; color: var(--ink-60); }
.sort-select { position: relative; }
.sort-select select {
  appearance: none; border: 0; background: none; font-size: 13px; font-weight: 700;
  padding-right: 18px; cursor: pointer; outline: none; color: var(--ink);
}
.sort-select::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 7px; height: 7px; border-right: 2px solid var(--ink-60); border-bottom: 2px solid var(--ink-60);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.view-toggle { display: flex; gap: 6px; }
.view-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-40); transition: color .25s, background-color .25s; }
.view-btn:hover { color: var(--primary); }
.view-btn.is-active { color: var(--primary); background: var(--primary-tint); }

.layout-2col { display: grid; grid-template-columns: 272px 1fr; gap: 32px; align-items: start; }

/* ---------- Filters ---------- */
.filters { position: sticky; top: 112px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filters-head h3 { font-size: 18px; }
.filters-clear { font-size: 12px; color: var(--primary); font-weight: 600; }
.filter-block { padding: 20px 0; border-top: 1px solid var(--line); }
.filter-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-link { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink); transition: color .2s, translate .2s var(--ease-out); }
.filter-link:hover { color: var(--primary); translate: 4px 0; }
.filter-link.is-active { color: var(--primary); font-weight: 700; }
.filter-link em { font-style: normal; color: var(--ink-40); font-size: 12px; }

.check { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; width: fit-content; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1.5px solid var(--ink-40); background: #fff;
  display: grid; place-items: center; color: #fff;
  transition: background-color .25s, border-color .25s, scale .2s var(--ease-out);
}
.check-box .ic { width: 11px; height: 11px; scale: 0; transition: scale .25s var(--ease-out); }
.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-box .ic { scale: 1; }
.check:active .check-box { scale: .85; }
.check em { font-style: normal; color: var(--ink-40); font-size: 12px; margin-left: auto; padding-left: 8px; }

.price-inputs { display: flex; gap: 10px; margin-bottom: 16px; }
.price-inputs input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.price-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.range { position: relative; height: 22px; }
.range-line { position: absolute; top: 50%; left: 0; right: 0; height: 3px; translate: 0 -50%; background: var(--line); border-radius: 99px; }
.range-fill { position: absolute; top: 50%; left: 0; width: 62%; height: 3px; translate: 0 -50%; background: var(--primary); border-radius: 99px; transition: background-color var(--t-med); }
.range-knob {
  position: absolute; top: 50%; left: 62%; translate: -50% -50%;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--primary);
  cursor: grab; transition: scale .2s var(--ease-out), border-color var(--t-med);
}
.range-knob:hover { scale: 1.2; }

.select {
  width: 100%; height: 48px; padding: 0 40px 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white) none; appearance: none;
  font-size: 13px; font-weight: 600; cursor: pointer; outline: none;
  transition: border-color .25s, box-shadow .25s;
  margin-bottom: 10px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-60) 50%), linear-gradient(135deg, var(--ink-60) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }

.vin-card { background: var(--ink); border-radius: var(--r-lg); padding: 22px; margin-top: 26px; }
.vin-card h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.vin-card p { font-size: 12px; color: rgba(255, 255, 255, .55); line-height: 1.5; margin-bottom: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; }
.pg-btn {
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 14px; border: 1.5px solid var(--line); color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s, scale var(--t-fast);
}
.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn:active { scale: .9; }
.pg-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-btn.pg-dots { border: 0; color: var(--ink-40); }

/* ---------- SEO band ---------- */
.seo-band { background: var(--surface); margin-top: 64px; padding: 44px 0; }
.seo-band h3 { font-size: 18px; margin-bottom: 16px; }
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; font-size: 13px; color: var(--ink-60); line-height: 1.65; }

/* ---------- Mini cards / collections ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-card {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px;
  transition: box-shadow .3s, translate .3s var(--ease-out), border-color .3s;
  display: block;
}
.mini-card:hover { box-shadow: 0 16px 36px -18px rgba(20, 23, 28, .28); translate: 0 -4px; border-color: transparent; }
.mini-card img { width: 100%; aspect-ratio: 2.2; object-fit: contain; margin-bottom: 10px; }
.mini-card p { font-size: 13px; font-weight: 700; line-height: 1.35; min-height: 36px; }
.mini-card strong { font-family: var(--font-display); font-weight: 400; font-size: 16px; margin-top: 6px; display: block; }

.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection {
  border-radius: var(--r-lg); padding: 28px; min-height: 240px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--primary-tint);
  transition: translate .3s var(--ease-out), box-shadow .3s, background-color var(--t-med);
}
.collection:hover { translate: 0 -4px; box-shadow: 0 18px 40px -22px rgba(20, 23, 28, .35); }
.collection .ic { width: 34px; height: 34px; color: var(--primary); transition: color var(--t-med); }
.collection h3 { font-size: 18px; }
.collection p { font-size: 13px; color: var(--ink-60); line-height: 1.5; flex: 1; }
.collection .more-link { font-size: 13px; }
.collection-dark { background: var(--ink); color: #fff; }
.collection-dark p { color: rgba(255, 255, 255, .55); }
.collection-mid { background: var(--surface); }
.collection-mid .ic { color: var(--ink); }
.collection-mid .more-link { color: var(--ink); }

/* ============================================================
   КАРТОЧКА ТОВАРА
   ============================================================ */
.prod-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-60); margin-top: 12px; }
.prod-meta b { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--primary); }
.stars .ic { width: 14px; height: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  background: var(--success-tint); color: var(--success);
  font-size: 12px; font-weight: 700;
}

.prod-layout { display: grid; grid-template-columns: 600px 1fr; gap: 36px; margin-top: 24px; }

.gallery-main {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  aspect-ratio: 1.18; overflow: hidden; background: var(--white);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 40px; transition: opacity .25s, scale .4s var(--ease-out); }
.gallery-main:hover img { scale: 1.04; }
.gallery-main .tag { top: 18px; left: 18px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumb {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 1.75; cursor: pointer; background: var(--white); padding: 4px;
  transition: border-color .25s, scale var(--t-fast);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { scale: 1.05; }
.thumb.is-active { border-color: var(--primary); }

.buy-panel { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.buy-label { font-size: 11px; letter-spacing: 2px; color: var(--ink-60); text-transform: uppercase; font-weight: 600; }
.buy-price-row { display: flex; align-items: baseline; gap: 18px; margin: 6px 0 14px; flex-wrap: wrap; }
.buy-price { font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; }
.buy-old { font-size: 14px; color: var(--ink-60); }
.buy-old s { margin-right: 4px; }
.stock-rows { border-top: 1px solid var(--line); margin-top: 20px; }
.stock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.stock-row .s-name { font-weight: 600; }
.stock-row .s-name small { display: block; font-weight: 400; color: var(--ink-60); font-size: 12px; }
.stock-row .s-when { color: var(--ink-60); }
.stock-row .s-when.ok { color: var(--success); font-weight: 700; }
.buy-note { font-size: 12px; color: var(--ink-60); line-height: 1.5; margin-top: 16px; display: flex; gap: 8px; }
.buy-note .ic { color: var(--ink-40); margin-top: 1px; }

.buy-actions { display: flex; gap: 12px; margin-top: 22px; align-items: stretch; }
.qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.qty-btn { width: 44px; height: 54px; display: grid; place-items: center; color: var(--ink-60); transition: color .2s, background-color .2s; }
.qty-btn:hover { color: var(--primary); background: var(--surface); }
.qty-btn:active { scale: .85; }
.qty-val { min-width: 44px; text-align: center; font-size: 16px; font-weight: 700; }
.btn-fav { width: 122px; flex-direction: column; gap: 2px; font-size: 11px; padding: 8px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.btn-fav::before { background: var(--primary-tint); }
.btn-fav.is-fav { color: var(--primary); border-color: var(--primary); }
.btn-fav.is-fav .ic { animation: heart-pop .45s var(--ease-out); }
@keyframes heart-pop { 40% { scale: 1.5; } }

.dlv-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--surface); border-radius: var(--r-lg); padding: 20px 24px; margin-top: 16px; }
.dlv-item { display: flex; gap: 12px; font-size: 12px; line-height: 1.45; align-items: flex-start; }
.dlv-item .ic { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; transition: color var(--t-med); }

/* ---------- Product tabs ---------- */
.ptabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-top: 56px; overflow-x: auto; }
.ptab {
  position: relative; padding: 0 2px 14px; font-size: 16px; color: var(--ink-60);
  white-space: nowrap; transition: color .25s;
}
.ptab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0;
  background: var(--primary); transition: width .35s var(--ease-out), background-color var(--t-med);
}
.ptab:hover { color: var(--ink); }
.ptab.is-active { color: var(--ink); font-weight: 700; }
.ptab.is-active::after { width: 100%; }
.ptab-panel { display: none; padding-top: 28px; }
.ptab-panel.is-active { display: block; animation: panel-in .45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; translate: 0 14px; } }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-60); background: var(--surface); padding: 12px 14px; font-weight: 700;
}
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background-color .2s; }
.table tbody tr:hover { background: var(--surface); }
.table .price { font-weight: 700; white-space: nowrap; }
.table .best { color: var(--success); font-size: 11px; font-weight: 700; }
.table .t-link { color: var(--primary); font-weight: 700; white-space: nowrap; }
.table .t-link:hover { text-decoration: underline; }
tr.row-best td { background: var(--primary-tint); transition: background-color var(--t-med); }
tr.row-best:hover td { background: var(--primary-tint); }
.t-qty { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #fff; }
.t-qty button { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink-60); border-radius: 6px; transition: color .2s, background-color .2s; }
.t-qty button:hover { color: var(--primary); background: var(--surface); }
.t-qty b { min-width: 20px; text-align: center; font-size: 13px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--ink-60); width: 46%; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.fit-card { background: var(--surface); border-radius: var(--r-lg); padding: 26px; }
.fit-card ul { list-style: none; }
.fit-card li { padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.fit-card li:last-child { border-bottom: 0; }
.fit-note { font-size: 12px; color: var(--ink-60); margin-top: 14px; line-height: 1.5; }

.cross-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 8px 26px 18px; }
.cross-row {
  display: grid; grid-template-columns: 1fr auto auto 24px; gap: 16px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px;
  transition: background-color .2s; cursor: pointer;
}
.cross-row:hover { background: var(--surface); }
.cross-row .c-name { font-weight: 700; }
.cross-row .c-price { font-weight: 700; font-size: 14px; }
.cross-row .c-stock { font-size: 12px; color: var(--success); }
.cross-row .c-arrow { color: var(--primary); font-weight: 700; transition: translate .25s var(--ease-out); }
.cross-row:hover .c-arrow { translate: 5px 0; }

.banner-dark {
  background: var(--ink); border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 20px;
  padding: 24px 32px; margin-top: 56px;
}
.banner-dark .ic { width: 30px; height: 30px; color: var(--primary); transition: color var(--t-med); }
.banner-dark p { color: #fff; font-size: 16px; font-weight: 700; flex: 1; }

/* ============================================================
   НОВОСТИ
   ============================================================ */
.news-top { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-top: 8px; }
.news-featured {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 420px; display: flex; align-items: flex-end;
}
.news-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.news-featured:hover img { scale: 1.05; }
.news-featured::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20, 23, 28, .88) 8%, rgba(20, 23, 28, 0) 60%);
}
.nf-body { position: relative; z-index: 2; padding: 32px; }
.nf-date {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 99px;
  margin-bottom: 14px; transition: background-color var(--t-med);
}
.nf-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.3; color: #fff; margin-bottom: 8px; }
.nf-ex { font-size: 13px; color: rgba(255, 255, 255, .7); }
.news-side { display: flex; flex-direction: column; }
.news-side-item { padding: 18px 0; border-bottom: 1px solid var(--line); transition: translate .25s var(--ease-out); }
.news-side-item:hover { translate: 6px 0; }
.news-side-item time { font-size: 12px; font-weight: 700; color: var(--primary); transition: color var(--t-med); }
.news-side-item p { font-size: 15px; font-weight: 700; line-height: 1.35; margin-top: 6px; }
.news-archive { margin-top: auto; padding-top: 18px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.news-card {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; background: var(--white);
  transition: box-shadow .35s, translate .3s var(--ease-out), border-color .3s;
}
.news-card:hover { box-shadow: 0 22px 44px -22px rgba(20, 23, 28, .3); translate: 0 -5px; border-color: transparent; }
.news-card-img { aspect-ratio: 2.08; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
.news-card:hover .news-card-img img { scale: 1.08; }
.news-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-body time { font-size: 12px; font-weight: 700; color: var(--primary); transition: color var(--t-med); }
.news-card-body h3 { font-size: 16px; line-height: 1.35; }
.news-card-body p { font-size: 13px; color: var(--ink-60); line-height: 1.5; flex: 1; }

.subscribe {
  background: var(--ink); border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 24px;
  padding: 34px 40px; margin-top: 56px;
}
.subscribe .ic { width: 30px; height: 30px; color: var(--primary); flex: none; }
.subscribe h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.subscribe p { font-size: 13px; color: rgba(255, 255, 255, .6); }
.subscribe-form { display: flex; gap: 10px; margin-left: auto; flex: none; }
.subscribe-form input {
  width: 280px; height: 48px; border: 0; border-radius: var(--r-md);
  padding: 0 16px; font-size: 13px; outline: none;
  transition: box-shadow .25s;
}
.subscribe-form input:focus { box-shadow: 0 0 0 3px var(--primary); }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 460px 1fr; gap: 40px; margin-top: 8px; align-items: start; }
.c-line { display: flex; gap: 16px; padding: 14px 0; }
.c-ic {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: var(--surface); display: grid; place-items: center; color: var(--primary);
  transition: rotate .4s var(--ease-out), background-color .3s, color .3s;
}
.c-line:hover .c-ic { background: var(--primary-tint); rotate: -8deg; }
.c-ic .ic { width: 20px; height: 20px; }
.c-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-60); font-weight: 600; }
.c-value { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-top: 3px; }
.c-value-sm { font-size: 15px; font-family: var(--font-body); font-weight: 700; }
.c-sub { font-size: 12px; color: var(--ink-60); margin-top: 3px; }

.req-card { background: var(--surface); border-radius: var(--r-lg); padding: 26px; margin-top: 18px; }
.req-card h3 { font-size: 16px; margin-bottom: 14px; }
.req-card dl { display: grid; gap: 6px; font-size: 13px; color: var(--ink-60); }
.req-card dl b { color: var(--ink); font-weight: 600; }
.req-card .more-link { margin-top: 16px; font-size: 13px; }

.map {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 520px;
  background:
    linear-gradient(var(--white) 0 0) padding-box,
    var(--surface);
  background-image:
    linear-gradient(rgba(255,255,255,.9) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.9) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 220px 220px, 220px 220px, 44px 44px, 44px 44px;
  background-color: var(--surface);
}
.map-pin-wrap { position: absolute; left: 50%; top: 46%; translate: -50% -100%; }
.map-pulse {
  position: absolute; left: 50%; bottom: -6px; translate: -50% 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); opacity: .3;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { to { scale: 4.4; opacity: 0; } }
.map-pin { width: 46px; height: 60px; color: var(--primary); filter: drop-shadow(0 8px 14px rgba(20,23,28,.35)); animation: pin-bob 2.6s ease-in-out infinite; }
@keyframes pin-bob { 50% { translate: 0 -7px; } }
.map-open {
  position: absolute; top: 22px; right: 22px;
  background: var(--white); border-radius: var(--r-md);
  padding: 11px 18px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(20, 23, 28, .3);
  transition: color .25s, translate var(--t-fast);
}
.map-open:hover { color: var(--primary); translate: 0 -2px; }
.map-addr {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--white); border-radius: var(--r-md);
  padding: 16px 22px; font-size: 13px; font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(20, 23, 28, .35);
}

.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.office-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color .3s, box-shadow .3s; }
.office-card:hover { border-color: var(--primary); box-shadow: 0 16px 36px -20px var(--primary-shadow); }
.office-card h3 { font-size: 16px; margin-bottom: 12px; }
.office-card p { font-size: 13px; color: var(--ink-60); line-height: 1.8; }
.office-card .more-link { margin-top: 12px; font-size: 13px; }

.manager-band {
  background: var(--ink); border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 28px;
  padding: 30px 36px; margin-top: 40px;
}
.manager-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--primary); transition: border-color var(--t-med);
}
.manager-info { flex: 1; }
.manager-info .kicker { margin-bottom: 6px; }
.manager-info h3 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 22px; }
.manager-info p { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 8px; max-width: 560px; line-height: 1.5; }
.manager-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }

/* ---------- Forms ---------- */
.form-panel { background: var(--surface); border-radius: var(--r-lg); padding: 36px 40px; margin-top: 40px; }
.form-panel h2 { font-size: 20px; margin-bottom: 6px; }
.form-panel > p { font-size: 13px; color: var(--ink-60); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-60); }
.field input, .field textarea, .field select {
  height: 54px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--white); padding: 0 16px; font-size: 14px; outline: none;
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.field textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.field input.is-filled { background: var(--surface); }
.field-ok { position: relative; }
.field-ok::after {
  content: "Реквизиты найдены ✓"; position: absolute; right: 12px; top: 50%;
  translate: 0 -50%; font-size: 12px; font-weight: 700; color: var(--success);
  pointer-events: none;
}
.form-foot { display: flex; align-items: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.form-foot small { font-size: 12px; color: var(--ink-60); }

.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.dept-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color .3s, translate .3s var(--ease-out); }
.dept-card:hover { border-color: var(--primary); translate: 0 -4px; }
.dept-card .ic { width: 22px; height: 22px; color: var(--primary); margin-bottom: 12px; transition: color var(--t-med); }
.dept-card h4 { font-size: 14px; margin-bottom: 4px; }
.dept-card p { font-size: 12px; color: var(--ink-60); }

/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ
   ============================================================ */
.company-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 99px; padding: 10px 20px;
  font-size: 13px; font-weight: 700;
}
.company-chip em { font-style: normal; color: var(--primary); transition: color var(--t-med); }

.acc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-top: 8px; align-items: start; }
.acc-side { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 16px; }
.acc-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.acc-user { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.acc-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink-60); flex: none; }
.acc-avatar .ic { width: 24px; height: 24px; }
.acc-user b { font-size: 14px; display: block; }
.acc-user small { font-size: 11px; color: var(--ink-60); }
.acc-nav { display: flex; flex-direction: column; }
.acc-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink);
  transition: background-color .25s, color .25s, translate .2s var(--ease-out);
}
.acc-nav a:hover { background: var(--surface); translate: 4px 0; }
.acc-nav a.is-active { background: var(--primary-tint); color: var(--primary); font-weight: 700; }
.acc-nav a .ic { color: var(--ink-60); transition: color .25s; }
.acc-nav a:hover .ic, .acc-nav a.is-active .ic { color: var(--primary); }
.acc-badge { margin-left: auto; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 22px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.acc-out { color: var(--ink-60) !important; margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); }

.acc-manager { background: var(--ink); border-radius: var(--r-lg); padding: 20px; text-align: left; }
.acc-manager-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.acc-manager img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); transition: border-color var(--t-med); }
.acc-manager b { color: #fff; font-size: 14px; display: block; }
.acc-manager small { font-size: 11px; color: rgba(255, 255, 255, .55); }
.acc-manager .foot { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  transition: border-color .3s, box-shadow .3s, translate .3s var(--ease-out);
}
.stat-card:hover { border-color: var(--primary); translate: 0 -3px; box-shadow: 0 14px 30px -18px var(--primary-shadow); }
.stat-card h5 { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-60); font-weight: 700; line-height: 1.4; min-height: 28px; }
.stat-card strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; display: block; margin: 8px 0 4px; }
.stat-card strong em { font-style: normal; color: var(--primary); transition: color var(--t-med); }
.stat-card small { font-size: 11px; color: var(--ink-60); }

.acc-section { margin-top: 40px; }
.acc-section .sec-head { margin-bottom: 20px; }
.acc-section .h3, .h3 { font-size: 20px; font-weight: 700; }

.status { font-weight: 700; font-size: 13px; }
.status-work { color: var(--ink-60); }
.status-ship { color: var(--primary); }
.status-done { color: var(--ink); }
.status-paid { color: var(--success); }

.qa-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qa-card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.qa-card h4, .doc-card h4 { font-size: 16px; margin-bottom: 16px; }
.qa-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; transition: translate .2s var(--ease-out), color .2s; width: fit-content; }
.qa-item:hover { translate: 6px 0; color: var(--primary); }
.qa-item .ic { color: var(--primary); transition: color var(--t-med); }
.doc-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.doc-item { display: flex; gap: 8px; padding: 9px 0; font-size: 13px; align-items: center; }
.doc-item .ok { color: var(--success); font-weight: 700; }

.chart-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px 12px; }
.chart { display: flex; align-items: flex-end; gap: 5%; height: 240px; padding-top: 20px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%; max-width: 64px; border-radius: 8px 8px 0 0;
  background: var(--primary); position: relative;
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  animation: bar-grow .9s var(--ease-out) backwards;
  transition: background-color var(--t-med), filter .25s;
}
.chart-col:hover .chart-bar { filter: brightness(1.12); }
.chart-col:hover .chart-tip { opacity: 1; translate: -50% -4px; }
.chart-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s var(--ease-out);
}
.chart-col small { font-size: 12px; color: var(--ink-60); }
@keyframes bar-grow { from { scale: 1 0; } }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.addr-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color .3s; }
.addr-card.is-main { border-color: var(--primary); }
.addr-pill { display: inline-block; background: var(--primary-tint); color: var(--primary); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 99px; margin-bottom: 12px; transition: background-color var(--t-med), color var(--t-med); }
.addr-card h4 { font-size: 14px; margin-bottom: 6px; }
.addr-card p { font-size: 12px; color: var(--ink-60); line-height: 1.5; }
.addr-card .more-link { margin-top: 12px; font-size: 13px; }

.bonus-band {
  background: var(--ink); border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 20px; padding: 26px 32px; margin-top: 40px;
}
.bonus-band .ic { width: 32px; height: 32px; color: var(--primary); flex: none; transition: color var(--t-med); }
.bonus-band h4 { color: #fff; font-size: 17px; }
.bonus-band p { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.bonus-progress { margin-left: auto; flex: none; text-align: center; }
.progress { width: 180px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.progress i {
  display: block; height: 100%; width: var(--p, 50%);
  background: var(--primary); border-radius: 99px;
  animation: progress-fill 1.2s var(--ease-out) backwards .3s;
  transition: background-color var(--t-med);
}
@keyframes progress-fill { from { width: 0; } }
.bonus-progress small { color: #fff; font-size: 12px; font-weight: 700; display: block; margin-top: 8px; }

/* ============================================================
   РЕГИСТРАЦИЯ / КОРЗИНА / ОФОРМЛЕНИЕ
   ============================================================ */
.steps { display: flex; align-items: center; gap: 14px; margin: 6px 0 32px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 12px; }
.step-c {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--ink-40); color: var(--ink-60);
  transition: background-color .3s, border-color .3s, color .3s, scale var(--t-fast);
}
.step.is-active .step-c { background: var(--primary); border-color: var(--primary); color: #fff; scale: 1.1; }
.step.is-done .step-c { background: var(--success); border-color: var(--success); color: #fff; }
.step span { font-size: 14px; font-weight: 600; }
.step.is-active span { color: var(--ink); font-weight: 700; }
.step:not(.is-active):not(.is-done) span { color: var(--ink-60); font-weight: 400; }
.step-line { width: 56px; height: 2px; background: var(--line); }

.reg-layout { display: grid; grid-template-columns: 760px 1fr; gap: 32px; align-items: start; }
.form-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 32px 36px; }
.form-card h3 { font-size: 16px; margin: 26px 0 14px; }
.form-card h3:first-child { margin-top: 0; }
.form-card .form-grid { grid-template-columns: 1fr 1fr; }

.type-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.type-chip {
  padding: 12px 22px; border-radius: 99px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--white);
  transition: background-color .3s, color .3s, border-color .3s, scale var(--t-fast);
}
.type-chip:hover { border-color: var(--primary); color: var(--primary); }
.type-chip:active { scale: .94; }
.type-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.benefit-card { background: var(--ink); border-radius: var(--r-lg); padding: 30px 32px; }
.benefit-card h3 { color: #fff; font-size: 18px; margin-bottom: 22px; }
.benefit-item { display: flex; gap: 16px; padding: 13px 0; }
.benefit-item .ic { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; transition: color var(--t-med); }
.benefit-item b { color: #fff; font-size: 15px; display: block; }
.benefit-item small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.benefit-card .hr { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 16px; padding-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .55); line-height: 1.5; }

.link-card { background: var(--surface); border-radius: var(--r-lg); padding: 26px 32px; margin-top: 16px; }
.link-card h3 { font-size: 17px; margin-bottom: 8px; }
.link-card p { font-size: 13px; color: var(--ink-60); line-height: 1.5; margin-bottom: 18px; }
.link-row { display: flex; gap: 10px; }
.link-row input { flex: 1; height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 0 16px; font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s; }
.link-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; }
.how-item { position: relative; }
.how-num { font-family: var(--font-display); font-size: 24px; color: var(--primary); transition: color var(--t-med); }
.how-item h4 { font-size: 16px; margin: 14px 0 8px; }
.how-item p { font-size: 13px; color: var(--ink-60); line-height: 1.55; }

.faq { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 15px; font-weight: 700; text-align: left;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q .ic { color: var(--ink-60); transition: rotate .35s var(--ease-out), color .25s; flex: none; }
.faq-item.is-open .faq-q .ic { rotate: 45deg; color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a p { font-size: 13px; color: var(--ink-60); line-height: 1.6; padding: 0 40px 20px 0; }

/* ---------- Корзина ---------- */
.promo-strip { background: var(--surface); border-radius: var(--r-lg); padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.promo-strip .ic { width: 24px; height: 24px; color: var(--primary); transition: color var(--t-med); }
.promo-strip b { font-size: 14px; display: block; }
.promo-strip p { font-size: 12px; color: var(--ink-60); }
.promo-strip .progress { background: var(--line); width: 280px; margin-left: auto; }
.promo-strip small { display: block; text-align: center; font-size: 11px; color: var(--ink-60); margin-top: 6px; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: 24px; align-items: start; }
.cart-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 10px 26px 20px; }
.cart-row { display: grid; grid-template-columns: 112px 1fr auto auto auto 30px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); animation: panel-in .4s var(--ease-out); }
.cart-row:last-of-type { border-bottom: 0; }
.cart-img { width: 112px; height: 96px; background: var(--surface); border-radius: var(--r-sm); padding: 8px; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease-out); }
.cart-row:hover .cart-img img { transform: scale(1.08); }
.cart-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.cart-art { font-size: 11px; letter-spacing: 1px; color: var(--ink-60); margin-top: 5px; text-transform: uppercase; }
.cart-stock { font-size: 12px; margin-top: 5px; }
.cart-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.cart-sum { font-size: 15px; font-weight: 700; white-space: nowrap; min-width: 90px; }
.cart-del { color: var(--ink-40); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; transition: color .25s, background-color .25s, rotate .3s var(--ease-out); }
.cart-del:hover { color: var(--danger); background: #FBEAE8; rotate: -12deg; }
.cart-foot { display: flex; justify-content: space-between; padding: 16px 0 4px; font-size: 13px; }
.cart-foot a:first-child { color: var(--ink-60); }
.cart-foot a:first-child:hover { color: var(--danger); }

.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.import-card { border: 1.5px dashed var(--ink-40); border-radius: var(--r-lg); padding: 24px; transition: border-color .3s, background-color .3s; }
.import-card:hover { border-color: var(--primary); background: var(--primary-tint); }
.import-card h4 { font-size: 15px; margin: 10px 0 8px; display: flex; gap: 10px; align-items: center; }
.import-card h4 .ic { color: var(--primary); width: 22px; height: 22px; }
.import-card p { font-size: 12px; color: var(--ink-60); line-height: 1.55; margin-bottom: 14px; }
.import-card.solid { border-style: solid; border-color: transparent; background: var(--surface); }
.quick-row { display: flex; gap: 10px; }
.quick-row input { flex: 1; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 0 14px; font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s; }
.quick-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }

.summary-card { background: var(--ink); border-radius: var(--r-lg); padding: 28px; color: #fff; position: sticky; top: 112px; }
.summary-card h3 { font-size: 18px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: rgba(255, 255, 255, .7); }
.sum-row b { color: #fff; }
.sum-row .disc { color: var(--primary); font-weight: 700; transition: color var(--t-med); }
.sum-row .free { color: var(--success); font-weight: 700; }
.sum-hr { border-top: 1px solid rgba(255, 255, 255, .14); margin: 12px 0; }
.sum-total-label { font-size: 13px; color: rgba(255, 255, 255, .7); }
.sum-total { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 4px 0 2px; }
.sum-nds { font-size: 11px; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.sum-limit { background: rgba(29, 158, 87, .16); border-radius: var(--r-md); padding: 13px 16px; font-size: 12px; color: var(--success); line-height: 1.45; margin-bottom: 18px; }
.sum-limit b { color: #fff; }
.summary-card .note { font-size: 11px; color: rgba(255, 255, 255, .5); text-align: center; margin-top: 12px; line-height: 1.45; }

.pay-card { background: var(--surface); border-radius: var(--r-lg); padding: 26px 28px; margin-top: 20px; }
.pay-card h3 { font-size: 16px; margin-bottom: 16px; }
.pay-item { display: flex; gap: 14px; padding: 11px 0; font-size: 13px; line-height: 1.45; align-items: flex-start; }
.pay-item .ic { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 2px; transition: color var(--t-med); }
.pay-card .hr { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: 12px; color: var(--ink-60); line-height: 1.5; }

/* ---------- Оформление ---------- */
.block-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px 30px; margin-top: 18px; }
.block-card.is-current { border-color: var(--primary); transition: border-color var(--t-med); }
.block-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.block-num { font-family: var(--font-display); font-size: 18px; color: var(--primary); transition: color var(--t-med); }
.block-head h3 { font-size: 16px; flex: 1; }
.block-head .more-link { font-size: 13px; }
.block-done { display: flex; gap: 14px; align-items: flex-start; }
.block-done .check-circle { width: 28px; height: 28px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.block-done .check-circle .ic { width: 13px; height: 13px; }
.block-done p { font-size: 14px; color: var(--ink-60); line-height: 1.6; }
.block-done p b { color: var(--ink); }

.opt-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.opt-card {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; cursor: pointer; background: var(--white);
  transition: border-color .25s, background-color .3s;
}
.opt-card:hover { border-color: var(--primary); }
.opt-card.is-active { border-color: var(--primary); background: var(--primary-tint); }
.opt-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink-40); background: #fff;
  display: grid; place-items: center;
  transition: border-color .25s;
}
.opt-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); scale: 0; transition: scale .3s var(--ease-out), background-color var(--t-med); }
.opt-card.is-active .opt-radio { border-color: var(--primary); }
.opt-card.is-active .opt-radio::after { scale: 1; }
.opt-card b { font-size: 14px; display: block; }
.opt-card small { font-size: 12px; color: var(--ink-60); display: block; margin-top: 3px; }
.opt-price { font-size: 15px; font-weight: 700; }
.opt-price.free { color: var(--success); }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-grid .opt-card { grid-template-columns: 24px 1fr; }

.pay-logos { display: flex; gap: 14px; align-items: center; margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--ink-40); }
.terms { font-size: 12px; color: var(--ink-60); margin-top: 18px; }
.terms a { color: var(--primary); font-weight: 700; }
.comment-input {
  width: 100%; height: 56px; border: 0; border-radius: var(--r-md);
  background: var(--surface); padding: 0 18px; font-size: 13px; outline: none; margin-top: 16px;
  transition: box-shadow .25s;
}
.comment-input:focus { box-shadow: 0 0 0 3px var(--primary-tint); }

.checkout-layout { display: grid; grid-template-columns: 1fr 388px; gap: 28px; align-items: start; }
.os-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; position: sticky; top: 112px; }
.os-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.os-head h3 { font-size: 17px; }
.os-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; }
.os-img { width: 52px; height: 52px; background: var(--surface); border-radius: var(--r-sm); padding: 5px; }
.os-img img { width: 100%; height: 100%; object-fit: contain; }
.os-item b { font-size: 12.5px; display: block; }
.os-item small { font-size: 11px; color: var(--ink-60); }
.os-item .os-sum { font-size: 13px; font-weight: 700; white-space: nowrap; }
.os-card .sum-row { color: var(--ink-60); }
.os-card .sum-row b { color: var(--ink); }
.os-card .sum-hr { border-color: var(--line); }
.os-card .sum-total { color: var(--ink); font-size: 27px; }
.os-card .sum-nds { color: var(--ink-60); }
.os-card .note { font-size: 11px; color: var(--ink-60); text-align: center; margin-top: 12px; }

.trust-strip { background: var(--surface); margin-top: 56px; }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 20px; }
.trust-item { display: flex; gap: 16px; font-size: 13px; line-height: 1.45; align-items: flex-start; }
.trust-item .ic { width: 28px; height: 28px; color: var(--primary); flex: none; transition: color var(--t-med); }
.trust-item small { display: block; color: var(--ink-60); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .cat-grid, .prod-grid, .mini-grid, .stat-grid, .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .ben-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ben { border-right: 0; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .prod-layout, .reg-layout, .contact-grid, .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .summary-card, .os-card, .acc-side, .filters { position: static; }
  .acc-layout { grid-template-columns: 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .col-grid, .news-grid, .how-grid { grid-template-columns: 1fr; }
  .news-top { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; align-items: flex-start; }
  .subscribe-form { margin-left: 0; width: 100%; }
  .subscribe-form input { flex: 1; width: auto; }
  .hero-title { font-size: 34px; }
  .hero-img { inset: 0; opacity: .25; }
  .topbar { display: none; }
  .h1 { font-size: 27px; }
  .cart-row { grid-template-columns: 72px 1fr auto; }
  .cart-img { width: 72px; height: 64px; }
  .cart-price, .cart-del { display: none; }
  .spec-grid, .fit-grid, .seo-cols, .qa-docs, .addr-grid, .import-grid, .office-grid, .form-grid { grid-template-columns: 1fr; }
  .trust-in { grid-template-columns: 1fr; }
  .search { display: none; }
}

/* ============================================================
   КАТАЛОГ: переключение «плитка / таблица»
   Переключается классом .view-list на .cat-products — HTML общий.
   ============================================================ */
.cat-products .prod-table { display: none; }
.cat-products.view-list .prod-grid { display: none; }
.cat-products.view-list .prod-table { display: block; animation: panel-in .4s var(--ease-out); }

.prod-table-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto auto;
  gap: 20px; align-items: center;
  padding: 16px 20px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 12px; background: var(--white);
  transition: border-color .25s, box-shadow .3s, translate .25s var(--ease-out);
}
.prod-table-row:hover { border-color: var(--primary); box-shadow: 0 14px 30px -20px var(--primary-shadow); translate: 0 -2px; }
.pt-img {
  width: 96px; height: 76px; background: var(--surface); border-radius: var(--r-sm);
  display: block; padding: 6px; overflow: hidden;
}
.pt-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease-out); }
.prod-table-row:hover .pt-img img { transform: scale(1.1); }
.pt-main { min-width: 0; }
.pt-main .prod-art { margin-top: 0; }
.pt-main .prod-name { min-height: 0; margin-top: 4px; -webkit-line-clamp: 1; }
.pt-main .prod-stock { margin-top: 5px; justify-content: flex-start; gap: 12px; }
.pt-price { text-align: right; white-space: nowrap; }
.pt-price s { display: block; font-size: 12px; color: var(--ink-40); }
.pt-price strong { font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.pt-price small { display: block; font-size: 10px; color: var(--ink-40); }
.prod-table-row .qty { margin: 0; }
.prod-table-row .qty-btn { height: 44px; width: 38px; }
.prod-table-row .btn-cart { padding: 11px 18px; }
.pt-fav { color: var(--ink-40); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; transition: color .25s, background-color .25s; }
.pt-fav:hover, .pt-fav.is-fav { color: var(--primary); background: var(--primary-tint); }

@media (max-width: 1200px) {
  .prod-table-row { grid-template-columns: 72px 1fr auto; }
  .pt-img { width: 72px; height: 60px; }
  .pt-price, .prod-table-row .qty, .pt-fav { display: none; }
}

/* ============================================================
   FIX: адаптив без горизонтальной прокрутки
   ============================================================ */
html, body { overflow-x: clip; }
.container { width: 100%; }
.acc-layout > div, .layout-2col > div, .checkout-layout > div, .cart-layout > div { min-width: 0; }
.table-wrap-scroll, .acc-layout > div { overflow-x: auto; }
/* запас сверху, чтобы hover-подъём карточек не обрезался контейнером с overflow */
.acc-layout > div { padding-top: 6px; margin-top: -6px; }

@media (max-width: 1200px) {
  /* компактная шапка: иконки без подписей */
  .header-in { gap: 14px; }
  .hnav { gap: 0; }
  .hnav-item { padding: 8px 9px; }
  .hnav-item small { display: none; }
  .hnav-user { padding-left: 10px; margin-left: 2px; }
  .hnav-user small { display: none; }
  .logo-txt small { display: none; }
  .logo-txt { font-size: 18px; }
  .btn-catalog { padding: 12px 16px; }

  /* строка корзины: гибкая раскладка без выпадения */
  .cart-row { display: flex; flex-wrap: wrap; row-gap: 14px; align-items: center; }
  .cart-img { flex: none; }
  .cart-row > div:nth-child(2) { flex: 1 1 200px; min-width: 0; }
  .cart-row .qty { flex: none; margin-left: auto; }
  .cart-sum { display: block; flex: 0 0 100%; font-size: 17px; padding-left: 90px; }
  .cart-del { display: grid; flex: none; }

  /* таблицы скроллятся внутри, а не ломают страницу */
  .table { min-width: 680px; }
  .ptabs { gap: 20px; }
}

@media (max-width: 640px) {
  .h1 { font-size: 24px; }
  .steps { gap: 8px; }
  .step span { font-size: 12px; }
  .step-line { width: 24px; }
  .promo-strip .progress { width: 100%; margin-left: 0; }
  .summary-card .btn, .os-card .btn { width: 100%; }
  .buy-actions { flex-wrap: wrap; }
  .buy-actions .btn-block { flex: 1 1 100%; order: -1; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cart-sum { padding-left: 88px; }
}

@media (max-width: 640px) {
  /* шапка: только корзина и кабинет */
  .hnav-item:nth-child(1), .hnav-item:nth-child(2) { display: none; }
  .hnav-user { border-left: 0; }
  .header-in { height: 76px; gap: 12px; }
  .btn-catalog { padding: 11px 14px; font-size: 13px; }

  /* карточка товара: доставка в одну колонку */
  .dlv-strip { grid-template-columns: 1fr; gap: 12px; }
  .buy-price { font-size: 32px; }
  .prod-meta { gap: 12px; }
  .gallery-main img { padding: 20px; }
  .buy-actions .qty { flex: 1 1 auto; }
  .buy-actions .qty-val { flex: 1; }

  /* каталог: фильтры и таблица-вид */
  .toolbar-right { margin-left: 0; }
  .prod-grid { grid-template-columns: 1fr !important; }

  /* формы и блоки */
  .form-card, .form-panel { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr !important; }
  .steps { flex-wrap: wrap; row-gap: 12px; }
  .banner-dark, .subscribe, .manager-band, .bonus-band { flex-direction: column; align-items: flex-start; }
  .subscribe-form { width: 100%; }
  .subscribe-form input { width: 100%; flex: 1; }
  .bonus-progress { margin-left: 0; }
  .cart-layout, .checkout-layout { gap: 18px; }
  .summary-card, .os-card { padding: 22px 20px; }
  .opt-grid { grid-template-columns: 1fr; }
  .float-panel { right: 14px; bottom: 14px; }
}

/* таблица предложений: внутренний скролл на узких экранах */
.ptab-panel { overflow-x: auto; }
.ptab-panel .table { min-width: 760px; }

/* ---------- Range slider (рабочий) ---------- */
.range { position: relative; height: 28px; touch-action: none; user-select: none; -webkit-user-select: none; }
.range-line { top: 50%; }
.range-fill { left: 7.2%; width: 92.8%; }
.range-knob { left: 7.2%; cursor: grab; z-index: 2; }
.range-knob:last-child { left: 100%; }
.range-knob:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--primary-tint); }
.range-knob.is-drag { cursor: grabbing; scale: 1.25; z-index: 3; box-shadow: 0 6px 16px -4px var(--primary-shadow); transition: none; }
.range-knob::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
}

/* ============================================================
   СРАВНЕНИЕ ТОВАРОВ
   ============================================================ */
.cmp-wrap { overflow-x: auto; margin-top: 24px; }
.cmp-table { border-collapse: separate; border-spacing: 0; min-width: 860px; width: 100%; }
.cmp-table th, .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.cmp-table thead th { border-bottom: 0; vertical-align: top; padding-top: 0; }
.cmp-table tbody tr { transition: background-color .2s; }
.cmp-table tbody tr:hover { background: var(--surface); }
.cmp-table tbody tr.row-diff td { background: var(--primary-tint); transition: background-color var(--t-med); }
.cmp-table tbody tr.row-diff:hover td { background: var(--primary-tint); }
.cmp-head { width: 280px; min-width: 280px; position: sticky; left: 0; background: var(--white); z-index: 2; box-shadow: 8px 0 12px -10px rgba(20,23,28,.2); }
.cmp-table td.cmp-head { font-weight: 600; color: var(--ink-60); }
.cmp-prod { min-width: 240px; }
.cmp-prod-top { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cmp-img { width: 200px; height: 130px; background: var(--surface); border-radius: var(--r-sm); padding: 10px; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease-out); }
.cmp-prod:hover .cmp-img img { transform: scale(1.06); }
.cmp-art { font-size: 11px; letter-spacing: 1px; color: var(--ink-60); text-transform: uppercase; }
.cmp-name { font-size: 14px; font-weight: 700; line-height: 1.35; min-height: 38px; }
.cmp-del {
  position: absolute; top: -8px; right: -8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink-40);
  transition: color .25s, border-color .25s, rotate .3s var(--ease-out);
}
.cmp-del:hover { color: var(--danger); border-color: var(--danger); rotate: 90deg; }
.cmp-price strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.cmp-price s { font-size: 12px; color: var(--ink-40); display: block; }
.cmp-price small { display: block; font-size: 10px; color: var(--ink-40); }
.cmp-row-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cmp-diff-flag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 8px; transition: background-color var(--t-med); }

/* кнопка «к сравнению» на карточках */
.prod-compare {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 12px; color: var(--ink-60);
  transition: color .25s;
}
.prod-compare .ic { width: 14px; height: 14px; }
.prod-compare:hover { color: var(--primary); }
.prod-compare.is-added { color: var(--primary); font-weight: 700; }

/* пустое состояние */
.cmp-empty {
  text-align: center; padding: 80px 20px;
  border: 1.5px dashed var(--ink-40); border-radius: var(--r-lg); margin-top: 24px;
}
.cmp-empty .ic { width: 48px; height: 48px; color: var(--ink-40); margin-bottom: 18px; }
.cmp-empty h3 { font-size: 20px; margin-bottom: 8px; }
.cmp-empty p { font-size: 14px; color: var(--ink-60); margin-bottom: 24px; }

@media (max-width: 1200px) {
  .cmp-head { min-width: 180px; width: 180px; }
}
@media (max-width: 640px) {
  .cmp-prod { min-width: 200px; }
  .cmp-img { width: 160px; height: 100px; }
}

/* ============================================================
   АВТОРИЗАЦИЯ
   ============================================================ */
.auth-grid { display: grid; grid-template-columns: minmax(0,1fr) 480px; gap: 28px; align-items: start; margin-top: 24px; }
.auth-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 40px 44px; }
.auth-sub { font-size: 14px; color: var(--ink-60); margin-bottom: 26px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 26px; border-bottom: 1.5px solid var(--line); }
.auth-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--ink-60);
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  transition: color .25s, border-color .25s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); transition: color .25s, border-color var(--t-med); }
.auth-form[hidden] { display: none; }
.auth-form { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--ink-60); text-transform: uppercase; }
.field-input {
  height: 48px; padding: 0 16px; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-sm);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field-input:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--primary-tint); }
.field-pass { position: relative; }
.field-pass .field-input { width: 100%; padding-right: 52px; }
.pass-eye {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--ink-40);
  transition: color .25s, background-color .25s;
}
.pass-eye:hover { color: var(--primary); background: var(--primary-tint); }
.auth-alt {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px;
  border-top: 1.5px dashed var(--line); font-size: 14px; color: var(--ink-60); flex-wrap: wrap;
}
.auth-note { margin-top: 18px; font-size: 12px; color: var(--ink-40); max-width: 420px; line-height: 1.55; }
.auth-side { background: var(--ink); border-radius: var(--r-lg); color: #fff; position: sticky; top: 100px; overflow: hidden; }
.auth-side-inner { padding: 36px 38px; }
.auth-side .h3 { color: #fff; }
.auth-perks { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.auth-perks li { display: flex; gap: 14px; align-items: flex-start; }
.auth-perks .ic { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; transition: color var(--t-med); }
.auth-perks strong { display: block; font-size: 14px; }
.auth-perks span { font-size: 12px; color: #ffffff99; line-height: 1.5; }
.auth-manager {
  display: flex; align-items: center; gap: 14px;
  background: #ffffff12; border: 1px solid #ffffff1f; border-radius: var(--r-md); padding: 14px 16px;
}
.auth-manager img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.auth-manager div { flex: 1; }
.auth-manager strong { display: block; font-size: 14px; }
.auth-manager span { font-size: 12px; color: #ffffff99; }
@media (max-width: 1200px) { .auth-grid { grid-template-columns: 1fr; } .auth-side { position: static; } }
@media (max-width: 640px) { .auth-card { padding: 26px 20px; } .auth-side-inner { padding: 26px 20px; } }

/* ============================================================
   ФИЛЬТРЫ КАТАЛОГА: сворачивание на мобильных
   ============================================================ */
.filters-toggle {
  display: none; align-items: center; gap: 10px;
  width: 100%; padding: 14px 18px; margin-bottom: 16px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.filters-toggle:hover { border-color: var(--primary); }
.filters-toggle .ic { width: 16px; height: 16px; color: var(--primary); transition: color var(--t-med); }
.filters-toggle-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--primary); color: #fff; border-radius: 11px;
  font-size: 11px; font-weight: 700; transition: background-color var(--t-med);
}
.filters-toggle-chevron { margin-left: auto; rotate: 90deg; transition: rotate .3s var(--ease-out); }
.filters-toggle[aria-expanded="true"] .filters-toggle-chevron { rotate: -90deg; }

@media (max-width: 992px) {
  .filters-toggle { display: flex; }
  .filters {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease-out);
  }
  .filters > .filters-inner { overflow: hidden; min-height: 0; }
  .filters.is-open { grid-template-rows: 1fr; }
}

/* ============================================================
   ИТЕРАЦИЯ 2 (по встрече 12.09)
   ============================================================ */
.fp-admin {
  display: inline-block; margin-left: 8px; padding: 2px 7px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--ink); color: #fff; border-radius: 4px; vertical-align: 2px;
}

/* зазор у логотипа (логотип клиента может быть любого вида) */
.logo { gap: 12px; }
.logo-badge { margin-right: 2px; }

/* ---------- Служебные страницы (success / fail / 404) ---------- */
.result-page { padding: 70px 0 90px; text-align: center; }
.result-icon {
  width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color var(--t-med);
}
.result-icon .ic { width: 44px; height: 44px; color: #fff; }
.result-icon.is-ok { background: var(--success); box-shadow: 0 16px 40px -12px rgba(29,158,87,.5); }
.result-icon.is-err { background: var(--danger); box-shadow: 0 16px 40px -12px rgba(220,38,38,.5); }
.result-icon.is-404 { background: var(--ink); box-shadow: 0 16px 40px -12px rgba(20,23,28,.5); }
.result-code { font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--primary); transition: color var(--t-med); }
.result-title { font-family: var(--font-display); font-size: 34px; margin-bottom: 12px; }
.result-text { font-size: 15px; color: var(--ink-60); max-width: 520px; margin: 0 auto 32px; line-height: 1.6; }
.result-order {
  display: inline-flex; gap: 32px; padding: 20px 32px; margin-bottom: 32px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md);
}
.result-order div { text-align: left; }
.result-order span { display: block; font-size: 11px; color: var(--ink-40); text-transform: uppercase; letter-spacing: .5px; }
.result-order strong { font-size: 17px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result-steps { max-width: 720px; margin: 56px auto 0; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result-step { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.result-step b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--primary); margin-bottom: 8px; transition: color var(--t-med); }
.result-step p { font-size: 13px; color: var(--ink-60); line-height: 1.55; }
@media (max-width: 768px) { .result-steps { grid-template-columns: 1fr; } .result-code { font-size: 64px; } }

/* ---------- Текстовые страницы (политика, оферта) ---------- */
.text-page { max-width: 820px; }
.text-page h2 { font-family: var(--font-display); font-size: 22px; margin: 36px 0 14px; }
.text-page p, .text-page li { font-size: 14px; line-height: 1.75; color: var(--ink-60); margin-bottom: 10px; }
.text-page ul { padding-left: 22px; }
.text-page .upd { font-size: 12px; color: var(--ink-40); margin-bottom: 28px; }

/* ---------- Избранное ---------- */
.fav-note { font-size: 13px; color: var(--ink-60); margin-top: 6px; }

/* ---------- Форма обратной связи (VIN) ---------- */
.vin-form-card { background: var(--ink); border-radius: var(--r-lg); padding: 44px 48px; color: #fff; }
.vin-form-card .h3 { color: #fff; margin-bottom: 8px; }
.vin-form-card > p { font-size: 13px; color: #ffffff99; margin-bottom: 26px; }
.vin-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; }
.vin-form .field-input { background: #ffffff12; border-color: #ffffff26; color: #fff; }
.vin-form .field-input::placeholder { color: #ffffff66; }
.vin-form .field-input:focus { border-color: var(--primary); background: #ffffff1a; }
@media (max-width: 1100px) { .vin-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .vin-form { grid-template-columns: 1fr; } .vin-form-card { padding: 28px 22px; } }

/* ---------- Ошибки форм (JS-валидация + ошибки бэка) ---------- */
.field-input.is-error { border-color: var(--danger) !important; background: #fff; box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.field-err { display: none; font-size: 12px; color: var(--danger); margin-top: 6px; }
.field-err.is-show { display: block; }
.form-alert {
  display: none; align-items: flex-start; gap: 10px;
  padding: 14px 16px; margin-bottom: 18px;
  background: rgba(220,38,38,.08); border: 1.5px solid rgba(220,38,38,.35);
  border-radius: var(--r-sm); font-size: 13px; color: var(--danger);
}
.form-alert.is-show { display: flex; }
.form-alert .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Регистрация (упрощённая, итерация 2) ---------- */
.reg-simple { display: grid; grid-template-columns: minmax(0,1fr) 440px; gap: 28px; align-items: start; margin-top: 8px; }
.reg-simple .form-card { max-width: none; }
@media (max-width: 1100px) { .reg-simple { grid-template-columns: 1fr; } }

/* ---------- Авторизация по центру (итерация 2) ---------- */
.auth-center { display: flex; justify-content: center; padding: 24px 0 40px; }
.auth-center .auth-card { width: min(520px, 100%); }
.auth-center .auth-form { max-width: none; }
.auth-sent { padding: 12px 0 4px; }

/* ЛК: две стат-карточки (итерация 2) */
.stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .stat-grid-2 { grid-template-columns: 1fr; } }

/* Документы товара в две колонки на широком экране (итерация 2) */
.doc-card-2col { max-width: none; }
@media (min-width: 992px) {
  .doc-card-2col { columns: 2; column-gap: 40px; }
  .doc-card-2col .doc-item { break-inside: avoid; }
}
/* VIN-форма: alert на всю ширину */
.vin-form .form-alert { grid-column: 1 / -1; margin-bottom: 0; }

/* ---------- Подразделы каталога: карусель-полоса (итерация 2) ---------- */
.subsec-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 6px;
  scrollbar-width: thin;
}
.subsec-card {
  flex: 0 0 auto; min-width: 180px; padding: 14px 18px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.subsec-card b { font-size: 13px; color: var(--ink); }
.subsec-card span { font-size: 11px; color: var(--ink-40); }
.subsec-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--primary-shadow); }
.subsec-card.is-active { border-color: var(--primary); background: var(--primary-tint); }
.subsec-card.is-active b { color: var(--primary); }
