:root {
  --ink: #171714;
  --ink-soft: #5d5a52;
  --paper: #f4f1e9;
  --card: #fbfaf7;
  --line: #d9d4c9;
  --line-dark: #3b3934;
  --champagne: #c7a768;
  --champagne-light: #e8dcc1;
  --night: #10100f;
  --white: #fff;
  --positive: #286b4d;
  --negative: #9d3a32;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(26, 24, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
body.privacy-pending { overflow: hidden; }

.topbar {
  height: 76px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: "Segoe UI", Arial, sans-serif; font-size: 17px; font-weight: 500; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand strong { font: 600 16px/1 "Segoe UI", Arial, sans-serif; letter-spacing: .24em; }
.brand small { font-size: 8px; letter-spacing: .28em; color: var(--ink-soft); }
.privacy-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; color: var(--ink-soft); font-size: 12px; background: rgba(255,255,255,.35); }
.privacy-badge svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.hero {
  min-height: 560px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 5vw 72px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 6vw;
  align-items: center;
}
.eyebrow { margin: 0 0 18px; font: 700 11px/1.3 "Segoe UI", Arial, sans-serif; letter-spacing: .19em; color: #8b7040; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font: 500 clamp(3rem, 5.3vw, 5.6rem)/.98 "Segoe UI", Arial, sans-serif; letter-spacing: -.055em; max-width: 720px; }
.hero-lead { max-width: 580px; margin-bottom: 32px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); }
.button { border: 0; border-radius: 999px; min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--night); }
.button-primary:hover { background: #2b2925; }
.button-light { background: var(--champagne-light); color: var(--night); }
.button-full { width: 100%; }
.button span { font-size: 19px; line-height: 1; }

.hero-visual { position: relative; min-height: 380px; padding: 40px 36px 28px; border-radius: 28px; background: #181816; color: white; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual::before { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -130px; border: 1px solid rgba(199,167,104,.35); border-radius: 50%; box-shadow: 0 0 80px rgba(199,167,104,.12); }
.visual-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: #c5c1b8; }
.visual-label span { width: 7px; height: 7px; background: var(--champagne); border-radius: 50%; box-shadow: 0 0 0 5px rgba(199,167,104,.13); }
.car-line { width: 116%; margin: 30px -8% 8px; overflow: visible; }
.car-line path, .car-line circle { fill: none; stroke: #e3d3af; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.car-line path:nth-child(2), .car-line circle:nth-of-type(n+3) { stroke: rgba(227,211,175,.42); }
.visual-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.visual-stats div { display: flex; align-items: baseline; gap: 9px; }
.visual-stats strong { font: 500 24px/1 "Segoe UI", Arial, sans-serif; color: #f1e6cd; }
.visual-stats span { font-size: 11px; color: #a8a49b; }

.calculator-section { background: #eae6dd; padding: 88px max(5vw, calc((100vw - 1296px)/2)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .contact-copy h2 { margin-bottom: 0; font: 500 clamp(2.1rem, 4vw, 4rem)/1.05 "Segoe UI", Arial, sans-serif; letter-spacing: -.045em; }
.text-button, .copy-button { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; font-size: 13px; padding: 8px 0; }
.text-button svg, .copy-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.text-button:hover, .copy-button:hover { color: var(--ink); }
.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); gap: 22px; align-items: start; }
.input-panel, .results-panel { background: var(--card); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); box-shadow: var(--shadow); }
.input-panel { overflow: hidden; }
.form-section { padding: 30px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.form-section-title > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #8b7040; font-size: 10px; font-weight: 700; }
.form-section-title h3 { margin: 0; font: 600 16px/1 "Segoe UI", Arial, sans-serif; }
.field-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.three-columns { grid-template-columns: repeat(3, 1fr); }
.price-row { grid-template-columns: 1.4fr .7fr .9fr; }
.vehicle-grid { grid-template-columns: .75fr 1fr 1.15fr; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.field small { min-height: 13px; color: #8d887e; font-size: 10px; line-height: 1.3; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; outline: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input, select { height: 48px; padding: 0 13px; }
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#78736a 50%),linear-gradient(135deg,#78736a 50%,transparent 50%); background-position: calc(100% - 17px) 20px,calc(100% - 12px) 20px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-right: 32px; }
textarea { resize: vertical; min-height: 88px; padding: 13px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #aa884c; box-shadow: 0 0 0 3px rgba(199,167,104,.14); }
input.invalid { border-color: var(--negative); }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 52px; }
.input-with-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #918b80; font-size: 10px; font-weight: 700; pointer-events: none; }
.field-hint { margin: 11px 0 0; color: #8b7040; font-size: 11px; }
.price-hints { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-hint { margin: 11px 0 0; color: #79746b; font-size: 10px; }
.catalog-hint span { margin-right: 5px; padding: 3px 6px; border-radius: 99px; background: #e8dcc1; color: #6e552b; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.catalog-hint a { color: #6e552b; font-weight: 700; text-underline-offset: 2px; }
.field select:disabled { background-color: #f0ede6; color: #5d584f; border-color: #ded8cc; cursor: not-allowed; opacity: 1; }
.field select:disabled + small { color: #8b7040; }
.advanced { padding: 0; }
.advanced summary { padding: 30px 30px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary .form-section-title { margin-bottom: 24px; }
.chevron { transition: transform .2s; }
.advanced[open] .chevron { transform: rotate(180deg); }
.rates-meta { display: flex; align-items: center; gap: 15px; }
.rate-status { display: inline-flex; align-items: center; gap: 6px; color: #7f796f; font-size: 10px; font-weight: 600; }
.rate-status svg { width: 14px; fill: none; stroke: #8b7040; stroke-width: 1.7; }
.advanced-grid { padding: 0 30px 24px; }
.comparison-price { grid-column: span 2; }
.locked-field input { background: #f0ede6; color: #5d584f; border-color: #ded8cc; cursor: not-allowed; font-weight: 700; }
.locked-field .input-with-suffix::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 7px; transform: translateY(-35%); border: 1.5px solid #9b8050; border-radius: 2px; z-index: 1; pointer-events: none; }
.locked-field .input-with-suffix::after { content: ""; position: absolute; left: 14px; top: calc(50% - 8px); width: 4px; height: 5px; border: 1.5px solid #9b8050; border-bottom: 0; border-radius: 4px 4px 0 0; z-index: 1; pointer-events: none; }
.locked-field .input-with-suffix input { padding-left: 31px; }
.legal-note { margin: 0 30px 30px; padding: 13px 15px; background: #f1ede4; border-radius: 10px; display: flex; align-items: flex-start; gap: 10px; color: #6d675e; font-size: 11px; line-height: 1.5; }
.legal-note svg { width: 17px; flex: 0 0 17px; fill: none; stroke: #8b7040; stroke-width: 1.6; stroke-linecap: round; }

.results-panel { position: sticky; top: 18px; padding: 30px; background: var(--night); color: white; border-color: var(--night); }
.results-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; font-size: 10px; letter-spacing: .13em; color: #98948b; }
.results-topline strong { color: #e9ddc4; font-weight: 600; text-align: right; }
.scenario-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #24231f; border-radius: 10px; gap: 4px; }
.scenario-tab { min-height: 45px; border: 0; border-radius: 8px; padding: 8px 10px; background: transparent; color: #a9a59d; font-size: 11px; line-height: 1.25; cursor: pointer; }
.scenario-tab.active { background: #f1ede4; color: var(--ink); font-weight: 700; }
.scenario-tab:disabled { cursor: not-allowed; opacity: .42; }
.total-card { padding: 28px 0 24px; border-bottom: 1px solid #36342f; }
.total-card p { margin-bottom: 7px; color: #a5a198; font-size: 12px; }
.total-card strong { display: block; font: 500 clamp(2.5rem,4vw,4rem)/1 "Segoe UI",Arial,sans-serif; letter-spacing: -.055em; color: #f4ead3; }
.total-card span { display: block; margin-top: 10px; color: #8d8981; font-size: 10px; }
.breakdown { padding: 18px 0 13px; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; color: #aaa69e; font-size: 12px; }
.breakdown-row strong { color: #eeebe4; font-weight: 500; white-space: nowrap; }
.breakdown-row.highlight strong { color: #e0c991; }
.comparison-card { border: 1px solid #393832; border-radius: 12px; padding: 16px; margin: 8px 0 15px; background: #191917; }
.comparison-card > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; color: #9b978f; }
.comparison-card strong { color: white; font-size: 12px; }
.savings-row { margin-top: 13px; padding-top: 13px; border-top: 1px solid #33312d; }
.savings-row strong.positive { color: #73c89d; }
.savings-row strong.negative { color: #ee8b80; }
.savings-track { height: 4px; margin-top: 13px; background: #35332f; border-radius: 99px; overflow: hidden; }
.savings-track span { display: block; height: 100%; width: 0; background: #c7a768; border-radius: inherit; transition: width .4s ease; }
.scenario-difference { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 20px; color: #aaa69e; font-size: 11px; }
.scenario-difference strong { color: #e0c991; font-size: 13px; }
.results-panel .button-primary { background: var(--champagne-light); color: var(--night); }
.results-panel .button-primary:hover { background: #f0e6d0; }
.copy-button { width: 100%; justify-content: center; margin-top: 8px; color: #aaa69e; }

.contact-section { max-width: 1296px; margin: 0 auto; padding: 100px 5vw; display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: center; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy > p:last-child { max-width: 520px; color: var(--ink-soft); line-height: 1.7; }
.contact-form { background: var(--night); border-radius: var(--radius); padding: 30px; color: white; box-shadow: var(--shadow); }
.selected-vehicle-notice { margin-bottom: 24px; padding: 18px; border: 1px solid rgba(199,167,104,.55); border-radius: 12px; background: #191917; }
.selected-vehicle-notice > span { display: block; margin-bottom: 7px; color: #c7a768; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.selected-vehicle-notice strong { display: block; color: #f4ead3; font-size: 18px; line-height: 1.3; }
.selected-vehicle-notice p { margin: 10px 0; color: #c2bdb4; font-size: 14px; line-height: 1.55; }
.selected-vehicle-notice a { color: #e0c991; font-size: 12px; font-weight: 700; text-underline-offset: 3px; }
.contact-form .field > span { color: #b7b2aa; }
.contact-form input, .contact-form textarea { color: white; background: #1e1e1b; border-color: #3b3934; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #716e68; }
.contact-form > .field { margin-top: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #a7a39b; font-size: 11px; line-height: 1.5; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 0; accent-color: var(--champagne); }
.form-feedback { min-height: 16px; margin: 10px 0 0; text-align: center; color: #e0c991; font-size: 11px; }

footer { min-height: 120px; margin: 0 5vw; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; color: #777269; font-size: 10px; }
footer p { max-width: 760px; margin: 0; line-height: 1.55; }
footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
footer > a { text-decoration: none; }
.copyright { display: inline-block; margin-top: 6px; color: #565149; font-weight: 700; }
.footer-link { border: 0; padding: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.footer-brand { transform: scale(.85); transform-origin: left center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.16); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 20; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.privacy-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(16,16,15,.72); backdrop-filter: blur(8px); }
.privacy-overlay[hidden] { display: none; }
.privacy-dialog { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: var(--card); box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.privacy-dialog h2 { margin-bottom: 16px; font: 500 clamp(2rem, 6vw, 3.4rem)/1.02 "Segoe UI",Arial,sans-serif; letter-spacing: -.045em; }
.privacy-dialog > p:not(.eyebrow), .privacy-dialog details p { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.privacy-dialog details { margin: 20px 0 24px; padding: 14px 16px; border-radius: 12px; background: #eee9df; }
.privacy-dialog summary { color: #6e552b; font-size: 12px; font-weight: 700; cursor: pointer; }
.privacy-dialog details p { margin: 12px 0 0; }
.privacy-actions { display: flex; justify-content: flex-end; gap: 10px; }
.privacy-leave { color: var(--ink-soft); background: #e8e3d9; }
.button[disabled] { opacity: .58; cursor: wait; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 330px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .contact-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; padding: 32px 0; gap: 16px; }
}
@media (max-width: 660px) {
  .topbar { height: 68px; }
  .privacy-badge { font-size: 0; padding: 8px; }
  .hero { padding: 42px 5vw 54px; gap: 42px; min-height: auto; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
  .hero-visual { min-height: 270px; padding: 28px 22px 22px; border-radius: 20px; }
  .car-line { margin-top: 24px; }
  .visual-stats strong { font-size: 19px; }
  .visual-stats span { font-size: 9px; }
  .calculator-section { padding-top: 64px; padding-bottom: 64px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .form-section { padding: 24px 20px; }
  .advanced summary { padding: 24px 20px 0; }
  .advanced-grid { padding: 0 20px 20px; }
  .rate-status { font-size: 0; }
  .legal-note { margin: 0 20px 24px; }
  .two-columns, .three-columns, .price-row { grid-template-columns: 1fr; }
  .comparison-price { grid-column: auto; }
  .results-panel, .contact-form { padding: 24px 20px; }
  .scenario-tab { font-size: 10px; }
  .contact-section { padding-top: 72px; padding-bottom: 72px; }
  .privacy-dialog { padding: 26px 20px; }
  .privacy-actions { flex-direction: column-reverse; }
  .privacy-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
