/* ================================================================
   APPOLO CARS — Premium CSS Design System
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --gold: #C9A84C;
  --gold-light: #E2C074;
  --gold-dark: #A07830;
  --gold-glow: rgba(201, 168, 76, 0.25);
  --bg-primary: #0A0A0C;
  --bg-secondary: #111116;
  --bg-card: #16161E;
  --bg-card-hover: #1C1C26;
  --border: rgba(201, 168, 76, 0.18);
  --border-hover: rgba(201, 168, 76, 0.45);
  --text-primary: #F5F3EE;
  --text-secondary: #A09A8C;
  --text-muted: #6B6560;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-gold: 0 4px 32px rgba(201, 168, 76, 0.18);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.45);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-main); }

/* --- Container --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility --- */
.section-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-title span {
  color: var(--gold);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 560px;
}

.section-header {
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0A0A0C;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 32px rgba(201, 168, 76, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-2px);
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 12, 0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--gold);
  background: var(--gold-glow);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav .btn-primary {
  margin-top: 12px;
  justify-content: center;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-car-placeholder.jpg') center/cover no-repeat;
  opacity: 0.15;
}

/* Animated grid lines pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Subtle animated gradient sweep */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,12,0) 0%,
    rgba(201,168,76,0.03) 30%,
    rgba(10,10,12,0) 60%,
    rgba(201,168,76,0.03) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,12,0.97) 0%,
    rgba(10,10,12,0.80) 40%,
    rgba(10,10,12,0.65) 100%
  );
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  bottom: 0;
  right: 10%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--border-hover);
  border-radius: 40px;
  padding: 6px 16px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .accent {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 580px;
}

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

.hero-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-advantage {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.hero-advantage:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-advantage svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ================================================================
   DIRECTIONS (FROM WHERE)
   ================================================================ */
.directions {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.directions::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

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

.direction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.direction-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.direction-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.direction-card:hover::before { opacity: 1; }

.direction-flag {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.direction-name {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.direction-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.direction-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  color: var(--gold);
  opacity: 0;
  transition: var(--transition);
  font-size: 20px;
}

.direction-card:hover .direction-arrow { opacity: 1; }

/* ================================================================
   FORM SECTION
   ================================================================ */
.form-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-info {
  position: sticky;
  top: 100px;
}

.form-info-title {
  font-family: var(--font-main);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.form-info-title span { color: var(--gold); }

.form-info-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.form-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.form-contact-item a {
  color: var(--gold-light);
  transition: var(--transition);
}

.form-contact-item a:hover { color: var(--gold); }

.form-contact-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-glow);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 16px;
}

/* Lead Form */
.lead-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}

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

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group label .required {
  color: var(--gold);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.03);
}

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

.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-control.error {
  border-color: #E05252;
  box-shadow: 0 0 0 3px rgba(224,82,82,0.12);
}

.form-error-msg {
  display: none;
  font-size: 12px;
  color: #E05252;
  margin-top: 6px;
  padding-left: 4px;
}

.form-error-msg.show { display: block; }

/* Select custom arrow */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Brand search */
.brand-search-wrapper {
  position: relative;
}

.brand-search-wrapper .form-control {
  padding-right: 40px;
}

.brand-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow-card);
  margin-top: 4px;
}

.brand-dropdown.open { display: block; }

.brand-option {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.brand-option:hover,
.brand-option.highlighted {
  background: var(--gold-glow);
  color: var(--gold-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Consent */
.consent-group {
  margin: 24px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-label a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition);
}

.consent-label a:hover { text-decoration-color: var(--gold); }

.consent-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border-hover);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 1px;
  transition: var(--transition);
}

.consent-checkbox:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.consent-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #0A0A0C;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0A0A0C;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
  font-family: var(--font-main);
}

.form-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 32px rgba(201,168,76,0.55);
  transform: translateY(-2px);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show { display: block; }

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.success-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   ADVANTAGES
   ================================================================ */
.advantages {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.advantages::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

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

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.advantage-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold-glow), rgba(201,168,76,0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.1));
  border-color: var(--border-hover);
}

.advantage-title {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.advantage-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   STEPS / TIMELINE
   ================================================================ */
.steps {
  padding: 100px 0;
  background: var(--bg-primary);
}

.steps-timeline {
  position: relative;
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(28px + 1px);
  right: calc(28px + 1px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  opacity: 0.3;
  z-index: 0;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 800;
  color: #0A0A0C;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: var(--transition);
}

.step-item:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(201,168,76,0.55);
}

.step-title {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================================================================
   POPULAR CARS
   ================================================================ */
.popular-cars {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.popular-cars::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

/* ================================================================
   POPULAR CARS — CAROUSEL
   ================================================================ */

/* Header row: title left, arrows right */
.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

/* Arrow buttons container */
.carousel-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 2px;
}

/* Arrow buttons — explicit reset of all browser defaults */
.carousel-arrow {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16161E;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 50%;
  color: #C9A84C;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  padding: 0;
  outline: none;
}

.carousel-arrow:hover:not(.is-disabled) {
  background: rgba(201, 168, 76, 0.12);
  border-color: #C9A84C;
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.28);
  transform: scale(1.08);
}

.carousel-arrow.is-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Wrapper holds the scrollable track + fade overlays */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/* Gradient fade edges */
.carousel-fade {
  position: absolute;
  top: 0;
  bottom: 8px;   /* matches padding-bottom on .cars-grid */
  width: 48px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.carousel-fade--left {
  left: 0;
  background: linear-gradient(to right, #111116 0%, transparent 100%);
}

.carousel-fade--right {
  right: 0;
  background: linear-gradient(to left, #111116 0%, transparent 100%);
}

.carousel-fade.hidden { opacity: 0; }

/* The scrollable flex track */
.cars-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cars-grid::-webkit-scrollbar { display: none; }

/* Each card: fixed at 1/3 of container, never shrinks */
.cars-grid .car-card {
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: calc(33.333% - 16px);
  width: calc(33.333% - 16px);
  min-width: 260px;
  scroll-snap-align: start;
}

.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.car-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.car-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-secondary));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.car-card:hover .car-card-image img {
  transform: scale(1.05);
}

.car-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(201,168,76,0.9);
  color: #0A0A0C;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.car-card-body {
  padding: 24px;
}

.car-card-title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.car-card-origin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.car-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.car-card-cta {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.car-card-cta:hover {
  background: var(--gold);
  color: #0A0A0C;
  border-color: var(--gold);
}

/* ================================================================
   FAQ
   ================================================================ */
.faq {
  padding: 100px 0;
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
}

.faq-question:hover { color: var(--gold-light); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   CONTACTS
   ================================================================ */
.contacts {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.contacts::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts-cta-text {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.contacts-cta-text span { color: var(--gold); }

.contacts-cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-row:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  background: var(--gold-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.contact-row-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-row-value a {
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-row-value a:hover { color: var(--gold); }

.contacts-address {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contacts-address-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contacts-address-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-phones {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-phone-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-phone-name {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-phone-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  transition: var(--transition);
}

.footer-phone-num:hover { color: var(--gold); }

.footer-col-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-tg-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-tg-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-tg-link:hover {
  border-color: var(--border-hover);
  color: var(--gold-light);
}

.footer-tg-link span {
  font-size: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-privacy {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-privacy:hover { color: var(--gold); }

/* ================================================================
   DIVIDERS / DECORATIONS
   ================================================================ */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ================================================================
   SCROLL TO TOP
   ================================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0C;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 28px rgba(201,168,76,0.6);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .directions-grid,
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .cars-grid .car-card {
    flex-basis: calc(50% - 12px);
    width: calc(50% - 12px);
  }
}

@media (max-width: 900px) {
  .nav, .header-cta .btn-primary { display: none; }
  .burger { display: flex; }
  .form-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .form-info { position: static; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .steps-timeline { flex-direction: column; gap: 0; }
  .steps-timeline::before { display: none; }
  .step-item { display: flex; align-items: flex-start; text-align: left; gap: 20px; padding: 0 0 32px; flex: none; width: 100%; }
  .step-item::before { display: none; }
  .step-num { margin: 0; flex-shrink: 0; }
  .step-content { flex: 1; }
}

@media (max-width: 768px) {
  .car-card-image { height: 180px; }
}

@media (max-width: 700px) {
  .section-header { margin-bottom: 36px; }
  .directions-grid,
  .advantages-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -0.5px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { justify-content: center; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lead-form { padding: 28px 20px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .car-card-image { height: 160px; }
  /* Mobile: show ~1.1 cards so user sees scroll hint */
  .cars-grid .car-card {
    flex-basis: 82%;
    width: 82%;
    min-width: 0;
  }
  .carousel-arrows { display: none; }
}

/* ================================================================
   ANIMATIONS ON SCROLL
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
