﻿/* =========================================================================
   ByteBuy — единая дизайн-система (2026)
   Светлая «бумажная» основа, тёмные акцентные секции, лаймовый акцент.
   Все страницы собираются из компонентов этого файла.
   ========================================================================= */

/* ---------- 1. Токены ---------- */
:root {
  /* Старая тема ByteBuy: тёмная основа + лаймовый акцент */
  --paper: #0a0a0b;
  --paper-2: #131316;
  --card: #131316;
  --ink: #f4f4f5;
  --ink-soft: #d4d4d8;
  --muted: #a1a1aa;
  --line: #2a2a31;
  --line-strong: #3f3f46;
  --accent: #c8ff4d;
  --accent-soft: rgba(200, 255, 77, 0.14);
  --accent-ink: #0a0a0b;
  --violet: #8b7bff;
  --coral: #fb7185;
  --sky: #60a5fa;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .95);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 24px);
  --section-y: clamp(56px, 8vw, 96px);
  --header-h: 64px;

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

/* Тёмная тема секции: те же компоненты, другие значения переменных */
.is-dark {
  --paper: #12120f;
  --paper-2: #1b1b16;
  --card: #1a1a15;
  --ink: #f6f3e8;
  --ink-soft: #d8d3c3;
  --muted: #9b968a;
  --line: #2c2c25;
  --line-strong: #3d3d33;
  --accent-ink: #12140a;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- 2. Сброс и база ---------- */
*, *::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-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* очень мягкая зернистость, чтобы плоскость не выглядела «цифровой» */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: radial-gradient(rgba(18, 18, 15, .05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.icon-svg { display: inline-block; vertical-align: middle; flex: none; }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- 3. Сетка и типографика ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--paper); color: var(--ink); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head__text { max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 242, 78, .25);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(38px, 6.2vw, 82px); }
.display--sm { font-size: clamp(24px, 3vw, 34px); }

.display .hl {
  background: var(--accent);
  color: var(--accent-ink);
  padding: .04em .16em .1em;
  border-radius: .22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow svg { flex: none; }

/* ---------- 4. Кнопки ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { --btn-bg: #000; box-shadow: var(--shadow); }

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
}
.btn--accent:hover { --btn-bg: var(--accent-soft); --btn-bd: var(--accent-soft); }

.btn--ghost {
  --btn-bd: var(--line-strong);
  --btn-fg: var(--ink);
}
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--quiet {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
}
.btn--quiet:hover { transform: none; border-color: var(--ink); }

.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-active { --btn-bg: var(--accent-soft); --btn-bd: var(--accent); --btn-fg: var(--accent-ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--line-strong); transform: translateY(-1px); }

/* ---------- 5. Шапка ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-head.is-scrolled { border-color: var(--line); }

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav__link {
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__link:hover { background: var(--paper-2); color: var(--ink); }
.nav__link.is-active { background: var(--ink); color: var(--paper); }

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.lang-switch a, .lang-switch span {
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  line-height: 1;
}
.lang-switch .is-current { background: var(--ink); color: var(--paper); }

.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--paper);
}
.cart-count[hidden] { display: none; }

.burger { display: none; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { padding: 10px 0 22px; display: grid; gap: 2px; }
.mobile-nav__link {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.mobile-nav__foot { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 6. Главный экран ---------- */
.hero { padding-top: clamp(26px, 4vw, 54px); padding-bottom: clamp(30px, 5vw, 70px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero__copy .display { margin-bottom: 22px; }
.hero__lead { margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--ink); flex: none; }

.hero__art { position: relative; }
.hero__panel {
  position: relative;
  border-radius: clamp(18px, 2.5vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #17170f 0%, #23231a 45%, #101009 100%);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero__panel img, .hero__panel svg { width: 100%; height: 100%; object-fit: cover; }

.hero__chips {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: grid;
  gap: 8px;
}
.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(18, 18, 15, .62);
  border: 1px solid rgba(246, 243, 232, .14);
  backdrop-filter: blur(10px);
  color: #f6f3e8;
  font-size: 13px;
}
.chip-row__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 242, 78, .18);
  flex: none;
}
.chip-row__meta { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: rgba(246, 243, 232, .55); letter-spacing: .08em; }

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 500;
}
.float-badge--tl { top: -14px; left: -10px; }
.float-badge--br { bottom: 54px; right: -12px; }
.float-badge__ico {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  flex: none;
}

/* ---------- 7. Показатели ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(30px, 4vw, 56px);
}
.stats__item { padding: 26px 26px 8px 0; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.stats__label { font-size: 13px; color: var(--muted); max-width: 18ch; }

/* ---------- 8. Направления ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.svc__art {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.svc__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__art img { transform: scale(1.035); }
.svc__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc__title { font-family: var(--font-display); font-size: 19px; letter-spacing: -.015em; line-height: 1.2; }
.svc__text { font-size: 14px; color: var(--muted); }
.svc__meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 9. Карточки товаров ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.prod {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.prod:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.prod__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(135deg, #ede8d9, #f7f4ea);
}
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.04); }
.prod__badge { position: absolute; top: 12px; left: 12px; }
.prod__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prod__title { font-size: 16.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.prod__text { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod__price { font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
.prod__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
}
.prod:hover .prod__cta { color: var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.badge--ink { background: var(--ink); color: var(--paper); }
.badge--ok { background: rgba(200, 242, 78, .28); color: #2c3a00; }
.badge--line { background: transparent; border-color: var(--line-strong); }

/* ---------- 10. Бегущая строка ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item::before { content: "✳"; color: var(--ink); font-family: var(--font-body); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 11. Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 26px 24px 8px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  display: block;
  margin-bottom: 26px;
}
.step__title { font-family: var(--font-display); font-size: 18px; letter-spacing: -.015em; margin-bottom: 10px; }
.step__text { font-size: 14px; color: var(--muted); }

/* ---------- 12. Преимущества ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why {
  background: var(--card);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
}
.why__ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
}
.why__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.why__text { font-size: 14px; color: var(--muted); }

/* ---------- 13. Отзывы ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote__stars { color: var(--ink); letter-spacing: .12em; font-size: 14px; }
.quote__stars .off { color: var(--line-strong); }
.quote__text { font-size: 15px; line-height: 1.55; }
.quote__author { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  flex: none;
}
.quote__name { font-size: 14px; font-weight: 500; }
.quote__meta { font-size: 12px; color: var(--muted); }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--ink); }
.faq__plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 16px;
  line-height: 1;
  flex: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq__answer { padding: 0 0 24px; max-width: 70ch; color: var(--muted); font-size: 15px; }

/* ---------- 15. Блок призыва ---------- */
.cta {
  border-radius: clamp(20px, 3vw, 34px);
  overflow: hidden;
  background: var(--ink);
  color: #f6f3e8;
  position: relative;
  isolation: isolate;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 2;
}
.cta__title { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 14px; }
.cta__text { color: rgba(246, 243, 232, .72); max-width: 46ch; margin-bottom: 26px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta .btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.cta .btn--ghost { --btn-bd: rgba(246, 243, 232, .3); --btn-fg: #f6f3e8; }
.cta .btn--ghost:hover { --btn-bd: #f6f3e8; }
.cta__art { position: relative; }
.cta__art img { width: 100%; height: auto; border-radius: 18px; }

/* ---------- 16. Подвал ---------- */
.site-foot {
  background: var(--ink);
  color: #f6f3e8;
  padding-block: clamp(42px, 6vw, 74px) 26px;
  margin-top: clamp(40px, 6vw, 90px);
}
.site-foot a { color: rgba(246, 243, 232, .72); transition: color .16s var(--ease); }
.site-foot a:hover { color: var(--accent); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(246, 243, 232, .12);
}
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-display); font-size: 17px; letter-spacing: .01em; }
.foot-brand .brand__mark { background: var(--accent); color: var(--accent-ink); }
.foot-about { color: rgba(246, 243, 232, .62); font-size: 14px; max-width: 38ch; }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246, 243, 232, .45);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { display: grid; gap: 10px; font-size: 14px; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(246, 243, 232, .45);
}
.foot-bottom__links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 17. Хлебные крошки, заголовок страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 24px; }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { opacity: .5; }

.page-head { padding-block: clamp(18px, 3vw, 40px) clamp(24px, 3vw, 40px); }
.page-head .display { margin-bottom: 14px; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- 18. Каталог: фильтры ---------- */
.catalog-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.filter-pill {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.filter-pill:hover { border-color: var(--line-strong); }
.filter-pill.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-pill__count { font-family: var(--font-mono); font-size: 10.5px; opacity: .55; margin-left: 6px; }

.catalog-search { margin-left: auto; position: relative; min-width: 220px; }
.catalog-search input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s var(--ease);
}
.catalog-search input:focus { border-color: var(--ink); }
.catalog-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 12px;
  justify-items: center;
}
.empty__title { font-family: var(--font-display); font-size: 20px; color: var(--ink); }

/* ---------- 19. Пагинация ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 40px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.pagination a:hover { border-color: var(--line-strong); background: var(--card); }
.pagination .is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .is-gap { border: 0; }

/* ---------- 20. Страница решения ---------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 40px);
}
.product-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery a {
  width: 76px; height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .16s var(--ease);
}
.gallery a:hover { border-color: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.buy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(20px, 2.6vw, 30px);
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}
.buy-card__price { display: flex; align-items: baseline; gap: 10px; }
.buy-card__price b { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.03em; }
.buy-card__meta { display: grid; gap: 9px; font-size: 13.5px; color: var(--muted); }
.buy-card__meta div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.buy-card__meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.buy-card__meta b { color: var(--ink); font-weight: 500; }
.buy-card__note { font-size: 12px; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec { background: var(--card); padding: 16px 18px; }
.spec__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.spec__value { font-size: 14px; font-weight: 500; }

.review-form { display: grid; gap: 12px; margin-top: 18px; }
.rating-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 24px; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color .12s var(--ease); }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--ink); }

/* ---------- 21. Формы ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.input, .textarea, .select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(200, 242, 78, .3);
}
.textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }
.form-error {
  border: 1px solid #e2b3a6;
  background: #fdeee9;
  color: #7a2e17;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
}
.form-ok {
  border: 1px solid #c9dfa0;
  background: #f1f8de;
  color: #3c4d0c;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
}
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.checkbox input { margin-top: 3px; accent-color: var(--ink); }

/* ---------- 22. Авторизация ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(24px, 4vw, 56px);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.auth-card__title { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.auth-card__sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-card__foot { margin-top: 20px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.auth-aside {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  position: relative;
  background: var(--ink);
}
.auth-aside img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.auth-aside__text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px;
  color: #f6f3e8;
  background: linear-gradient(transparent, rgba(18, 18, 15, .85));
}

/* ---------- 23. Личный кабинет ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(20px, 3vw, 40px);
  align-items: start;
}
.account-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.account-side__user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.account-side__email { font-size: 13px; color: var(--muted); word-break: break-all; }
.account-nav { display: grid; gap: 3px; }
.account-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  transition: background-color .16s var(--ease);
}
.account-nav a:hover { background: var(--paper-2); }
.account-nav a.is-active { background: var(--ink); color: var(--paper); }
.account-nav .count { font-family: var(--font-mono); font-size: 11px; opacity: .6; }

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.order-card + .order-card { margin-top: 12px; }
.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.order-card__id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.order-card__body { padding: 16px 20px; display: grid; gap: 12px; }
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-item__title { font-size: 14.5px; font-weight: 500; }
.order-item__meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.order-card__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-total { font-family: var(--font-display); font-size: 18px; }

/* ---------- 24. Корзина ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(16px, 2vw, 30px) 40px;
}
.cart-list { display: grid; gap: 10px; }
.cart-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.cart-row__thumb { width: 74px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.cart-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__title { font-size: 14.5px; font-weight: 500; }
.cart-row__meta { font-size: 12px; color: var(--muted); }
.cart-row__price { font-family: var(--font-display); font-size: 16px; }
.cart-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  color: var(--muted);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.cart-remove:hover { border-color: var(--coral); color: var(--coral); }

.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 14px;
}
.summary__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.summary__row b { color: var(--ink); font-weight: 500; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__total b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.summary__note { font-size: 12px; color: var(--muted); }

/* ---------- 25. Контент: статьи и юридические страницы ---------- */
.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin-top: 2em; }
.prose h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; margin-top: 1.8em; }
.prose h4 { font-size: 17px; font-weight: 600; margin-top: 1.6em; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose a:hover { border-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--muted); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-size: 1.05em;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--paper-2);
  padding: .15em .4em;
  border-radius: 6px;
}
.prose pre {
  background: var(--ink);
  color: #f6f3e8;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.article-hero { padding-block: clamp(18px, 3vw, 34px) 0; }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; margin: clamp(18px, 3vw, 34px) 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(20px, 2.4vw, 28px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.post:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post__date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post__title { font-family: var(--font-display); font-size: 19px; line-height: 1.22; letter-spacing: -.015em; }
.post__text { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__more { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.post:hover .post__more { color: var(--ink); }

/* ---------- 26. Контакты ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 40px);
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(22px, 2.8vw, 32px);
}
.contact-list { display: grid; gap: 2px; margin-top: 24px; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-list a:hover { color: var(--violet); }
.contact-list__ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--paper-2);
  flex: none;
}
.contact-list__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 27. Служебные страницы ---------- */
.state-page { padding-block: clamp(40px, 8vw, 110px); text-align: center; display: grid; justify-items: center; gap: 18px; }
.state-page__code {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 160px);
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--ink);
}
.state-page__title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); letter-spacing: -.02em; }
.state-page__text { color: var(--muted); max-width: 46ch; }
.state-page__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  align-items: flex-start;
}
.notice--accent { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- 28. Разное ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 150;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(18, 18, 15, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  padding: 80px 20px 20px;
}
.search-overlay.is-open { display: block; }
.search-box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-box__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-box__field input { flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; }
.search-box__results { padding: 10px; max-height: 60vh; overflow-y: auto; display: grid; gap: 4px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.search-result:hover { background: var(--paper-2); }
.search-result__price { font-family: var(--font-display); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.art-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.art-frame img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }

.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(30px, 4vw, 56px); }

/* ---------- 29. Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { max-width: 560px; }
  .product-layout, .contact-layout, .auth-layout, .cart-layout { grid-template-columns: 1fr; }
  .buy-card, .summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .auth-aside { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2n) { border-right: 0; }
  .step { padding-bottom: 26px; }
}

@media (max-width: 760px) {
  :root { --section-y: 52px; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .stats__item:last-child { border-bottom: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__art { order: -1; max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .step:last-child { border-bottom: 0; }
  .step__num { margin-bottom: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cart-row__thumb { width: 56px; height: 46px; }
  .cart-row__price { display: none; }
  .float-badge--tl { left: 8px; top: 8px; }
  .float-badge--br { right: 8px; bottom: 8px; }
  .hero__panel { aspect-ratio: 4 / 3.6; }
  .catalog-search { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .head-actions .icon-btn:not(.cart-link) { display: none; }
  .hero__actions .btn { width: 100%; }
  .section-head { margin-bottom: 24px; }
  .display--xl { font-size: clamp(32px, 9vw, 44px); }
  .page-head__row { align-items: flex-start; }
  .order-item { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .cta, .hero__art, .toast, .search-overlay { display: none !important; }
  body { background: #fff; }
}



/* =========================================================================
   Старая тема ByteBuy (возвращена по запросу): тёмная основа, лаймовый
   акцент, Inter. Ниже — точечные правки компонентов, которые в светлой
   теме опирались на «тёмный текст на светлом».
   ========================================================================= */

body::before {
  opacity: .16;
  mix-blend-mode: normal;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
}

.display { font-weight: 700; letter-spacing: -.035em; }
.display--xl { letter-spacing: -.04em; }

.site-head { background: rgba(10, 10, 11, .84); }
.site-head.is-scrolled { background: rgba(10, 10, 11, .94); }
.brand__mark { background: var(--accent); color: var(--accent-ink); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
}
.btn--primary:hover { --btn-bg: #a3d93e; --btn-bd: #a3d93e; }
.btn--ghost { --btn-bd: var(--line); --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bd: var(--line-strong); }
.btn.is-active { --btn-bg: var(--accent-soft); --btn-bd: var(--accent); --btn-fg: var(--accent); }

.prod__media { background: linear-gradient(135deg, #17171d, #0e0e12); }
.hero__panel { border-color: var(--line); background: #0d0d10; }
.hero__chips .chip-row { background: rgba(10, 10, 11, .7); }

.avatar { background: var(--accent); color: var(--accent-ink); }
.badge { background: var(--paper-2); color: var(--muted); border-color: var(--line); }
.badge--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.badge--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge--ok { background: rgba(200, 255, 77, .14); color: var(--accent); border-color: rgba(200, 255, 77, .32); }
.badge--line { background: transparent; color: var(--muted); border-color: var(--line-strong); }

.filter-pill.is-active,
.pagination .is-current,
.account-nav a.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.tab.is-active { border-bottom-color: var(--accent); }

.quote__stars { color: var(--accent); }
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--accent); }

.form-error {
  background: rgba(244, 63, 94, .12);
  border-color: rgba(244, 63, 94, .32);
  color: #fb7185;
}
.form-ok {
  background: rgba(74, 222, 128, .12);
  border-color: rgba(74, 222, 128, .32);
  color: #4ade80;
}
.notice { background: var(--paper-2); border-color: var(--line); }
.notice--accent {
  background: var(--accent-soft);
  border-color: rgba(200, 255, 77, .32);
  color: var(--accent);
}

.cta { background: var(--paper-2); border: 1px solid var(--line); }
.cta__title { color: var(--ink); }
.cta__text { color: var(--muted); }
.cta .btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta .btn--primary:hover { background: #a3d93e; border-color: #a3d93e; }
.cta .btn--ghost { --btn-bd: var(--line); --btn-fg: var(--ink); }

.site-foot { background: #060607; color: var(--ink); }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.foot-about { color: var(--muted); }
.foot-bottom { color: var(--muted); }
.foot-brand .brand__mark { background: var(--accent); color: var(--accent-ink); }

.toast { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.search-overlay { background: rgba(10, 10, 11, .74); }
.search-result:hover { background: var(--paper-2); }
.empty { border-color: var(--line-strong); }
.state-page__code { color: var(--accent); }
.prose pre { background: #0d0d10; border: 1px solid var(--line); }
.prose code { background: var(--paper-2); }
.prose blockquote { color: var(--ink-soft); }

.faq__item[open] .faq__plus { color: var(--accent-ink); }
.btn--quiet { color: var(--muted); border-color: var(--line-strong); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }


/* =========================================================================
   Привычные детали старого дизайна
   ========================================================================= */

.site-head { border-bottom-color: var(--line); }

.btn { padding: 12px 24px; font-size: 14px; font-weight: 600; }
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.display--xl { font-size: clamp(34px, 4.6vw, 60px); }

/* окно «файлы проекта» — как на старой главной */
.hero__panel--window {
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 1.6vw, 20px);
  background: linear-gradient(160deg, #15151a, #0b0b0e);
  display: grid;
}
.win {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0f0f13;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.win__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #14141a;
}
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: #3f3f46; }
.win__dots i:nth-child(1) { background: #ff5f57; }
.win__dots i:nth-child(2) { background: #febc2e; }
.win__dots i:nth-child(3) { background: #28c840; }
.win__title { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.win__title b { color: var(--ink); }
.win__body { padding: 16px; display: grid; gap: 14px; align-content: start; }
.win__file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.win__file-ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(200, 255, 77, .12);
  color: var(--accent);
  flex: none;
}
.win__file-text { min-width: 0; }
.win__file-name { font-size: 13.5px; font-weight: 600; }
.win__file-meta { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.win__file-btn {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.win__term {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: #0b0b0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.win__row { display: flex; gap: 8px; align-items: center; }
.win__ok { color: var(--accent); }
.win__cm { color: #52525b; }
.win__caret {
  width: 7px; height: 13px;
  background: var(--accent);
  display: inline-block;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .win__caret { animation: none; }
}

/* Плитки направлений — привычный вид старой главной */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.cat-tile__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 4px;
}
.cat-tile__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cat-tile__text { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cat-tile__meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.cat-tile__arrow { display: inline-flex; transition: transform .2s var(--ease), color .2s var(--ease); }
.cat-tile:hover .cat-tile__arrow { color: var(--accent); transform: translateX(3px); }
