:root {
  --ink: #0b1117;
  --muted: #5e6a73;
  --line: #d8dee3;
  --surface: #f3f5f6;
  --surface-blue: #e9f0f5;
  --white: #fff;
  --blue: #1f4e69;
  --blue-dark: #14384e;
  --accent: #c87043;
  --success: #2c6c55;
  --shadow: 0 18px 50px rgb(11 17 23 / 10%);
  --radius: 4px;
  --container: min(1240px, calc(100vw - 40px));

  /* Фирменные шрифты Volvo. @font-face объявлены в parity.css, который тема
   * грузит глобально. До этого Volvo Novum применялся только к .original-header
   * и .legacy-page, а всё остальное падало на Inter/Georgia — отсюда расхождение
   * с оригиналом volvom1.ru. Оригинал: body/футер — Light, заголовки — Regular. */
  --font-body: 'Volvo Novum Light', Arial, sans-serif;
  --font-heading: 'Volvo Novum Regular', Arial, sans-serif;
  --font-medium: 'Volvo Novum Medium', Arial, sans-serif;
  --font-bold: 'Volvo Novum Bold', Arial, sans-serif;

  /* Bootstrap-компоненты берут семейство отсюда, иначе они остаются
   * на системном стеке и снова расходятся с оригиналом. */
  --bs-body-font-family: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Оригинал: html,body {font-size:14px; line-height:1.5} (common.css:167).
 * Без явного размера в силе оставался бутстраповский --bs-body-font-size 16px,
 * и весь текст шёл на 14% крупнее оригинала. Размер задаётся на body, а не на
 * html: компоненты темы свёрстаны в rem от корня 16px, и их шкалу не трогаем. */
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
/* Fallback для браузера без родной поддержки <dialog>: без него окно подбора и "Получить предложение" были бы видны сразу. */ dialog:not([open]) { display: none; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #61a5d2; outline-offset: 3px; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--surface); }
.section--dark { color: var(--white); background: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-heading h1, .section-heading h2 { max-width: 760px; margin: 0; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 400; line-height: 1.08; }
/* Оригинал держит h1 разделов на 30px/38px (common.css:349): в каталоге,
 * акциях и новостях там голый <h1> без класса. Правило .section-heading выше
 * давало clamp до 3.75rem — на окне 1440 это 57.6px, почти вдвое больше. */
.section-heading h1 { font-size: 30px; line-height: 38px; }
.section-heading p { max-width: 510px; margin: 0; color: var(--muted); }
.section--dark .section-heading p { color: #b7c1c8; }
.eyebrow { margin-bottom: 10px; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section--dark .eyebrow { color: #9fc5dc; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); background: var(--white); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-top { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-volvo { font-family: var(--font-heading); font-size: 1.35rem; letter-spacing: .23em; }
.brand-m1 { padding: 3px 7px; color: var(--white); background: var(--blue); font-size: .85rem; font-weight: 800; letter-spacing: .08em; }
.header-contact { display: grid; grid-template-columns: minmax(250px, 1fr) auto; align-items: center; column-gap: 24px; margin-left: auto; font-size: .85rem; }
.header-address { color: var(--muted); }
.header-phone { font-size: 1.08rem; font-weight: 700; }
.header-hours { grid-column: 2; color: var(--muted); font-size: .75rem; text-align: right; }
.main-nav { color: var(--white); background: var(--ink); }
.main-nav-inner { min-height: 50px; display: flex; align-items: stretch; }
/* Селектор был глобальным и попадал во ВСЕ меню Drupal, включая
 * административные вкладки. Ограничен собственной шапкой темы. */
.site-header .nav-link, .site-header .nav-callback { display: flex; align-items: center; padding: 0 19px; border: 0; color: inherit; background: transparent; font-size: .84rem; cursor: pointer; }
.site-header .nav-link:first-child { padding-left: 0; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #c8e4f4; }
.site-header .nav-callback { margin-left: auto; border-left: 1px solid rgb(255 255 255 / 18%); font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span:not(.visually-hidden) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.breadcrumbs { padding-top: 24px; padding-bottom: 16px; font-size: .78rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
/* Оригинал разделяет крошки дефисом, а не слэшем. */
.breadcrumbs li:not(:last-child)::after { margin-left: 7px; content: '-'; color: #a4adb4; }
.breadcrumbs a:hover { color: var(--blue); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px; font-size: .85rem; font-weight: 700; letter-spacing: .025em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.button--primary { color: var(--white); background: var(--blue); }
.button--primary:hover { background: var(--blue-dark); }
.button--secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
.button--secondary:hover { color: var(--white); background: var(--ink); }
.button--light { color: var(--ink); background: var(--white); }
.button--ghost-light { color: var(--white); border-color: rgb(255 255 255 / 60%); background: transparent; }
.button--wide { width: 100%; }
.button--small { min-height: 38px; padding: 7px 15px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--blue); font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vehicle-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vehicle-card-media { position: relative; min-height: 245px; display: grid; place-items: center; padding: 22px; background: #f7f8f8; }
.vehicle-card-media img { width: 100%; height: 220px; object-fit: contain; }
.vehicle-card-media:has(> img[data-vehicle-placeholder]) { padding: 0; }
.vehicle-card-media > img[data-vehicle-placeholder] { height: 245px; }
img[data-vehicle-placeholder] { padding: 0 !important; object-fit: contain !important; }
img[data-vehicle-placeholder='model'] { background: #f4f3f0 !important; }
img[data-vehicle-placeholder='generic'] { background: #0e1319 !important; }
.status-chip { position: absolute; top: 14px; left: 14px; padding: 6px 9px; color: var(--white); background: var(--success); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.status-chip--reserved { background: #876426; }
.status-chip--sold { background: #777; }
.vehicle-card-body { padding: 22px; }
.vehicle-card-kicker { color: var(--muted); font-size: .76rem; }
.vehicle-card-title { margin: 5px 0 0; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 400; }
.vehicle-card-title a:hover { color: var(--blue); }
.vehicle-card-trim { min-height: 24px; color: var(--muted); }
.vehicle-card-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 15px 0; margin: 15px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: .78rem; list-style: none; }
.price-label { color: var(--muted); font-size: .75rem; }
.price-current { margin-top: 2px; font-family: var(--font-heading); font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.15; }
.price-base { display: flex; gap: 8px; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.price-note { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.price-conditions { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.price-conditions summary { color: var(--blue); font-size: .82rem; font-weight: 700; cursor: pointer; }
.price-conditions ul { padding-left: 20px; color: var(--muted); font-size: .78rem; }
.price-block--compact .price-current { font-size: 1.65rem; }
.vehicle-card-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.compare-button { min-height: 46px; padding: 8px 10px; border: 0; color: var(--blue); background: transparent; font-size: .78rem; font-weight: 700; cursor: pointer; }
.compare-button.is-active { color: var(--success); }

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.model-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.model-card-image { min-height: 330px; display: grid; place-items: center; background: var(--surface); }
.model-card-image img { width: 100%; height: 330px; object-fit: contain; transition: transform .4s; }
.model-card:hover .model-card-image img { transform: scale(1.025); }
.model-card-body { padding: 28px; }
.model-card h2 { margin: 0; font-family: var(--font-heading); font-size: 2.15rem; font-weight: 400; }
.model-card p { margin: 6px 0 20px; color: var(--muted); }
.model-card-meta { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; margin-bottom: 18px; border-block: 1px solid var(--line); font-size: .82rem; }

.option-block { min-width: 0; }
.trim-summary { margin-bottom: 16px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: #11151a; }
.trim-summary small { display: block; color: #7f858a; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.trim-summary b { margin-top: 5px; display: block; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 400; }
.trim-summary > span { flex: none; padding: 7px 12px; color: #aeb5ba; border: 1px solid #3a4248; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.option-empty { padding: 28px 24px; border: 1px solid var(--line); background: var(--surface); }
.option-empty h3 { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; }
.option-empty p { margin: 8px 0 0; max-width: 52ch; color: var(--muted); font-size: .88rem; }
.option-groups { display: grid; gap: 22px; }
.option-group-heading { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.option-group-heading h3 { margin: 0; font-size: .95rem; font-weight: 650; }
.option-group-heading span { min-width: 26px; height: 26px; display: grid; place-items: center; color: #727570; background: #e2dfd8; border-radius: 50%; font-size: .7rem; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #d5d2cc; border: 1px solid #d5d2cc; }
.option-grid span { min-height: 54px; padding: 15px 16px; display: flex; align-items: center; gap: 10px; background: #f7f5f0; font-size: .82rem; }
.option-grid i { color: #258166; font-style: normal; font-weight: 700; }

.cms-rich-content { width: min(100%, 900px); min-width: 0; }
.cms-rich-content > h2, .cms-rich-content__body > h2, .cms-rich-content__body > h3, .cms-rich-content__body > h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.18; }
.cms-rich-content > h2, .cms-rich-content__body > h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cms-rich-content__body > h3 { margin: 32px 0 14px; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.cms-rich-content__body > h4 { margin: 26px 0 12px; font-size: 1.25rem; }
.cms-rich-content p, .cms-rich-content li { color: var(--muted); }
.cms-rich-content p { margin: 0 0 1.15em; }
.cms-rich-content ul, .cms-rich-content ol { display: grid; gap: .55rem; padding-left: 1.4rem; margin: 0 0 1.5rem; }
.cms-rich-content blockquote { padding: 6px 0 6px 22px; margin: 24px 0; border-left: 3px solid var(--blue); color: var(--muted); font: 400 1.2rem/1.5 var(--font-heading); }
.cms-rich-content a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cms-rich-content img { width: auto; height: auto; max-height: 680px; margin: 28px auto; object-fit: contain; }
.cms-rich-content figure { margin: 28px 0; }
.cms-rich-content figcaption { margin-top: 8px; color: var(--muted); font-size: .78rem; text-align: center; }
.cms-rich-content pre, .cms-rich-content code { font-family: Consolas, "Courier New", monospace; }
.cms-rich-content pre { max-width: 100%; padding: 18px; overflow-x: auto; background: var(--ink); color: var(--white); }
.cms-rich-content :not(pre) > code { padding: .12em .35em; background: rgb(31 78 105 / 10%); }
.cms-rich-content table { width: 100%; min-width: 560px; border-collapse: collapse; }
.cms-rich-content__body:has(> table) { overflow-x: auto; }
.cms-rich-content th, .cms-rich-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cms-rich-content th { background: var(--surface-blue); font-size: .82rem; }
.cms-rich-content td { color: var(--muted); font-size: .88rem; }
.cms-rich-content hr { margin: 35px 0; border: 0; border-top: 1px solid var(--line); }

.lead-dialog { width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 100px rgb(0 0 0 / 30%); }
.lead-dialog::backdrop { background: rgb(4 9 13 / 72%); backdrop-filter: blur(4px); }
.lead-dialog-panel { position: relative; padding: clamp(26px, 5vw, 46px); }
.lead-dialog h2 { margin: 0; font-family: var(--font-heading); font-size: 2.35rem; font-weight: 400; line-height: 1.1; }
.lead-intro { margin: 10px 0 24px; color: var(--muted); }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 42px; height: 42px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.field { display: grid; gap: 6px; margin-bottom: 15px; font-size: .82rem; font-weight: 700; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: 12px 13px; color: var(--ink); background: var(--white); font-weight: 400; }
.field textarea { resize: vertical; }
.consent-field { display: flex; gap: 10px; margin: 18px 0; color: var(--muted); font-size: .75rem; }
.consent-field input { margin-top: 3px; }
.consent-field a { color: var(--blue); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; }
.form-status { min-height: 24px; margin-top: 12px; color: var(--success); font-size: .82rem; text-align: center; }
.compare-dock { position: fixed; z-index: 45; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.compare-dock[hidden] { display: none; }
.compare-dock__summary { white-space: nowrap; }
.compare-dock__clear { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; color: var(--white); background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.compare-dock__clear:hover { border-color: var(--white); background: rgb(255 255 255 / 12%); }

@media (max-width: 767px) {
  /* Оригинал: 12px/14px на узких экранах (common.css:3117). */
  body { font-size: 12px; line-height: 14px; }
  body.configurator-page .compare-dock { bottom: calc(102px + env(safe-area-inset-bottom)); }
}

/* Оригинал держит в подвале единый белый текст 14px/21px; три оттенка серого
 * и уменьшенные кегли пришли из редизайна, а не из volvom1.ru. */
.site-footer { padding-top: 60px; color: var(--white); background: var(--ink); font-size: 14px; line-height: 21px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 50px; }
.brand--footer { color: var(--white); }
.footer-grid p { max-width: 300px; color: var(--white); font-size: 14px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: start; gap: 10px; font-size: 14px; }
.footer-heading { margin: 0 0 9px; color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 24px 0; margin-top: 50px; border-top: 1px solid rgb(255 255 255 / 12%); color: var(--white); font-size: 14px; }

@media (max-width: 980px) {
  :root { --container: min(100% - 32px, 760px); }
  .header-contact { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav-inner { display: block; padding: 10px 16px 18px; }
  .nav-link, .nav-callback { width: 100%; min-height: 48px; padding: 0 8px; border: 0; border-bottom: 1px solid rgb(255 255 255 / 10%); text-align: left; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 24px); }
  .section { padding: 58px 0; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading p { margin-top: 12px; }
  .header-top { min-height: 68px; }
  .vehicle-grid, .model-grid { grid-template-columns: 1fr; }
  .vehicle-card-media { min-height: 220px; }
  .vehicle-card-media img { height: 190px; }
  .vehicle-card-media > img[data-vehicle-placeholder] { height: 220px; }
  .model-card-image, .model-card-image img { min-height: 240px; height: 240px; }
  .option-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { display: grid; }
  .compare-dock { right: 12px; bottom: 12px; left: 12px; gap: 8px; justify-content: space-between; padding: 9px 9px 9px 12px; }
  .compare-dock__summary { min-width: 0; font-size: .75rem; white-space: normal; }
  .compare-dock .button--small { min-height: 38px; padding-inline: 11px; }
  .lead-dialog-panel { padding: 38px 20px 24px; }
  .cms-rich-content__body { font-size: .94rem; }
  .cms-rich-content img { margin: 20px auto; }
  .cms-rich-content table { min-width: 500px; }
  .cms-rich-content th, .cms-rich-content td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
}


/* Drupal-only rendering states that have no Astro component equivalent. */
.empty-state { padding: 60px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.compare-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.messages-list { width: var(--container); margin: 20px auto; }

@media (max-width: 980px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .empty-state { padding: 40px 20px; }
  .compare-grid { grid-template-columns: 1fr; }
}
