/* Nunito Sans (SIL OFL 1.1, public/assets/fonts/OFL.txt) — переменный шрифт, свои файлы вместо Google Fonts. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/*
 * Стили сайта wheelatlas.cc, дизайн «Тепло»: сливочный фон, коралловый акцент, мягкие крупные карточки.
 * Сначала токены и каркас (раскладка, адаптивность, компоненты), в конце — детали оформления.
 */
:root {
  --bg: #fbf6f0;
  --surface: #fff;
  --surface-2: #f5ece2;
  --ink: #2a211d;
  --ink-2: #4b3e37;
  --muted: #74645b;
  --line: #eadfd3;
  --accent: #c8432b;
  --accent-ink: #fff;
  --accent-soft: #fde6dd;
  --accent-text: #b33a20;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px rgba(110, 60, 30, .10);
  --font: "Nunito Sans", system-ui, "Segoe UI", sans-serif;
  --font-head: var(--font);
  --font-num: var(--font);
  --header-bg: rgba(251, 246, 240, .94);
  --caution-bg: #fff1d6;
  --caution-ink: #6b4a10;
  --wrap: 1200px;
  --header-h: 70px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }
.icon { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* --- Шапка --- */
.header { position: sticky; top: 0; z-index: 40; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.brand-mark .icon { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current] { color: var(--accent-text); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tool { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); }
.tool:hover { background: var(--surface-2); color: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-inner { position: relative; }
}

/* --- Язык --- */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); border-color: var(--muted); }
.lang summary .icon { width: 18px; height: 18px; }
.lang summary .icon-chevron { width: 14px; height: 14px; transition: transform .15s; }
.lang[open] summary .icon-chevron { transform: rotate(180deg); }
.lang-code { display: none; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 50; display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); max-height: min(70vh, 560px); overflow: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lang-menu a { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
@media (max-width: 719px) {
  .lang-current { display: none; }
  .lang-code { display: inline; }
  .lang-menu { position: fixed; inset-inline: var(--gutter); top: calc(var(--header-h) + 6px); width: auto; grid-template-columns: repeat(2, 1fr); }
}

/* --- Общие элементы страниц --- */
main { display: block; min-height: 60vh; }
.page { padding-block: 20px 56px; }
.page-narrow { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; }
.page-head .lead { margin-top: 8px; }
.page-head-logo { display: flex; align-items: center; gap: 18px; }
.eyebrow { margin-bottom: 8px; color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.note { color: var(--muted); font-size: 14px; max-width: 80ch; }
.empty { padding: 24px 0; color: var(--muted); }
.subhead { margin: 32px 0 14px; font-size: 20px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; }
.more .icon { width: 18px; height: 18px; }
.more:hover { text-decoration: underline; }
.panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 6px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.logo img { max-height: 100%; object-fit: contain; }
.logo-lg { width: 72px; height: 72px; padding: 10px; }
.thumb { display: block; flex: none; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-wide { aspect-ratio: 16 / 10; }

/* --- Поиск --- */
.search { position: relative; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 6px; padding-inline-start: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box > .icon { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; font-size: 16px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.search-box button .icon { display: none; }
.search-lg .search-box { padding: 8px; padding-inline-start: 16px; }
.search-lg .search-box input, .search-lg .search-box button { height: 48px; }
.search-lg .search-box input { font-size: 17px; }
@media (max-width: 519px) {
  .search-box button span { display: none; }
  .search-box button .icon { display: block; }
  .search-box button { padding: 0 12px; }
}
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30; max-height: 420px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); }
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--accent-soft); }
.suggest-thumb { flex: none; width: 56px; height: 38px; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-text strong { font-weight: 600; }
.suggest-text small { color: var(--muted); font-size: 13px; }

.pcd-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field select, .field input { height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; color: var(--ink); }
.field select:focus, .field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.pcd-form button { height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 599px) { .pcd-form { grid-template-columns: 1fr 1fr; } .pcd-form button { grid-column: 1 / -1; } }

/* --- Главная --- */
.hero { padding-block: 32px 24px; }
.hero-inner { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); letter-spacing: -.03em; }
.hero .lead { margin-top: 14px; font-size: 18px; }
.finder { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.finder-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.finder-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.finder-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); }
.finder-tabs .icon { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.stat { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-family: var(--font-num); font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 519px) { .stat { padding: 12px; } .stat span { font-size: 12px; } }
.section { padding-block: 32px; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; }
.section-lead { margin: -8px 0 18px; color: var(--ink-2); }
.make-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.make-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-weight: 600; transition: border-color .15s, transform .15s; }
.make-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.make-card .logo { width: 64px; height: 64px; border: 0; }
@media (max-width: 519px) { .make-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .make-card { padding: 12px 6px 10px; font-size: 14px; } .make-card .logo { width: 48px; height: 48px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-num); font-weight: 600; }
.chip small { color: var(--muted); font-family: var(--font); font-weight: 500; font-size: 12px; }
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip[aria-current] small { color: inherit; opacity: .8; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card strong { font-size: 17px; }
.guide-card span { color: var(--muted); font-size: 14px; }
.guide-card:hover { border-color: var(--accent); }

/* --- Марки и модели --- */
.filter-bar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 10px var(--gutter); background: var(--bg); }
.filter { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; height: 44px; padding: 0 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.filter:focus-within { border-color: var(--accent); }
.filter .icon { color: var(--muted); }
.filter input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.letters { display: flex; flex-wrap: wrap; gap: 2px; }
.letters a { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.letters a:hover { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 719px) { .letters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } }
.letter-group { margin-bottom: 26px; }
.letter { margin-bottom: 10px; font-size: 22px; color: var(--accent-text); }
.make-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.make-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.make-row:hover { border-color: var(--accent); }
.make-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.make-row-text small { color: var(--muted); font-size: 13px; }
.make-row > .icon { color: var(--muted); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.model-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.model-card:hover { border-color: var(--accent); }
.model-card .thumb { border-radius: 0; aspect-ratio: 16 / 10; }
.model-card-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.model-card-text strong { font-size: 17px; }
.model-card-text small { color: var(--muted); font-size: 13px; }
@media (max-width: 519px) { .model-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .model-card-text { padding: 10px; } .model-card-text strong { font-size: 15px; } }
.generation-list { display: grid; gap: 12px; }
.generation-card { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: center; padding: 12px; padding-inline-end: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.generation-card:hover { border-color: var(--accent); }
.generation-card > .icon { color: var(--muted); }
.generation-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.generation-years { font-family: var(--font-num); font-size: 22px; }
.generation-code { color: var(--muted); font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.fact { display: inline-flex; align-items: baseline; gap: 6px; }
.fact small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.fact b { font-family: var(--font-num); font-weight: 600; }
@media (max-width: 599px) {
  .generation-card { grid-template-columns: 120px 1fr; gap: 12px; padding: 10px; }
  .generation-card > .icon { display: none; }
  .generation-years { font-size: 18px; }
  .facts { gap: 2px 12px; }
}

/* --- Поколение --- */
.vehicle { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .vehicle { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; } }
.vehicle-photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.vehicle-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vehicle-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: 18px; }
.vehicle-head .eyebrow { flex-basis: 100%; margin: 0; }
.vehicle-head h1 { flex: 1 1 auto; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; }
.vehicle-years { color: var(--muted); font-weight: 500; white-space: nowrap; }
.link-change { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.link-change:hover { border-color: var(--accent); color: var(--accent-text); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.spec { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.spec-value { font-family: var(--font-num); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.spec-hint { color: var(--muted); font-size: 12px; }
.spec-main .spec-value { font-size: clamp(30px, 4vw, 40px); }
.table-specs { width: 100%; }
.table-specs th[scope="row"] { color: var(--muted); font-weight: 500; text-align: start; white-space: nowrap; }
.table-specs td strong { font-family: var(--font-num); font-size: 20px; }
.table-specs td small { color: var(--muted); }
.caution { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--caution-bg, #fff6e0); color: var(--caution-ink, #5a4300); font-size: 14px; }
.vehicle-details { display: grid; gap: 14px; margin-top: 32px; }
.block { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.block h2 { margin-bottom: 12px; font-size: 22px; }
.block .note { margin: -4px 0 14px; }
.block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.block-head h2 { margin-bottom: 6px; }
.block-head .note { margin: 0; }
@media (max-width: 599px) { .block { padding: 16px; } }
.axle-title { margin: 12px 0 8px; font-size: 15px; color: var(--muted); }
.tyre-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tyre-list li { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-family: var(--font-num); font-weight: 600; font-size: 17px; }
.variant-list { display: grid; gap: 8px; counter-reset: v; }
.variant { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 15px; }
.variant-part { position: relative; }
.variant-part + .variant-part::before { content: "·"; position: absolute; inset-inline-start: -10px; color: var(--muted); }
.variant .size { font-family: var(--font-num); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -4px; padding-inline: 4px; }
.table { width: 100%; font-size: 15px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table thead th { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: var(--surface-2); }
.table td small { display: block; color: var(--muted); font-size: 13px; }
.table .num { text-align: end; white-space: nowrap; }
.table a { color: var(--accent-text); font-weight: 500; }
.table a:hover { text-decoration: underline; }
.table .size { font-family: var(--font-num); font-weight: 600; }
@media (max-width: 719px) {
  .table-pressure thead { display: none; }
  .table-pressure, .table-pressure tbody, .table-pressure tr, .table-pressure td { display: block; width: 100%; }
  .table-pressure tr { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .table-pressure td { padding: 0; border: 0; text-align: start; }
  .table-pressure td:nth-child(-n+3) { grid-column: 1 / -1; }
  .table-pressure td.num::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
}
.count-badge { display: flex; flex-direction: column; align-items: center; flex: none; min-width: 84px; padding: 10px 12px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); text-align: center; }
.count-badge strong { font-family: var(--font-num); font-size: 28px; line-height: 1; }
.count-badge span { font-size: 12px; opacity: .9; }
.same-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; margin-bottom: 14px; }
.same-list a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.same-list a:hover .same-name { color: var(--accent-text); }
.same-name { font-weight: 600; }
.same-years { grid-row: 2; color: var(--muted); font-size: 14px; }
.same-et { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: var(--font-num); font-weight: 600; color: var(--ink-2); }
.sibling-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sibling-list a { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.sibling-list a:hover { border-color: var(--accent); }
.sibling-list a[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sibling-list .thumb { aspect-ratio: 16 / 10; }
.sibling-list strong { display: block; font-family: var(--font-num); }
.sibling-list small { display: block; color: var(--muted); font-size: 13px; }

/* --- Разболтовки --- */
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pattern-card { display: flex; flex-direction: column; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pattern-card strong { font-family: var(--font-num); font-size: 19px; }
.pattern-card small { color: var(--muted); font-size: 13px; }
.pattern-card:hover { border-color: var(--accent); }
.table-cars { background: var(--surface); }

/* --- Поиск, статьи, ошибка --- */
.result-list { display: grid; gap: 8px; margin-top: 20px; }
.result-list a { display: flex; align-items: center; gap: 14px; padding: 8px; padding-inline-end: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.result-list a:hover { border-color: var(--accent); }
.result-list .thumb { width: 96px; aspect-ratio: 3 / 2; }
.result-list a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.result-list small { color: var(--muted); }
.result-list a > .icon { color: var(--muted); }
.article-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.article { max-width: 760px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: 24px; }
.prose ul { padding-inline-start: 1.3em; list-style: disc; }
.prose li + li { margin-top: .3em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.article-aside h2 { margin-bottom: 10px; font-size: 16px; color: var(--muted); }
.article-aside nav { display: grid; gap: 2px; }
.article-aside a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-2); }
.article-aside a:hover { background: var(--surface-2); }
.article-aside a[aria-current] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.error-page { text-align: center; padding-top: 64px; }
.error-page .error-code { font-family: var(--font-num); font-size: 96px; line-height: 1; color: var(--accent-text); }
.error-page h1 { margin: 12px 0 28px; }
.error-page .search { text-align: start; margin-bottom: 20px; }

/* --- Подвал --- */
.footer { margin-top: 40px; padding-block: 28px; border-top: 1px solid var(--line); background: var(--footer-bg, transparent); color: var(--ink-2); font-size: 14px; }
.footer-inner { display: grid; gap: 18px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; } }
.footer-about strong { color: var(--ink); }
.footer-about p { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a:hover { color: var(--accent-text); }

/* Узкие телефоны: шапка помещается в 360–390 px */
@media (max-width: 479px) {
  .header-inner { gap: 8px; }
  .header-tools { gap: 2px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .tool { width: 36px; height: 36px; }
  .lang summary { height: 36px; padding: 0 8px; gap: 4px; }
  .lang summary .icon-chevron { display: none; }
}
@media (max-width: 359px) { .brand-name { display: none; } }
/* Колонки сетки сжимаются, а не распирают страницу на телефоне. */
@media (max-width: 959px) { .vehicle, .article-layout { grid-template-columns: minmax(0, 1fr); } }
.vehicle > *, .article-layout > * { min-width: 0; }
.nav-search { display: none; }
@media (max-width: 479px) {
  .nav.is-open .nav-search { display: block; }
  .search-link { display: none; }
}
.pcd-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.field select, .field input { width: 100%; min-width: 0; }
@media (max-width: 599px) { .pcd-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 599px) {
  .table-specs th[scope="row"] { white-space: normal; width: 34%; font-size: 13px; }
  .table-specs td small { display: none; }
  .table-specs th, .table-specs td { padding: 10px 8px; }
}
.same-group + .same-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.same-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.same-group-head h3 { font-size: 17px; margin-bottom: 4px; }
.same-group .more { margin-top: 4px; }

/* ===== Оформление ===== */
body { font-size: 16.5px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; }
.header { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line); }
.brand-mark { border-radius: 50%; background: var(--accent); }
.nav a { font-weight: 700; border-radius: 999px; }
.nav a[aria-current] { background: var(--accent-soft); color: var(--accent-text); }
.lang summary, .link-change, .search-box button, .pcd-form button { border-radius: 999px; }
.search-box { border-radius: 999px; border-width: 2px; padding-inline-start: 20px; }
.search-box button { padding: 0 22px; font-weight: 800; }
.field select, .field input { border-radius: 14px; border-width: 2px; }
.logo { border: 0; background: #fff; }
.chip { border-width: 2px; font-weight: 700; }
.chip-more { background: var(--ink); border-color: var(--ink); color: #fff; font-family: var(--font); }
.chip-more:hover { color: #fff; opacity: .9; }

/* Главная */
.welcome { padding-block: 28px 8px; }
.welcome-card { padding: clamp(24px, 5vw, 56px); border-radius: 32px; background: linear-gradient(135deg, #ffe3d3 0%, #ffd0bd 45%, #ffc8a8 100%); text-align: center; }
.welcome-card h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.05; max-width: 16ch; margin-inline: auto; }
.welcome-card .lead { margin: 14px auto 26px; color: #5a3d30; }
.welcome-card .finder { max-width: 720px; margin-inline: auto; text-align: start; border: 0; box-shadow: var(--shadow); border-radius: 26px; }
.finder-tabs button { border-radius: 999px; font-weight: 700; }
.welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 22px; color: #5a3d30; font-size: 15px; }
.welcome-stats b { font-size: 20px; color: var(--ink); }
.make-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.make-card { padding: 22px 12px 18px; border: 0; box-shadow: 0 2px 0 var(--line); font-size: 17px; font-weight: 800; }
.make-card small { color: var(--muted); font-weight: 600; font-size: 13px; margin-top: -6px; }
.make-card .logo { width: 72px; height: 72px; }
.make-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
@media (max-width: 519px) { .make-grid { grid-template-columns: repeat(2, 1fr); } .make-card .logo { width: 56px; height: 56px; } }
.pcd-band { display: grid; gap: 18px; padding-block: 28px; background: var(--surface); border-radius: 28px; }
.pcd-band > div:first-child p { color: var(--ink-2); margin-top: 8px; max-width: 46ch; }
@media (min-width: 900px) { .pcd-band { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 36px 40px; } }
.guide-card { border: 0; padding: 22px; }
.guide-card strong { font-size: 18px; font-weight: 800; }
.guide-card span { color: var(--ink-2); }
.tone-0 { background: #fde6dd; } .tone-1 { background: #e5efe9; } .tone-2 { background: #e6ebf7; } .tone-3 { background: #f6ebd8; }

/* Списки */
.make-row, .model-card, .generation-card, .pattern-card, .result-list a, .block, .spec, .panel, .sibling-list a { border-color: transparent; box-shadow: 0 2px 0 var(--line); }
.make-row:hover, .model-card:hover, .generation-card:hover, .pattern-card:hover, .result-list a:hover, .sibling-list a:hover { box-shadow: var(--shadow); border-color: transparent; }
.model-card-text strong, .make-row-text strong { font-weight: 800; }
.generation-years { font-weight: 800; }
.filter { border-radius: 999px; border-width: 2px; }
.letters a { border-radius: 999px; }

/* Поколение */
.vehicle-photo { border-radius: 28px; }
.vehicle-head h1 { font-weight: 800; }
.vehicle-years { color: var(--accent-text); font-weight: 800; }
.specs { gap: 12px; }
.spec { padding: 16px 18px; }
.spec-value { font-weight: 800; }
.spec-pcd { background: var(--accent); color: #fff; }
.spec-dia { background: var(--ink); color: #fff; }
.spec-main .spec-label, .spec-main .spec-hint { color: rgba(255, 255, 255, .82); }
.spec-et { background: #fde6dd; } .spec-fastener { background: #e5efe9; } .spec-torque { background: #e6ebf7; } .spec-pressure { background: #f6ebd8; }
.spec:not(.spec-main) .spec-label { color: var(--ink-2); }
.caution { border-radius: 18px; }
.block { padding: 24px; }
.tyre-list li { background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; font-weight: 800; }
.variant { border-radius: 16px; }
.variant .size { color: var(--accent-text); font-weight: 800; }
.count-badge { border-radius: 20px; }
.letter { font-weight: 800; }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 32px 0 14px; }
.list-head .subhead { margin: 0; }
.list-head .filter { flex: 0 1 320px; }
.table-cars { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); }
.table-cars thead th { background: var(--surface-2); }
@media (max-width: 519px) {
  .finder { padding: 12px; }
  .finder-tabs { overflow: visible; }
  .finder-tabs button { flex: 1 1 0; justify-content: center; padding: 9px 8px; white-space: normal; text-align: center; font-size: 14px; }
  .finder-tabs .icon { display: none; }
}
.brand-tld { color: var(--accent-text); }
