/* === Brand tokens === */

:root {
  /* Core palette */
  --color-graphite:        #14181F;   /* Storm Graphite — primary dark bg */
  --color-graphite-2:      #1B2028;   /* Elevated surfaces */
  --color-graphite-border: #232932;   /* Hairlines */
  --color-ice:             #EDF0F4;   /* Silver Ice — primary light text */
  --color-discharge:       #1B9DE0;   /* Storm Discharge — accent/CTA/highlight */
  --color-discharge-soft:  rgba(27, 157, 224, 0.14);  /* Tinted backgrounds */
  --color-muted:           rgba(237, 240, 244, 0.62); /* Secondary text */

  /* Convenience aliases (kept for backward compat with template snippets) */
  --gold:       var(--color-discharge);
  --gold-soft:  #7ac9ef;
  --muted:      var(--color-muted);

  /* Radii */
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 14px;

  /* Shadow */
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);

  /* Typography */
  font-family: 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* === Reset & base === */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-graphite);
}

body {
  margin: 0;
  color: var(--color-ice);
  background:
    radial-gradient(circle at top center, rgba(27, 157, 224, 0.08), transparent 22%),
    linear-gradient(180deg, #14181F 0%, #111520 18%, #14181F 42%, #0e1218 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100svh;
}

/* === Typography === */

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-ice);
  font-family: 'Exo 2', 'General Sans', system-ui, sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3.5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-discharge);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.hero-lead,
.page-intro p,
.modal-lead,
.cta-card p,
.legal-block p,
.car-card-footer p,
.catalog-support span {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.65;
}

.text-link {
  color: var(--color-discharge);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* === Header === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(20, 24, 31, 0.90);
  border-bottom: 1px solid var(--color-graphite-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-ice);
  transition: padding 200ms ease, background 200ms ease;
}

/* Condensed state (toggled via JS on scroll > 80px) */
.site-header.is-condensed {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(20, 24, 31, 0.97);
}

.brand-lockup img {
  width: auto;
  height: 58px;
  display: block;
  /* Asset is already a white knockout (GT + flag + readable «premium rental») */
}
.footer-branding img {
  width: auto;
  height: 64px;
  display: block;
}

/* Light theme: flip the white knockout to a dark mark (knockouts stay transparent) */
html[data-theme="light"] .brand-lockup img,
html[data-theme="light"] .footer-branding img {
  filter: invert(1);
}

/* === Navigation === */

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.main-nav {
  justify-content: center;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: "";
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 3.5l3 3 3-3' stroke='rgba(237,240,244,0.5)' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
  transition: transform 160ms ease;
}

.nav-dropdown:hover > a::after,
.nav-dropdown.is-open > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: rgba(27, 32, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}

.nav-dropdown-menu a:hover {
  background: var(--color-discharge-soft);
  color: var(--color-ice);
}

.main-nav a:hover {
  color: var(--color-ice);
}

.footer-nav a:hover,
.text-link:hover {
  color: var(--color-discharge);
}

.header-utilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

/* === Location toggle === */

.location-toggle form {
  display: flex;
  border: 1px solid var(--color-graphite-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.location-toggle button {
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: rgba(237, 240, 244, 0.50);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.location-toggle button.active {
  background: var(--color-discharge-soft);
  color: var(--color-discharge);
}

.location-toggle button:hover:not(.active) {
  color: var(--color-ice);
}

/* === Messenger chips === */

.messenger-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-graphite-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-ice);
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.messenger-chip:hover {
  background: var(--color-discharge-soft);
  border-color: rgba(27, 157, 224, 0.30);
}

.chip-icon,
.floating-contacts svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Telegram chip — colour the icon tile in official Telegram blue
   so it sits visually on par with the MAX gradient icon */
.chip-icon--telegram {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #229ED9;
  border-radius: 6px;
}
.chip-icon--telegram svg {
  width: 14px;
  height: 14px;
  color: #FFFFFF;
}

.header-phone {
  color: var(--color-ice);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.flash-banner {
  margin: 12px clamp(20px, 5vw, 56px) 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(23, 78, 46, 0.12);
  color: #4caf6a;
  font-weight: 700;
}

/* === Buttons === */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.button.primary {
  background: var(--color-discharge);
  color: var(--color-graphite);
  font-weight: 800;
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.dark {
  background: var(--color-graphite-2);
  color: var(--color-ice);
}

.button.ghost {
  border-color: rgba(237, 240, 244, 0.35);
  background: rgba(237, 240, 244, 0.07);
  color: var(--color-ice);
}

.button.ghost:hover {
  border-color: rgba(237, 240, 244, 0.60);
  background: rgba(237, 240, 244, 0.14);
}

.button.small,
.button.mini {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 13px;
}

.button.wide {
  width: 100%;
}

/* === Hero — Full-bleed carousel === */

.hero-v2 {
  position: relative;
  height: 94svh;
  min-height: 580px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  background: var(--color-graphite);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text overlay layer */
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background: linear-gradient(
    to top,
    rgba(7, 9, 13, 0.98) 0%,
    rgba(7, 9, 13, 0.92) 30%,
    rgba(7, 9, 13, 0.78) 55%,
    rgba(7, 9, 13, 0.45) 75%,
    rgba(7, 9, 13, 0.15) 90%,
    transparent 100%
  );
}

.hero-location-tag {
  margin: 0 0 12px;
  color: var(--color-discharge);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.hero-inner h1 {
  margin-bottom: 14px;
  color: var(--color-ice);
  font-size: clamp(32px, 5.5vw, 68px);
  max-width: 720px;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--color-ice);
  text-shadow:
    0 1px 3px rgba(0,0,0,0.95),
    0 2px 16px rgba(0,0,0,0.85),
    0 0 40px rgba(0,0,0,0.7);
}

/* Hero price numerals — discharge blue for digits */
.hero-price-num {
  font-family: 'Exo 2', system-ui, sans-serif;
  font-style: italic;
  font-weight: 800;
  color: var(--color-discharge);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(237, 240, 244, 0.82);
  font-size: 15px;
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-discharge);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-dots {
  position: absolute;
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(40px, 7vw, 80px);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(237, 240, 244, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.hero-dot.is-active {
  background: var(--color-discharge);
  border-color: var(--color-discharge);
  transform: scale(1.2);
}

/* === Metrics band === */

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-graphite-border);
}

.metrics-band div {
  min-height: 110px;
  padding: 22px 24px;
  background: var(--color-graphite-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metrics-band strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-discharge);
  font-family: 'Exo 2', system-ui, sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.metrics-band span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* === Sections === */

.section,
.hero-v2,
.page-intro,
.car-detail-hero {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 56px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.category-section-block {
  padding-top: 0;
  padding-bottom: clamp(30px, 4vw, 60px);
}

.dark-panel {
  color: var(--color-ice);
  border-top: 1px solid var(--color-graphite-border);
  border-bottom: 1px solid var(--color-graphite-border);
  background: linear-gradient(180deg, #0e1117 0%, #121620 100%);
}

/* === Category grid === */

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

.category-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite-2);
  transition: background 160ms ease, border-color 200ms ease, transform 200ms ease;
}

.category-card:hover {
  background: rgba(27, 32, 40, 0.90);
  border-color: var(--color-discharge);
  transform: translateY(-2px);
}

.category-card span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card strong {
  font-family: 'Exo 2', system-ui, sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--color-ice);
}

/* === Service grid === */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  padding: 26px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite-2);
  transition: background 160ms ease, border-color 200ms ease, transform 200ms ease;
}

.service-grid article:hover {
  background: rgba(27, 32, 40, 0.85);
  border-color: var(--color-discharge);
  transform: translateY(-2px);
}

.service-num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-discharge);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-grid p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Advantages + CTA === */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg, #0e1117 0%, #121620 100%);
}

.content-stack {
  display: grid;
  gap: 24px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.advantage-grid article {
  padding: 20px 22px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-md);
  background: var(--color-graphite-2);
  transition: border-color 200ms ease, transform 200ms ease;
}

.advantage-grid article:hover {
  border-color: var(--color-discharge);
  transform: translateY(-2px);
}

.advantage-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ice);
}

.advantage-grid span {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cta-card {
  padding: 30px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-graphite-2), #111620);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cta-contacts {
  margin-top: 18px;
}

/* === Quick start === */

.quick-start {
  background: linear-gradient(180deg, #121620 0%, #0e1117 100%);
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-start-grid article {
  padding: 24px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite-2);
  transition: border-color 200ms ease, transform 200ms ease;
}

.quick-start-grid article:hover {
  border-color: var(--color-discharge);
  transform: translateY(-2px);
}

.quick-start-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ice);
}

.quick-start-grid span {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* === Car grid & cards === */

.card-actions,
.detail-actions,
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.car-card {
  overflow: hidden;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite-2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.car-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36);
  border-color: var(--color-discharge);
}

.car-card-link {
  display: block;
}

.car-image {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--color-graphite);
}

.car-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1318 100%);
  font-size: 13px;
  font-style: italic;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}

.car-image img,
.car-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-image-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 22px 40px;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.55) 45%, transparent 100%);
}

.car-type {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.car-image-topline strong,
.car-image-topline em {
  display: block;
  font-style: normal;
  color: var(--color-ice);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.car-image-topline strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.car-image-topline em {
  margin-top: 5px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
}

.car-hover-specs {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  /* Frosted glass: translucent so the car shows through, heavy blur keeps text legible */
  background: rgba(13, 16, 22, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  color: var(--color-ice);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.car-hover-specs span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.car-hover-specs span:last-child {
  border-bottom: none;
}
.car-hover-specs i {
  font-style: normal;
  color: rgba(237, 240, 244, 0.82);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.car-hover-specs b {
  font-weight: 700;
  color: #FFFFFF;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.car-card:hover .car-hover-specs {
  opacity: 1;
  transform: translateY(0);
}

.car-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.car-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-discharge-soft);
  border: 1px solid rgba(27, 157, 224, 0.28);
  color: var(--color-discharge);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.car-card-footer {
  padding: 18px 22px;
  color: var(--color-ice);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

/* === Catalog page === */

.page-intro {
  margin: 0;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 56px) clamp(24px, 3vw, 40px);
}

.page-intro h1 {
  font-size: clamp(26px, 4vw, 52px);
}

.catalog-section {
  padding-top: 0;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.catalog-support {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite-2);
}

.catalog-support strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--color-ice);
}

/* === Forms === */

.request-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-md);
  background: var(--color-graphite-2);
  color: var(--color-ice);
  font-size: 15px;
  transition: border-color 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(27, 157, 224, 0.55);
}

input::placeholder,
textarea::placeholder {
  color: rgba(237, 240, 244, 0.30);
}

/* === Car detail carousel === */

.detail-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 48px);
}

@media (min-width: 1100px) {
  .detail-stage {
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: start;
  }
}

.detail-stage-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Carousel container */
.detail-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-graphite-2);
  box-shadow: var(--shadow);
  outline: none;
}

/* Track */
.detail-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.detail-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Slides */
.detail-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  margin: 0;
  padding: 0;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows — hidden on mobile, shown ≥ 760px */
.detail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-ice);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.detail-arrow:hover {
  border-color: var(--color-discharge);
  background: rgba(27, 157, 224, 0.18);
}

.detail-arrow--prev { left: 14px; }
.detail-arrow--next { right: 14px; }

@media (min-width: 760px) {
  .detail-arrow {
    display: inline-flex;
  }
}

/* Overlay: eyebrow + h1 + price */
.detail-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.90) 100%);
  pointer-events: none;
}

.detail-overlay .eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--gold-soft);
}

.detail-overlay h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 48px);
}

.detail-price {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--color-discharge);
}

.detail-price-unit {
  color: var(--color-muted);
  font-size: 0.75em;
  font-weight: 400;
}

/* Counter */
.detail-counter {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-ice);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Thumbnails */
.detail-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.detail-thumbs::-webkit-scrollbar {
  display: none;
}

.detail-thumb {
  flex: 0 0 96px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-graphite-2);
  cursor: pointer;
  transition: border-color 160ms ease;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-thumb.is-active {
  border-color: var(--color-discharge);
}

/* Stat strip */
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 12px 16px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-md);
  background: var(--color-graphite-2);
  text-align: center;
}

.detail-stat strong {
  font-family: 'Exo 2', 'General Sans', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-ice);
  line-height: 1.1;
}

.detail-stat span {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Booking card */
.detail-booking {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-xl);
  background: var(--color-graphite-2);
  box-shadow: var(--shadow);
}

@media (min-width: 1100px) {
  .detail-booking {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.detail-booking-price {
  line-height: 1.1;
}

.detail-booking-amount {
  font-family: 'Exo 2', 'General Sans', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--color-discharge);
}

.detail-booking-unit {
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 400;
}

/* Spec strip inside booking card */
.detail-spec-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.spec-strip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-graphite-border);
}

.spec-strip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-strip-label {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
}

.spec-strip-value {
  color: var(--color-ice);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* Requirements sub-card */
.detail-requirements {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
  border-top: 1px solid var(--color-graphite-border);
}

.detail-requirements .eyebrow {
  margin-bottom: 8px;
}

/* Booking chips row */
.detail-booking-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Description */
.detail-description {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 48px);
}

.detail-description h2 {
  margin-top: 8px;
}

.detail-description-body {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}

.detail-description-body p {
  margin: 0 0 1.2em;
}

/* Mobile sticky bottom CTA */
.detail-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(27, 32, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-graphite-border);
  transform: translateY(100%);
  transition: transform 280ms ease;
}

.detail-mobile-cta.is-visible {
  transform: translateY(0);
}

.detail-mobile-cta-price {
  flex: 1 1 auto;
}

@media (max-width: 760px) {
  .detail-mobile-cta {
    display: flex;
  }
}

/* Backward-compat: keep .narrow for other pages */
.narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* === Photos disk link === */

.photos-disk-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-discharge);
  opacity: 0.85;
  transition: opacity 150ms ease;
}

.photos-disk-link:hover {
  opacity: 1;
}

/* === Pricing tiers === */

.pricing-tiers {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-graphite-border);
}
.pricing-tiers > .eyebrow {
  margin: 0 0 12px;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-graphite-border);
  transition: background 160ms ease;
}
.tier-row:last-child {
  border-bottom: none;
}
.tier-row:hover {
  background: var(--color-discharge-soft);
}
.tier-duration {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tier-price {
  color: var(--color-ice);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Soft accent for the headline (shortest, most expensive) tier */
.tier-row:first-child .tier-price {
  color: var(--color-discharge);
}

.pricing-tiers-text {
  margin: 8px 0 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--color-muted);
}

html[data-theme="light"] .pricing-tiers {
  border-top-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .pricing-tiers-text {
  color: rgba(0, 0, 0, 0.6);
}

/* === Legal & logo pages === */

.legal-layout,
.logo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-block,
.logo-card {
  padding: 26px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite-2);
}

.logo-card img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--color-graphite);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--color-graphite-border);
  border-radius: 999px;
  background: var(--color-graphite-2);
  color: var(--color-ice);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.social-links a:hover {
  background: var(--color-discharge-soft);
  border-color: rgba(27, 157, 224, 0.30);
}

/* === Footer === */

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.3fr;
  gap: 40px;
  padding: 48px clamp(20px, 5vw, 56px) 60px;
  border-top: 1px solid var(--color-graphite-border);
  background: var(--color-graphite);
  margin-top: 40px;
}

.footer-branding p {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-nav a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--color-discharge);
}

.footer-contacts {
  display: grid;
  gap: 12px;
}

.footer-contacts strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 240, 244, 0.35);
}

.footer-contacts a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.footer-contacts a:hover {
  color: var(--color-ice);
}

.footer-addresses {
  display: grid;
  gap: 12px;
  align-content: start;
}
.footer-addresses strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 240, 244, 0.35);
}
.footer-address {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}
.footer-address b {
  display: block;
  color: var(--color-ice);
  font-weight: 600;
  margin-bottom: 1px;
}

.footer-location {
  display: inline-block;
  justify-self: start;
  margin-top: 4px;
  padding: 6px 14px;
  border: 1px solid rgba(27, 157, 224, 0.24);
  border-radius: 999px;
  color: var(--color-discharge);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* === Floating contacts === */

.floating-contacts {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 10px;
  padding: 10px 8px;
  border: 1px solid var(--color-graphite-border);
  border-radius: 999px;
  background: rgba(27, 32, 40, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
  transform: translateY(-50%);
}

.floating-contacts a,
.floating-contacts button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-graphite-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-ice);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.floating-contacts a:hover,
.floating-contacts button:hover {
  background: var(--color-discharge-soft);
  border-color: rgba(27, 157, 224, 0.35);
  transform: scale(1.06);
}

.floating-contacts svg {
  width: 22px;
  height: 22px;
}

/* Floating items — Carloson-style dark circles with branded marks inside */
.floating-contacts .fc-item {
  background: rgba(20, 24, 31, 0.92);
  border-color: rgba(237, 240, 244, 0.12);
  color: #FFFFFF;
}
.floating-contacts .fc-item:hover {
  background: rgba(27, 32, 40, 0.95);
  border-color: rgba(237, 240, 244, 0.28);
}
.floating-contacts .fc-max svg {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.floating-contacts .fc-book svg {
  width: 24px;
  height: 24px;
}

/* === Modal === */

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100% - 32px));
  margin: 7svh auto 0;
  padding: 32px;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-graphite-2), #111620);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-graphite-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background 160ms ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.modal-consent {
  margin-top: 16px;
  color: rgba(237, 240, 244, 0.38);
  font-size: 13px;
  line-height: 1.5;
}

.modal-consent a {
  color: var(--color-discharge);
}

/* === Catalog CTA block === */

.catalog-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
}

.catalog-cta-block .eyebrow {
  margin: 0;
}

/* === Partner / Сотрудничество block === */
.dark-panel {
  background: linear-gradient(180deg, var(--color-graphite-2) 0%, var(--color-graphite) 100%);
  border: 1px solid var(--color-graphite-border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 56px);
}
.partner-lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.partner-sub-lead {
  padding: 16px 20px;
  margin: 0 0 24px;
  background: var(--color-discharge-soft);
  border-left: 3px solid var(--color-discharge);
  border-radius: 10px;
  color: var(--color-ice);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  max-width: 760px;
}
.metrics-band--partner { margin: 28px 0; }
.partner-income-highlight {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 36px 0 24px;
  padding: 24px 28px;
  background: var(--color-discharge-soft);
  border-left: 3px solid var(--color-discharge);
  border-radius: 14px;
}
.partner-pct {
  font-family: 'Exo 2', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(48px, 7vw, 84px);
  color: var(--color-discharge);
  line-height: 1;
  letter-spacing: -0.02em;
}
.partner-pct-label {
  color: var(--color-ice);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 280px;
  line-height: 1.4;
}
.partner-what-we-do { margin: 32px 0; }
.partner-what-we-do ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.partner-what-we-do li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--color-graphite);
  border: 1px solid var(--color-graphite-border);
  border-radius: 10px;
  color: var(--color-ice);
  font-size: 15px;
  line-height: 1.45;
}
.partner-what-we-do li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--color-discharge);
  box-shadow: 0 0 0 4px var(--color-discharge-soft);
}
.partner-cta { margin-top: 28px; }


/* === Responsive — tablet (768px–1099px) === */

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .header-utilities {
    justify-content: flex-start;
  }

  .hero-inner {
    padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 48px);
  }

  .hero-dots {
    right: clamp(20px, 4vw, 48px);
    bottom: clamp(32px, 5vw, 60px);
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .car-detail-hero {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-branding {
    grid-column: 1 / -1;
  }

  .metrics-band,
  .category-grid,
  .car-grid,
  .service-grid,
  .advantage-grid,
  .quick-start-grid,
  .legal-layout,
  .logo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Responsive — mobile (< 768px) === */

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand-lockup img {
    height: 46px;
  }

  .main-nav {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown > a::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--color-graphite-2);
    display: none;
    gap: 8px;
    transform: none;
    opacity: 1;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .header-utilities {
    gap: 8px;
    flex-wrap: wrap;
  }

  .location-toggle button {
    padding: 6px 10px;
    font-size: 11px;
  }

  .messenger-chip {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
    gap: 5px;
  }

  .header-phone {
    font-size: 14px;
  }

  .header-utilities .button.small {
    min-height: 40px;
    flex: 1 1 140px;
  }

  /* Hero mobile */
  .hero-v2 {
    height: 88svh;
    min-height: 520px;
  }

  .hero-inner {
    padding: 28px 20px;
    justify-content: flex-end;
  }

  .hero-inner h1 {
    font-size: clamp(28px, 9vw, 44px);
  }

  .hero-points {
    gap: 8px 16px;
  }

  .hero-points li {
    font-size: 14px;
  }

  .hero-dots {
    right: 20px;
    bottom: 28px;
  }

  /* Sections */
  .metrics-band,
  .category-grid,
  .car-grid,
  .service-grid,
  .advantage-grid,
  .quick-start-grid,
  .legal-layout,
  .logo-gallery,
  .filters,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .quick-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-support {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .floating-contacts {
    display: none;
  }
}

/* === Light theme === */

html[data-theme="light"] {
  background-color: #F5F4F0;
}

html[data-theme="light"] body {
  color: #1A1C24;
  background: #F5F4F0;
}

/* Header */
html[data-theme="light"] .site-header {
  background: rgba(245, 244, 240, 0.95);
  border-bottom-color: rgba(26, 28, 36, 0.09);
  color: #1A1C24;
}

html[data-theme="light"] .main-nav {
  color: rgba(26, 28, 36, 0.62);
}

html[data-theme="light"] .main-nav a:hover {
  color: #1A1C24;
}

html[data-theme="light"] .nav-dropdown > a::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 3.5l3 3 3-3' stroke='rgba(26,28,36,0.45)' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-theme="light"] .nav-dropdown-menu {
  background: rgba(245, 244, 240, 0.99);
  border-color: rgba(26, 28, 36, 0.10);
}

html[data-theme="light"] .nav-dropdown-menu a {
  color: rgba(26, 28, 36, 0.70);
}

html[data-theme="light"] .nav-dropdown-menu a:hover {
  background: rgba(27, 157, 224, 0.08);
  color: #1A1C24;
}

/* Location toggle */
html[data-theme="light"] .location-toggle form {
  border-color: rgba(26, 28, 36, 0.14);
  background: rgba(26, 28, 36, 0.04);
}

html[data-theme="light"] .location-toggle button {
  color: rgba(26, 28, 36, 0.50);
}

html[data-theme="light"] .location-toggle button.active {
  background: rgba(27, 157, 224, 0.14);
  color: var(--color-discharge);
}

html[data-theme="light"] .location-toggle button:hover:not(.active) {
  color: #1A1C24;
}

/* Messenger chips */
html[data-theme="light"] .messenger-chip {
  border-color: rgba(26, 28, 36, 0.14);
  background: rgba(26, 28, 36, 0.04);
  color: rgba(26, 28, 36, 0.82);
}

html[data-theme="light"] .messenger-chip:hover {
  background: rgba(26, 28, 36, 0.08);
  border-color: rgba(26, 28, 36, 0.20);
}

html[data-theme="light"] .header-phone {
  color: #1A1C24;
}

/* Hero — centered layout for light theme */
html[data-theme="light"] .hero-inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(7, 9, 13, 0.82) 0%,
    rgba(7, 9, 13, 0.55) 35%,
    rgba(7, 9, 13, 0.42) 65%,
    rgba(7, 9, 13, 0.25) 100%
  );
}

html[data-theme="light"] .hero-inner h1,
html[data-theme="light"] .hero-lead {
  max-width: 760px;
}

html[data-theme="light"] .hero-points {
  justify-content: center;
}

html[data-theme="light"] .hero-actions {
  justify-content: center;
}

html[data-theme="light"] .hero-dots {
  right: 50%;
  transform: translateX(50%);
  bottom: clamp(24px, 4vw, 48px);
}

/* Body text / muted text */
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .page-intro p,
html[data-theme="light"] .modal-lead,
html[data-theme="light"] .cta-card p,
html[data-theme="light"] .legal-block p,
html[data-theme="light"] .car-card-footer p,
html[data-theme="light"] .catalog-support span {
  color: rgba(26, 28, 36, 0.64);
}

html[data-theme="light"] .text-link:hover {
  color: var(--color-discharge);
}

/* Flash banner */
html[data-theme="light"] .flash-banner {
  background: rgba(23, 78, 46, 0.10);
  color: #1b6e3a;
}

/* Metrics band */
html[data-theme="light"] .metrics-band {
  background: rgba(26, 28, 36, 0.06);
}

html[data-theme="light"] .metrics-band div {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .metrics-band span {
  color: rgba(26, 28, 36, 0.60);
}

/* Category cards */
html[data-theme="light"] .category-card {
  border-color: rgba(26, 28, 36, 0.10);
  background: rgba(255, 255, 255, 0.60);
}

html[data-theme="light"] .category-card:hover {
  background: rgba(255, 255, 255, 0.90);
  border-color: var(--color-discharge);
}

html[data-theme="light"] .category-card span {
  color: rgba(26, 28, 36, 0.55);
}

html[data-theme="light"] .category-card strong {
  color: #1A1C24;
}

/* Car cards */
html[data-theme="light"] .car-card {
  background: #FFFFFF;
  border-color: rgba(26, 28, 36, 0.08);
  box-shadow: 0 2px 16px rgba(26, 28, 36, 0.08);
}

html[data-theme="light"] .car-card:hover {
  box-shadow: 0 10px 44px rgba(26, 28, 36, 0.16);
  border-color: var(--color-discharge);
}

html[data-theme="light"] .car-card-footer {
  color: #1A1C24;
}

/* Empty state */
html[data-theme="light"] .empty-state {
  border-color: rgba(26, 28, 36, 0.14);
  background: rgba(26, 28, 36, 0.02);
}

/* Services section — keep dark for contrast */
html[data-theme="light"] .dark-panel {
  background: linear-gradient(180deg, #1A1C24 0%, #22252F 100%);
  border-color: transparent;
}

/* Advantages + CTA section */
html[data-theme="light"] .section-split {
  background: #ECEAE4;
}

html[data-theme="light"] .advantage-grid article {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(26, 28, 36, 0.09);
}

html[data-theme="light"] .advantage-grid strong {
  color: #1A1C24;
}

html[data-theme="light"] .advantage-grid span {
  color: rgba(26, 28, 36, 0.58);
}

html[data-theme="light"] .cta-card {
  background: #FFFFFF;
  border-color: rgba(26, 28, 36, 0.10);
  box-shadow: 0 4px 32px rgba(26, 28, 36, 0.10);
}

/* Quick start */
html[data-theme="light"] .quick-start {
  background: #ECEAE4;
}

html[data-theme="light"] .quick-start-grid article {
  background: rgba(255, 255, 255, 0.60);
  border-color: rgba(26, 28, 36, 0.09);
}

html[data-theme="light"] .quick-start-grid strong {
  color: #1A1C24;
}

html[data-theme="light"] .quick-start-grid span {
  color: rgba(26, 28, 36, 0.60);
}

/* Social links */
html[data-theme="light"] .social-links a {
  background: rgba(26, 28, 36, 0.04);
  border-color: rgba(26, 28, 36, 0.10);
  color: #1A1C24;
}

html[data-theme="light"] .social-links a:hover {
  background: rgba(27, 157, 224, 0.08);
  border-color: rgba(27, 157, 224, 0.25);
}

/* Ghost button on light backgrounds (non-hero) */
html[data-theme="light"] .button.ghost {
  border-color: rgba(26, 28, 36, 0.22);
  background: rgba(26, 28, 36, 0.06);
  color: #1A1C24;
}

html[data-theme="light"] .button.ghost:hover {
  border-color: rgba(26, 28, 36, 0.35);
  background: rgba(26, 28, 36, 0.10);
}

/* Forms */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: rgba(26, 28, 36, 0.04);
  border-color: rgba(26, 28, 36, 0.12);
  color: #1A1C24;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: rgba(27, 157, 224, 0.52);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: rgba(26, 28, 36, 0.36);
}

html[data-theme="light"] label span {
  color: rgba(26, 28, 36, 0.54);
}

/* Catalog page */
html[data-theme="light"] .catalog-support {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(26, 28, 36, 0.08);
}

html[data-theme="light"] .catalog-support strong {
  color: #1A1C24;
}

/* Legal / Logo pages */
html[data-theme="light"] .legal-block,
html[data-theme="light"] .logo-card {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(26, 28, 36, 0.09);
}

html[data-theme="light"] .logo-card img {
  background: #ECEAE4;
}

/* Car detail */
html[data-theme="light"] .car-detail-sidebar {
  background: #FFFFFF;
  border-color: rgba(26, 28, 36, 0.10);
  box-shadow: 0 4px 32px rgba(26, 28, 36, 0.10);
}

html[data-theme="light"] .detail-specs div {
  background: rgba(26, 28, 36, 0.03);
  border-color: rgba(26, 28, 36, 0.08);
}

html[data-theme="light"] .detail-specs dt {
  color: rgba(26, 28, 36, 0.46);
}

/* Modal */
html[data-theme="light"] .modal-card {
  background: #FFFFFF;
  border-color: rgba(26, 28, 36, 0.10);
}

html[data-theme="light"] .modal-close {
  background: rgba(26, 28, 36, 0.06);
  border-color: rgba(26, 28, 36, 0.12);
  color: rgba(26, 28, 36, 0.70);
}

html[data-theme="light"] .modal-close:hover {
  background: rgba(26, 28, 36, 0.12);
}

html[data-theme="light"] .modal-consent {
  color: rgba(26, 28, 36, 0.40);
}

/* Floating contacts */
html[data-theme="light"] .floating-contacts {
  background: rgba(245, 244, 240, 0.92);
  border-color: rgba(26, 28, 36, 0.10);
}

html[data-theme="light"] .floating-contacts a,
html[data-theme="light"] .floating-contacts button {
  background: rgba(26, 28, 36, 0.06);
  border-color: rgba(26, 28, 36, 0.10);
  color: #1A1C24;
}

html[data-theme="light"] .floating-contacts a:hover,
html[data-theme="light"] .floating-contacts button:hover {
  background: rgba(27, 157, 224, 0.12);
  border-color: rgba(27, 157, 224, 0.28);
}
