/* ============================================================================
   USTOZ MEBEL — дизайн-система витрины.
   Тёплый ночной графит + латунь, сериф Playfair Display, гротеск Manrope.
   Сигнатурный мотив — столярная линейка (насечки-деления в разделителях).
   ========================================================================= */

:root {
  --bg: #12151d;
  --bg-deep: #0e1118;
  --panel: #171c26;
  --panel-2: #1c2230;
  --panel-3: #222939;
  --line: rgba(233, 224, 209, 0.09);
  --line-strong: rgba(233, 224, 209, 0.16);
  --text: #ede6d8;
  --text-dim: #c9c2b4;
  --muted: #98a0af;
  --brass: #c9a86a;
  --brass-strong: #e2c087;
  --brass-deep: #a5813f;
  --brass-dim: rgba(201, 168, 106, 0.16);
  --brass-glow: rgba(201, 168, 106, 0.30);
  --ink-on-brass: #241b0d;
  --danger: #d98a7a;
  --ok: #9dc08b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-1: 0 18px 44px rgba(0, 0, 0, 0.38);
  --shadow-2: 0 30px 70px rgba(0, 0, 0, 0.5);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-text: "Manrope", "Segoe UI", sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -80px, rgba(201, 168, 106, 0.07), transparent 60%),
    radial-gradient(900px 480px at -120px 30vh, rgba(93, 118, 136, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: min(1200px, 100% - 32px); } }

/* ── Типографика ─────────────────────────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0.2px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--brass);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--brass); opacity: 0.7; }

h1.display { font-size: clamp(42px, 5.6vw, 76px); margin: 18px 0 0; }
h2.display { font-size: clamp(28px, 3.4vw, 44px); margin: 14px 0 0; }
h1.display em, h2.display em { font-style: italic; color: var(--brass-strong); }

.lead { color: var(--muted); font-size: clamp(15.5px, 1.4vw, 18px); max-width: 56ch; }

/* ── Сигнатурный мотив: столярная линейка ────────────────────────────── */
.ruler {
  position: relative; height: 26px; width: 100%;
  background:
    repeating-linear-gradient(90deg,
      var(--line-strong) 0 1px, transparent 1px 9px) top / 100% 8px no-repeat,
    repeating-linear-gradient(90deg,
      rgba(201, 168, 106, 0.4) 0 1.5px, transparent 1.5px 45px) top / 100% 15px no-repeat;
  opacity: 0.9;
}
.ruler::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 22px;
  background: var(--brass); opacity: 0.55;
}
.section { padding: 96px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head .lead { margin: 10px 0 0; }
@media (max-width: 900px) { .section-head { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ── Кнопки ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn .icon { width: 17px; height: 17px; }
.btn-solid {
  background: linear-gradient(160deg, var(--brass-strong), var(--brass) 55%, var(--brass-deep));
  color: var(--ink-on-brass); box-shadow: 0 12px 30px rgba(201, 168, 106, 0.22);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(201, 168, 106, 0.3); }
.btn-solid:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brass-dim); background: rgba(201, 168, 106, 0.07); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none !important; }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, .card-item:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

/* ── Шапка ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(14, 17, 24, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 21px; letter-spacing: 0.06em; }
.logo b { font-weight: 700; }
.logo span { color: var(--muted); font-family: var(--font-text); font-size: 12px; letter-spacing: 0.28em; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #232a38, #161b25); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.logo-mark svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--brass); transition: width 0.25s; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-phone { font-size: 14.5px; color: var(--text-dim); display: inline-flex; gap: 8px; align-items: center; }
.header-phone svg { width: 15px; height: 15px; color: var(--brass); }
.header-phone:hover { color: var(--text); }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; color: var(--text); place-items: center; }
.burger svg { width: 20px; height: 20px; }
@media (max-width: 1020px) {
  .nav, .header-phone span { display: none; }
  .burger { display: grid; }
  .header-cta .btn { padding: 11px 18px; }
}
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39;
  background: rgba(14, 17, 24, 0.97); border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px; flex-direction: column; gap: 4px;
}
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text-dim); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero-copy .lead { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 42px; align-items: center; color: var(--muted); font-size: 13.5px; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 12.5px; color: var(--brass-strong);
  border: 1px solid var(--brass-dim); border-radius: 999px; padding: 7px 14px;
  background: rgba(201, 168, 106, 0.06);
}
.hero-badge svg { width: 15px; height: 15px; }

.hero-stage { position: relative; }
.hero-card {
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #1e2532, #141924);
  box-shadow: var(--shadow-2); position: relative;
}
.hero-card > svg { width: 100%; height: auto; }
.hero-card-caption {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(16, 19, 27, 0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px;
}
.hero-card-caption .t { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }
.hero-card-caption .n { font-family: var(--font-display); font-size: 20px; margin-top: 3px; }
.hero-card-caption .go {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid var(--brass-dim); display: grid; place-items: center; color: var(--brass-strong);
  transition: background 0.25s, transform 0.25s;
}
.hero-card-caption .go:hover { background: rgba(201, 168, 106, 0.14); transform: translate(2px, -2px); }
.hero-card-caption .go svg { width: 18px; height: 18px; }
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 40px; }
}

/* ── Процесс ─────────────────────────────────────────────────────────── */
.process { padding: 64px 0 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-step {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); transition: transform 0.3s ease, border-color 0.3s ease;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--brass-dim); }
.process-step .num {
  position: absolute; top: 20px; right: 22px; font-family: var(--font-display);
  font-size: 15px; color: var(--muted); opacity: 0.7;
}
.process-step .pic { width: 52px; height: 52px; border-radius: 14px; background: rgba(201, 168, 106, 0.08); border: 1px solid var(--brass-dim); display: grid; place-items: center; margin-bottom: 18px; }
.process-step .pic svg { width: 30px; height: 30px; }
.process-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 1020px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ── Каталог: чипы с драгом ──────────────────────────────────────────── */
.chips-bar { position: relative; margin-bottom: 34px; }
.chips {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 10px; cursor: grab; user-select: none; -webkit-user-select: none;
  /* краевые фейды при переполнении (P1: ряд чипов драгабелен) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chips.dragging { cursor: grabbing; scroll-behavior: auto; }
.chips::before, .chips::after {
  content: ""; flex: 0 0 6px;
}
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025); color: var(--text-dim);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.chip svg { width: 14px; height: 14px; opacity: 0.7; }
.chip:hover { border-color: var(--brass-dim); color: var(--text); transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(160deg, var(--brass-strong), var(--brass-deep));
  border-color: transparent; color: var(--ink-on-brass);
}
.chips-hint {
  position: absolute; right: 0; top: -30px; display: inline-flex; gap: 7px; align-items: center;
  color: var(--muted); font-size: 12px;
}
.chips-hint svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .chips-hint { display: none; } }

/* ── Сетка изделий ───────────────────────────────────────────────────── */
.items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .items-grid { grid-template-columns: 1fr; } }
.card-item {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: left; padding: 0; color: var(--text); width: 100%;
}
.card-item:hover { transform: translateY(-5px); border-color: var(--brass-dim); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4); }
.card-item .ill { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #10141c; }
.card-item .ill svg { width: 100%; height: 100%; transition: transform 0.5s ease; }
.card-item:hover .ill svg { transform: scale(1.045); }
.card-item .ill .tag {
  position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-strong);
  background: rgba(14, 17, 24, 0.72); border: 1px solid var(--brass-dim);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.card-item .ill .in-cart {
  position: absolute; right: 14px; top: 14px; display: none; align-items: center; gap: 6px;
  background: linear-gradient(160deg, var(--brass-strong), var(--brass-deep));
  color: var(--ink-on-brass); font-size: 11.5px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px;
}
.card-item.added .ill .in-cart { display: inline-flex; }
.card-item .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-item .name { font-family: var(--font-display); font-size: 19.5px; font-weight: 600; line-height: 1.25; }
.card-item .collection { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.card-item .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-item .meta b { color: var(--text-dim); font-weight: 600; }
.card-item .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.card-item .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.card-item .price { font-family: var(--font-display); font-size: 19px; color: var(--brass-strong); }
.card-item .lead-days { color: var(--muted); font-size: 12.5px; }

/* ── Комнаты ─────────────────────────────────────────────────────────── */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rooms-grid { grid-template-columns: 1fr; } }
.card-room {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  transition: transform 0.3s ease, border-color 0.3s ease; display: block; width: 100%;
  text-align: left; color: var(--text); padding: 0;
}
.card-room:hover { transform: translateY(-4px); border-color: var(--brass-dim); }
.card-room .ill { aspect-ratio: 16 / 10; overflow: hidden; background: #10141c; }
.card-room .ill img, .card-room .ill svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-room:hover .ill img, .card-room:hover .ill svg { transform: scale(1.04); }
.card-room .body { padding: 18px 20px 22px; }
.card-room h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-room h3 .cnt { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-strong); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.card-room p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ── Почему мы / числа ───────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 1020px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
.stat {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 24px 22px;
  background: linear-gradient(175deg, var(--panel-2), var(--panel)); position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 10px);
  pointer-events: none;
}
.stat .n { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 46px); color: var(--brass-strong); line-height: 1; }
.stat .n small { font-size: 0.55em; color: var(--brass); }
.stat .label { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.why-notes { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .why-notes { grid-template-columns: 1fr; } }
.why-note { display: flex; gap: 14px; align-items: flex-start; }
.why-note svg { width: 22px; height: 22px; color: var(--brass); flex: none; margin-top: 2px; }
.why-note b { display: block; font-size: 15px; margin-bottom: 4px; }
.why-note span { color: var(--muted); font-size: 13.5px; }

/* ── Коллекции ───────────────────────────────────────────────────────── */
.collections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .collections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .collections-grid { grid-template-columns: 1fr; } }
.card-collection {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(175deg, var(--panel-2), var(--panel)); padding: 26px 24px 24px;
  overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.card-collection:hover { transform: translateY(-4px); border-color: var(--brass-dim); }
.card-collection::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, var(--tone, rgba(201,168,106,.25)) 0%, transparent 70%);
  opacity: 0.5;
}
.card-collection .swatch { display: block; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); margin-bottom: 18px; background: var(--tone); position: relative; }
.card-collection .swatch::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 4px);
}
.card-collection h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; }
.card-collection .material { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.card-collection p { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ── Контакты ────────────────────────────────────────────────────────── */
.contacts-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
  border-radius: 28px; border: 1px solid var(--line-strong); overflow: hidden;
  background: linear-gradient(170deg, #1d2431, #141924); box-shadow: var(--shadow-1);
}
@media (max-width: 900px) { .contacts-card { grid-template-columns: 1fr; } }
.contacts-copy { padding: 48px 46px; }
.contacts-copy h2 { margin: 12px 0 0; }
.contacts-copy .lead { margin-top: 14px; }
.contacts-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.contacts-list { padding: 44px 42px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
@media (max-width: 900px) { .contacts-list { border-left: 0; border-top: 1px solid var(--line); padding: 30px 28px 36px; } }
.contact-row { display: flex; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text-dim); transition: color 0.2s; }
.contact-row:last-child { border-bottom: 0; }
a.contact-row:hover { color: var(--text); }
.contact-row .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--brass-dim); background: rgba(201, 168, 106, 0.07); display: grid; place-items: center; color: var(--brass-strong); }
.contact-row .ic svg { width: 18px; height: 18px; }
.contact-row .k { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-row .v { font-size: 15.5px; font-weight: 600; margin-top: 2px; }

/* ── Футер ───────────────────────────────────────────────────────────── */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 34px 0 40px; background: rgba(10, 12, 18, 0.5); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-in .logo { font-size: 17px; }
.footer-note { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ── Плавающая кнопка заявки ─────────────────────────────────────────── */
.lead-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, var(--brass-strong), var(--brass-deep));
  color: var(--ink-on-brass); border: 0; border-radius: 999px; padding: 15px 22px;
  font-weight: 800; font-size: 14.5px; box-shadow: 0 16px 40px rgba(201, 168, 106, 0.35);
  transform: translateY(90px); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.25s;
}
.lead-fab.show { transform: none; opacity: 1; }
.lead-fab:hover { box-shadow: 0 20px 50px rgba(201, 168, 106, 0.45); }
.lead-fab .icon { width: 17px; height: 17px; }
@media (max-width: 620px) { .lead-fab { right: 16px; bottom: 16px; padding: 13px 18px; } }

/* ── Модалка изделия ─────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 15, 0.72);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity 0.25s ease;
}
.overlay.open { display: flex; opacity: 1; }
.modal {
  width: min(860px, 100%); max-height: min(86vh, 780px); overflow: auto;
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative;
  transform: translateY(14px) scale(0.985); transition: transform 0.3s ease;
}
.overlay.open .modal { transform: none; }
@media (max-width: 780px) { .modal { grid-template-columns: 1fr; max-height: 92vh; } }
.modal .pic { background: #10141c; min-height: 320px; }
.modal .pic svg, .modal .pic img { width: 100%; height: 100%; object-fit: cover; }
.modal .info { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.modal .collection { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.modal h3 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.modal .desc { color: var(--muted); font-size: 14.5px; margin: 0; }
.modal .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.modal .spec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.modal .spec .k { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.modal .spec .v { font-size: 14.5px; font-weight: 700; margin-top: 4px; }
.modal .price-row { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.modal .price { font-family: var(--font-display); font-size: 26px; color: var(--brass-strong); }
.modal .close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(14, 17, 24, 0.7); color: var(--text);
  display: grid; place-items: center; z-index: 2; transition: border-color 0.2s, transform 0.2s;
}
.modal .close:hover { border-color: var(--brass-dim); transform: rotate(90deg); }
.modal .close svg { width: 18px; height: 18px; }

/* ── Панель заявки (шторка) ──────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(460px, 100%);
  background: linear-gradient(175deg, #1b2130, #141824); border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.3, 1); display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); display: grid; place-items: center; }
.drawer-close svg { width: 17px; height: 17px; }
.drawer-close:hover { border-color: var(--brass-dim); }
.drawer-body { flex: 1; overflow: auto; padding: 20px 26px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { color: var(--muted); font-size: 14px; padding: 26px 0; text-align: center; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: rgba(255, 255, 255, 0.02); }
.cart-item .thumb { width: 64px; height: 52px; border-radius: 10px; overflow: hidden; background: #10141c; }
.cart-item .thumb svg { width: 100%; height: 100%; }
.cart-item .n { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cart-item .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item .rm { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; transition: color 0.2s, border-color 0.2s; }
.cart-item .rm:hover { color: var(--danger); border-color: rgba(217, 138, 122, 0.4); }
.cart-item .rm svg { width: 15px; height: 15px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.cart-total .k { color: var(--muted); font-size: 13px; }
.cart-total .v { font-family: var(--font-display); font-size: 22px; color: var(--brass-strong); }
.cart-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ── Форма ───────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, background 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: rgba(201, 168, 106, 0.05); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 12px; }
.field.invalid .err { display: block; }
.hp-field { position: absolute; left: -4000px; top: -4000px; opacity: 0; height: 0; overflow: hidden; }
.form-status { display: none; border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(157, 192, 139, 0.08); border-color: rgba(157, 192, 139, 0.3); color: var(--ok); }
.form-status.err { background: rgba(217, 138, 122, 0.07); border-color: rgba(217, 138, 122, 0.32); color: var(--danger); }
.form-status b { font-family: var(--font-display); letter-spacing: 0.04em; }

/* ── ADMIN ───────────────────────────────────────────────────────────── */
.admin-body { background: radial-gradient(900px 400px at 80% -60px, rgba(201, 168, 106, 0.06), transparent 60%), var(--bg-deep); }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.admin-top .logo { font-size: 18px; }
.admin-demo-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  color: var(--brass-strong); border: 1px solid var(--brass-dim); background: rgba(201, 168, 106, 0.08);
  padding: 6px 12px; border-radius: 999px;
}
.gate-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 0; }
.gate {
  width: min(460px, 100%); border-radius: 26px; border: 1px solid var(--line-strong);
  background: linear-gradient(175deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow-2);
  padding: 40px 38px 36px;
}
.gate .ic { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--brass-dim); background: rgba(201, 168, 106, 0.08); display: grid; place-items: center; color: var(--brass-strong); margin-bottom: 20px; }
.gate .ic svg { width: 26px; height: 26px; }
.gate h1 { margin: 0 0 8px; font-size: 30px; }
.gate .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.gate .steps { counter-reset: st; display: flex; flex-direction: column; gap: 14px; }
.gate .step { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.gate .step .t { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.gate .step .t .no { width: 20px; height: 20px; border-radius: 50%; background: var(--brass-dim); color: var(--brass-strong); font-size: 11px; display: grid; place-items: center; flex: none; }
.gate .step .row { display: flex; gap: 10px; margin-top: 12px; }
.gate input { flex: 1; }
.gate .row input, #g-id, #g-code {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}
.gate .row input:focus { outline: none; border-color: var(--brass); background: rgba(201, 168, 106, 0.05); }
.gate .row input::placeholder { color: rgba(152, 160, 175, 0.55); }
.gate .hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }
.gate-msg { display: none; margin-top: 14px; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; border: 1px solid transparent; }
.gate-msg.show { display: block; }
.gate-msg.err { background: rgba(217, 138, 122, 0.08); border-color: rgba(217, 138, 122, 0.3); color: var(--danger); }
.gate-msg.ok { background: rgba(157, 192, 139, 0.08); border-color: rgba(157, 192, 139, 0.3); color: var(--ok); }
.code-input { letter-spacing: 0.55em; font-family: var(--font-display); font-size: 20px; text-align: center; }

.board-wrap { padding: 8px 0 40px; }
.board-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; flex-wrap: wrap; }
.board-meta h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.board-meta .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.board-col { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 236px; }
.board-col-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.board-col-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--col-color, var(--brass)); box-shadow: 0 0 12px var(--col-color, var(--brass)); opacity: 0.9; }
.board-col-head .t { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.board-col-head .cnt { margin-left: auto; font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; }
.lead-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; width: 100%; text-align: left;
  background: linear-gradient(175deg, var(--panel-2), var(--panel)); color: var(--text);
  transition: transform 0.22s, border-color 0.22s; cursor: pointer;
}
.lead-card:hover { transform: translateY(-3px); border-color: var(--brass-dim); }
.lead-card .id { font-size: 11px; letter-spacing: 0.1em; color: var(--brass); font-weight: 700; }
.lead-card .name { font-size: 15px; font-weight: 700; margin-top: 5px; }
.lead-card .phone { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.lead-card .items { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.lead-card .when { font-size: 11.5px; color: var(--muted); margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.lead-card .demo { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--brass-strong); border: 1px solid var(--brass-dim); border-radius: 999px; padding: 1px 7px; }

/* шторка заявки */
.lead-drawer .info { padding: 26px 26px 30px; overflow: auto; }
.lead-drawer .id { font-size: 12px; letter-spacing: 0.12em; color: var(--brass); font-weight: 800; }
.lead-drawer h2 { margin: 8px 0 2px; font-size: 26px; }
.lead-drawer .phone { color: var(--text-dim); font-size: 15px; }
.lead-drawer .block { margin-top: 20px; }
.lead-drawer .block .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lead-drawer .block .v { font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }
.lead-drawer .items-list { display: flex; flex-direction: column; gap: 8px; }
.lead-drawer .items-list .row { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.lead-drawer .items-list .row b { color: var(--brass-strong); font-weight: 600; white-space: nowrap; }
.status-btns { display: flex; flex-direction: column; gap: 8px; }
.status-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02); color: var(--text-dim); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 600; transition: border-color 0.2s, background 0.2s; text-align: left; }
.status-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.status-btn:hover { border-color: var(--brass-dim); background: rgba(201, 168, 106, 0.06); }
.status-btn.current { border-color: var(--brass); color: var(--text); background: rgba(201, 168, 106, 0.09); }
.status-btn.current .mark { margin-left: auto; color: var(--brass-strong); width: 16px; height: 16px; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.nf .code { font-family: var(--font-display); font-size: clamp(80px, 18vw, 160px); color: var(--brass-strong); line-height: 1; }
.nf p { color: var(--muted); }

/* мелкая утилита */
.only-mobile { display: none; }
@media (max-width: 720px) { .only-mobile { display: inline-flex; } }
