* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0e0f;
  --bg-2: #14181a;
  --cream: #e8ebed;          /* cool instrument paper (var name kept for compatibility) */
  --accent: #ff5a1f;         /* signal amber — the single brand accent */
  --accent-2: #ffa033;       /* warm amber for gradients */
  --live: #34d8c4;           /* diagnostic teal — used only for "OK" states */
  --muted: #7e8a90;
  --line: rgba(232, 235, 237, 0.10);
  --r: 9px;

  --font-display: 'Saira', 'Noto Sans Armenian', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Noto Sans Armenian', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans Armenian', ui-monospace, 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

a, a:link, a:visited { color: inherit; text-decoration: none; }

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

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 26px;
  display: flex;
  align-items: baseline;
}

.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(232, 235, 237, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 500;
}

/* glow behind the car — amber, restrained */
.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 880px;
  max-height: 880px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 90, 31, 0.16), rgba(255, 160, 51, 0.06) 38%, transparent 66%);
  filter: blur(46px);
  z-index: -1;
  pointer-events: none;
  animation: glowpulse 7s ease-in-out infinite;
}
@keyframes glowpulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.06); }
}

/* ===== Scroll reveal (only when JS is on) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal[data-anim="left"]  { transform: translateX(-50px); }
.js .reveal[data-anim="right"] { transform: translateX(50px); }
.js .reveal[data-anim="scale"] { transform: scale(0.88); }
.js .reveal[data-anim="blur"]  { filter: blur(10px); transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

.js [data-anim="wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js [data-anim="wipe"].in { clip-path: inset(0 0 0 0); }

.js .type .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(3deg);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .type.in .word { opacity: 1; transform: none; }

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 14, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.nav.scrolled {
  padding: 13px 48px;
  background: rgba(11, 14, 15, 0.85);
  border-bottom-color: var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 22px;
  display: flex;
  align-items: baseline;
}

.logo-dot { color: var(--accent); }

.logo-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-left: 6px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-mono);
  border: 1px solid rgba(232, 235, 237, 0.35);
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--accent); color: #0b0e0f; border-color: var(--accent); }
.nav-cta:active { transform: scale(0.95); }

/* ===== Переключатель языка ===== */
.lang-switch { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); }
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 7px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch button:hover { color: var(--cream); }
.lang-switch button.active { color: var(--accent); background: rgba(255, 90, 31, 0.1); }
.mobile-menu .lang-switch { justify-content: center; margin-bottom: 22px; }
.mobile-menu .lang-switch button { font-size: 13px; padding: 7px 11px; }

/* ===== Соцсети в футере ===== */
.socials { display: flex; gap: 12px; margin-top: 16px; }
.social {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social:hover { color: #0b0e0f; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social:active { transform: scale(0.94); }

/* ===== Бургер (3 полоски → крестик) ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Полноэкранное мобильное меню ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 30px 44px;
  background: rgba(11, 14, 15, 0.98);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }

.mobile-menu-links { counter-reset: m; display: flex; flex-direction: column; }
.mobile-menu-links a {
  counter-increment: m;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 5.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, padding-left 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-menu-links a::before { font-size: 12px; }
.mobile-menu-links a::before {
  content: "0" counter(m);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}
.mobile-menu-links a:active { color: var(--accent); padding-left: 8px; }

.mobile-menu-foot { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu-foot .btn-primary { display: block; text-align: center; padding: 13px 24px; font-size: 13.5px; }
.mobile-menu-foot .modal-wa { padding: 13px; font-size: 14px; }
.mobile-menu-call {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 4px;
}
.mobile-menu-call:active { color: var(--cream); }

body.no-scroll { overflow: hidden; }

/* ===== Buttons ===== */
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  color: #100a06;
  padding: 14px 28px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(255, 90, 31, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 90, 31, 0.32);
}
.btn-primary:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 6px 16px rgba(255, 90, 31, 0.25);
  transition-duration: 0.1s;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 14px 22px;
  border-radius: var(--r);
  border: 1px solid rgba(232, 235, 237, 0.22);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn-ghost:active { transform: scale(0.96); transition-duration: 0.1s; }

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: flex-start;
  min-height: 92vh;
  padding: 140px 48px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 15, 0.88) 0%, rgba(11, 14, 15, 0.34) 52%, rgba(11, 14, 15, 0.46) 100%),
    linear-gradient(rgba(11, 14, 15, 0.2), rgba(11, 14, 15, 0.5)),
    url('service.jpg') center / cover no-repeat;
  z-index: 0;
}

.hero-text { z-index: 2; max-width: 440px; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8.4vw, 104px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-sub {
  margin-top: 24px;
  max-width: 370px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-model {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(66vw, 720px);
  height: 64vh;
  z-index: 5;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
  /* временно скрыто по просьбе — модель продолжает грузиться для прелоадера,
     но не показывается. Чтобы вернуть: удалить две строки ниже. */
  visibility: hidden;
  opacity: 0;
}
.ferrari-model {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.loaded .ferrari-model { opacity: 1; transform: scale(1); }
.ferrari-model::part(default-progress-bar) { display: none; }

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 18px)); }
}

.scroll-dots {
  position: absolute;
  bottom: 24px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: background 0.3s; }
.dot.active { background: var(--accent); }

/* ===== Gallery ===== */
.gallery { padding: 60px 48px 100px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-card {
  height: 400px;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
/* специфичнее .reveal — чтобы hover-переходы карточки не перебивались */
.gallery .gallery-card {
  transition: opacity 0.6s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
/* фото-слой, который зумится при наведении */
.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 38%, rgba(11, 14, 15, 0.9));
  transition: background 0.45s ease;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.6), 0 26px 50px rgba(0, 0, 0, 0.45);
}
.gallery-card:hover .card-bg { transform: scale(1.09); }
.gallery-card:hover::before { background: linear-gradient(rgba(11, 14, 15, 0.1), rgba(11, 14, 15, 0.94)); }
.gallery-card:active { transform: scale(0.985); transition-duration: 0.12s; }
.gallery-card:active .card-bg { transform: scale(1.04); }

.card-cap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.4px;
}
.card-cap::after {
  content: "→";
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-card:hover .card-cap::after { opacity: 1; transform: translateX(0); }

/* ===== Keys block (video) ===== */
.keys-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 90px 48px;
}
.keys-video {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}
.keys-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.keys-text { max-width: 480px; }
.keys-text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin: 12px 0 18px;
}
.keys-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 26px;
}

/* ===== Statement / Signature: diagnostic readout ===== */
.statement {
  background: var(--bg-2);
  padding: 96px 48px;
  position: relative;
  overflow: hidden;
}
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.statement-lead { max-width: 440px; }
.statement-word {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.96;
  color: var(--cream);
  margin: 6px 0 22px;
}
.statement-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--accent); }

/* the diagnostic gauge */
.gauge {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge::before { /* мягкое свечение за дугой */
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.18), transparent 68%);
  filter: blur(10px);
}
.gauge-svg {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
}
.gauge-bezel {
  stroke: rgba(232, 235, 237, 0.18);
  stroke-width: 3;
  stroke-dasharray: 1.5 12;   /* засечки по ободу */
}
.gauge-track {
  stroke: rgba(232, 235, 237, 0.07);
  stroke-width: 12;
}
.gauge-prog {
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565.5;
  stroke-dashoffset: 565.5;             /* пусто */
  filter: drop-shadow(0 0 6px rgba(255, 90, 31, 0.55));
  transition: stroke-dashoffset 1.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}
.gauge.in .gauge-prog { stroke-dashoffset: 11.3; }   /* 98% */

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.gauge-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--cream);
}
.gauge-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Section heads ===== */
.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-top: 14px;
}

/* ===== Services ===== */
.services { padding: 100px 48px; }

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  padding: 34px 18px 34px 0;
  border-top: 1px solid var(--line);
}
/* подсветка строки — на псевдоэлементе, чтобы не конфликтовать с transition у .reveal */
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.12), rgba(255, 90, 31, 0.015) 60%, transparent);
  border-left: 3px solid var(--accent);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.service-row:hover::before { opacity: 1; }
.service-row:active::before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.18), rgba(255, 90, 31, 0.03) 60%, transparent);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-num,
.service-info { position: relative; z-index: 1; }
.service-info { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.service-row:hover .service-info { transform: translateX(8px); }
.service-row:hover .service-num { transform: translateX(8px); color: var(--accent-2); }
.service-row:hover .service-info h3 { color: var(--accent); }

.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}
.service-info h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.service-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

/* ===== Menu ===== */
.menu-section { padding: 100px 48px; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.menu-col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 14px;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
/* специфичнее .reveal — чтобы hover-переходы карточки не перебивались */
.menu-grid .menu-col {
  transition: opacity 0.6s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.menu-col:hover {
  border-color: rgba(255, 90, 31, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.menu-col:active {
  border-color: rgba(255, 90, 31, 0.6);
  transform: translateY(-2px) scale(0.995);
  transition-duration: 0.12s;
}

.menu-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.menu-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid rgba(255, 90, 31, 0.4);
  border-radius: 5px;
  padding: 3px 6px;
  line-height: 1;
}
.menu-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.menu-col ul { list-style: none; }
.menu-col li {
  position: relative;
  color: var(--cream);
  font-size: 14.5px;
  line-height: 1.4;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}
.menu-col li:last-child { border-bottom: none; }
.menu-col li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
  transition: transform 0.2s;
}
.menu-col li:hover { padding-left: 24px; }
.menu-col li:hover::before { transform: translateX(3px); }

.menu-note {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 80px 48px;
  background: var(--bg-2);
}
.stat-box { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--cream), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-box .stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ===== Process ===== */
.process { padding: 100px 48px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step { position: relative; padding-top: 26px; }
.process-step h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 16px 0 10px;
}
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, 0.4);
  position: relative;
}
.step-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Quote ===== */
.quote-section { padding: 120px 48px; text-align: center; background: var(--bg-2); }
.big-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: -0.3px;
}
.quote-author {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ===== CTA ===== */
.cta { padding: 130px 48px; text-align: center; }
.cta-word {
  font-family: var(--font-display);
  font-size: clamp(62px, 14vw, 184px);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-sub { color: var(--muted); font-size: 17px; margin: 20px 0 36px; }

/* ===== Footer ===== */
.footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding: 60px 48px;
  border-top: 1px solid var(--line);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-note { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 280px; margin-top: 8px; }
.footer-head {
  font-family: var(--font-mono);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-link { color: var(--muted); font-size: 14px; cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--cream); }

.footer-bar {
  font-family: var(--font-mono);
  padding: 24px 48px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ===== Booking modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.open { visibility: visible; opacity: 1; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 9, 0.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.06), transparent 55%),
    #0c1011;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.open .modal-card { transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--cream); background: rgba(255, 255, 255, 0.06); }

.modal-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 6px 0 8px;
}
.modal-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-contacts {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}
.modal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.modal-row:last-child { border-bottom: none; }
a.modal-row:hover { background: rgba(255, 90, 31, 0.07); }
.modal-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-row-value { font-size: 15px; color: var(--cream); line-height: 1.5; }
a.modal-row .modal-row-value { font-family: var(--font-mono); letter-spacing: 0.5px; }

.modal-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: var(--r);
  background: #25d366;
  color: #04210f;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.25);
}
.modal-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35); }
.modal-wa:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.modal-wa-icon { font-size: 18px; }

.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.modal-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid rgba(232, 235, 237, 0.22);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.modal-map:hover { border-color: var(--accent); background: rgba(255, 90, 31, 0.08); }
.modal-map:active { transform: scale(0.97); transition-duration: 0.1s; }
.modal-map-icon { font-size: 16px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { padding-top: 130px; min-height: 86vh; }
  .hero-text { position: static; margin-bottom: 20px; text-align: center; max-width: 100%; }
  .hero .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-model { height: 45vh; width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-lang { display: none; }
  .nav-burger { display: flex; }
  .statement-grid { grid-template-columns: 1fr; gap: 40px; }
  .statement-lead { max-width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-row { grid-template-columns: 44px 1fr; }
  .footer { grid-template-columns: 1fr; gap: 36px; }
  .keys-block { grid-template-columns: 1fr; gap: 28px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .nav { padding: 16px 22px; }
  .hero, .gallery, .keys-block, .statement, .services, .menu-section, .stats, .process, .quote-section, .cta, .footer { padding-left: 22px; padding-right: 22px; }
  .scroll-dots { right: 22px; }
  .menu-grid { grid-template-columns: 1fr; }

  /* ужимаем масштаб дисплейного шрифта на телефоне */
  .hero { padding-top: 116px; min-height: 0; }
  .hero h1 { font-size: 42px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 14px; }
  .section-head h2 { font-size: 28px; }
  .section-head { margin-bottom: 32px; }
  .statement-word { font-size: 52px; }
  .keys-text h2 { font-size: 28px; }
  .gauge { width: min(280px, 82%); }
  .gauge-num { font-size: 50px; }
  .service-info h3 { font-size: 19px; }
  .big-quote { font-size: 23px; }
  .cta-word { font-size: 46px; }
  .cta-sub { font-size: 15px; }
  .modal-title { font-size: 26px; }

  /* поджимаем вертикальные отступы — меньше «воздуха» */
  .gallery { padding-top: 36px; padding-bottom: 56px; }
  .keys-block { padding-top: 56px; padding-bottom: 56px; }
  .statement { padding-top: 60px; padding-bottom: 60px; }
  .services { padding-top: 56px; padding-bottom: 56px; }
  .menu-section { padding-top: 56px; padding-bottom: 56px; }
  .stats { padding-top: 52px; padding-bottom: 52px; }
  .process { padding-top: 56px; padding-bottom: 56px; }
  .quote-section { padding-top: 72px; padding-bottom: 72px; }
  .cta { padding-top: 80px; padding-bottom: 80px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js [data-anim="wipe"],
  .js .type .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .bg-glow, .hero-model { animation: none !important; }
  .gauge-prog { transition: none !important; }
  .ferrari-model { transition: opacity 0.4s ease !important; transform: none !important; }
  .modal-card { transition: opacity 0.2s ease !important; transform: none !important; }
  .mobile-menu { transition: opacity 0.2s ease !important; transform: none !important; }
  .nav-burger span { transition: none !important; }
}
