/* ============================================================
   lend_shop — премиальный дизайн: editorial-industrial / blueprint
   Fraunces (display) · Hanken Grotesk (body) · JetBrains Mono (tech)
   Палитра: тёплый near-black + акцент «медь/амбер»
   ============================================================ */

:root {
  /* Фон / поверхности (тёплый графит) */
  --bg:            #0e0d0b;
  --bg-deep:       #080706;
  --surface:       #17150f;
  --surface-2:     #201d16;
  --surface-3:     #2a261d;

  /* Текст (кость / тёплый белый) */
  --text:          #ece7db;
  --text-muted:    #a9a291;
  --text-dim:      #726c5d;

  /* Акцент — медь/амбер */
  --accent:        #E3A76B;
  --accent-light:  #F3CB9A;
  --accent-deep:   #C07F44;
  --accent-glow:   rgba(227, 167, 107, 0.18);

  /* Линии / чертёжная сетка */
  --line:          rgba(236, 231, 219, 0.07);
  --line-strong:   rgba(236, 231, 219, 0.12);
  --border:        rgba(227, 167, 107, 0.16);

  --radius:        18px;
  --radius-sm:     10px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.45), 0 10px 30px rgba(0,0,0,0.4);
  --shadow-lift: 0 4px 8px rgba(0,0,0,0.4), 0 30px 70px rgba(0,0,0,0.6);
  --glow: 0 0 70px var(--accent-glow);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }
::selection { background: var(--accent); color: #1a1206; }

/* ---------- Атмосферный фон: чертёжная сетка + свечения + шум ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.bg-layer.glows {
  background:
    radial-gradient(50% 42% at 12% -5%, rgba(227,167,107,0.12), transparent 60%),
    radial-gradient(42% 40% at 100% 8%, rgba(150,120,80,0.08), transparent 60%),
    radial-gradient(60% 55% at 50% 118%, rgba(192,127,68,0.10), transparent 60%),
    var(--bg);
}
.bg-layer.grid {
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}
.bg-layer.noise {
  z-index: -1; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Утилиты ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .6; }

.section { padding: 130px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(36px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.015em;
  margin: 20px 0 16px;
}
.section-head h2 em { font-style: italic; color: var(--accent-light); }
.section-head p { color: var(--text-muted); font-size: 18px; max-width: 560px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 13px 32px;
  background: rgba(14,13,11,0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid var(--line-strong);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }
.brand b { font-weight: 800; }
.brand .mono-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: .1em; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--text-muted); font-size: 15px; transition: color .2s; position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px; background: var(--accent); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--accent); color: #1a1206; box-shadow: 0 8px 26px rgba(227,167,107,0.26); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(227,167,107,0.42); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(227,167,107,0.05); }
.btn-block { width: 100%; justify-content: center; padding: 16px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 120; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .25s; transform-origin: center; }
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 200px 0 120px; overflow: hidden; }
/* Регистрационные метки по углам hero */
.hero .reg { position: absolute; width: 26px; height: 26px; opacity: .35; pointer-events: none; }
.hero .reg::before, .hero .reg::after { content:""; position:absolute; background: var(--accent); }
.hero .reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.hero .reg::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.hero .reg.tl { top: 90px; left: 30px; } .hero .reg.tr { top: 90px; right: 30px; }
.hero .reg.bl { bottom: 40px; left: 30px; } .hero .reg.br { bottom: 40px; right: 30px; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-inner { max-width: 720px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(50px, 8vw, 118px); line-height: 0.96; letter-spacing: -0.025em;
  margin: 30px 0 30px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero p { font-size: clamp(17px, 1.9vw, 21px); color: var(--text-muted); max-width: 540px; margin-bottom: 42px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Kinetic reveal слов заголовка */
/* padding+отрицательный margin снизу дают место хвостам букв (у, д, ц, р, щ),
   которые иначе срезал бы overflow:hidden от анимации появления. */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.reveal-word > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease-out) forwards; }
@keyframes wordUp { to { transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(22px); animation: fadeUp .9s var(--ease-out) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Технический визуал справа — вращающийся «прибор»/перекрестие */
.hero-visual { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeUp 1.1s var(--ease-out) .5s forwards; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.spin-slow { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.spin-rev { transform-origin: 50% 50%; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-label { font-family: var(--font-mono); font-size: 9px; fill: var(--text-dim); letter-spacing: 1px; }
.hv-readout { font-family: var(--font-mono); }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 96px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--bg); padding: 26px 24px; }
.stat .num { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.stat .num .suf { color: var(--accent); font-family: var(--font-mono); font-size: 0.5em; vertical-align: super; }
.stat .lbl { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; margin-top: 12px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Marquee категорий ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✳"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Каталог: контролы ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em;
  padding: 9px 16px; border-radius: 999px; color: var(--text-muted);
  border: 1px solid var(--line-strong); transition: .25s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border); }
.chip.active { background: var(--accent); color: #1a1206; border-color: var(--accent); font-weight: 600; }
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); min-width: 250px; transition: border-color .25s;
}
.search:focus-within { border-color: var(--border); }
.search span { color: var(--text-dim); }
.search input { background: none; border: none; color: var(--text); outline: none; width: 100%; font-size: 15px; }
.search input::placeholder { color: var(--text-dim); }

/* ---------- Каталог: bento-сетка ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; grid-auto-rows: 1fr; }
.card {
  grid-column: span 4;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 130%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
}
/* уголковые тех-метки */
.card::before, .card::after {
  content: ""; position: absolute; width: 12px; height: 12px; z-index: 3; pointer-events: none;
  border-color: var(--accent); opacity: 0; transition: opacity .4s var(--ease);
}
.card::before { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.card::after { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }
.card:hover::before, .card:hover::after { opacity: .8; }
.card.featured { grid-column: span 8; grid-row: span 2; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--border); }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card.featured .card-media { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(8,7,6,0.5)); }
.card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); padding: 5px 11px; border-radius: 999px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(8,7,6,0.68); backdrop-filter: blur(10px); color: var(--accent-light); font-weight: 500; border: 1px solid var(--line);
}
.card-ext {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-mono); padding: 5px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: rgba(8,7,6,0.68); backdrop-filter: blur(10px); color: var(--text-muted); border: 1px solid var(--line);
}
.card-body { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.card-spec { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }
.card-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -0.01em; }
.card.featured .card-body h3 { font-size: 34px; }
.card-desc { color: var(--text-muted); font-size: 14.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.featured .card-desc { -webkit-line-clamp: 3; font-size: 16px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-mono); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card .buy { font-family: var(--font-mono); padding: 10px 18px; border-radius: 999px; background: transparent; border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: .25s var(--ease); }
.card .buy:hover { background: var(--accent); color: #1a1206; border-color: var(--accent); }

/* Появление по скроллу */
.io { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.io.visible { opacity: 1; transform: none; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); padding: 70px 0; font-family: var(--font-mono); }

/* ---------- Секция «как это работает» ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 36px 30px; position: relative; transition: border-color .3s, transform .3s var(--ease); }
.step:hover { border-color: var(--border); transform: translateY(-4px); }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.step h4 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 22px 0 10px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Секция «о магазине» — спецификация ---------- */
.specsheet { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.specsheet .row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line); align-items: baseline; }
.specsheet .row:last-child { border-bottom: none; }
.specsheet .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.specsheet .v { color: var(--text-muted); font-size: 16px; }
.specsheet .v b { color: var(--text); font-weight: 600; }

/* ---------- Модалка ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,5,4,0.78); backdrop-filter: blur(10px);
}
.modal-overlay.open { display: flex; animation: fadeUp .35s var(--ease); }
.modal {
  width: 100%; max-width: 940px; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lift); position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.modal-media { background: var(--surface-2); position: relative; min-height: 340px; }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 44px 40px; display: flex; flex-direction: column; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(8,7,6,0.6); backdrop-filter: blur(10px); font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: .25s; border: 1px solid var(--line);
}
.modal-close:hover { background: var(--accent); color: #1a1206; }
.modal-body .cat { font-family: var(--font-mono); color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.modal-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.06; margin: 14px 0 18px; letter-spacing: -0.01em; }
.modal-body .desc { color: var(--text-muted); font-size: 16px; margin-bottom: 22px; }
.modal-meta { display: flex; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.modal-meta .pillmeta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); border: 1px solid var(--line-strong); padding: 8px 13px; border-radius: 8px; }
.modal-meta .pillmeta b { color: var(--text); font-weight: 700; }
.modal-price { font-family: var(--font-mono); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; outline: none;
  transition: border-color .2s; font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.note { font-size: 13px; color: var(--text-dim); margin-top: 16px; text-align: center; font-family: var(--font-mono); line-height: 1.7; }
.note a { color: var(--accent); }

/* Оплата по QR */
.qr-box {
  background: #fff; border-radius: 14px; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 18px 0; box-shadow: var(--shadow-1);
}
.qr-img { width: 100%; max-width: 240px; height: auto; display: block; }
.qr-empty {
  font-family: var(--font-mono); font-size: 13px; color: #8a8377;
  text-align: center; padding: 44px 18px; line-height: 1.6;
}
.qr-rows { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.qr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.qr-row:last-child { border-bottom: none; }
.qr-row span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.qr-row b { font-size: 17px; font-weight: 700; text-align: right; }
.qr-row b.code { font-family: var(--font-mono); color: var(--accent); letter-spacing: .12em; }
.qr-steps { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }

/* Согласие с офертой */
.agree { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 18px; cursor: pointer; }
.agree input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.agree span { font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Состояния оплаты */
.pay-state { text-align: center; padding: 16px 0; }
.pay-state .ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(227,167,107,0.14); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.pay-state h4 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-bottom: 10px; }
.pay-state p { color: var(--text-muted); margin-bottom: 24px; }
.spinner { width: 48px; height: 48px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 20px; animation: spin 0.8s linear infinite; }
.hidden { display: none !important; }
.err { color: #f0937d; font-family: var(--font-mono); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-strong); padding: 80px 0 44px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 44px; margin-bottom: 56px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--text-muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; border-top: 1px solid var(--line); padding-top: 28px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(160%);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 14px 24px; border-radius: 999px; box-shadow: var(--shadow-lift); z-index: 300;
  transition: transform .45s var(--ease); font-size: 15px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Усиленный визуал ---------- */
/* Прогресс-бар прокрутки */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-light));
  box-shadow: 0 0 12px var(--accent-glow); transition: width .1s linear;
}
/* Курсор-подсветка в hero */
.hero-spot {
  position: absolute; left: 0; top: 0; width: 640px; height: 640px; border-radius: 50%;
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(227,167,107,0.13), transparent 62%);
  opacity: 0; transition: opacity .6s ease; mix-blend-mode: screen; will-change: left, top;
}
.hero:hover .hero-spot { opacity: 1; }
.hero .container { position: relative; z-index: 1; }
.hero-visual svg { will-change: transform; transition: transform .25s var(--ease-out); }

/* 3D-наклон карточек */
.grid { perspective: 1500px; }
.card { transform-style: preserve-3d; will-change: transform; }
.card-media, .card-body { transform: translateZ(0.01px); }

/* Магнитные кнопки — эффект задаётся из JS (transform уже с transition) */

/* Скелетоны загрузки каталога */
.skeleton { grid-column: span 4; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.skeleton:first-child { grid-column: span 8; }
.sk-media { aspect-ratio: 3/2; }
.skeleton:first-child .sk-media { aspect-ratio: 16/9; }
.sk-line { height: 12px; border-radius: 6px; margin: 14px 22px; }
.sk-line.short { width: 40%; }
.sk-media, .sk-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%; animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* Нумерация секций (редакционная деталь) */
.section-head { position: relative; }
.section-index {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-dim);
  display: block; margin-bottom: 14px;
}
.specsheet .row { transition: background .3s var(--ease); }
.specsheet .row:hover { background: rgba(227,167,107,0.035); }

/* Мягкое «дыхание» акцентной точки бренда */
.brand .dot { animation: pulse 3.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 18px 3px var(--accent-glow); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 980px) {
  .card, .card.featured, .skeleton, .skeleton:first-child { grid-column: span 6; grid-row: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .specsheet .row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .section { padding: 90px 0; }
  .nav-burger { display: flex; }
  .nav > .btn-primary { display: none; }

  /* Полноэкранное мобильное меню (крупные тап-зоны 44px+) */
  .nav-links {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 0 32px;
    background: rgba(10,9,7,0.96);
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a {
    font-family: var(--font-display); font-size: 34px; line-height: 1.1;
    color: var(--text); padding: 14px 0; width: 100%;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(14px);
  }
  .nav-links.open a { animation: fadeUp .5s var(--ease-out) forwards; }
  .nav-links.open a:nth-child(1) { animation-delay: .06s; }
  .nav-links.open a:nth-child(2) { animation-delay: .12s; }
  .nav-links.open a:nth-child(3) { animation-delay: .18s; }
  .nav-links.open a:nth-child(4) { animation-delay: .24s; }
  .nav-links a::after { display: none; }
  body.menu-open { overflow: hidden; }
  .grid { gap: 16px; }
  .card, .card.featured, .skeleton, .skeleton:first-child { grid-column: 1 / -1; }
  .modal { grid-template-columns: 1fr; }
  .modal-media { min-height: 200px; aspect-ratio: 16/9; }
  .modal-body { padding: 32px 26px; }
  .hero { padding: 160px 0 80px; }
  .container { padding: 0 20px; }
}

/* ---------- Доступность ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal-word > span { transform: none; }
  .io { opacity: 1; transform: none; }
  .hero-visual, .fade-in { opacity: 1; }
}
