/* =====================================================================
   KOLESA24 — основний стиль
   Темний графіт + білий + стриманий помаранчевий акцент.
   Mobile-first, без зовнішніх залежностей.
   ===================================================================== */

:root {
    --graphite-900: #101216;
    --graphite-800: #15171c;
    --graphite-700: #1d2026;
    --graphite-600: #2a2e37;
    --graphite-500: #3b414c;
    --graphite-400: #6b7280;
    --graphite-300: #9aa1ad;
    --graphite-200: #d4d8de;
    --graphite-100: #eceef1;
    --graphite-50:  #f6f7f9;

    --accent:       #ff6b1a;
    --accent-dark:  #e55a0d;
    --accent-soft:  #fff2e9;

    --success:      #0f9d58;
    --success-soft: #e8f6ef;
    --warning:      #d98324;
    --warning-soft: #fdf4e7;
    --danger:       #d93a3a;
    --danger-soft:  #fdecec;
    --info:         #2b6cb0;
    --info-soft:    #eaf2fb;

    --white: #fff;
    --text: var(--graphite-800);
    --text-muted: var(--graphite-400);
    --border: var(--graphite-200);
    --bg: var(--graphite-50);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(16, 18, 22, .06);
    --shadow: 0 2px 8px rgba(16, 18, 22, .08);
    --shadow-lg: 0 12px 32px rgba(16, 18, 22, .12);

    --container: 1220px;
    --header-h: 64px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--graphite-800); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.visually-hidden, .skip-link:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: 8px; left: 8px; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ta-right { text-align: right; }
.ta-center { text-align: center; }

/* ---------------------------------------------------------------
   Шапка
   --------------------------------------------------------------- */
.header {
    background: var(--graphite-800);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--header-h);
    flex-wrap: wrap;
}

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover { color: var(--white); }
.logo__mark { color: var(--accent); display: inline-flex; }
.logo--footer { margin-bottom: 12px; }

.header__toggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--graphite-600); border-radius: var(--radius-sm);
    cursor: pointer; padding: 0 9px;
}
.header__toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: .2s; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { flex-basis: 100%; display: none; }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 8px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.nav__link {
    display: block; color: var(--graphite-200); padding: 10px 12px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .96rem;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); background: var(--graphite-700); }
.nav__link.is-active { box-shadow: inset 3px 0 0 var(--accent); }

.header__tools { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }

.header-search { position: relative; flex: 1; display: flex; }
.header-search__input {
    width: 100%; padding: 10px 44px 10px 14px;
    background: var(--graphite-700); border: 1px solid var(--graphite-600); border-radius: var(--radius);
    color: var(--white); font-size: .95rem; font-family: inherit;
}
.header-search__input::placeholder { color: var(--graphite-400); }
.header-search__input:focus { border-color: var(--accent); outline: none; background: var(--graphite-600); }
.header-search__btn {
    position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px;
    background: transparent; border: 0; color: var(--graphite-300); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.header-search__btn:hover { color: var(--accent); }

.header__garage {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 9px 12px; border-radius: var(--radius);
    background: var(--graphite-700); color: var(--graphite-200); font-size: .87rem; font-weight: 500;
    border: 1px solid var(--graphite-600); max-width: 190px; overflow: hidden;
}
.header__garage span { overflow: hidden; text-overflow: ellipsis; }
.header__garage:hover { color: var(--white); border-color: var(--accent); }
.header__garage--empty { color: var(--graphite-300); }

/* Підказки пошуку */
.suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 120;
    background: var(--white); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-height: 60vh; overflow-y: auto;
}
.suggest__group { padding: 6px 0; border-bottom: 1px solid var(--graphite-100); }
.suggest__group:last-child { border-bottom: 0; }
.suggest__title { padding: 6px 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.suggest__item { display: block; padding: 8px 14px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--graphite-50); }
.suggest__item strong { display: block; font-size: .93rem; }
.suggest__item span { font-size: .8rem; color: var(--text-muted); }

@media (min-width: 960px) {
    .header__inner { flex-wrap: nowrap; gap: 24px; }
    .header__toggle { display: none; }
    .nav { display: block; flex-basis: auto; }
    .nav__list { flex-direction: row; padding: 0; gap: 2px; }
    .nav__link { padding: 8px 10px; font-size: .9rem; }
    .nav__link.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
    .header__tools { flex-basis: auto; padding-bottom: 0; margin-left: auto; }
    .header-search { width: 260px; flex: none; }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
    background: linear-gradient(160deg, var(--graphite-800) 0%, var(--graphite-900) 100%);
    color: var(--white);
    padding: 40px 0 48px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,107,26,.16) 0%, transparent 62%);
    pointer-events: none;
}
/* Обмеження ширини стосується тексту, а не всього блоку. Раніше
   max-width висів на .hero__content, і форма підбору — головний елемент
   головної сторінки — виявлялася вужчою за решту сайту, з порожньою
   смугою праворуч. Рядок тексту довший за ~70 символів читати важко,
   а от форму звужувати немає причин. */
.hero__content { position: relative; z-index: 1; }
.hero__title { color: var(--white); margin-bottom: 12px; font-size: clamp(1.7rem, 5vw, 2.6rem); max-width: 860px; }
.hero__subtitle { color: var(--graphite-300); font-size: 1.05rem; margin-bottom: 28px; max-width: 640px; }

.hero__stats { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--graphite-300); font-size: .9rem; }
.hero__stats strong { color: var(--white); font-size: 1.05rem; }
.hero__updated { margin: 10px 0 0; font-size: .82rem; color: var(--graphite-400); }

/* Пошуковий блок */
.finder { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text); }
.finder__tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--graphite-50); overflow-x: auto; }
.finder__tab {
    flex: 1; min-width: 130px; padding: 14px 12px; background: transparent; border: 0; cursor: pointer;
    font-family: inherit; font-size: .93rem; font-weight: 600; color: var(--text-muted); white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.finder__tab:hover { color: var(--text); }
.finder__tab.is-active { color: var(--text); background: var(--white); border-bottom-color: var(--accent); }
.finder__panel { padding: 20px 16px; }
.finder__hint { margin: 10px 0 0; font-size: .84rem; color: var(--text-muted); }

/* ---------------------------------------------------------------
   Форми
   --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--wide { flex: 1; }
.field__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.field__control {
    width: 100%; padding: 11px 12px; font-family: inherit; font-size: .95rem; color: var(--text);
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); min-height: 44px;
}
.field__control:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255,107,26,.14); }
.field__control:disabled { background: var(--graphite-100); color: var(--text-muted); cursor: not-allowed; }
select.field__control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea.field__control { min-height: 120px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--text-muted); }
.field__error { font-size: .82rem; color: var(--danger); }

.vehicle-selector__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vehicle-selector__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.vehicle-selector__hint { margin: 0; font-size: .84rem; color: var(--text-muted); flex: 1; min-width: 200px; }

.size-finder__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.size-finder__row .field { flex: 1; min-width: 90px; }
.size-finder__sep { padding-bottom: 12px; color: var(--text-muted); font-weight: 700; }
.pcd-finder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }

@media (min-width: 720px) {
    .vehicle-selector__row { grid-template-columns: repeat(4, 1fr); }
    .finder__panel { padding: 24px; }
}

/* ---------------------------------------------------------------
   Кнопки
   --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; min-height: 44px;
    font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1;
    border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-align: center; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { background: var(--white); color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn--ghost:hover { color: var(--text); background: var(--graphite-100); }
.btn--dark { background: var(--graphite-800); color: #fff; }
.btn--dark:hover { background: var(--graphite-700); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b92e2e; color: #fff; }
.btn--sm { padding: 8px 14px; min-height: 36px; font-size: .87rem; }
.btn--lg { padding: 15px 28px; min-height: 52px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------
   Секції, сітки, картки
   --------------------------------------------------------------- */
.main { padding-bottom: 56px; min-height: 50vh; }
.section { margin: 40px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__title { margin: 0; }
.section__more { font-size: .9rem; font-weight: 600; color: var(--accent-dark); }
/* Підзаголовок завжди йде після .section__title, а в того margin: 0.
   Від'ємний верхній відступ, розрахований на заголовок із власним
   відступом, підтягував текст упритул до літер — рядки злипалися. */
.section__sub { color: var(--text-muted); margin: 6px 0 18px; font-size: .92rem; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow-sm); position: relative;
}
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }

.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 16px; }
.panel__title { margin-top: 0; font-size: 1.1rem; }

/* Чіпи (розміри, PCD) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; flex-direction: column; gap: 2px;
    padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .92rem; box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--accent); }
.chip__title { font-weight: 700; }
.chip__meta { font-size: .78rem; color: var(--text-muted); }
.chip--sm { padding: 6px 10px; font-size: .85rem; }

/* Кроки */
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; }
.steps__item h3 { margin: 8px 0 6px; font-size: 1rem; }
.steps__item p { margin: 0; font-size: .89rem; color: var(--text-muted); }
.steps__num {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: .9rem;
}

/* ---------------------------------------------------------------
   Картка шини
   --------------------------------------------------------------- */
.tire-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tire-card--fit { border-color: var(--success); box-shadow: 0 0 0 1px var(--success-soft); }
.tire-card__fit {
    display: flex; align-items: center; gap: 6px;
    background: var(--success-soft); color: var(--success);
    font-size: .78rem; font-weight: 700; padding: 6px 12px;
}
.tire-card__fit svg { flex: none; }
/* Тло біле, а не сіре: каталожні знімки шин і дисків приходять на
   суцільному білому тлі, і на сірому полі кожне фото перетворювалося
   на помітний білий прямокутник посеред картки. */
.tire-card__media {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 150px; background: var(--white); border-bottom: 1px solid var(--border);
}
.tire-card__media img { max-height: 134px; width: auto; object-fit: contain; }
.tire-card__placeholder { color: var(--graphite-200); }
.tire-card__season {
    position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; background: var(--white); border: 1px solid var(--border);
}
.tire-card__season--summer { color: #b45309; border-color: #fcd9a8; background: #fff8ee; }
.tire-card__season--winter { color: #1e5fa8; border-color: #cfe0f5; background: #f1f6fd; }
.tire-card__season--allseason { color: #0f7a52; border-color: #c7e8da; background: #f0faf5; }

.tire-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tire-card__title { margin: 0; font-size: .98rem; line-height: 1.3; }
.tire-card__brand { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.tire-card__model { font-weight: 700; }
.tire-card__size { font-family: var(--font-mono); font-size: .87rem; color: var(--graphite-500); }
.tire-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tire-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; }
.tire-card__price { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.tire-card__price-from { font-size: .8rem; color: var(--text-muted); }
.tire-card__price-value { font-size: 1.2rem; font-weight: 800; }
.tire-card__stores { font-size: .78rem; color: var(--text-muted); width: 100%; }
.tire-card__price-none { font-size: .87rem; color: var(--text-muted); }
/* Орієнтовна ціна — не пропозиція магазину, і не має виглядати як вона:
   світліше, без акцентної ваги. Різниця мусить читатися до того, як
   відвідувач дочитає підпис. */
.tire-card__price-value--approx { font-weight: 600; color: var(--text-muted); }
.tire-card__stores--approx { font-style: italic; }

/* Блок орієнтовної ціни на сторінці товару. Навмисно стриманий: рамка
   пунктиром і сірий фон, щоб його не сплутали з блоком «найвигідніша
   пропозиція», у якого акцентна рамка й кнопка переходу в магазин. */
.approx-price {
    border: 1px dashed var(--graphite-200, #d7dae0);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--graphite-50, #f7f8fa);
}
.approx-price__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.approx-price__label { font-size: .84rem; color: var(--text-muted); }
.approx-price__value { font-size: 1.5rem; font-weight: 700; }
.approx-price__unit { font-size: .84rem; color: var(--text-muted); }
.approx-price__set { margin-top: 4px; font-size: .95rem; }
.approx-price__note { margin: 10px 0 0; font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* Схема вильоту ET. Розмір задає viewBox, тому SVG сам масштабується під
   ширину екрана — окремого мобільного варіанта не потрібно. */
.et-diagram { margin: 0 0 18px; }
.et-diagram svg { width: 100%; height: auto; max-height: 260px; color: var(--text); }
.et-diagram__new { fill: var(--accent-soft); stroke: var(--accent-dark); stroke-width: 1.6; }
.et-diagram__shift { stroke: var(--accent-dark); fill: none; }
.et-diagram__label { font-size: 11px; fill: var(--text-muted); }
.et-diagram__label--accent { fill: var(--accent-dark); font-weight: 700; }

/* Порівняння за параметрами */
.compare-tally { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; font-size: .92rem; }
.compare-tally__item--muted { color: var(--text-muted); }
.compare-group { margin-bottom: 14px; }
.compare-conf { display: block; font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.compare-delta { white-space: nowrap; color: var(--accent-dark); font-weight: 600; }
/* Смужка від нуля: довжина пропорційна самому значенню, а не різниці. */
.compare-bar { display: block; height: 5px; border-radius: 3px; background: var(--graphite-100); margin-top: 6px; overflow: hidden; }
.compare-bar__fill { display: block; height: 100%; background: var(--graphite-200, #c7ccd4); border-radius: 3px; }
.compare-bar__fill.is-best { background: var(--accent-dark); }
@media (max-width: 640px) {
    .compare-delta { white-space: normal; }
}
.tire-card__actions { display: flex; gap: 8px; }
.tire-card__actions .btn { flex: 1; }
.js-compare.is-active { background: var(--accent-soft); color: var(--accent-dark); }

/* Рейтинги та значки */
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: .88rem; }
.rating__star { color: var(--accent); }
.rating__count { color: var(--text-muted); font-size: .8rem; }
.rating--empty { color: var(--text-muted); font-size: .82rem; }
.score { font-size: .8rem; font-weight: 700; color: var(--info); background: var(--info-soft); padding: 2px 7px; border-radius: 20px; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge--accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge--muted { background: var(--graphite-100); color: var(--text-muted); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }

/* ---------------------------------------------------------------
   Хлібні крихти
   --------------------------------------------------------------- */
.breadcrumbs { padding: 12px 0 0; font-size: .84rem; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--text-muted); }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin-right: 6px; color: var(--graphite-300); }
.breadcrumbs__item a { color: var(--text-muted); }
.breadcrumbs__item a:hover { color: var(--accent-dark); }

/* ---------------------------------------------------------------
   Таблиці
   --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--graphite-100); vertical-align: middle; }
.table thead th { background: var(--graphite-50); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--graphite-50); }
.table tr.is-best { background: var(--accent-soft); }
.table tr.is-best:hover { background: #ffe9d9; }

.specs-table td:first-child { color: var(--text-muted); width: 45%; }
.specs-table td strong { font-weight: 700; }

.old-price { text-decoration: line-through; color: var(--text-muted); font-size: .82rem; margin-left: 6px; }
.free { color: var(--success); font-weight: 700; }

.availability { font-size: .85rem; font-weight: 600; }
.availability--in_stock { color: var(--success); }
.availability--on_order { color: var(--warning); }
.availability--out_of_stock { color: var(--danger); }
.availability--unknown { color: var(--text-muted); }

.offer-store { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.offer-store__updated { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 720px) {
    .table--offers thead { display: none; }
    .table--offers tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .table--offers td { border: 0; padding: 2px 0; }
    .table--offers td:first-child { grid-column: 1 / -1; }
    .table--offers td[data-label]::before { content: attr(data-label) ": "; color: var(--text-muted); font-size: .8rem; }
    .table--offers td.ta-right { text-align: left; }
    .table--offers td:last-child { grid-column: 1 / -1; margin-top: 6px; }
    .table--offers td:last-child .btn { width: 100%; }
}

/* ---------------------------------------------------------------
   Найкраща пропозиція
   --------------------------------------------------------------- */
.best-offer { background: var(--white); border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.best-offer__label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); margin-bottom: 10px; }
.best-offer__body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.best-offer__store { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.best-offer__store strong { font-size: 1.05rem; }
.best-offer__meta { font-size: .84rem; color: var(--text-muted); }
.best-offer__price { display: flex; flex-direction: column; }
.best-offer__total { font-size: 1.5rem; font-weight: 800; }
.best-offer__unit { font-size: .82rem; color: var(--text-muted); }
.best-offer__note { margin: 10px 0 0; font-size: .86rem; color: var(--text-muted); }

.qty-switch { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; }
.qty-switch__label { font-size: .82rem; color: var(--text-muted); padding: 0 6px; }
.qty-switch__btn { border: 0; background: transparent; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.qty-switch__btn.is-active { background: var(--graphite-800); color: #fff; }

.offers__summary { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.offers__stat { display: flex; flex-direction: column; }
.offers__stat span { font-size: .78rem; color: var(--text-muted); }
.offers__stat strong { font-size: 1.05rem; }
.offers__trust { margin-top: 12px; font-size: .83rem; color: var(--text-muted); }

/* ---------------------------------------------------------------
   Специфікації авто
   --------------------------------------------------------------- */
.spec-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.spec-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.spec-item__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.spec-item__value { font-size: 1.25rem; font-weight: 800; margin-top: 4px; font-family: var(--font-mono); }
.spec-item__value--empty { color: var(--text-muted); font-size: .95rem; font-family: var(--font); font-weight: 500; }
.spec-item__note { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

.notice { border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; margin: 16px 0; border: 1px solid; }
.notice--warning { background: var(--warning-soft); border-color: #f0d9b5; color: #7a4b10; }
.notice--info { background: var(--info-soft); border-color: #c9dcf2; color: #1b4c80; }
.notice--danger { background: var(--danger-soft); border-color: #f3c6c6; color: #8f2222; }
.notice--success { background: var(--success-soft); border-color: #c2e6d5; color: #0a6b3c; }
.notice p:last-child { margin-bottom: 0; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: .92rem; }
.alert--success { background: var(--success-soft); color: #0a6b3c; }
.alert--error { background: var(--danger-soft); color: #8f2222; }
.alert--info { background: var(--info-soft); color: #1b4c80; }

.empty { padding: 28px 20px; text-align: center; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); }
.empty p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Каталог: фільтри
   --------------------------------------------------------------- */
.catalog { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.catalog__count { color: var(--text-muted); font-size: .9rem; }
.catalog__count strong { color: var(--text); }

.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.filters__group { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--graphite-100); }
.filters__group:last-of-type { border-bottom: 0; margin-bottom: 0; }
.filters__title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 10px; }
.filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.filters__actions { display: flex; gap: 8px; margin-top: 14px; }
.filters__toggle { width: 100%; margin-bottom: 12px; }

.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check__count { margin-left: auto; color: var(--text-muted); font-size: .8rem; }

.range { display: flex; align-items: center; gap: 8px; }
.range .field__control { padding: 8px 10px; min-height: 38px; }

.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.sort select { min-height: 38px; padding: 7px 30px 7px 10px; }

@media (min-width: 900px) {
    .catalog { grid-template-columns: 260px 1fr; }
    .filters__toggle { display: none; }
    .catalog__aside { position: sticky; top: calc(var(--header-h) + 12px); }
}

/* ---------------------------------------------------------------
   Пагінація
   --------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0; }
.pagination__link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-size: .92rem; font-weight: 600;
}
.pagination__link:hover { border-color: var(--accent); }
.pagination__link.is-current { background: var(--graphite-800); color: #fff; border-color: var(--graphite-800); }
.pagination__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--text-muted); }

/* ---------------------------------------------------------------
   FAQ та SEO-текст
   --------------------------------------------------------------- */
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; }
.faq__question { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 42px; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq__item[open] .faq__question::after { content: "−"; }
.faq__answer { padding: 0 16px 16px; color: var(--graphite-500); font-size: .94rem; }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent-dark); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; background: var(--graphite-50); border-left: 3px solid var(--accent); }

.seo-text { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ---------------------------------------------------------------
   Порівняння
   --------------------------------------------------------------- */
.compare-hero { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: stretch; }
.compare-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; position: relative; }
.compare-item--winner { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,26,.12); }
.compare-item__brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.compare-item__name { font-size: 1.05rem; font-weight: 700; margin: 4px 0 8px; }
.compare-item__media { height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.compare-item__media img { max-height: 110px; width: auto; }
.compare-item__price { font-size: 1.25rem; font-weight: 800; }
.compare-item__meta { font-size: .82rem; color: var(--text-muted); }
.compare-vs { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text-muted); }

.verdicts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.verdict { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.verdict__title { font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.verdict__winner { font-size: 1.02rem; font-weight: 700; }
.verdict__reason { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }
.verdict--empty .verdict__winner { color: var(--text-muted); font-weight: 500; font-size: .92rem; }

.compare-table td.is-best { background: var(--accent-soft); font-weight: 700; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; }
.compare-table tbody tr:hover td:first-child { background: var(--graphite-50); }

.vote { display: grid; gap: 10px; }
.vote__bar { display: flex; align-items: center; gap: 10px; }
.vote__label { min-width: 150px; font-size: .9rem; font-weight: 600; }
.vote__track { flex: 1; height: 12px; background: var(--graphite-100); border-radius: 20px; overflow: hidden; }
.vote__fill { height: 100%; background: var(--accent); border-radius: 20px; }
.vote__value { min-width: 52px; text-align: right; font-weight: 700; font-size: .9rem; }

/* Плаваюча панель порівняння */
.compare-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--graphite-800); color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.2);
    padding: 10px 0;
}
.compare-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.compare-bar__items { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.compare-bar__item { background: var(--graphite-700); border-radius: var(--radius-sm); padding: 6px 10px; font-size: .84rem; display: inline-flex; align-items: center; gap: 8px; }
.compare-bar__remove { background: none; border: 0; color: var(--graphite-300); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; }
.compare-bar__remove:hover { color: var(--accent); }
.compare-bar__actions { display: flex; gap: 8px; }

/* ---------------------------------------------------------------
   Відгуки
   --------------------------------------------------------------- */
.review { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.review + .review { margin-top: 12px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.review__author { font-weight: 700; }
.review__date { font-size: .82rem; color: var(--text-muted); }
.review__body { margin: 0 0 10px; }
.review__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .84rem; color: var(--text-muted); border-top: 1px solid var(--graphite-100); padding-top: 10px; }
.review__meta strong { color: var(--text); }
.review__aspects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.review__aspect { font-size: .78rem; background: var(--graphite-50); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; }
.review__helpful { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

.stars { display: inline-flex; gap: 2px; }
.stars__item { color: var(--graphite-200); font-size: 1.05rem; }
.stars__item.is-filled { color: var(--accent); }

.rating-summary { display: grid; gap: 20px; grid-template-columns: 1fr; }
.rating-summary__score { text-align: center; padding: 16px; background: var(--graphite-50); border-radius: var(--radius); }
.rating-summary__value { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rating-summary__count { font-size: .85rem; color: var(--text-muted); }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rating-bar { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.rating-bar__label { min-width: 130px; color: var(--text-muted); }
.rating-bar__track { flex: 1; height: 8px; background: var(--graphite-100); border-radius: 20px; overflow: hidden; }

/* display: block обов'язковий. Заливка — це span усередині span, і поки
   вона лишалася рядковою, ширина й висота до неї не застосовувались:
   оцінки рахувалися, атрибут style виводився, а смужка була невидима —
   усі аспекти виглядали порожніми. */
.rating-bar__fill {
    display: block; height: 100%; background: var(--accent);
    border-radius: 20px; transition: width .4s ease;
}
.rating-bar__value { min-width: 32px; text-align: right; font-weight: 700; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.6rem; color: var(--graphite-200); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }

/* ---------------------------------------------------------------
   Підвал
   --------------------------------------------------------------- */
.footer { background: var(--graphite-800); color: var(--graphite-300); padding: 40px 0 24px; margin-top: 40px; font-size: .9rem; }
/* Колонок у підвалі п'ять: «про проєкт» плюс чотири списки посилань.
   З auto-fit вони не вміщалися: сітка давала п'ять доріжок, а блок
   «про проєкт» займав дві з них — і остання колонка («Сервіси»)
   зривалася в новий рядок, лишаючи по центру підвалу порожню діру.
   Тому доріжки задані явно. */
.footer__grid { display: grid; gap: 28px 24px; grid-template-columns: minmax(0, 1fr); }
.footer__col { min-width: 0; }
.footer__title { color: var(--white); font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer__text { max-width: 46ch; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: var(--graphite-300); }
.footer__links a:hover { color: var(--accent); }
.footer__links--inline { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--graphite-600); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.footer__bottom p { margin: 0; }

@media (min-width: 560px) {
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__col--about { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
    .footer__grid { grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); }
    .footer__col--about { grid-column: auto; }
}

/* Cookie */
.cookie-consent {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 14px 16px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .88rem;
}
.cookie-consent p { margin: 0; flex: 1; min-width: 200px; }

/* ---------------------------------------------------------------
   Дрібниці
   --------------------------------------------------------------- */
.page-head { padding: 20px 0 8px; }
.page-head__intro { color: var(--graphite-500); max-width: 76ch; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--text-muted); margin-top: 8px; }

.list-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.list-links a { display: block; padding: 9px 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; }
.list-links a:hover { border-color: var(--accent); }

.data-source { font-size: .82rem; color: var(--text-muted); margin-top: 8px; }
.data-source a { color: var(--accent-dark); }
/* Пояснення, яке підтверджує, що критерій справді врахований, — на
   відміну від сірого тексту «врахувати не вдалося». */
.data-source--ok { color: var(--success); }

.inline-form { display: inline; }

.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--white); border-top: 1px solid var(--border); padding: 10px 16px;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.sticky-cta__price { flex: 1; }
.sticky-cta__price strong { display: block; font-size: 1.1rem; }
.sticky-cta__price span { font-size: .78rem; color: var(--text-muted); }

@media (min-width: 900px) {
    .sticky-cta { display: none; }
}

@media print {
    .header, .footer, .compare-bar, .sticky-cta, .filters { display: none; }
}

/* --- Запрошення для магазинів (коли пропозицій немає) --- */
.store-cta {
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
    background: linear-gradient(140deg, var(--white) 0%, var(--accent-soft) 100%);
    border: 1px solid #ffd9c0; border-radius: var(--radius-lg); padding: 22px;
}
.store-cta__body { flex: 1; min-width: 260px; }
.store-cta__title { font-size: 1.1rem; margin: 0 0 8px; }
.store-cta__body p { margin: 0 0 10px; color: var(--graphite-500); font-size: .93rem; }
.store-cta__list { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--graphite-500); }
.store-cta__list li { margin-bottom: 4px; }
.store-cta__action { display: flex; flex-direction: column; gap: 8px; min-width: 210px; }
.store-cta__action .btn { width: 100%; }

.catalog-note {
    background: var(--info-soft); border: 1px solid #c9dcf2; color: #1b4c80;
    border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; margin-bottom: 16px;
}
.catalog-note a { color: #1b4c80; text-decoration: underline; }

/* =====================================================================
   Зображення: фото автомобілів, логотипи марок
   ===================================================================== */

.photo { margin: 0 0 24px; }
.photo__img {
    display: block; width: 100%; height: auto;
    border-radius: var(--radius-lg); background: var(--graphite-50);
}
.photo--hero .photo__img { max-height: 420px; object-fit: cover; }
.photo__credit {
    margin-top: 6px; font-size: .78rem; color: var(--text-muted); line-height: 1.4;
}
.photo__credit a { color: var(--text-muted); text-decoration: underline; }

/* Шапка сторінки марки з логотипом */
.page-head--with-logo { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.page-head--with-logo > h1 { flex: 1; min-width: 220px; }
.page-head--with-logo .page-head__intro { flex-basis: 100%; }
.page-head__logo {
    width: 72px; height: 72px; object-fit: contain;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px; flex: none;
}

/* Плитка марок */
.brand-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.brand-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 10px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s;
}
.brand-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.brand-tile__logo { width: 48px; height: 48px; object-fit: contain; }
.brand-tile__name { font-size: .9rem; font-weight: 600; text-align: center; }

/* Картка моделі з фото */
.model-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.model-card__media {
    aspect-ratio: 4 / 3; margin: -16px -16px 12px; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0; background: var(--graphite-50);
    display: flex; align-items: center; justify-content: center;
}
.model-card__media img { width: 100%; height: 100%; object-fit: cover; }
.model-card__placeholder { color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.model-card__title { font-size: 1rem; margin: 0 0 4px; }
.model-card__meta { margin: 0; font-size: .85rem; color: var(--text-muted); }

/* Фото в картці покоління */
.vehicle-card__media {
    aspect-ratio: 16 / 10; margin: -16px -16px 12px; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0; background: var(--graphite-50);
}
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
    .photo--hero .photo__img { max-height: 240px; }
    .brand-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* =====================================================================
   Блоки, у яких були описані лише BEM-елементи
   ---------------------------------------------------------------------
   У стилях бракувало самих блоків: існував .footer__col--about без
   .footer__col, .steps__list без .steps, .vehicle-card__media без
   .vehicle-card. Через це картки й колонки трималися купи лише на
   загальному .card, а типографіка й вирівнювання всередині розсипалися.
   ===================================================================== */

/* Обгортки-блоки: самі по собі нічого не малюють, але задають потік. */
.steps { margin-top: 8px; }
.size-finder { display: block; }
.vehicle-selector { display: block; }
.faq { margin-top: 8px; }
.offers { margin-top: 8px; }

.logo__text { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; color: inherit; }

/* Головна колонка каталогу — доріжка grid. Без min-width: 0 широкий
   вміст (таблиця, довга назва моделі) розпирає колонку за межі сітки,
   і сторінка «їде» вбік. */
.catalog__main { min-width: 0; }
.catalog__aside { min-width: 0; }

/* --- Картка автомобіля ------------------------------------------- */
.vehicle-card { display: flex; flex-direction: column; gap: 4px; }
.vehicle-card__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.vehicle-card__gen { margin: 0; font-size: .87rem; color: var(--text-muted); }
/* margin-top: auto притискає посилання до низу, тож у ряді карток
   стрілки стоять на одній лінії навіть за різної довжини назв. */
.vehicle-card__link { margin-top: auto; padding-top: 10px; font-size: .87rem; font-weight: 600; color: var(--accent-dark); }

/* --- Картка статті ------------------------------------------------ */
.article-card { display: flex; flex-direction: column; gap: 6px; }
/* Значок категорії та дата — інлайнові за задумом, але у flex-колонці
   вони розтягуються на всю ширину картки й перетворюються на сірі
   смуги. align-self повертає їм власну ширину. */
.article-card > .badge,
.article-card > span { align-self: flex-start; }
.article-card img { border-radius: var(--radius-sm); margin-bottom: 4px; }
.article-card__title { margin: 4px 0 2px; font-size: 1.05rem; line-height: 1.35; }
.article-card__intro { margin: 0; font-size: .9rem; color: var(--text-muted); }
.article-card__date { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--text-muted); }

/* --- Картка порівняння -------------------------------------------- */
.compare-card { display: flex; flex-direction: column; gap: 6px; }
.compare-card__title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.compare-card__meta { margin: auto 0 0; padding-top: 8px; font-size: .84rem; color: var(--text-muted); }

/* --- Картка відгуку ----------------------------------------------- */
.review-card { display: flex; flex-direction: column; gap: 8px; }
.review-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-card__tire { font-weight: 600; font-size: .9rem; }
.review-card__body { margin: 0; font-size: .92rem; color: var(--graphite-500); }
.review-card__meta { margin: auto 0 0; padding-top: 6px; font-size: .8rem; color: var(--text-muted); }

/* --- Пагінація: стрілки ширші за номери --------------------------- */
.pagination__link--prev,
.pagination__link--next { padding: 0 16px; font-weight: 600; }

/* --- Проста коробка (сторінка помилки) ---------------------------- */
.box {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}

/* =====================================================================
   Шапка сторінки товару: фото + характеристики
   ---------------------------------------------------------------------
   Раніше тут стояв загальний .grid--2 з доріжками minmax(280px, 1fr).
   На широкому екрані він давав чотири колонки по 280 px, тому таблиця
   розмірів диска не вміщалася й обрізалася по краю панелі, а поруч із
   фотографією лишалося півекрана порожнечі.
   ===================================================================== */
.product-head { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.product-head__media {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 16px;
    display: flex; align-items: center; justify-content: center; min-height: 240px;
}
.product-head__media img { max-height: 300px; width: auto; object-fit: contain; }

/* Колонка може містити кілька панелей одна під одною — задаємо відступ
   тут, а не margin'ами всередині кожної. */
.product-head__body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* --- Галерея зображень товару -------------------------------------
   Джерело поки віддає один знімок на модель, але медіатека зберігає
   скільки завгодно: мініатюри з'являються самі, щойно з'явиться друге
   зображення від постачальника чи виробника. */
.gallery { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.gallery__main { display: flex; align-items: center; justify-content: center; min-height: 220px; }
.gallery__main img { max-height: 280px; width: auto; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gallery__thumb {
    width: 56px; height: 56px; padding: 4px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.gallery__thumb img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.gallery__thumb:hover { border-color: var(--accent); }
.gallery__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

@media (min-width: 860px) {
    .product-head { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
}

/* =====================================================================
   Блок перелінковки
   ---------------------------------------------------------------------
   Кілька колонок із переліками посилань на сусідні сторінки. Колонки —
   auto-fill від 240 px: на вузькому екрані одна, на широкому три-чотири,
   без окремих правил під кожну ширину.
   ===================================================================== */
.linkbox { border-top: 1px solid var(--border); padding-top: 28px; }

/* align-items: start — навмисно. Групи бувають різної довжини: «інших
   моделей бренду» дванадцять, а розболтовка в диска часто одна. Якщо
   дати карткам розтягуватися на висоту ряду, коротка перетворюється на
   майже порожній прямокутник заввишки з сусідню. */
.linkbox__grid {
    display: grid; gap: 20px; align-items: start;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.linkbox__group {
    min-width: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}

.linkbox__title { margin: 0 0 4px; font-size: .95rem; line-height: 1.3; }
.linkbox__hint { margin: 0 0 10px; font-size: .8rem; color: var(--text-muted); }

.linkbox__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.linkbox__list li + li { border-top: 1px solid var(--graphite-100); }

.linkbox__link {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 7px 0; font-size: .9rem;
}
.linkbox__link:hover .linkbox__label { color: var(--accent-dark); }

/* Назва може бути довгою («Bridgestone Turanza All Season 6»), лічильник —
   ні. Тому назва стискається з трикрапкою, а лічильник лишається цілим. */
.linkbox__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.linkbox__meta { flex: none; font-size: .76rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* margin-top: auto тримає посилання «усі →» на дні картки, тому в ряду
   груп різної висоти вони стоять на одній лінії. */
.linkbox__more { margin-top: auto; padding-top: 12px; font-size: .85rem; font-weight: 600; color: var(--accent-dark); }

/* =====================================================================
   Список порівнянь
   ---------------------------------------------------------------------
   Картка має за секунду відповісти на питання «це про мої шини?»:
   типорозмір і сезон угорі, далі знімки моделей через «vs».
   ===================================================================== */
.compare-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.compare-card {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow-sm);
}
.compare-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }

.compare-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compare-card__count { margin-left: auto; font-size: .78rem; color: var(--text-muted); }

.compare-card__items { display: flex; align-items: flex-start; gap: 8px; }

.compare-card__item {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
}

.compare-card__media {
    width: 100%; height: 72px; display: flex; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--graphite-100); border-radius: var(--radius-sm);
}
.compare-card__media img { max-height: 64px; width: auto; object-fit: contain; }

.compare-card__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }

/* Назви лінійок бувають довгі — обмежуємо двома рядками, щоб картки
   в ряду не розповзалися на різну висоту. */
.compare-card__model {
    font-size: .88rem; font-weight: 600; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.compare-card__rating { font-size: .78rem; color: var(--text-muted); }

.compare-card__vs {
    flex: none; align-self: center; margin-top: 24px;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted);
}

.compare-card__cta { margin-top: auto; font-size: .87rem; font-weight: 600; color: var(--accent-dark); }

/* =====================================================================
   Допоміжні класи
   ===================================================================== */

/* Клас використовувався в шаблонах, але правила для нього не існувало:
   приглушений текст виглядав як звичайний, і підпис на кшталт
   «— партії станом на 17.09.2026» важив стільки ж, скільки сам факт. */
.muted { color: var(--text-muted); font-weight: 400; }

/* =====================================================================
   Порівняння типорозмірів
   ===================================================================== */

/* Дві колонки розміру над таблицею: показують, що саме з чим порівнюється,
   ще до того, як відвідувач почне читати рядки. */
.size-vs {
    display: grid; gap: 14px; align-items: stretch;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: 22px;
}

.size-vs__side {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-align: center; background: var(--surface);
}

.size-vs__label { font-size: 1.15rem; font-weight: 800; }
.size-vs__meta { margin: 6px 0 0; font-size: .82rem; color: var(--text-muted); }

.size-vs__sep {
    align-self: center; font-size: .78rem; font-weight: 800;
    text-transform: uppercase; color: var(--text-muted);
}

/* На телефоні стрілка між колонками з'їдає ширину, потрібну самим
   розмірам, тому колонки стають рядками, а роздільник ховається. */
@media (max-width: 560px) {
    .size-vs { grid-template-columns: 1fr; }
    .size-vs__sep { display: none; }
}

/* Різниця в таблиці — те, заради чого сторінку відкрили: виділяємо. */
.diff-up { color: var(--accent-dark); font-weight: 700; }
.diff-down { color: var(--text-muted); font-weight: 700; }

/* Перемикач сезонів на сторінці типорозміру. Активний стан обов'язковий:
   без нього перемикач не показує, де відвідувач зараз перебуває. */
.chips--seasons { margin-top: 14px; }

.chip.is-active {
    border-color: var(--accent); background: var(--accent);
    color: var(--white);
}
.chip.is-active .chip__meta { color: var(--white); opacity: .85; }

/* =====================================================================
   Схема розболтовки
   ===================================================================== */

/* Кольори задаються тут, а не в самому SVG: так схема успадковує тему
   сторінки й не потребує правок у розмітці, якщо палітра зміниться. */
.pcd-svg { display: block; flex: none; }
.pcd-svg__rim { fill: var(--graphite-100); stroke: var(--graphite-200); stroke-width: 1.5; }
.pcd-svg__circle { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.pcd-svg__hub { fill: var(--white); stroke: var(--graphite-200); stroke-width: 1.5; }
.pcd-svg__bolt { fill: var(--accent); }

/* Плитка з розболтовкою: схема ліворуч, підпис праворуч. */
.chip--pcd { display: flex; align-items: center; gap: 10px; }
.chip--pcd .pcd-svg { margin: -2px 0; }
.chip--pcd .chip__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.chip:hover .pcd-svg__bolt { fill: var(--accent-dark); }

/* Схема поруч із заголовком сторінки розболтовки. */
.pcd-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pcd-head__figure { flex: none; }
.pcd-head__body { flex: 1; min-width: 260px; }
.pcd-head__body h1 { margin-bottom: .35em; }

/* Схема в таблиці довідника PCD. */
.pcd-cell { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 560px) {
    .pcd-head { gap: 14px; }
    .pcd-head__figure .pcd-svg { width: 96px; height: 96px; }
}

/* =====================================================================
   Фотографії у відгуках і порівняннях
   ===================================================================== */

.review__avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; background: var(--graphite-100);
}

/* Ініціал замість аватара: свій колір у кожного автора не потрібен —
   важливо, щоб рядок не «провалювався» без картинки. */
.review__avatar--letter {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem; color: var(--graphite-400);
    border: 1px solid var(--border);
}

.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.review__photos img {
    width: 96px; height: 96px; object-fit: cover;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    transition: transform .2s ease;
}
.review__photos a:hover img { transform: scale(1.04); border-color: var(--accent); }

/* Пара знімків у картці «часто порівнюють з». */
.compare-mini__media { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.compare-mini__media img {
    width: 56px; height: 56px; object-fit: contain;
    background: var(--white); border-radius: var(--radius-sm);
}
.compare-mini__vs { font-size: .72rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.compare-mini__blank {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    background: var(--graphite-100); display: inline-block;
}

/* Опис моделі зі знімком протектора. */
.model-desc--with-media { display: flex; gap: 24px; align-items: flex-start; }
.model-desc__media { flex: none; margin: 0; width: 220px; }
.model-desc__media img {
    width: 220px; height: 220px; object-fit: contain;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
}
.model-desc__media figcaption {
    margin-top: 6px; font-size: .8rem; color: var(--text-muted); text-align: center;
}

@media (max-width: 720px) {
    .model-desc--with-media { flex-direction: column; }
    .model-desc__media, .model-desc__media img { width: 100%; }
    .model-desc__media img { height: auto; max-height: 260px; }
}

/* =====================================================================
   Схема колеса
   ===================================================================== */

.tire-svg { display: block; margin: 0 auto; }
.tire-svg__rubber { fill: var(--graphite-700); }
.tire-svg__rim { fill: var(--graphite-200); stroke: var(--graphite-300); stroke-width: .8; }
.tire-svg__hub { fill: var(--white); }
.tire-svg__tread { fill: var(--accent); }

.size-vs__side .tire-svg { margin-bottom: 10px; }

/* Легенда під парою схем. */
.size-vs__legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    font-size: .82rem; color: var(--text-muted); margin: -8px 0 20px;
}
.size-vs__key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.size-vs__key--rubber { background: var(--graphite-700); }
.size-vs__key--rim { background: var(--graphite-200); }
.size-vs__key--tread { background: var(--accent); }

/* Пара схем у картці на індексі розділу. */
.size-pair { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; }
.size-pair__arrow { color: var(--text-muted); font-weight: 700; }

/* Картка відгуку в каталозі: автор, шина зі знімком, витяг із тексту. */
.catalog-review { display: flex; flex-direction: column; gap: 10px; }
.catalog-review__head { display: flex; align-items: center; gap: 10px; }
.catalog-review__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.catalog-review__who strong { font-size: .92rem; }
.catalog-review__who .muted { font-size: .78rem; }
.catalog-review__head .rating { margin-left: auto; }

.catalog-review__tire {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--graphite-50);
}
.catalog-review__tire img { width: 52px; height: 52px; object-fit: contain; background: var(--white); border-radius: 4px; }
.catalog-review__tire span { display: flex; flex-direction: column; min-width: 0; font-size: .87rem; }
.catalog-review__tire:hover { border-color: var(--accent); }

.catalog-review__body { margin: 0; font-size: .9rem; color: var(--graphite-600); }
.catalog-review__meta {
    display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto;
    font-size: .8rem; color: var(--text-muted);
}

/* =====================================================================
   Піктограми критеріїв і розподіл оцінок
   ===================================================================== */

.aspect-icon { flex: none; color: var(--graphite-400); vertical-align: -3px; }
.rating-bar__label { display: flex; align-items: center; gap: 7px; }
.review__aspect { display: inline-flex; align-items: center; gap: 5px; }
.field__label .aspect-icon { margin-right: 5px; }

/* Гістограма розподілу за зірками. Кожен рядок — посилання на фільтр:
   побачив сплеск на трійках — одразу читаєш саме ці відгуки. */
.rating-dist { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; width: 100%; }

.rating-dist__row {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; color: var(--text-muted);
}
.rating-dist__row:hover .rating-dist__fill { background: var(--accent-dark); }
.rating-dist__row:hover { color: var(--text); }

.rating-dist__star { min-width: 26px; font-variant-numeric: tabular-nums; }
.rating-dist__track {
    flex: 1; height: 6px; background: var(--graphite-100);
    border-radius: 20px; overflow: hidden;
}
.rating-dist__fill { display: block; height: 100%; background: var(--accent); border-radius: 20px; transition: width .4s ease; }
.rating-dist__count { min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }

/* =====================================================================
   Температурна шкала сезону
   ===================================================================== */

.season-scale { margin: 16px 0 0; }
.season-scale__title { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }

.season-scale__bar {
    position: relative; height: 12px; border-radius: 20px;
    /* Холод ліворуч, спека праворуч — градієнт підказує напрямок шкали
       ще до того, як око дійде до підписів. */
    background: linear-gradient(90deg, #cfe3f5 0%, #eceef1 45%, #fbe2c9 100%);
    overflow: hidden;
}

.season-scale__zone { position: absolute; top: 0; bottom: 0; border-radius: 20px; }
.season-scale__zone--winter { background: #4a90d9; }
.season-scale__zone--summer { background: var(--accent); }
.season-scale__zone--allseason { background: linear-gradient(90deg, #4a90d9, var(--accent)); }

/* Межа +7 °C — головне число на шкалі, тому вона поверх зони. */
.season-scale__boundary {
    position: absolute; top: -3px; bottom: -3px; width: 2px;
    background: var(--graphite-800);
}

.season-scale__ticks { position: relative; height: 16px; margin-top: 4px; }
.season-scale__tick {
    position: absolute; transform: translateX(-50%);
    font-size: .7rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
}

.season-scale__note { margin: 10px 0 0; font-size: .8rem; color: var(--text-muted); }
.season-scale--compact { margin-top: 10px; }

/* =====================================================================
   Діаграма сумісності диска
   ===================================================================== */

.fitment {
    display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
    padding: 20px; margin-bottom: 16px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
}

.fitment__svg { flex: none; width: 220px; height: 220px; }
.fitment__legend { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }

.fitment__body { fill: var(--graphite-50); stroke: var(--graphite-200); stroke-width: 1; }

/* Авто — суцільна лінія, диск — пунктир: так два кола читаються навіть
   там, де вони майже збіглися. */
.fitment__dia--car { fill: var(--white); stroke: var(--graphite-500); stroke-width: 1.6; }
.fitment__dia--wheel { fill: none; stroke-width: 1.8; stroke-dasharray: 4 3; }
.fitment__pcd--car { fill: none; stroke: var(--graphite-400); stroke-width: 1.2; }
.fitment__pcd--wheel { fill: none; stroke-width: 1.4; stroke-dasharray: 4 3; }

.fitment__bolt--car { fill: var(--graphite-400); }
.fitment__bolt--wheel { fill: var(--white); stroke-width: 1.4; }

/* Статуси — ті самі кольори, що в таблиці поруч. */
.fitment__dia--wheel.is-ok, .fitment__pcd--wheel.is-ok { stroke: var(--success); }
.fitment__dia--wheel.is-no, .fitment__pcd--wheel.is-no { stroke: var(--danger); }
.fitment__dia--wheel.is-check, .fitment__pcd--wheel.is-check { stroke: var(--warning); }
.fitment__dia--wheel.is-unknown, .fitment__pcd--wheel.is-unknown { stroke: var(--graphite-300); }
.fitment__bolt--wheel.is-ok { stroke: var(--success); }
.fitment__bolt--wheel.is-no { stroke: var(--danger); }
.fitment__bolt--wheel.is-check { stroke: var(--warning); }
.fitment__bolt--wheel.is-unknown { stroke: var(--graphite-300); }

.fitment__row { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.fitment__row strong { margin-left: auto; font-variant-numeric: tabular-nums; }

.fitment__key { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.fitment__key--car { background: var(--graphite-400); }
.fitment__key--wheel { border: 2px dashed var(--graphite-300); }
.fitment__key--wheel.is-ok { border-color: var(--success); }
.fitment__key--wheel.is-no { border-color: var(--danger); }
.fitment__key--wheel.is-check { border-color: var(--warning); }

.fitment__hint {
    margin: 4px 0 0; padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: .85rem; background: var(--warning-soft); color: var(--graphite-700);
}
.fitment__hint--ok { background: var(--success-soft); }
.fitment__hint--no { background: var(--danger-soft); }

@media (max-width: 560px) {
    .fitment { padding: 14px; gap: 14px; }
    .fitment__svg { width: 160px; height: 160px; margin: 0 auto; }
}

/* =====================================================================
   Спарклайн ціни
   ===================================================================== */

.sparkline { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.sparkline svg { display: block; overflow: visible; }

.sparkline__line { stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sparkline__change { font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Падіння ціни — добра новина для покупця, тому зелене; зростання —
   не «помилка», а попередження, тому нейтрально-тепле, не червоне. */
.sparkline--down .sparkline__line, .sparkline--down .sparkline__dot { stroke: var(--success); fill: var(--success); }
.sparkline--down .sparkline__area { fill: rgba(15, 157, 88, .12); }
.sparkline--down .sparkline__change { color: var(--success); }

.sparkline--up .sparkline__line, .sparkline--up .sparkline__dot { stroke: var(--warning); fill: var(--warning); }
.sparkline--up .sparkline__area { fill: rgba(217, 131, 36, .12); }
.sparkline--up .sparkline__change { color: var(--warning); }

.sparkline--flat .sparkline__line, .sparkline--flat .sparkline__dot { stroke: var(--graphite-300); fill: var(--graphite-300); }
.sparkline--flat .sparkline__area { fill: rgba(154, 161, 173, .1); }
.sparkline--flat .sparkline__change { color: var(--text-muted); }

/* =====================================================================
   Скелетони та живе порівняння розмірів
   ===================================================================== */

.skeleton-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
}

.skeleton {
    display: block; border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--graphite-100) 25%, var(--graphite-50) 50%, var(--graphite-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton--media { height: 140px; }
.skeleton--line { height: 12px; }
.skeleton--short { width: 60%; }
.skeleton--price { width: 40%; height: 18px; margin-top: 4px; }

@keyframes skeleton-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Користувачам із увімкненим «зменшити рух» мерехтіння не показуємо. */
@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
    .rating-bar__fill, .rating-dist__fill { transition: none; }
}

.size-play__controls { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 20px; }
.size-play__side { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.size-play__side legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }

.size-play__row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.size-play__row span { min-width: 74px; font-size: .85rem; color: var(--text-muted); }
.size-play__row input[type="range"] { flex: 1; accent-color: var(--accent); }

.size-play__preview {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.size-play__wheel { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.size-play__wheel strong { font-size: 1.05rem; }

@media (min-width: 720px) {
    .size-play__controls { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Головна: сезонний блок, інструменти, бренди, довіра
   ===================================================================== */

.season-focus {
    display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
    padding: 24px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--white);
}
.season-focus__body { flex: 1; min-width: 280px; }
.season-focus__body .section__title { margin-bottom: .4em; }

/* Зима холодна, літо тепле — фон підказує сезон без жодного слова. */
.season-focus--winter { background: linear-gradient(135deg, #f2f7fc, var(--white) 60%); }
.season-focus--summer { background: linear-gradient(135deg, #fff6ef, var(--white) 60%); }

.season-focus__tires { flex: none; display: grid; gap: 8px; width: 260px; }
.season-focus__tire {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: var(--radius-sm); background: var(--white);
    border: 1px solid var(--border); font-size: .87rem;
}
.season-focus__tire:hover { border-color: var(--accent); }
.season-focus__tire img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.season-focus__tire span { display: flex; flex-direction: column; min-width: 0; }
.season-focus__tire .muted { font-size: .8rem; }

.tool-card { display: flex; flex-direction: column; gap: 8px; }
.tool-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-dark);
}
.tool-card h3 { font-size: 1.02rem; margin: 0; }
.tool-card p { margin: 0; font-size: .87rem; color: var(--text-muted); }

.brand-row {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.brand-row__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 16px 10px; min-height: 96px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
}
.brand-row__item:hover { border-color: var(--accent); }
.brand-row__item img { max-height: 40px; width: auto; object-fit: contain; }
.brand-row__name { font-weight: 700; font-size: .95rem; text-align: center; }
.brand-row__meta { font-size: .76rem; color: var(--text-muted); }

@media (max-width: 720px) {
    .season-focus { padding: 18px; gap: 18px; }
    .season-focus__tires { width: 100%; grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Головна сторінка — блоки, яких немає на інших сторінках
   ---------------------------------------------------------------------
   Кільце балу, шкали оцінок, схема розболтовки, смуги класів етикетки,
   рядки орієнтовних цін. Усе на тих самих токенах, що й решта стилю.
   ===================================================================== */

/* Доказова смужка під формою підбору */
.home-proof {
    list-style: none; padding: 0; margin: 24px 0 0;
    display: flex; flex-wrap: wrap; gap: 12px 32px;
    color: var(--graphite-300); font-size: .88rem;
}
.home-proof strong { display: block; color: var(--white); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }

/* Смуга-секція на всю ширину, щоб розбити довгу сторінку на розділи */
.band { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; margin: 40px 0; }

.eyebrow {
    display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px;
}

.note { font-size: .82rem; color: var(--text-muted); margin: 10px 0 0; }
.note--tight { margin-top: 0; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.section__head--gap { margin-top: 32px; }
.field-group { margin-bottom: 14px; }
.cta { margin: 16px 0 0; }

/* Пара блоків, що ділить усю ширину.
   .grid--2 з auto-fill на широкому екрані робить чотири колонки, і два
   блоки займають лише половину контейнера — тут потрібна явна сітка. */
.duo { display: grid; gap: 16px; grid-template-columns: 1fr; }
.duo > * { min-width: 0; }

/* ---------------------------------------------------------------
   Технічний профіль авто
   --------------------------------------------------------------- */
.car-profile { display: grid; gap: 16px; grid-template-columns: 1fr; }
.car-profile > * { min-width: 0; }
.car-profile__photo { height: 140px; display: grid; place-items: center; background: var(--graphite-50); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.car-profile__photo img { width: 100%; height: 100%; object-fit: contain; }
.car-profile__tags { margin-top: 12px; }
.car-profile__table { margin-top: 16px; }

.spec-item__value--text { font-size: 1.1rem; }

/* ---------------------------------------------------------------
   Межі сумісності
   --------------------------------------------------------------- */
.limit__head { display: flex; align-items: center; gap: 8px; }
.limit__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.limit__dot--ok { background: var(--success); }
.limit__dot--warn { background: var(--warning); }
.limit__dot--bad { background: var(--danger); }
.limit__title { font-weight: 700; font-size: .98rem; }
.limit__text { font-size: .88rem; color: var(--text-muted); margin: 8px 0 12px; }
.limit__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }

/* ---------------------------------------------------------------
   Бал шини
   --------------------------------------------------------------- */
.tire-score { text-align: center; }
.tire-score__ring { position: relative; width: 168px; height: 168px; margin: 0 auto 14px; }
.tire-score__ring svg { transform: rotate(-90deg); display: block; }
.tire-score__track { stroke: var(--graphite-100); }
.tire-score__bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; }
.tire-score__value { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: grid; place-content: center; }
.tire-score__value strong { display: block; font-size: 2.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tire-score__value span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.tire-score__verdict { font-size: 1.05rem; font-weight: 700; }
.tire-score__meta { font-size: .88rem; color: var(--text-muted); margin: 4px 0 0; }

/* Шкали оцінок за напрямками */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 42px; gap: 14px; align-items: center; font-size: .9rem; }
.bar__name { color: var(--text-muted); }
.bar__track { height: 8px; border-radius: 20px; background: var(--graphite-100); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 20px; background: var(--accent); width: 0; transition: width .9s ease-out; }
.bar__fill--good { background: var(--success); }
.bar__fill--weak { background: var(--warning); }
.bar__val { text-align: right; font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__val--empty { font-family: var(--font); font-weight: 400; font-size: .78rem; color: var(--text-muted); }

/* Складові балу */
.score-parts { margin-top: 16px; }
.part { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--graphite-100); }
.part:last-child { border-bottom: 0; }
.part__title { font-weight: 600; font-size: .95rem; }
.part__note { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.part__weight { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; }
.part__weight small { display: block; font-family: var(--font); font-weight: 400; font-size: .74rem; color: var(--text-muted); }
.part--off { opacity: .55; }

/* ---------------------------------------------------------------
   Розгорнуте порівняння на головній
   --------------------------------------------------------------- */
.compare-table thead th small { display: block; font-weight: 400; font-size: .78rem; text-transform: none; letter-spacing: 0; color: var(--text-muted); margin-top: 2px; }
.compare-table tbody th { font-weight: 500; color: var(--text-muted); font-size: .88rem; }
.compare-table tbody th small { display: block; font-size: .76rem; color: var(--graphite-300); }
.compare-table__label { width: 32%; }
.compare-table__group td { background: var(--graphite-50); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.compare-table__win { font-weight: 700; color: var(--success); }
.compare-table__win::after { content: " \25B2"; font-size: .6rem; }

.tally-row { margin-top: 16px; }
.tally__count { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tally__list { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------------------------------------------------------------
   Профіль пріоритетів
   --------------------------------------------------------------- */
.slider { margin-bottom: 16px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; margin-bottom: 6px; }
.slider__top b { font-family: var(--font-mono); color: var(--accent-dark); }
.slider input[type="range"] { width: 100%; accent-color: var(--accent); }

.rank { display: grid; grid-template-columns: 28px minmax(0, 1fr) 56px; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.rank + .rank { margin-top: 8px; }
.rank--top { border-color: var(--accent); background: var(--accent-soft); }
.rank__pos { font-size: 1.1rem; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rank--top .rank__pos { color: var(--accent-dark); }
.rank__name { font-weight: 700; font-size: .95rem; }
.rank__meta { display: block; font-size: .78rem; color: var(--text-muted); }
.rank__score { text-align: right; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; }

/* ---------------------------------------------------------------
   Картки каталогу на головній
   --------------------------------------------------------------- */
.card__name { font-weight: 700; font-size: 1rem; margin-top: 2px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; color: var(--text-muted); margin-top: 8px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--graphite-100); font-size: .85rem; }
.card__photo { height: 110px; display: grid; place-items: center; background: var(--graphite-50); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: contain; }
.card__photo-empty { font-size: .8rem; color: var(--graphite-300); }

.price-from { text-align: right; font-family: var(--font-mono); font-weight: 700; }
.price-from small { display: block; font-family: var(--font); font-weight: 400; font-size: .72rem; color: var(--text-muted); }

.score-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-weight: 700; font-size: 1rem; flex: none; }
.score-badge--hi { background: var(--success-soft); color: var(--success); }
.score-badge--mid { background: var(--warning-soft); color: var(--warning); }
.score-badge--lo { background: var(--graphite-100); color: var(--text-muted); font-size: .78rem; }

.review-card__stars { color: var(--accent); font-size: .9rem; letter-spacing: 2px; }
.review-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------------------------------------------------------------
   Розболтовка: список + схема
   --------------------------------------------------------------- */
.pcd-explorer { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pcd-explorer > * { min-width: 0; }
.pcd-explorer__list { display: grid; gap: 6px; align-content: start; }
.pcd-explorer__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--white); cursor: pointer; text-align: left; font-family: inherit;
    transition: border-color .15s, background .15s;
}
.pcd-explorer__btn:hover { border-color: var(--accent); }
.pcd-explorer__btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pcd-explorer__label { font-family: var(--font-mono); font-weight: 700; font-size: .98rem; }
.pcd-explorer__count { font-size: .8rem; color: var(--text-muted); }
.pcd-explorer__vis { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; }
.pcd-scheme .hub { fill: var(--graphite-50); stroke: var(--border); }
.pcd-scheme .ring { fill: none; stroke: var(--accent); stroke-dasharray: 4 5; }
.pcd-scheme .bolt { fill: var(--graphite-800); }
.pcd-scheme text { fill: var(--text-muted); font-size: 11px; font-family: var(--font-mono); }

/* ---------------------------------------------------------------
   Перевірка заміни розміру
   --------------------------------------------------------------- */
.verdict__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.verdict__icon { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; flex: none; }
.verdict__icon--ok { background: var(--success-soft); color: var(--success); }
.verdict__icon--check { background: var(--warning-soft); color: var(--warning); }
.verdict__icon--no { background: var(--danger-soft); color: var(--danger); }
.verdict__title { font-weight: 700; font-family: var(--font-mono); font-size: 1.05rem; }
.verdict__sub { display: block; font-size: .88rem; color: var(--text-muted); }
.verdict__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--graphite-100); font-size: .92rem; }
.verdict__row:last-of-type { border-bottom: 0; }
.verdict__row b { font-family: var(--font-mono); white-space: nowrap; }

/* ---------------------------------------------------------------
   Орієнтовні ціни
   --------------------------------------------------------------- */
.price-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 120px; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--graphite-100); }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: var(--graphite-50); }
.price-row__size { font-family: var(--font-mono); font-weight: 700; }
.price-row__scale { height: 6px; border-radius: 20px; background: var(--graphite-100); position: relative; }
.price-row__span { position: absolute; top: 0; bottom: 0; border-radius: 20px; background: var(--accent); }
.price-row__val { text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: .95rem; }
.price-row__val small { display: block; font-family: var(--font); font-weight: 400; font-size: .74rem; color: var(--text-muted); }
.price-row__offers { text-align: right; font-size: .8rem; color: var(--text-muted); }

/* ---------------------------------------------------------------
   Класи EU-етикетки
   --------------------------------------------------------------- */
.eu-label + .eu-label { margin-top: 20px; }
.eu-label__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; }
.eu-label__name { font-weight: 700; font-size: .95rem; }
.eu-label__note { font-size: .8rem; color: var(--text-muted); flex: 1 1 260px; }
.eu-label__track { display: flex; height: 26px; border-radius: var(--radius-sm); overflow: hidden; background: var(--graphite-100); }
.eu-label__seg { display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #1b1b1b; min-width: 0; overflow: hidden; }
.eu-label__seg[data-class="A"] { background: #00a651; color: #fff; }
.eu-label__seg[data-class="B"] { background: #4cb847; color: #fff; }
.eu-label__seg[data-class="C"] { background: #bfd730; }
.eu-label__seg[data-class="D"] { background: #ffe000; }
.eu-label__seg[data-class="E"] { background: #f7941e; }
.eu-label__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .78rem; color: var(--text-muted); }

/* ---------------------------------------------------------------
   Джерела даних і порожні стани
   --------------------------------------------------------------- */
.source { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--graphite-100); }
.source:last-child { border-bottom: 0; }
.source__name { font-weight: 600; font-size: .95rem; }
.source__what { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

.empty-state { text-align: center; padding: 36px 20px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--white); }
.empty-state__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: .9rem; max-width: 560px; margin: 0 auto; }

/* Попереджувальний варіант .alert — у наборі були лише success і error */
.alert--warning { background: var(--warning-soft); color: #8a5312; }

/* ---------------------------------------------------------------
   Адаптив блоків головної
   --------------------------------------------------------------- */
@media (min-width: 720px) {
    .pcd-explorer__vis { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (min-width: 900px) {
    .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo--aside { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (min-width: 960px) {
    /* Шість параметрів лягають двома рівними рядами по три. З auto-fit
       виходило по п'ять у ряд і один самотній — ряд читався як обрив. */
    .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .car-profile { grid-template-columns: 300px minmax(0, 1fr); }
    .pcd-explorer { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .price-row { grid-template-columns: 110px minmax(0, 1fr) 130px; }
    .price-row__offers { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 560px) {
    /* «покаже 88,9 км/год (похибка 1,1 км/год)» у nowrap-рядку виходить
       за екран. На вузькому — два рядки замість горизонтальної прокрутки. */
    .verdict__row { flex-direction: column; gap: 2px; }
    .verdict__row b { white-space: normal; }

    .bar { grid-template-columns: 104px minmax(0, 1fr) 38px; gap: 10px; font-size: .84rem; }
    .price-row { grid-template-columns: 1fr auto; }
    .price-row__scale { grid-column: 1 / -1; }
    .tire-score__ring { width: 148px; height: 148px; }
    .tire-score__value strong { font-size: 2.4rem; }
    .rank { grid-template-columns: 24px minmax(0, 1fr) 56px; gap: 10px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .tire-score__bar, .bar__fill { transition: none; }
}
