/* ============================================================
   VOLTA — магазин электроники. Демо-витрина студии OLYMPOS.
   Раскладка первого экрана повторяет геометрию референса:
   плавающая шапка (тёмная полоса-пилюля 28px + белая панель 94px
   с подворотом -14px), full-bleed баннер 3/1 со скруглением 20px.
   ============================================================ */

/* ---------- 1. токены ---------- */
:root {
  --edge: 12px;            /* внешний отступ плавающих карточек */
  --pad: 16px;             /* боковое поле контента */
  --head-h: 64px;

  --ink: #14161c;
  --ink-2: #6b7180;
  --ink-3: #9aa0ae;
  --line: #e7e9ef;
  --soft: #f4f5f7;
  --soft-2: #eceef3;
  --white: #fff;

  --blue: #2f4bff;
  --blue-2: #1c30cf;
  --blue-soft: #eaeeff;
  --red: #e0322b;

  --r-s: 12px;
  --r-m: 16px;
  --r-l: 20px;
  --pill: 60px;

  --sh: 0 0 16px rgba(20, 22, 28, .06);
  --sh-2: 0 6px 28px rgba(20, 22, 28, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--head-h);
  font-family: Manrope, Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.num, .price, .price-old, .cnt, .spec-tbl td, .sum {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; padding-inline: var(--pad); }

/* full-bleed до внешнего отступа --edge (как баннер референса) */
.bleed { width: 100%; }

/* ---------- 3. шапка ---------- */
.head {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: var(--head-h);
  padding: 0;
}

.head-in { width: 100%; }

/* тёмная служебная полоса (лежит поверх белой панели — та подворачивается под неё) */
.topline {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  height: 28px;
  padding-inline: var(--pad);
  color: #fff;
  background: var(--ink);
  border-radius: var(--pill);
}
.topline nav ul { display: flex; align-items: center; }
.topline li:not(:last-child) { margin-right: 28px; }
.topline a {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, .82);
  transition: color .25s var(--ease);
}
.topline a:hover { color: #fff; }
.topline .tl-phone {
  margin-left: auto;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
}

/* белая панель */
.headbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 64px;
  padding-inline: var(--pad);
  background: var(--white);
  border-radius: 0 0 var(--r-m) var(--r-m);
  box-shadow: var(--sh);
}

/* логотип + подпись */
.logo { display: inline-flex; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.logo-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .82;
  color: var(--ink);
}
.logo-mark i { font-style: normal; color: var(--blue); }
.logo-sub {
  display: none;
  width: 82px;
  padding-bottom: 2px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.06;
  color: var(--ink-2);
}

/* кнопка Каталог */
.btn-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: var(--pill);
  transition: background .25s var(--ease);
  flex-shrink: 0;
}
.btn-cat:hover { background: var(--blue-2); }
.btn-cat .bars { display: grid; gap: 3px; width: 16px; }
.btn-cat .bars span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.btn-cat .bars span:nth-child(2) { width: 11px; }

/* короткие ссылки категорий */
.head-nav { display: none; }
.head-nav ul { display: flex; align-items: center; gap: 22px; }
.head-nav a {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--blue); }

/* поиск */
.search {
  display: none;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 460px;
  margin-left: auto;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  font-size: 15px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: var(--pill);
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { background: #fff; border-color: var(--blue); }
.search .ico-search {
  position: absolute;
  top: 50%; left: 16px;
  transform: translateY(-50%);
  color: var(--ink-2);
  pointer-events: none;
}
.search .go {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  color: var(--ink-2);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.search .go:hover { background: var(--blue); color: #fff; }

/* иконки справа */
.head-act { display: flex; align-items: center; margin-left: auto; }
.head-act > * { position: relative; display: flex; align-items: center; padding: 6px; color: var(--ink); transition: color .25s var(--ease); }
.head-act > *:not(:first-child) { margin-left: 6px; }
.head-act > *:hover { color: var(--blue); }
.head-act .hide-s { display: none; }
.cnt {
  position: absolute;
  top: -2px; right: -4px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
}

/* бургер (мобильный) */
.burger { display: grid; gap: 4px; width: 22px; padding: 6px 0; margin-left: 4px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mnav {
  position: fixed;
  top: var(--head-h); left: 0;
  z-index: 110;
  width: 100%;
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto;
  padding: 20px var(--pad) 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
body.nav-open .mnav { opacity: 1; visibility: visible; transform: none; }
.mnav .m-search { margin-bottom: 18px; }
.mnav .m-search input {
  width: 100%; height: 46px; padding: 0 18px;
  background: var(--soft); border: 0; border-radius: var(--pill); outline: none;
}
.mnav h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.mnav li a { display: block; padding: 9px 0; font-size: 17px; font-weight: 600; }
.mnav .m-extra { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.mnav .m-extra a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.mnav .m-phone { display: inline-block; margin-top: 12px; font-size: 18px; font-weight: 700; }

/* ---------- 4. hero ---------- */
/* padding-block, а не shorthand: shorthand обнулил бы padding-inline у .wrap */
.hero { padding-block: 12px 4px; }
.hero-box { position: relative; }

.hero-view { overflow: hidden; border-radius: var(--r-m); }
.hero-track {
  display: flex;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-rows: auto auto;
  background: var(--slide-bg, var(--soft));
}
.slide-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--slide-bg, var(--soft)) 0%, rgba(255, 255, 255, 0) 38%);
}
.slide-body {
  position: relative;
  z-index: 1;
  padding: 4px 22px 30px;
}
.slide-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
}
.slide-title {
  font-size: clamp(24px, 6.4vw, 34px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 15ch;
}
.slide-sub {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 40ch;
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-top: 20px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: var(--pill);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.slide-cta:hover { background: var(--blue); }
.slide-cta svg { transition: transform .35s var(--ease); }
.slide-cta:hover svg { transform: translateX(4px); }

/* стрелки */
.hero-arw {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: var(--sh);
  transform: translateY(-50%);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.hero-arw:hover { background: var(--blue); color: #fff; }
.hero-arw.prev { left: 14px; }
.hero-arw.next { right: 14px; }

/* точки */
.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin-top: 10px;
}
.hero-dots button {
  width: 24px; height: 2px;
  padding: 0;
  background: #d8dbe3;
  border-radius: 2px;
  transition: background .25s var(--ease);
}
.hero-dots button[aria-current="true"] { background: var(--blue); }

/* ---------- 5. секции ---------- */
.sec { padding-block: 40px 4px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.sec-title {
  font-size: clamp(22px, 4.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.sec-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.sec-link:hover { opacity: .7; }

/* ---------- 6. плитки категорий ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 12px 18px;
  background: #fff;
  border-radius: var(--r-s);
  box-shadow: var(--sh);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat-tile img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-s);
  background: var(--soft);
}
.cat-tile b { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.cat-tile span { font-size: 12px; color: var(--ink-3); }

/* ---------- 7. карточка товара ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.rail-arw {
  position: absolute;
  top: 38%;
  z-index: 4;
  display: none;
  place-items: center;
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.rail-arw:hover { background: var(--blue); color: #fff; }
.rail-arw.prev { left: -14px; }
.rail-arw.next { right: -14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 14px;
  background: #fff;
  border-radius: var(--r-s);
  box-shadow: var(--sh);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.card-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

.flags { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.flag {
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--ink);
  border-radius: var(--pill);
}
.flag.sale { background: var(--red); }
.flag.new { background: var(--blue); }

.fav {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .86);
  border-radius: 50%;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.fav:hover, .fav.on { color: var(--red); background: #fff; }
.fav.on svg { fill: currentColor; }

.card-cat { margin-top: 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.card-name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-short {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.card-price { display: flex; flex-direction: column; }
.price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.price-old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.card-add {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px; height: 36px;
  margin-left: auto;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.card-add:hover { background: var(--blue-2); }
.card-add:active { transform: scale(.92); }
.card-add.done { background: #16a34a; }

/* ---------- 8. преимущества ---------- */
.perks { display: grid; grid-template-columns: 1fr; gap: 10px; }
.perk {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--soft);
  border-radius: var(--r-m);
}
.perk-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  color: var(--blue);
  background: #fff;
  border-radius: 12px;
}
.perk b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.perk p { margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* ---------- 9. подборки ---------- */
.promos { display: grid; grid-template-columns: 1fr; gap: 10px; }
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--soft);
  transition: transform .25s var(--ease);
}
.promo:hover { transform: translateY(-3px); }
.promo img {
  position: absolute;
  inset: 0;
  z-index: 0;                 /* строго под затемнением, .promo > * подняло бы картинку наверх */
  width: 100%; height: 100%;
  object-fit: cover;
}
.promo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 18, .9) 0%, rgba(10, 12, 18, .74) 34%, rgba(10, 12, 18, .3) 72%, rgba(10, 12, 18, .18) 100%);
}
.promo > * { position: relative; z-index: 1; color: #fff; }
.promo b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.promo p { margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .82); max-width: 34ch; }
.promo .pl {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; font-size: 13.5px; font-weight: 700;
}
.promo .pl svg { transition: transform .3s var(--ease); }
.promo:hover .pl svg { transform: translateX(4px); }

/* ---------- 10. бренды + рассылка ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brands span {
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-2);
  background: var(--soft);
  border-radius: var(--pill);
}

.subscribe {
  display: grid;
  gap: 18px;
  padding: 28px 22px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--r-l);
}
.subscribe h3 { font-size: clamp(20px, 4.4vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.subscribe p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .62); max-width: 44ch; }
.sub-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-form input {
  flex: 1 1 200px;
  height: 48px;
  padding: 0 20px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--pill);
  outline: none;
}
.sub-form input::placeholder { color: rgba(255, 255, 255, .45); }
.sub-form input:focus { border-color: var(--blue); }
.sub-form button {
  height: 48px;
  padding: 0 26px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: var(--pill);
  transition: background .25s var(--ease);
}
.sub-form button:hover { background: var(--blue-2); }
.sub-note { font-size: 12px; color: rgba(255, 255, 255, .4); }

/* ---------- 11. футер ---------- */
.foot { margin-top: 48px; padding: 36px 0 26px; background: var(--soft); }
.foot-top { display: grid; gap: 26px; }
.foot .logo-mark { font-size: 24px; }
.foot-about { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.foot h4 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.foot li a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); transition: color .25s var(--ease); }
.foot li a:hover { color: var(--blue); }
.foot-phone { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.foot-mail { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.foot-bot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.foot-bot a { color: var(--blue); font-weight: 600; }
.foot-demo { margin-bottom: 8px; }

/* ---------- 12. корзина-drawer ---------- */
.veil {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 16, 22, .42);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.drawer {
  position: fixed;
  top: 0; right: 0; z-index: 201;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100dvh;
  background: #fff;
  transform: translateX(102%);
  transition: transform .35s var(--ease);
}
body.cart-open .veil { opacity: 1; visibility: visible; }
body.cart-open .drawer { transform: none; }
.dr-head {
  display: flex; align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.dr-head b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.dr-close { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); transition: background .25s var(--ease); }
.dr-close:hover { background: var(--soft); }
.dr-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.dr-empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
.dr-empty b { display: block; margin-bottom: 8px; font-size: 17px; color: var(--ink); }
.d-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.d-item img { width: 62px; height: 78px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.d-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.d-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; background: var(--soft); border-radius: var(--pill); }
.d-qty button { width: 28px; height: 28px; border-radius: 50%; font-size: 15px; line-height: 1; color: var(--ink-2); }
.d-qty button:hover { color: var(--blue); }
.d-qty b { min-width: 20px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.d-right { text-align: right; }
.d-price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-del { margin-top: 8px; font-size: 12px; color: var(--ink-3); transition: color .25s var(--ease); }
.d-del:hover { color: var(--red); }
.dr-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.dr-total { display: flex; align-items: baseline; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.dr-total .sum { margin-left: auto; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: var(--pill);
  transition: background .25s var(--ease);
}
.btn:hover { background: var(--blue-2); }
.btn.wide { width: 100%; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--blue); }
.btn.ghost { color: var(--ink); background: var(--soft); }
.btn.ghost:hover { background: var(--soft-2); }

/* ---------- 13. каталог ---------- */
.page-head { padding-block: 20px 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink-3); }
.page-title { margin-top: 10px; font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.page-sub { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 56ch; }

.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }

.filters {
  position: relative;
  padding: 18px;
  background: var(--soft);
  border-radius: var(--r-m);
  align-self: start;
}
.fgroup + .fgroup { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.fgroup h4 { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.chk { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk .box {
  display: grid; place-items: center;
  width: 19px; height: 19px;
  background: #fff;
  border: 1.5px solid #d3d7e0;
  border-radius: 6px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.chk .box svg { opacity: 0; transition: opacity .15s; }
.chk input:checked + .box { background: var(--blue); border-color: var(--blue); }
.chk input:checked + .box svg { opacity: 1; }
.chk .n { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chk:hover .box { border-color: var(--blue); }

.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input {
  width: 100%; min-width: 0; height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.price-row input:focus { border-color: var(--blue); }
.price-row s { color: var(--ink-3); text-decoration: none; }
.range { width: 100%; margin-top: 14px; accent-color: var(--blue); }

.f-reset { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.f-reset:hover { opacity: .7; }

.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-found { order: 3; width: 100%; }
.cat-found { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sort-wrap { max-width: 100%; }
.sort-wrap { margin-left: auto; }
.sort-wrap select {
  height: 42px;
  padding: 0 34px 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2314161c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 0;
  border-radius: var(--pill);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.f-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  font-size: 13.5px; font-weight: 700;
  background: var(--soft);
  border-radius: var(--pill);
}
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.empty b { display: block; margin-bottom: 8px; font-size: 19px; color: var(--ink); }

/* ---------- 14. карточка товара (страница) ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 16px; }
.pd-gal { display: grid; gap: 10px; }
.pd-main {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-radius: var(--r-m);
}
.pd-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumbs button {
  width: 68px;
  overflow: hidden;
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color .2s var(--ease);
}
.pd-thumbs button[aria-current="true"] { border-color: var(--blue); }
.pd-thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pd-cat { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.pd-name { margin-top: 6px; font-size: clamp(24px, 5.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pd-short { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.pd-priced { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.pd-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-old { font-size: 16px; color: var(--ink-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pd-save { padding: 4px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--red); border-radius: var(--pill); }
.pd-split { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.pd-split b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pd-info { margin-top: 22px; display: grid; gap: 10px; }
.pd-info-row { display: flex; gap: 12px; padding: 14px 16px; background: var(--soft); border-radius: var(--r-s); }
.pd-info-row svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.pd-info-row b { display: block; font-size: 13.5px; }
.pd-info-row span { font-size: 13px; color: var(--ink-2); }

.pd-tabs { margin-top: 34px; }
.tabs-btns { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs-btns::-webkit-scrollbar { display: none; }
.tabs-btns button {
  flex-shrink: 0;
  height: 42px; padding: 0 20px;
  font-size: 14px; font-weight: 700;
  color: var(--ink-2);
  background: var(--soft);
  border-radius: var(--pill);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tabs-btns button[aria-current="true"] { color: #fff; background: var(--ink); }
.tab-pane { display: none; padding-top: 20px; }
.tab-pane.on { display: block; }
.tab-pane p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.spec-tbl { width: 100%; border-collapse: collapse; max-width: 660px; }
.spec-tbl tr { border-bottom: 1px solid var(--line); }
.spec-tbl th, .spec-tbl td { padding: 12px 0; font-size: 14px; text-align: left; vertical-align: top; }
.spec-tbl th { width: 46%; font-weight: 500; color: var(--ink-2); }
.spec-tbl td { font-weight: 600; }

/* ---------- 15. оформление ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 16px; }
.co-block { padding: 20px; background: var(--soft); border-radius: var(--r-m); }
.co-block + .co-block { margin-top: 12px; }
.co-block h3 { margin-bottom: 14px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.fields { display: grid; gap: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; height: 48px;
  padding: 0 16px;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.field textarea { height: auto; min-height: 84px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.radio {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.radio + .radio { margin-top: 8px; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio .dot {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 19px; height: 19px; margin-top: 2px;
  border: 1.5px solid #d3d7e0;
  border-radius: 50%;
  transition: border-color .2s var(--ease);
}
.radio .dot::after { content: ""; width: 9px; height: 9px; background: var(--blue); border-radius: 50%; transform: scale(0); transition: transform .2s var(--ease); }
.radio input:checked ~ .dot { border-color: var(--blue); }
.radio input:checked ~ .dot::after { transform: scale(1); }
.radio:has(input:checked) { border-color: var(--blue); }
.radio b { display: block; font-size: 14.5px; font-weight: 700; }
.radio span { font-size: 12.5px; color: var(--ink-2); }
.radio .rp { margin-left: auto; font-size: 13.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.co-side { align-self: start; padding: 20px; background: var(--soft); border-radius: var(--r-m); }
.co-list { display: grid; gap: 14px; margin-bottom: 16px; }
.co-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; }
.co-line img { width: 54px; height: 66px; object-fit: cover; border-radius: 8px; background: #fff; }
.co-line b { font-size: 13px; font-weight: 700; line-height: 1.25; display: block; }
.co-line .q { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.co-line .d-qty { margin-top: 6px; background: #fff; }
.co-line .s { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.co-sums { padding-top: 14px; border-top: 1px solid var(--line); }
.co-sum { display: flex; align-items: baseline; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.co-sum span:last-child { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-sum.total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); font-weight: 700; }
.co-sum.total span:last-child { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.co-note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.thanks { padding: 70px 0 40px; text-align: center; }
.thanks .tick {
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: 0 auto 22px;
  color: #fff; background: var(--blue); border-radius: 50%;
}
.thanks h2 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.thanks p { margin: 12px auto 26px; font-size: 15px; color: var(--ink-2); max-width: 48ch; }

/* ---------- 16. reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-track { transition: none; }
}

/* ============================================================
   АДАПТИВ — переопределения строго после базовых правил
   ============================================================ */

@media (min-width: 560px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { gap: 14px; }
  .rail { grid-auto-columns: minmax(190px, 1fr); gap: 14px; }
}

@media (min-width: 768px) {
  :root { --pad: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .rail { grid-auto-columns: minmax(220px, 1fr); gap: 16px; }
  .card { padding: 14px 14px 16px; border-radius: var(--r-m); }
  .card-name { font-size: 15px; }
  .price { font-size: 19px; }
  .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .promo { min-height: 260px; padding: 28px; }
  .cats { gap: 12px; }
  .cat-tile { border-radius: var(--r-m); padding: 18px 16px 22px; }
  .cat-tile b { font-size: 16px; }
  .subscribe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 36px 32px; }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .pd-gal { position: sticky; top: calc(var(--head-h) + 16px); }
  .co { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; }
  .co-side { position: sticky; top: calc(var(--head-h) + 16px); }
  .foot-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; }
  .fields.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .slide-title { max-width: 18ch; }
}

@media (min-width: 1024px) {
  :root { --pad: 40px; --head-h: 120px; }

  .head { padding: 0 var(--edge); }
  .topline { display: flex; padding-inline: calc(var(--pad) - var(--edge)); }
  .headbar {
    height: 94px;
    padding-top: 14px;
    margin-top: -14px;
    padding-inline: calc(var(--pad) - var(--edge));
    gap: 18px;
  }
  .logo-mark { font-size: 32px; }
  .logo-sub { display: block; }
  .btn-cat { height: 48px; padding: 0 22px; font-size: 16px; margin-left: 22px; }
  .head-nav { display: block; flex-shrink: 0; }
  .search { display: block; margin-left: 0; flex: 1 1 260px; min-width: 190px; }
  .head-act { margin-left: 18px; flex-shrink: 0; }
  .head-act .hide-s { display: flex; }
  .head-act > *:not(:first-child) { margin-left: 12px; }
  .burger { display: none; }
  .mnav { display: none; }

  .bleed {
    width: calc(100% + 2 * (var(--pad) - var(--edge)));
    margin-inline: calc(-1 * (var(--pad) - var(--edge)));
  }

  .hero { padding-block: 16px 8px; }
  .hero-view { border-radius: var(--r-l); }
  .slide {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    aspect-ratio: 3 / 1;
  }
  .slide-media { order: 2; height: 100%; aspect-ratio: auto; }
  .slide-media::after {
    background: linear-gradient(to right, var(--slide-bg, var(--soft)) 0%, rgba(255, 255, 255, 0) 34%);
  }
  .slide-body {
    order: 1;
    padding: 0 24px 0 clamp(76px, 6vw, 104px);
  }
  .slide-title { font-size: clamp(30px, 3.2vw, 50px); max-width: 20ch; }
  .slide-sub { font-size: 15px; margin-top: 14px; }
  .hero-arw { display: grid; }
  .hero-dots { margin-top: 12px; }

  .sec { padding-block: 56px 4px; }
  .sec-head { margin-bottom: 24px; }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(250px, 1fr); }
  .rail-arw { display: grid; }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-found { order: 0; width: auto; }
  .perk { flex-direction: column; padding: 24px; }

  .cat-layout { grid-template-columns: 258px minmax(0, 1fr); gap: 26px; }
  .filters { position: sticky; top: calc(var(--head-h) + 16px); }
  .f-toggle { display: none; }

  .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; padding-top: 26px; }
  .pd-gal { grid-template-columns: 80px minmax(0, 1fr); align-items: start; }
  .pd-thumbs { order: -1; flex-direction: column; }
  .pd-thumbs button { width: 80px; }
  .pd-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .foot { margin-top: 70px; padding: 52px 0 32px; }
  .sec.first { padding-top: 44px; }
}

/* на узком десктопе оставляем две ссылки, чтобы поиск не сжимался */
@media (min-width: 1024px) and (max-width: 1365px) {
  .head-nav li:nth-child(n + 3) { display: none; }
}

@media (min-width: 1280px) {
  :root { --pad: 80px; }
  .hero-arw.prev { left: 18px; }
  .hero-arw.next { right: 18px; }
  .rail-arw.prev { left: -18px; }
  .rail-arw.next { right: -18px; }
  .search { max-width: 520px; }
  .head-nav ul { gap: 26px; }
}

@media (min-width: 1600px) {
  :root { --pad: 200px; }
}

@media (min-width: 2120px) {
  :root { --pad: calc((100vw - 1720px) / 2); }
}
