/* Options, версия 2 — оснащение бизнеса под ключ (прототип). Основа — драфт A. */

:root {
  --promo-h: 0px;
  --paper: #f4f3ef;
  --surface: #ffffff;
  --well: #ebe9e3;          /* подложка под фото товара; белый фон кадра растворяется в ней через multiply */
  --ink: #131313;
  --ink-2: #4b4a46;
  --ink-3: #8b8a84;
  --line: rgba(19, 19, 19, 0.09);
  --accent: #ff5a1f;
  --accent-press: #e44a12;
  --accent-ink: #c2410c;
  --ok: #24704a;
  --wait: #9a6a12;
  --dark: #151514;
  --dark-2: #22211f;

  --font-display: "Geologica", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* multiply не смешивается с фоном body, поэтому фон даём контейнеру */
main {
  display: block;
  background: var(--paper);
}

[id] {
  scroll-margin-top: 190px;
}

html.has-promo {
  --promo-h: 54px;
}

html.has-promo.scrolling-down {
  --promo-h: 0px;
}

html.scrolling-down .promo {
  transform: translateY(-100%);
}

.nowrap {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  hyphens: none;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-press);
}

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

.btn-dark:hover {
  background: #2b2b29;
}

.btn-ghost {
  background: rgba(19, 19, 19, 0.06);
}

.btn-ghost:hover {
  background: rgba(19, 19, 19, 0.1);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: var(--r-sm);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-sm);
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(19, 19, 19, 0.3);
}

.link:hover {
  text-decoration-color: currentColor;
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: var(--promo-h, 0px);
  z-index: 50;
  transition: top 0.35s var(--ease);
  background: rgba(244, 243, 239, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

/* знак и подпись — один горизонтальный блок: подпись в две строки стоит по центру высоты знака */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.045em;
  transform: translateY(-1px);
}

.logo-mark i {
  font-style: normal;
  color: var(--accent);
}

/* барабаны букв: каждая буква в своём окошке, при смене новая въезжает снизу с лёгким перелётом */
.logo-mark[data-words] {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  flex: none;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-mark[data-words] i {
  line-height: 1.2;
}

.reel {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  transition: width 0.45s var(--ease);
}

.reel-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reel-in span {
  display: block;
  height: 1.2em;
  white-space: pre;
}

.reel.roll .reel-in {
  transform: translateY(-1.2em);
  transition: transform 0.6s cubic-bezier(0.3, 1.45, 0.45, 1);
}

.logo-sub {
  font-size: 12px;
  line-height: 1.15;
  color: var(--ink-3);
  max-width: 92px;
}

.catalog-btn {
  height: 48px;
  padding: 0 18px 0 16px;
  margin-left: 12px;
}

.search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.2s var(--ease);
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input:focus {
  box-shadow: 0 0 0 2px var(--ink);
}

.search > .icon {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--ink-3);
}

.search-hint {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-2);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.header-phone {
  margin: 0 12px 0 8px;
  text-align: right;
  line-height: 1.25;
}

.header-phone b {
  display: block;
  font-weight: 500;
  font-size: 15px;
}

.header-phone span {
  font-size: 12px;
  color: var(--ink-3);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  transition: background 0.2s var(--ease);
}

.icon-btn:hover {
  background: rgba(19, 19, 19, 0.06);
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.cart-count:empty {
  display: none;
}

.nav {
  display: flex;
  gap: 28px;
  height: 44px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 14px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .nav-accent {
  margin-left: auto;
  color: var(--accent-ink);
}

/* ---------- герой ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5.6fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

/* композиция стоит вплотную к заголовку и целиком внутри сетки, тени не режутся */
.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* подписи-плашки поверх композиции: остаток и счёт, то, ради чего сюда приходят */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -22px rgba(19, 19, 19, 0.35);
  font-size: 13px;
  line-height: 1.3;
  transition: transform 0.3s var(--ease);
}

.hero-chip:hover {
  transform: translateY(-2px);
}

.hero-chip > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff0e8;
  color: var(--accent-press);
}

.hero-chip > span:first-child .icon {
  width: 19px;
  height: 19px;
}

.hero-chip small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}

.hero-chip b {
  font-weight: 500;
}

/* выноска стоит слева от поворотной камеры, хвостик смотрит на неё */
.hero-chip-stock {
  right: 54%;
  top: 15%;
}

.hero-chip-stock::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 2px;
  background: inherit;
  transform: rotate(45deg);
}

.hero-chip-bill {
  left: 0;
  bottom: 8%;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(42px, 4.7vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 9.5em;
}

.hero-lead {
  max-width: 30em;
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-chat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.hero-chat:hover {
  color: var(--accent-ink);
}

.hero-chat .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-press);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.fact b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 22em;
}

/* ---------- секции ---------- */

.section {
  padding: clamp(56px, 7vw, 112px) 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 16em;
}

.section-head p {
  max-width: 34em;
  margin-top: 14px;
  color: var(--ink-2);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.more .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.more:hover .icon {
  transform: translateX(3px);
}

/* ---------- категории ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 228px;
  gap: 12px;
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--well);
  overflow: hidden;
  isolation: isolate;
  transition: background 0.3s var(--ease);
}

.cat:hover {
  background: #e4e2db;
}

.cat h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 9em;
}

.cat span {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.cat img {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 62%;
  mix-blend-mode: multiply;
  z-index: -1;
  transition: transform 0.5s var(--ease);
}

.cat:hover img {
  transform: scale(1.04) translateY(-4px);
}

.cat-big {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
}

.cat-big h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.03em;
}

.cat-big img {
  width: 74%;
  right: -4%;
  bottom: -6%;
}

.cat-big ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}

/* ---------- карточка товара ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  box-shadow: 0 18px 40px -24px rgba(19, 19, 19, 0.28);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.86;
  margin: 8px 8px 0;
  border-radius: var(--r-md);
  background: var(--well);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  line-height: 1.25;
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

.tag-accent {
  background: var(--accent);
  color: #fff;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.card-meta b {
  font-weight: 500;
  color: var(--ink-2);
}

.card-title {
  margin-top: 8px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.card-title a:hover {
  color: var(--ink-2);
}

.card-specs {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ok);
}

.stock .icon {
  width: 16px;
  height: 16px;
}

.stock.is-wait {
  color: var(--wait);
}

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.price small {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-left: 4px;
}

/* цена со скидкой красится в акцент, обычная остаётся чёрной */
.price-deal {
  color: var(--accent-press);
}

.price-old {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-ref {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.price-ref s {
  text-decoration-thickness: 1px;
  margin-right: 4px;
}

.price-partner {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent-ink);
}

.add-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.add-btn:hover {
  background: var(--accent);
}

.add-btn.is-added {
  background: var(--ok);
}

/* ---------- Dahua ---------- */

.spot {
  position: relative;
  isolation: isolate;
  margin-top: clamp(56px, 7vw, 112px);
  padding: clamp(56px, 7vw, 104px) 0;
  background: var(--dark);
  color: #f4f3ef;
  overflow: hidden;
}

/* макро объектива камеры: почти чёрное, видна только фактура; к тексту и вправо уходит в фон */
.spot-bg {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 96%);
  mask-image: linear-gradient(90deg, #000 35%, transparent 96%);
}

.spot-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.spot .eyebrow {
  color: rgba(244, 243, 239, 0.5);
}

.spot h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.spot p {
  margin-top: 20px;
  max-width: 30em;
  color: rgba(244, 243, 239, 0.72);
}

.spot .btn {
  margin-top: 32px;
}

.spot-list {
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.spot-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  background: rgba(34, 33, 31, 0.92);
  transition: background 0.2s var(--ease);
}

.spot-row:hover {
  background: #2c2b28;
}

.spot-thumb {
  width: 88px;
  height: 72px;
  border-radius: var(--r-sm);
  background: #e9e7e1;
  overflow: hidden;
}

.spot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  mix-blend-mode: multiply;
}

.spot-name {
  font-weight: 500;
  line-height: 1.3;
}

.spot-name span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(244, 243, 239, 0.5);
}

.spot-price {
  text-align: right;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.spot-price s {
  display: block;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(244, 243, 239, 0.45);
}

.spot-price em {
  display: block;
  font-style: normal;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}

/* ---------- комплекты ---------- */

.kits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kit {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.kit-media {
  position: relative;
  height: 220px;
  margin: 8px 8px 0;
  border-radius: var(--r-md);
  background: var(--well);
  overflow: hidden;
}

.kit-media img {
  position: absolute;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.kit-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.kit h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kit p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.kit ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 14px;
}

.kit li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.kit li span:last-child {
  color: var(--ink-3);
  white-space: nowrap;
}

.kit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

/* ---------- шаги покупки ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.step-obj {
  position: relative;
  display: block;
  height: 188px;
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}

.step-obj img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--ease);
}

.step:hover .step-obj img {
  transform: translateY(-4px) scale(1.04);
}

.step-body {
  padding: 22px 16px 20px;
}

.step h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-family: var(--font-text);
  font-weight: 500;
  color: var(--accent-ink);
}

.step p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- партнёры ---------- */

.partner {
  display: grid;
  grid-template-columns: 6fr 6fr;
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}

.partner-copy {
  padding: clamp(32px, 5vw, 72px);
}

.partner h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.partner-copy > p {
  margin-top: 18px;
  max-width: 30em;
  color: var(--ink-2);
}

.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin: 36px 0 40px;
}

.perk .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-ink);
}

.perk b {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

.perk span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.partner-media {
  position: relative;
  background: var(--well);
  min-height: 420px;
}

.partner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
}

.quote-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  max-width: 340px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.quote-card b {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.quote-card .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.quote-card .row:last-child b {
  margin: 0;
  color: var(--ink);
}

/* ---------- бренды ---------- */

.brands {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.brand {
  display: grid;
  place-items: center;
  height: 96px;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}

.brand:hover {
  color: var(--ink);
}

/* ---------- подвал ---------- */

.footer {
  margin-top: clamp(72px, 9vw, 140px);
  padding: 56px 0 40px;
  background: var(--dark);
  color: rgba(244, 243, 239, 0.7);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: 32px;
}

.footer .logo-mark {
  color: #f4f3ef;
}

.footer h4 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14px;
  color: #f4f3ef;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2.1;
}

.footer a:hover {
  color: #f4f3ef;
}

.footer-note {
  margin-top: 16px;
  max-width: 28em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 243, 239, 0.12);
  font-size: 13px;
  color: rgba(244, 243, 239, 0.45);
}

/* ---------- каталог ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
}

.crumbs a:hover {
  color: var(--ink);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 28px;
}

.page-head h1 {
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-head h1 sup {
  font-family: var(--font-text);
  font-size: 0.28em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  vertical-align: top;
  margin-left: 8px;
  position: relative;
  top: 0.6em;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: rgba(19, 19, 19, 0.05);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  background: rgba(19, 19, 19, 0.09);
}

.chip.is-on {
  background: var(--ink);
  color: #fff;
}

.chip small {
  font-size: 12px;
  color: var(--ink-3);
}

.chip.is-on small {
  color: rgba(255, 255, 255, 0.6);
}

.catalog {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}

.catalog > * {
  min-width: 0;
}

.filters {
  position: sticky;
  top: calc(var(--promo-h) + 148px);
  transition: top 0.35s var(--ease);
  display: grid;
  gap: 28px;
}

.filter h4 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 5px;
  background: rgba(19, 19, 19, 0.1);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.check input:checked {
  background: var(--ink);
}

.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 1.6px 1.6px;
  transform: translateY(-1px) rotate(-45deg);
}

.check small {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 11px;
  background: rgba(19, 19, 19, 0.14);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}

.switch input:checked {
  background: var(--ink);
}

.switch input:checked::after {
  transform: translateX(16px);
}

.range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14px;
  outline: none;
}

.field:focus {
  box-shadow: 0 0 0 2px var(--ink);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ink-2);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select {
  height: 40px;
  padding: 0 36px 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23131313' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  padding: 3px;
  border-radius: var(--r-sm);
  background: var(--surface);
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: var(--ink-3);
}

.view-toggle button.is-on {
  background: var(--paper);
  color: var(--ink);
}

.catalog .grid {
  grid-template-columns: repeat(3, 1fr);
}

/* табличный вид для монтажников */

.rows {
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.row-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 104px 128px 116px 44px;
  column-gap: 18px;
  gap: 20px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  font-size: 14px;
}

.row-item .thumb {
  width: 64px;
  height: 60px;
  border-radius: var(--r-sm);
  background: var(--well);
}

.row-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  mix-blend-mode: multiply;
}

.row-name b {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
}

.row-name span {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-stock {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--ink-2);
}

.row-stock span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.row-stock b {
  font-weight: 500;
  color: var(--ok);
}

.row-stock.is-wait {
  color: var(--wait);
}

.row-price {
  text-align: right;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.row-price small {
  display: block;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent-ink);
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--paper);
}

.qty button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  color: var(--ink-2);
}

.qty button:hover {
  color: var(--ink);
}

.qty input {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pager a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
}

.pager a:hover {
  background: rgba(19, 19, 19, 0.06);
}

.pager a.is-on {
  background: var(--ink);
  color: #fff;
}

.empty {
  padding: 64px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  color: var(--ink-2);
}

.filters-toggle {
  display: none;
}

/* ---------- страница товара ---------- */

.pdp {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: 24px;
}

.gallery {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  position: sticky;
  top: calc(var(--promo-h) + 148px);
  transition: top 0.35s var(--ease);
}

.gallery.is-single {
  grid-template-columns: 1fr;
}

.thumbs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.thumbs button {
  width: 76px;
  height: 76px;
  border-radius: var(--r-md);
  background: var(--well);
  overflow: hidden;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease);
}

.thumbs button.is-on {
  outline-color: var(--ink);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.thumbs img.cover {
  object-fit: cover;
}

.stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 22px;
  background: var(--well);
  overflow: hidden;
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7%;
  mix-blend-mode: multiply;
}

.stage img.cover {
  object-fit: cover;
  padding: 0;
  mix-blend-mode: normal;
}

.stage-note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

.pdp-info h1 {
  margin-top: 10px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.sku {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--ink-2);
}

.sku-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(19, 19, 19, 0.05);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.sku-copy .icon {
  width: 15px;
  height: 15px;
}

.key-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 24px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.key-specs div {
  padding: 14px 14px 12px;
  background: var(--surface);
}

.key-specs b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.key-specs span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

.buy {
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.buy-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.buy-price .price {
  font-size: 38px;
  letter-spacing: -0.035em;
}

.buy-price .vat {
  font-size: 14px;
  color: var(--ink-3);
}

.buy-partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: #fff3ec;
  font-size: 14px;
  color: var(--accent-ink);
}

.buy-partner b {
  font-weight: 600;
}

.buy-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin-top: 20px;
}

.buy-actions .btn {
  width: 100%;
}

.buy-actions .btn-ghost {
  grid-column: 1 / -1;
}

.wh {
  margin-top: 20px;
  font-size: 14px;
}

.wh-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.wh-row span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.wh-row .icon {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.wh-row b {
  font-weight: 500;
  text-align: right;
}

.wh-row b.is-ok {
  color: var(--ok);
}

.tabs-section {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 96px);
}

.tabs-section h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th {
  text-align: left;
  font-weight: 400;
  color: var(--ink-2);
  padding: 12px 24px 12px 0;
  width: 46%;
  vertical-align: top;
}

.spec-table td {
  padding: 12px 0;
  font-weight: 500;
}

.spec-table tr + tr th,
.spec-table tr + tr td {
  border-top: 1px solid var(--line);
}

.spec-group th {
  padding-top: 28px !important;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3) !important;
  border-top: 0 !important;
}

.docs {
  display: grid;
  gap: 8px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
  transition: background 0.2s var(--ease);
}

.doc:hover {
  background: #fbfaf7;
}

.doc .icon {
  color: var(--ink-3);
}

.doc b {
  display: block;
  font-weight: 500;
}

.doc span {
  color: var(--ink-3);
  font-size: 13px;
}

.doc .icon:last-child {
  margin-left: auto;
}

.about {
  margin-top: 36px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38em;
}

.about p + p {
  margin-top: 0.8em;
}

/* ---------- корзина ---------- */

.cart {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: 8px;
}

.cart-list {
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto 120px 36px;
  gap: 18px;
  align-items: center;
  padding: 14px 16px 14px 14px;
  background: var(--surface);
}

.cart-item .thumb {
  width: 88px;
  height: 76px;
  border-radius: var(--r-sm);
  background: var(--well);
}

.cart-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  mix-blend-mode: multiply;
}

.cart-item .row-price {
  font-size: 17px;
}

.remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
}

.remove:hover {
  background: rgba(19, 19, 19, 0.06);
  color: var(--ink);
}

.checkout {
  position: sticky;
  top: calc(var(--promo-h) + 148px);
  transition: top 0.35s var(--ease);
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.checkout h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-top: 20px;
  border-radius: var(--r-md);
  background: var(--paper);
}

.seg button {
  height: 42px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.seg button .icon {
  width: 18px;
  height: 18px;
}

.seg button.is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(19, 19, 19, 0.08);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.form .field {
  background: var(--paper);
  font-size: 15px;
}

.form .field:focus {
  background: var(--surface);
}

.bin-result {
  display: none;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #eef5f0;
  font-size: 13px;
  color: var(--ok);
}

.bin-result.is-on {
  display: block;
}

.bin-result b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}

.opts {
  display: grid;
  gap: 8px;
}

.opt {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 14px;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease), background 0.2s var(--ease);
}

.opt:has(input:checked) {
  background: var(--surface);
  outline-color: var(--ink);
}

.opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border-radius: 50%;
  background: rgba(19, 19, 19, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.opt input:checked {
  background: var(--ink);
}

.opt input:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.opt b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.opt span {
  color: var(--ink-3);
  font-size: 13px;
}

.opt em {
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.form-title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.totals {
  margin-top: 22px;
  font-size: 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  color: var(--ink-2);
}

.totals .total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.checkout .btn {
  width: 100%;
  margin-top: 18px;
}

.fine {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

.done {
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.done h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.done p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 34em;
}

.invoice {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 13px;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.invoice-head b {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.invoice table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.invoice th {
  text-align: left;
  font-weight: 400;
  color: var(--ink-3);
  padding: 8px 8px 8px 0;
}

.invoice td {
  padding: 8px 8px 8px 0;
  border-top: 1px solid var(--line);
}

.invoice .r {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
}

.cart-empty {
  padding: 72px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}

.cart-empty h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.cart-empty p {
  margin: 10px auto 24px;
  max-width: 26em;
  color: var(--ink-2);
}

.upload {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: rgba(19, 19, 19, 0.04);
  font-size: 14px;
  color: var(--ink-2);
}

.upload > .icon {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.upload b {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.upload .btn {
  margin-left: auto;
}

/* ---------- уведомление ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 140%);
  transition: transform 0.35s var(--ease);
}

.toast.is-on {
  transform: translate(-50%, 0);
}

.toast a {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

/* ---------- плашка акций над шапкой ---------- */

.promo {
  position: sticky;
  top: 0;
  z-index: 51;
  transition: transform 0.35s var(--ease);
  background: var(--ink);
  color: #f4f3ef;
  font-size: 13px;
}

.promo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
}

.promo-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.promo-slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.promo-thumb {
  flex: none;
  width: 52px;
  height: 36px;
  border-radius: 6px;
  background: var(--well);
  overflow: hidden;
}

.promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  mix-blend-mode: multiply;
}

.promo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--accent);
  font-weight: 500;
}

.promo-label .icon,
.promo-time .icon {
  width: 16px;
  height: 16px;
}

.promo-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(244, 243, 239, 0.86);
}

.promo-price {
  flex: none;
  white-space: nowrap;
}

.promo-price b {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(100deg, #fff 0 38%, #ffb594 48%, #fff 58% 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 3.2s linear infinite;
}

@keyframes shimmer-text {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -60% 0;
  }
}

.promo-price s {
  margin-left: 8px;
  color: rgba(244, 243, 239, 0.42);
}

.promo-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
  color: rgba(244, 243, 239, 0.56);
  white-space: nowrap;
}

.promo-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 34px;
  margin-bottom: 5px;
  padding: 0 12px 0 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6a33, var(--accent));
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 5px 0 #9e2e06, 0 9px 16px -6px rgba(255, 90, 31, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(120, 30, 0, 0.25);
  transform: translateY(-2px);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.2s var(--ease);
}

.promo-slide:active .promo-cta {
  transform: translateY(3px);
  box-shadow: 0 0 0 #9e2e06, 0 2px 6px -3px rgba(255, 90, 31, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* блик проходит по кнопке раз в три секунды */
.promo-cta::after,
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: shine 3.2s var(--ease) infinite;
  pointer-events: none;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

@keyframes shine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-price b,
  .promo-cta::after,
  .btn-shine::after {
    animation: none;
  }
}

.promo-cta .icon {
  width: 16px;
  height: 16px;
}

.promo-slide:hover .promo-cta {
  background: linear-gradient(180deg, #ff7843, #ff6022);
}

.promo-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: rgba(244, 243, 239, 0.5);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.promo-close .icon {
  width: 16px;
  height: 16px;
}

/* ---------- кнопка для монтажников ---------- */

.pro-btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: none;
  width: 256px;
  height: 48px;
  padding-right: 16px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  overflow: hidden;
}

.pro-btn img {
  position: absolute;
  z-index: -1;
  left: -16px;
  top: -3px;
  width: auto;
  height: 66px;
  max-width: none;
  transform: rotate(-6deg);
  transform-origin: 30% 80%;
  transition: transform 0.5s var(--ease);
}

/* каска выглядывает из-под нижнего края кнопки и чуть приподнимается при наведении */
.pro-btn:hover img {
  transform: rotate(-3deg) translateY(-5px);
}

.pro-text {
  display: grid;
  text-align: right;
  line-height: 1.2;
}

.pro-text b {
  font-weight: 600;
  font-size: 14px;
}

.pro-text small {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.pro-text em {
  margin-right: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  color: var(--accent-ink);
  font-style: normal;
  font-weight: 600;
}

.pro-chip {
  display: none;
}

/* ---------- меню категорий ---------- */

.header .wrap {
  position: relative;
}

.nav-mega {
  gap: 2px;
  height: 56px;
  overflow: visible;
  font-size: 14px;
}

.nav-item > a,
.nav-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-item > a {
  color: var(--ink);
  font-weight: 500;
}

.nav-item > a .icon {
  width: 19px;
  height: 19px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}

.nav-item:hover > a,
.nav-item:focus-within > a,
.nav-plain:hover {
  background: var(--surface);
}

.nav-item:hover > a .icon,
.nav-item:focus-within > a .icon {
  color: var(--accent);
}

.nav-item > a[aria-current="page"] {
  font-weight: 600;
}

.nav-item > a[aria-current="page"] .icon {
  color: var(--accent);
  stroke-width: 2;
}

.nav-plain {
  color: var(--ink-2);
}

.nav-phone {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.nav-phone span {
  display: none;
}

.nav-phone b {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.mega {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% - 9px);
  padding-top: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 60;
}

.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.06s;
}

.mega,
.mega a {
  white-space: normal;
}

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  padding: 28px 28px 24px 32px;
  border-radius: 0 0 20px 20px;
  background: var(--surface);
  box-shadow: 0 40px 60px -36px rgba(19, 19, 19, 0.35);
}

.mega-title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.mega-subs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}

.mega-subs li {
  break-inside: avoid;
}

.mega-subs li a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}

.mega-subs li a:hover {
  color: var(--accent-ink);
}

.mega-subs li span {
  font-size: 13px;
  color: var(--ink-3);
}

.mega .more {
  margin-top: 18px;
}

.mega-feature {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  align-self: start;
  padding: 12px;
  border-radius: 16px;
  background: var(--paper);
  transition: background 0.2s var(--ease);
}

.mega-feature:hover {
  background: #eeece6;
}

.mega-img {
  height: 112px;
  border-radius: 11px;
  background: var(--well);
  overflow: hidden;
}

.mega-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
}

.mega-f-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
}

.mega-f-body b {
  display: block;
  margin: 4px 0 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}

.mega-f-body .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.mega-f-body s {
  margin-left: 6px;
  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-3);
}

/* ---------- товар недели ---------- */

.tag-deal {
  gap: 6px;
  background: var(--ink);
  color: #fff;
}

.tag-deal .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.price-ref-deal {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
}

.price-ref-deal .icon {
  width: 15px;
  height: 15px;
}

.price-ref-deal s {
  color: var(--ink-3);
}

.deal {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}

.deal:empty {
  display: none;
}

.deal-media {
  position: relative;
  min-height: 440px;
  margin: 8px;
  border-radius: 18px;
  background: var(--well);
  overflow: hidden;
}

.deal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9%;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--ease);
}

.deal-media:hover img {
  transform: scale(1.04);
}

.deal-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  height: clamp(64px, 6vw, 88px);
  padding: 0 clamp(18px, 1.8vw, 26px);
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 50px);
  letter-spacing: -0.04em;
  box-shadow: 0 16px 30px -16px rgba(255, 90, 31, 0.7);
  transform: rotate(-4deg);
}

.deal-body {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px);
}

.deal .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-ink);
}

.deal .eyebrow .icon {
  width: 16px;
  height: 16px;
}

.deal h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.deal h2 a:hover {
  color: var(--ink-2);
}

.deal-specs {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-3);
}

.deal-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 28px;
}

.deal-price .price {
  font-size: clamp(36px, 3.4vw, 48px);
  letter-spacing: -0.035em;
}

.deal-was {
  font-size: 14px;
  color: var(--ok);
}

.deal-was s {
  margin-right: 10px;
  color: var(--ink-3);
}

.deal-stock {
  margin-top: 26px;
}

.deal-stock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.deal-stock-row b {
  font-weight: 500;
  color: var(--ink);
}

.deal-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--paper);
  overflow: hidden;
}

.deal-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.deal-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.deal-timer span {
  padding: 12px 6px 10px;
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
}

.deal-timer b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deal-timer i {
  display: block;
  font-style: normal;
}

.deal-timer .is-sec {
  background: #fff0e8;
  color: var(--accent-ink);
}

.deal-timer .is-sec b {
  color: var(--accent-press);
}

/* цифра въезжает сверху при каждой смене, у секунд это видно каждую секунду */
.deal-timer b.tick {
  animation: tick 0.55s var(--ease);
}

@keyframes tick {
  from {
    opacity: 0.1;
    transform: translateY(-55%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal-timer b.tick {
    animation: none;
  }
}

.deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- комплекты: макеты помещений ---------- */

.kit-media-scene {
  height: auto;
  aspect-ratio: 4 / 3;
}

.kit-media .kit-scene {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.06);
  transition: transform 0.7s var(--ease);
}

.kit:hover .kit-scene {
  transform: scale(1.11);
}

.kit-area {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- партнёры: натюрморт на оранжевом ---------- */

.partner-media-orange {
  background: var(--accent);
}

.partner-media-orange img {
  object-fit: cover;
  padding: 0;
  mix-blend-mode: normal;
}

/* ---------- комплекты под ключ: узкая карточка с живым фото ---------- */

.turnkey {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 26vw, 360px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background: #f1ebe0;
  color: var(--ink);
  overflow: hidden;
}

/* кадр светлый, текст стоит прямо на спокойной левой половине, без затемнения */
.turnkey img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  transition: transform 1s var(--ease);
}

.turnkey:hover img {
  transform: scale(1.03);
}

.turnkey .eyebrow {
  margin-bottom: 14px;
  color: var(--ink-2);
}

.turnkey h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 11em;
}

.turnkey .btn {
  margin-top: 26px;
}

/* воздух между вводным блоком и плитками комплектов */
.kits-head {
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}

.kits-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.kits-head p {
  margin-top: 10px;
  max-width: 34em;
  color: var(--ink-2);
}

.kit-prices {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

.kit-prices div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.kit-prices b {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.kit-turnkey b {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.kit-order {
  width: 100%;
  margin-top: 18px;
}

/* выбор в корзине: только оборудование или под ключ */
.kit-choice {
  margin-bottom: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.kit-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-2);
}

.kit-choice-head b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kit-choice .opts {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

/* ---------- вырезанные товары и оранжевый ховер ---------- */

/* вырезанным из фона кадрам multiply не нужен, тень рисуем сами */
img[src*="/cut/"] {
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 14px 16px rgba(19, 19, 19, 0.14));
}

.cat {
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.cat span,
.cat-big ul {
  transition: color 0.35s var(--ease);
}

.cat img[src*="/cut/"] {
  right: 4%;
  bottom: 6%;
  width: 54%;
  height: 70%;
  object-fit: contain;
  object-position: right bottom;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.cat-big img[src*="/cut/"] {
  right: 6%;
  bottom: 6%;
  width: 62%;
  height: 78%;
}

.cat-go {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-press);
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.cat-go .icon {
  width: 18px;
  height: 18px;
}

.cat:hover {
  background: var(--accent);
  color: #fff;
}

.cat:hover span,
.cat:hover.cat-big ul {
  color: rgba(255, 255, 255, 0.86);
}

.cat:hover .cat-go {
  opacity: 1;
  transform: none;
}

.cat:hover img[src*="/cut/"] {
  transform: translateY(-10px) rotate(-3deg) scale(1.05);
  filter: drop-shadow(0 26px 22px rgba(110, 30, 0, 0.32));
}

/* широкая плитка «Торговое оборудование»: на всю ширину сетки, три товара в ряд справа */
.cat-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
}

.cat-wide h3 {
  max-width: 14em;
}

.cat-wide-copy p {
  margin-top: 12px;
  max-width: 30em;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}

.cat:hover .cat-wide-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.cat-wide-imgs {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 48px);
  height: 100%;
  margin-right: 48px;
}

.cat-wide .cat-wide-imgs img[src*="/cut/"] {
  position: static;
  width: auto;
  height: 150px;
  max-width: 180px;
  object-fit: contain;
  z-index: auto;
}

.cat-wide .cat-wide-imgs img[src*="/cut/"]:nth-child(2) {
  height: 120px;
}

/* карточка товара: подложка не меняет цвет, товар только приподнимается */
.card-media img[src*="/cut/"] {
  padding: 13%;
}

.card:hover .card-media img[src*="/cut/"] {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 22px 18px rgba(19, 19, 19, 0.18));
}

.stage img[src*="/cut/"] {
  padding: 14%;
}

.deal-media img[src*="/cut/"],
.mega-img img[src*="/cut/"],
.spot-thumb img[src*="/cut/"],
.promo-thumb img[src*="/cut/"],
.row-item .thumb img[src*="/cut/"],
.cart-item .thumb img[src*="/cut/"],
.thumbs img[src*="/cut/"] {
  filter: drop-shadow(0 4px 5px rgba(19, 19, 19, 0.16));
}

.deal-media img[src*="/cut/"] {
  padding: 15%;
  filter: drop-shadow(0 26px 24px rgba(19, 19, 19, 0.16));
}

.mega-img img[src*="/cut/"],
.row-item .thumb img[src*="/cut/"],
.cart-item .thumb img[src*="/cut/"],
.thumbs img[src*="/cut/"] {
  padding: 12%;
}

/* ---------- конфигуратор сметы ---------- */

.cfg-head {
  padding: 20px 0 8px;
  max-width: 44em;
}

.cfg-head h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cfg-lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-2);
}

.cfg {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: 36px;
}

.cfg-steps {
  display: grid;
  gap: 12px;
}

.cfg-step {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.cfg-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cfg-step-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.cfg-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff0e8;
  color: var(--accent-press);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.cfg-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cfg-type {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 6px 12px;
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: left;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.cfg-type:hover {
  transform: translateY(-2px);
}

.cfg-type.is-on {
  background: #fff;
  outline-color: var(--accent);
}

.cfg-type-img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  background: var(--well);
  overflow: hidden;
}

.cfg-type-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  mix-blend-mode: multiply;
}

.cfg-type-name {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.cfg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.cfg-range {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
}

.cfg-label {
  font-size: 14px;
  color: var(--ink-2);
}

.cfg-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cfg-range input {
  grid-column: 1 / -1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(19, 19, 19, 0.1);
  outline: none;
}

.cfg-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px #fff, 0 6px 14px -4px rgba(255, 90, 31, 0.7);
  cursor: grab;
}

.cfg-range input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px #fff, 0 6px 14px -4px rgba(255, 90, 31, 0.7);
}

.cfg-scale {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

.cfg-counter {
  display: grid;
  gap: 10px;
}

.qty-lg {
  height: 48px;
}

.cfg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cfg-chips .chip {
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.cfg-chips .chip .icon {
  width: 16px;
  height: 16px;
}

.cfg-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cfg-seg button {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: left;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cfg-seg button b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cfg-seg button span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-3);
}

.cfg-seg button.is-on {
  background: #fff;
  outline-color: var(--ink);
}

.cfg-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cfg-extra {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cfg-extra input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cfg-extra b {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

.cfg-extra-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  color: var(--ink-3);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.cfg-extra:has(input:checked) {
  background: #fff;
  outline-color: var(--accent);
}

.cfg-extra:has(input:checked) .cfg-extra-icon {
  background: var(--accent);
  color: #fff;
}

.cfg-extra:has(input:focus-visible) {
  outline-color: var(--ink);
}

.cfg-pos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--paper);
}

.cfg-pos .cfg-counter {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* живая смета */

.cfg-sum {
  position: sticky;
  top: calc(var(--promo-h) + 148px);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(19, 19, 19, 0.35);
  transition: top 0.35s var(--ease);
}

.cfg-sum-media {
  height: 170px;
  margin: 8px 8px 0;
  border-radius: 16px;
  background: var(--well);
  overflow: hidden;
}

.cfg-sum-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  mix-blend-mode: multiply;
}

.cfg-sum-body {
  padding: 20px 24px 22px;
}

.cfg-sum-type {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cfg-sum-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.cfg-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 18px;
}

.cfg-total .price {
  font-size: clamp(36px, 3.4vw, 46px);
  letter-spacing: -0.035em;
}

.cfg-total-note {
  font-size: 13px;
  color: var(--ink-3);
}

.cfg-split {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 14px;
  border-radius: 4px;
  overflow: hidden;
}

.cfg-split i {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.cfg-split .eq,
.cfg-split-legend .eq {
  background: var(--ink);
}

.cfg-split .wk,
.cfg-split-legend .wk {
  background: var(--accent);
}

.cfg-split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.cfg-split-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cfg-split-legend i {
  display: inline-block;
  width: 10px;
  height: 4px;
  border-radius: 2px;
}

.cfg-facts {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.cfg-facts div {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-2);
}

.cfg-facts .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-press);
}

.cfg-facts b {
  font-weight: 500;
  color: var(--ink);
}

.cfg-sum-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}

.cfg-sum-link:hover {
  background: var(--well);
}

.cfg-sum-link .icon {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  color: var(--ink-3);
}

/* шаг 6: класс оборудования и состав */

.cfg-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cfg-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: left;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cfg-tier:hover {
  background: var(--well);
}

.cfg-tier b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cfg-tier-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}

.cfg-tier-price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.cfg-tier-price em {
  display: block;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-3);
}

.cfg-tier.is-on {
  background: #fff;
  outline-color: var(--ink);
}

.cfg-tier.is-on .cfg-tier-price {
  color: var(--accent-ink);
}

.cfg-kit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 10px;
}

.cfg-kit-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cfg-kit-head span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
}

.cfg-kit-note {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.cfg-kit,
.cfg-work {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfg-kit {
  display: grid;
  gap: 8px;
}

.cfg-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--paper);
}

.cfg-item-img {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.cfg-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  mix-blend-mode: multiply;
  transition: transform 0.35s var(--ease);
}

.cfg-item-img img[src*="/cut/"] {
  mix-blend-mode: normal;
}

a.cfg-item-img:hover img {
  transform: scale(1.05);
}

.cfg-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 4px;
}

.cfg-item-slot {
  font-size: 12px;
  color: var(--ink-3);
}

.cfg-item-own {
  font-style: normal;
  color: var(--accent-ink);
}

.cfg-item-name {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
}

a.cfg-item-name:hover {
  color: var(--accent-ink);
}

.cfg-item-specs {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}

.cfg-item-opts {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: -6px;
  padding: 3px;
  border-radius: 10px;
  background: var(--well);
}

.cfg-item-opts button {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  line-height: 32px;
}

.cfg-item-opts button b {
  font-weight: 500;
}

.cfg-item-opts button span {
  color: var(--ink-3);
}

.cfg-item-opts button:hover {
  color: var(--ink);
}

.cfg-item-opts button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(19, 19, 19, 0.08);
}

.cfg-item-opts button.is-on span {
  color: var(--ink-2);
}

.cfg-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-top: 4px;
  text-align: right;
  font-size: 12px;
  color: var(--ink-3);
}

.cfg-item-price b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.cfg-item-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  max-width: 150px;
  color: var(--ok);
  text-align: right;
  line-height: 1.3;
}

.cfg-item-stock .icon {
  flex: none;
  width: 14px;
  height: 14px;
}

.cfg-item-stock.is-wait {
  color: var(--wait);
}

.cfg-work li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 110px;
  gap: 16px;
  align-items: baseline;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.cfg-work li span.num {
  font-size: 12px;
  color: var(--ink-3);
}

.cfg-work li b {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.cfg-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.cfg-actions .btn-primary {
  width: 100%;
}

.cfg-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cfg-actions-row .btn {
  width: 100%;
}

.cfg-bar {
  display: none;
}

/* окно заявки на замер */

.cfg-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
}

.cfg-dialog::backdrop {
  background: rgba(19, 19, 19, 0.45);
  backdrop-filter: blur(4px);
}

.cfg-dialog-in {
  position: relative;
  padding: 32px;
}

.cfg-dialog h2 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  padding-right: 32px;
}

.cfg-dialog-sum {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.cfg-dialog .form .field {
  background: var(--paper);
}

.cfg-dialog .btn {
  width: 100%;
  margin-top: 20px;
}

.cfg-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--paper);
}

.cfg-when {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cfg-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #e8f3ec;
  color: var(--ok);
}

.cfg-done-icon .icon {
  width: 28px;
  height: 28px;
}

#cfg-call-done p {
  margin-top: 10px;
  color: var(--ink-2);
}

/* печать сметы */

.cfg-print {
  display: none;
}

@media print {
  body > *:not(main),
  main > *:not(.wrap),
  .wrap > *:not(.cfg-print) {
    display: none !important;
  }

  main,
  body {
    background: #fff !important;
  }

  .cfg-print {
    display: block !important;
    font-size: 11pt;
    color: #111;
  }

  .cfg-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12pt;
    border-bottom: 1px solid #ddd;
    font-size: 10pt;
    color: #666;
  }

  .cfg-print h2 {
    margin: 18pt 0 6pt;
    font-size: 20pt;
  }

  .cfg-print table {
    width: 100%;
    margin-top: 14pt;
    border-collapse: collapse;
    font-size: 10pt;
  }

  .cfg-print th,
  .cfg-print td {
    padding: 5pt 6pt 5pt 0;
    border-top: 1px solid #e5e5e5;
    text-align: left;
  }

  .cfg-print th {
    color: #777;
    font-weight: 500;
  }

  .cfg-print .r {
    text-align: right;
    padding-right: 0;
  }

  .cfg-print .sum td {
    font-weight: 600;
    border-top: 1.5px solid #111;
  }

  .cfg-doc-fine {
    margin-top: 16pt;
    font-size: 9pt;
    color: #666;
  }
}

/* ---------- версия 2: оснащение под ключ ---------- */

.nav-cta {
  color: var(--accent-ink);
  font-weight: 500;
}

.hero-media-v2 {
  position: relative;
}

.hero-media-v2 img {
  width: 114%;
  max-width: none;
  height: auto;
  margin: -6% -4% -4% -10%;
  mix-blend-mode: multiply;
}

/* одна карточка сметы поверх макета: сразу видно, что продаём результат с ценой */
.hero-quote {
  position: absolute;
  left: 2%;
  bottom: 6%;
  display: grid;
  gap: 12px;
  width: min(320px, 72%);
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -28px rgba(19, 19, 19, 0.4);
  transition: transform 0.3s var(--ease);
}

.hero-quote:hover {
  transform: translateY(-3px);
}

.hero-quote-head b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.hero-quote-head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

.hero-quote-price b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-quote-price span {
  font-size: 12px;
  color: var(--ink-3);
}

.hero-quote-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.hero-quote-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--accent-ink);
}

.hero-quote-go .icon {
  width: 16px;
  height: 16px;
}

/* типовые объекты */

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

.object {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.object:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(19, 19, 19, 0.35);
}

.object-media {
  display: block;
  aspect-ratio: 1 / 0.86;
  margin: 8px 8px 0;
  border-radius: var(--r-md);
  background: var(--well);
  overflow: hidden;
}

.object-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--ease);
}

.object:hover .object-media img {
  transform: scale(1.16);
}

.object-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.object-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.object-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}

.object-price {
  margin-top: auto;
  padding-top: 16px;
}

.object-price b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.object-price span {
  font-size: 12px;
  color: var(--ink-3);
}

/* пять шагов */

.steps-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.steps-5 .step-obj {
  height: 160px;
}

/* примеры объектов */

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

.case {
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 8px 8px 0;
  border-radius: var(--r-md);
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  padding: 18px 22px 22px;
}

.case-body h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.case-body p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

.case-meta b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- появление ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.8s var(--ease) both;
  }

  .rise-2 {
    animation-delay: 0.08s;
  }

  .rise-3 {
    animation-delay: 0.16s;
  }

  .rise-4 {
    animation-delay: 0.24s;
  }

  .fade {
    animation: fade 1.2s var(--ease) both 0.15s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  @keyframes fade {
    from {
      opacity: 0;
      transform: scale(0.985);
    }
  }
}

/* ---------- адаптив ---------- */

@media (max-width: 1400px) {
  .nav-phone {
    display: none;
  }
}

@media (max-width: 1280px) {

  .promo-time {
    display: none;
  }
}

@media (max-width: 1180px) {
  .objects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-phone {
    display: none;
  }

  .pro-btn {
    width: 210px;
  }

  .pro-text small {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-item {
    grid-template-columns: 64px minmax(0, 1fr) 128px 120px 44px;
  }

  .row-item .row-stock {
    display: none;
  }
}

@media (max-width: 960px) {
  .logo-sub,
  .catalog-btn span {
    display: none;
  }

  .pro-btn,
  .mega {
    display: none;
  }

  .nav-mega {
    height: 52px;
    overflow-x: auto;
  }

  .pro-chip {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 36px;
    padding: 0 12px 0 50px;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
  }

  .pro-chip img {
    position: absolute;
    z-index: -1;
    left: -9px;
    top: -2px;
    width: auto;
    height: 46px;
    max-width: none;
    transform: rotate(-6deg);
  }

  .deal,
  .cfg {
    grid-template-columns: 1fr;
  }

  .cfg-sum {
    position: static;
  }

  .cfg-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cfg-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  }

  body:has(.cfg-bar) .footer {
    padding-bottom: 110px;
  }

  .cfg-bar-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
  }

  .cfg-bar b {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.02em;
  }

  .turnkey {
    align-items: flex-start;
    min-height: 440px;
  }

  .turnkey img {
    object-position: 86% 100%;
  }

  .deal-media {
    min-height: 300px;
  }

  .catalog-btn {
    width: 48px;
    padding: 0;
    margin-left: 0;
  }

  .search-hint {
    display: none;
  }

  .search input {
    padding-right: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    margin: 8px 0 0;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .cats {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .spot-grid,
  .partner,
  .pdp,
  .tabs-section,
  .cart {
    grid-template-columns: 1fr;
  }

  .kits,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .brands {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: none;
    padding: 20px;
    border-radius: var(--r-lg);
    background: rgba(19, 19, 19, 0.04);
  }

  .filters.is-open {
    display: grid;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .gallery,
  .checkout {
    position: static;
  }
}

@media (max-width: 640px) {
  .promo-name,
  .promo-price s,
  .promo-cta {
    display: none;
  }

  .promo-price {
    margin-left: auto;
  }

  .deal-timer b {
    font-size: 22px;
  }

  .deal-actions .btn {
    flex: 1 1 100%;
  }

  .header-row {
    height: 64px;
    gap: 8px;
  }

  .header-links .hide-sm {
    display: none;
  }

  .logo-mark {
    font-size: 21px;
  }

  .search input {
    height: 44px;
    font-size: 16px;
  }

  .search > .icon {
    top: 12px;
  }

  .catalog-btn {
    height: 44px;
    width: 44px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.8vw, 48px);
  }

  .hero-chip {
    padding: 8px 12px 8px 8px;
    font-size: 12px;
  }

  .hero-chip > span:first-child {
    width: 30px;
    height: 30px;
  }

  .hero-chip small {
    display: none;
  }

  .hero-chip-stock {
    top: 10%;
  }

  .hero-chip-bill {
    bottom: 3%;
  }

  .tag {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    font-size: 11px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .facts {
    gap: 24px 16px;
  }

  .cats {
    grid-template-columns: 1fr;
    grid-auto-rows: 168px;
  }

  .cat-big {
    grid-column: auto;
    grid-row: span 2;
    padding: 24px;
  }

  .cat-wide {
    grid-row: span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .cat-wide-imgs {
    height: auto;
    margin: auto 0 0;
  }

  .cat-wide .cat-wide-imgs img[src*="/cut/"] {
    height: 96px;
  }

  .cat-wide .cat-wide-imgs img[src*="/cut/"]:nth-child(2) {
    height: 78px;
  }

  .grid,
  .catalog .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card-body {
    padding: 14px 14px 16px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-specs {
    display: none;
  }

  .card-meta span:last-child {
    display: none;
  }

  .price {
    font-size: 18px;
  }

  .price small {
    display: none;
  }

  .add-btn {
    width: 40px;
    height: 40px;
  }

  .spot-row {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .spot-thumb {
    width: 64px;
    height: 56px;
  }

  .spot-price {
    grid-column: 2;
    text-align: left;
  }

  .spot-price s {
    display: inline;
    margin-right: 8px;
  }

  .spot-price em {
    display: inline;
    margin-left: 8px;
  }

  .kits,
  .steps,
  .perks,
  .kit-choice .opts,
  .cfg-extras,
  .cfg-seg {
    grid-template-columns: 1fr;
  }

  .cfg-types,
  .objects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-5,
  .cases {
    grid-template-columns: 1fr;
  }

  .hero-quote {
    position: static;
    width: 100%;
    margin-top: -8%;
  }

  .hero-media-v2 img {
    width: 100%;
    margin: 0;
  }

  .object-body {
    padding: 12px 14px 14px;
  }

  .object-name {
    font-size: 16px;
  }

  .object-price b {
    font-size: 18px;
  }

  .cfg-step {
    padding: 20px;
  }

  .cfg-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .turnkey {
    padding: 22px;
  }

  .step h3 {
    margin-top: 24px;
  }

  .brands {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .row-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .row-item .thumb {
    width: 56px;
    height: 52px;
  }

  .row-item .qty {
    display: none;
  }

  .row-item .add-btn {
    grid-column: 3;
  }

  .row-item .row-price {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  .row-item .add-btn {
    grid-row: 1 / span 2;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar-right {
    width: 100%;
  }

  .toolbar-right .select {
    flex: 1;
    min-width: 0;
  }

  .page-head h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-row: 2;
    grid-template-columns: repeat(4, 64px);
  }

  .thumbs button {
    width: 64px;
    height: 64px;
  }

  .key-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .buy {
    padding: 18px;
  }

  .buy-price .price {
    font-size: 32px;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 36px;
    gap: 12px;
  }

  .cart-item .thumb {
    width: 64px;
    height: 56px;
  }

  .cart-item .qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .cart-item .row-price {
    grid-column: 2 / span 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }

  .cart-item .remove {
    grid-column: 3;
    grid-row: 1;
  }

  .checkout {
    padding: 20px;
  }

  .upload {
    flex-wrap: wrap;
  }

  .upload .btn {
    margin-left: 0;
    width: 100%;
  }

  .invoice {
    padding: 16px;
    overflow-x: auto;
  }

  .quote-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .partner-media {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .cfg-tiers {
    grid-template-columns: 1fr;
  }

  .cfg-tier {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2px 12px;
    padding: 14px;
  }

  .cfg-tier-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cfg-tier-price {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    text-align: right;
  }

  .cfg-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 10px;
  }

  .cfg-item-img {
    grid-row: span 2;
    align-self: start;
  }

  .cfg-item-price {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    padding-top: 6px;
    text-align: left;
  }

  .cfg-item-stock {
    flex-basis: 100%;
    max-width: none;
    margin-top: 2px;
    text-align: left;
  }

  .cfg-item-opts {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .cfg-item-opts button {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 44px;
    padding: 0 4px;
    line-height: 1.2;
  }

  .cfg-work li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cfg-work li span.num {
    display: none;
  }
}
