/* ============================================================
   VZOR — база: токены, типографика, шапка, шторки, карточки
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #f3f4f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #eef0f5;
  --ink: #0c0f16;
  --ink-2: #3a4150;
  --muted: #6d7482;
  --line: #e4e7ee;
  --line-strong: #d3d8e2;
  --accent: #3557f5;
  --accent-2: #7a5cff;
  --accent-soft: #e9edff;
  --coral: #ff5a3c;
  --coral-soft: #ffece7;
  --mint: #0f9d7a;
  --mint-soft: #d8f6ec;
  --amber: #f5a623;
  --lens-a: #9fd8ff;
  --lens-b: #3557f5;
  --shadow-sm: 0 1px 2px rgba(12, 15, 22, .05), 0 2px 8px rgba(12, 15, 22, .04);
  --shadow-md: 0 8px 24px rgba(12, 15, 22, .08), 0 2px 6px rgba(12, 15, 22, .04);
  --shadow-lg: 0 24px 60px rgba(12, 15, 22, .14), 0 8px 20px rgba(12, 15, 22, .06);
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --hdr-h: 74px;
  --ff: "Segoe UI Variable Display", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1300px;
}

[data-theme="dark"] {
  --bg: #08090d;
  --bg-2: #0e1016;
  --surface: #12141b;
  --surface-2: #171a23;
  --surface-3: #1e222d;
  --ink: #f2f4f9;
  --ink-2: #c8cdd8;
  --muted: #8c94a4;
  --line: #232733;
  --line-strong: #333949;
  --accent: #7690ff;
  --accent-2: #a08cff;
  --accent-soft: #1b2140;
  --coral: #ff7a60;
  --coral-soft: #331b17;
  --mint: #4bd6ae;
  --mint-soft: #123129;
  --lens-a: #3557f5;
  --lens-b: #b9d4ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
s { text-decoration: line-through; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: fixed; top: -100px; left: 16px; z-index: 300; background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; transition: top .2s;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--surface { background: var(--bg-2); }

/* ---------- типографика ---------- */
.h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; }
.h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 720; }
.h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; font-weight: 700; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head__txt { max-width: 640px; }
.sec-head .h2 { margin-top: 10px; }
.sec-head .lead { margin-top: 10px; }
.sec-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding-bottom: 4px; border-bottom: 1.5px solid var(--line-strong); transition: gap .25s, border-color .25s;
}
.sec-link:hover { gap: 14px; border-color: var(--ink); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
  user-select: none;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn--accent:hover { box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--soft { background: var(--surface-2); color: var(--ink); }
.btn--soft:hover { background: var(--surface-3); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .2s, color .2s;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn--account { width: auto; gap: 8px; padding: 0 12px; border-radius: 999px; }
.iconbtn__label { font-size: 14px; font-weight: 600; }

.badge-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid var(--bg); box-sizing: content-box;
}
.iconbtn--account .badge-count { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; transition: .2s;
}
button.chip:hover { border-color: var(--ink); }
.chip--mint { background: var(--mint-soft); color: var(--mint); border-color: transparent; font-weight: 700; }
.chip--sale { background: var(--coral-soft); color: var(--coral); border-color: transparent; font-weight: 700; }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.badge--sale { background: var(--coral); color: #fff; }
.badge--new { background: var(--ink); color: var(--bg); }
.badge--hit { background: rgba(255, 255, 255, .82); color: var(--ink); border: 1px solid rgba(12, 15, 22, .08); }

.stars { display: inline-flex; gap: 1px; }
.star svg { fill: none; stroke: #c9ced8; stroke-width: 1.6; }
.star.is-on svg { fill: var(--amber); stroke: var(--amber); }

/* ---------- шапка ---------- */
.announce { background: #0a0c12; color: #c8ccd6; font-size: 12.5px; }
.announce__row { display: flex; align-items: center; gap: 22px; height: 38px; }
.announce__item { display: inline-flex; align-items: center; gap: 7px; }
.announce__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .16); }
.announce__phone { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.announce__phone:hover { color: #9db0ff; }

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.hdr.is-scrolled, .hdr.mega-active { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(12, 15, 22, .05); }
.hdr__row { display: flex; align-items: center; gap: 14px; height: var(--hdr-h); }
.hdr__burger { display: none; margin-left: -8px; }

.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__mark {
  width: 34px; height: 34px; flex: none;
  --logo-bg: var(--ink); --logo-fg: var(--bg-2); --logo-dot: #2fd8b0;
}
.logo__txt { font-size: 27px; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.logo__txt em { color: var(--accent); font-style: normal; }
.logo--ftr { color: #fff; }
.logo--ftr .logo__mark { --logo-bg: #ffffff; --logo-fg: #0a0c12; --logo-dot: #3557f5; }
.logo--sm .logo__txt { font-size: 22px; }
.logo--sm .logo__mark { width: 28px; height: 28px; }

.btn--catalog {
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 26%, transparent);
}
.btn--catalog:hover { background: var(--accent-2); }

.hdr__search {
  flex: 1 1 auto; max-width: 400px; min-width: 180px;
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px 0 14px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.hdr__search:focus-within { background: var(--surface); border-color: var(--line-strong); }
.hdr__search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 14.5px;
}
.hdr__search input::placeholder { color: var(--muted); }
.hdr__search-btn { display: inline-flex; color: var(--muted); }
.hdr__kbd {
  font-size: 10.5px; font-family: inherit; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap;
}

.hdr__nav { display: flex; gap: 18px; margin-left: 4px; }
.hdr__nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; }
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--accent); transition: width .25s;
}
.hdr__nav a:hover { color: var(--ink); }
.hdr__nav a:hover::after { width: 100%; }

.hdr__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.cartbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; margin-left: 6px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.cartbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cartbtn .badge-count { top: -3px; right: -2px; border-color: var(--bg-2); background: var(--coral); }

/* мега-меню */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(12, 15, 22, .14);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 36px 24px 40px; }
.mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.mega__head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.mega__head:hover { color: var(--accent); }
.mega__icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, hsl(var(--h, 210) 85% 55%) 12%, var(--surface));
  color: color-mix(in srgb, hsl(var(--h, 210) 85% 45%) 90%, var(--ink));
}
.mega__col ul { display: flex; flex-direction: column; gap: 6px; padding-left: 48px; }
.mega__col li a { font-size: 14px; color: var(--muted); }
.mega__col li a:hover { color: var(--ink); }
.mega__promo {
  border-radius: var(--r-lg); padding: 24px; color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(122, 92, 255, .9), transparent 55%),
    linear-gradient(160deg, #13204f, #0a0d1a 70%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.mega__promo h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; margin-top: 4px; }
.mega__promo p { font-size: 13.5px; color: rgba(255, 255, 255, .68); line-height: 1.5; }
.mega__promo .btn { margin-top: auto; background: #fff; color: #0a0d1a; }

/* ---------- шторки ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(6, 8, 14, .44);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.scrim.is-on { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(440px, 100%); height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  transform: translateX(103%); transition: transform .45s var(--ease);
  box-shadow: -20px 0 60px rgba(6, 8, 14, .18);
}
.drawer.is-open { transform: none; }
.drawer--menu { left: 0; right: auto; width: min(420px, 92vw); transform: translateX(-103%); box-shadow: 20px 0 60px rgba(6, 8, 14, .18); }
.drawer--menu.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer__head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.drawer__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.drawer__foot { flex: none; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); }

.cline { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline__img {
  width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; padding: 4px;
  background: color-mix(in srgb, hsl(var(--h, 210) 85% 55%) 9%, var(--surface-2));
}
.cline__img svg { width: 100%; height: 100%; }
.cline__brand { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cline__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; margin: 2px 0 4px; padding-right: 16px; }
.cline__name:hover { color: var(--accent); }
.cline__var { display: inline-block; font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cline__price { font-weight: 700; font-size: 14px; }
.cline__rm { position: absolute; top: 14px; right: 0; color: var(--muted); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cline__rm:hover { background: var(--coral-soft); color: var(--coral); }

.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px; height: 38px; padding: 0 4px;
}
.stepper button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: var(--surface-2); color: var(--ink); }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.stepper--sm { height: 32px; }
.stepper--sm button { width: 26px; height: 26px; }
.stepper--sm span { font-size: 13px; }

.ship { margin-bottom: 14px; }
.ship__txt { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.ship__txt b { color: var(--ink); }
.ship__bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ship__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width .5s var(--ease); }
.ship.is-done { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mint); font-weight: 600; padding: 8px 12px; background: var(--mint-soft); border-radius: 10px; }

.drawer__sum { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.drawer__sum--total { font-size: 18px; color: var(--ink); font-weight: 700; padding: 12px 0; margin-top: 4px; border-top: 1px dashed var(--line-strong); }
.drawer__sum--sale b { color: var(--coral); }
.drawer__foot .btn { margin-top: 10px; }

/* мобильное меню */
.mmenu { padding: 6px 0 20px; }
.mmenu__group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.mmenu__head { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.mmenu__head svg:last-child { margin-left: auto; color: var(--muted); transform: rotate(-90deg); }
.mmenu__subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px 29px; }
.mmenu__subs a { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 5px 10px; }
.mmenu__links { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.mmenu__links a { padding: 12px 0; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.mmenu__contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.mmenu__contacts a { color: var(--ink); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.mmenu__contacts span { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- поиск ---------- */
.searchpane {
  position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s var(--ease);
}
.searchpane.is-open { opacity: 1; visibility: visible; transform: none; }
.searchpane__top { display: flex; align-items: center; gap: 16px; padding: 26px 24px; border-bottom: 1px solid var(--line); }
.searchpane__form { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.searchpane__form svg { color: var(--muted); flex: none; }
.searchpane__form input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: clamp(20px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; height: 54px;
}
.searchpane__form input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.searchpane__body { padding: 28px 24px 60px; overflow-y: auto; max-height: calc(100dvh - 120px); }
.sp__label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.sp__hint { margin-bottom: 28px; }
.sp__hint .chip { margin: 0 6px 6px 0; background: var(--surface); }
.sp__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.sp__cat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--surface); }
.sp__cat:hover { border-color: var(--ink); }
.sp__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.sp__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; transition: background .2s; }
.sp__item:hover { background: var(--surface-2); }
.sp__img { width: 56px; height: 56px; flex: none; border-radius: 12px; display: grid; place-items: center; padding: 4px; background: color-mix(in srgb, hsl(var(--h, 210) 85% 55%) 9%, var(--surface-2)); }
.sp__img svg { width: 100%; height: 100%; }
.sp__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp__info b { font-size: 15px; font-weight: 600; }
.sp__info i { font-size: 12.5px; color: var(--muted); font-style: normal; }
.sp__price { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.sp__all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent); margin-top: 14px; }
.sp__none { color: var(--muted); font-size: 15px; line-height: 1.6; padding: 20px 0; }

/* ---------- карточки товаров ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__media {
  position: relative; aspect-ratio: 1 / 1; padding: 8px;
  background:
    radial-gradient(110% 90% at 30% 0%, color-mix(in srgb, hsl(var(--h, 210) 90% 55%) 15%, var(--surface-2)), transparent 70%),
    var(--surface-2);
  overflow: hidden;
}
.card__link { display: block; width: 100%; height: 100%; }
.card__link svg { width: 100%; height: 100%; transition: transform .55s var(--ease); }
.card:hover .card__link svg { transform: scale(1.06) rotate(-1deg); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card__fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: .2s;
}
.card__fav:hover { color: var(--coral); transform: scale(1.08); }
.card__fav.is-on { color: var(--coral); background: var(--coral-soft); border-color: transparent; }
.card__fav.is-on svg { fill: currentColor; }
.card__fav.is-on { animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.card__swatch { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 4px; }
.card__swatch .dot { width: 9px; height: 9px; border-radius: 50%; background: #cfd4dd; border: 1px solid rgba(255, 255, 255, .7); }
.card__swatch .dot:nth-child(2) { background: #9aa4b6; }
.card__swatch .dot:nth-child(3) { background: #6a7488; }
.card__swatch .dot:nth-child(4) { background: #3b4252; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__brand { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__brand:hover { color: var(--accent); }
.card__name { font-size: 15px; font-weight: 650; line-height: 1.32; letter-spacing: -.01em; margin: 3px 0 6px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__name:hover { color: var(--accent); }
.card__meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.card__reviews { font-size: 11.5px; color: var(--muted); }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.price { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.price-old { font-size: 12px; color: var(--muted); }
.card__add {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: .22s var(--ease);
}
.card__add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(90deg); }
.card__add.is-added { background: var(--mint); border-color: var(--mint); color: #fff; }

/* ---------- уведомления ---------- */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: min(380px, calc(100vw - 44px));
  opacity: 0; transform: translateY(16px) scale(.97); transition: .28s var(--ease); cursor: pointer;
}
.toast.is-in { opacity: 1; transform: none; }
.toast__ic { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #04120d; align-items: center; justify-content: center; flex: none; }
.toast--error { background: #2a1210; color: #ffd9d2; }
.toast--error .toast__ic { background: var(--coral); color: #fff; }
.toast--muted .toast__ic { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.toast__link { margin-left: 6px; color: #9db0ff; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* ---------- подвал ---------- */
.ftr { background: #0a0c12; color: #b6bcc9; padding: 68px 0 26px; margin-top: 0; }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr__brand p { font-size: 14px; line-height: 1.65; color: #8e95a4; max-width: 320px; margin: 16px 0 20px; }
.ftr__social { display: flex; gap: 8px; }
.ftr__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; color: #d5d9e2; transition: .2s; }
.ftr__social a:hover { background: #fff; color: #0a0c12; border-color: #fff; }
.ftr__col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.ftr__col ul { display: flex; flex-direction: column; gap: 11px; }
.ftr__col a { font-size: 14px; color: #9aa1b0; }
.ftr__col a:hover { color: #fff; }
.ftr__contacts {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center;
  margin-top: 46px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; color: #9aa1b0;
}
.ftr__contacts a, .ftr__contacts span { display: inline-flex; align-items: center; gap: 9px; }
.ftr__contacts a { color: #fff; font-weight: 600; }
.ftr__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: 12.5px; color: #767e8f; flex-wrap: wrap; }
.ftr__pay { display: flex; gap: 8px; }
.pay { border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px; padding: 4px 9px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #c4cad6; }

/* ---------- прочее ---------- */
.empty { text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty__art { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 8px; }
.empty h2 { font-size: 26px; letter-spacing: -.03em; }
.empty p { color: var(--muted); max-width: 400px; line-height: 1.6; margin-bottom: 10px; }
.empty--drawer { padding: 50px 10px; }
.empty--drawer h3 { font-size: 19px; }
.empty--drawer p { font-size: 14px; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink-2); }
.crumbs__sep { opacity: .45; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination button {
  min-width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
  background: var(--surface); transition: .2s;
}
.pagination button:hover { border-color: var(--ink); }
.pagination button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination button[disabled] { opacity: .4; pointer-events: none; }

/* ---------- адаптив шапки/базы ---------- */
@media (max-width: 1240px) {
  .hdr__nav { display: none; }
  .hdr__search { max-width: 520px; }
}
@media (max-width: 1024px) {
  :root { --hdr-h: 66px; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn--catalog span { display: none; }
  .btn--catalog { width: 44px; padding: 0; justify-content: center; }
  .hdr__kbd { display: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ftr__brand { grid-column: 1 / -1; }
  .mega__inner { grid-template-columns: 1fr; }
  .mega__promo { display: none; }
}
@media (max-width: 860px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .hdr__burger { display: inline-flex; }
  .cartbtn__label { display: none; }
  .cartbtn { width: 44px; padding: 0; justify-content: center; }
  .iconbtn__label { display: none; }
  .iconbtn--account { width: 44px; padding: 0; justify-content: center; }
  .hdr__search { display: none; }
  .hdr__row { gap: 6px; }
  .logo__txt { font-size: 23px; }
  .logo__mark { width: 29px; height: 29px; }
  .announce__item--hide-sm, .announce__sep { display: none; }
  .announce__row { justify-content: space-between; gap: 10px; }
  .announce { font-size: 11.5px; }
  .announce__phone { margin-left: 0; }
  .mega { display: none; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card__body { padding: 12px 12px 14px; }
  .card__name { font-size: 14px; min-height: 37px; }
  .price { font-size: 15.5px; }
  .card__add { width: 38px; height: 38px; }
  .card__fav { width: 34px; height: 34px; top: 8px; right: 8px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
  .drawer { width: 100%; }
  .searchpane__top { padding: 16px 18px; }
  .searchpane__top .btn { display: none; }
  .searchpane__body { padding: 20px 18px 40px; }
}
@media (max-width: 520px) {
  .sec-head { margin-bottom: 22px; }
  .h1 { letter-spacing: -.035em; }
  .iconbtn--theme { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- мобильная нижняя навигация ---------- */
.tabbar { display: none; }

@media (max-width: 860px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(12, 15, 22, .07);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 3px 0; border-radius: 12px; background: none; border: 0;
    color: var(--muted); font-size: 10.5px; font-weight: 600; line-height: 1.1;
    transition: color .2s;
  }
  .tabbar__ico {
    position: relative; display: grid; place-items: center;
    width: 46px; height: 28px; border-radius: 9px;
    transition: background .2s, color .2s;
  }
  .tabbar__ico svg { width: 22px; height: 22px; }
  .tabbar__item.is-active { color: var(--ink); }
  .tabbar__item.is-active .tabbar__ico { background: var(--accent-soft); color: var(--accent); }
  .tabbar__item--menu.is-active .tabbar__ico { background: var(--ink); color: var(--bg); }
  .tabbar .badge-count { top: -5px; right: 2px; border-color: var(--surface); }
  .hdr__catalog, .hdr__fav, .hdr__cart { display: none; }
  .ftr { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .drawer__foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

.hdr__search-m { display: none; }
@media (max-width: 860px) {
  .hdr__search-m { display: inline-flex; }
}

@media (max-width: 860px) {
  .tabbar { transition: opacity .2s, transform .25s var(--ease); }
  html.is-locked .tabbar { opacity: 0; transform: translateY(10px); pointer-events: none; }
}

/* ---------- живой поиск и SEO-блоки ---------- */
.hdr__search { text-align: left; cursor: text; color: var(--muted); }
.hdr__search:hover { background: var(--surface); border-color: var(--line); }
.hdr__search-ph { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
mark { background: rgba(53, 87, 245, .14); color: inherit; border-radius: 3px; padding: 0 1px; }
.sp__item.is-active, .sp__cat.is-active, .sp__all.is-active { background: var(--accent-soft); border-color: rgba(53, 87, 245, .28); }

/* ---------- семантика и доступность ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card__name a { color: inherit; text-decoration: none; }
.card__name:hover { color: var(--accent); }
