/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== Tokens ===== */
:root {
  --bg:          #F2F5FD;
  --surface:     #FFFFFF;
  --surface-2:   #E7EDFA;
  --fg:          #0C1829;
  --muted:       #7B93B0;
  --muted-2:     #3E5A78;
  --border:      rgba(12, 24, 41, 0.08);
  --border-2:    rgba(12, 24, 41, 0.15);
  --blue:        #3B7BF5;
  --purple:      #7C3AED;
  --grad:        linear-gradient(135deg, #3B7BF5 0%, #7C3AED 100%);
  --grad-glow:   0 0 40px rgba(59, 123, 245, 0.2);
  --nav-h:       68px;
  --r:           14px;
  --r-sm:        8px;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(242, 245, 253, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav--solid {
  background: rgba(242, 245, 253, 0.97);
  border-color: var(--border-2);
}

.nav__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__brand {
  font-size: 1.0625rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex: 1;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active { color: var(--fg); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__login {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.nav__login:hover { color: var(--fg); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border-radius: 100px;
  background: var(--grad);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 14px rgba(59, 123, 245, 0.28);
}

.nav__cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.nav__basket {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted-2);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__basket:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.nav__basket svg { width: 19px; height: 19px; }

/* display:flex below would otherwise win over the UA's [hidden] rule. */
.nav__basket-badge[hidden] { display: none; }

.nav__basket-badge {
  position: absolute;
  top: 1px;
  left: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 40px 100px;
  text-align: center;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero__blob--1 {
  width: 560px;
  height: 560px;
  background: rgba(59, 123, 245, 0.16);
  top: -180px;
  right: 5%;
  animation: drift 10s ease-in-out infinite;
}

.hero__blob--2 {
  width: 480px;
  height: 480px;
  background: rgba(124, 58, 237, 0.12);
  bottom: -120px;
  left: 8%;
  animation: drift 13s ease-in-out infinite reverse;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.08);
  top: 40%;
  left: 40%;
  animation: drift 8s ease-in-out infinite 2s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -25px) scale(1.04); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(59, 123, 245, 0.22);
  background: rgba(59, 123, 245, 0.07);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 32px;
  animation: fade-up 0.5s ease both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--blue); }
  50%       { opacity: 0.3; box-shadow: none; }
}

.hero__name {
  font-size: clamp(3.25rem, 10vw, 6.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-up 0.5s 0.08s ease both;
}

.hero__sub {
  margin-top: 20px;
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted-2);
  animation: fade-up 0.5s 0.16s ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  animation: fade-up 0.5s 0.24s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 123, 245, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 123, 245, 0.45);
}

.btn--ghost {
  background: var(--surface);
  color: var(--muted-2);
  border: 1px solid var(--border-2);
}

.btn--ghost:hover {
  color: var(--fg);
  border-color: rgba(12, 24, 41, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 24, 41, 0.07);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Stats Strip ===== */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:first-child { border-right: none; }

.stat__number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== Vehicles Section ===== */
.vehicles {
  padding: 80px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  scroll-margin-top: var(--nav-h);
}

.vehicles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.vehicles__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
}

.vehicles__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicles__meta {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
}

.vehicles__more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fade-up 0.5s ease both;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(12, 24, 41, 0.12), 0 0 0 1px rgba(59, 123, 245, 0.25);
  border-color: rgba(59, 123, 245, 0.2);
}

.card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card:hover .card__img { transform: scale(1.05); }

.card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.18;
  color: var(--blue);
}

.card__accent {
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.card:hover .card__accent { transform: scaleX(1); }

.card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card__make {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__model {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card__tag {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 9px;
}

.card__price {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card__price strong {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== Empty State ===== */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 300;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-2);
  background: var(--surface);
  border: 1px solid var(--border-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.pagination__link:hover {
  color: var(--fg);
  border-color: rgba(12, 24, 41, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 24, 41, 0.07);
}

.pagination__link.is-current {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(59, 123, 245, 0.32);
}

.pagination__link.is-disabled {
  opacity: 0.4;
}

.pagination__nav {
  padding: 0 18px;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ===== Event Section ===== */
.event-section {
  padding: 80px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.event-section__header {
  margin-bottom: 36px;
}

.event-section__label {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Two-column card: info (right in RTL) | banner (left in RTL) */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(12, 24, 41, 0.08);
  background: var(--surface);
  min-height: 440px;
  animation: fade-up 0.5s ease both;
}

.event-card__info {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(59, 123, 245, 0.22);
  background: rgba(59, 123, 245, 0.07);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--blue);
  width: fit-content;
  margin-bottom: 24px;
}

.event-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

.event-card__name {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 14px;
}

.event-card__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.75;
  margin-bottom: 28px;
}

.event-card__dates {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 36px;
}

.event-card__dates svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.event-card__cta {
  width: fit-content;
}

/* Banner image panel */
.event-card__banner {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.event-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card__img {
  transform: scale(1.03);
}

.event-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--muted);
}

.event-card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
}

.event-card__placeholder span {
  font-size: 0.8125rem;
  font-weight: 300;
}

/* No event empty state */
.event-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.event-empty svg {
  width: 40px;
  height: 40px;
  opacity: 0.25;
}

.event-empty p {
  font-size: 0.875rem;
  font-weight: 300;
}

/* ===== Card Actions (event page) ===== */
.card__avail {
  margin-right: auto;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.card__action-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.875rem;
}

/* ===== Event Detail — Hero ===== */
.ev-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  background: var(--surface-2);
}

.ev-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder gradient when no banner */
.ev-hero__no-banner {
  width: 100%;
  height: 100%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.ev-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.ev-hero__blob--1 {
  width: 500px;
  height: 500px;
  background: rgba(59, 123, 245, 0.22);
  top: -150px;
  right: 10%;
  animation: drift 10s ease-in-out infinite;
}

.ev-hero__blob--2 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.16);
  bottom: -100px;
  left: 15%;
  animation: drift 13s ease-in-out infinite reverse;
}

.ev-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 18, 36, 0.88) 0%,
    rgba(10, 18, 36, 0.40) 45%,
    rgba(10, 18, 36, 0.08) 100%
  );
}

.ev-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.ev-hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px;
  animation: fade-up 0.5s ease both;
}

/* Status badge */
.ev-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

.ev-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.ev-status--ongoing  { background: rgba(16, 185, 129, 0.9); }
.ev-status--upcoming { background: var(--grad); }
.ev-status--ended    { background: rgba(100, 116, 139, 0.8); }
.ev-status--inactive { background: rgba(239, 68, 68, 0.85); }

.ev-status--ongoing .ev-status__dot { animation: blink 2.4s ease-in-out infinite; }

.ev-hero__name {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
  animation: fade-up 0.5s 0.08s ease both;
}

.ev-hero__dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  animation: fade-up 0.5s 0.16s ease both;
}

/* ===== Event Detail — Countdown ===== */
.ev-countdown-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ev-countdown-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.ev-countdown-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.ev-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ev-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 28px;
  min-width: 100px;
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.05);
}

.ev-cd-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.ev-cd-lbl {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.ev-cd-sep {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--border-2);
  margin-bottom: 24px; /* align with numbers, offset the label below */
  user-select: none;
}

/* ===== Event Detail — Description ===== */
.ev-desc {
  border-bottom: 1px solid var(--border);
}

.ev-desc__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ev-desc__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
}

.ev-desc__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.9;
}

/* ===== Event Detail — Vehicles ===== */
.ev-vehicles {
  padding: 80px 0 100px;
}

.ev-vehicles__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.ev-vehicles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ev-vehicles__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
}

.ev-vehicles__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-vehicles__meta {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== About — Story ===== */
.about-story {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-story__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 40px;
}

.about-story__quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--fg);
  border-right: 3px solid var(--blue);
  padding-right: 24px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--fg) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-story__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 2;
}

/* ===== About — Values ===== */
.about-values {
  padding: 80px 0 100px;
}

.about-values__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-values__header {
  margin-bottom: 44px;
}

.about-values__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.about-values__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-values__sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
}

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

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fade-up 0.5s ease both;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(12, 24, 41, 0.1), 0 0 0 1px rgba(59, 123, 245, 0.2);
  border-color: rgba(59, 123, 245, 0.18);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 123, 245, 0.08);
  border: 1px solid rgba(59, 123, 245, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.value-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.value-card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.8;
}

/* ===== About — CTA ===== */
.about-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-cta__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-cta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.about-cta__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 123, 245, 0.12);
  top: -150px;
  right: 5%;
  animation: drift 10s ease-in-out infinite;
}

.about-cta__blob--2 {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.1);
  bottom: -100px;
  left: 10%;
  animation: drift 13s ease-in-out infinite reverse;
}

.about-cta__heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.about-cta__sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted-2);
  margin-bottom: 36px;
}

/* ===== Contact — Header ===== */
.contact-header {
  position: relative;
  padding: 80px 40px 64px;
  text-align: center;
  overflow: hidden;
}

.contact-header__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.contact-header__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 123, 245, 0.13);
  top: -160px;
  right: 10%;
  animation: drift 10s ease-in-out infinite;
}

.contact-header__blob--2 {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.1);
  bottom: -100px;
  left: 15%;
  animation: drift 13s ease-in-out infinite reverse;
}

.contact-header__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.contact-header__kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-header__heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}

.contact-header__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header__sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-2);
}

/* ===== Contact — Grid ===== */
.contact-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.05);
}

.contact-info-panel {
  padding: 36px 32px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.contact-form-panel {
  padding: 36px 36px 40px;
  animation: fade-up 0.5s 0.1s ease both;
}

.contact-panel-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ===== Contact — Info Items ===== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 123, 245, 0.08);
  border: 1px solid rgba(59, 123, 245, 0.14);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item__label {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.contact-item__value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.5;
}

.contact-map-placeholder {
  margin-top: 28px;
  height: 160px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.contact-map-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.3;
}

.contact-map-placeholder span {
  font-size: 0.75rem;
  font-weight: 300;
}

/* ===== Contact — Form ===== */
.contact-form { display: flex; flex-direction: column; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--muted); }

.form-control:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(59, 123, 245, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B93B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-left: 36px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}

.form-submit__note {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== Contact — Success Alert ===== */
.contact-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-sm);
  color: #047857;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 40px;
}

.footer__certs {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__cert-slot {
  width: 128px;
  height: 152px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer__cert-slot:hover { border-color: var(--border-2); }

.footer__cert-slot a { display: block; line-height: 0; }

.footer__cert-slot img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  cursor: pointer;
}

.footer__cert-slot--empty {
  border: 1px dashed var(--border-2);
  background: transparent;
}

.footer__cert-slot--empty::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  font-size: 0.9375rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__copy {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer__links a:hover { color: var(--fg); }

/* ===== Mobile menu ===== */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: auto; /* push to left edge in RTL */
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(242, 245, 253, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.nav__mobile.is-open { display: flex; }

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav__mobile-links li { width: 100%; text-align: center; }

.nav__mobile-links a {
  display: block;
  padding: 14px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__mobile-links a:hover,
.nav__mobile-links a.active { color: var(--blue); }

.nav__mobile-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.nav__mobile-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ===== Responsive — Tablet Landscape (≤ 1024px) ===== */
@media (max-width: 1024px) {
  .nav__inner { padding: 0 32px; gap: 28px; }

  .hero { padding: 90px 32px 80px; }

  .stats-strip__inner {
    padding: 0 32px;
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset desktop borders, apply 2×2 borders */
  .stat { border-right: none; }
  .stat:first-child { border-right: none; }
  .stat:nth-child(2) { border-right: 1px solid var(--border); } /* left col row 1 */
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid var(--border); }   /* row 2 */
  .stat:nth-child(4) { border-right: 1px solid var(--border); } /* left col row 2 */

  .vehicles { padding: 64px 32px 80px; }
  .event-section { padding: 64px 32px 80px; }

  .event-card { grid-template-columns: 1fr 1.15fr; }

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

  .footer { padding: 28px 32px; }

  /* Event detail */
  .ev-hero { height: 55vh; }
  .ev-hero__inner { padding: 36px 32px; }
  .ev-countdown-inner { padding: 40px 32px; }
  .ev-cd-unit { padding: 18px 22px; min-width: 88px; }
  .ev-cd-num { font-size: 2.125rem; }
  .ev-desc__inner { padding: 48px 32px; }
  .ev-vehicles__inner { padding: 0 32px; }
  .ev-vehicles { padding: 64px 0 80px; }

  /* About */
  .about-story__inner { padding: 64px 32px; }
  .about-values__inner { padding: 0 32px; }
  .about-values { padding: 64px 0 80px; }
  .about-cta__inner { padding: 64px 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-header { padding: 64px 32px 48px; }
  .contact-wrap { padding: 0 32px 80px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info-panel { position: static; }
}

/* ===== Responsive — Tablet Portrait (≤ 768px) ===== */
@media (max-width: 768px) {
  /* Nav: hide links, show burger */
  .nav__links  { display: none; }
  .nav__login  { display: none; }
  .nav__cta    { display: none; }
  .nav__burger { display: flex; }
  .nav__inner  { padding: 0 24px; gap: 16px; }

  .hero { padding: 80px 24px 72px; }
  .hero__sub { font-size: 0.9375rem; }
  .hero__badge { margin-bottom: 24px; }

  .stats-strip__inner { padding: 0 24px; }
  .stat { padding: 22px 16px; }
  .stat__number { font-size: 1.75rem; }

  /* Event card stacks vertically — banner on top */
  .event-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .event-card__banner { order: -1; min-height: 280px; }
  .event-card__img    { min-height: 280px; }
  .event-card__placeholder { min-height: 280px; }
  .event-card__info   { padding: 36px 32px; }
  .event-card__name   { font-size: 1.5rem; }

  .vehicles { padding: 56px 24px 72px; }
  .event-section { padding: 56px 24px 72px; }
  .vehicles__header { flex-direction: column; align-items: flex-start; gap: 6px; }

  .footer { padding: 28px 24px; }
  .footer__certs { gap: 14px; margin-bottom: 20px; padding-bottom: 20px; }
  .footer__cert-slot { width: 108px; height: 128px; }
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer__links { justify-content: center; }

  /* Event detail — tablet */
  .ev-hero { height: 56vh; }
  .ev-hero__inner { padding: 40px 24px; }
  .ev-countdown-inner { padding: 40px 24px; }
  .ev-cd-unit { padding: 16px 20px; min-width: 80px; }
  .ev-cd-num { font-size: 2rem; }
  .ev-desc__inner { padding: 48px 24px; }
  .ev-vehicles__inner { padding: 0 24px; }

  /* About — tablet */
  .about-story__inner { padding: 56px 24px; }
  .about-values__inner { padding: 0 24px; }
  .about-cta__inner { padding: 56px 24px; }

  /* Contact — tablet */
  .contact-header { padding: 56px 24px 40px; }
  .contact-wrap { padding: 0 24px 72px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Responsive — Mobile (≤ 480px) ===== */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  .nav__inner { padding: 0 16px; }

  .hero { padding: 60px 16px 56px; }
  .hero__badge { font-size: 0.6875rem; padding: 5px 12px; }
  .hero__sub { font-size: 0.875rem; }
  .hero__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 32px;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__blob { display: none; }

  .stats-strip__inner { padding: 0 16px; }
  .stat { padding: 18px 10px; }
  .stat__number { font-size: 1.5rem; }
  .stat__label  { font-size: 0.6875rem; }

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

  .vehicles { padding: 40px 16px 56px; }
  .event-section { padding: 40px 16px 56px; }

  .pagination { gap: 6px; margin-top: 40px; }
  .pagination__link { min-width: 36px; height: 36px; font-size: 0.8125rem; }
  .pagination__nav { padding: 0 14px; }

  .event-card__banner { min-height: 220px; }
  .event-card__img    { min-height: 220px; }
  .event-card__placeholder { min-height: 220px; }
  .event-card__info { padding: 28px 20px; }
  .event-card__name { font-size: 1.25rem; }
  .event-card__desc { font-size: 0.875rem; }
  .event-card__cta  { width: 100%; justify-content: center; }

  .btn { padding: 12px 24px; font-size: 0.875rem; }

  .footer { padding: 24px 16px; }
  .footer__certs { gap: 10px; margin-bottom: 18px; padding-bottom: 18px; }
  .footer__cert-slot { width: 92px; height: 110px; padding: 6px; border-radius: 10px; }
  .footer__links { gap: 16px; flex-wrap: wrap; }

  .nav__mobile-links a { font-size: 1.125rem; }

  /* Event detail — mobile */
  .ev-hero { height: 52vh; min-height: 320px; }
  .ev-hero__inner { padding: 28px 16px; }
  .ev-hero__name { font-size: 1.75rem; }

  .ev-countdown-inner { padding: 32px 16px; gap: 20px; }
  .ev-countdown { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .ev-cd-unit { padding: 14px 16px; min-width: 72px; }
  .ev-cd-num { font-size: 1.75rem; }
  .ev-cd-sep { font-size: 1.5rem; margin-bottom: 20px; }

  .ev-desc__inner { padding: 36px 16px; }
  .ev-vehicles { padding: 40px 0 56px; }
  .ev-vehicles__inner { padding: 0 16px; }
  .ev-vehicles__header { flex-direction: column; align-items: flex-start; gap: 6px; }

  .card__actions { flex-direction: column; }
  .card__action-btn { width: 100%; }

  /* About — mobile */
  .about-story__inner { padding: 40px 16px; }
  .about-values { padding: 40px 0 56px; }
  .about-values__inner { padding: 0 16px; }
  .about-cta__inner { padding: 48px 16px; }
  .values-grid { grid-template-columns: 1fr; }

  /* Contact — mobile */
  .contact-header { padding: 48px 16px 36px; }
  .contact-wrap { padding: 0 16px 56px; gap: 16px; }
  .contact-info-panel { padding: 28px 20px; }
  .contact-form-panel { padding: 28px 20px 32px; }
  .form-submit { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-submit .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Vehicle-in-event detail page  (.vd)
   Rich layout: hero, spec cards, description, gallery, colors
   ============================================================ */
.vd {
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(124, 58, 237, 0.09), transparent 60%),
    radial-gradient(900px 480px at -5% 20%, rgba(59, 123, 245, 0.08), transparent 60%),
    var(--bg);
  padding: 40px 40px 88px;
}

.vd__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Breadcrumb --------------------------------------------------- */
.vd__crumb {
  margin-bottom: 28px;
}
.vd__crumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.vd__crumb a:hover {
  color: var(--fg);
  border-color: var(--border-2);
  transform: translateX(3px);
}

/* Hero: image + head ------------------------------------------ */
.vd__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.vd__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(12, 24, 41, 0.25);
}
.vd__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.vd__media:hover .vd__media-img { transform: scale(1.03); }

.vd__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-2);
}
.vd__media-placeholder svg { width: 88px; height: 88px; }

.vd__media-glow {
  position: absolute;
  inset: auto -12% -30% -12%;
  height: 60%;
  background: var(--grad);
  filter: blur(48px);
  opacity: 0.20;
  pointer-events: none;
  z-index: -1;
}

.vd__head { display: flex; flex-direction: column; gap: 14px; }

.vd__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.vd__title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.vd__year {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--muted-2);
  margin-inline-start: 6px;
}

.vd__eventpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg,
    rgba(59, 123, 245, 0.10) 0%,
    rgba(124, 58, 237, 0.10) 100%);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--muted-2);
  font-size: 0.8125rem;
}
.vd__eventpill svg { color: #7C3AED; }
.vd__eventpill strong { color: var(--fg); font-weight: 700; margin-inline-start: 4px; }

.vd__lede {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 4px 0 0;
  max-width: 46ch;
}

/* Spec cards -------------------------------------------------- */
.vd__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.spec {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.spec:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: 0 20px 40px -22px rgba(12, 24, 41, 0.20);
}

.spec__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px -12px rgba(59, 123, 245, 0.6);
}
.spec__icon svg { width: 22px; height: 22px; }

.spec__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec__value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.spec__accent {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.spec:hover .spec__accent { transform: scaleY(1); }

/* Section titles + About + Gallery ---------------------------- */
.vd__section-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 20px;
  position: relative;
  padding-inline-start: 14px;
}
.vd__section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad);
}

.vd__about {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 40px;
}
.vd__about-body {
  color: var(--muted-2);
  line-height: 1.9;
  font-size: 0.9375rem;
  margin: 0;
  white-space: pre-line;
}

.vd__gallery { margin-bottom: 40px; }
.vd__gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.vd__gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.vd__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.vd__gallery-item:hover img { transform: scale(1.06); }

/* Color selection --------------------------------------------- */
.vd__colors { margin-top: 8px; margin-bottom: 56px; }
.vd__colors-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.vd__colors-header .vd__section-title { margin: 0; }
.vd__colors-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.color-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.color-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -24px rgba(12, 24, 41, 0.22);
}

.color-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-card__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--border-2);
  flex: 0 0 auto;
}
.color-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.color-card__price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.color-card__price-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.color-card__stock {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.color-card__cta { margin-top: 4px; }

.color-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-2);
  border-radius: 16px;
  background: var(--surface);
}

/* Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .vd { padding: 32px 24px 72px; }
  .vd__hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .vd__colors { margin-bottom: 40px; }
  .vd__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .vd { padding: 24px 16px 64px; }
  .vd__title { font-size: 1.9rem; }
  .vd__specs { gap: 12px; }
  .spec { padding: 16px 18px; gap: 12px; border-radius: 16px; }
  .spec__icon { width: 42px; height: 42px; border-radius: 12px; }
  .spec__icon svg { width: 20px; height: 20px; }
  .spec__value { font-size: 1rem; }
  .vd__about { padding: 22px 20px; border-radius: 16px; }
  .color-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .vd__specs { grid-template-columns: 1fr; }
}
