/* =========================================================
   PV Autohouse — main stylesheet
   Кольори з лого: чорний / червоний / білий
   Шрифти: Unbounded (заголовки), Manrope (текст) — обидва з кирилицею
   ========================================================= */

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/unbounded-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-deep: #060607;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --surface-3: #26262a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f5f5f6;
  --text-2: #d2d2d7;
  --muted: #9a9aa3;
  --dim: #66666f;

  --red: #ed2124;
  --red-600: #cf1417;
  --red-700: #a10b0e;
  --red-soft: rgba(237, 33, 36, .12);
  --red-glow: rgba(237, 33, 36, .4);
  --green: #3ddc84;
  --wa: #25d366;
  --amber: #f5a524;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --header-h: 76px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --shadow-card: 0 30px 50px -30px rgba(0, 0, 0, .9);

  /* колір "чорнила" для напівпрозорих підкладок: білий у темній темі, чорний у світлій */
  --ink: 255 255 255;
  --header-bg: rgba(10, 10, 11, .94);
  --header-bg-solid: rgba(10, 10, 11, .98);
  --overlay: rgba(14, 14, 16, .92);
  --red-text: #ff5a5d;
  --amber-text: #ffc25c;
  --mark-opacity: .025;

  color-scheme: dark;
}

/* ---------- Світла тема ---------- */
:root[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-deep: #ebebed;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --surface-3: #e3e3e7;
  --line: rgba(10, 10, 11, .09);
  --line-2: rgba(10, 10, 11, .17);
  --text: #0b0b0c;
  --text-2: #2c2c32;
  --muted: #5d5d66;
  --dim: #85858e;
  --green: #12924c;
  --red-soft: rgba(237, 33, 36, .09);
  --red-glow: rgba(237, 33, 36, .3);
  --shadow: 0 30px 60px -30px rgba(20, 20, 30, .22);
  --shadow-card: 0 30px 50px -28px rgba(20, 20, 30, .28);

  --ink: 10 10 11;
  --header-bg: rgba(244, 244, 245, .94);
  --header-bg-solid: rgba(255, 255, 255, .98);
  --overlay: rgba(255, 255, 255, .95);
  --red-text: #d3161a;
  --amber-text: #9a5a00;
  --mark-opacity: .045;

  color-scheme: light;
}
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Typography ---------- */
.section-title, .page-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  text-wrap: balance;
}
.section-title--sm { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.page-title { font-size: clamp(2.1rem, 5vw, 3.75rem); }
.page-title--xl { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 16ch; }
.page-title__count {
  display: inline-grid; place-items: center; vertical-align: .45em;
  font-size: .32em; min-width: 2.4em; height: 2.2em; padding: 0 .8em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  letter-spacing: 0;
}
.section-text, .page-lead { color: var(--muted); font-size: 17px; max-width: 56ch; margin-top: 14px; text-wrap: pretty; }
.page-lead { font-size: clamp(16px, 1.5vw, 19px); margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--r);
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn--lg { --h: 58px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, #f2363a, var(--red-600));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 30px -12px var(--red-glow);
}
.btn--primary:hover { background: linear-gradient(180deg, #ff4448, var(--red)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 40px -12px var(--red-glow); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgb(var(--ink) / .02); }
.btn--ghost:hover { border-color: rgb(var(--ink) / .35); background: rgb(var(--ink) / .06); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { opacity: .88; }
.btn--whatsapp { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn--whatsapp .icon { color: var(--wa); }
.btn--whatsapp:hover { border-color: rgba(37, 211, 102, .5); background: rgba(37, 211, 102, .08); }
.btn__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: rgb(var(--ink) / .1); font-size: 12.5px; font-weight: 700;
}
.btn--primary .btn__count { background: rgba(0,0,0,.2); color: #fff; }
.btn__count--red { background: var(--red); color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-3); }
.icon-btn .icon { width: 19px; height: 19px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.badge--new { background: var(--red); color: #fff; }
.badge--reserved { background: var(--amber); color: #1a1205; }
.badge--glass { background: rgba(10, 10, 11, .72); color: #fff; border: 1px solid rgba(255,255,255,.14); letter-spacing: .02em; text-transform: none; font-weight: 700; font-size: 12px; }

/* ---------- Flags (CSS) ---------- */
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgb(var(--ink) / .12); }
.flag--de { background: linear-gradient(#000 33.4%, #dd0000 0 66.6%, #ffce00 0); }
.flag--at { background: linear-gradient(#ed2939 33.4%, #fff 0 66.6%, #ed2939 0); }
.flag--nl { background: linear-gradient(#ae1c28 33.4%, #fff 0 66.6%, #21468b 0); }
.flag--be { background: linear-gradient(90deg, #000 33.4%, #fdda24 0 66.6%, #ef3340 0); }
.flag--fr { background: linear-gradient(90deg, #0055a4 33.4%, #fff 0 66.6%, #ef4135 0); }
.flag--it { background: linear-gradient(90deg, #009246 33.4%, #fff 0 66.6%, #ce2b37 0); }
.flag--sk { background: linear-gradient(#fff 33.4%, #0b4ea2 0 66.6%, #ee1c25 0); }
.flag--cz { background: conic-gradient(from 90deg at 50% 50%, #d7141a 0 90deg, #11457e 90deg 270deg, #fff 270deg); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-solid); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); flex-shrink: 0; transform-origin: left center; transition: transform .35s var(--ease); }
.brand__mark { height: 30px; width: auto; }
.brand__word { height: 11px; width: auto; opacity: .9; transition: opacity .35s; }
.brand:hover { transform: scale(1.06); }
.brand:hover .brand__word { opacity: 1; }
.brand:active { transform: scale(1.02); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav__link {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav__link:hover { color: var(--text); background: rgb(var(--ink) / .04); }
.main-nav__link.is-active { color: var(--text); }
.main-nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red);
}

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.header-phone .icon { color: var(--red); width: 18px; height: 18px; }
.header-phone:hover { background: rgb(var(--ink) / .04); }

.theme-toggle {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line); color: var(--muted); overflow: hidden;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--line-2); color: var(--text); }
.theme-toggle .icon { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle__moon { transform: translateY(140%) rotate(-40deg); opacity: 0; }
[data-theme="light"] .theme-toggle__sun { transform: translateY(-140%) rotate(40deg); opacity: 0; }
[data-theme="light"] .theme-toggle__moon { transform: none; opacity: 1; }

.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px;
  border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.lang-switch__btn .icon { width: 17px; height: 17px; color: var(--muted); }
.lang-switch__btn:hover { border-color: var(--line-2); }
.lang-switch__chev { transition: transform .2s; }
.lang-switch.is-open .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: none; }
.lang-switch__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2);
}
.lang-switch__menu a:hover { background: rgb(var(--ink) / .06); color: var(--text); }
.lang-switch__menu a.is-active { color: var(--text); }
.lang-switch__menu .icon { width: 16px; height: 16px; color: var(--red); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; right: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; right: 12px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg); padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  animation: menuIn .35s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-family: var(--font-display); font-size: clamp(1.5rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2);
}
.mobile-menu__nav a.is-active { color: var(--text); }
.mobile-menu__nav a.is-active::before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 12px; background: var(--red); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); vertical-align: middle; }
.mobile-menu__foot { display: grid; gap: 20px; padding-top: 28px; }
.mobile-menu__langs { display: flex; gap: 8px; }
.mobile-menu__langs a { flex: 1; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.mobile-menu__langs a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.mobile-menu__contacts { display: grid; gap: 10px; }
body.menu-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__watermark { position: absolute; right: -8%; top: 4%; width: min(1100px, 95vw); height: auto; color: var(--text); opacity: var(--mark-opacity); }
.hero__glow {
  position: absolute; right: -10%; top: -30%; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(237, 33, 36, .18), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__text { margin-top: 24px; max-width: 48ch; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); }

.quick-search {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px;
  padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: var(--shadow);
}
.quick-search__field {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 10px 16px; border-radius: 13px; transition: background .2s; cursor: pointer; min-width: 0;
}
.quick-search__field + .quick-search__field::before {
  content: ""; position: absolute; left: -3px; top: 14px; bottom: 14px; width: 1px; background: var(--line);
}
.quick-search__field:hover { background: var(--surface-2); }
.quick-search__field span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.quick-search__field select {
  appearance: none; background: transparent; border: 0; padding: 2px 0 0; font-weight: 700; font-size: 15.5px;
  cursor: pointer; width: 100%; text-overflow: ellipsis;
}
.quick-search__field select option { background: var(--surface-2); }
.quick-search__submit { height: auto; min-height: 58px; border-radius: 13px; padding: 0 24px; }

.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 40px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.1; }
.hero__stats span { font-size: 13.5px; color: var(--muted); }
.hero__stats li + li { padding-left: clamp(20px, 4vw, 48px); border-left: 1px solid var(--line); }

.hero__visual { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; }
.hero__frame {
  position: absolute; inset: 0; display: block; overflow: hidden;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  background: var(--surface);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.2s var(--ease); }
.hero__visual:hover .hero__frame img { transform: scale(1.04); }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); }
.hero__slash {
  position: absolute; left: -9%; bottom: 7%; width: 30%; height: 22%;
  background: linear-gradient(135deg, #ff3a3d, var(--red-700));
  clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%);
  z-index: -1;
}
.hero__tag {
  position: absolute; right: 4%; bottom: 6%; z-index: 2; display: grid; gap: 2px;
  min-width: 240px; padding: 16px 18px; border-radius: 16px;
  background: var(--overlay); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), border-color .3s;
}
.hero__visual:hover .hero__tag { transform: translateY(-4px); border-color: rgba(237, 33, 36, .5); }
.hero__tag-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.hero__tag-meta { font-size: 13.5px; color: var(--muted); }
.hero__tag-price { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.hero__tag-price .icon { width: 22px; height: 22px; color: var(--red); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--after-hero { padding-top: clamp(16px, 3vw, 40px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }

/* ---------- Car grid & card ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.car-grid > div { display: flex; }
.car-grid--catalog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

.car-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.car-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.car-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform .8s var(--ease); }
.car-card:hover .car-card__media img { transform: scale(1.05); }
.car-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.car-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.car-card__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(10,10,11,.7); color: #fff; font-size: 13px; font-weight: 700;
}
.car-card__count .icon { width: 15px; height: 15px; }
.car-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.car-card__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.car-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.car-card__version { color: var(--muted); font-size: 14.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 16px 0 18px; font-size: 14px; color: var(--text-2); }
.car-card__specs li { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.car-card__specs .icon { width: 17px; height: 17px; color: var(--dim); }
.car-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { display: flex; flex-direction: column; }
.price__value { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
.price__net { font-size: 13px; color: var(--muted); }
.car-card__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.car-card__arrow .icon { width: 19px; height: 19px; }
.car-card:hover .car-card__arrow { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }

/* ---------- Bento (why us) ---------- */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.bento__hero {
  grid-row: span 2; position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px;
  background: radial-gradient(120% 90% at 0% 0%, #ff3b3e, var(--red-600) 45%, #6e0507);
  color: #fff;
}
.bento__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 14vw, 12rem); line-height: .8; letter-spacing: -.05em; }
.bento__hero p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.25; margin-top: 20px; max-width: 16ch; position: relative; }
.bento__mark { position: absolute; right: -12%; top: 8%; width: 85%; height: auto; color: #fff; opacity: .1; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 2.4vw, 32px);
  transition: border-color .3s, background .3s;
}
.feature:hover { border-color: var(--line-2); background: var(--surface-2); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); margin-bottom: 22px; }
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- Process / steps ---------- */
.process { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.process__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.process__head .section-text { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: linear-gradient(90deg, var(--red), var(--line) 40%, var(--line)); }
.step { position: relative; padding-top: 0; }
.step__num {
  display: inline-grid; place-items: center; height: 60px; padding: 0 18px 0 0; margin-bottom: 24px; background: var(--bg-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgb(var(--ink) / .45); position: relative;
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.step:hover .step__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step:first-child .step__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.step__text { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 30ch; }
.process__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); }

/* ---------- Visit / map ---------- */
.visit { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.visit__list { display: grid; gap: 20px; margin: 32px 0; }
.visit__list li { display: flex; gap: 16px; align-items: flex-start; }
.visit__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--red); flex-shrink: 0; }
.visit__label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.visit__list strong { display: block; font-size: 17px; font-weight: 700; }
.visit__list .muted { font-size: 14.5px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.map { position: relative; min-height: 440px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
[data-theme="light"] .map iframe { filter: grayscale(.6); }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(var(--ink) / .12); }
.map__pin { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 12px rgba(237,33,36,.15), 0 0 0 26px rgba(237,33,36,.07); }
.map__pin .icon { width: 28px; height: 28px; color: #fff; }
.map__placeholder .btn { position: relative; margin-top: 18px; }
.map__note { position: relative; font-size: 12.5px; color: var(--dim); }

/* =========================================================
   PAGE HEAD
   ========================================================= */
.page-head { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-head--compact { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.page-head__bg { position: absolute; inset: 0; pointer-events: none; }
.page-head__mark { position: absolute; right: -6%; top: -10%; width: min(900px, 90vw); height: auto; color: var(--text); opacity: var(--mark-opacity); }

/* =========================================================
   CATALOG
   ========================================================= */
.catalog { padding-bottom: clamp(64px, 8vw, 112px); }
.catalog__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }

.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters__form {
  display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.filters__head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.filters__head h2 .icon { color: var(--red); width: 19px; height: 19px; }
.filters__close { display: none; }
.filters__body { display: grid; gap: 22px; padding: 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.filters__foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.js .filters__apply { display: none; }
.filters__foot:empty { display: none; }
.filter-group { display: grid; gap: 10px; }
.filter-group__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 0; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* inputs */
.select { position: relative; }
.select select, .field input, .field textarea, .range-inputs input, .field--search input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 600;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.select select { appearance: none; padding-right: 38px; cursor: pointer; }
.select select option { background: var(--surface-2); }
.select > .icon { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.select select:hover, .field input:hover, .field textarea:hover, .range-inputs input:hover { border-color: var(--line-2); }
.select select:focus, .field input:focus, .field textarea:focus, .range-inputs input:focus, .field--search input:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,33,36,.15);
}
::placeholder { color: var(--dim); font-weight: 500; opacity: 1; }
.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs span { color: var(--dim); }
.range-inputs input { -moz-appearance: textfield; min-width: 0; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field--search { position: relative; display: block; }
.field--search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field--search input { padding-left: 42px; }
.select--bare select { background: transparent; border: 0; height: 36px; padding: 0 28px 0 4px; font-weight: 700; }
.select--bare > .icon { right: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: rgb(var(--ink) / .35); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.switch input { position: absolute; opacity: 0; }
.switch__track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); flex-shrink: 0; transition: background .25s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--red); border-color: var(--red); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--red); outline-offset: 2px; }

.results { min-width: 0; transition: opacity .25s; }
.results.is-loading { opacity: .45; pointer-events: none; }
.results__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.results__count { color: var(--muted); font-weight: 600; }
.results__sort { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14.5px; }
.results__sort .select { color: var(--text); }
.results__filter-btn { display: none; }
.filters-backdrop { display: none; }

.empty { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border: 1px dashed var(--line-2); border-radius: var(--r-xl); }
.empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); color: var(--muted); margin-bottom: 20px; }
.empty__icon .icon { width: 26px; height: 26px; }
.empty h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.empty p { color: var(--muted); margin-top: 8px; }
.empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* =========================================================
   CAR DETAIL
   ========================================================= */
.car-page { padding-top: 20px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); margin-bottom: 20px; min-width: 0; }
.crumbs__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); white-space: nowrap; }
.crumbs__back .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.crumbs__back:hover .icon { transform: translateX(-3px); }
.crumbs__sep { color: var(--dim); }
.crumbs__current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.car-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.car-layout__side { position: sticky; top: calc(var(--header-h) + 16px); }

.gallery__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); user-select: none; touch-action: pan-y; }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0; transition: opacity .45s var(--ease); cursor: zoom-in; }
.gallery__img.is-active { opacity: 1; }
.gallery__status { position: absolute; left: 16px; top: 16px; z-index: 2; }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(10,10,11,.72); border: 1px solid rgba(255,255,255,.14); color: #fff;
  opacity: 0; transition: opacity .25s, background .2s;
}
.gallery__nav .icon { width: 22px; height: 22px; }
.gallery__nav:hover { background: var(--red); border-color: var(--red); }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.gallery__stage:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.gallery__counter, .gallery__expand {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px;
  background: rgba(10,10,11,.72); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 700; pointer-events: auto;
}
.gallery__expand .icon { width: 16px; height: 16px; }
.gallery__expand:hover { background: rgba(10,10,11,.92); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; scroll-snap-align: start; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; outline-color: var(--red); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 2.4vw, 30px); }
.summary__top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: -8px; }
.summary__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; }
.summary__version { color: var(--muted); font-size: 16px; margin-top: 4px; }
.summary__price { margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.summary__amount { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
.summary__net { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.tag-red { color: var(--red-text); font-weight: 700; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-specs li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.quick-specs .icon { grid-row: span 2; width: 20px; height: 20px; color: var(--red); }
.quick-specs span { font-size: 12px; color: var(--dim); font-weight: 600; line-height: 1.3; }
.quick-specs strong { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.flags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; }
.flags li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.flags .icon { width: 17px; height: 17px; color: var(--green); }
.summary__actions { display: grid; gap: 10px; margin-top: 24px; }
.summary__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary__meta { margin-top: 18px; font-size: 13px; color: var(--dim); text-align: center; }
.summary__meta strong { color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.notice .icon { width: 18px; height: 18px; margin-top: 2px; }
.notice--reserved { background: rgba(245,165,36,.1); color: var(--amber-text); border: 1px solid rgba(245,165,36,.25); }

.car-section { margin-top: clamp(40px, 5vw, 64px); }
.car-section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.01em; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.car-section__title::before { content: ""; width: 16px; height: 9px; background: var(--red); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); }
.car-section__title .muted { font-weight: 400; }
.prose p { color: var(--text-2); line-height: 1.75; max-width: 72ch; }
.prose p + p { margin-top: 1em; }
.equipment { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.equipment__group { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.equipment__group h3 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.equipment__group ul { display: grid; gap: 10px; }
.equipment__group li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.equipment__group .icon { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { font-weight: 700; text-align: right; display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; word-break: break-all; }

.inquiry { margin-top: clamp(48px, 6vw, 80px); background: var(--bg-deep); border-top: 1px solid var(--line); }
.inquiry__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.inquiry__car { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.inquiry__car img { width: 88px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.inquiry__car strong { display: block; font-size: 15.5px; }
.inquiry__car span { font-size: 14px; color: var(--muted); }
.inquiry__direct { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.inquiry__direct a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.inquiry__direct a .icon { color: var(--red); }
.inquiry__direct a:last-child .icon { color: var(--wa); }

.sticky-cta { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,6,.97); color: #fff; display: flex; flex-direction: column; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__top { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lightbox__counter { font-weight: 700; font-variant-numeric: tabular-nums; }
.lightbox__title { flex: 1; color: #9a9aa3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 6vw, 96px) 24px; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.08); }
.lightbox__nav:hover { background: var(--red); }
.lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
body.lightbox-open { overflow: hidden; }

/* =========================================================
   FORMS
   ========================================================= */
.form-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); display: grid; gap: 20px; overflow: hidden; }
.form-card--raised { box-shadow: var(--shadow); border-color: var(--line-2); }
.form-card__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.form-card__head p { color: var(--muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13.5px; font-weight: 700; color: var(--text-2); padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea { height: 50px; background: var(--bg); }
.field .select select { height: 50px; background: var(--bg); }
.field textarea { height: auto; min-height: 110px; padding: 14px; resize: vertical; line-height: 1.5; font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); }
.check input { position: absolute; opacity: 0; }
.check__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); flex-shrink: 0; transition: .2s; }
.check__box .icon { width: 14px; height: 14px; opacity: 0; color: #fff; stroke-width: 3; }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--red); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,33,36,.15); }
.form-error { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-text); font-weight: 700; font-size: 14.5px; }
.check__link { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.check__link:hover { color: var(--red); }
.form-card__note { font-size: 12.5px; color: var(--dim); text-align: center; margin-top: -8px; }
.form-success { position: absolute; inset: 0; z-index: 3; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 10px; animation: fadeIn .4s; }
.form-success__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; margin-bottom: 10px; box-shadow: 0 0 0 12px var(--red-soft); }
.form-success__icon .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.form-success p { color: var(--muted); max-width: 36ch; margin-bottom: 10px; }

/* =========================================================
   ORDER / ABOUT / CONTACT / 404
   ========================================================= */
.order-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; }
.order-hero__text { position: sticky; top: calc(var(--header-h) + 40px); }
.ticks { display: grid; gap: 14px; margin-top: 32px; }
.ticks li { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 16.5px; }
.ticks .icon { display: block; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--red-soft); color: var(--red); stroke-width: 2.5; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.6vw, 19px); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; transition: background .25s, transform .3s var(--ease); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; translate: -50% -50%; }
.faq__plus::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.faq__item[open] .faq__plus { background: var(--red); border-color: var(--red); color: #fff; }
.faq__item[open] .faq__plus::after { rotate: 0deg; }
.faq__item p { color: var(--muted); padding: 0 48px 24px 0; max-width: 64ch; }

.about-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-story__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; }
.about-story__media img { width: 100%; height: 100%; object-fit: cover; }
.about-story__media figcaption { position: absolute; left: 20px; bottom: 20px; padding: 18px 22px; border-radius: 18px; background: var(--red); color: #fff; display: grid; }
.about-story__media figcaption strong { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 700; }
.about-story__media figcaption span { font-size: 14px; font-weight: 600; opacity: .9; }
.about-story__text p { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.7; }
.about-story__text p + p { margin-top: 1.1em; }
.hero__stats--inline { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.value { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.value__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--red); }
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-top: 40px; }
.value p { color: var(--muted); margin-top: 10px; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { position: relative; display: grid; gap: 4px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.contact-card--red { background: radial-gradient(120% 120% at 0 0, #ff3b3e, var(--red-600) 50%, #7a0608); border-color: transparent; color: #fff; }
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgb(var(--ink) / .07); margin-bottom: 28px; }
.contact-card--red .contact-card__icon { background: rgba(0,0,0,.18); }
.contact-card__icon--wa { color: var(--wa); }
.contact-card__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.contact-card strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.6vw, 19px); word-break: break-word; }
.contact-card__arrow { position: absolute; top: 26px; right: 26px; width: 22px; height: 22px; opacity: .6; transition: transform .3s var(--ease), opacity .3s; }
.contact-card:hover .contact-card__arrow { transform: translate(3px, -3px); opacity: 1; }
.contact-form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.company { margin-top: 32px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.company h3 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.company p { color: var(--text-2); }

.notfound { padding: clamp(64px, 10vw, 140px) 0 24px; text-align: center; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 20vw, 13rem); line-height: .9; letter-spacing: -.05em; margin-bottom: 24px; }
.notfound__code span { color: var(--red); }
.notfound .page-lead { margin-bottom: 32px; }

.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-2); line-height: 1.75; }
.legal p + p { margin-top: .7em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__logo { display: inline-block; color: var(--text); }
.site-footer__logo svg { width: 190px; height: auto; }
.site-footer__brand p { color: var(--muted); margin-top: 20px; max-width: 34ch; font-size: 15px; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); transition: .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials .icon { width: 18px; height: 18px; }
.site-footer__title { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 12px; }
.site-footer__col a { color: var(--text-2); font-weight: 500; transition: color .2s; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contacts .icon { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.hours { display: grid; gap: 10px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 600; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.site-footer__bottom nav { display: flex; gap: 20px; }
.site-footer__bottom a:hover { color: var(--text); }
.site-footer__giant { color: var(--text); opacity: .04; padding: 0 var(--gutter); margin-bottom: -1.2%; pointer-events: none; }
.site-footer__giant svg { width: 100%; height: auto; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1480px) {
  .header-phone span { display: none; }
  .header-phone { padding: 0; width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
}
@media (max-width: 1240px) {
  .brand__word { display: none; }
}

@media (max-width: 1200px) {
  .car-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .main-nav, .header-cta, .brand__word { display: none; }
  .burger { display: block; }
  .site-header__actions { margin-left: auto; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: stretch; aspect-ratio: 16 / 11; max-height: none; }
  .hero__frame { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
  .hero__slash { left: -3%; width: 22%; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento__hero { grid-row: auto; grid-column: 1 / -1; min-height: 260px; }
  .process__head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .visit { grid-template-columns: 1fr; }
  .map { min-height: 340px; }

  /* catalog: filters become a drawer */
  .catalog__grid { grid-template-columns: 1fr; }
  .results__filter-btn { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 120; width: min(420px, 92vw); top: 0;
    transform: translateX(-102%); transition: transform .4s var(--ease);
  }
  .filters.is-open { transform: none; }
  .filters__form { height: 100%; max-height: none; border-radius: 0 var(--r-xl) var(--r-xl) 0; border-left: 0; }
  .filters__close { display: inline-grid; }
  .js .filters__apply { display: inline-flex; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: .3s; }
  .filters.is-open + .filters-backdrop { opacity: 1; visibility: visible; }
  body.filters-open { overflow: hidden; }

  .car-layout { grid-template-columns: minmax(0, 1fr); }
  .car-layout__side { position: static; grid-row: 2; }
  .car-layout__main { display: contents; }
  .gallery { grid-row: 1; min-width: 0; }
  .car-section { grid-row: auto; }
  .inquiry__grid { grid-template-columns: 1fr; }

  .order-hero { grid-template-columns: 1fr; }
  .order-hero__text { position: static; }
  .faq-wrap { grid-template-columns: 1fr; gap: 16px; }
  .about-story { grid-template-columns: 1fr; }
  .about-story__media { aspect-ratio: 16 / 11; }
  .values { grid-template-columns: 1fr; }
  .values .value h3 { margin-top: 20px; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search__field:first-child { grid-column: 1 / -1; }
  .quick-search__field + .quick-search__field::before { display: none; }
  .quick-search__field { background: var(--surface-2); }
  .quick-search__submit { grid-column: 1 / -1; min-height: 54px; }
  .hero__stats { gap: 16px; }
  .hero__stats li + li { padding-left: 16px; }
  .hero__tag { min-width: 0; left: 6%; right: 6%; bottom: 5%; }
  .hero__visual { aspect-ratio: 4 / 4.2; }

  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .step__num { grid-row: span 2; margin: 0; font-size: 36px; height: auto; align-self: start; padding: 0; background: none; }

  .section-head { align-items: flex-start; }
  .car-grid { grid-template-columns: 1fr; }
      
  .results__bar { flex-wrap: wrap; gap: 10px; }
  .results__count { order: 3; width: 100%; font-size: 14px; }

  .gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__stage { border-radius: 0; aspect-ratio: 4 / 3.4; }
  .gallery__nav { display: none; }
  .gallery__thumbs { padding-inline: var(--gutter); }
  .gallery__thumb { width: 76px; }
  .quick-specs strong { font-size: 14px; }
  .equipment, .spec-table { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .page-car { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg-solid); border-top: 1px solid var(--line-2);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta__price { flex: 1; min-width: 0; display: grid; }
  .sticky-cta__price strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
  .sticky-cta__price span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 13px; background: var(--red); color: #fff; font-weight: 700; }
  .sticky-cta__btn .icon { width: 19px; height: 19px; }
  .sticky-cta__btn--wa { width: 48px; padding: 0; background: var(--surface-2); border: 1px solid var(--line); color: var(--wa); }
  .lightbox__nav { display: none; }
  .lightbox__stage { padding: 0 0 16px; }
  .lightbox__stage img { border-radius: 0; }

  .contact-cards { grid-template-columns: 1fr; }
  .contact-card__icon { margin-bottom: 16px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .lang-switch__btn > .icon:first-child { display: none; }
  .hero__stats strong { font-size: 1.45rem; }
  .hero__stats span { font-size: 12.5px; }
  .summary__row { grid-template-columns: 1fr; }
  .quick-specs { grid-template-columns: 1fr; }
}
