/* ==========================================================================
   AerenParts — дизайн-система витрины и админ-панели
   Чёрный фон · шампань-акцент · Cormorant Garamond (заголовки) + Manrope (интерфейс)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Manrope:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #060606;
  --bg-2: #000000;
  --panel: #0E0E0E;
  --panel-2: #141414;
  --line: #1F1F1F;
  --line-2: #2C2C2C;
  --text: #FFFFFF;
  --text-2: #D6D6D6;
  --muted: #A3A3A3;
  --muted-2: #7A7A7A;
  --gold: #CBB98F;
  --gold-light: #E4D6B0;
  --gold-dark: #A8925F;
  --gold-grad: linear-gradient(135deg, #E4D6B0 0%, #CBB98F 45%, #A8925F 100%);
  --danger: #E5484D;
  --ok: #7CD992;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --brand: 'Michroma', 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --wrap: 1360px;
  --gutter: 48px;
  --ease: cubic-bezier(.2,.7,.2,1);
  /* совместимость со старыми именами переменных (админка) */
  --text-muted: var(--muted);
  --border: var(--line-2);
  --glass: rgba(255,255,255,0.02);
  --gold-soft: var(--gold-light);
  --tg: var(--gold);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { min-height: 100vh; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(203,185,143,0.35); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; gap: 20px; }

/* ---------- typography ---------- */
.eyebrow { margin: 0; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.eyebrow.gold { color: var(--gold); }
.num { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--gold); }
.rule { display: inline-block; width: 40px; height: 1px; background: var(--gold); }
.kicker { display: flex; align-items: center; gap: 14px; }
.h1, .h2, .h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.h1 { font-weight: 300; font-size: clamp(56px, 7.8vw, 112px); line-height: .92; letter-spacing: -.02em; }
.h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; }
.h3 { font-size: 30px; line-height: 1; font-weight: 500; }
.h1 i, .h2 i, .h3 i, .gold-i { font-style: italic; color: var(--gold); }
.lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.muted { color: var(--muted); }

/* ---------- glass / surfaces ---------- */
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-gold { background: var(--gold-grad); color: #0B0B0B; border-color: #D9C9A0; }
.btn-gold:hover:not(:disabled) { color: #0B0B0B; filter: brightness(1.08); box-shadow: 0 12px 36px rgba(203,185,143,.28); }
.btn-white { background: #fff; color: #000; border-color: #fff; }
.btn-white:hover:not(:disabled) { color: #000; background: #EDEDED; box-shadow: 0 10px 30px rgba(255,255,255,.12); }
.btn-ghost, .btn-outline { background: rgba(255,255,255,.02); color: var(--text); border-color: rgba(255,255,255,.32); }
.btn-ghost:hover:not(:disabled), .btn-outline:hover:not(:disabled) { background: #fff; color: #000; border-color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(229,72,77,.4); }
.btn-danger:hover { background: rgba(229,72,77,.1); color: var(--danger); }
.btn-tg { background: var(--gold-grad); color: #0B0B0B; border-color: #D9C9A0; }
.btn-block { width: 100%; }
.btn-lg { height: 58px; }
/* кнопка с отдельной «ячейкой» под иконку */
.btn-split { padding: 0; gap: 0; height: 58px; }
.btn-split > .t { padding: 0 30px; }
.btn-split > .i { align-self: stretch; width: 58px; display: flex; align-items: center; justify-content: center; border-left: 1px solid rgba(0,0,0,.16); }
.btn-outline.btn-split > .i { border-left-color: rgba(255,255,255,.2); }
.btn-outline.btn-split:hover > .i { border-left-color: rgba(0,0,0,.14); }

.icon-btn { background: none; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: var(--gold); }
.icon-circle {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,.02); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .25s, background .25s, color .25s;
}
.icon-circle:hover { border-color: var(--gold); background: rgba(203,185,143,.08); color: var(--text); }
.icon-circle.active { color: var(--gold); border-color: var(--gold); }
.icon-circle.dark { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.22); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; border: 2px solid #000; background: var(--gold); color: #000;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2);
  color: var(--text); text-decoration: none; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; transition: color .25s, border-color .25s;
}
.link-arrow .c { width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; }
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.chip {
  height: 42px; padding: 0 20px; border-radius: 21px; cursor: pointer; background: none; color: var(--text);
  border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: #fff; }
.chip.active { background: #fff; color: #000; border-color: #fff; }

/* ---------- inputs ---------- */
.text-input, .select-input, .status-select {
  width: 100%; height: 54px; padding: 0 16px; background: #000; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 0; font-size: 15px; font-weight: 500; outline: none;
  transition: border-color .25s;
}
.text-input::placeholder { color: #6a6a6a; }
.text-input:focus, .select-input:focus, .status-select:focus { border-color: var(--gold); }
textarea.text-input { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.select-input, .status-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23CBB98F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.status-select { height: 38px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0; }
.vin-input { letter-spacing: .12em; text-transform: uppercase; }
.check-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 500;
  max-width: calc(100vw - 32px); padding: 16px 22px; background: rgba(14,14,14,.96);
  border: 1px solid var(--line-2); border-left: 2px solid var(--gold);
  font-size: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); backdrop-filter: blur(12px);
}
.toast.error { border-left-color: var(--danger); }
.api-banner { margin: 20px 0 0; padding: 14px 18px; background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.3); color: #ffb3b5; font-size: 13.5px; }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto; padding: 40px 36px 36px; background: var(--panel); border: 1px solid var(--line-2); }
.modal-box.wide { max-width: 600px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; }
.modal-title { margin: 0 0 8px; font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.modal-sub { margin: 0 0 24px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.util-bar { background: #000; border-bottom: 1px solid var(--line); }
.util-bar .wrap { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.util-bar a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.util-bar a:hover { color: var(--gold); }
.util-left, .util-right { display: flex; align-items: center; gap: 24px; }
.util-left svg { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(6,6,6,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.07); transition: background .3s; }
.site-header.on-hero { background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-hero.scrolled { background: rgba(6,6,6,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: rgba(255,255,255,.07); }
.navbar { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { background: none; border: none; padding: 0; cursor: pointer; color: var(--text); display: flex; align-items: center; }
.ap-logo { display: inline-flex; align-items: center; gap: calc(12px * var(--s, 1)); color: inherit; }
.ap-logo-words { display: flex; flex-direction: column; gap: calc(4px * var(--s, 1)); }
.ap-logo-a { font-family: var(--brand); font-size: calc(17px * var(--s, 1)); line-height: 1; letter-spacing: .2em; }
.ap-logo-b { font-family: var(--brand); font-size: calc(8px * var(--s, 1)); line-height: 1; letter-spacing: .62em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { background: none; border: none; padding: 12px 0; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-search { position: relative; display: flex; align-items: center; gap: 10px; width: 250px; height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 23px; color: var(--muted); transition: border-color .25s; }
.nav-search:focus-within { border-color: var(--gold); }
.nav-search input { flex: 1; min-width: 0; height: 100%; background: none; border: none; outline: none; color: var(--text); font-size: 13px; }
.nav-search input::placeholder { color: #7a7a7a; }
.btn-login { height: 46px; padding: 0 22px 0 18px; border-radius: 23px; letter-spacing: .14em; }
.nav-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold); background: var(--panel-2); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--serif); font-size: 20px; padding: 0; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.searchbar { display: none; }

/* mobile tab bar (телефон / Telegram Mini App) */
.tabbar { display: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: #000; margin-top: -88px; padding-top: 88px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 32%, rgba(0,0,0,.05) 62%, rgba(0,0,0,.35) 100%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, rgba(6,6,6,0), var(--bg)); }
.hero-inner { position: relative; min-height: 720px; display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 40px; align-items: center; padding: 72px 0 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 30px; }
.hero-copy .lead { max-width: 540px; }
.hero-meta { align-self: end; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-meta .lines { display: flex; gap: 8px; }
.hero-meta .lines span { width: 56px; height: 2px; background: rgba(255,255,255,.25); }
.hero-meta .lines span:first-child { background: #fff; }
.hero-meta .cap { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.finder { display: flex; flex-direction: column; background: rgba(12,12,12,.72); border: 1px solid rgba(255,255,255,.12); padding: 8px 28px 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.finder-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.finder-tab { height: 46px; padding: 0 2px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.finder-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.finder-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.finder-count { font-size: 12px; color: var(--muted-2); }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder-row .text-input { flex: 1 1 260px; width: auto; height: 58px; }
.finder-help { margin-top: 14px; width: fit-content; display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 6px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.finder-help:hover { color: var(--gold); }

.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(10,10,10,.75); border: 1px solid rgba(255,255,255,.1); border-left: none; }
.fact { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.fact svg { color: var(--gold); flex: none; }
.fact .t { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1; }
.fact .c { margin-top: 4px; font-size: 13px; color: var(--muted); }

.section { padding: 140px 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head .left { display: flex; flex-direction: column; gap: 18px; }
.section-title .eyebrow { margin-bottom: 10px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; }

/* brands */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.brand-tile { display: flex; flex-direction: column; justify-content: space-between; height: 176px; padding: 24px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; cursor: pointer; text-align: left; font: inherit; transition: border-color .3s, background .3s; }
.brand-tile:hover { border-color: #3a3a3a; background: var(--panel-2); color: var(--text); }
.brand-tile .top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.brand-tile .name { font-family: var(--serif); font-size: 34px; line-height: 1; }
.brand-tile .name.long { font-size: 28px; }
.brand-tile .go { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s, gap .3s; }
.brand-tile:hover .go { color: var(--gold); gap: 14px; }
.note-row { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted-2); }

/* catalog bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 310px; gap: 2px; }
.bento-tile { position: relative; display: block; overflow: hidden; background: #000; border: 1px solid var(--line); color: var(--text); text-decoration: none; cursor: pointer; text-align: left; padding: 0; font: inherit; }
.bento-tile.big { grid-row: span 2; }
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.2s var(--ease), opacity .6s; }
.bento-tile:hover img { transform: scale(1.06); opacity: .95; }
.bento-tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.9) 100%); }
.bento-tile .top { position: absolute; left: 28px; top: 24px; right: 28px; display: flex; justify-content: space-between; align-items: center; }
.bento-tile .arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s, border-color .3s; }
.bento-tile:hover .arrow { background: #fff; color: #000; border-color: #fff; }
.bento-tile .bottom { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; flex-direction: column; gap: 12px; }
.bento-tile h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; }
.bento-tile.big h3 { font-size: 46px; }
.bento-tile ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.consumables { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; background: var(--panel); border: 1px solid var(--line); }
.consumables .l { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 28px; }
.consumables .items { display: flex; flex-wrap: wrap; gap: 28px; }
.consumables .items button { display: inline-flex; align-items: center; gap: 10px; background: none; border: none; color: var(--text); font-size: 14px; cursor: pointer; padding: 8px 0; }
.consumables .items button:hover { color: var(--gold); }
.consumables .items svg { color: var(--gold); }

/* product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.home-products { grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.product-card:hover { border-color: #3a3a3a; transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.product-media { position: relative; height: 280px; overflow: hidden; background: #000; cursor: pointer; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.p-badge { position: absolute; left: 16px; top: 16px; padding: 6px 10px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: #fff; color: #000; border: 1px solid #fff; }
.p-badge.dim { background: rgba(0,0,0,.75); color: #fff; border-color: rgba(255,255,255,.4); }
.fav-btn { position: absolute; right: 14px; top: 14px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.22); color: #fff; transition: border-color .25s, color .25s, background .25s; }
.fav-btn:hover { border-color: var(--gold); }
.fav-btn.active { color: var(--gold); border-color: var(--gold); }
.fav-btn.active svg path { fill: currentColor; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
.product-name { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; cursor: pointer; }
.product-name:hover { color: var(--gold); }
.product-sub { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.product-sub svg { color: var(--gold); flex: none; }
.product-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.product-price { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.product-card .btn { height: 50px; font-size: 11px; letter-spacing: .18em; }
/* плашка вместо фото */
.media-plate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--gold); background: radial-gradient(ellipse at 50% 40%, #1a1a1a, #070707 70%); }
.media-plate::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(203,185,143,.18); }
.media-plate .sku { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted-2); }
.thumb .media-plate::before, .cart-thumb .media-plate::before { inset: 6px; }
.thumb .media-plate .sku, .cart-thumb .media-plate .sku { display: none; }
.thumb, .cart-thumb { position: relative; }
/* старые классы карточки — совместимость */
.product-brand { font-size: 11px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.product-meta { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }

.skeleton-card { height: 520px; background: linear-gradient(100deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.02) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* route band */
.route { position: relative; margin-top: 160px; height: 640px; overflow: hidden; background: #000; }
.route img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(.35); }
.route .shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,.55) 70%, var(--bg) 100%); }
.route-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.route-line { margin-top: 36px; width: min(880px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.route-city { display: flex; flex-direction: column; gap: 4px; }
.route-city.r { align-items: flex-end; }
.route-city .code { font-family: var(--brand); font-size: 34px; }
.route-city .n { font-size: 13px; color: #D0D0D0; }
.route-path { position: relative; height: 40px; display: flex; align-items: center; }
.route-path .dash { width: 100%; border-top: 1px dashed rgba(255,255,255,.5); }
.route-path .plane { position: absolute; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; animation: fly 4s ease-in-out infinite; }
@keyframes fly { 0%,100% { left: 35%; } 50% { left: 65%; } }
.route-path .eta { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); font-size: 13px; color: #D0D0D0; white-space: nowrap; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); }
.step { display: flex; flex-direction: column; gap: 16px; padding-right: 24px; }
.step .node { display: flex; align-items: center; }
.step .circle { width: 64px; height: 64px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text); }
.step:first-child .circle { border-color: var(--gold); color: var(--gold); }
.step .line { flex: 1; height: 1px; background: var(--line-2); }
.step:last-child .line { background: transparent; }
.step h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* import */
.import { margin-top: 160px; display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); }
.import-media { position: relative; min-height: 760px; overflow: hidden; background: #000; }
.import-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.import-media .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.92) 100%); }
.import-media .copy { position: absolute; left: 44px; right: 44px; bottom: 44px; display: flex; flex-direction: column; gap: 22px; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.check-list svg { color: var(--gold); flex: none; }
.import-form { padding: 52px 48px; background: var(--panel); display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); }
.form-error { min-height: 18px; font-size: 13px; color: var(--danger); }

/* VIN help */
.vin-help { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.vin-point { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.vin-point .n { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.vin-point .t { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.vin-point .c { margin-top: 6px; font-size: 14px; color: var(--muted); }
.vin-scheme { padding: 48px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 40%, #151515, var(--bg) 70%); }

/* telegram block */
.tg-block { margin-top: 160px; padding: 80px; border: 1px solid var(--line); background: radial-gradient(ellipse at 75% 50%, #161616, var(--bg) 60%); display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.tg-copy { display: flex; flex-direction: column; gap: 26px; }
.phone { width: 320px; height: 640px; padding: 12px; border-radius: 52px; background: #1A1A1A; border: 1px solid #333; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42px; background: var(--bg); display: flex; flex-direction: column; }
.phone-top { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.phone-top b { color: var(--text); }
.phone-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.phone-search { height: 40px; border: 1px solid var(--line-2); border-radius: 20px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 12px; color: var(--muted-2); }
.phone-chips { display: flex; gap: 8px; overflow: hidden; }
.phone-chips span { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 16px; font-size: 11px; white-space: nowrap; }
.phone-chips span:first-child { background: #fff; color: #000; border-color: #fff; }
.phone-card { position: relative; height: 160px; overflow: hidden; }
.phone-card img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.phone-nav { margin-top: auto; height: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; color: var(--muted-2); }
.phone-nav svg:first-child { color: var(--text); }

/* benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.benefit-card { display: flex; flex-direction: column; gap: 16px; padding: 36px; background: var(--panel); border: 1px solid var(--line); }
.benefit-card svg { color: var(--gold); }
.benefit-title { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.benefit-copy { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.benefit-num { font-family: var(--serif); font-style: italic; color: var(--gold); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; }
.faq-list { border-bottom: 1px solid var(--line-2); }
.faq-item { border-top: 1px solid var(--line-2); padding: 26px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.15; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { flex: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s, border-color .3s; }
.faq-item[open] .pm { transform: rotate(45deg); border-color: var(--gold); color: var(--gold); }
.faq-item summary:hover { color: var(--gold); }
.faq-item p { margin: 16px 0 0; max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* cta */
.cta { position: relative; margin-top: 160px; overflow: hidden; padding: 96px 80px; background: #000; border: 1px solid var(--line); }
.cta img { position: absolute; right: -10%; top: 0; width: 70%; height: 100%; object-fit: cover; object-position: 0% 40%; opacity: .55; }
.cta .shade { position: absolute; inset: 0; background: linear-gradient(90deg, #000 35%, rgba(0,0,0,.2)); }
.cta .copy { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 680px; }

/* footer */
.footer { margin-top: 180px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { padding: 80px 0 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-about { display: flex; flex-direction: column; gap: 22px; }
.footer-about p { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-social { display: flex; gap: 10px; }
.col-title { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a, .footer-col button { color: #DADADA; text-decoration: none; font-size: 15px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
.footer-col a:hover, .footer-col button:hover { color: var(--gold); }
.footer-mark { margin: 0; font-family: var(--brand); font-size: clamp(30px, 11vw, 168px); line-height: .9; letter-spacing: .02em; color: #121212; white-space: nowrap; user-select: none; }
.footer-bottom { padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted-2); }
.footer .brand { font-family: var(--serif); font-size: 22px; }


/* ==========================================================================
   REVIEWS
   ========================================================================== */
.stars { display: inline-flex; gap: 2px; color: #3a3a3a; }
.stars .star { display: inline-flex; }
.stars .star.on { color: var(--gold); }
.stars .star.on svg path { fill: currentColor; }
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.reviews-summary { position: sticky; top: 112px; padding: 32px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.reviews-avg { font-family: var(--serif); font-size: 88px; font-weight: 400; line-height: .9; }
.reviews-count { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.reviews-dist { display: flex; flex-direction: column; gap: 8px; }
.dist-row { display: grid; grid-template-columns: 12px 14px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dist-row svg { color: var(--gold); }
.dist-bar { height: 4px; background: var(--line-2); overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: var(--gold); }
.dist-c { text-align: right; }
.reviews-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.reviews-loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reviews-more-wrap { margin-top: 28px; display: flex; justify-content: center; }
.reviews-more-wrap:empty { display: none; }
.review-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: border-color .3s; }
.review-card:hover { border-color: #3a3a3a; }
.review-head { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold); background: var(--panel-2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-date { font-size: 12px; color: var(--muted-2); }
.review-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.review-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.review-tag.gold { color: var(--gold); border-color: rgba(203,185,143,.4); }
.review-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-2); white-space: pre-line; }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; background: none; border: none; padding: 4px 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.review-reply { margin-top: 4px; padding: 16px 18px; border-left: 2px solid var(--gold); background: rgba(203,185,143,.05); }
.review-reply-who { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.review-reply p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.reviews-empty { padding: 56px 32px; text-align: center; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.reviews-empty-stars { margin-bottom: 18px; }
/* выбор оценки звёздами (радиокнопки, справа налево — для подсветки «до выбранной») */
.rate-input { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 10px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { cursor: pointer; color: #3a3a3a; padding: 4px; transition: color .15s, transform .15s; display: inline-flex; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: var(--gold); }
.rate-stars label:hover svg path, .rate-stars label:hover ~ label svg path, .rate-stars input:checked ~ label svg path { fill: currentColor; }
.rate-stars label:hover { transform: scale(1.1); }
.rate-stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.rate-caption { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.rv-counter { align-self: flex-end; font-size: 12px; color: var(--muted-2); }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.crumbs { padding: 32px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs button { background: none; border: none; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
.crumbs button:hover { color: var(--gold); }
.crumbs .sep { color: #4a4a4a; }
.crumbs .cur { color: var(--text); }
.pdp { padding-top: 32px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 112px; }
.gallery-main { position: relative; height: 640px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-main .counter { position: absolute; left: 20px; bottom: 24px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.gallery-main .counter span { color: var(--muted); }
.gallery-main .nav { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumb { padding: 0; height: 112px; overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; opacity: .65; transition: opacity .25s, border-color .25s; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-note { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); }
.buy { display: flex; flex-direction: column; gap: 26px; }
.buy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.buy-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.buy h1 { overflow-wrap: break-word; hyphens: auto; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: .98; letter-spacing: -.01em; }
.buy .desc { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.vin-check { padding: 24px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.vin-check .row { display: flex; gap: 8px; }
.vin-check .row .text-input { flex: 1; width: auto; height: 52px; }
.vin-check .row .btn { height: 52px; }
.price-block { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 6px; }
.price-big { font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: 1; }
.qty { display: flex; align-items: center; height: 52px; border: 1px solid var(--line-2); }
.qty button { width: 52px; height: 100%; background: none; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button:hover { color: var(--gold); }
.qty span { width: 40px; text-align: center; font-family: var(--serif); font-size: 24px; }
.buy-actions { display: flex; gap: 10px; }
.buy-actions .btn-gold { flex: 1; height: 62px; }
.buy-actions .fav-square { width: 62px; height: 62px; border-radius: 0; }
.info-rows .row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-rows svg { color: var(--gold); }
.info-rows .t { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.info-rows .c { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pdp-tabs { display: flex; flex-wrap: wrap; gap: 40px; border-bottom: 1px solid var(--line-2); }
.pdp-tab { height: 60px; padding: 0 2px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pdp-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.pdp-panel { padding-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 500; }
.callout { margin: 24px 0 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.callout svg { color: var(--gold); flex: none; }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.mini-step { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.mini-step h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.mini-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   CATALOG
   ========================================================================== */
.page-head { padding: 56px 0 0; display: flex; flex-direction: column; gap: 18px; }
.catalog-layout { padding: 48px 0 0; display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.filters { padding: 28px; align-self: start; position: sticky; top: 112px; background: var(--panel); border: 1px solid var(--line); }
.filters-title { margin: 0 0 22px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.filter-group { margin-bottom: 26px; }
.filter-label { margin-bottom: 12px; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.filter-options { display: flex; flex-direction: column; gap: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 12px; min-height: 36px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.checkbox-row:hover { color: var(--text); }
.checkbox-box { width: 18px; height: 18px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: #000; flex-shrink: 0; transition: background .2s, border-color .2s; }
.checkbox-box.checked { border-color: var(--gold); background: var(--gold); }
input[type=range].pp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-2); outline: none; }
input[type=range].pp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid #000; box-shadow: 0 0 0 1px var(--gold); cursor: pointer; }
input[type=range].pp-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid #000; cursor: pointer; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.catalog-toolbar .text-input { max-width: 380px; }
.catalog-toolbar .select-input { width: 240px; }
.result-count { font-size: 13px; color: var(--muted); }

.empty-state { padding: 64px 32px; text-align: center; background: var(--panel); border: 1px solid var(--line); }
.empty-state .icn { color: var(--gold); margin-bottom: 18px; display: flex; justify-content: center; }
.empty-title { margin-bottom: 10px; font-family: var(--serif); font-size: 34px; line-height: 1.05; }
.empty-copy { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

/* ==========================================================================
   CART & PROFILE
   ========================================================================== */
.cart-wrap { padding: 56px 0 0; max-width: 980px; margin: 0 auto; }
.cart-list { margin-top: 32px; display: grid; gap: 2px; }
.cart-row { padding: 18px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); }
.cart-thumb { width: 96px; height: 96px; flex-shrink: 0; overflow: hidden; background: #000; border: 1px solid var(--line); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 180px; }
.cart-info .name { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.cart-qty { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-2); }
.cart-qty .icon-btn { width: 44px; height: 100%; }
.cart-qty span { min-width: 30px; text-align: center; font-family: var(--serif); font-size: 22px; }
.cart-total-cell { width: 140px; text-align: right; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.cart-summary { padding: 28px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: var(--panel); border: 1px solid var(--line); }
.cart-summary .amount { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--text); }

.profile-auth-wrap { padding: 80px 0 0; max-width: 480px; margin: 0 auto; }
.profile-auth-card { padding: 44px 40px; text-align: center; }
.profile-auth-card .ic { display: flex; justify-content: center; margin-bottom: 20px; color: var(--gold); }
.tg-widget-holder { display: flex; justify-content: center; margin-top: 10px; min-height: 44px; }
.tg-spinner { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(203,185,143,.2); border-top-color: var(--gold); animation: spin .9s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-wrap { padding: 56px 0 0; max-width: 980px; margin: 0 auto; }
.profile-header { padding: 28px; display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.avatar-circle { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; overflow: hidden; flex-shrink: 0; background: var(--panel-2) !important; color: var(--gold) !important; border: 1px solid var(--gold); }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--serif); font-size: 32px; line-height: 1; }
.profile-tg { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gold); }
.profile-tabs { display: flex; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.profile-tab { height: 54px; padding: 0 2px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.profile-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px; margin-bottom: 32px; }
.stat-card { padding: 24px; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stat-value { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--text); }
.order-row { padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 2px; }
.order-row svg { color: var(--gold); }
.order-status { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(203,185,143,.4); padding: 6px 12px; border-radius: 20px; }
.order-sum { font-family: var(--serif); font-size: 24px; font-weight: 500; }

/* ==========================================================================
   ADMIN (общие стили админ-панели)
   ========================================================================== */
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 48px var(--gutter) 100px; }
.admin-login-wrap { max-width: 420px; margin: 12vh auto; padding: 40px; }
.admin-nav { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--muted); font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.admin-table tr:hover td { background: rgba(255,255,255,.015); }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 28px; margin-bottom: 28px; }
.admin-form .full { grid-column: 1 / -1; }
.admin-form .field-label { margin-bottom: 8px; }

/* ---------- animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: fadeUp .6s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .nav-search { width: 200px; }
  .nav-links { gap: 24px; }
  .home-products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .nav-search { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tile.big { grid-column: span 2; grid-row: span 1; }
  .import, .vin-help, .faq, .pdp, .pdp-panel, .reviews-layout { grid-template-columns: minmax(0, 1fr); }
  .reviews-summary { position: static; }
  .import > *, .vin-help > *, .faq > *, .pdp > *, .pdp-panel > * { min-width: 0; }
  .tg-block { grid-template-columns: 1fr; padding: 56px; }
  .tg-block .phone { justify-self: center; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .gallery { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { padding-bottom: 76px; }
  .util-bar { display: none; }
  .navbar { height: 64px; gap: 12px; }
  .hero { margin-top: -64px; padding-top: 64px; }
  .nav-links, .nav-right .hide-m { display: none; }
  .btn-login { height: 44px; padding: 0 16px; }
  .ap-logo { --s: .9 !important; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; height: 76px; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(6,6,6,.96); border-top: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; padding: 8px 4px; background: none; border: none; cursor: pointer; color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .tab.active { color: var(--text); }
  .tab .badge { top: 0; right: 8px; }
  .hero-inner { min-height: 0; padding: 220px 0 28px; gap: 24px; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.1) 25%, rgba(6,6,6,.92) 62%, var(--bg) 100%); }
  .hero-bg { object-position: 62% 30%; height: 70%; }
  .h1 { font-size: 56px; }
  .lead { font-size: 15px; }
  .finder { padding: 4px 18px 18px; }
  .finder-tabs { gap: 18px; overflow-x: auto; }
  .finder-row .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; border: none; background: none; gap: 8px; }
  .fact { padding: 14px; border: 1px solid var(--line); gap: 10px; }
  .fact .t { font-size: 17px; }
  .fact .c { display: none; }
  .section { padding-top: 72px; }
  .section-head { margin-bottom: 24px; }
  .h2 { font-size: 36px; }
  .brand-grid { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .brand-tile { flex: none; width: 200px; height: 140px; scroll-snap-align: start; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .bento-tile.big { grid-column: span 2; }
  .bento-tile h3, .bento-tile.big h3 { font-size: 22px; }
  .bento-tile ul { display: none; }
  .bento-tile .top { left: 14px; right: 14px; top: 12px; }
  .bento-tile .bottom { left: 14px; right: 14px; bottom: 12px; }
  .bento-tile .arrow { width: 32px; height: 32px; }
  .consumables { padding: 16px; }
  .consumables .l { font-size: 22px; }
  .consumables .items { gap: 16px; }
  .home-products, .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-media { height: 150px; }
  .product-body { padding: 12px; gap: 8px; }
  .product-name { font-size: 18px; }
  .product-meta-row, .product-sub { display: none; }
  .product-foot { padding-top: 10px; gap: 10px; }
  .price-label { display: none; }
  .product-price { font-size: 20px; }
  .product-card .btn { height: 44px; font-size: 9px; letter-spacing: .14em; padding: 0 8px; }
  .p-badge { left: 8px; top: 8px; font-size: 8px; padding: 4px 7px; }
  .fav-btn { right: 4px; top: 4px; width: 44px; height: 44px; background: rgba(0,0,0,.45); border: none; }
  .route { margin-top: 72px; height: 460px; }
  .route-city .code { font-size: 22px; }
  .steps { grid-template-columns: 1fr; row-gap: 24px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 6px; padding: 0; }
  .step .node { grid-row: span 3; align-items: flex-start; }
  .step .circle { width: 52px; height: 52px; }
  .step .line { display: none; }
  .step h3 { font-size: 24px; }
  .import { margin-top: 72px; }
  .import-media { min-height: 460px; }
  .import-media .copy { left: 20px; right: 20px; bottom: 20px; }
  .import-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .vin-scheme { padding: 16px; }
  .tg-block { margin-top: 72px; padding: 28px 20px; gap: 36px; }
  .tg-block .phone { display: none; }
  .footer-mark { font-size: 8.4vw; }
  .benefit-grid { grid-template-columns: 1fr; gap: 8px; }
  .benefit-card { padding: 24px; }
  .faq-item summary { font-size: 21px; }
  .reviews-grid, .reviews-loading { grid-template-columns: minmax(0, 1fr); }
  .review-card { padding: 20px; }
  .review-head { grid-template-columns: 44px 1fr; }
  .review-head .stars { grid-column: 1 / -1; }
  .reviews-avg { font-size: 64px; }
  .cta { margin-top: 72px; padding: 48px 20px; }
  .cta img { width: 100%; right: 0; opacity: .3; }
  .footer { margin-top: 80px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 48px 0 32px; }
  .footer-about { grid-column: span 2; }
  .gallery-main { height: 360px; }
  .buy-meta { gap: 8px 12px; }
  .vin-check { padding: 16px; }
  .vin-check .row { flex-wrap: wrap; }
  .vin-check .row .btn { width: 100%; }
  .buy-actions .btn-gold { height: 56px; font-size: 11px; letter-spacing: .14em; padding: 0 12px; }
  .buy-actions .fav-square { width: 56px; height: 56px; }
  .spec-row { grid-template-columns: 1fr 1.2fr; }
  .thumbs { gap: 8px; }
  .thumb { height: 72px; }
  .price-big { font-size: 40px; }
  .pdp-tabs { gap: 20px; overflow-x: auto; flex-wrap: nowrap; }
  .pdp-tab { white-space: nowrap; }
  .mini-steps { grid-template-columns: 1fr; }
  .cart-row { align-items: flex-start; }
  .cart-total-cell { width: auto; text-align: left; }
  .modal-box { padding: 32px 20px 24px; }
  .modal-title { font-size: 32px; }
  .toast { bottom: 92px; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}
