/* ===================================
   GLOBAL RESET & VARIABLES
   =================================== */
:root {
  --gold: #f4e4ba;
  --gold-hover: #e8d5a0;
  --gold-glow: rgba(244, 228, 186, 0.35);
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-section-alt: #0e0e0e;
  --text-white: #ffffff;
  --text-light: #cccccc;
  --text-muted: #777777;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(244, 228, 186, 0.2);
  --green: #34d399;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: normal;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 4px 24px var(--gold-glow);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-card {
  width: 100%;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-card:hover {
  background: var(--gold);
  color: #0a0a0a;
}

/* Pulse glow animation */
.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 24px var(--gold-glow); }
  50% { box-shadow: 0 4px 40px rgba(244, 228, 186, 0.55); }
}

/* ===================================
   NAVBAR
   =================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}
#navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-white);
}
.nav-logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-menu a:hover {
  color: var(--gold);
}
.nav-menu a:hover::after {
  width: 100%;
}

.nav-phone {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  transition: color var(--transition);
}
.nav-phone:hover {
  color: var(--gold);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-phone {
    display: none;
  }
  .burger {
    display: flex;
  }
}

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

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 120px 24px 80px 24px;
  margin: 0 auto 0 10%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(244, 228, 186, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(1.8rem, 8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.gold { color: var(--gold); }

.hero-sub {
  font-size: clamp(0.95rem, 4vw, 1.2rem);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

@media (max-width: 768px) {
  .hero-content {
    margin: 0 auto;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-section-alt);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 56px auto;
}

/* ===================================
   ADVANTAGES
   =================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}
.adv-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.adv-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(244, 228, 186, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.adv-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   CATALOG
   =================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.car-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0a0a0a;
}
.car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.car-card:hover .car-img-wrap img {
  transform: scale(1.05);
}

.car-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.car-body {
  padding: 24px;
}
.car-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.car-specs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.price-old, .price-new {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-row .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-row .val {
  font-size: 1.1rem;
  font-weight: 700;
}
.strike {
  color: var(--red);
  text-decoration: line-through;
  opacity: 0.7;
}
.green {
  color: var(--green);
}

.savings-tag {
  display: inline-block;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ===================================
   PROCESS / TIMELINE
   =================================== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.tl-step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
}
.tl-step:last-child {
  padding-bottom: 0;
}

.tl-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  position: relative;
  z-index: 2;
  margin-left: -40px;
}

.tl-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tl-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   GUARANTEES
   =================================== */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.guarantee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.guarantee-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.g-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(244, 228, 186, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}

.guarantee-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.guarantee-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   CTA / QUIZ BLOCK
   =================================== */
.cta-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid rgba(244, 228, 186, 0.15);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(244, 228, 186, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-perks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cta-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}
.cta-perk svg {
  color: var(--gold);
  flex-shrink: 0;
}

.btn-cta {
  font-size: 1.1rem;
  padding: 18px 48px;
}

@media (max-width: 600px) {
  .cta-block {
    padding: 40px 24px;
  }
  .cta-perks {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-cta {
    width: 100%;
    font-size: 1rem;
    padding: 16px 24px;
  }
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

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

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}
.footer-logo span {
  color: var(--gold);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--gold);
}

.footer-phone {
  font-size: 1.1rem !important;
  font-weight: 700;
  color: var(--text-white) !important;
  margin-bottom: 16px !important;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--gold);
  transition: opacity var(--transition);
}
.footer-bottom a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   QUIZ MODAL (custom overlay)
   =================================== */
.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.quiz-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quiz-modal {
  position: relative;
  width: 94vw;
  max-width: 700px;
  height: 85vh;
  max-height: 750px;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 228, 186, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s ease;
}
.quiz-modal-overlay.active .quiz-modal {
  transform: scale(1) translateY(0);
}

.quiz-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.quiz-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-modal-close:hover {
  background: rgba(244, 228, 186, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

/* On mobile: make the modal nearly full-screen */
@media (max-width: 600px) {
  .quiz-modal {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
  .quiz-modal-close {
    top: 8px;
    right: 8px;
  }
}
