@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f1113;
  --orange: #f59a0a;
  --muted: #8b8b8b;
  --soft: #f6f6f6;
  --white: #fff;
}

html { scroll-behavior: smooth; }
body {
  min-width: 1180px;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: normal;
}
body * { line-height: normal !important; }
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: calc(100% - 80px); max-width: 1500px; margin-inline: auto; }
.section { padding: 53px 0; background: #fff; }
.section--light { background: #fff !important; }
.section--orange { background: var(--orange) !important; }
.title-xl, .title-lg, .title-md, p, h1, h2, h3 { line-height: normal; }
.title-xl { margin: 0; font-size: 54px; font-weight: 600; letter-spacing: -2.16px; }
.title-lg { margin: 0; font-size: 54px; font-weight: 500; letter-spacing: -2.16px; }
.title-md { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.96px; }
.lead { margin: 0; color: var(--muted); font-size: 18px; font-weight: 400; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 12px; text-transform: uppercase; }

/* Header */
.site-header { background: #fff; }
.topline { height: 33px; color: #fff; background: var(--ink); font-size: 12px; }
.topline .container { height: 33px; display: flex; align-items: center; justify-content: space-between; }
.site-header .nav { height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-header .logo { width: 125px; height: 70px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.menu a { border: 0 !important; padding: 0 !important; }
.header-phone { font-size: 16px; font-weight: 500; white-space: nowrap; }
.button {
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--orange);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}
.button::after { display: none !important; content: none !important; }
.button--small { min-width: 233px; }
.button--dark { color: var(--ink); background: var(--orange); }
.button--white { color: var(--ink); background: #fff; border: 1px solid var(--ink); }
.button--ghost { color: var(--ink); background: #fff; border: 1px solid var(--ink); }
.wide { width: 100%; grid-column: 1 / -1; }

/* Footer */
.site-footer { padding: 40px 0; color: #fff; background: var(--ink); }
body > site-footer,
body > .site-footer { margin-top: 75px; }

.footer-grid { display: grid; grid-template-columns: 430px 400px 530px; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 22px; font-weight: 500; }
.footer-brand img { width: 174px; height: 97px; object-fit: contain; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.footer-contact > a:first-child { font-size: 22px; font-weight: 500; }
.footer-contact > a, .footer-contact > span { color: #fff; }
.footer-routes { display: flex; gap: 20px; color: var(--orange); font-size: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(139,139,139,.35); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer-legal { display: flex; gap: 80px; }
.footer-dev { display: flex; align-items: center; gap: 12px; color: #c9c9c9; }
.footer-dev img { width: 97px; height: 17px; }

/* Breadcrumbs and hero */
.breadcrumbs { padding-top: 40px; color: #6f7278; font-size: 14px; }
.breadcrumbs a { color: inherit; }
.breadcrumbs--inside { position: absolute; z-index: 3; top: 48px; left: 56px; padding: 0; color: rgba(255,255,255,.72); }
.page-hero { padding: 40px 0; background: #fff; }
.page-hero__surface { height: 680px; position: relative; overflow: hidden; border-radius: 8px; background: var(--ink); }
.page-hero__surface > img:not(.hero-object) { width: 100%; height: 100%; object-fit: cover; }
.page-hero__copy { position: absolute; z-index: 2; left: 56px; top: 188px; width: 650px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.page-hero:not(.page-hero--light):not(.cars-hero) .page-hero__copy { color: #fff; }
.page-hero:not(.page-hero--light):not(.cars-hero) .page-hero__copy .lead { color: rgba(255,255,255,.82); width: 610px; }
.page-hero__copy .button { min-width: 300px; min-height: 62px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }

/* Home hero */
.home-hero { height: 732px; padding: 12px 0 0; background: #fff; }
.home-hero__surface { height: 720px; position: relative; overflow: hidden; border-radius: 8px; background: #fff; }
.home-hero__animation { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__copy { position: absolute; z-index: 2; left: 64px; top: 70px; width: 846px; display: flex; flex-direction: column; gap: 26px; }
.home-hero__copy .eyebrow { color: var(--muted); }
.home-hero__copy .title-xl { font-size: 56px; font-weight: 500; }
.home-hero__copy .lead { width: 638px; color: var(--ink); }
.home-hero__copy .hero-actions { padding-top: 5px; }
.home-hero__copy .button { width: 276px; }

/* Home intro */
.home-intro { padding-top: 105px; padding-bottom: 53px; }
.home-intro__head { display: flex; flex-direction: column; gap: 26px; }
.home-intro__head .lead { max-width: 1417px; }
.facts-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.fact { height: 430px; padding: 24px; border-radius: 8px; display: flex; flex-direction: column; gap: 16px; background: #dfdfdf; }
.fact:nth-child(even) { margin-top: 66px; }
.fact b { font-size: 14px; font-weight: 400; }
.fact span { margin-top: auto; font-size: 22px; }
.fact p { margin: 0; font-size: 16px; }
.fact--dark { color: #fff; background: var(--ink); }
.fact--orange { color: #fff; background: var(--orange); }
.fact--photo { color: #fff; background: linear-gradient(180deg,rgba(15,17,19,.05),rgba(15,17,19,.9)), url("../img/figma/raw/home-raw-18-c0ff86f9.png") center/cover no-repeat; }

/* Section heads and service cards */
.section-head { margin-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 620px); gap: 80px; align-items: start; }
.section-head > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.section-head > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.services-featured, .services-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  height: 383px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
}
.service-card h3 { position: absolute; z-index: 2; top: 24px; left: 24px; width: 313px; margin: 0; font-size: 22px; font-weight: 500; }
.service-card img { position: absolute; right: -2%; bottom: -3%; width: 76%; height: 84%; object-fit: contain; }
.service-card__arrow { position: absolute; z-index: 3; left: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ink); font-size: 0; }
.service-card__arrow::before { content: "↗"; font-size: 22px; }
.services-catalog { grid-auto-rows: 383px; }
body[data-page="services"] .services-catalog + * { margin-top: 0; }

/* Brands */
.brands-block .section-head { display: flex; flex-direction: column; gap: 26px; }
.brands-block .section-head .lead { max-width: 100%; }
.brands-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.brand-card { min-height: 135px; padding: 24px; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; background: var(--soft); }
.brand-card:last-child { background: var(--orange); }
.brand-name { font-size: 32px; font-weight: 500; letter-spacing: -.96px; }
.brand-card:last-child .brand-name { font-size: 22px; letter-spacing: -.44px; }
.brand-card small { color: var(--muted); font-size: 14px; }
.brand-card:last-child small { color: var(--ink); }

/* Parts blocks */
.parts-layout { display: grid; grid-template-columns: minmax(0, 910px) minmax(0, 550px); gap: 40px; align-items: start; }
.parts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.part-card { min-height: 67px; padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 16px; background: var(--soft); }
.part-card span { width: 26px; color: var(--muted); font-size: 12px; }
.part-card strong { font-size: 22px; font-weight: 500; }
.parts-note { height: 328px; position: relative; overflow: hidden; padding: 28px; border-radius: 8px; background: var(--orange); }
.parts-note > div { position: relative; z-index: 2; max-width: 485px; }
.parts-note strong { font-size: 38px; }
.parts-note p { width: 265px; font-size: 14px; }
.parts-note .button { position: absolute; left: 28px; right: 28px; bottom: 28px; width: calc(100% - 56px); }
.parts-note img { position: absolute; right: -80px; bottom: -50px; width: 325px; height: 268px; object-fit: contain; }

/* Forms */
.form { width: 100%; }
.form input:not([type="hidden"]), .form textarea, .form select, .upload-field {
  min-width: 0;
  height: 62px;
  padding: 0 24px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 18px;
}
.form textarea { padding-top: 19px; resize: none; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 1; }
.form select { color: var(--muted); appearance: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .button { margin-top: 20px; width: 100%; min-height: 54px; }
.form .button.wide { min-height: 62px; }
.consent { margin-top: 16px; display: flex; align-items: flex-start; gap: 9px; color: #fff; font-size: 12px; }
.consent input { flex: 0 0 19px; width: 19px; height: 18px; margin: 0; appearance: none; border: 0; border-radius: 50%; background: #fff; }
.consent input:checked::after { content: "✓"; display: grid; place-items: center; color: var(--orange); font-size: 14px; line-height: 18px; }
.form-status { min-height: 0; margin-top: 0; font-size: 14px; }
.form.is-sending { opacity: .7; pointer-events: none; }
.form.is-success .form-status { margin-top: 14px; color: var(--orange); }
.upload-field { position: relative; display: flex; align-items: center; cursor: pointer; }
.upload-field input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.upload-field::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 26px;
  height: 26px;
  background: url("../img/figma/raw/cars-svg-01.svg") center / 26px 26px no-repeat;
}

/* Promo form: exact dark card from the main page */
.promo { overflow: hidden; border-radius: 8px; background: var(--ink); }
.promo-grid { min-height: 715px; padding: 40px; display: grid; grid-template-columns: minmax(0, 670px) minmax(0, 710px); gap: 40px; }
.promo-copy { color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.promo-copy .title-lg { color: #fff; }
.promo-copy > .title-xl { font-size: 112px; font-weight: 500; letter-spacing: -6.72px; }
.promo-copy .lead { color: #fff; }
.promo-copy .form { margin-top: auto; padding: 0; background: transparent; }
.promo-media { min-width: 0; height: 635px; overflow: hidden; border-radius: 8px; background: #fff; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }

/* Light callback form */
.callback { min-height: 421px; padding: 48px 56px; border-radius: 8px; display: grid; grid-template-columns: 500px minmax(0, 824px); justify-content: space-between; align-items: center; gap: 64px; background: var(--soft); }
.callback > div:first-child { align-self: start; padding-top: 24px; }
.callback .form { min-height: 325px; padding: 28px; border-radius: 8px; background: var(--ink); }
.callback .form .consent { color: #6f7278; }
.callback .title-lg { font-size: 54px; }
.callback--dark-inline { color: #fff; background: var(--ink); grid-template-columns: 1fr 1fr; }
.callback--dark-inline > div:first-child { padding-top: 0; }
.callback--dark-inline .lead { margin-top: 24px; color: #fff; }
.callback--dark-inline .form { padding: 0; }
.callback--dark-inline .form-grid { grid-template-columns: 1fr 1fr 1fr; }
.callback--dark-inline .form .button { margin-top: 0; height: 62px; }

/* Home about and contacts */
.home-about__head { display: grid; grid-template-columns: 930px 490px; gap: 80px; align-items: start; }
.about-photo { height: 497px; margin-top: 40px; overflow: hidden; border-radius: 8px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-about__bottom { margin-top: 40px; display: grid; grid-template-columns: 380px 1fr; gap: 80px; }
.year-stamp { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.year-stamp strong { color: var(--orange); font-size: 139px; font-weight: 500; letter-spacing: -8.34px; }
.year-stamp span { font-size: 22px; font-weight: 500; }
.year-stamp .button { width: 330px; }
.about-text { display: flex; flex-direction: column; gap: 24px; color: var(--muted); }
.about-text p { margin: 0; }
.contact-layout { display: grid; grid-template-columns: 540px minmax(0, 920px); gap: 40px; }
.contact-card { padding: 32px; border-radius: 8px; display: flex; flex-direction: column; gap: 28px; background: var(--orange); }
.contact-row { display: flex; flex-direction: column; gap: 10px; }
.contact-row small { font-size: 14px; }
.contact-row strong, .contact-row a { color: #fff; font-size: 18px; font-weight: 400; }
.map-card { height: 430px; position: relative; overflow: hidden; border-radius: 8px; }
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); display: flex; gap: 34px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.map-actions a:first-child { color: var(--orange); }

/* Light hero for diagnostics and parts */
.page-hero--light .page-hero__surface { background: var(--soft); }
.page-hero--light .page-hero__copy { top: 134px; width: 606px; min-height: 430px; padding: 44px; border-radius: 8px; justify-content: center; background: #fff; }
.page-hero--light .page-hero__copy .title-xl { font-size: 50px; }
.page-hero--light .page-hero__copy .lead { width: 410px; }
.page-hero--light .hero-object { position: absolute; right: 60px; top: 40px; width: 760px; height: 600px; object-fit: contain; }
.diagnostic-hero-object { width: 660px !important; right: 90px !important; }
.parts-hero .hero-object { width: 760px; right: 20px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.diagnostic-list { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.diagnostic-item { min-height: 80px; padding: 20px 24px; border-radius: 8px; display: flex; align-items: center; gap: 28px; background: var(--soft); }
.diagnostic-item span { color: var(--orange); font-size: 12px; }
.diagnostic-item strong { font-size: 18px; font-weight: 400; }
.form-band { min-height: 360px; color: #fff; background: var(--ink); }
.form-band > div:first-child { padding-top: 0; align-self: center; }
.form-band .form { padding: 0; }
.diagnostic-seo { min-height: 350px; padding: 0 50px; border-radius: 8px; align-items: center; background: var(--soft); }
.diagnostic-seo > img { height: 350px; object-fit: contain; }
.diagnostic-seo .sell-copy { padding: 40px 0; }

/* Pickup and parts SEO */
.pickup { height: 560px; overflow: hidden; border-radius: 8px; display: grid; grid-template-columns: 900px 1fr; background: var(--soft); }
.pickup > img { width: 100%; height: 560px; object-fit: cover; }
.pickup-copy { padding: 108px 44px; display: flex; flex-direction: column; gap: 24px; }
.pickup-copy .title-lg { font-size: 42px; letter-spacing: 0; }
.section--orange > .intro-grid { min-height: 400px; }
.section--orange .intro-grid img { max-height: 400px !important; }

/* Cars */
.cars-hero { padding: 40px 0; }
.cars-hero .page-hero__surface { height: 740px; padding: 40px; background: var(--soft); }
.cars-hero__top { height: 190px; display: flex; align-items: flex-start; justify-content: space-between; }
.cars-hero__top > div:first-child { max-width: 820px; }
.cars-hero__top .title-xl { font-size: 50px; }
.cars-hero__top .lead { margin-top: 26px; }
.cars-hero__top .hero-actions { flex-direction: column; gap: 16px; }
.cars-hero__top .button { width: 330px; }
.cars-hero .page-hero__surface > img { height: 470px !important; border-radius: 8px; object-fit: cover !important; }
.car-estimate { display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 710px); justify-content: space-between; gap: 40px; }
.car-estimate__intro img { width: 100%; height: 310px; object-fit: cover; border-radius: 8px; }
.car-estimate__intro .title-lg { margin-top: 32px; font-size: 36px; letter-spacing: -1px; }
.car-estimate__intro .lead { margin-top: 18px; }
.car-estimate__form .form { min-height: 590px; padding: 28px; border-radius: 8px; background: var(--ink); }
.cars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.car-card { padding: 20px; border-radius: 8px; background: var(--soft); }
.car-card > img { width: 100%; height: 230px; object-fit: contain; background: #fff; border-radius: 8px; }
.car-card__body h3 { margin: 20px 0; font-size: 18px; font-weight: 500; }
.car-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.car-specs div { display: flex; flex-direction: column; gap: 6px; }
.car-specs small { color: var(--muted); font-size: 11px; }
.car-specs strong { font-size: 12px; font-weight: 500; }
.car-card .button { width: 100%; min-width: 0; margin-top: 20px; }
.car-seo { height: 680px; position: relative; overflow: hidden; padding: 40px; border-radius: 8px; background: var(--soft); }
.car-seo__head { position: relative; z-index: 3; display: grid; grid-template-columns: 760px 1fr; gap: 100px; }
.car-seo__head .title-lg { font-size: 42px; letter-spacing: 0; }
.car-seo > img { position: absolute; z-index: 1; left: 80px; right: 80px; bottom: 20px; width: calc(100% - 160px); height: 470px; object-fit: contain; }
.car-callout { position: absolute; z-index: 3; padding: 9px 14px; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.08); font-size: 12px; }
.car-callout:nth-of-type(1) { left: 60px; top: 220px; }
.car-callout:nth-of-type(2) { left: 260px; bottom: 70px; }
.car-callout:nth-of-type(3) { right: 350px; top: 190px; }
.car-callout:nth-of-type(4) { right: 100px; bottom: 80px; }

/* About */
.about-hero { padding-top: 40px; }
.about-story { min-height: 441px; display: grid; grid-template-columns: 650px 729px; justify-content: space-between; gap: 80px; align-items: center; }
.about-story__copy { display: flex; flex-direction: column; gap: 24px; }
.about-story__copy .title-xl { font-size: 52px; }
.about-story > img { width: 729px; height: 441px; object-fit: cover; border-radius: 8px; }
.docs-panel { min-height: 564px; padding: 40px; border-radius: 8px; display: grid; grid-template-columns: 797px 595px; gap: 20px; background: var(--soft); }
.docs-copy { min-height: 484px; padding: 34px 36px; border-radius: 8px; background: #fff; }
.docs-copy .title-lg { font-size: 50px; letter-spacing: 0; }
.docs-copy .lead { margin-top: 18px; font-size: 20px; }
.docs-copy > img { width: 583px; height: 275px; margin: 15px auto 0; object-fit: contain; }
.docs-grid { display: grid; grid-template-columns: 388px 187px; grid-template-rows: repeat(2, 232px); gap: 20px; }
.doc-card { overflow: hidden; border-radius: 8px; background: #fff; }
.doc-card--main { grid-row: 1 / 3; }
.doc-card img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.gallery-tabs { margin-top: 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tab { height: 48px; border: 0; border-radius: 8px; color: var(--ink); background: var(--soft); font-size: 16px; font-weight: 500; cursor: pointer; }
.tab.is-active { color: #fff; background: var(--orange); }
.gallery { margin-top: 28px; display: grid; grid-template-columns: 620px 420px 420px; grid-template-rows: 310px 344px; gap: 20px; }
.gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: 8px; background: var(--soft); }
.gallery figure:nth-child(4) { grid-column: 1 / 2; width: 740px; }
.gallery figure:nth-child(5) { grid-column: 2 / 4; margin-left: 100px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; min-height: 44px; padding: 0 16px; border-radius: 8px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95); box-shadow: 0 6px 8px rgba(23,25,28,.12); font-size: 14px; font-weight: 500; }
.gallery figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Contacts */
.contacts-intro { padding-top: 40px; }
.contact-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 150px); gap: 20px; }
.info-card { padding: 24px; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; background: var(--soft); }
.info-card:nth-child(1), .info-card:nth-child(2) { grid-row: 1 / 3; }
.info-card--orange { color: #fff; background: var(--orange); }
.info-card--dark { color: #fff; background: var(--ink); }
.info-card small { color: inherit; opacity: .7; font-size: 12px; }
.info-card strong, .info-card a { font-size: 22px; font-weight: 400; }
.routes-grid { display: grid; grid-template-columns: 920px 1fr; gap: 20px; }
.route-card { min-height: 430px; padding: 48px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; gap: 28px; background: var(--soft); }
.route-card .title-lg { font-size: 42px; letter-spacing: 0; }
.route-links { display: flex; flex-direction: column; gap: 18px; }
.route-links a:first-child { color: var(--orange); }
.contact-form > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.contact-form > div:first-child img { width: 360px; height: 170px; object-fit: contain; }

/* Modal from Figma master component */
.modal { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(15,17,19,.48); }
.modal.is-open { display: flex; }
.modal__box { width: 560px; padding: 28px; border-radius: 8px; background: var(--soft); }
.modal__head { display: flex; align-items: flex-start; gap: 24px; }
.modal__head h2 { flex: 1; margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.96px; }
.modal__close { position: static; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font-size: 32px; line-height: 1; cursor: pointer; }
.modal__box .form { margin-top: 20px; }
.modal__box .form-grid { grid-template-columns: 1fr; }
.modal__box .form .button { margin-top: 20px; }
.modal__box .consent { color: var(--ink); }

@media (max-width: 1579px) {
  .container { width: calc(100% - 48px); }
  .menu { gap: 14px; font-size: 14px; }
  .site-header .nav { gap: 18px; }
  .footer-grid { grid-template-columns: 31% 25% 36%; }
  .promo-grid { grid-template-columns: 48% 49%; gap: 3%; }
  .callback { grid-template-columns: 38% 58%; gap: 4%; }
  .page-hero--light .hero-object { width: 54%; right: 20px; }
  .parts-layout { grid-template-columns: 61% 36%; gap: 3%; }
  .contact-layout { grid-template-columns: 36% 61%; gap: 3%; }
  .routes-grid { grid-template-columns: 61% 37%; }
  .docs-panel { grid-template-columns: 54% 44%; }
  .docs-grid { grid-template-columns: 65% 31%; }
  .gallery { grid-template-columns: 41% 28% 28%; }
  .home-about__head { grid-template-columns: 62% 34%; gap: 4%; }
  .about-story { grid-template-columns: 44% 51%; gap: 5%; }
  .about-story > img { width: 100%; }
  .parts-seo { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .parts-seo > img { width: 100%; }
}

/* Exact desktop geometry from the editable Figma frames (1580 px). */
@media (min-width: 1580px) {
  .title-xl, .title-lg, .lead { max-width: none; }
  .menu a.active { color: inherit; }
  .consent input {
    width: 19px !important;
    min-width: 19px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
  }
  .page-hero__surface,
  .page-hero--light .page-hero__surface,
  .cars-hero .page-hero__surface { min-height: 0; }
  .service-card,
  .services-catalog .service-card { min-height: 0; padding: 0; }
  .promo-copy { padding: 0; }
  .form { gap: 0; margin-top: 0; }
  .form textarea { min-height: 62px; }
  .footer-bottom { padding-top: 0; }
  .breadcrumbs--inside { top: 48px; left: 56px; }
  .page-hero--light .breadcrumbs--inside,
  .cars-hero .breadcrumbs--inside { top: 32px; left: 40px; color: #6f7278; }
  .breadcrumbs--section {
    position: absolute;
    z-index: 3;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
  }

  .home-hero__copy { width: 840px; }
  .home-hero__copy .title-xl { font-weight: 500; }
  .home-hero__copy .title-xl strong { font-weight: 700; }
  .home-intro__head .title-lg { max-width: none; }
  .facts-grid { height: 534px; margin-top: 26px; padding-top: 38px; }
  .parts-head { height: 245px; }
  .parts-head .title-lg { width: 1200px; margin-top: 0; }
  .parts-head .lead { margin-top: 26px; }
  .parts-head .muted { margin: 24px 0 0; font-size: 14px; }
  body[data-page="home"] main > section:nth-child(5) .parts-layout { margin-top: 40px; }
  .parts-note > div { position: static; }
  .parts-note > div > strong,
  .parts-note > div > p { position: relative; z-index: 2; }
  .parts-note .button { z-index: 3; }
  .promo-media img { object-position: 70% center; }

  .page-hero { height: 760px; padding: 40px 0; }
  .page-hero__surface { height: 680px; }
  .page-hero--light .page-hero__copy {
    top: 130px;
    left: 56px;
    width: 606px;
    height: 440px;
    min-height: 0;
    padding: 44px;
  }
  .page-hero--light .page-hero__copy .title-xl,
  .services-hero .page-hero__copy .title-xl { font-weight: 600; }
  .diagnostic-hero-object {
    top: 87px !important;
    right: 40px !important;
    width: 684px !important;
    height: 506px !important;
  }
  .parts-hero .page-hero__copy { height: 430px; top: 134px; }
  .parts-hero .hero-object {
    z-index: 1;
    top: 0;
    right: 0;
    width: 860px;
    height: 680px;
  }
  .parts-hero .page-hero__surface::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 80px;
    left: 920px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--orange);
  }

  .cars-hero { height: 820px; padding: 40px 0; }
  .cars-hero .page-hero__surface { height: 740px; padding: 92px 40px 40px 56px; }
  .cars-hero__top { height: 190px; grid-template-columns: 900px 400px; gap: 84px; align-items: start; }
  .cars-hero__top > div:first-child { width: 900px; max-width: none; }
  .cars-hero__top .title-xl { font-size: 54px; font-weight: 600; }
  .cars-hero__top .lead { margin-top: 20px; }
  .cars-hero__top .hero-actions { width: 400px; margin-top: 22px; gap: 16px; }
  .cars-hero__top .button { width: 400px; }
  .cars-hero .page-hero__surface > img {
    position: absolute;
    left: 56px;
    top: 300px;
    width: 1384px;
    height: 400px !important;
    object-fit: cover !important;
    object-position: center 83% !important;
    margin: 0;
  }

  .about-hero { position: relative; height: 550px; padding: 40px 0 69px; }
  .about-hero .breadcrumbs--section { top: 48px; }
  .about-story { min-height: 441px; }
  .about-story__copy .title-xl { font-weight: 600; }
  .about-story > img { height: 441px; }

  .contacts-intro { position: relative; height: 600px; padding: 80px 0 48px; }
  .contacts-intro .breadcrumbs--section { top: 24px; }
  .contacts-intro .title-xl { font-size: 56px; font-weight: 500; }
  .contact-cards { height: 338px; margin-top: 36px; grid-template-rows: 160px 162px; gap: 16px; }
  .info-card { min-height: 0; padding: 24px; }
  .info-card strong, .info-card a { font-size: 28px; font-weight: 500; }

  .car-estimate {
    height: 552px;
    grid-template-columns: 689px 757px;
    gap: 54px;
  }
  .car-estimate__intro img { width: 689px; height: 395px; }
  .car-estimate__intro .title-lg { margin-top: 27px; }
  .car-estimate__intro .lead { margin-top: 18px; }
  .car-estimate__form .form { height: 552px; min-height: 0; padding: 30px; gap: 16px; }
  .car-estimate__form .form-grid { width: 700px; gap: 16px; }
  .car-estimate__form .button,
  .car-estimate__form .consent { width: 700px; }
  .car-estimate__form .button { margin-top: 0; }
  .car-estimate__form .consent { height: 44px; margin-top: 0; align-items: flex-start; }
  .cars-grid { grid-template-columns: repeat(4, 360px); gap: 20px; }
  .car-card { position: relative; height: 452px; padding: 0; }
  .car-card > img { position: absolute; left: 20px; top: 20px; width: 320px; height: 214px; object-fit: cover; }
  .car-card__body { padding: 0; }
  .car-card__body h3 { position: absolute; left: 20px; top: 256px; width: 320px; margin: 0; font-size: 22px; font-weight: 500; }
  .car-specs { position: absolute; left: 20px; top: 314px; width: 320px; height: 61px; margin: 0; padding: 10px 16px; grid-template-columns: 95px 100px 1fr; gap: 0; background: #fff; }
  .car-specs > div { padding: 0; gap: 7px; background: transparent; }
  .car-specs small { font-size: 11px; }
  .car-specs strong { color: #6f6f6f; font-size: 14px; font-weight: 400; white-space: nowrap; }
  .car-specs > div:last-child { align-items: flex-end; text-align: right; }
  .car-specs > div:last-child strong { color: var(--orange); font-weight: 700; }
  .car-card .button { position: absolute; left: 20px; top: 384px; width: 320px; height: 48px; min-height: 48px; margin: 0; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 600; }
  .car-seo {
    height: 680px;
    min-height: 0;
    padding: 44px 56px 0;
    border-radius: 24px;
  }
  .car-seo__head {
    left: auto;
    right: auto;
    top: auto;
    grid-template-columns: 720px 620px;
    gap: 40px;
  }
  .car-seo__head .title-lg { font-size: 46px; }
  .car-seo__head .lead { padding-top: 10px; font-size: 19px; }
  .car-seo__media {
    position: absolute;
    left: 56px;
    top: 169px;
    width: 1397px;
    height: 470px;
    overflow: hidden;
    border-radius: 8px;
  }
  .car-seo__media img {
    position: absolute;
    left: -31px;
    top: -113px;
    width: 1446px;
    height: 700px;
    max-width: none;
    object-fit: fill;
  }
  .car-callout {
    min-width: 0;
    width: max-content !important;
    height: 44px;
    padding: 0 18px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    animation: none;
  }
  .car-callout::before {
    position: static;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    animation: none;
    transform: none;
  }
  .car-callout:nth-of-type(2) { left: 72px; right: auto; top: 231px; bottom: auto; width: 227px; }
  .car-callout:nth-of-type(3) { left: 1003px; right: auto; top: 174px; bottom: auto; width: 143px; }
  .car-callout:nth-of-type(4) { left: 96px; right: auto; top: 519px; bottom: auto; width: 108px; }
  .car-callout:nth-of-type(5) { left: 858px; right: auto; top: 595px; bottom: auto; width: 161px; }

  .pickup > img { height: 560px; }
  .service-seo { padding-top: 40px; }

  .site-footer { height: 320px; padding: 40px 0; overflow: hidden; }
  body[data-page="home"] .site-footer { height: 367px; }

  body[data-page="home"] main > section:nth-child(1) { height: 732px; }
  body[data-page="home"] main > section:nth-child(2) { height: 854px; }
  body[data-page="home"] main > section:nth-child(3) { height: 1134px; }
  body[data-page="home"] main > section:nth-child(4) { height: 417px; }
  body[data-page="home"] main > section:nth-child(5) { height: 719px; }
  body[data-page="home"] main > section:nth-child(6) { height: 864px; padding: 53px 0; }
  body[data-page="home"] main > section:nth-child(6) .promo,
  body[data-page="home"] main > section:nth-child(6) .promo-grid { height: 758px; min-height: 0; }
  body[data-page="home"] main > section:nth-child(6) .promo-media { height: 678px; }
  body[data-page="home"] main > section:nth-child(7) { height: 1107px; }
  body[data-page="home"] main > section:nth-child(8) { height: 642px; }
  body[data-page="home"] main > section:nth-child(9) { height: 466px; }

  body[data-page="services"] main > section:nth-child(1) { height: 760px; }
  body[data-page="services"] main > section:nth-child(2) { height: 4220px; padding: 53px 0; }
  body[data-page="services"] main > section:nth-child(2) .eyebrow { display: none; }
  body[data-page="services"] main > section:nth-child(2) .section-head { margin-bottom: 38px; display: block; }
  body[data-page="services"] main > section:nth-child(3) { height: 549px; padding: 64px 0; }
  body[data-page="services"] main > section:nth-child(4) { height: 417px; }
  body[data-page="services"] main > section:nth-child(5) { height: 430px; padding: 40px 0; }
  body[data-page="services"] main > section:nth-child(5) .service-seo__inner { height: 350px; min-height: 0; }
  body[data-page="services"] main > section:nth-child(6) { height: 874px; padding: 53px 0; }
  body[data-page="services"] main > section:nth-child(6) .promo,
  body[data-page="services"] main > section:nth-child(6) .promo-grid { height: 768px; min-height: 0; }
  body[data-page="services"] main > section:nth-child(6) .promo-media { height: 678px; }

  body[data-page="diagnostics"] main > section:nth-child(1) { height: 760px; }
  body[data-page="diagnostics"] main > section:nth-child(2) { height: 580px; padding: 53px 0; }
  body[data-page="diagnostics"] main > section:nth-child(2) .intro-grid { display: block; }
  body[data-page="diagnostics"] main > section:nth-child(2) .eyebrow { display: none; }
  body[data-page="diagnostics"] main > section:nth-child(2) .intro-grid .lead { width: 1500px; margin-top: 26px; }
  body[data-page="diagnostics"] .diagnostic-list { margin-top: 42px; gap: 12px; }
  body[data-page="diagnostics"] .diagnostic-item {
    min-height: 82px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
  }
  body[data-page="diagnostics"] main > section:nth-child(3) { height: 480px; padding: 72px 0 71px; }
  body[data-page="diagnostics"] main > section:nth-child(3) .form-band {
    height: 337px;
    min-height: 0;
    padding: 39px 40px 32px 34px;
    grid-template-columns: 456px 940px;
    gap: 30px;
    align-items: start;
  }
  body[data-page="diagnostics"] main > section:nth-child(3) .form-band > div:first-child { align-self: start; padding: 0; }
  body[data-page="diagnostics"] main > section:nth-child(4) { height: 417px; }
  body[data-page="diagnostics"] main > section:nth-child(5) { height: 440px; padding: 40px 0; }
  body[data-page="diagnostics"] main > section:nth-child(5) .diagnostic-seo,
  body[data-page="diagnostics"] main > section:nth-child(5) .diagnostic-seo > img { height: 360px; min-height: 0; }
  body[data-page="diagnostics"] main > section:nth-child(5) .diagnostic-seo {
    grid-template-columns: 620px 760px;
    gap: 50px;
    padding: 0;
  }
  body[data-page="diagnostics"] main > section:nth-child(5) .diagnostic-seo > img { width: 620px; padding: 0; }
  body[data-page="diagnostics"] main > section:nth-child(5) .diagnostic-seo .sell-copy { padding: 56px 0; }
  body[data-page="diagnostics"] main > section:nth-child(6) { height: 864px; padding: 74px 0 75px; }
  body[data-page="diagnostics"] main > section:nth-child(6) .promo,
  body[data-page="diagnostics"] main > section:nth-child(6) .promo-grid { height: 715px; min-height: 0; }

  body[data-page="parts"] main > section:nth-child(1) { height: 760px; }
  body[data-page="parts"] main > section:nth-child(2) { height: 538px; padding: 53px 0; }
  body[data-page="parts"] main > section:nth-child(3) { height: 824px; padding: 39px 0 40px; }
  body[data-page="parts"] main > section:nth-child(3) .promo,
  body[data-page="parts"] main > section:nth-child(3) .promo-grid { height: 745px; min-height: 0; }
  body[data-page="parts"] main > section:nth-child(4) { height: 640px; padding: 80px 0 0; }
  body[data-page="parts"] main > section:nth-child(5) { height: 821px; padding: 53px 0; }
  body[data-page="parts"] main > section:nth-child(5) .promo,
  body[data-page="parts"] main > section:nth-child(5) .promo-grid { height: 715px; min-height: 0; }
  body[data-page="parts"] main > section:nth-child(6) { height: 480px; padding: 40px 0; }
  body[data-page="parts"] main > section:nth-child(6) .intro-grid { height: 400px; min-height: 0; }
  body[data-page="parts"] main > section:nth-child(7) { height: 549px; padding: 64px 0; }

  body[data-page="cars"] main > section:nth-child(1) { height: 820px; }
  body[data-page="cars"] main > section:nth-child(2) { height: 676px; padding: 56px 0 68px; }
  body[data-page="cars"] main > section:nth-child(3) { height: 704px; padding: 64px 0; }
  body[data-page="cars"] main > section:nth-child(3) .section-head { margin-bottom: 39px; }
  body[data-page="cars"] main > section:nth-child(4) { height: 760px; padding: 40px 0; }
  body[data-page="cars"] main > section:nth-child(5) { height: 549px; padding: 64px 0; }
  body[data-page="cars"] { padding-bottom: 36px; }

  body[data-page="about"] main > section:nth-child(1) { height: 550px; }
  body[data-page="about"] main > section:nth-child(2) { height: 692px; padding: 64px 0; }
  body[data-page="about"] main > section:nth-child(3) { height: 1000px; padding: 40px 0; }
  body[data-page="about"] main > section:nth-child(4) { height: 864px; padding: 74px 0 75px; }
  body[data-page="about"] main > section:nth-child(4) .promo,
  body[data-page="about"] main > section:nth-child(4) .promo-grid { height: 715px; min-height: 0; }

  body[data-page="contacts"] main > section:nth-child(1) { height: 600px; }
  body[data-page="contacts"] main > section:nth-child(2) { height: 543px; padding: 80px 0 35px; }
  body[data-page="contacts"] main > section:nth-child(2) .routes-grid,
  body[data-page="contacts"] main > section:nth-child(2) .map-card { height: 428px; }
  body[data-page="contacts"] main > section:nth-child(3) { height: 549px; padding: 64px 0; }
}

/* December design pass: exact desktop rhythm and interaction states. */
.eyebrow { display: none !important; }

.button {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover,
.button--dark:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: none;
}
.button--white:hover,
.button--ghost:hover {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}
.button:active { transform: scale(.985); }
.parts-note .button--white { border-color: transparent; }

@media (min-width: 1580px) {
  site-header,
  site-footer { display: block; }

  body main {
    display: flex;
    flex-direction: column;
  }

  body main > section {
    flex: 0 0 auto;
    margin: 0;
  }

  body main > section + section { margin-top: 105px; }
  body[data-page="cars"] { padding-bottom: 0; }

  /* The frame itself owns no vertical padding unless explicitly shown in Figma. */
  body main > .section { padding: 0; }

  /* Home / Concept 01 */
  body[data-page="home"] main > section:nth-child(1) { height: 732px; }
  body[data-page="home"] main > section:nth-child(2) { height: 672px; padding: 0; }
  body[data-page="home"] main > section:nth-child(3) { height: 1028px; padding: 0; }
  body[data-page="home"] main > section:nth-child(4) { height: 311px; padding: 0; }
  body[data-page="home"] main > section:nth-child(5) { height: 613px; padding: 0; }
  body[data-page="home"] main > section:nth-child(6) { height: 758px; padding: 0; }
  body[data-page="home"] main > section:nth-child(7) { height: 1001px; padding: 0; }
  body[data-page="home"] main > section:nth-child(8) { height: 536px; padding: 0; }
  body[data-page="home"] main > section:nth-child(9) { height: 340px; padding: 0; }

  .home-hero__copy { top: 70px; gap: 26px; }
  .home-hero__surface { height: 720px; min-height: 0; }
  .home-hero__copy .hero-actions { margin-top: 0; }

  .home-intro__head { gap: 26px; margin-bottom: 0; }
  .facts-grid {
    height: 496px;
    margin-top: 40px;
    padding-top: 0;
  }

  .home-services-head {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1032px 288px;
    gap: 182px;
    align-items: start;
  }
  .home-services-head > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px !important;
  }
  .home-services-head .title-lg { width: 1032px; white-space: nowrap; }
  .home-services-head .lead { width: 1165px; max-width: 1165px; }
  .home-services-head > .button {
    width: 288px;
    min-width: 0;
    height: 54px;
  }

  .service-card__arrow {
    left: -13px;
    bottom: -16px;
    width: 103px;
    height: 103px;
  }
  .service-card__arrow::before {
    position: relative;
    left: 7px;
    bottom: 7px;
  }

  body[data-page="home"] main > section:nth-child(4) .section-head {
    margin-bottom: 40px;
  }
  body[data-page="home"] main > section:nth-child(5) .parts-layout { margin-top: 40px; }

  body[data-page="home"] main > section:nth-child(6) .promo,
  body[data-page="home"] main > section:nth-child(6) .promo-grid {
    height: 758px;
    min-height: 0;
  }
  body[data-page="home"] main > section:nth-child(6) .promo-media { height: 678px; }

  .promo-copy { gap: 24px; }
  .promo-copy > .title-lg,
  .promo-copy > .title-xl,
  .promo-copy > .lead,
  .promo-copy > .promo-disclaimer { margin: 0; }
  .promo-disclaimer {
    width: 670px;
    color: #fff;
    font-size: 12px;
  }
  .promo-copy .form {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .promo-copy .form-grid { gap: 20px; }
  .promo-copy .form .button { height: 54px; min-height: 54px; margin-top: 0; }
  .promo-copy .form .consent { margin-top: -4px; }
  .promo-copy .form-status:empty { display: none; }

  .home-about__head,
  .home-about__bottom { gap: 80px; }
  .home-about__head { grid-template-columns: 930px 490px; }
  .home-about__bottom { grid-template-columns: 380px 1040px; }
  .home-about__bottom .year-stamp strong { margin-bottom: 0; }
  .home-about__bottom .year-stamp .button { margin-top: 0; }
  .about-text { gap: 24px; }

  body[data-page="home"] main > section:nth-child(8) .section-head {
    margin-bottom: 40px;
    display: block;
  }
  body[data-page="home"] main > section:nth-child(8) .contact-card,
  body[data-page="home"] main > section:nth-child(8) .map-card { height: 430px; }
  body[data-page="home"] .contact-row + .contact-row { margin-top: 0; }

  body[data-page="home"] .callback--dark-inline {
    height: 340px;
    min-height: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  body[data-page="home"] .callback--dark-inline > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }
  body[data-page="home"] .callback--dark-inline .lead { margin: 0; }
  body[data-page="home"] .callback--dark-inline .form {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
  }
  body[data-page="home"] .callback--dark-inline .form-grid {
    grid-template-columns: repeat(3, 460px);
    gap: 20px;
  }
  body[data-page="home"] .callback--dark-inline .form .button {
    height: 62px;
    margin: 0;
  }
  body[data-page="home"] .callback--dark-inline .consent,
  body[data-page="home"] .callback--dark-inline .form-status {
    width: 460px;
    margin: 0 0 0 auto;
  }

  /* Internal pages: every frame is followed by the same 105 px interval. */
  body[data-page="services"] main > section:nth-child(1) { height: 720px; padding: 40px 0 0; }
  body[data-page="services"] main > section:nth-child(2) { height: 4114px; padding: 0; }
  body[data-page="services"] main > section:nth-child(3) { height: 421px; padding: 0; }
  body[data-page="services"] main > section:nth-child(4) { height: 311px; padding: 0; }
  body[data-page="services"] main > section:nth-child(5) { height: 350px; padding: 0; }
  body[data-page="services"] main > section:nth-child(6) { height: 768px; padding: 0; }

  body[data-page="diagnostics"] main > section:nth-child(1) { height: 720px; padding: 40px 0 0; }
  body[data-page="diagnostics"] main > section:nth-child(2) { height: 474px; padding: 0; }
  body[data-page="diagnostics"] main > section:nth-child(3) { height: 337px; padding: 0; }
  body[data-page="diagnostics"] main > section:nth-child(4) { height: 311px; padding: 0; }
  body[data-page="diagnostics"] main > section:nth-child(5) { height: 360px; padding: 0; }
  body[data-page="diagnostics"] main > section:nth-child(6) { height: 715px; padding: 0; }

  body[data-page="parts"] main > section:nth-child(1) { height: 760px; padding: 40px 0; }
  body[data-page="parts"] main > section:nth-child(2) { height: 432px; padding: 0; }
  body[data-page="parts"] main > section:nth-child(3) { height: 745px; padding: 0; }
  body[data-page="parts"] main > section:nth-child(4) { height: 560px; padding: 0; }
  body[data-page="parts"] main > section:nth-child(5) { height: 715px; padding: 0; }
  body[data-page="parts"] main > section:nth-child(6) { height: 400px; padding: 0; }
  body[data-page="parts"] main > section:nth-child(7) { height: 421px; padding: 0; }

  body[data-page="cars"] main > section:nth-child(1) { height: 780px; padding: 40px 0 0; }
  body[data-page="cars"] main > section:nth-child(2) { height: 552px; padding: 0; }
  body[data-page="cars"] main > section:nth-child(3) { height: 554px; padding: 0; }
  body[data-page="cars"] main > section:nth-child(4) { height: 680px; padding: 0; }
  body[data-page="cars"] main > section:nth-child(5) { height: 421px; padding: 0; }

  body[data-page="about"] main > section:nth-child(1) { height: 481px; padding: 40px 0 0; }
  body[data-page="about"] main > section:nth-child(2) { height: 564px; padding: 0; }
  body[data-page="about"] main > section:nth-child(3) { height: 880px; padding: 0; }
  body[data-page="about"] main > section:nth-child(4) { height: 714px; padding: 0; }

  body[data-page="contacts"] main > section:nth-child(1) { height: 522px; padding: 80px 0 0; }
  body[data-page="contacts"] main > section:nth-child(2) { height: 431px; padding: 0; }
  body[data-page="contacts"] main > section:nth-child(3) { height: 421px; padding: 0; }
}

/* December interaction and fidelity pass */
.form--dark .button:hover,
.form--dark .button:focus-visible,
.form--dark .button:active {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.service-card__arrow {
  color: transparent;
  background: transparent url("../img/figma/service-arrow.svg") center / 100% 100% no-repeat;
}
.service-card__arrow::before { content: none; }
.service-card:hover .service-card__arrow { background-color: transparent; }

.contact-row small {
  margin: 0;
  color: var(--ink);
  opacity: 1;
}
.map-actions {
  z-index: 5;
  bottom: auto;
  align-items: center;
}
.map-actions a {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}
.map-actions a:first-child { color: var(--orange); }
.map-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 67px;
  height: 77px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: url("../img/figma/map-locator.svg") center / 67px 77px no-repeat;
}
.map-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(50% - 10px);
  width: 52px;
  height: 29px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: #fff url("../img/figma/logo-cropped.png") center / 67px auto no-repeat;
}

.modal { opacity: 0; }
.modal.is-open { opacity: 1; animation: modal-backdrop-in 180ms ease-out both; }
.modal.is-open .modal__box { animation: modal-card-in 220ms ease-out both; }
.modal__close { display: grid; place-items: center; }
.modal__close img { width: 24px; height: 24px; }
.modal__box .form { display: flex; flex-direction: column; gap: 20px; }
.modal__fields { display: flex; flex-direction: column; gap: 20px; }
.modal__fields textarea { height: 112px; padding-top: 20px; }
.modal__box .form .button,
.modal__box .consent { margin-top: 0; }
.modal__box .consent input:checked {
  background: #fff url("../img/figma/consent-check.svg") center / 19px 18px no-repeat;
}
.modal__box .consent input:checked::after { content: none; }
.modal__head h2 { white-space: pre-line; }
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 620ms ease-out var(--reveal-delay, 0ms), transform 620ms ease-out var(--reveal-delay, 0ms);
}
.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); }
.car-callout { will-change: opacity, transform; }

/* Requested Figma fidelity fixes: footer, kinetic cards, arrows and compact heroes. */
.service-card__arrow {
  transform: scaleX(-1);
  transition: background-image .18s ease;
}
.service-card:hover .service-card__arrow,
.service-card:focus-visible .service-card__arrow {
  background-color: transparent;
  background-image: url("../img/figma/service-arrow-orange.svg");
}

.fact:nth-child(even) {
  margin-top: 0;
  transform: translate3d(0, var(--fact-shift, 66px), 0);
  will-change: transform;
}

.page-hero--light .page-hero__copy .lead,
.page-hero--light .page-hero__copy .hero-actions {
  margin: 0;
}

.parts-note { height: 328px; padding: 0; }
.parts-note > div { position: static; width: auto; max-width: none; }
.parts-note strong {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 36px;
  width: calc(100% - 56px);
  margin: 0;
  font-size: 38px;
  font-weight: 700;
}
.parts-note p {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 109px;
  width: 264px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.parts-note > div > strong,
.parts-note > div > p { position: absolute; }
.parts-note p span:first-child { font-size: 18px; }
.parts-note p span:last-child { font-size: 14px; }
.parts-note img {
  z-index: 1;
  left: 57%;
  right: auto;
  top: 60px;
  bottom: auto;
  width: 325px;
  height: 268px;
  max-width: none;
  object-fit: cover;
}
.parts-note .button {
  z-index: 3;
  left: 28px;
  top: 246px;
  right: 28px;
  bottom: auto;
  width: auto;
  height: 54px;
  min-width: 0;
}

@media (max-width: 1579px) {
  .parts-note strong { font-size: 30px; }
  .parts-note p { top: 99px; width: 215px; }
  .parts-note p span:first-child { font-size: 16px; }
  .parts-note p span:last-child { font-size: 13px; }
  .parts-note .button { font-size: 15px; }
}

.parts-seo-section { background: #fff !important; }
.parts-seo {
  height: 400px;
  min-height: 0;
  padding: 0 0 0 58px;
  overflow: hidden;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 912px 530px;
  gap: 0;
  align-items: center;
  background: var(--orange);
}
.parts-seo > div { display: flex; flex-direction: column; gap: 32px; }
.parts-seo .title-lg { font-size: 48px; }
.parts-seo .lead { width: 760px; margin: 0; color: #fff; font-size: 19px; }
.parts-seo > img { width: 530px; height: 400px; object-fit: cover; }

@media (min-width: 1580px) {
  .page-hero--light .page-hero__copy .lead,
  .page-hero--light .page-hero__copy .hero-actions {
    margin: 0;
  }

  .page-hero--light .page-hero__copy {
    height: 440px;
    min-height: 0;
    overflow: hidden;
    justify-content: center;
    gap: 26px;
  }
  .page-hero--light .page-hero__copy .title-xl { width: 518px; }
  .page-hero--light .page-hero__copy .lead { width: 518px; }
  .page-hero--light .page-hero__copy .hero-actions,
  .page-hero--light .page-hero__copy .button { width: 100%; }
  .parts-hero .page-hero__copy { height: 430px; }
  .parts-hero .page-hero__copy .lead { width: 410px; }
  .diagnostic-hero-object {
    top: 52px !important;
    right: 40px !important;
    width: 684px !important;
    height: 541px !important;
  }

  body[data-page="diagnostics"] main > section:nth-child(2) .intro-grid .lead {
    width: 1500px;
    margin-top: 26px;
  }
  body[data-page="diagnostics"] .diagnostic-item strong { font-size: 22px; }
  body[data-page="diagnostics"] .diagnostic-item span { font-size: 12px; }
  body[data-page="diagnostics"] .form-band .form {
    width: 940px;
    min-height: 0;
    background: transparent;
  }
  body[data-page="diagnostics"] .form-band .form-grid { gap: 20px; }
  body[data-page="diagnostics"] .form-band .button { margin-top: 20px; }

  .parts-note { width: 550px; height: 328px; padding: 0; }
  .parts-note > div { position: static; max-width: none; }
  .parts-note strong {
    position: absolute;
    z-index: 2;
    left: 28px;
    top: 36px;
    width: 485px;
    margin: 0;
    font-size: 38px;
    font-weight: 700;
  }
  .parts-note p {
    position: absolute;
    z-index: 2;
    left: 28px;
    top: 109px;
    width: 264px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .parts-note p span:first-child { font-size: 18px; }
  .parts-note p span:last-child { font-size: 14px; }
  .parts-note img {
    z-index: 1;
    left: 313px;
    right: auto;
    top: 60px;
    bottom: auto;
    width: 325px;
    height: 268px;
    max-width: none;
    object-fit: cover;
  }
  .parts-note .button {
    z-index: 3;
    left: 28px;
    top: 246px;
    right: auto;
    bottom: auto;
    width: 486px;
    height: 54px;
    min-width: 0;
  }

  body[data-page="services"] main > section:nth-child(6) {
    height: 758px;
  }
  body[data-page="services"] main > section:nth-child(6) .promo,
  body[data-page="services"] main > section:nth-child(6) .promo-grid {
    height: 758px;
  }
  body[data-page="services"] main > section:nth-child(6) .promo-media {
    height: 678px;
    align-self: start;
  }
  body[data-page="services"] main > section:nth-child(6) .promo-media img {
    object-position: 70% center;
  }

  body[data-page="parts"] main > section:nth-child(5) .promo,
  body[data-page="parts"] main > section:nth-child(5) .promo-grid {
    height: 692px;
  }
  body[data-page="parts"] main > section:nth-child(5) .promo-grid {
    padding: 40px 40px 37px;
  }
  body[data-page="parts"] main > section:nth-child(5) .promo-copy,
  body[data-page="parts"] main > section:nth-child(5) .promo-media {
    height: 615px;
  }
  body[data-page="parts"] main > section:nth-child(5) .promo-copy {
    overflow: hidden;
  }
  body[data-page="parts"] main > section:nth-child(5) .promo-copy > .lead,
  body[data-page="parts"] main > section:nth-child(5) .promo-copy .form {
    margin-top: 0 !important;
  }
  body[data-page="parts"] main > section:nth-child(5) .promo-copy .form {
    gap: 0;
  }
  body[data-page="parts"] main > section:nth-child(5) .form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body[data-page="parts"] main > section:nth-child(5) .form .button {
    height: 54px;
    min-height: 54px;
    margin-top: 24px;
  }
  body[data-page="parts"] main > section:nth-child(5) .consent {
    height: 30px;
    margin-top: 24px;
  }

  .site-footer,
  body[data-page="home"] .site-footer {
    height: 369px !important;
    padding: 40px 0;
    overflow: hidden;
  }
  .footer-grid {
    position: relative;
    display: block;
    height: 191px;
  }
  .footer-brand {
    position: absolute;
    left: 0;
    top: 0;
    width: 302px;
    gap: 24px;
    font-size: 22px;
  }
  .footer-brand img { width: 174px; height: 97px; }
  .footer-nav {
    position: absolute;
    left: 703px;
    top: 0;
    width: 225px;
    gap: 18px;
    font-size: 18px;
  }
  .footer-contact {
    position: absolute;
    left: 1105px;
    top: 0;
    width: 392px;
    gap: 18px;
    font-size: 18px;
  }
  .footer-contact > a,
  .footer-contact > span { color: #fff !important; }
  .footer-contact > a:first-child { font-size: 22px; font-weight: 500; }
  .footer-routes { display: flex; gap: 20px; font-size: 14px; color: var(--orange); }
  .footer-bottom {
    position: relative;
    height: 58px;
    margin-top: 40px;
    padding: 41px 0 0;
    border-top: 1px solid rgba(139,139,139,.35);
    display: block;
    color: #fff;
    font-size: 12px;
  }
  .footer-bottom > span:first-child { position: absolute; left: 0; top: 41px; width: 100px; }
  .footer-legal { position: absolute; left: 294px; top: 41px; width: 768px; height: 17px; display: block; }
  .footer-legal a:first-child { position: absolute; left: 0; top: 0; width: 284px; }
  .footer-legal a:last-child { position: absolute; left: 478px; top: 0; width: 290px; }
  .footer-dev {
    position: absolute;
    left: 1256px;
    top: 41px;
    width: 248px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #c9c9c9;
    font-family: Arial, sans-serif;
    font-size: 14px;
    white-space: nowrap;
  }
  .footer-dev img { width: 97px; height: 17px; }

  body[data-page="parts"] main > section:nth-child(3) .promo-media img {
    object-position: center 38%;
  }
  body[data-page="parts"] main > section:nth-child(5) .promo-media img {
    object-position: center 25%;
  }
  body[data-page="parts"] main > section:nth-child(6) { background: #fff !important; }

  body[data-page="about"] main > section:nth-child(3) .section-head {
    display: block;
    margin-bottom: 26px;
  }
  body[data-page="about"] main > section:nth-child(3) .section-head .lead {
    width: 100%;
    max-width: none;
    margin-top: 16px;
    white-space: nowrap;
  }
  body[data-page="contacts"] main > section:nth-child(2) .routes-grid,
  body[data-page="contacts"] main > section:nth-child(2) .map-card { height: 430px; }
}

/* Responsive layout. Desktop geometry above remains unchanged. */
.nav-toggle { display: none; }

@media (max-width: 1179px) {
  html, body { min-width: 0; overflow-x: clip; }
  body { font-size: 16px; }
  .container { width: calc(100% - 48px); }
  .section, main > section { height: auto !important; min-height: 0 !important; }
  .section { padding: 72px 0 !important; }
  .title-xl { font-size: 46px; letter-spacing: -1.7px; }
  .title-lg { font-size: 40px; letter-spacing: -1.4px; }
  .title-md { font-size: 28px; }
  .lead { font-size: 16px; }
  .page-hero .title-xl, .about-story__copy .title-xl, .contacts-intro .title-xl { font-size: 46px; }
  .home-hero__copy .title-xl { font-size: 46px; }
  .page-hero--light .page-hero__copy .title-xl, .cars-hero__top .title-xl { font-size: 46px; }
  .promo-copy > .title-xl { font-size: 82px; letter-spacing: -4px; }
  .parts-seo .title-lg, .docs-copy .title-lg, .route-card .title-lg, .car-seo__head .title-lg { font-size: 40px; }

  .site-header { position: relative; z-index: 50; }
  .site-header .nav { position: relative; height: 82px; gap: 20px; }
  .site-header .logo { width: 108px; height: 60px; }
  .site-header .nav > a:first-child { margin-right: auto; }
  .site-header .nav > .button { min-width: 180px; }
  .nav-toggle {
    width: 52px; height: 52px; padding: 0 14px; border: 0; border-radius: 8px;
    display: grid; align-content: center; gap: 5px; background: var(--ink);
  }
  .nav-toggle span { width: 100%; height: 2px; display: block; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .menu {
    position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% - 1px);
    padding: 22px; border-radius: 0 0 8px 8px; display: grid; gap: 0;
    background: #fff; box-shadow: 0 22px 40px rgba(15,17,19,.14);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .site-header .menu a { padding: 14px 4px !important; border-bottom: 1px solid #e8e8e8 !important; font-size: 16px; }
  .site-header .menu a:last-child { border-bottom: 0 !important; }
  .nav-open .site-header .menu { opacity: 1; visibility: visible; transform: translateY(0); }

  .page-hero, .cars-hero, .about-hero, .contacts-intro { padding: 32px 0 !important; }
  .home-hero { height: auto; padding: 16px 0 0; }
  .home-hero__surface { height: 620px; min-height: 0; }
  .home-hero__copy { left: 40px; top: 54px; width: min(660px, calc(100% - 80px)); }
  .home-hero__copy .lead { width: min(620px, 100%); }
  .page-hero__surface { height: 600px; min-height: 0; }
  .page-hero__copy { left: 40px; top: auto; bottom: 42px; width: min(620px, calc(100% - 80px)); gap: 22px; }
  .page-hero:not(.page-hero--light):not(.cars-hero) .page-hero__copy .lead { width: 100%; }
  .breadcrumbs--inside { left: 40px; top: 34px; max-width: calc(100% - 80px); }
  .page-hero--light .page-hero__surface { height: 600px; min-height: 0; }
  .page-hero--light .page-hero__copy { left: 32px; top: 92px; bottom: auto; width: 46%; min-height: 0; padding: 32px; }
  .page-hero--light .page-hero__copy .lead, .page-hero--light .page-hero__copy .title-xl { width: 100%; }
  .page-hero--light .hero-object, .page-hero--light .diagnostic-hero-object, .parts-hero .hero-object {
    right: 12px !important; top: 70px !important; width: 52% !important; height: 500px !important;
  }
  .cars-hero .page-hero__surface { height: auto; min-height: 0; padding: 74px 32px 32px; }
  .cars-hero__top { height: auto; display: grid; grid-template-columns: 1fr; gap: 28px; }
  .cars-hero__top .hero-actions { width: 100%; margin: 0; display: flex; }
  .cars-hero__top .button { width: auto; min-width: 250px; }
  .cars-hero .page-hero__surface > img { width: 100%; height: 360px !important; margin-top: 32px; object-fit: cover !important; }

  .home-intro__head, .section-head, .home-services-head, .home-about__head,
  .home-about__bottom, .intro-grid, .about-story, .docs-panel, .contact-layout,
  .routes-grid, .pickup, .parts-seo, .car-estimate, .service-seo__inner {
    width: 100%; height: auto !important; min-height: 0 !important;
  }
  .home-intro__head, .section-head, .home-services-head, .home-about__head {
    display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px;
  }
  .home-services-head .title-lg, .home-services-head .lead, .home-services-head .button,
  .parts-head .title-lg, .parts-head .lead { width: auto; max-width: 100%; white-space: normal; }
  .home-services-head .button { justify-self: start; }
  .facts-grid { height: auto; margin-top: 36px; padding-top: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .fact, .fact--dark, .fact--photo, .fact--orange { min-height: 320px; height: auto; transform: none !important; }
  .services-featured, .services-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .service-card, .services-catalog .service-card { height: 350px; min-height: 0; }
  .brands-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }

  .parts-head { height: auto; }
  .parts-layout { grid-template-columns: 1fr; gap: 28px; }
  .parts-note { position: relative; top: auto; width: 100%; height: 328px; }
  .parts-note > div { width: calc(100% - 280px); }
  .parts-note p { width: min(420px,100%); }

  .promo, .promo-grid, body[data-page] main .promo, body[data-page] main .promo-grid { height: auto !important; min-height: 0 !important; }
  .promo-grid { padding: 32px !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .promo-copy, .promo-media, body[data-page] main .promo-copy, body[data-page] main .promo-media { height: auto !important; min-height: 0; }
  .promo-copy { padding: 0; overflow: visible !important; }
  .promo-media { min-height: 520px; align-self: stretch; }
  .promo-media img { min-height: 100%; object-fit: cover; }
  .promo-copy .form { margin-top: 28px !important; }
  .form { min-height: 0 !important; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .consent { height: auto !important; min-height: 18px; }

  .callback, .callback--dark-inline, .contact-form, .form-band {
    height: auto !important; min-height: 0 !important; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 36px; padding: 36px;
  }
  .callback > *, .contact-form > *, .form-band > * { min-width: 0; }
  .callback .title-lg, .contact-form .title-lg, .form-band .title-lg { width: 100%; max-width: 100%; font-size: 40px; }
  .callback .form { min-height: 0; }
  .callback--dark-inline .form-grid { grid-template-columns: 1fr 1fr; }
  .callback--dark-inline .form-grid .button { grid-column: 1 / -1; }

  .contact-layout { grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: 18px; }
  .map-card { height: 430px !important; }
  .map-actions { flex-wrap: wrap; }
  .home-about__bottom { grid-template-columns: 260px 1fr; gap: 40px; }
  .about-photo { height: 430px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .diagnostic-list { margin-top: 34px; }
  .diagnostic-item { grid-template-columns: 64px 1fr; }
  .diagnostic-seo { grid-template-columns: .8fr 1.2fr; padding: 0 30px; }
  .diagnostic-seo > img { width: 100%; }
  .pickup { grid-template-columns: 1.05fr .95fr; }
  .pickup > img { height: 440px; }
  .pickup-copy { padding: 38px; }
  .parts-seo { grid-template-columns: 1.1fr .9fr; }
  .parts-seo .lead { width: auto; }

  .car-estimate { grid-template-columns: .9fr 1.1fr; gap: 32px; }
  .car-estimate__intro img { width: 100%; height: 340px; }
  .car-estimate__form .form, .car-estimate__form .form-grid, .car-estimate__form .consent { width: 100%; height: auto; }
  .cars-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .car-card { height: auto; min-height: 0; padding: 0; }
  .car-card > img { position: static; width: 100%; height: 230px; }
  .car-card__body { padding: 20px; }
  .car-card__body h3, .car-specs, .car-card .button { position: static; width: 100%; height: auto; }
  .car-specs { margin: 24px 0; padding: 0; grid-template-columns: repeat(3,1fr); }
  .car-seo { height: 620px; }
  .car-seo__head { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .car-seo > img, .car-seo__media { width: 82%; max-width: 900px; }

  .about-story { grid-template-columns: .9fr 1.1fr; gap: 24px; }
  .about-story > *, .docs-panel > * { min-width: 0; }
  .about-story__copy { padding: 36px; }
  .about-story > img { width: 100%; height: 430px; }
  .docs-panel { grid-template-columns: .8fr 1.2fr; gap: 28px; }
  .docs-grid { grid-template-columns: 1.25fr .75fr; }
  .docs-copy { min-height: 0; }
  .docs-copy img { width: 260px; }
  .gallery-tabs { overflow-x: auto; grid-template-columns: repeat(5,minmax(150px,1fr)); padding-bottom: 4px; }
  .gallery { grid-template-columns: 1.2fr 1fr; grid-auto-rows: 240px; }
  .gallery figure:first-child { grid-row: span 2; }
  .gallery figure:nth-child(4), .gallery figure:nth-child(5) { width: auto; margin-left: 0; grid-column: auto; }

  .contacts-intro { height: auto; }
  .contact-cards { height: auto; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
  .routes-grid { grid-template-columns: 1.2fr .8fr; }
  .route-card { min-height: 430px; padding: 32px; }

  .site-footer, body[data-page="home"] .site-footer { height: auto !important; min-height: 0; padding: 48px 0 28px; overflow: visible; }
  .footer-grid { height: auto; grid-template-columns: 1.1fr .75fr 1fr; gap: 36px; white-space: normal; }
  .footer-brand, .footer-nav, .footer-contact { position: static; width: auto; height: auto; }
  .footer-brand img { width: 138px; height: 77px; }
  .footer-bottom { position: static; height: auto; margin-top: 36px; padding-top: 24px; display: flex; gap: 20px; }
  .footer-bottom > span:first-child, .footer-legal, .footer-dev { position: static; width: auto; height: auto; }
  .footer-legal { display: flex; gap: 18px; }
  .footer-legal a:first-child, .footer-legal a:last-child { position: static; width: auto; }
  .footer-dev { margin-left: auto; }
}

@media (max-width: 767px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 52px 0 !important; }
  .title-xl { font-size: 36px; letter-spacing: -1.25px; }
  .title-lg { font-size: 32px; letter-spacing: -1px; }
  .title-md { font-size: 25px; }
  .lead { font-size: 15px; }
  .page-hero .title-xl { font-size: 31px; overflow-wrap: normal; word-break: normal; }
  .home-hero__copy .title-xl { font-size: 34px; }
  .page-hero--light .page-hero__copy .title-xl, .cars-hero__top .title-xl { font-size: 31px; overflow-wrap: normal; word-break: normal; }
  .about-story__copy .title-xl, .contacts-intro .title-xl { font-size: 34px; }
  .promo-copy > .title-xl { font-size: 60px; letter-spacing: -3px; }
  .parts-seo .title-lg, .docs-copy .title-lg, .route-card .title-lg, .car-seo__head .title-lg { font-size: 32px; }
  .button { width: 100%; min-width: 0 !important; min-height: 52px; padding-inline: 18px; font-size: 15px; }

  .topline, .topline .container { height: 28px; }
  .topline { font-size: 9px; }
  .topline .container span:last-child { display: none; }
  .site-header .nav { height: 70px; }
  .site-header .logo { width: 92px; height: 52px; }
  .site-header .header-phone, .site-header .nav > .button { display: none; }
  .nav-toggle { width: 46px; height: 46px; }
  .site-header .menu { left: -16px; right: -16px; padding: 16px 20px 20px; }

  .home-hero { padding-top: 12px; }
  .home-hero__surface { height: 560px; }
  .home-hero__surface::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.78) 55%,rgba(255,255,255,.08) 100%);
  }
  .home-hero__copy { left: 22px; top: 38px; width: calc(100% - 44px); }
  .home-hero__copy .lead { width: 100%; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; }

  .page-hero, .cars-hero, .about-hero, .contacts-intro { padding: 20px 0 !important; }
  .page-hero__surface { height: 560px; }
  .page-hero__surface::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg,rgba(15,17,19,.88),rgba(15,17,19,.04) 72%);
  }
  .breadcrumbs--inside { left: 20px; top: 22px; max-width: calc(100% - 40px); font-size: 11px; }
  .page-hero__copy { left: 20px; bottom: 24px; width: calc(100% - 40px); gap: 18px; }
  .page-hero__copy .button { min-height: 52px; }
  .page-hero--light .page-hero__surface {
    height: auto; min-height: 620px; padding: 70px 20px 20px;
    display: flex; flex-direction: column; gap: 20px;
  }
  .page-hero--light .page-hero__surface::after { display: none; }
  .page-hero--light .page-hero__copy {
    position: relative; left: auto; top: auto; width: 100%; padding: 24px; order: 1;
  }
  .page-hero--light .hero-object, .page-hero--light .diagnostic-hero-object, .parts-hero .hero-object {
    position: relative !important; right: auto !important; top: auto !important;
    width: 100% !important; height: 280px !important; order: 2;
  }
  .cars-hero .page-hero__surface { padding: 64px 20px 20px; }
  .cars-hero__top .hero-actions { display: grid; }
  .cars-hero .page-hero__surface > img { height: 250px !important; margin-top: 24px; }

  .facts-grid, .services-featured, .services-catalog, .brands-grid,
  .parts-list, .cars-grid, .contact-cards { grid-template-columns: 1fr; }
  .fact, .fact--dark, .fact--photo, .fact--orange { min-height: 280px; }
  .service-card, .services-catalog .service-card { height: 320px; }
  .brand-card { min-height: 118px; }
  .parts-note { height: 360px; overflow: hidden; }
  .parts-note > div { width: 100%; }
  .parts-note p { width: 60%; }
  .parts-note img { right: -100px; width: 290px; }

  .promo-grid { padding: 20px !important; grid-template-columns: 1fr; gap: 24px; }
  .promo-media { min-height: 280px; height: 280px !important; }
  .promo-copy .form { margin-top: 24px !important; }
  .form-grid, body[data-page="parts"] main > section:nth-child(5) .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form input, .form select, .form textarea, .upload-field { min-height: 54px; }
  .form textarea { min-height: 92px; }

  .callback, .callback--dark-inline, .contact-form, .form-band { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .callback, .callback--dark-inline, .contact-form, .form-band,
  .routes-grid, .pickup, .parts-seo, .car-estimate, .diagnostic-seo,
  .about-story, .docs-panel { grid-template-columns: minmax(0,1fr); }
  .callback .form { padding: 20px; }
  .callback .title-lg, .contact-form .title-lg, .form-band .title-lg { width: 100%; max-width: 100%; overflow-wrap: normal; font-size: 32px; }
  .callback--dark-inline .form-grid { grid-template-columns: 1fr; }

  .contact-layout, .routes-grid, .pickup, .parts-seo, .car-estimate,
  .diagnostic-seo, .about-story, .docs-panel { grid-template-columns: minmax(0,1fr); }
  .parts-seo { padding: 0 !important; gap: 24px; overflow: hidden; }
  .parts-seo > div, .parts-seo > img { min-width: 0; }
  .contact-card { padding: 28px; }
  .map-card { height: 360px !important; }
  .map-actions { left: 14px; right: 14px; top: 62px; bottom: auto; transform: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; white-space: normal; }
  .map-actions a { width: 100%; }
  .home-about__bottom { grid-template-columns: 1fr; gap: 28px; }
  .year-stamp { position: static; padding: 0; }
  .about-photo { height: 320px; }

  .diagnostic-item { min-height: 86px; grid-template-columns: 44px 1fr; padding: 18px; }
  .diagnostic-item strong { font-size: 16px; }
  .diagnostic-seo { padding: 28px; }
  .diagnostic-seo > img { height: 240px; }
  .pickup > img { height: 300px; }
  .pickup-copy { padding: 28px; }
  .parts-seo > img { width: 100%; height: 260px; }

  .car-estimate__intro img { height: 260px; }
  .car-estimate__form .form { padding: 20px; }
  .car-specs { gap: 6px; }
  .car-specs strong { font-size: 12px; }
  .car-seo { height: 560px; padding: 24px; }
  .car-seo__head {
    position: relative; left: auto; right: auto; top: auto;
    width: 100%; display: grid; grid-template-columns: minmax(0,1fr); gap: 12px;
  }
  .car-seo__head .title-lg, .car-seo__head .lead { width: 100%; padding-top: 0; }
  .car-seo__media { width: 100%; bottom: 90px; }
  .car-callout { min-width: 0; max-width: 145px; padding: 10px 12px; font-size: 11px; }
  .car-callout::before { width: 24px; }
  .car-callout:nth-of-type(1) { left: 16px; right: auto; top: 190px; bottom: auto; }
  .car-callout:nth-of-type(2) { left: auto; right: 16px; top: 245px; bottom: auto; }
  .car-callout:nth-of-type(3) { left: 16px; right: auto; top: auto; bottom: 82px; }
  .car-callout:nth-of-type(4) { left: auto; right: 16px; top: auto; bottom: 40px; }

  .about-story__copy { min-width: 0; padding: 24px; }
  .about-story > img { height: 300px; }
  .docs-panel { padding: 20px; }
  .docs-copy { padding: 24px; }
  .docs-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .doc-card, .doc-card--main { min-height: 260px; grid-row: auto; }
  .doc-card--main { grid-column: 1 / -1; min-height: 400px; }
  .gallery-tabs { display: flex; margin-bottom: 20px; }
  .tab { flex: 0 0 auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery figure:first-child { grid-row: auto; }

  .info-card { min-height: 150px; }
  .contact-cards .info-card { grid-row: auto; grid-column: auto; min-width: 0; }
  .info-card small { margin-bottom: 36px; }
  .route-card { min-height: 0; padding: 28px; }
  .route-links { margin-top: 28px; }
  .contact-form > div:first-child img { width: 220px; height: 110px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { font-size: 18px; }
  .footer-nav { gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; gap: 10px; }
  .footer-dev { margin-left: 0; }

  .modal { padding: 16px; }
  .modal__box { width: 100%; max-height: calc(100vh - 32px); padding: 22px; }
  .modal__head h2 { font-size: 28px; }
}

@media (max-width: 420px) {
  .title-xl { font-size: 32px; }
  .title-lg { font-size: 29px; }
  .home-hero__surface { height: 590px; }
  .parts-note p { width: 70%; }
  .docs-grid { grid-template-columns: 1fr; }
  .doc-card--main { grid-column: auto; min-height: 340px; }
}

.docs-gallery { min-width: 0; height: 100%; }
.docs-nav { display: none; }

/* Mobile fidelity pass: preserve the desktop design language without overflow. */
@media (max-width: 767px) {
  /* Breadcrumbs stay visible on every internal page. */
  .breadcrumbs--inside,
  .breadcrumbs--section { display: block; opacity: 1; }
  .page-hero--light .breadcrumbs--inside,
  .cars-hero .breadcrumbs--inside { color: #6f7278; }
  .breadcrumbs--section {
    position: relative;
    top: auto !important;
    left: auto;
    transform: none;
    padding: 0 0 20px;
    color: #6f7278;
    font-size: 11px;
  }

  /* The desktop checkbox is kept at its real size inside every mobile form. */
  .form .consent {
    width: 100%;
    min-height: 19px;
    margin: 0;
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    font-size: 10px;
    line-height: 1.25;
  }
  .form .consent input {
    box-sizing: border-box;
    flex: 0 0 19px;
    width: 19px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    appearance: none;
    background: #fff;
  }
  .form .consent input:checked {
    background: #fff url("../img/figma/consent-check.svg") center / 19px 18px no-repeat;
  }
  .form .consent input:checked::after { content: none; }
  .form-grid,
  .form-grid > *,
  .form .button.wide { width: 100%; min-width: 0; }

  /* Service previews use the same corner control as the desktop cards. */
  .services-catalog { grid-auto-rows: auto; gap: 16px; }
  .services-featured { gap: 16px; }
  .service-card,
  .services-catalog .service-card {
    height: 320px;
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  .service-card__arrow {
    left: -9px !important;
    bottom: -9px !important;
    width: 78px;
    height: 78px;
    transform: scaleX(-1) !important;
    transition: none;
  }
  .service-card:hover .service-card__arrow,
  .service-card:active .service-card__arrow,
  .service-card:focus-visible .service-card__arrow,
  .service-card__arrow:hover,
  .service-card__arrow:focus-visible {
    left: -9px !important;
    bottom: -9px !important;
    transform: scaleX(-1) !important;
  }

  .service-card:active,
  .services-catalog .service-card:active { transform: none !important; }

  .modal__head { gap: 12px; }
  .modal__head h2 { min-width: 0; }
  .modal__close { position: static; flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; }

  /* Parts heading and list. */
  .parts-head {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .parts-head .title-lg,
  .parts-head .lead,
  .parts-head .muted { width: 100%; margin: 0; }
  body[data-page="home"] main > section:nth-child(5) .parts-layout,
  body[data-page="parts"] main > section:nth-child(2) .parts-layout { margin-top: 26px !important; }
  .parts-list { gap: 14px; }
  .part-card { min-height: 80px; padding: 18px 20px; }

  /* Identical orange 40-minute cards across the site. */
  .parts-note {
    height: 360px;
    padding: 28px;
    overflow: hidden;
  }
  .parts-note > div { position: static; width: auto; }
  .parts-note strong {
    left: 28px;
    top: 28px;
    width: calc(100% - 56px);
    font-size: 30px;
    line-height: 1.08;
  }
  .parts-note p {
    left: 28px;
    top: 118px;
    width: 48%;
    gap: 16px;
    line-height: 1.2;
  }
  .parts-note img {
    left: auto;
    right: -77px;
    top: 88px;
    bottom: auto;
    width: 230px;
    height: 240px;
    object-fit: contain;
  }
  .parts-note .button {
    left: 28px;
    right: 28px;
    top: auto;
    bottom: 28px;
    width: calc(100% - 56px);
    height: 54px;
    padding-inline: 14px;
    justify-content: center;
    text-align: center;
  }

  /* All black form panels share the same inner rhythm and field width. */
  .promo-grid { padding: 24px !important; gap: 16px; }
  .promo-copy { gap: 16px; }
  .promo-copy > .title-lg,
  .promo-copy > .title-xl,
  .promo-copy > .lead,
  .promo-copy > .promo-disclaimer { margin: 0; }
  .promo-copy > .title-xl { margin-top: -6px; }
  .promo-copy .form { width: 100%; margin-top: 6px !important; gap: 12px; }
  .promo-copy .form-grid { gap: 12px; }
  .promo-copy .form .button { margin: 0; }
  .promo-media { height: 300px !important; min-height: 300px; margin-top: 0; }
  .promo-media img { min-height: 0; object-position: center; }
  body[data-page="services"] .promo-media img,
  body[data-page="diagnostics"] .promo-media img,
  body[data-page="about"] .promo-media img { object-position: center 35%; }

  .callback,
  .callback--dark-inline,
  .contact-form,
  .form-band { padding: 24px; gap: 20px; }
  .callback > div:first-child,
  .form-band > div:first-child { padding: 0; }
  .callback .form,
  .form-band .form,
  .callback--dark-inline .form { width: 100%; padding: 0; }
  .callback:not(.callback--dark-inline) .form { padding: 20px; }
  .form-band .form { padding: 0; background: transparent; }
  .callback .title-lg,
  .form-band .title-lg { margin: 0; }
  .callback .form-grid,
  .form-band .form-grid { gap: 12px; }

  /* Compact light heroes: copy first, image immediately below it. */
  .page-hero--light .page-hero__surface {
    min-height: 0;
    padding: 62px 20px 20px;
    gap: 14px;
  }
  .page-hero--light .page-hero__copy { padding: 24px; gap: 20px; }
  .page-hero--light .hero-object,
  .page-hero--light .diagnostic-hero-object,
  .parts-hero .hero-object {
    height: 230px !important;
    min-height: 0;
    margin: 0;
    object-fit: contain;
    object-position: center;
  }
  .parts-hero .page-hero__copy .button { justify-content: center; text-align: center; }

  /* Services orange information block. */
  .service-seo { padding-top: 0; }
  .service-seo__inner {
    min-height: 0;
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-seo__inner .lead { margin-top: 18px; }
  .service-seo__inner img {
    width: min(230px, 100%);
    height: 120px;
    margin-top: 4px;
    justify-self: center;
    align-self: end;
  }

  /* Parts SEO and pickup cards keep equal inner padding. */
  .parts-seo {
    height: auto;
    min-height: 0;
    padding: 24px !important;
    gap: 20px;
  }
  .parts-seo > div { gap: 20px; }
  .parts-seo .lead { font-size: 16px; }
  .parts-seo > img { height: 250px; object-fit: contain; }
  .pickup-copy { padding: 24px; }

  /* Mobile document gallery with side arrows. */
  .docs-panel { padding: 20px; gap: 20px; }
  .docs-gallery { position: relative; width: 100%; height: 390px; }
  .docs-grid { display: block; width: 100%; height: 100%; }
  .docs-grid .doc-card {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .docs-grid .doc-card.is-doc-active { display: block; }
  .docs-nav {
    position: absolute;
    z-index: 4;
    left: -10px;
    right: -10px;
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .docs-nav button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ink);
    font-size: 20px;
    pointer-events: auto;
  }

  /* Cars: natural media ratio, visible card plaque and callouts over the car. */
  .cars-hero .page-hero__surface > img {
    width: 100%;
    height: 280px !important;
    min-height: 0 !important;
    max-height: 280px;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    object-position: center !important;
  }
  .cars-hero .page-hero__surface::after { display: none !important; }
  .car-card { padding: 12px; background: var(--soft); }
  .car-card > img { height: 220px; border-radius: 8px 8px 0 0; }
  .car-card__body {
    display: block;
    margin: 0;
    padding: 16px;
    border-radius: 0 0 8px 8px;
    background: #fff;
  }
  .car-card__body h3 { margin: 0 0 18px; }
  .car-seo {
    height: 510px;
    min-height: 510px;
    padding: 24px;
  }
  .car-seo__head { gap: 16px; }
  .car-seo__media {
    left: 24px;
    right: 24px;
    top: 190px;
    bottom: auto;
    width: auto;
    height: 275px;
    margin: 0;
  }
  .car-seo__media img { width: 100%; height: 100%; object-fit: contain; }
  .car-callout { max-width: 150px; }
  .car-callout:nth-of-type(2) { left: auto; right: 16px; top: 188px; bottom: auto; }
  .car-callout:nth-of-type(3) { left: 16px; right: auto; top: 345px; bottom: auto; }
  .car-callout:nth-of-type(4) { left: auto; right: 16px; top: 386px; bottom: auto; }
  .car-callout:nth-of-type(5) {
    left: 50%;
    right: auto;
    top: 438px;
    bottom: auto;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 1180px) and (max-width: 1579px) {
  .parts-seo { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .parts-seo > img { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll,
  .reveal-on-scroll.is-revealed,
  .modal.is-open,
  .modal.is-open .modal__box {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .car-callout { opacity: 1 !important; transform: none !important; }
  .fact:nth-child(even) { transform: translateY(66px); }
}

/* Keep interactive controls stable on tablet and compact-desktop widths. */
@media (min-width: 768px) and (max-width: 1579px) {
  .service-card,
  .service-card:hover,
  .service-card:active,
  .service-card:focus-visible,
  .services-catalog .service-card,
  .services-catalog .service-card:hover,
  .services-catalog .service-card:active,
  .services-catalog .service-card:focus-visible {
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .service-card__arrow,
  .service-card:hover .service-card__arrow,
  .service-card:active .service-card__arrow,
  .service-card:focus-visible .service-card__arrow,
  .service-card__arrow:hover,
  .service-card__arrow:active,
  .service-card__arrow:focus-visible {
    left: 20px !important;
    bottom: 20px !important;
    width: 54px;
    height: 54px;
    transform: scaleX(-1) !important;
  }

  .form .consent {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
  }

  .form .consent input {
    box-sizing: border-box;
    flex: 0 0 19px !important;
    width: 19px !important;
    min-width: 19px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background: #fff;
  }

  .form .consent input:checked {
    background: #fff url("../img/figma/consent-check.svg") center / 19px 18px no-repeat;
  }

  .form .consent input:checked::after { content: none; }
}
