@font-face {
  font-family: "ChangAnunitype";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/ChangAnunitype-Regular.otf") format("opentype");
}

@font-face {
  font-family: "ChangAnunitype";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/ChangAnunitype-Bold.otf") format("opentype");
}

:root {
  --blue: #0066b5;
  --blue-deep: #0a477f;
  --ink: #303033;
  --muted: #858990;
  --line: #dfe5eb;
  --soft: #f3f6f9;
  --dark: #132330;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: #f4f7fa;
  color: var(--ink);
  font-family: "ChangAnunitype", Arial, sans-serif;
  line-height: 1.35;
}

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

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

.topbar {
  position: static;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 150px;
}

.dealer {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.dealer strong {
  color: var(--ink);
}

.phone {
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 40px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: 22px;
  align-items: stretch;
  min-height: 300px;
  border: 1px solid rgba(0, 102, 181, 0.15);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 102, 181, 0.13), transparent 34%),
    #fff;
  box-shadow: 0 20px 54px rgba(24, 35, 46, 0.1);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-panel h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.98;
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(48, 48, 51, 0.72);
  font-size: 20px;
}

.hero-panel__media {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: 8px;
  background: #d7e0e8;
}

.hero-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel__media span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.filters,
.models,
.deal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 35, 46, 0.08);
}

.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.filters__title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.filter {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.filter.is-active {
  border-color: rgba(0, 102, 181, 0.34);
  background: var(--blue);
  color: #fff;
}

.filters__note {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.filters__note strong {
  color: var(--ink);
}

code {
  color: var(--blue);
  font-family: inherit;
  font-weight: 700;
}

.models {
  padding: 18px;
}

.models__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.models__head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.04;
}

.models__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.model-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.model-card.is-selected {
  border-color: rgba(0, 102, 181, 0.55);
  box-shadow: 0 12px 30px rgba(0, 102, 181, 0.12);
}

.model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(24, 35, 46, 0.1);
}

.model-card__select {
  position: relative;
  min-height: 148px;
  border: 0;
  padding: 0;
  background: #f7f8fa;
  cursor: pointer;
}

.model-card__select img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.model-card__select span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.model-card__body {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 15px;
}

.model-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.model-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.model-card strong {
  color: var(--ink);
  font-size: 17px;
}

.model-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.model-card__actions button,
.send-button,
.testdrive-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.model-card__actions [data-action="testdrive"] {
  white-space: nowrap;
}

.model-card__actions button:first-child,
.send-button {
  background: var(--blue);
  color: #fff;
}

.model-card__actions button:last-child,
.testdrive-button {
  border: 1px solid rgba(0, 102, 181, 0.28);
  background: #fff;
  color: var(--blue);
}

.deal-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.compare h2,
.lead-form h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.04;
}

.compare p {
  margin: 0;
  color: var(--muted);
}

.compare__items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.compare__items span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #676b72;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.lead-form input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(0, 102, 181, 0.14);
}

.consent {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  align-items: flex-start;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

.consent input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.footer {
  padding: 24px 0 30px;
  background: #101010;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.footer__inner {
  display: grid;
  gap: 14px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.footer p {
  max-width: 980px;
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.utility-main {
  min-height: calc(100vh - 74px);
  background: #f7f8fa;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header__inner,
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
}

.utility-page {
  padding: 58px 0 78px;
}

.utility-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 35, 46, 0.12);
}

.utility-card h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
}

.utility-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.text-button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border-radius: 18px;
  padding: 0 18px;
  font-weight: 700;
}

.button {
  background: var(--blue);
  color: #fff;
}

.text-button {
  border: 1px solid rgba(0, 102, 181, 0.25);
  color: var(--blue);
}

.legal-page .utility-card {
  max-width: 1120px;
}

.legal-page .legal__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.legal-page .legal__list .legal__list {
  margin-top: 12px;
}

.legal-page .legal__list-item {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.legal-page .legal__heading {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-page .legal__text {
  color: var(--ink);
}

.legal-page .legal__note {
  color: var(--muted);
}

.legal-page .link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .filters,
  .deal-panel {
    position: static;
  }

  .filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .filters__title,
  .filters__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 12px 16px;
  }

  .brand img {
    width: 120px;
  }

  .dealer {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12px;
  }

  .phone {
    font-size: 13px;
    text-align: right;
    white-space: normal;
  }

  .catalog-page {
    width: calc(100% - 28px);
    padding: 14px 0 26px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .hero-panel h1 {
    font-size: 38px;
  }

  .lead {
    margin-top: 12px;
    font-size: 15px;
  }

  .hero-panel__media {
    min-height: 170px;
  }

  .workspace {
    gap: 12px;
    margin-top: 12px;
  }

  .filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  .filters__title,
  .filters__note {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .models {
    padding: 12px;
  }

  .models__head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .models__head h2 {
    font-size: 30px;
  }

  .model-card {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card__select {
    min-height: 150px;
  }

  .model-card__body {
    padding: 14px;
  }

  .model-card h3 {
    font-size: 24px;
  }

  .model-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .model-card__actions button {
    padding: 0 10px;
    font-size: 13px;
  }

  .deal-panel {
    padding: 14px;
  }

  .compare h2,
  .lead-form h2 {
    font-size: 28px;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .utility-card h1 {
    font-size: 34px;
  }
}

/* Corrections pass */
.hero-panel {
  min-height: 240px;
  padding: clamp(18px, 3vw, 30px);
}

.hero-panel h1 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.lead {
  font-size: 18px;
}

.hero-panel__media {
  min-height: 210px;
}

@media (max-width: 760px) {
  .hero-panel h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 14px;
  }

  .filters {
    flex-wrap: wrap;
    overflow: visible;
  }

  .filter {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

/* 2026-08-06: keep utility page buttons vertically centered. */
.utility-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
