﻿:root {
  --bg: #eaf7ff;
  --surface: #ffffff;
  --surface-soft: #f5fbff;
  --navy: #062a54;
  --navy-2: #0b3d75;
  --blue: #1591d1;
  --cyan: #64c7ef;
  --text: #11243a;
  --muted: #5f7187;
  --line: #cfe4f2;
  --shadow: 0 20px 60px rgba(6, 42, 84, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.72; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 12px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.brand h1, .section-head h2, .intro-copy h2 { margin: 0; letter-spacing: 0; }
.brand h1 { font-size: clamp(1.35rem, 2vw, 2rem); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link { color: var(--navy); font-weight: 700; text-decoration: none; }
.app-shell { max-width: 1180px; margin: 0 auto; padding: 20px 24px 48px; }

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.intro-copy {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  box-shadow: var(--shadow);
}

.intro-copy h2 {
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.intro-copy p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.price-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.price-label {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.price-box strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1;
}

.price-details { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; color: #d7effc; font-weight: 700; }

.calculator { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 24px;
}

.calculator > .panel:not(.summary) { grid-column: 1; }
.summary { position: sticky; top: 18px; grid-column: 2; grid-row: 1 / span 3; }
.section-head { margin-bottom: 18px; }
.section-head h2 { color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.7rem); }
.with-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.vehicle-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-card:hover, .vehicle-card.selected { border-color: var(--blue); box-shadow: 0 14px 32px rgba(21, 145, 209, 0.16); transform: translateY(-2px); }
.vehicle-card input { position: absolute; inset: 14px 14px auto auto; width: 20px; height: 20px; accent-color: var(--blue); }
.vehicle-card img { width: 100%; height: 135px; object-fit: contain; padding: 8px 28px 0; }
.vehicle-name { color: var(--navy); font-weight: 800; font-size: 1.08rem; }
.vehicle-price { color: var(--muted); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; }
.field span { color: var(--navy); font-size: 0.92rem; font-weight: 800; }

.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 145, 209, 0.14); }
.field-wide { grid-column: 1 / -1; }

.route-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--navy-2);
  background: #dff3ff;
  font-weight: 700;
  line-height: 1.45;
}

.route-status[data-type="error"] { color: #7a1b1b; background: #ffe6e6; }
.route-status[data-type="success"] { color: #18582c; background: #e3f8e8; }

.summary-list { margin: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); font-weight: 700; }
.summary-list dd { margin: 0; color: var(--navy); font-weight: 800; text-align: right; }
.summary-list .summary-total { align-items: baseline; border-bottom: 0; padding-top: 18px; }
.summary-total dt, .summary-total dd { color: var(--navy); font-size: 1.4rem; }

.primary-button, .ghost-button { min-height: 48px; border: 0; border-radius: var(--radius); padding: 12px 18px; font-weight: 800; }
.primary-button { width: 100%; margin-top: 20px; color: #fff; background: var(--blue); box-shadow: 0 14px 30px rgba(21, 145, 209, 0.28); }
.primary-button:hover { background: #0f7fbc; }
.ghost-button { color: var(--navy); background: #dff3ff; }
.ghost-button:hover { background: #c8ecff; }
.fineprint { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 980px) {
  .intro-band, .calculator { grid-template-columns: 1fr; }
  .summary, .calculator > .panel:not(.summary) { grid-column: 1; }
  .summary { position: static; grid-row: auto; }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 20px 16px 8px; }
  .app-shell { padding: 14px 16px 34px; }
  .intro-copy, .price-box, .panel { padding: 18px; }
  .vehicle-grid, .form-grid, .two-cols { grid-template-columns: 1fr; }
  .with-action { align-items: stretch; flex-direction: column; }
  .ghost-button { width: 100%; }
  .vehicle-card { min-height: 210px; }
}
