/* ============================================================
   AUTOGEAR — Автомобили из Южной Кореи
   Тёмный люкс: глубокий чёрный + металлическое золото
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #0a0a0b;
  --bg-2:        #0f0f11;
  --surface:     #141417;
  --surface-2:   #1a1a1e;
  --line:        rgba(216, 168, 76, 0.16);
  --line-soft:   rgba(255, 255, 255, 0.06);

  /* Component surfaces (themeable) */
  --input-bg:    #0c0c0d;
  --inset-bg:    #0a0a0b;
  --topbar-bg:   #060607;
  --footer-bg:   #060607;
  --media-bg:    #0c0c0d;
  --header-bg:        rgba(10, 10, 11, 0.72);
  --header-bg-solid:  rgba(8, 8, 9, 0.92);
  --shadow-1:    0 40px 90px -40px rgba(0,0,0,0.9);
  --shadow-card: 0 30px 60px -30px rgba(0,0,0,0.8);

  /* Gold — pulled from the AG mark */
  --gold-deep:   #8a5a20;
  --gold:        #d8a84c;
  --gold-bright: #f4d894;
  --gold-grad:   linear-gradient(135deg, #b8842f 0%, #f4d28a 46%, #c8943f 100%);
  --gold-grad-soft: linear-gradient(135deg, #d8a84c, #f4d894);

  /* Text */
  --text:        #f4f1ea;
  --text-2:      #b6b0a4;
  --text-3:      #7c766b;

  /* Type */
  --font-display: 'Saira Condensed', 'Oswald', sans-serif;
  --font-body:    'Manrope', -apple-system, sans-serif;

  --maxw: 1280px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle gold ambient glow behind hero */
body::before {
  content: "";
  position: fixed;
  top: -25vh; left: 50%;
  transform: translateX(-50%);
  width: 90vw; height: 80vh;
  background: radial-gradient(ellipse at center, rgba(216,168,76,0.10), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; line-height: 1.02; margin: 0; }

.section-title {
  font-size: clamp(34px, 4.5vw, 58px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.section { position: relative; z-index: 1; padding: 96px 0; }
.section--tight { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head p { color: var(--text-2); max-width: 420px; margin: 14px 0 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--gold {
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(216,168,76,0.5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(216,168,76,0.65); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }

.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }

/* ---- Variant switcher ---- */
.theme-switch {
  position: fixed; left: 22px; bottom: 22px; z-index: 100;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--shadow-card); transition: transform .2s, border-color .2s;
}
.theme-switch:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); }

/* ============================================================
   GRAPHITE THEME — мягкий тёмный графит + золото
   ============================================================ */
body.theme-light {
  --bg:          #1e1f23;
  --bg-2:        #25262b;
  --surface:     #2a2b31;
  --surface-2:   #303138;
  --line:        rgba(216, 168, 76, 0.20);
  --line-soft:   rgba(255, 255, 255, 0.08);

  --input-bg:    #1a1b1e;
  --inset-bg:    #191a1d;
  --topbar-bg:   #17181b;
  --footer-bg:   #161719;
  --media-bg:    #191a1d;
  --header-bg:        rgba(30, 31, 35, 0.78);
  --header-bg-solid:  rgba(24, 25, 28, 0.94);
  --shadow-1:    0 40px 90px -40px rgba(0,0,0,0.7);
  --shadow-card: 0 28px 56px -30px rgba(0,0,0,0.6);

  --gold-deep:   #8a5a20;
  --gold:        #d8a84c;
  --gold-bright: #f4d894;
  --gold-grad:   linear-gradient(135deg, #b8842f 0%, #f4d28a 46%, #c8943f 100%);
  --gold-grad-soft: linear-gradient(135deg, #d8a84c, #f4d894);

  --text:        #f0eee9;
  --text-2:      #adaaa2;
  --text-3:      #79766e;
}

/* graphite glow stays subtle gold */
body.theme-light::before {
  background: radial-gradient(ellipse at center, rgba(216,168,76,0.08), transparent 62%);
}
/* gold buttons: warmer shadow on light */
body.theme-light .btn--gold { box-shadow: 0 12px 28px -12px rgba(169,116,31,0.55); }
body.theme-light .btn--gold:hover { box-shadow: 0 18px 40px -12px rgba(169,116,31,0.65); }
body.theme-light .btn--gold,
body.theme-light .chip.is-active,
body.theme-light .calc__tabs button.is-active,
body.theme-light .car__tag,
body.theme-light .case__avatar,
body.theme-light .msgr__btn:hover { color: #fff; }

/* ============================================================
   WHITE THEME — тёплый белый + металлическое золото, full-width
   ============================================================ */
body.theme-white {
  --bg:          #ffffff;
  --bg-2:        #f6f2ea;
  --surface:     #ffffff;
  --surface-2:   #faf6ee;
  --line:        rgba(176, 124, 38, 0.26);
  --line-soft:   rgba(28, 22, 10, 0.09);

  --input-bg:    #faf7f1;
  --inset-bg:    #f7f3ea;
  --topbar-bg:   #f4efe4;
  --footer-bg:   #f3eee3;
  --media-bg:    #efe9dc;
  --header-bg:        rgba(255, 255, 255, 0.80);
  --header-bg-solid:  rgba(255, 255, 255, 0.95);
  --shadow-1:    0 40px 90px -45px rgba(78, 54, 14, 0.32);
  --shadow-card: 0 28px 56px -32px rgba(78, 54, 14, 0.22);

  --gold-deep:   #8a5a20;
  --gold:        #b07c26;
  --gold-bright: #d8a84c;
  --gold-grad:   linear-gradient(135deg, #b8842f 0%, #e8c277 48%, #b27f2c 100%);
  --gold-grad-soft: linear-gradient(135deg, #c8943f, #e8c277);

  --text:        #1d1a14;
  --text-2:      #5d584d;
  --text-3:      #93897a;

  /* full-bleed layout */
  --maxw: 1760px;
}

/* warm white ambient glow */
body.theme-white::before {
  background: radial-gradient(ellipse at center, rgba(216,168,76,0.13), transparent 60%);
}
/* stretch content edge-to-edge with comfortable gutters */
body.theme-white .wrap { max-width: var(--maxw); padding: 0 clamp(28px, 4.5vw, 88px); }

/* gold on white: dark ink text + warmer shadows */
body.theme-white .btn--gold { box-shadow: 0 12px 28px -12px rgba(169,116,31,0.45); }
body.theme-white .btn--gold:hover { box-shadow: 0 18px 40px -12px rgba(169,116,31,0.55); }
body.theme-white .btn--gold,
body.theme-white .chip.is-active,
body.theme-white .calc__tabs button.is-active,
body.theme-white .bigcalc__tabs button.is-active,
body.theme-white .podbor__preset.is-active,
body.theme-white .car__tag,
body.theme-white .case__avatar,
body.theme-white .msgr__btn:hover { color: #fff; }

/* range track reads as light on white */
body.theme-white .range { background: #e6dfd0; }
body.theme-white .range::-webkit-slider-thumb { border-color: #ffffff; }
body.theme-white .range::-moz-range-thumb { border-color: #ffffff; }

/* logo / media rings a touch stronger so they don't vanish on white */
body.theme-white .hdr__logo img,
body.theme-white .footer__brand img { box-shadow: 0 0 0 1px var(--line); }
body.theme-white .hero__media image-slot { box-shadow: 0 40px 90px -50px rgba(78,54,14,0.45), 0 0 0 1px var(--line); }
