/* ====== ТКС АВТО — premium dark theme ====== */
:root {
  --bg: #0A0A0C;
  --bg-elev: #111114;
  --bg-elev-2: #16161A;
  --ink: #F4F4F6;
  --ink-dim: #A8A8B3;
  --ink-faint: #6B6B78;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --red: #FF1F36;
  --red-bright: #FF3047;
  --red-deep: #B00714;
  --red-darker: #5C0009;
  --red-glow: rgba(255, 31, 54, 0.45);
  --grad-red: linear-gradient(135deg, #FF1F36 0%, #B00714 100%);
  --grad-red-soft: linear-gradient(135deg, rgba(255,31,54,0.12) 0%, rgba(176,7,20,0.04) 100%);
  --grad-dark: linear-gradient(180deg, #0A0A0C 0%, #14141A 100%);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-deep: 0 30px 60px -20px rgba(0,0,0,0.7), 0 18px 40px -15px rgba(0,0,0,0.5);
  --shadow-red: 0 20px 60px -20px rgba(255,31,54,0.5), 0 10px 30px -10px rgba(255,31,54,0.3);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.5s var(--ease);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Unbounded", "Manrope", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ambient glow background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(255,31,54,0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(255,31,54,0.08), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(176,7,20,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1320px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, 96vw);
  z-index: 100;
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 24px;
  box-shadow: var(--shadow-soft);
  transition: all var(--t);
}
.site-header.scrolled {
  background: rgba(8, 8, 10, 0.92);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo .logo-svg { height: 40px; width: auto; }

/* Raster logo (PNG) used in header — has dark grey letters that need a light plate */
.logo .logo-img {
  height: 40px;
  width: auto;
  display: block;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.25);
}
.footer-logo .logo-img {
  height: 48px;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.main-nav a, .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .nav-btn:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.has-dropdown .nav-btn svg { transition: transform 0.3s var(--ease); }
.has-dropdown.open .nav-btn { color: var(--ink); background: rgba(255,255,255,0.06); }
.has-dropdown.open .nav-btn svg { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 360px;
  background: linear-gradient(180deg, #15151A 0%, #0E0E12 100%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #15151A;
  border-left: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
}
.dd-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dd-card + .dd-card { margin-top: 4px; }
.dd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-red);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.dd-card:hover::before { opacity: 0.08; }
.dd-card:hover { transform: translateX(2px); }
.dd-card-icon {
  width: 56px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,31,54,0.1);
  border: 1px solid rgba(255,31,54,0.25);
  border-radius: 10px;
  color: var(--red-bright);
  flex-shrink: 0;
  position: relative;
}
.dd-card-icon svg { width: 32px; height: 16px; }
.dd-card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; position: relative; }
.dd-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.dd-sub { font-size: 12.5px; color: var(--ink-faint); }
.dd-arrow {
  font-size: 18px;
  color: var(--ink-faint);
  transition: all 0.3s var(--ease);
  position: relative;
}
.dd-card:hover .dd-arrow { color: var(--red-bright); transform: translateX(4px); }
.dd-foot { margin-top: 8px; padding: 12px 14px 4px; border-top: 1px solid var(--line); }
.dd-foot-link { font-size: 13px; color: var(--ink-dim); font-weight: 600; }
.dd-foot-link:hover { color: var(--red-bright); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.socials { display: flex; gap: 6px; }
.socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-dim);
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.socials a:hover {
  color: var(--red-bright);
  background: rgba(255,31,54,0.08);
  border-color: rgba(255,31,54,0.25);
  transform: translateY(-2px);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  font-size: 0;
  line-height: 0;
  color: var(--ink);
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s var(--ease);
  flex: 0 0 auto;
}
.phone-link:hover {
  color: var(--red-bright);
  background: rgba(255,31,54,0.1);
  border-color: rgba(255,31,54,0.3);
  transform: translateY(-2px);
}
.phone-link svg { color: var(--red-bright); width: 16px; height: 16px; flex: 0 0 auto; }

.cta-btn {
  position: relative;
  overflow: hidden;
  padding: 12px 22px;
  background: var(--grad-red);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 999px;
  box-shadow: var(--shadow-red);
  transition: all 0.4s var(--ease);
  isolation: isolate;
  white-space: nowrap;
}
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FF3047, #FF1F36);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px -15px rgba(255,31,54,0.7);
}
.cta-btn span { position: relative; z-index: 1; }
.cta-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
}
.cta-btn:hover .cta-shine { left: 150%; transition: left 0.7s var(--ease); }

/* ============ BURGER + MOBILE MENU ============ */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-left: auto;
}
.nav-burger:hover { background: rgba(255,31,54,0.1); border-color: rgba(255,31,54,0.3); }
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--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: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw);
  background: linear-gradient(180deg, #15151A 0%, #0A0A0E 100%);
  border-left: 1px solid var(--line-2);
  padding: 80px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,0.7);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.mobile-menu-close:hover { background: rgba(255,31,54,0.15); border-color: rgba(255,31,54,0.4); color: var(--red-bright); }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.mobile-nav a::after {
  content: "→";
  color: var(--ink-faint);
  font-size: 18px;
  transition: all 0.3s var(--ease);
}
.mobile-nav a:hover {
  background: rgba(255,31,54,0.08);
  border-color: rgba(255,31,54,0.2);
  color: var(--red-bright);
}
.mobile-nav a:hover::after { color: var(--red-bright); transform: translateX(4px); }
.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mm-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 4px;
}
.mm-phone svg { color: var(--red-bright); }
.mm-phone:hover { color: var(--red-bright); }

.mm-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.mm-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.mm-socials a svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mm-socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,31,54,0.35);
}

body.menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 0;
}
.hero-content { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
.hero-marquee { flex: 0 0 auto; }
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.55) saturate(0.9);
  position: relative; z-index: 1;
}
.hero-photo-bg {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background-image: url("/assets/hero-maybach.jpg");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  filter: blur(4px) saturate(1.08) brightness(0.88) contrast(1.04);
  transform: scale(1.03);
  will-change: transform;
}
.hero-fallback-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 700px at 80% 25%, rgba(255,31,54,0.10), transparent 65%),
    radial-gradient(700px 500px at 15% 75%, rgba(176,7,20,0.08), transparent 65%);
}
.hero-car-shape {
  position: absolute; bottom: 8%; left: 50%;
  width: 80%; max-width: 1100px;
  aspect-ratio: 3 / 1;
  transform: translateX(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'><g fill='none' stroke='%23ffffff' stroke-width='1.6' opacity='0.55'><path d='M60 320 Q 120 220 280 210 L 800 210 Q 980 215 1140 320'/><path d='M180 320 L 220 240 L 820 240 L 880 320'/><circle cx='280' cy='320' r='62' stroke-width='2.4'/><circle cx='280' cy='320' r='28'/><circle cx='900' cy='320' r='62' stroke-width='2.4'/><circle cx='900' cy='320' r='28'/><path d='M60 320 L 1140 320' stroke-width='2.4'/><path d='M520 230 L 540 270 L 760 270 L 780 230'/></g></svg>") no-repeat center / contain;
  filter: drop-shadow(0 30px 60px rgba(255,31,54,0.4));
  animation: car-float 8s ease-in-out infinite;
}
@keyframes car-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}
.hero-light-streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF3047, transparent);
  filter: blur(1px);
  opacity: 0.7;
  animation: streak 6s linear infinite;
}
.streak-1 { top: 30%; left: -10%; width: 30%; animation-delay: 0s; }
.streak-2 { top: 55%; left: -15%; width: 40%; animation-delay: 2s; }
.streak-3 { top: 70%; left: -10%; width: 25%; animation-delay: 4s; }
@keyframes streak {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translateX(140vw); opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.15) 0%, rgba(10,10,12,0.30) 50%, rgba(10,10,12,0.92) 100%),
    radial-gradient(900px 600px at 18% 35%, rgba(255,31,54,0.08), transparent 65%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1320px, 92vw);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--red-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red-bright);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 116px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-title .line {
  display: block;
  /* overflow: hidden removed — was clipping italic descenders/last glyphs on mobile */
  padding-right: 0.12em;
}
.hero-title em {
  /* Эмулируем italic через skewX (а не font-style: italic): Unbounded не имеет italic-варианта,
     iOS Safari в этом случае уходит на системный serif italic — глифы получаются широкими и
     слово вылетает за край hero. skewX наклоняет реальные глифы Unbounded — без fallback. */
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(135deg, #FF3047 0%, #FF1F36 50%, #B00714 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transform: skewX(-10deg);
  transform-origin: left center;
  padding-right: 0.22em;
  margin-right: -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 30px 70px -15px rgba(255,31,54,0.7);
}
.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.btn-primary svg { transition: transform 0.4s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 14px 24px;
}
.btn-outline:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-large { padding: 18px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.hero-marquee {
  position: relative;
  width: 100%;
  margin-top: 56px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}
/* Full-bleed бегущая строка под hero-eyebrow.
   Рендерится прямым потомком .hero, поэтому width:100% уже = ширине вьюпорта. */
.hero-marquee-top {
  width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
}
.marquee-viewport {
  overflow: hidden;
  /* Плавное затухание у краёв */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 56px;
  padding-right: 56px; /* gap перед следующей копией */
  width: max-content;
  list-style: none;
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  /* Скорость задаётся в px/sec → длительность считается из ширины */
  --marquee-duration: 40s;
  animation: marquee var(--marquee-duration) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.marquee-track li {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s var(--ease);
}
.marquee-track li::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px rgba(255,48,71,0.55);
  opacity: 0.9;
}
.marquee-track li:hover { color: var(--ink); }

/* Pause on hover для удобства чтения */
.hero-marquee:hover .marquee-track,
.hero-marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
  .marquee-viewport { overflow-x: auto; }
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: none;
}

/* ============ SECTIONS ============ */
section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

/* Hero already has its own bottom spacing — tighten the gap to ABOUT */
.hero + .about { padding-top: 60px; }
@media (max-width: 720px) {
  .hero + .about { padding-top: 36px; }
}

.section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 72px;
}
/* ============ PAGE BREADCRUMB (shared) ============ */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
  font-family: var(--font-body, inherit);
}
.page-breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.page-breadcrumb a:hover { color: var(--red-bright); }
.page-breadcrumb .sep { color: var(--ink-faint); opacity: 0.5; }
.page-breadcrumb .current { color: var(--ink); }
@media (max-width: 640px) {
  .page-breadcrumb { font-size: 11px; gap: 8px; margin-bottom: 22px; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
}
.kicker-num {
  color: var(--red-bright);
  font-family: var(--font-display);
  font-weight: 600;
}
.kicker-sm {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, #FF3047, #B00714);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-dim);
  text-wrap: balance;
}

/* ============ BRANDS ============ */
.brands { padding-top: 100px; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

/* Horizontal scroller */
.brands-scroller {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brands-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 14px;
  flex: 1 1 auto;
  scroll-padding-inline: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.brands-track::-webkit-scrollbar { display: none; }
.brands-track .brand-tile {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 240px);
  height: 130px;
  scroll-snap-align: start;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
}
.brand-svg {
  width: auto;
  max-width: 86%;
  height: 36px;
  color: #fff;
  opacity: 0.78;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.brand-tile:hover .brand-svg { opacity: 1; color: var(--red-bright); transform: scale(1.06); }
.brand-logo-img {
  display: block;
  width: auto;
  max-width: 84%;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  box-sizing: border-box;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand-tile:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(255, 31, 54, 0.28);
}
.brand-name {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.brand-tile:hover .brand-name { color: var(--ink); }

.brands-arrow {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.brands-arrow:hover {
  background: rgba(255,31,54,0.1);
  border-color: rgba(255,31,54,0.4);
  color: var(--red-bright);
  transform: scale(1.05);
}
.brands-arrow:active { transform: scale(0.95); }
@media (max-width: 720px) {
  .brands-arrow { display: none; }
  .brands-track .brand-tile {
    width: 160px;
    height: 110px;
    padding: 14px 12px;
  }
  .brand-svg { height: 30px; }
  .brand-logo-img { height: 44px; padding: 4px 10px; }
  .brand-name { font-size: 10px; letter-spacing: 0.16em; }
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.brand-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-red);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.brand-tile::after {
  content: "";
  position: absolute;
  top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s var(--ease);
}
.brand-tile:hover::after { left: 200%; }
.brand-tile:hover {
  border-color: rgba(255,31,54,0.4);
  box-shadow: var(--shadow-red);
  background: rgba(255,31,54,0.04);
}
/* Inside the horizontal scroller, lifting + scaling gets clipped by the
   overflow:auto track and looks like the tile slides under the edge.
   Keep visual feedback on color/border only. */
.brands-track .brand-tile:hover,
.brands-track .brand-tile.is-tapped {
  transform: none;
}
.brand-tile:hover::before { opacity: 0.15; }
.brand-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ease);
  text-align: center;
  padding: 0 12px;
}
.brand-tile:hover .brand-logo { color: #fff; }

/* ============ CATALOG PREVIEW ============ */
.catalog-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 64px;
}
.cat-card {
  position: relative;
  display: block;
  min-height: 132px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.6s var(--ease);
}
.cat-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-deep);
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease);
}
.cat-card:hover .cat-card-bg { transform: scale(1.06); }
.cat-card-new .cat-card-bg {
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(255,31,54,0.35), transparent 60%),
    linear-gradient(135deg, #1a1a22 0%, #0a0a0c 100%);
}
.cat-card-new .cat-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 320'><g fill='none' stroke='%23FF1F36' stroke-width='1.2' opacity='0.55'><path d='M40 220 Q 80 160 180 160 L 380 160 Q 470 160 510 220'/><path d='M120 220 L 140 180 L 380 180 L 410 220'/><circle cx='180' cy='220' r='30' stroke-width='2'/><circle cx='180' cy='220' r='14'/><circle cx='420' cy='220' r='30' stroke-width='2'/><circle cx='420' cy='220' r='14'/><path d='M40 220 L 560 220' stroke-width='2'/><path d='M250 175 L 270 200 L 350 200 L 360 175'/></g></svg>") no-repeat center 70% / 75% auto;
  opacity: 0.85;
}
.cat-card-used .cat-card-bg {
  background:
    radial-gradient(800px 400px at 10% 80%, rgba(176,7,20,0.3), transparent 60%),
    linear-gradient(135deg, #16161c 0%, #08080a 100%);
}
.cat-card-used .cat-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 320'><g fill='none' stroke='%23FF3047' stroke-width='1.2' opacity='0.5'><path d='M40 220 Q 80 150 180 150 L 380 150 Q 480 150 520 220'/><path d='M110 220 L 130 175 L 390 175 L 420 220'/><circle cx='180' cy='220' r='32' stroke-width='2'/><circle cx='180' cy='220' r='14'/><circle cx='420' cy='220' r='32' stroke-width='2'/><circle cx='420' cy='220' r='14'/><path d='M40 220 L 560 220' stroke-width='2'/></g></svg>") no-repeat center 75% / 75% auto;
  opacity: 0.7;
}
.cat-card-inner {
  position: relative;
  z-index: 2;
  padding: 14px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 132px;
}
.cat-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--red-bright);
  font-weight: 600;
}
.cat-card-body { max-width: 380px; }
.cat-card-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.cat-card-body p {
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.45;
}
.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cat-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cat-arrow {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad-red);
  color: #fff;
  transition: all 0.5s var(--ease);
  box-shadow: var(--shadow-red);
}
.cat-arrow svg { width: 18px; height: 18px; }
.cat-card:hover .cat-arrow {
  transform: rotate(-45deg) scale(1.1);
}

/* Featured strip */
.featured-strip {
  margin-top: 24px;
}
.featured-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}
.featured-head h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* Horizontal featured scroller — mirrors .brands-scroller */
.featured-scroller {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 14px;
  flex: 1 1 auto;
  scroll-padding-inline: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.featured-track::-webkit-scrollbar { display: none; }
.featured-track .car-card {
  flex: 0 0 auto;
  width: clamp(260px, 26vw, 320px);
  scroll-snap-align: start;
}
/* Disable the lift on hover inside scroller — same reason as brand-tile */
.featured-track .car-card:hover {
  transform: none;
}
.featured-arrow-prev,
.featured-arrow-next { /* inherits .brands-arrow look */ }
@media (max-width: 720px) {
  .featured-arrow-prev,
  .featured-arrow-next { display: none; }
  .featured-track .car-card { width: 240px; }
}
.car-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,31,54,0.3);
  box-shadow: var(--shadow-deep);
}
.car-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.car-card:hover .car-img { transform: scale(1.05); }
.car-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 50% 100%, rgba(255,31,54,0.25), transparent 60%),
    linear-gradient(135deg, #1a1a22 0%, #0a0a0c 100%);
}
.car-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 65%;
  background-size: 90% auto;
}
.car-img.car-img-photo { background: rgba(255,255,255,0.04); position: relative; }
.car-img.car-img-photo::before,
.car-img.car-img-photo::after { content: none; }
.car-img.car-img-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.car-card:hover .car-img.car-img-photo { transform: none; }
.car-card:hover .car-img.car-img-photo img { transform: scale(1.05); }
.car-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.car-card-link:hover { color: inherit; }
.car-meta { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.car-meta .car-price { margin-top: auto; }
.car-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,31,54,0.12);
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.car-tag.tag-used {
  background: rgba(255,255,255,0.08);
  color: var(--ink-dim);
}
.car-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.car-specs {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.car-price {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 600;
  color: var(--red-bright);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.featured-cta { text-align: center; margin-top: 48px; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.about-text .kicker { margin-bottom: 20px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-text p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-text .btn { margin-top: 20px; }

.about-visual { perspective: 1200px; }
.about-card-3d {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(255,31,54,0.25), transparent 60%),
    linear-gradient(180deg, #1a1a22 0%, #0a0a0c 100%);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
  box-shadow: var(--shadow-deep);
}
.about-card-3d:hover { transform: rotateY(-2deg) rotateX(2deg) scale(1.02); }
.about-card-glow {
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle, rgba(255,31,54,0.35), transparent 60%);
  filter: blur(40px);
  animation: glow-rotate 14s linear infinite;
}
@keyframes glow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.about-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 2;
}
.medal {
  margin-bottom: 24px;
  filter: drop-shadow(0 20px 30px rgba(255,31,54,0.4));
}
.about-card-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}
.about-card-content p {
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 280px;
}

/* Counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.counter {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  text-align: left;
  position: relative;
  transition: background 0.4s var(--ease);
}
.counter:last-child { border-right: none; }
.counter:hover { background: rgba(255,31,54,0.04); }
.counter::before {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-red);
  transition: width 0.6s var(--ease);
}
.counter:hover::before { width: 100%; }
.counter-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, #FF3047 70%, #B00714 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.counter-label {
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

/* ============ ORDER CTA ============ */
.order-cta-section { padding: 80px 0; }
.order-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 56px;
  background: linear-gradient(135deg, rgba(255,31,54,0.08), rgba(122,5,16,0.04));
  border: 1px solid rgba(255,48,71,0.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,31,54,0.18), transparent 60%);
  pointer-events: none;
}
.order-cta-content { position: relative; }
.order-cta-content p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 18px 0 28px;
  max-width: 540px;
}
.order-cta-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 32px;
}
.order-cta-stats > div { display: flex; flex-direction: column; gap: 4px; }
.order-cta-stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: -0.02em;
}
.order-cta-stats span {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.order-cta-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 360px;
  justify-self: end;
}
.order-globe {
  width: 100%;
  animation: globe-rotate 20s linear infinite;
  filter: drop-shadow(0 0 40px rgba(255,31,54,0.35));
}
@keyframes globe-rotate {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@media (max-width: 900px) {
  .order-cta-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .order-cta-visual { max-width: 240px; justify-self: center; }
  .order-cta-stats { gap: 20px; flex-wrap: wrap; }
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}
.service-card {
  position: relative;
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease);
  overflow: hidden;
  display: block;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--grad-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,31,54,0.3);
  background: linear-gradient(180deg, rgba(255,31,54,0.06), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-deep);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,31,54,0.08);
  border: 1px solid rgba(255,31,54,0.2);
  border-radius: var(--radius);
  color: var(--red-bright);
  margin-bottom: 24px;
  transition: all 0.4s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--grad-red);
  color: #fff;
  border-color: transparent;
  transform: rotate(-5deg) scale(1.05);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.service-arrow {
  position: absolute;
  top: 36px; right: 32px;
  font-size: 22px;
  color: var(--ink-faint);
  transition: all 0.4s var(--ease);
}
.service-card:hover .service-arrow {
  color: var(--red-bright);
  transform: rotate(-45deg);
}

.services-table {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 24px;
  padding: 22px 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.table-row:last-child { border-bottom: none; }
.table-row:not(.table-head):hover { background: rgba(255,31,54,0.04); }
.table-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(0,0,0,0.3);
}
.table-row > div:first-child { font-weight: 600; }
.table-row > div:nth-child(2) { color: var(--ink-dim); font-size: 14.5px; }
.price-cell {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--red-bright);
  font-size: 16px;
}
.price-cell.free { color: #4ADE80; }

/* ============ TESTIMONIALS ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.review {
  position: relative;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease);
}
.review:hover {
  transform: translateY(-4px);
  border-color: rgba(255,31,54,0.25);
  box-shadow: var(--shadow-deep);
}
.quote-mark {
  position: absolute;
  top: 16px; right: 32px;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
}
.review p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
}
.review footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px var(--c1);
}
.review footer strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.review footer span {
  font-size: 13px;
  color: var(--ink-faint);
}

.review-cta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.review-platform {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 0.4s var(--ease);
}
.review-platform:hover {
  border-color: var(--red);
  background: rgba(255,31,54,0.06);
  transform: translateY(-2px);
}
.rp-logo {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.rp-2gis { background: linear-gradient(135deg, #5BC54B, #2E8B2A); }
.rp-yandex { background: #FFCC00; color: #000; }
.rp-text { font-size: 14px; font-weight: 600; }
.rp-arrow { color: var(--red-bright); transition: transform 0.3s var(--ease); }
.review-platform:hover .rp-arrow { transform: translateX(4px); }

/* ============ FAQ ============ */
.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.faq-item:hover { border-color: rgba(255,31,54,0.2); }
.faq-item[open] {
  border-color: rgba(255,31,54,0.3);
  background: linear-gradient(180deg, rgba(255,31,54,0.06), rgba(255,255,255,0.01));
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  transition: all 0.4s var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq-toggle::before {
  width: 12px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 1.5px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-toggle {
  background: var(--grad-red);
  border-color: transparent;
  color: #fff;
}
.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-item p {
  padding: 0 28px 26px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
  animation: faq-in 0.4s var(--ease);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ CONTACTS ============ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info {
  padding: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.info-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-block:first-of-type { padding-top: 0; }
.info-block:last-of-type { border-bottom: none; padding-bottom: 28px; }
.info-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
  font-weight: 600;
}
.info-block p { color: var(--ink); font-size: 16px; line-height: 1.55; }
.info-hint { color: var(--ink-faint); font-size: 13px; }
.info-big {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.info-big:hover { color: var(--red-bright); }
.info-address-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,31,54,0.08);
  border: 1px solid rgba(255,31,54,0.35);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.info-address-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 480px;
  background: linear-gradient(135deg, #14141a 0%, #08080c 100%);
}
.map-frame { position: absolute; inset: 0; }
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
}
.map-routes { position: absolute; inset: 0; }
.map-routes svg { width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}
.pin-pulse {
  position: absolute;
  width: 80px; height: 80px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.25;
  animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(0.4); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
.pin-dot {
  width: 24px; height: 24px;
  background: var(--grad-red);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(255,31,54,0.6);
  position: relative;
  z-index: 1;
}
.pin-label {
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-cta {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.map-cta:hover { background: var(--red); border-color: var(--red); }

/* ============ FOOTER ============ */
.site-footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin: 20px 0 24px;
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-dim);
  font-size: 14.5px;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--red-bright); }
.footer-col li { color: var(--ink-dim); font-size: 14.5px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer-disclaimer { max-width: 600px; }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(14px);
}
.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(92vh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #15151A 0%, #0E0E12 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-deep);
  animation: card-in 0.5s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 3px; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px; height: 40px;
  margin: -8px -10px 0 0;  /* pulls close button into corner padding */
  font-size: 22px;
  border-radius: 50%;
  color: var(--ink-dim);
  background: rgba(20,20,24,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 5;
}
.modal-close:hover { background: rgba(255,31,54,0.16); color: var(--red-bright); border-color: rgba(255,31,54,0.3); }
.modal-close:active { transform: scale(0.92); }
.modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,31,54,0.1);
  border: 1px solid rgba(255,31,54,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.modal-icon svg { width: 38px; height: 38px; }
.modal-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.modal-sub {
  color: var(--ink-dim);
  font-size: 14.5px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form .btn[type="submit"] { margin-top: 4px; }
.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-form label > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.modal-form label > span em { color: var(--red-bright); font-style: normal; }
.modal-form input,
.modal-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
  font-family: var(--font);
  -webkit-appearance: none;
  appearance: none;
}
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: var(--ink-faint); opacity: 0.7; }
.modal-form textarea { min-height: 92px; line-height: 1.5; }
.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,31,54,0.05);
  box-shadow: 0 0 0 3px rgba(255,31,54,0.15);
}
/* Consent checkbox in forms — custom styled, accessible */
label.check {
  position: relative;
  flex-direction: row !important;
  gap: 12px !important;
  align-items: flex-start !important;
  font-size: 12.5px !important;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 8px 4px;
  margin-top: 4px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* Hide native input but keep accessible */
label.check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
/* Custom box rendered as ::before on the <span> */
label.check span {
  position: relative;
  font-size: 12.5px !important;
  line-height: 1.45;
  color: var(--ink-faint);
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
  padding-left: 30px;
  flex: 1;
  min-width: 0;
}
label.check span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  transition: all 0.2s var(--ease);
  box-sizing: border-box;
}
label.check span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}
/* Checked state */
label.check input[type="checkbox"]:checked ~ span::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 0 rgba(255,31,54,0.3);
}
label.check input[type="checkbox"]:checked ~ span::after {
  transform: rotate(-45deg) scale(1);
}
/* Hover */
label.check:hover input[type="checkbox"]:not(:checked) ~ span::before {
  border-color: rgba(255,31,54,0.5);
  background: rgba(255,31,54,0.06);
}
/* Focus (keyboard) */
label.check input[type="checkbox"]:focus-visible ~ span::before {
  box-shadow: 0 0 0 3px rgba(255,31,54,0.25);
  outline: none;
}
/* Active (tap feedback) */
label.check:active span::before {
  transform: scale(0.92);
}
/* Invalid state — when required and not checked, after submit attempt */
label.check input[type="checkbox"]:required:invalid ~ span {
  color: var(--ink-dim);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Variants */
.reveal-left { transform: translate3d(-50px, 0, 0); }
.reveal-left.in { transform: translate3d(0, 0, 0); }

.reveal-right { transform: translate3d(50px, 0, 0); }
.reveal-right.in { transform: translate3d(0, 0, 0); }

.reveal-scale { transform: scale(0.92) translate3d(0, 24px, 0); }
.reveal-scale.in { transform: scale(1) translate3d(0, 0, 0); }

.reveal-rise { transform: translate3d(0, 70px, 0); filter: blur(12px); }
.reveal-rise.in { transform: translate3d(0, 0, 0); filter: blur(0); }

.reveal-tilt { transform: perspective(1000px) rotateX(14deg) translate3d(0, 40px, 0); transform-origin: 50% 100%; }
.reveal-tilt.in { transform: perspective(1000px) rotateX(0) translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-rise, .reveal-tilt {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============ CATALOG PAGE ============ */
.catalog-page-hero {
  padding: 160px 0 60px;
  position: relative;
  z-index: 1;
}
.cat-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 32px;
}
.cat-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: all 0.4s var(--ease);
}
.cat-tab.active {
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.cat-page-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 120px;
}

/* Compact collapsible filter bar */
.filter-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.filter-bar[open] { border-color: var(--line-2); }
.filter-bar-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.25s var(--ease);
}
.filter-bar-toggle::-webkit-details-marker { display: none; }
.filter-bar-toggle:hover { background: rgba(255,255,255,0.02); }
.fbt-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.fbt-left svg { color: var(--red-bright); }
.fbt-count {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.fbt-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.filter-bar[open] .fbt-right .filter-chev { transform: rotate(180deg); color: var(--red-bright); }
.filter-bar-body {
  padding: 6px 18px 18px;
  border-top: 1px solid var(--line);
  animation: filter-in 0.3s var(--ease);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 24px;
}
.filter-bar-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.filter-bar-actions .btn-primary {
  padding: 11px 22px;
  font-size: 12.5px;
}
@media (max-width: 720px) {
  .filter-grid { grid-template-columns: 1fr; gap: 0; }
  .fbt-count { display: none; }
}
.filter-panel {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  font-size: 13px;
}
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding: 6px 4px 8px;
  border-bottom: 1px solid var(--line);
}
.filter-head h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.filter-reset {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.filter-reset:hover { color: var(--red-bright); }

.filter-group {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.filter-group:last-of-type { border-bottom: none; }
.filter-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.25s var(--ease);
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary:hover { color: var(--ink); }
.filter-group[open] > summary { color: var(--red-bright); }
.filter-chev {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
  color: var(--ink-faint);
}
.filter-group[open] .filter-chev { transform: rotate(180deg); color: var(--red-bright); }
.filter-body {
  padding: 2px 4px 10px;
  animation: filter-in 0.3s var(--ease);
}
@keyframes filter-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-list { gap: 4px; }
.filter-list label {
  font-size: 12.5px;
  padding: 3px 0;
}
.filter-list input[type="checkbox"] {
  width: 14px; height: 14px;
}
.filter-list .count {
  font-size: 10.5px;
}
.range-group input {
  padding: 7px 10px;
  font-size: 11.5px;
  border-radius: 8px;
}
.chip-row { gap: 4px; }
.chip {
  padding: 4px 9px;
  font-size: 11.5px;
}
.filter-panel .btn-primary {
  padding: 11px 16px;
  font-size: 12.5px;
}
.filter-active-count {
  display: none;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--grad-red);
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}
.filter-group.has-active .filter-active-count { display: inline-block; }
.filter-list {
  display: flex;
  flex-direction: column;
}
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.filter-list label:hover { color: var(--red-bright); }
.filter-list input[type="checkbox"] {
  accent-color: var(--red);
  cursor: pointer;
}
.filter-list .count {
  margin-left: auto;
  color: var(--ink-faint);
}
.range-group {
  display: flex;
  gap: 6px;
}
.range-group input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font: inherit;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
}
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  color: var(--ink-dim);
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.active {
  background: var(--grad-red);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-red);
}

.cat-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-count-text { color: var(--ink-dim); font-size: 14.5px; }
.cat-count-text strong { color: var(--ink); font-weight: 700; }
.sort-select {
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.cat-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ============ ORDER PAGE ============ */
.order-hero {
  padding: 200px 0 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.order-hero .hero-title { margin: 0 auto 20px; }
.order-hero .hero-sub { margin: 0 auto 32px; }
.order-hero .hero-actions--centered { justify-content: center; }
.order-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 80px 0;
}
.process-step {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease);
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(255,31,54,0.3);
  box-shadow: var(--shadow-deep);
}
.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF3047, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.05em;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.benefit {
  padding: 36px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease);
}
.benefit:hover {
  transform: translateY(-4px);
  border-color: rgba(255,31,54,0.25);
  box-shadow: var(--shadow-deep);
}
.benefit-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-red);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow-red);
}
.benefit h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}
.benefit p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }

.order-form-section {
  padding: 80px 0 140px;
}
.order-form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px;
  background: linear-gradient(180deg, rgba(255,31,54,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,31,54,0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-deep);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row > label { min-width: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1240px) {
  .main-nav a, .nav-btn { padding: 9px 11px; font-size: 13.5px; }
  .header-inner { gap: 18px; }
  .header-cta { gap: 10px; }
  .socials { display: none; }
}
@media (max-width: 1040px) {
  .cta-btn { padding: 11px 16px; font-size: 12.5px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .site-header { padding: 8px 8px 8px 18px; }
  .about-grid, .contacts-grid, .catalog-cards { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .reviews-grid, .benefits-grid, .order-process { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cat-page-grid { grid-template-columns: 1fr; }
  .cat-results-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .cta-btn span:not(.cta-shine) { display: none; }
  .cta-btn { padding: 11px; width: 42px; height: 42px; }
  .cta-btn::after {
    content: "";
    width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") no-repeat center/contain;
    position: relative; z-index: 1;
  }
  section { padding: 80px 0; }
  .hero { padding: 130px 0 60px; }
  .hero-marquee { bottom: 30px; padding: 12px 0; }
  .marquee-track { font-size: 14px; gap: 40px; padding-right: 40px; }
  .marquee-track li::after { right: -22.5px; width: 4px; height: 4px; margin-top: -2px; }
  .marquee-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .featured-grid, .services-grid, .reviews-grid, .benefits-grid, .order-process, .cat-results-grid { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .counter { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .order-form-card { padding: 32px 24px; }
}

/* ============================================================
   GLOBAL FIX: italic + gradient-clipped headlines
   On mobile WebKit / iOS, italic letters with -webkit-background-clip: text
   get their right edge clipped (the slanted last letter falls outside its
   own glyph box and the clip region cuts it off). The fix is to add right
   padding inside the clipped element AND prevent ancestors from clipping.
   These rules are intentionally broad — they're safe for any gradient text.
   ============================================================ */
[style*="background-clip: text"],
[style*="background-clip:text"],
.hero-title em,
.section-title em,
.det-hero h1 em,
.ti-hero h1 em,
.by-hero h1 em,
.ins-hero h1 em,
.reg-hero h1 em,
.pillar-title em,
.def-title em,
.ti-card-name em,
.by-path-name em,
.ti-cta-card h2 em,
.by-cta-card h2 em,
.ab-hero-title em,
.about-trust-num em,
.det-service.feature h3,
.def-card.featured .def-stat strong,
.def-card.featured .def-title em,
.pillar.featured .pillar-title em {
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* Разрешаем synthesis italic для @font-face — иначе iOS Safari падает в системный serif */
  font-synthesis: style weight;
  -webkit-font-synthesis: style weight;
}

/* Prevent ancestors from cropping italics */
.hero-title .line { overflow: visible !important; padding-right: 0.12em; }
.hero-title { padding-right: 0.04em; }
.section-title,
.det-hero h1,
.ti-hero h1,
.by-hero h1,
.ins-hero h1,
.reg-hero h1,
.ab-hero-title,
.pillar-title,
.def-title,
.ti-card-name,
.by-path-name { padding-right: 0.04em; }

/* Mobile-specific extra safety: a touch more breathing room because
   smaller font sizes magnify rounding errors in WebKit's clip box. */
@media (max-width: 720px) {
  .hero-title em,
  .section-title em,
  .det-hero h1 em,
  .ti-hero h1 em,
  .by-hero h1 em,
  .ins-hero h1 em,
  .reg-hero h1 em,
  .ab-hero-title em,
  .pillar-title em,
  .def-title em,
  .ti-card-name em,
  .by-path-name em,
  .ti-cta-card h2 em,
  .by-cta-card h2 em {
    padding-right: 0.22em;
    margin-right: -0.04em;
  }
  /* Tighten extreme letter-spacing on mobile so words don't push off-edge */
  .hero-title { letter-spacing: -0.03em; }
  /* Make sure no ancestor section clips horizontally on mobile */
  .hero, .det-hero, .ti-hero, .by-hero, .ins-hero, .reg-hero,
  .about, .brands, .order-cta-section, .services, .faq, .reviews,
  .pillar, .def-card, .ti-card, .by-path { overflow-x: clip; }
}


/* === Cookie consent banner (Plan 4) === */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.cookie-banner-text p { margin: 0; line-height: 1.5; }
.cookie-banner-text a { color: #ff7080; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 768px) {
  .cookie-banner { flex-direction: row; align-items: center; left: auto; max-width: 640px; }
  .cookie-banner-actions { margin-left: auto; }
}

/* === ServiceForm error/success states (Plan 4) === */
.service-form-error {
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  color: #ff7080;
  font-size: 14px;
  line-height: 1.4;
}
.service-form-success p { margin: 8px 0 16px; line-height: 1.5; }

/* === Privacy page (Plan 4) === */
.privacy-page { padding: 40px 0 80px; }
.privacy-content h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.privacy-content h2 { font-size: 22px; margin-top: 32px; margin-bottom: 12px; }
.privacy-content p { line-height: 1.7; margin-bottom: 12px; }
.privacy-content ul { margin: 12px 0 12px 24px; }
.privacy-content li { margin-bottom: 6px; }
.privacy-content hr { border: none; border-top: 1px solid var(--line, rgba(255,255,255,0.1)); margin: 40px 0 16px; }

/* ============ CATALOG REDESIGN ============ */

.cat-page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.cat-filters-desktop { position: sticky; top: 88px; }
.cat-filters-mobile { display: none; }

@media (max-width: 960px) {
  .cat-page-grid { grid-template-columns: 1fr; }
  .cat-filters-desktop { display: none; }
  .cat-filters-mobile { display: block; margin-bottom: 16px; }
}

.cat-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-count-text { color: var(--ink-dim); font-size: 14px; }
.cat-count-text strong { color: var(--ink); }
.cat-results-controls { display: flex; gap: 8px; align-items: center; }

.sort-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}

.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle-btn.active { background: var(--red-bright); color: #fff; }

/* Catalog grid */
.catalog-grid.cat-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1280px) { .catalog-grid.cat-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  { .catalog-grid.cat-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .catalog-grid.cat-results-grid { grid-template-columns: 1fr; } }

/* Card slider */
.car-card-media { position: relative; }
.car-card-media-link { display: block; }
.car-card-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.car-card-slider .swiper {
  width: 100%;
  height: 100%;
}
.car-card-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* let mouse clicks reach the parent <Link> in CarCard */
  pointer-events: none;
}
.car-card-no-photo {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-card:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(0,0,0,0.85); }
.slider-arrow-prev { left: 8px; }
.slider-arrow-next { right: 8px; }

.slider-counter {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  z-index: 2;
}
.slider-dots {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}
.slider-dot.active { background: #fff; }

@media (max-width: 720px) {
  .slider-arrow { opacity: 1; width: 32px; height: 32px; font-size: 16px; }
}

/* Card body */
.car-card { display: flex; flex-direction: column; }
.car-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-card-title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.car-card-body-link:hover .car-card-title { color: var(--red-bright); }

.car-card-body-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.car-card-body-link:hover { color: inherit; text-decoration: none; }

.car-tag.tag-sold {
  background: rgba(255,255,255,0.08);
  color: var(--ink-dim);
  position: absolute;
  top: 8px;
  left: 8px;
}

/* Specs list */
.car-specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.car-specs-list li { display: flex; gap: 6px; }
.spec-label { color: var(--ink-faint); white-space: nowrap; }
.spec-value { color: var(--ink); }
.spec-row-price { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); align-items: baseline; }
.spec-price { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--red-bright); }

.car-specs-list-full { font-size: 15px; gap: 8px; }
.car-specs-list-full .spec-row-price { display: none; }

/* Buy button block */
.btn-block { width: 100%; }
.car-card-body > .btn { margin-top: auto; }
.car-card-body > .car-card-body-link { display: flex; flex-direction: column; flex: 1; }
.car-card-body > .car-card-body-link > .car-specs-list { flex: 1; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pagination-page, .pagination-arrow {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
}
.pagination-page.active { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.pagination-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination-gap { color: var(--ink-faint); padding: 0 6px; }

/* Filters */
.filter-panel { display: flex; flex-direction: column; gap: 4px; }
.filter-panel details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filter-panel details summary { cursor: pointer; font-weight: 500; padding: 4px 0; list-style: none; }
.filter-panel details summary::-webkit-details-marker { display: none; }
.filter-panel details summary::after { content: "+"; float: right; color: var(--ink-faint); }
.filter-panel details[open] summary::after { content: "−"; }
.filter-panel .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
.filter-panel .chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.filter-panel .chip.active { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.filter-range { display: flex; gap: 8px; padding: 10px 0 4px; }
.filter-range input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
}
.filter-reset {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Mobile filter drawer */
.mobile-filter-trigger {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  width: 100%;
  font-size: 14px;
  cursor: pointer;
}
.mobile-filter-drawer-root { position: fixed; inset: 0; z-index: 100; }
.mobile-filter-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.mobile-filter-drawer {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 90%;
  max-width: 360px;
  background: #0a0a0c;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.mobile-filter-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-filter-drawer-close { background: transparent; border: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.mobile-filter-drawer-body { flex: 1; overflow-y: auto; padding: 0 16px; }
.mobile-filter-drawer-foot { padding: 16px; border-top: 1px solid var(--line); }

/* List view (alternate layout) */
.cat-view-list { grid-template-columns: 1fr !important; }
.cat-view-list .car-card { flex-direction: row; }
.cat-view-list .car-card-media { width: 320px; flex-shrink: 0; }
.cat-view-list .car-card-body { flex: 1; }
@media (max-width: 720px) {
  .cat-view-list .car-card { flex-direction: column; }
  .cat-view-list .car-card-media { width: 100%; }
}

/* ============ CAR DETAIL REDESIGN ============ */

.car-page {
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .car-page { padding: 120px 0 64px; }
}
@media (max-width: 720px) {
  .car-page { padding: 96px 0 48px; }
}

.car-page .breadcrumbs {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.car-page .breadcrumbs a {
  color: var(--ink-dim);
  transition: color 0.2s var(--ease);
}
.car-page .breadcrumbs a:hover { color: var(--red-bright); }
.car-page .breadcrumbs span { color: var(--ink); }

.car-page .page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.car-page .page-title .car-year {
  color: var(--ink-faint);
  font-weight: 400;
}

.car-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}
@media (max-width: 1100px) {
  .car-detail-grid { grid-template-columns: 1.35fr 1fr; gap: 24px; }
}
@media (max-width: 960px) {
  .car-detail-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

.car-detail-gallery { min-width: 0; }

.car-gallery-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  user-select: none;
}
.car-gallery-cover .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.car-gallery-cover .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.car-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .car-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .car-gallery-thumb { flex: 0 0 80px; scroll-snap-align: start; }
}
.car-gallery-thumb {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.car-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-gallery-thumb.active { border-color: var(--red-bright); }
.car-gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

/* Summary sidebar */
.car-summary {
  position: sticky;
  top: 110px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
@media (max-width: 960px) {
  .car-summary { position: static; padding: 20px; }
}
.car-summary .car-price {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0;
}
.car-sold-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--ink-dim);
  font-weight: 600;
  margin: 0;
}
.car-actions { display: flex; flex-direction: column; gap: 10px; }
.car-actions .btn { width: 100%; }

/* Lightbox — портируется в body, z-index выше шапки (100), модалки (1000) и cookie-баннера (9999) */
.lightbox-root { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.lightbox-swiper {
  position: relative;
  z-index: 1;
  width: 92vw;
  height: 88vh;
}
.lightbox-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-swiper .swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px) + 12px);
  right: max(16px, env(safe-area-inset-right, 0px) + 12px);
  z-index: 3;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-counter {
  position: absolute;
  top: max(22px, env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.lightbox-arrow-prev { left: 16px; }
.lightbox-arrow-next { right: 16px; }

/* Lead modal */
.lead-modal-root {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: lead-modal-fade 0.18s ease-out;
}
.lead-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
}
.lead-modal-window {
  position: relative; z-index: 1;
  background: #0a0a0c;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: lead-modal-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.lead-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 18px;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.lead-modal-close:hover { background: rgba(255,255,255,0.05); color: var(--ink); }

@keyframes lead-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lead-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-modal-root,
  .lead-modal-window { animation: none; }
}
@media (max-width: 720px) {
  .lead-modal-window { padding: 24px 18px; max-height: 92vh; }
}

/* Similar cars */
.similar-cars { margin: 64px 0; }
.similar-cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1280px) { .similar-cars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  { .similar-cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  {
  .similar-cars-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
  .similar-cars-grid > * { flex: 0 0 270px; scroll-snap-align: start; }
}

/* Description / features blocks */
.car-description,
.car-features {
  margin: 56px 0;
  max-width: 920px;
}
.car-description h2,
.car-features h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.car-description :where(p, ul, ol) {
  margin: 0 0 12px;
  line-height: 1.65;
  color: var(--ink-dim);
  font-size: 15.5px;
}
.car-description :where(p, ul, ol):last-child { margin-bottom: 0; }

.car-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 24px;
}
.car-features-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.5;
}
.car-features-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
}

/* Inline lead form */
.car-inline-form {
  margin: 64px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 640px;
}
@media (max-width: 720px) {
  .car-inline-form { padding: 24px 20px; margin: 48px 0; }
  .car-description,
  .car-features { margin: 40px 0; }
}

/* === ServiceForm fields === */
.service-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-form-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.service-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-form .field > span {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.service-form .field input,
.service-form .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.service-form .field input::placeholder,
.service-form .field textarea::placeholder { color: var(--ink-faint); }
.service-form .field input:focus,
.service-form .field textarea:focus {
  outline: none;
  border-color: var(--red-bright);
  background: rgba(255,255,255,0.05);
}
.service-form .field textarea {
  resize: vertical;
  min-height: 84px;
  font-family: inherit;
}
.service-form .field input:disabled,
.service-form .field textarea:disabled { opacity: 0.5; cursor: not-allowed; }

.service-form .field-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  cursor: pointer;
}
.service-form .field-checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--red-bright);
  width: 16px; height: 16px;
}
.service-form .field-checkbox a { color: var(--red-bright); }
.service-form .field-checkbox a:hover { text-decoration: underline; }

.service-form > .btn {
  margin-top: 6px;
  align-self: flex-start;
  padding: 13px 28px;
  min-width: 200px;
}
@media (max-width: 480px) {
  .service-form > .btn { width: 100%; min-width: 0; }
}
/* iOS Safari включает авто-зум на input с font-size < 16px — это растягивает viewport
   и появляется горизонтальный скролл. Поднимаем до 16px на тач-устройствах. */
@media (max-width: 768px) {
  .service-form .field input,
  .service-form .field textarea { font-size: 16px; }
}

/* Mobile: car actions stacked tighter */
@media (max-width: 480px) {
  .car-actions .btn { padding: 14px; font-size: 15px; }
}

/* ============================================================
   GLOBAL ITALIC FIX (iOS Safari)
   Unbounded и Manrope (next/font/google) не имеют italic-варианта.
   iOS Safari в этом случае не синтезирует italic для @font-face и
   уходит на системный serif italic — у кириллицы выходят широкие
   глифы, слова разлетаются и вылезают за края макета.
   Решение: вместо font-style: italic эмулируем наклон через
   transform: skewX() на реальных глифах Unbounded.
   Применяется ко всем italic-em-заголовкам сайта.
   ============================================================ */
.section-title em,
.ab-hero-title em,
.by-cta-card h3 em,
.by-path-1 .by-path-name em,
.by-path-2 .by-path-name em,
.by-section-head h2 em,
.by-title em,
.def-title em,
.det-section-head h2 em,
.det-title em,
.ins-intro h2 em,
.ins-section-head h2 em,
.ins-title em,
.manifesto-text em,
.pillar-title em,
.promise-text h3 em,
.ti-card-new .ti-card-name em,
.ti-card-name em,
.ti-section-head h2 em,
.ti-title em,
.about-trust-num em,
.reg-title em,
.reg-section-head h2 em {
  font-style: normal !important;
  display: inline-block;
  transform: skewX(-10deg);
  transform-origin: left center;
  padding-right: 0.22em;
  margin-right: -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
