*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #181818;
  --border:   #222222;
  --border2:  #2e2e2e;
  --text:     #f0ece4;
  --text2:    #888880;
  --text3:    #555550;
  --accent:   #e8c96a;
  --accent2:  #c9a83a;
  --red:      #e05a5a;
  --green:    #5ae0a0;
  --radius:   12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  /*background: var(--accent);*/
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  border-radius: 6px;
  flex-shrink: 0;
}
.logo-mark img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}
.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.logo-text em {
  font-style: normal;
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,201,106,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,201,106,0.08);
  border: 1px solid rgba(232,201,106,0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  width: fit-content;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title span {
  color: var(--accent);
  display: block;
}
.hero-sub {
  max-width: 520px;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  width: fit-content;
  animation: fadeUp 0.8s 0.3s ease both;
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--text2); }
.hero-stats {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 60px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.stat-l {
  font-size: 12px;
  color: var(--text3);
  font-weight: 400;
  letter-spacing: 0.05em;
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border2);
}

.calc-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 100px 0;
}
.calc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.calc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.calc-desc {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.calc-desc strong { color: var(--text); font-weight: 500; }

.sources {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.source-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.source-icon { font-size: 22px; }
.source-name { font-size: 14px; font-weight: 500; color: var(--text); }
.source-hint { font-size: 12px; color: var(--text3); }

.includes-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}
.includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
}
.includes li svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  fill: none;
}

.calc-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calc-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}
.calc-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text3);
  font-family: 'Geologica', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.calc-tab:hover { color: var(--text2); }
.calc-tab.active {
  background: var(--bg3);
  color: var(--text);
}
.calc-tab-pane.hidden { display: none; }

.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.manual-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manual-field .input-label { margin-bottom: 0; }
.manual-field input,
.manual-field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.manual-field input::placeholder { color: var(--text3); }
.manual-field input:focus,
.manual-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,201,106,0.1);
}
.manual-field select option { background: var(--bg3); }

.calc-card-top { padding: 28px; }
.input-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
}
.input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.input-wrap input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 44px 14px 16px;
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: var(--text3); }
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,201,106,0.1);
}
.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}
.input-icon svg { width: 18px; height: 18px; }

.calc-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  font-family: 'Geologica', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s;
}
.calc-btn:hover { background: var(--accent2); }
.calc-btn:active { transform: scale(0.99); }
.calc-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.hidden { display: none !important; }

.result-area {
  border-top: 1px solid var(--border);
  padding: 0;
}
.error-msg {
  padding: 20px 28px;
  color: var(--red);
  font-size: 14px;
  background: rgba(224,90,90,0.06);
}

.result-block {
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
}
.result-block:last-child { border-bottom: none; }
.result-block-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
}
.result-row-label {
  font-size: 13px;
  color: var(--text2);
  flex-shrink: 0;
  max-width: 55%;
}
.result-row-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  text-align: right;
}
.result-car-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.result-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.result-photos img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: opacity 0.15s, border-color 0.15s;
}
.result-photos img:hover {
  opacity: 0.85;
  border-color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbIn 0.15s ease;
}
@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-family: 'Geologica', sans-serif;
}
.result-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}
.result-total-label {
  font-size: 14px;
  color: var(--text2);
}
.result-total-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.result-final {
  background: rgba(232,201,106,0.05);
  border: 1px solid rgba(232,201,106,0.15);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-final-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}
.result-final-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.accident-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}
.accident-badge.none {
  background: rgba(90,224,160,0.1);
  color: var(--green);
}
.accident-badge.has {
  background: rgba(224,90,90,0.1);
  color: var(--red);
}

.disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}

.how-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.how-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 60px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--border2); }
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.step:hover .step-num { color: var(--accent); }
.step h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.step p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-left p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text3);
  max-width: 320px;
  line-height: 1.65;
}
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-link {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .calc-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-div { display: none; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 20px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-inner { padding: 60px 20px 32px; }
  .hero-stats { padding: 0 20px 40px; }
  .calc-inner, .how-inner, .footer-inner, .footer-copy { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
}

.calc-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}
.calc-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text3);
  font-family: 'Geologica', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.calc-tab:hover { color: var(--text2); }
.calc-tab.active { background: var(--bg3); color: var(--text); }
.calc-tab-pane.hidden { display: none; }

.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.manual-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manual-field .input-label { margin-bottom: 0; }
.manual-field input,
.manual-field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.manual-field input::placeholder { color: var(--text3); }
.manual-field input:focus,
.manual-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,201,106,0.1);
}
.manual-field select option { background: var(--bg3); }
.manual-field.hidden { display: none; }