/*
 * Стилі теми avtoaksesuary.
 *
 * Порядок: токени → основа → сітка → типографіка → компоненти → блоки
 * сторінок → адаптив. Глибина — лініями 1 px і контрастом темних блоків,
 * тіней немає навмисно.
 */

/* ---------------------------------------------------------------- токени */

:root {
	--ink: #15171a;
	--ink-2: #1f2226;
	--paper: #f3f1ec;
	--surface: #fbfaf7;
	--photo: #fff;
	--line: #ddd9d0;
	--line-2: #e6e2da;
	--line-3: #ece9e2;
	/* Межа поля ≥ 3:1 до білого й паперу: з #cfcac0 (1,6:1) поля майже не
	   було видно, особливо на слабких екранах і людям зі слабшим зором. */
	--field-line: #8f8a80;
	--muted: #565b63;
	--muted-2: #6b7079;
	--dashed: #b9b4a9;
	--accent: #ffd21f;
	--stock: #17753f;
	/* Синій Telegram для плаваючої кнопки: біла іконка на ньому — 3,7:1,
	   сама кнопка до паперу — 3,3:1, до темного футера — 4,8:1. */
	--tg: #1b8ccb;
	--tg-hover: #1679b0;

	--on-dark: #f3f1ec;
	--on-dark-muted: #a7acb4;
	--on-dark-dim: #c4c8ce;
	--dark-line: #2b2f35;
	--dark-border: #2e3238;
	--dark-border-2: #3a3f46;
	--dark-grid: #1c1f23;

	--r-block: 16px;
	--r-card: 14px;
	--r-md: 12px;
	--r-field: 10px;
	--r-pill: 999px;

	--container: 1280px;
	--gutter: 80px;

	--font-display: "Unbounded", "Trebuchet MS", Verdana, sans-serif;
	--font-text: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--header-h: 172px;
}

/* ------------------------------------------------------------------ база */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 15px;
	line-height: 1.45;
	overflow-wrap: break-word;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

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

a:hover {
	text-decoration: underline;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* Підказка в полі — ≥ 4,5:1 до білого (#8c929b давав 3,1:1), але світліша
   за введений текст, щоб їх не плутати. */
input::placeholder,
textarea::placeholder {
	color: var(--muted-2);
}

/* Фокус — двоколірний: темне кільце видно на світлому тлі й на жовтих
   кнопках (сама жовта рамка давала 1,3:1 до паперу й зливалася з кнопкою),
   жовте — на темній шапці. */
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
	box-shadow: 0 0 0 2px var(--ink);
}

/* Поля пошуку ховають власний outline — кільце малює обгортка. */
.aa-search:focus-within,
.aa-header__search:focus-within {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--ink);
}

/* Класи теми задають display, тож без цього правила атрибут hidden
   перестав би працювати на будь-якому елементі з класом. */
[hidden] {
	display: none !important;
}

.aa-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.aa-skip {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: var(--r-field);
	background: var(--accent);
	color: var(--ink);
	font-weight: 600;
	transition: top .15s;
}

.aa-skip:focus {
	top: 8px;
}

/* ----------------------------------------------------------------- сітка */

.aa-wrap {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.aa-section {
	padding-top: 72px;
}

.aa-section--tight {
	padding-top: 32px;
}

.aa-section:last-of-type {
	padding-bottom: 80px;
}

.aa-stack {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.aa-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.aa-split {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px 24px;
}

/* «Знайти марку / модель» поруч із заголовком — не ширше екрана: з
   фіксованими 400px сторінка марки на телефоні мала 517px завширшки. */
.aa-search--find {
	width: min(400px, 100%);
}

.aa-grid {
	display: grid;
	gap: 20px;
}

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

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

/* ----------------------------------------------------------- типографіка */

h1,
h2,
h3,
h4 {
	margin: 0;
	letter-spacing: -0.02em;
}

.aa-h1,
.aa-h2,
.aa-h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
}

.aa-h1 {
	font-size: clamp(25px, 3.2vw, 38px);
}

.aa-h1--hero {
	font-size: clamp(25px, 3.6vw, 44px);
	line-height: 1.14;
	text-wrap: balance;
}

.aa-h2 {
	font-size: clamp(21px, 2.2vw, 28px);
}

.aa-h3 {
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 600;
}

.aa-title {
	margin: 0;
	font-weight: 700;
	font-size: clamp(21px, 2.4vw, 30px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.aa-mono {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.aa-mono--plain {
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
}

.aa-muted {
	color: var(--muted);
}

.aa-lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
}

.aa-prose {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	max-width: 76ch;
	text-wrap: pretty;
}

/* -------------------------------------------------------------- елементи */

.aa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--r-field);
	background: var(--accent);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}

.aa-btn:hover {
	text-decoration: none;
	filter: brightness(.96);
}

.aa-btn[disabled] {
	cursor: not-allowed;
	opacity: .55;
	filter: none;
}

.aa-btn--dark {
	background: var(--ink);
	color: var(--on-dark);
}

.aa-btn--ghost {
	background: transparent;
	border: 1px solid var(--ink);
}

.aa-btn--big {
	min-height: 60px;
	border-radius: var(--r-md);
	font-size: 17px;
	font-weight: 700;
	padding-inline: 28px;
}

.aa-btn--wide {
	width: 100%;
}

.aa-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-field);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
}

.aa-icon-btn:hover {
	text-decoration: none;
}

.aa-icon-btn--accent {
	border: 0;
	background: var(--accent);
}

.aa-icon-btn--round {
	border-radius: var(--r-pill);
}

.aa-link-accent {
	padding: 0;
	border: 0;
	border-bottom: 2px solid var(--accent);
	background: transparent;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

.aa-link-accent:hover {
	text-decoration: none;
}

/* Текстова кнопка-посилання: лінія — під самим текстом, а зона натискання
   більша за нього (::after), щоб «Змінити авто» влучалося пальцем. */
.aa-link-underline {
	position: relative;
	padding: 0;
	border: 0;
	border-bottom: 1px solid currentcolor;
	background: transparent;
	font-weight: 600;
	cursor: pointer;
}

.aa-link-underline::after {
	content: "";
	position: absolute;
	inset: -12px -6px;
}

.aa-link-underline:hover {
	text-decoration: none;
}

/* «Напишіть нам у Telegram» (inc/telegram.php): іконка й підпис одним рядком. */
.aa-tg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.aa-tg .aa-icon {
	flex-shrink: 0;
}

.aa-link-underline.aa-tg {
	gap: 6px;
}

.aa-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.aa-chip:hover {
	text-decoration: none;
	border-color: var(--ink);
}

.aa-chip--on {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.aa-chip--off {
	border-style: dashed;
	border-color: var(--dashed);
	color: var(--muted-2);
	cursor: default;
}

.aa-chip--sm {
	min-height: 32px;
	padding-inline: 12px;
	font-size: 13px;
	font-weight: 400;
}

.aa-chip__count {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0;
	opacity: .7;
	font-variant-numeric: tabular-nums;
}

.aa-badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
}

.aa-badge--years {
	height: 32px;
	padding-inline: 12px;
	border-radius: 8px;
	font-size: 14px;
}

.aa-badge--sale {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 1;
}

.aa-pill-fit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 14px 0 6px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--on-dark);
	font-size: 13px;
	font-weight: 500;
}

.aa-pill-fit__here::before {
	content: "Це авто у вашому гаражі";
}

.aa-pill-fit__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--ink);
}

.aa-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--stock);
}

.aa-stock--order {
	color: var(--muted);
}

.aa-dot {
	width: 7px;
	height: 7px;
	border-radius: var(--r-pill);
	background: currentcolor;
	flex-shrink: 0;
}

.aa-swatches {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.aa-swatch {
	width: 12px;
	height: 12px;
	border: 1px solid #a9a498;
	border-radius: var(--r-pill);
}

.aa-swatches__rest {
	font-size: 12px;
	color: var(--muted);
}

.aa-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.aa-field__label {
	color: var(--muted);
}

/* Підпис поля форми людина читає, щоб його заповнити, — звичайним текстом
   14px, а не 11px моноширинними великими літерами (як мітки-«брови»). */
.aa-field__label.aa-mono {
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.aa-select {
	position: relative;
	display: flex;
}

.aa-select select {
	appearance: none;
	width: 100%;
	height: 52px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	/* Поле біле й на темній плашці — текст не успадковує світлий колір плашки
	   (у «Спершу оберіть авто» «Оберіть марку» було біле на білому, 1,1:1). */
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.aa-select select:disabled {
	color: var(--muted-2);
	cursor: not-allowed;
}

.aa-select .aa-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	translate: 0 -50%;
	pointer-events: none;
	color: var(--ink);
}

.aa-input {
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	font-size: 16px;
	width: 100%;
}

.aa-search {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	color: var(--muted);
}

.aa-search input {
	flex-grow: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	color: var(--ink);
	font-size: 16px;
}

.aa-switch {
	display: inline-flex;
	justify-content: flex-start;
	width: 48px;
	height: 28px;
	padding: 3px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--field-line);
	cursor: pointer;
	flex-shrink: 0;
}

.aa-switch[aria-checked="true"] {
	justify-content: flex-end;
	background: var(--ink);
}

.aa-switch::after {
	content: "";
	width: 22px;
	height: 22px;
	border-radius: var(--r-pill);
	background: #fff;
}

.aa-switch[aria-checked="true"]::after {
	background: var(--accent);
}

.aa-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	font-size: 15px;
	cursor: pointer;
}

.aa-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--ink);
	flex-shrink: 0;
}

/* «Марка авто» — посилання з виглядом радіокнопки. */
.aa-check--link {
	color: inherit;
	text-decoration: none;
}

.aa-check__radio {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border: 1px solid var(--field-line);
	border-radius: var(--r-pill);
	background: #fff;
}

.aa-check--link[aria-current="true"] .aa-check__radio {
	border: 6px solid var(--ink);
}

.aa-check--link[aria-current="true"] .aa-check__name {
	font-weight: 600;
}

.aa-check__name {
	flex-grow: 1;
}

.aa-photo {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aa-photo--empty {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #f6f4f0, #f6f4f0 8px, #efece6 8px, #efece6 16px);
}

.aa-panel {
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
	padding: 28px 32px;
}

.aa-panel--dark {
	border: 0;
	background: var(--ink);
	color: var(--on-dark);
}

.aa-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--muted);
}

.aa-crumbs__item + .aa-crumbs__item::before {
	content: "/";
	margin-right: 8px;
	color: var(--muted);
}

.aa-crumbs__item [aria-current] {
	color: var(--ink);
}

/* ---------------------------------------------------------------- шапка */

.aa-header {
	background: var(--ink);
	color: var(--on-dark);
}

.aa-topbar {
	border-bottom: 1px solid var(--dark-line);
	font-size: 13px;
	color: var(--on-dark-muted);
}

.aa-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 40px;
	padding-block: 6px;
}

.aa-topbar__notes,
.aa-topbar__links {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

/* Переваги зліва ховаються цілими пунктами, коли не влазять (зайві
   переносяться в другий рядок, якого не видно) — раніше обрізалися посеред
   слова: «Оплата пр». Посилання й Telegram справа — ніколи. */
.aa-topbar__notes {
	flex: 1 1 auto;
	flex-wrap: wrap;
	row-gap: 12px;
	max-height: 20px;
	overflow: hidden;
	line-height: 20px;
}

.aa-topbar__links {
	flex-shrink: 0;
}

.aa-topbar__notes li,
.aa-topbar__links li {
	white-space: nowrap;
}

/* Пункт — флекс, інакше посилання з іконкою сідає на базову лінію й
   підскакує над сусідніми пунктами. */
.aa-topbar__tg {
	display: flex;
}

.aa-topbar__tg a {
	color: var(--on-dark);
	font-weight: 600;
}

.aa-topbar__tg .aa-icon,
.aa-footer__tg .aa-icon {
	color: var(--accent);
}

.aa-bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

/* Логотип — готовий SVG бренду; розмір фіксований, стискати не можна. */
.aa-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
}

.aa-logo:hover {
	text-decoration: none;
}

.aa-logo picture,
.aa-logo__image {
	display: block;
}

.aa-logo__image {
	width: 216px;
	height: 36px;
	max-width: none;
	object-fit: contain;
}

.aa-logo:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.aa-catalog-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 20px;
	flex-shrink: 0;
	border: 0;
	border-radius: var(--r-field);
	background: var(--accent);
	color: var(--ink);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

.aa-catalog-btn:hover {
	text-decoration: none;
}

.aa-catalog-btn .aa-icon--close {
	display: none;
}

.aa-catalog-btn[aria-expanded="true"] .aa-icon--close {
	display: block;
}

.aa-catalog-btn[aria-expanded="true"] .aa-icon--grid {
	display: none;
}

.aa-header__search {
	flex-grow: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	min-width: 0;
	padding: 0 16px;
	border: 1px solid var(--dark-border);
	border-radius: var(--r-field);
	background: var(--ink-2);
	color: var(--on-dark-muted);
}

.aa-header__search input {
	flex-grow: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--on-dark);
	font-size: 15px;
}

.aa-garage-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 16px;
	flex-shrink: 0;
	border: 1px solid var(--dark-border);
	border-radius: var(--r-field);
	background: transparent;
	color: var(--on-dark);
	cursor: pointer;
	text-align: left;
}

.aa-garage-btn:hover {
	text-decoration: none;
}

.aa-garage-btn.is-set {
	border-color: var(--accent);
}

.aa-garage-btn__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
}

.aa-garage-btn__hint {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--on-dark-muted);
}

.aa-garage-btn__car {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.aa-header__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.aa-header__actions .aa-icon-btn {
	border-color: var(--dark-border);
	background: transparent;
	color: var(--on-dark);
	position: relative;
}

.aa-count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
}

.aa-count:empty {
	display: none;
}

.aa-nav {
	border-top: 1px solid var(--dark-line);
	font-size: 14px;
}

.aa-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.aa-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-nav__list a {
	display: flex;
	align-items: center;
	height: 48px;
	border-bottom: 2px solid transparent;
}

.aa-nav__list .current-menu-item > a,
.aa-nav__list a[aria-current] {
	font-weight: 600;
	border-bottom-color: var(--accent);
}

.aa-nav__promo {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-weight: 600;
	color: var(--accent);
}

.aa-nav__promo span:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
}

/* --------------------------------------------------------------- мегаменю */

.aa-mega {
	display: none;
	position: relative;
	z-index: 30;
	background: var(--surface);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

.aa-mega.is-open {
	display: block;
}

.aa-mega__inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	padding-block: 28px 36px;
}

.aa-mega__list {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aa-mega__tabs {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* «Поради» під рубриками (template-parts/megamenu.php): на телефоні й
   планшеті верхнього рядка шапки немає, тож до статей — звідси. */
.aa-mega__guides {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 12px 14px 0;
	border-top: 1px solid var(--line);
	font-size: 15px;
	font-weight: 600;
}

.aa-mega__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--r-field);
	background: transparent;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}

.aa-mega__tab[aria-selected="true"] {
	background: var(--ink);
	color: var(--on-dark);
	font-weight: 600;
}

.aa-mega__panel {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 6px;
}

.aa-mega__panel[hidden] {
	display: none;
}

/* Заглушка, поки вантажаться панелі (template-parts/megamenu.php). */
.aa-mega__wait::before {
	content: "Завантажуємо рубрики…";
}

/* «← Усі категорії» — лише на вузькому екрані, де панель стоїть замість списку. */
.aa-mega__back {
	display: none;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	min-height: 44px;
	padding: 0 12px 0 4px;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 1023px) {
	.aa-mega__back {
		display: inline-flex;
	}

	.aa-mega:not(.is-drilled) .aa-mega__panel {
		display: none;
	}

	.aa-mega.is-drilled .aa-mega__list {
		display: none;
	}
}

.aa-mega__subs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
}

.aa-mega__subs a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: 10px;
	border-bottom: 1px solid var(--line-2);
	font-size: 15px;
}

.aa-mega__promo {
	width: 300px;
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--photo);
	display: flex;
	flex-direction: column;
}

.aa-mega__promo:hover {
	text-decoration: none;
}

/* Карток стільки ж, скільки вкладок; видима лише картка активної. */
.aa-mega__promo[hidden] {
	display: none;
}

.aa-mega__promo-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	padding: 24px;
}

.aa-mega__promo-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: var(--ink);
	color: var(--on-dark);
}

.aa-mega__promo-foot .aa-mono {
	color: var(--accent);
}

/* Рубрики без товарів для авто з гаража (gate.js): сірі й без адреси.
   Вкладка лишається клікабельною — її панель показує, що саме порожнє. */
.aa-mega__tab.is-off {
	color: var(--muted-2);
}

.aa-mega__tab.is-off[aria-selected="true"] {
	color: var(--on-dark-muted);
}

.aa-mega__subs a.is-off,
.aa-mega__panel .aa-link-accent.is-off,
.aa-nav__list a.is-off {
	color: var(--muted-2);
	cursor: default;
}

.aa-mega__subs a.is-off:hover,
.aa-nav__list a.is-off:hover {
	text-decoration: none;
}

.aa-mega__panel .aa-link-accent.is-off {
	border-bottom-color: var(--line);
}

.aa-mega__promo.is-off {
	cursor: default;
}

.aa-mega__promo.is-off .aa-mega__promo-photo {
	opacity: .45;
}

/* ------------------------------------------------------------------ герой */

.aa-hero {
	background-color: var(--ink);
	background-image:
		linear-gradient(var(--dark-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--dark-grid) 1px, transparent 1px);
	background-size: 48px 48px;
	color: var(--on-dark);
}

.aa-hero__inner {
	display: flex;
	gap: 40px;
	align-items: center;
	padding-block: 56px 72px;
}

.aa-hero__text {
	width: 560px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-hero__eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.aa-hero__lead {
	color: var(--on-dark-dim);
	max-width: 540px;
}

.aa-hero__selector {
	margin-top: 8px;
}

/* Авто вже обране: селектор ховаємо, замість нього — шлях до товарів. Клас
   aa-has-car ставить інлайновий скрипт у <head> ще до першого кадру (інакше
   селектор блимав би й зсував сторінку), далі його підтримує garage.js. */
.aa-hero__chosen {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 8px;
}

.aa-has-car .aa-hero__selector {
	display: none;
}

.aa-has-car .aa-hero__chosen {
	display: flex;
}

/* Схема авто: кадр 680×396, як у макеті. Картинка лежить у ньому з відступом
   зверху (62.5px кадру), щоб над дахом і під колесами було місце для чипів;
   виноски й чипи стоять у відсотках від кадру, тож усе масштабується разом
   із колонкою. */
.aa-hero__art {
	position: relative;
	flex-grow: 1;
	min-width: 0;
}

.aa-hero-art {
	position: relative;
	aspect-ratio: 680 / 396;
}

.aa-hero-art__car {
	position: absolute;
	top: 15.78%;
	left: 0;
	width: 100%;
	height: auto;
}

.aa-hero-art__leads {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke-width: 1;
	stroke-linecap: round;
}

.aa-hero__label {
	position: absolute;
	left: var(--l);
	top: var(--t);
	display: flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--hot-border, var(--dark-border-2));
	border-radius: var(--r-pill);
	background: var(--ink-2);
	color: var(--on-dark);
	font-size: 13px;
	white-space: nowrap;
	transition: border-color .2s;
}

.aa-hero__label:hover {
	text-decoration: none;
}

.aa-hero__label-num {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--accent);
}

.aa-hero-art__lead {
	stroke: var(--hot-border, #6f757e);
	transition: stroke .2s;
}

/* Чип без товарів для обраного авто (gate.js) або без категорії в базі:
   сірий, без адреси, виноска пунктиром. */
.aa-hero__label.is-off {
	border-style: dashed;
	color: var(--on-dark-muted);
	cursor: default;
}

.aa-hero__label.is-off:hover {
	text-decoration: none;
}

.aa-hero__label.is-off .aa-hero__label-num {
	color: var(--on-dark-muted);
}

.aa-hero-art__lead.is-off {
	stroke: var(--dark-border-2);
	stroke-dasharray: 2 4;
}

/* Наведення на підпис підсвічує його виноску, і навпаки: змінну отримують
   усі елементи зони, а кожен бере з неї своє. Погашені чипи не світяться. */
.aa-hero__art:has([data-zone="1"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="1"],
.aa-hero__art:has([data-zone="2"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="2"],
.aa-hero__art:has([data-zone="3"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="3"],
.aa-hero__art:has([data-zone="4"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="4"],
.aa-hero__art:has([data-zone="5"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="5"],
.aa-hero__art:has([data-zone="6"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="6"],
.aa-hero__art:has([data-zone="7"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="7"],
.aa-hero__art:has([data-zone="8"]:not(.is-off):is(:hover, :focus-visible)) [data-zone="8"] {
	--hot-border: var(--accent);
}

.aa-hero__quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: var(--on-dark-dim);
}

.aa-hero__quick a {
	border-bottom: 1px solid var(--dark-border-2);
}

/* --------------------------------------------------------------- селектор */

.aa-selector {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	border-radius: var(--r-block);
	background: var(--paper);
	color: var(--ink);
}

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

.aa-selector__fields .aa-field:nth-child(3) {
	grid-column: 1 / -1;
}

.aa-selector--banner {
	flex-direction: row;
	align-items: flex-end;
	gap: 20px;
	padding: 24px 28px;
	background: var(--ink);
	color: var(--on-dark);
	border-radius: var(--r-block);
}

.aa-selector--banner .aa-selector__fields {
	flex-grow: 1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-selector--banner .aa-field__label {
	color: var(--on-dark-muted);
}

.aa-selector--banner .aa-btn {
	background: var(--accent);
	color: var(--ink);
}

.aa-selector__go {
	min-height: 52px;
}

.aa-banner {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 24px 28px;
	border-radius: var(--r-block);
	background: var(--ink);
	color: var(--on-dark);
}

.aa-banner__text {
	width: 330px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.aa-banner__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: -0.02em;
}

.aa-banner__note {
	font-size: 14px;
	color: var(--on-dark-dim);
}

/* --------------------------------------------------------- картки товарів */

.aa-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--surface);
}

.aa-card__photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 24px;
	background: var(--photo);
	border-bottom: 1px solid var(--line-3);
}

.aa-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aa-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
	padding: 16px;
}

.aa-card__eyebrow {
	letter-spacing: 0.04em;
	color: var(--muted);
}

.aa-card__title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	min-height: 40px;
}

.aa-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 8px;
	min-height: 18px;
}

.aa-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 2px;
}

.aa-card__fit {
	display: none;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--stock);
}

.aa-card.is-fit .aa-card__fit {
	display: inline-flex;
}

/* Підписи всього, що залежить від гаража відвідувача, живуть у CSS, а не в
   HTML. HTML однаковий для всіх і кешується, а роботи й ШІ-агенти, які
   читають його без стилів, брали «Підходить» на кожній картці й «У вашому
   гаражі — .» за факти про товар. Читачі екрана такий текст озвучують. */
.aa-card__fit::after {
	content: "Підходить";
}

/* У лістингу конкретного авто підходять усі товари — позначка там зайва.
   Селектор сильніший за правило першого кадру з <head> (aa_theme_garage_flag()). */
.aa-page--model .aa-card[data-car] .aa-card__fit,
.aa-page--intersection .aa-card[data-car] .aa-card__fit {
	display: none;
}

.aa-price {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aa-price__was,
.aa-price__was .amount {
	font-size: 13px;
	color: var(--muted);
}

.aa-price__now {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

/* ------------------------------------------------------- картки категорій */

.aa-cat-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow: hidden;
	padding: 16px 16px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--photo);
}

.aa-cat-card:hover {
	text-decoration: none;
	border-color: var(--ink);
}

.aa-cat-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 8px;
}

/* Довге слово («Автомобільні») не вміщалося поруч із лічильником, і картка
   обрізала його: «1 75» замість «1 755». Тепер лічильник переходить під назву. */
.aa-cat-card__name {
	min-width: 0;
	font-weight: 600;
	font-size: 17px;
	hyphens: auto;
}

.aa-cat-card__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
}

.aa-cat-card--hero {
	grid-column: span 2;
	grid-row: span 2;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	padding: 28px;
}

.aa-cat-card__side {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	width: 220px;
	flex-shrink: 0;
}

.aa-cat-card__big {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(22px, 2.4vw, 30px);
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}

.aa-cat-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aa-cat-card__tags span {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	font-size: 13px;
}

.aa-cat-card--hero .aa-cat-card__photo {
	flex-grow: 1;
	min-width: 0;
	aspect-ratio: auto;
}

.aa-cat-card--all {
	justify-content: space-between;
	background: var(--accent);
	border-color: var(--accent);
	padding: 20px;
	min-height: 176px;
}

.aa-cat-card--all .aa-cat-card__name {
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 18px;
}

.aa-cat-card--all .aa-icon {
	align-self: flex-end;
}

/* ---------------------------------------------------------- картки марок */

.aa-mark-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 18px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--surface);
}

.aa-mark-card:hover {
	text-decoration: none;
	border-color: var(--ink);
}

.aa-mark-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.aa-mark-card__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.02em;
}

.aa-mark-card__models {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.aa-mark-card__models span {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--photo);
	font-size: 13px;
	white-space: nowrap;
}

/* ------------------------------------------------------------ усі марки */

/* Плитки з логотипами, як у вітринах постачальника: марку впізнають за
   значком швидше, ніж шукають рядок за літерою. */
.aa-marks {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 12px;
}

.aa-marks__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
	padding: 18px 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--surface);
	text-align: center;
}

.aa-marks__item:hover {
	text-decoration: none;
	border-color: var(--ink);
}

.aa-marks__item .aa-mark-logo {
	margin-bottom: 8px;
}

.aa-marks__name {
	max-width: 100%;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

/* --------------------------------------------------------- логотип марки */

/* Рамка фіксованої висоти: назви в сусідніх плитках стоять на одній лінії,
   хоч би який логотип — широкий напис чи висока емблема. Розмір самого
   зображення рахує aa_theme_the_mark_logo() за площею. */
.aa-mark-logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.aa-mark-logo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.aa-mark-logo--tile {
	width: 100%;
	height: 60px;
}

.aa-mark-logo--card {
	justify-content: flex-start;
	height: 44px;
}

.aa-mark-logo--heading {
	height: 52px;
}

.aa-mark-logo__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--line-3);
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 600;
}

.aa-mark-logo--card .aa-mark-logo__letter {
	width: 36px;
	height: 36px;
	font-size: 15px;
}

/* ------------------------------------------------ марка: родини й покоління */

.aa-families {
	display: flex;
	flex-direction: column;
	padding: 12px 32px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-families__row {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 12px;
	border-bottom: 1px solid var(--line-2);
}

.aa-families__row:last-child {
	border-bottom: 0;
}

.aa-families__name {
	width: 170px;
	flex-shrink: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.02em;
}

.aa-families__gens {
	flex-grow: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aa-families__gens .aa-chip {
	background: var(--photo);
	padding-inline: 14px;
}

.aa-gens {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aa-gen {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	min-height: 60px;
	justify-content: center;
}

.aa-gen:hover {
	text-decoration: none;
	border-color: var(--ink);
}

.aa-gen__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.02em;
}

.aa-gen__years {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
}

.aa-gen--on {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.aa-gen--on .aa-gen__years {
	color: var(--on-dark-dim);
}

/* --------------------------------------------------------------- лістинг */

.aa-listing {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.aa-filters {
	width: 280px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--surface);
}

.aa-filters__group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aa-filters__price-go {
	min-height: 44px;
}

/* Заголовок і нижня панель — лише коли фільтри відкриті поверх лістингу. */
.aa-filters__head {
	display: none;
}

.aa-filters__foot {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aa-filters__apply {
	display: none;
}

.aa-active-filters {
	gap: 8px;
}

.aa-count--inline {
	position: static;
	margin-left: 2px;
}

.aa-filters__title {
	font-weight: 600;
	font-size: 15px;
}

.aa-filters__sep {
	height: 1px;
	background: var(--line);
}

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

.aa-filters__prices label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
}

.aa-filters__prices input {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	font-family: var(--font-mono);
	font-size: 14px;
	width: 100%;
}

.aa-filters__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aa-color {
	display: flex;
	width: 44px;
	height: 44px;
	padding: 5px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-pill);
	background: var(--surface);
	cursor: pointer;
}

.aa-color[aria-pressed="true"] {
	border-color: var(--ink);
	border-width: 2px;
}

.aa-color span {
	flex-grow: 1;
	border-radius: var(--r-pill);
}

.aa-results {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.aa-toolbar__left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--muted);
}

.aa-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--muted);
}

.aa-toolbar__sort .aa-select select {
	height: 44px;
	background: var(--surface);
	font-size: 14px;
}

.aa-filters-toggle {
	display: none;
}

.aa-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 8px;
	flex-wrap: wrap;
}

.aa-pagination__pages {
	display: flex;
	gap: 6px;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 14px;
}

.aa-pagination__pages .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-field);
	background: var(--surface);
}

.aa-pagination__pages .page-numbers:hover {
	text-decoration: none;
	border-color: var(--ink);
}

.aa-pagination__pages .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.aa-pagination__pages .page-numbers.dots {
	border: 0;
	background: transparent;
	min-width: 24px;
}

.aa-seo {
	display: flex;
	gap: 48px;
	align-items: flex-start;
	padding: 28px 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--surface);
}

.aa-seo__main {
	flex-grow: 1;
	/* На телефоні .aa-seo — колонка з align-items: flex-start, і без межі
	   блок брав би ширину свого найширшого вмісту (таблиці тексту рубрики). */
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aa-seo__aside {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.aa-seo__aside a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	min-height: 28px;
	align-items: center;
}

/* Текст рубрики (inc/category-texts.php): як обрати, що звіряти, питання, а
   останнім розділом — «що є в каталозі». Читають його як статтю: на телефоні
   рядок до 76 знаків, таблиця прокручується вбік; на десктопі — сітка нижче. */
.aa-cat-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	/* Без цих меж таблиця (min-width 520px) розтягує колонку на телефоні,
	   і текст обрізається справа замість прокрутки самої таблиці. */
	min-width: 0;
	max-width: min(76ch, 100%);
	padding-bottom: 12px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-2);
}

.aa-cat-text > * {
	margin: 0;
}

.aa-cat-text h2 {
	margin-top: 12px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(18px, 1.8vw, 22px);
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--ink);
}

.aa-cat-text > h2:first-child {
	margin-top: 0;
}

.aa-cat-text h3 {
	margin-top: 4px;
	font-size: 16px;
	line-height: 1.35;
	color: var(--ink);
}

.aa-cat-text ul,
.aa-cat-text ol {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 1.25em;
}

.aa-cat-text strong {
	color: var(--ink);
}

.aa-cat-text a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-cat-text .aa-cat-text__table {
	width: 100%;
	overflow-x: auto;
}

.aa-cat-text table {
	min-width: 520px;
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.aa-cat-text th,
.aa-cat-text td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.aa-cat-text thead th {
	border-bottom: 2px solid var(--ink);
	vertical-align: bottom;
}

.aa-cat-text tbody th {
	font-weight: 600;
	color: var(--ink);
}

/* На десктопі текст займає всю картку, а рядок лишається читабельним:
   заголовки розділів — ліва колонка, текст і таблиці — права, вступ — на
   всю ширину. Порядок у DOM той самий, сітка лише розкладає його. */
@media (min-width: 1024px) {
	.aa-cat-text {
		display: grid;
		grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
		column-gap: 48px;
		row-gap: 12px;
		align-items: start;
		max-width: none;
		font-size: 16px;
	}

	.aa-cat-text > * {
		grid-column: 2;
	}

	.aa-cat-text > h2 {
		grid-column: 1;
	}

	/* Новий розділ — відступ і лінія над обома колонками. */
	.aa-cat-text > h2,
	.aa-cat-text > h2 + * {
		margin-top: 16px;
		padding-top: 20px;
		border-top: 1px solid var(--line);
	}

	/* Рубрика без тексту — лише «що є в каталозі»: без лінії зверху картки. */
	.aa-cat-text > h2:first-child,
	.aa-cat-text > h2:first-child + * {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.aa-cat-text > p:first-child {
		grid-column: 1 / -1;
		font-size: 17px;
		color: var(--ink);
	}

	.aa-cat-text .aa-prose {
		max-width: none;
	}
}

/* ---------------------------------------------------------- сторінка товару */

.aa-product {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

.aa-gallery {
	width: 660px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aa-gallery__stage {
	position: relative;
	aspect-ratio: 660 / 500;
	padding: 48px 40px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--photo);
}

/* Фото накладене на рамку, а не стоїть у потоці. Інакше Safari рахує його
   height: 100% від усієї рамки разом із полями: рамка росте вниз (660×598
   замість 660×500), а старші версії ще й розширюють її за пропорцією — фото
   заїжджало на праву колонку з ціною. Поля фото успадковує від рамки. */
.aa-gallery__stage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: inherit;
	object-fit: contain;
}

.aa-gallery__counter {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--on-dark);
	font-family: var(--font-mono);
	font-size: 12px;
}

.aa-gallery__fav {
	position: absolute;
	right: 16px;
	top: 16px;
}

.aa-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	padding: 8px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--photo);
	cursor: pointer;
}

.aa-gallery__thumb[aria-current="true"] {
	border: 2px solid var(--ink);
}

.aa-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aa-gallery__thumb--rest {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 600;
	background: var(--surface);
}

.aa-summary {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-summary__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aa-summary__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: var(--muted);
}

.aa-fit-pill {
	display: none;
	align-self: flex-start;
}

.aa-summary.is-fit .aa-fit-pill {
	display: inline-flex;
}

.aa-fit-pill__text::before {
	content: "Підходить до вашого\00a0";
}

/* «Цей товар — для іншого авто»: головна обіцянка магазину — сумісність,
   тож чужий товар має бути помітним ще до кнопки «У кошик». */
.aa-misfit {
	display: none;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px solid #e0b4a8;
	border-radius: var(--r-md);
	background: #fbeee9;
	color: #6b2412;
	font-size: 14px;
	line-height: 1.45;
}

.aa-misfit .aa-icon {
	flex-shrink: 0;
	margin-top: 1px;
}

.aa-misfit .aa-link-underline {
	margin-left: 4px;
	color: inherit;
	white-space: nowrap;
}

.aa-summary.is-misfit .aa-misfit {
	display: flex;
}

.aa-misfit__garage::before {
	content: "У вашому гаражі — ";
}

.aa-misfit__garage::after {
	content: ".";
}

/* Типовий підпис; коли для авто з гаража є такий самий товар, siblings.js
   пише в посилання «Цей самий товар для вашого авто». */
.aa-misfit [data-aa-misfit-link]:empty::before {
	content: "Підібрати для вашого авто";
}

.aa-fit-ask {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.aa-fit-ask .aa-link-underline {
	margin-left: 4px;
	color: var(--ink);
}

.aa-has-car .aa-fit-ask {
	display: none;
}

.aa-buybox {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-buybox__price {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 38px;
	line-height: 1;
	letter-spacing: -0.03em;
}

.aa-buybox__price del {
	display: block;
	font-family: var(--font-text);
	font-size: 16px;
	font-weight: 400;
	color: var(--muted);
}

.aa-buybox__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.aa-buybox__actions .aa-btn--big {
	flex-grow: 1;
}

.aa-buybox__notes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

.aa-buybox__notes > div {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.aa-buybox__notes .aa-icon {
	flex-shrink: 0;
	color: var(--ink);
}

/* Варіативний товар: уся форма WooCommerce — один дочірній блок .aa-buybox,
   тож його gap сюди не доходив, і сітка варіантів злипалась із кнопками. */
.aa-buybox .variations_form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Ціну й наявність обраного варіанта показують велика ціна й рядок наявності
   вгорі (variations.js), а WooCommerce дублювала їх дрібними рядками над кнопками. */
.aa-buybox .woocommerce-variation-price,
.aa-buybox .woocommerce-variation-availability {
	display: none;
}

/* Опис варіанта чи попередження WooCommerce — над кнопками з відступом 12 px
   замість полів <p> за замовчуванням; порожні блоки шаблону місця не займають. */
.aa-buybox .single_variation p {
	margin: 0;
}

.aa-buybox .single_variation > :not(:empty) {
	margin-bottom: 12px;
}

.aa-variants {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.aa-variant {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.aa-variant[aria-checked="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.aa-variant[disabled] {
	border-style: dashed;
	border-color: var(--dashed);
	color: var(--muted-2);
	cursor: not-allowed;
	background: transparent;
}

.aa-variant__name {
	display: flex;
	align-items: center;
	gap: 10px;
}

.aa-variant__dot {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 1.5px solid #a9a498;
	border-radius: var(--r-pill);
}

.aa-variant__note {
	font-family: var(--font-mono);
	font-size: 13px;
	white-space: nowrap;
}

.aa-tabs {
	display: flex;
	gap: 28px;
	border-bottom: 1px solid var(--line);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-tabs button {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 4px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	font-size: 15px;
	color: var(--muted);
	cursor: pointer;
}

.aa-tabs button[aria-selected="true"] {
	font-weight: 600;
	color: var(--ink);
	border-bottom-color: var(--ink);
}

.aa-specs {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.aa-specs__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-height: 44px;
	padding-block: 11px;
	border-bottom: 1px solid var(--line-2);
	font-size: 14px;
}

.aa-specs__key {
	width: 240px;
	flex-shrink: 0;
	margin: 0;
	color: var(--muted);
}

.aa-specs__val {
	margin: 0;
	font-weight: 500;
}

.aa-compat {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border-radius: var(--r-block);
	background: var(--ink);
	color: var(--on-dark);
}

.aa-compat__eyebrow {
	color: var(--accent);
}

.aa-compat__car {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -0.02em;
}

.aa-compat__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--on-dark-dim);
}

.aa-compat__list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.aa-compat__list .aa-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--accent);
}

/* «Цей самий товар є й для інших моделей»: моделі марки чипами. */
.aa-compat__also {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--dark-line);
	font-size: 14px;
}

.aa-compat__also-title {
	color: var(--on-dark-dim);
}

.aa-compat__models {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-compat__model {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid var(--dark-border);
	border-radius: var(--r-pill);
	color: var(--on-dark);
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}

.aa-compat__model:hover,
.aa-compat__model:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

/* Модель з гаража: garage.js ставить is-fit за data-car. */
.aa-compat__model.is-fit {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--ink);
	font-weight: 600;
}

.aa-compat__more summary {
	width: max-content;
	color: var(--accent);
	cursor: pointer;
}

.aa-compat__more[open] summary {
	margin-bottom: 10px;
}

.aa-ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	padding: 22px 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

/* Кнопка Telegram не стискається в три рядки — коли поруч тісно, переходить під текст. */
.aa-ask > div {
	flex: 1 1 200px;
}

.aa-ask .aa-btn {
	white-space: nowrap;
}

.aa-sticky-buy {
	display: none;
}

/* -------------------------------------------------------------- переваги */

.aa-usp {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-usp__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-right: 1px solid var(--line);
}

.aa-usp__item:last-child {
	border-right: 0;
}

.aa-usp__title {
	font-weight: 600;
	font-size: 16px;
}

.aa-usp__text {
	font-size: 14px;
	color: var(--muted);
}

.aa-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 32px;
	border-radius: var(--r-block);
	background: var(--ink);
	color: var(--on-dark);
}

.aa-cta__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ---------------------------------------------------------------- футер */

.aa-footer {
	background: var(--ink);
	color: var(--on-dark);
	margin-top: 72px;
}

.aa-footer__inner {
	display: flex;
	gap: 64px;
	padding-block: 64px 0;
	flex-wrap: wrap;
}

.aa-footer__about {
	width: 400px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aa-footer__logo {
	margin-bottom: 4px;
}

.aa-footer__tagline {
	font-size: 14px;
	color: var(--on-dark-muted);
	max-width: 340px;
}

.aa-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 13px;
}

/* Графік — останнім і приглушено; телефон — другорядний канал після Telegram і пошти. */
.aa-footer__contacts > span:last-child,
.aa-footer__contacts a[href^="tel:"] {
	color: var(--on-dark-muted);
}

.aa-footer__tg {
	margin-bottom: 4px;
	font-family: var(--font-text);
	font-size: 15px;
	font-weight: 600;
	color: var(--on-dark);
}

.aa-footer__col {
	flex-grow: 1;
	flex-basis: 0;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 14px;
}

.aa-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Той самий крок між пунктами, але зона натискання — на всю висоту рядка. */
.aa-footer__col ul a {
	display: inline-block;
	padding-block: 6px;
}

.aa-footer__soon {
	color: var(--on-dark-muted);
}

.aa-footer__head {
	color: var(--on-dark-muted);
}

.aa-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-block: 24px 32px;
	border-top: 1px solid var(--dark-line);
	font-size: 13px;
	color: var(--on-dark-muted);
}

/* --------------------------------------------------------------- гараж */

.aa-modal[hidden] {
	display: none;
}

.aa-modal {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
}

.aa-modal__veil {
	position: fixed;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgb(12 13 15 / 62%);
	cursor: pointer;
}

.aa-modal__box {
	position: relative;
	width: min(960px, 100%);
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px;
	border-radius: 20px;
	background: var(--surface);
}

.aa-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.aa-modal__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.02em;
}

.aa-garage {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.aa-garage__saved {
	width: 300px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aa-garage__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-garage__car {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
	text-align: left;
	cursor: pointer;
}

.aa-garage__car[aria-current="true"] {
	border: 2px solid var(--ink);
}

.aa-garage__car-text {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aa-garage__car-name {
	font-weight: 600;
}

.aa-garage__car-years {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
}

.aa-garage__tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--ink);
}

.aa-garage__pick {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.aa-garage__marks {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.aa-garage__mark {
	min-height: 44px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-field);
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.aa-garage__mark[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.aa-garage__models {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 320px;
	overflow-y: auto;
}

/* Покоління однієї моделі — під її назвою. */
.aa-garage__family {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.aa-garage__family-name {
	grid-column: 1 / -1;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.aa-garage__model-name {
	flex-grow: 1;
	min-width: 0;
}

.aa-garage__model-count {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

.aa-garage__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.aa-garage__search {
	width: 100%;
}

.aa-garage__saved-item {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.aa-garage__remove {
	flex-shrink: 0;
	width: 44px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
	font-size: 22px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
}

.aa-garage__remove:hover {
	color: var(--ink);
	border-color: var(--ink);
}

.aa-garage__all {
	align-self: flex-start;
	font-size: 14px;
}

@media (max-width: 767px) {
	.aa-garage__family {
		grid-template-columns: minmax(0, 1fr);
	}
}

.aa-garage__model {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-field);
	background: #fff;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.aa-garage__model[aria-checked="true"] {
	border: 2px solid var(--ink);
}

.aa-garage__radio {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1px solid var(--field-line);
	border-radius: var(--r-pill);
	background: #fff;
}

.aa-garage__model[aria-checked="true"] .aa-garage__radio {
	border: 6px solid var(--ink);
}

.aa-garage__actions {
	display: flex;
	gap: 10px;
	padding-top: 6px;
	flex-wrap: wrap;
}

.aa-garage__actions .aa-btn:first-child {
	flex-grow: 1;
	min-height: 56px;
	border-radius: var(--r-md);
	font-size: 16px;
	font-weight: 700;
}

/* ------------------------------------------------------- мобільна навігація */

.aa-tabbar {
	display: none;
}

.aa-mobile-garage {
	display: none;
}

/* --------------------------------------------------------------- адаптив */

@media (max-width: 1279px) {
	:root {
		--gutter: 32px;
	}

	.aa-gallery {
		width: 50%;
	}

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

	.aa-hero__text {
		width: 50%;
	}

	/* Схема вужча, а чипи не масштабуються — тіснимо їх, щоб вісім підписів
	   не наїжджали один на одного й не вилазили за кадр (перевірено на 1024). */
	.aa-hero__label {
		left: var(--l-sm, var(--l));
		gap: 6px;
		height: 24px;
		padding: 0 8px;
		font-size: 11px;
	}

	.aa-hero__label-num {
		font-size: 10px;
	}

	.aa-mega__promo {
		display: none;
	}
}

@media (max-width: 1023px) {
	.aa-topbar__notes {
		display: none;
	}

	.aa-marks {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	/* На планшеті пошук переїжджає на другий рядок, інакше між логотипом,
	   «Каталогом» і гаражем від нього лишалася смужка на кілька літер. */
	.aa-bar {
		flex-wrap: wrap;
		row-gap: 12px;
		padding-block: 14px;
		min-height: 0;
	}

	.aa-header__search {
		order: 3;
		flex-basis: 100%;
	}

	.aa-nav {
		display: none;
	}

	.aa-listing {
		flex-direction: column;
	}

	.aa-filters {
		width: 100%;
	}

	.aa-product {
		flex-direction: column;
		gap: 28px;
	}

	.aa-gallery,
	.aa-summary,
	.aa-seo__aside,
	.aa-hero__text,
	.aa-banner__text,
	.aa-garage__saved,
	.aa-footer__about {
		width: 100%;
	}

	.aa-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aa-usp {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aa-usp__item:nth-child(2) {
		border-right: 0;
	}

	.aa-usp__item:nth-child(-n+2) {
		border-bottom: 1px solid var(--line);
	}

	.aa-hero__inner,
	.aa-product,
	.aa-seo {
		flex-direction: column;
	}

	.aa-hero__art {
		display: none;
	}

	.aa-seo {
		gap: 24px;
	}

	.aa-garage {
		flex-direction: column;
	}

	.aa-mega__inner {
		flex-direction: column;
	}

	.aa-mega__list {
		width: 100%;
	}

	.aa-selector--banner {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 16px;
	}

	body {
		padding-bottom: 68px;
	}

	.aa-section {
		padding-top: 32px;
	}

	.aa-section:last-of-type {
		padding-bottom: 32px;
	}

	.aa-topbar,
	.aa-header__actions .aa-icon-btn--fav,
	.aa-garage-btn,
	.aa-footer__col--hide {
		display: none;
	}

	/* Підпис «Каталог» ховаємо лише з очей: читач екрана має чути назву кнопки,
	   а не просто «кнопка». */
	.aa-catalog-btn span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.aa-bar {
		flex-wrap: wrap;
		gap: 12px 8px;
		min-height: 0;
		padding-block: 12px 16px;
	}

	/* Логотип трохи менший, ніж у макеті: у рядку ще «Каталог», дзвінок і
	   кошик, і на 375px вони мають уміститися в один рядок. */
	.aa-logo__image {
		width: 168px;
		height: auto;
	}

	.aa-header__search {
		order: 3;
		flex-basis: 100%;
	}

	/* «Каталог» стоїть праворуч поруч із кошиком, як меню в мобільному макеті:
	   вільне місце забирає логотип, а кнопки йдуть однією групою через 8px,
	   як і кнопки дій між собою. */
	.aa-bar .aa-logo {
		margin-right: auto;
	}

	.aa-catalog-btn {
		width: 48px;
		padding: 0;
		justify-content: center;
	}

	.aa-mobile-garage {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding-block: 10px;
		background: var(--ink-2);
		color: var(--on-dark);
		font-size: 14px;
	}

	.aa-mobile-garage__car {
		display: flex;
		align-items: center;
		gap: 8px;
		font-weight: 600;
	}

	.aa-mobile-garage__tick {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 20px;
		height: 20px;
		border-radius: var(--r-pill);
		background: var(--accent);
		color: var(--ink);
		flex-shrink: 0;
	}

	.aa-hero__inner {
		padding-block: 20px 28px;
	}

	/* «Змінити авто» на телефоні вже є у смужці гаража одразу над героєм. */
	.aa-hero__chosen .aa-link-underline {
		display: none;
	}

	.aa-selector,
	.aa-selector--banner {
		padding: 16px;
	}

	.aa-selector__fields,
	.aa-selector--banner .aa-selector__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px;
	}

	/* Чипи підкатегорій — один рядок із горизонтальним прокручуванням. */
	.aa-row--scroll {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
	}

	.aa-row--scroll::-webkit-scrollbar {
		display: none;
	}

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

	.aa-cat-card--hero {
		grid-row: span 1;
		padding: 16px;
		gap: 8px;
	}

	.aa-cat-card__side {
		width: 50%;
	}

	.aa-cat-card__tags {
		display: none;
	}

	.aa-card__photo {
		padding: 12px;
	}

	.aa-card__body {
		padding: 12px;
		gap: 8px;
	}

	.aa-card__title {
		font-size: 14px;
	}

	.aa-price__now {
		font-size: 18px;
	}

	/* Ціна «від 1 649 ₴» і кнопка кошика не вміщаються в картку 165px —
	   кнопка переноситься під ціну, а не обрізається краєм картки. */
	.aa-card__foot {
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	.aa-marks {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.aa-marks__item {
		padding: 14px 6px 12px;
	}

	.aa-marks__name {
		font-size: 14px;
	}

	.aa-families__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.aa-families {
		padding-inline: 20px;
	}

	.aa-families__name {
		width: auto;
	}

	.aa-usp {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-usp__item {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding: 20px;
	}

	.aa-usp__item:last-child {
		border-bottom: 0;
	}

	.aa-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px;
	}

	.aa-gallery__stage {
		padding: 16px;
		border: 0;
		border-radius: 0;
		aspect-ratio: 1;
	}

	.aa-gallery__thumbs {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 8px;
	}

	.aa-variants {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aa-buybox__notes {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-specs__key {
		width: 45%;
	}

	.aa-tabs {
		gap: 16px;
		overflow-x: auto;
	}


	.aa-pagination {
		flex-direction: column;
		align-items: stretch;
	}

	.aa-pagination .aa-btn {
		width: 100%;
	}

	.aa-pagination__pages {
		justify-content: center;
		flex-wrap: wrap;
	}

	.aa-seo {
		padding: 20px;
	}

	.aa-modal {
		padding: 0;
		align-items: stretch;
	}

	.aa-modal__box {
		border-radius: 0;
		padding: 20px 16px 32px;
		min-height: 100%;
	}

	.aa-garage__marks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aa-garage__models {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-footer {
		margin-top: 32px;
	}

	.aa-footer__inner {
		gap: 28px;
		padding-top: 32px;
	}

	.aa-tabbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		height: 68px;
		background: var(--surface);
		border-top: 1px solid var(--line);
	}

	.aa-tabbar a,
	.aa-tabbar button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		border: 0;
		background: transparent;
		font-size: 11px;
		color: var(--muted);
		cursor: pointer;
	}

	.aa-tabbar a:hover {
		text-decoration: none;
	}

	.aa-tabbar [aria-current="page"] {
		color: var(--ink);
		font-weight: 600;
	}

	.aa-product--sticky {
		padding-bottom: 76px;
	}

	.aa-sticky-buy {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 68px;
		z-index: 41;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px;
		background: var(--surface);
		border-top: 1px solid var(--line);
	}

	.aa-sticky-buy .aa-btn {
		flex-grow: 1;
		max-width: 60%;
	}

	/* Основну кнопку видно на екрані — дубль унизу не потрібен (sticky.js). */
	.aa-sticky-buy.is-covered {
		visibility: hidden;
		opacity: 0;
		transform: translateY(100%);
	}

	.aa-sticky-buy {
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------------------------------------------------------------- кошик */

.aa-cart {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.aa-cart__items {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aa-cart__list {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-cart-row {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}

.aa-cart-row:last-child {
	border-bottom: 0;
}

.aa-cart-row__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 132px;
	height: 104px;
	flex-shrink: 0;
	padding: 10px;
	border: 1px solid var(--line-3);
	border-radius: var(--r-md);
	background: var(--photo);
}

.aa-cart-row__main {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aa-cart-row__title {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
}

.aa-cart-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 14px;
	color: var(--muted);
}

.aa-cart-row__meta p {
	margin: 0;
}

.aa-cart-row__flags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 13px;
}

.aa-cart-row__fit {
	display: none;
	align-items: center;
	gap: 6px;
}

.aa-cart-row__misfit {
	display: none;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #9a2f14;
}

.aa-cart-row.is-misfit .aa-cart-row__misfit {
	display: inline-flex;
}

.aa-cart-row.is-fit .aa-cart-row__fit {
	display: inline-flex;
}

.aa-cart-row__fit .aa-icon {
	color: var(--stock);
}

.aa-cart-row__sum {
	width: 130px;
	flex-shrink: 0;
	text-align: right;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: -0.02em;
}

.aa-cart-row__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: var(--r-field);
	color: var(--muted);
}

.aa-cart-row__remove:hover {
	text-decoration: none;
	color: var(--ink);
}

.aa-qty {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: var(--photo);
}

.aa-qty__btn {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
}

.aa-qty__btn:disabled {
	color: var(--muted-2);
	opacity: 0.45;
	cursor: default;
}

.aa-qty .quantity,
.aa-qty__value {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
}

.aa-qty input.qty {
	width: 42px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 600;
	appearance: textfield;
}

.aa-qty input.qty::-webkit-outer-spin-button,
.aa-qty input.qty::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.aa-qty .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.aa-cart__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 14px;
}

.aa-cart__back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.aa-cart__back:hover {
	text-decoration: none;
}

.aa-cart__aside {
	width: 380px;
	flex-shrink: 0;
}

.aa-cart-empty {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

/* --------------------------------------------------------- підсумок */

.aa-summary-box {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-summary-box__title {
	font-weight: 700;
	font-size: 18px;
}

.aa-summary-box__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
}

.aa-summary-box__shipping {
	text-align: right;
}

.aa-summary-box__sep {
	height: 1px;
	background: var(--line);
}

.aa-summary-box__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
	font-size: 16px;
}

.aa-summary-box__sum,
.aa-summary-box__sum .amount {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.aa-summary-box__notes {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

.aa-summary-box__notes span {
	display: flex;
	gap: 10px;
	align-items: center;
}

.aa-summary-box__notes .aa-icon {
	flex-shrink: 0;
	color: var(--ink);
}

.aa-promo__toggle {
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
	list-style: none;
}

.aa-promo__toggle::-webkit-details-marker {
	display: none;
}

.aa-promo__form {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.aa-promo__form .aa-btn {
	flex-shrink: 0;
}

/* Рядок кошика має шість колонок; щойно на назву лишається менше ніж
   півтори сотні пікселів, підсумок з'їжджає під кількість. */
@media (max-width: 1279px) {
	.aa-cart-row__sum {
		width: auto;
		min-width: 92px;
	}

	.aa-cart-row__photo {
		width: 104px;
		height: 84px;
	}
}

@media (max-width: 1199px) {
	.aa-cart {
		flex-direction: column;
	}

	.aa-cart__aside {
		width: 100%;
	}
}

@media (max-width: 767px) {
	/* Кількість і сума — окремим рядком під фото: поруч із фото вони не
	   вміщалися (84 + 132 + 92 px і проміжки — 332 px при 311 px на 375 px
	   екрана) і розпирали кошик убік. Назва займає колонки 2–3, а колонка 3
	   (auto) росте лише під довгу суму. Колонка 2 — не вужча за 36 px: разом
	   із фото це 132 px під кількість, тож сума на неї не наїжджає. Кнопки
	   кількості й видалення лишаються 44 px — цілі для пальця. */
	.aa-cart-row {
		display: grid;
		grid-template-columns: 84px minmax(36px, 1fr) auto 44px;
		grid-template-areas:
			"photo main main remove"
			"qty   qty  sum  sum";
		gap: 10px 12px;
		padding: 16px;
		align-items: start;
	}

	.aa-cart-row__photo {
		grid-area: photo;
		width: 84px;
		height: 84px;
	}

	.aa-cart-row__main {
		grid-area: main;
	}

	.aa-cart-row__title {
		font-size: 14px;
	}

	.aa-qty {
		grid-area: qty;
		align-self: center;
		justify-self: start;
	}

	/* На 320 px сума на кшталт «1 980 000 ₴» вміщається поруч із кількістю
	   лише трохи меншим кеглем; від ~380 px — 17 px, як і було. */
	.aa-cart-row__sum {
		grid-area: sum;
		width: auto;
		min-width: 0;
		align-self: center;
		justify-self: end;
		font-size: clamp(14px, 4.5vw, 17px);
		white-space: nowrap;
	}

	/* 44px і на телефоні: 32px кошик для видалення важко влучити пальцем. */
	.aa-cart-row__remove {
		grid-area: remove;
	}
}

/* ------------------------------------------- обрізана шапка оформлення */

.aa-header--flow {
	background: var(--ink);
}

.aa-flowbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
	color: var(--on-dark);
}

.aa-flowbar__right {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 14px;
}

.aa-flowbar__back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.aa-flowbar__back:hover {
	text-decoration: none;
}

.aa-flowbar__tg {
	font-weight: 600;
}

.aa-flowbar__tg .aa-icon {
	color: var(--accent);
}

.aa-footer--flow {
	margin-top: 56px;
}

.aa-footer--flow .aa-footer__bottom {
	margin-top: 0;
	border-top: 0;
	align-items: center;
}

.aa-footer--flow ul {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.aa-flow {
	padding-bottom: 0;
}

@media (max-width: 767px) {
	.aa-flowbar {
		min-height: 60px;
	}

	.aa-flowbar__back span {
		display: none;
	}

	/* На телефоні — коротко «Telegram». */
	.aa-flowbar__tg-long {
		display: none;
	}

	.aa-footer--flow .aa-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* ---------------------------------------------------------- оформлення */

.aa-checkout {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

.aa-checkout__main {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Помилки WooCommerce вставляє першим вузлом форми — окремим рядком на всю
   ширину, а не третьою колонкою, що стискала поля до вузької смуги. */
.aa-checkout > .woocommerce-NoticeGroup {
	flex: 1 0 100%;
}

.aa-checkout__aside {
	width: 400px;
	flex-shrink: 0;
}

.aa-checkout__sticky {
	position: sticky;
	top: 24px;
}

.aa-fieldset {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 28px 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-fieldset__title {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0;
}

.aa-fieldset__title .aa-mono {
	color: var(--muted);
}

.aa-fieldset__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
}

.aa-fieldset__grid:empty {
	display: none;
}

.aa-fieldset__note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.aa-fieldset__note .aa-icon {
	flex-shrink: 0;
	color: var(--ink);
}

/* Поля WooCommerce у нашій сітці. */

.aa-checkout .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.aa-checkout .form-row--full,
.aa-checkout .aa-col--full,
.aa-checkout #order_comments_field {
	grid-column: 1 / -1;
}

.aa-checkout .form-row label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.aa-checkout .form-row .required {
	color: var(--muted);
	text-decoration: none;
}


.aa-checkout input[type="text"],
.aa-checkout input[type="tel"],
.aa-checkout input[type="email"],
.aa-checkout textarea,
.aa-checkout select {
	width: 100%;
	min-height: 52px;
	padding: 14px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	font-size: 16px;
}

.aa-checkout textarea {
	min-height: 110px;
	resize: vertical;
}

.aa-checkout label.checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-family: var(--font-text);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
}

/* Слово «необов'язково» вже є в самих підписах — дубль ні до чого. */
.aa-checkout .optional {
	display: none;
}

.aa-checkout .checkbox input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--ink);
	flex-shrink: 0;
}

.aa-checkout .checkbox span {
	font-family: var(--font-text);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
}

.aa-checkout .woocommerce-invalid input,
.aa-checkout .woocommerce-invalid textarea {
	border-color: #b32424;
}

/* Власні «Місто» й «Відділення» не потрібні способам плагіна Нової пошти (checkout.js). */
.aa-checkout .aa-is-off {
	display: none;
}

/*
 * Вибір міста й відділення від плагіна Нової пошти (SmartyParcel): його
 * список зі пошуком — у вигляді наших полів. Заголовок плагіна зайвий:
 * секція вже зветься «Доставка».
 */
/* Порожня обгортка (плагіна немає, його блок ще не змонтовано чи прихований для ручного способу) не лишає проміжку. Чужий вміст на тому ж гачку не ховаємо. */
.aa-ship-picker:not(:has(*)),
.aa-ship-picker:has(> #wcus-billing-fields:only-child):not(:has(.wcus-checkout-fields:not([style*="none"]))) {
	display: none;
}

.aa-ship-picker .wcus-checkout-fields > h3 {
	display: none;
}

.aa-ship-picker .wcus-checkout-fields > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
}

.aa-ship-picker .wcus-checkout-fields > div > div {
	display: contents;
}

.aa-ship-picker .form-row {
	margin: 0;
	padding: 0;
}

.aa-ship-picker .zen-ui-select__value {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 14px 40px 14px 14px !important;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	font-size: 16px;
	color: var(--ink);
}

.aa-ship-picker .zen-ui-select__value > svg {
	right: 16px;
	width: 12px;
	height: 12px;
}

.aa-ship-picker .zen-ui-select__value.disabled {
	border-color: var(--ink);
	background: #fff;
	color: var(--ink);
}

/* Плагін позначає порожні поля помилкою одразу — підсвічуємо лише після спроби оформити (checkout.js). */
.aa-submitted .aa-ship-picker .woocommerce-invalid .zen-ui-select__value {
	border-color: #b32424;
}

.aa-checkout:not(.aa-submitted) .aa-ship-picker .woocommerce-invalid input {
	border-color: var(--field-line);
}

/* Сам список плагін малює в кінці body — звідси селектори від сторінки оформлення. */
.woocommerce-checkout .zen-ui-select__dropdown {
	margin-top: 4px;
	overflow: hidden;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	box-shadow: 0 12px 32px rgb(0 0 0 / 12%);
}

.woocommerce-checkout .zen-ui-select__search {
	padding: 10px;
	border: 0;
	border-bottom: 1px solid var(--line);
}

.woocommerce-checkout .zen-ui-select__search-input {
	min-height: 44px;
	padding: 10px 12px !important;
	border: 1px solid var(--field-line) !important;
	border-radius: var(--r-field) !important;
	font-size: 16px;
}

.woocommerce-checkout .zen-ui-select__options {
	max-height: 320px;
	padding: 6px 0;
	border: 0;
}

.woocommerce-checkout .zen-ui-select__option {
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--ink);
}

.woocommerce-checkout .zen-ui-select__option--current {
	background: var(--paper);
	font-weight: 600;
}

/* Варіант під стрілками клавіатури (checkout.js). */
.woocommerce-checkout .zen-ui-select__option.aa-option--active {
	background: var(--paper);
	box-shadow: inset 3px 0 0 var(--ink);
}

.aa-ship-picker .zen-ui-select__value:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* «Тоді підтвердження надішлемо листом» — під позначкою «Не телефонуйте мені». */
.aa-no-call-note {
	display: block;
	margin-top: 6px;
	padding-left: 30px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
}

.aa-no-call-note:empty {
	display: none;
}

.aa-checkout .checkout-inline-error-message {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #b32424;
}

/* Картки доставки й оплати. */

.aa-ship,
.aa-pay__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-pay__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-ship__option,
.aa-pay__option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--photo);
	cursor: pointer;
}

.aa-ship__option:has(input:checked),
.aa-pay__option:has(input:checked) {
	border: 2px solid var(--ink);
	padding: 13px 15px;
}

.aa-ship__option input,
.aa-pay__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aa-ship__mark,
.aa-pay__mark {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border: 1px solid var(--field-line);
	border-radius: var(--r-pill);
	background: #fff;
}

/* Позначка обраного — окремим правилом через сусіда радіокнопки: браузер без
   :has() (iOS 15.0–15.3, старий Chrome) відкидає все правило зі списку, і не
   було б видно, який спосіб обрано. */
.aa-ship__option input:checked + .aa-ship__mark,
.aa-pay__option input:checked + .aa-pay__mark {
	border: 6px solid var(--ink);
}

.aa-ship__option:has(input:checked) .aa-ship__mark,
.aa-pay__option:has(input:checked) .aa-pay__mark {
	border: 6px solid var(--ink);
}

.aa-ship__option:has(input:focus-visible),
.aa-pay__option:has(input:focus-visible) {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--ink);
}

.aa-ship__text,
.aa-pay__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.aa-ship__name,
.aa-pay__name {
	font-weight: 600;
	font-size: 15px;
}

.aa-ship__note,
.aa-pay__note {
	font-size: 13px;
	color: var(--muted);
}

.aa-pay__item {
	display: contents;
}

.aa-pay__fields {
	grid-column: 1 / -1;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--paper);
	font-size: 14px;
}

.aa-pay__fields p:last-child {
	margin-bottom: 0;
}

/* Підсумок оформлення. */

.aa-summary-box__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.aa-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-review__row {
	display: flex;
	gap: 12px;
	align-items: center;
}

.aa-review__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	padding: 6px;
	border: 1px solid var(--line-3);
	border-radius: var(--r-field);
	background: var(--photo);
}

.aa-review__text {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aa-review__name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}

.aa-review__meta {
	font-size: 13px;
	color: var(--muted);
}

.aa-review__meta p {
	display: inline;
	margin: 0;
}

.aa-review__sum {
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 14px;
}

.aa-summary-box .place-order {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.aa-summary-box__legal {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.aa-summary-box__legal a {
	text-decoration: underline;
}

.aa-checkout .woocommerce-terms-and-conditions-wrapper {
	font-size: 13px;
	color: var(--muted);
}

@media (max-width: 1023px) {
	.aa-checkout {
		flex-direction: column;
	}

	.aa-checkout__main {
		flex: none;
		width: 100%;
	}

	/* На телефоні спершу поля, потім підсумок із підтвердженням: інакше
	   першою під пальцем опинялася кнопка «Підтвердити» до заповнення форми.
	   Суму весь час видно в нижній панелі. */
	.aa-checkout__aside {
		width: 100%;
	}

	.aa-checkout__sticky {
		position: static;
	}

	.aa-ship {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.aa-fieldset {
		padding: 20px 16px 24px;
	}

	.aa-fieldset__grid,
	.aa-ship-picker .wcus-checkout-fields > div,
	.aa-pay__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------- дякуємо */

.aa-done {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.aa-done__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	padding-top: 24px;
}

.aa-done__tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--ink);
}

.aa-done__number {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 15px;
}

.aa-done__note {
	max-width: 62ch;
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	text-wrap: pretty;
}

.aa-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 28px 32px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-steps__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aa-steps__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--photo);
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
}

.aa-steps__item.is-done .aa-steps__mark {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--ink);
}

.aa-steps__title {
	font-weight: 600;
	font-size: 15px;
}

.aa-steps__text {
	font-size: 14px;
	color: var(--muted);
}

.aa-done__panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.aa-done__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

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

	.aa-done__panels {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.aa-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 20px;
	}

	.aa-done__actions .aa-btn {
		flex-grow: 1;
	}
}

/* ------------------------------------------------------------- кабінет */

.aa-account {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.aa-account__nav {
	width: 280px;
	flex-shrink: 0;
}

.aa-account__body {
	flex-grow: 1;
	min-width: 0;
}

.aa-account__aside {
	width: 320px;
	flex-shrink: 0;
}

.aa-account__menu {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 12px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-account__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--r-field);
	font-size: 15px;
}

.aa-account__link:hover {
	text-decoration: none;
	background: var(--paper);
}

.aa-account__link.is-current,
.aa-account__menu .current-menu-item > a {
	background: var(--ink);
	color: var(--on-dark);
	font-weight: 600;
}

/* Меню з wp_nav_menu не має наших класів на посиланнях. */
.aa-account__menu li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--r-field);
	font-size: 15px;
}

.aa-account__menu li > a:hover {
	text-decoration: none;
	background: var(--paper);
}

.aa-account__menu-item--out {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

.aa-garage-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aa-garage-card .aa-garage__car {
	width: 100%;
}

.aa-orders {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aa-order {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-order__head {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.aa-order__number {
	font-size: 13px;
}

.aa-order__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
	border-radius: var(--r-pill);
	font-size: 13px;
	font-weight: 600;
}

.aa-order__status--wait {
	background: var(--accent);
	color: var(--ink);
}

.aa-order__status--done {
	border: 1px solid var(--stock);
	color: var(--stock);
}

.aa-order__status--off {
	border: 1px solid var(--line);
	color: var(--muted);
}

.aa-order__total {
	margin-left: auto;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.aa-order__items {
	display: flex;
	gap: 16px;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.aa-order__photos {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.aa-order__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 6px;
	border: 1px solid var(--line-3);
	border-radius: var(--r-field);
	background: var(--photo);
}

.aa-order__names {
	font-size: 15px;
	line-height: 1.4;
}

.aa-order__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.aa-order__ttn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.aa-order__actions {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.aa-order__actions .aa-btn {
	min-height: 44px;
	padding-inline: 18px;
}

@media (max-width: 1023px) {
	.aa-account {
		flex-wrap: wrap;
	}

	.aa-account__nav,
	.aa-account__aside {
		width: 100%;
	}

	.aa-account__body {
		order: 3;
		flex-basis: 100%;
	}
}

@media (max-width: 767px) {
	.aa-order {
		padding: 16px;
	}

	.aa-order__total {
		width: 100%;
		margin-left: 0;
	}

	.aa-order__items {
		flex-direction: column;
		align-items: flex-start;
	}

	.aa-order__actions {
		width: 100%;
		margin-left: 0;
	}

	.aa-order__actions .aa-btn {
		flex-grow: 1;
	}
}

/* ------------------------------------------- повідомлення WooCommerce */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--ink);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 14px;
	list-style: none;
}

.woocommerce-message {
	border-left-color: var(--stock);
}

.woocommerce-error {
	border-left-color: #b32424;
}

.woocommerce-error li {
	list-style: none;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ink);
	border-radius: var(--r-field);
	font-size: 14px;
	font-weight: 600;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
	text-decoration: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.aa-sticky-buy--checkout {
		bottom: 0;
	}

	body.aa-flow {
		padding-bottom: 76px;
	}

	.aa-sticky-buy--checkout .aa-price__now,
	.aa-sticky-buy--checkout .aa-price__now .amount {
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 20px;
	}
}

/* --------------------------------------------------------------- пошук */

/* Пояснення над видачею: чому показуємо не те, що людина, може, очікувала. */
.aa-note {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 14px;
}

.aa-search-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 600;
}

/* ----------------------------------------------------------------- 404 */

.aa-notfound {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	padding-block: 32px 8px;
}

.aa-notfound .aa-badge--years {
	font-size: 13px;
}

.aa-notfound__text {
	max-width: 52ch;
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--muted);
	text-wrap: pretty;
}

.aa-notfound__search {
	width: min(560px, 100%);
	margin-top: 8px;
}

.aa-notfound__actions {
	justify-content: center;
}

.aa-notfound__ask {
	margin: 0;
	color: var(--muted);
}

.aa-notfound__ask .aa-link-underline {
	color: var(--ink);
}

/* ------------------------------------------------- інформаційні сторінки */

.aa-info {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.aa-info__side {
	width: 280px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 24px;
}

.aa-info__body {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-help {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border-radius: var(--r-block);
	background: var(--ink);
	color: var(--on-dark);
}

.aa-help__title {
	font-weight: 700;
	font-size: 16px;
}

.aa-help__text {
	font-size: 14px;
	color: var(--on-dark-dim);
}

.aa-help__contacts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 6px;
	font-size: 13px;
}

/* Картка й колонка «Контактів» вузькі — підпис кнопки має вміститися в один рядок. */
.aa-help__tg,
.aa-contacts__tg {
	min-height: 48px;
	padding-inline: 12px;
	font-size: 14px;
}

.aa-help__tg {
	margin-top: 8px;
}

/* Текст сторінки — типографіка з макета без зайвих обгорток. */

.aa-info__body > h2,
.aa-info__body .wp-block-heading {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(21px, 2.2vw, 28px);
	letter-spacing: -0.02em;
	margin: 20px 0 0;
}

.aa-info__body h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 12px 0 0;
}

.aa-info__body p,
.aa-info__body li {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--muted);
	text-wrap: pretty;
}

.aa-info__body ul,
.aa-info__body ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-left: 20px;
}

.aa-info__body a {
	text-decoration: underline;
}

.aa-info__body a.aa-btn {
	text-decoration: none;
}

.aa-info__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.aa-info__body td {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.aa-info__body td:first-child {
	width: 240px;
	padding-right: 16px;
	color: var(--muted);
}

/* Назви cookie в політиці конфіденційності довгі й без пробілів: без
   перенесення вони розпирали першу колонку таблиці на телефоні. */
.aa-info__body code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	overflow-wrap: anywhere;
}

/* Акордеон «Часті запитання» на звичайних details. */

.aa-info__body details {
	border-bottom: 1px solid var(--line);
	padding: 18px 0;
}

.aa-info__body summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	list-style: none;
}

.aa-info__body summary::-webkit-details-marker {
	display: none;
}

.aa-info__body summary::after {
	content: "+";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	font-family: var(--font-mono);
	font-weight: 400;
}

.aa-info__body details[open] summary::after {
	content: "−";
	border-color: var(--accent);
	background: var(--accent);
}

.aa-info__body details > *:not(summary) {
	margin-top: 12px;
}

/* ------------------------------------------------------------ контакти */

.aa-contacts {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 20px;
	align-items: start;
}

.aa-contacts__list {
	display: flex;
	flex-direction: column;
}

.aa-contacts__row {
	display: flex;
	gap: 16px;
	padding-block: 18px;
	border-bottom: 1px solid var(--line);
}

.aa-contacts__row:first-child {
	padding-top: 0;
}

.aa-contacts__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.aa-contacts__row > .aa-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--muted);
}

.aa-contacts__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.aa-contacts__title {
	font-weight: 700;
	font-size: 16px;
}

.aa-contacts__values {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
}

.aa-contacts__note {
	font-size: 14px;
	color: var(--muted);
}

.aa-contacts__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aa-contacts__fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aa-contacts__fields .aa-input[aria-invalid="true"] {
	border-color: #b32424;
}

.aa-contacts__error {
	margin: 0;
}

/* Текст помилки стоїть одразу під своїм полем, а не через звичайний проміжок.
   Сильніше за .aa-info__body p, що фарбує абзаци сторінки в сірий. */
.aa-contacts__fields .aa-field__error {
	margin: -8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #b32424;
}

.aa-textarea {
	min-height: 120px;
	padding: 14px;
	resize: vertical;
}

@media (max-width: 1023px) {
	.aa-info {
		flex-direction: column;
	}

	.aa-info__side {
		width: 100%;
		position: static;
	}

	.aa-contacts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.aa-info__body td:first-child {
		width: 45%;
	}

	.aa-notfound {
		padding-block: 16px 0;
	}
}

/* Картки способів доставки й оплати в тексті сторінки. */

.aa-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.aa-cards--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-cards__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-cards__title {
	font-weight: 700;
	font-size: 16px;
	color: var(--ink);
}

.aa-cards__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--muted);
}

@media (max-width: 767px) {
	.aa-cards,
	.aa-cards--2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------ виправлення після аудиту верстки */

/* Приховані поля атрибуції WooCommerce займали першу клітинку сітки оформлення. */
wc-order-attribution-inputs {
	display: none;
}

/* Чипи варіантів не розпирають колонку: довга назва переноситься, ціна лишається.
   Обрізати не можна: «до 110 см, Сірі» й «до 110 см, Чорні» ставали однаковими. */
.aa-variant {
	min-width: 0;
	padding-block: 8px;
}

.aa-variant__name {
	min-width: 0;
	overflow-wrap: anywhere;
}

.aa-variant__note {
	flex-shrink: 0;
}

/* Вузька сітка варіантів — телефон або десктоп до ~1100 px: назва зверху, ціна
   знизу, як у мобільному макеті. Інакше колонка ціни ламала назву в три рядки. */
.aa-variants {
	container-type: inline-size;
}

@container (width < 430px) {
	.aa-variant {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 4px;
		padding: 10px 14px;
	}
}

/* Рядок категорій — завжди в один рядок. Що не влізло, переноситься в другий,
   а його відрізає висота: пункт зникає цілим, а не обрізаним посеред слова. */
.aa-nav__list {
	flex-wrap: wrap;
	height: 48px;
	min-width: 0;
	overflow: hidden;
}

.aa-nav__list a {
	white-space: nowrap;
}

/* Чип «Ще N підкатегорій». */
.aa-chip--more {
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.aa-chip--more svg {
	width: 16px;
	height: 16px;
}

/* Банер «показати для вашого авто» на сторінці категорії. */
.aa-banner--car {
	justify-content: space-between;
}

.aa-banner--car .aa-banner__text {
	flex-grow: 1;
}

.aa-banner--car .aa-btn {
	flex-shrink: 0;
}

/* Лічильник у промо-картці мегаменю. */
.aa-mega__promo-count {
	display: block;
	margin-top: 4px;
	color: var(--muted);
}

/* Кнопка «Усі категорії» на мобільній головній; на десктопі її замінює плитка. */
.aa-home-cats__all {
	display: none;
}

/* Компактна панель сторінки товару (лише мобільний). */
.aa-pbar {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding-block: 6px;
}

.aa-pbar__back {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-grow: 1;
	min-width: 0;
	min-height: 44px;
	font-weight: 600;
	color: var(--on-dark);
}

/* min-width: 0 — інакше елемент флексу не стискається нижче довжини тексту
   і «…» не спрацьовує: на 320px кошик виїжджав за край екрана. */
.aa-pbar__back span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aa-pbar__back svg {
	flex-shrink: 0;
}

.aa-pbar__btn {
	position: relative;
	width: 44px;
	height: 44px;
	border-color: var(--dark-line);
	background: var(--ink-2);
	color: var(--on-dark);
}

.aa-pbar__search {
	display: none;
	padding-bottom: 12px;
}

.aa-pbar__search:not([hidden]) {
	display: block;
}

/* Форми кабінету у стилі теми: вхід, «Контактні дані», скидання пароля. */
.aa-login {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.aa-login__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 480px;
	padding: 28px 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-login__note {
	margin-top: 6px;
}

.woocommerce-EditAccountForm,
.woocommerce-ResetPassword,
.lost_reset_password {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 560px;
}

.woocommerce-form-row,
.woocommerce-EditAccountForm .form-row,
.lost_reset_password .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.woocommerce-form-row > label,
.woocommerce-EditAccountForm .form-row > label,
.lost_reset_password .form-row > label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}

.woocommerce-form-row .required,
.woocommerce-EditAccountForm .required {
	color: var(--muted);
	text-decoration: none;
}

.woocommerce-Input,
.woocommerce-EditAccountForm input.input-text,
.lost_reset_password input.input-text {
	height: 52px;
	width: 100%;
	padding: 0 14px;
	border: 1px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	font-size: 16px;
}

.woocommerce-EditAccountForm fieldset {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 8px 0 0;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
}

.woocommerce-EditAccountForm legend {
	padding: 0 8px;
	font-weight: 600;
}

.woocommerce-EditAccountForm em,
.woocommerce-form-row em {
	font-style: normal;
	font-size: 13px;
	color: var(--muted);
}

/* «Показати пароль»: WooCommerce вставляє кнопку в поле, тема її малює —
   з ним легше ввести пароль без помилки, особливо з телефона. */
.password-input {
	position: relative;
	display: block;
}

.password-input input {
	padding-right: 52px;
}

.show-password-input {
	position: absolute;
	top: 50%;
	right: 4px;
	width: 44px;
	height: 44px;
	translate: 0 -50%;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23565b63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px no-repeat;
	cursor: pointer;
}

.show-password-input.display-password {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2315171a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4 20 20'/%3E%3C/svg%3E");
}

.woocommerce-EditAccountForm .woocommerce-Button,
.lost_reset_password .woocommerce-Button,
.woocommerce-form-row button[type="submit"]:not(.aa-btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--r-field);
	background: var(--accent);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	margin: 0 0 16px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--ink);
	border-radius: var(--r-field);
	background: var(--surface);
	list-style: none;
}

.woocommerce-error {
	border-left-color: #B32424;
}

@media (max-width: 767px) {
	/* Головна: шість категорій і кнопка «Усі», без блоку марок — як у мобільному макеті. */
	.aa-home-cats .aa-cat-card:nth-child(n + 8),
	.aa-home-cats .aa-cat-card--all,
	.aa-home-marks {
		display: none;
	}

	.aa-home-cats__all {
		display: inline-flex;
		width: 100%;
	}

	/* Сторінка товару: компактна панель замість повної шапки, гаража й крихт. */
	.single-product .aa-bar,
	.single-product .aa-mobile-garage,
	.single-product .aa-crumbs {
		display: none;
	}

	.single-product .aa-pbar {
		display: flex;
	}

	.aa-banner--car {
		flex-direction: column;
		align-items: stretch;
	}

	.aa-login__form {
		padding: 20px 16px;
	}
}

/* Найвужчі екрани: логотип 212 px, кошик і відступи не влазять разом із
   кнопкою «Каталог» у шапці — на телефоні каталог і так є в нижній панелі. */
@media (max-width: 389px) {
	.aa-logo__image {
		width: 148px;
	}

	.aa-bar .aa-catalog-btn,
	.aa-bar .aa-icon-btn {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 359px) {
	.aa-bar .aa-catalog-btn {
		display: none;
	}
}

/* ---------------------------------------------- фільтри на вузькому екрані */

@media (max-width: 1023px) {
	/* Фільтри на планшеті й телефоні — панель поверх лістингу, а не два екрани
	   розгорнутих груп над товарами. */
	.aa-filters {
		display: none;
	}

	.aa-filters.is-open {
		position: fixed;
		inset: 0;
		z-index: 70;
		display: flex;
		width: auto;
		max-width: 480px;
		margin-left: auto;
		padding: 0 16px;
		border: 0;
		border-radius: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		/* Решта сторінки притінена, щоб було видно: це окрема панель. */
		box-shadow: 0 0 0 100vmax rgb(21 23 26 / 45%);
	}

	.aa-filters__head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-block: 12px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
	}

	.aa-filters__foot {
		position: sticky;
		bottom: 0;
		margin-top: auto;
		padding-block: 12px 16px;
		background: var(--surface);
		border-top: 1px solid var(--line);
	}

	.aa-filters__apply {
		display: inline-flex;
		justify-content: center;
	}

	.aa-filters-toggle {
		display: inline-flex;
	}

	.aa-listing {
		flex-direction: column;
	}

	.aa-sheet-open,
	.aa-sheet-open body {
		overflow: hidden;
	}
}

/* ------------------------------------------- лістинг на телефоні: товари вище */

@media (max-width: 767px) {
	/* Роки вже є в заголовку, а «Змінити авто» — у смужці гаража над ним:
	   на телефоні ці дублі зсували перший товар за межі екрана. */
	.aa-badge--years,
	.aa-listing-meta [data-aa-garage-open] {
		display: none;
	}

	/* «Фільтри» й сортування — одним рядком; «Показано N із M» — під ними. */
	.aa-toolbar {
		gap: 8px 12px;
	}

	.aa-toolbar__left {
		display: contents;
	}

	.aa-toolbar__left > [data-aa-shown] {
		order: 3;
		width: 100%;
		font-size: 13px;
	}

	.aa-toolbar__sort label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.aa-toolbar__sort {
		flex: 1 1 0;
		min-width: 0;
	}

	.aa-toolbar__sort .aa-select {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* ------------------------------------------------ «додано в кошик» */

/* Власне сповіщення замість сірого посилання WooCommerce біля кнопки. */
.aa-card .added_to_cart {
	display: none;
}

.aa-icon-btn.added {
	position: relative;
}

.aa-icon-btn.added::after {
	content: "✓";
	position: absolute;
	top: -6px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: var(--r-pill);
	background: var(--stock);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.aa-icon-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.aa-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(560px, calc(100vw - 32px));
	padding: 14px 12px 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
	translate: 0 150%;
	opacity: 0;
	visibility: hidden;
	transition: translate 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}

.aa-toast.is-on {
	translate: 0 0;
	opacity: 1;
	visibility: visible;
}

.aa-toast:empty {
	display: none;
}

.aa-toast__tick {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--r-pill);
	background: var(--stock);
	color: #fff;
	font-weight: 700;
}

.aa-toast__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.aa-toast__title {
	font-weight: 700;
	white-space: nowrap;
}

.aa-toast__name {
	overflow: hidden;
	font-size: 13px;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aa-toast__go {
	flex-shrink: 0;
	min-height: 44px;
	padding: 0 14px;
	font-size: 14px;
}

.aa-toast__close {
	flex-shrink: 0;
	width: 36px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 22px;
	color: var(--muted);
	cursor: pointer;
}

@media (max-width: 767px) {
	/* Над нижньою навігацією, на всю ширину. */
	.aa-toast {
		left: 16px;
		right: 16px;
		bottom: 84px;
		width: auto;
		flex-wrap: wrap;
	}

	.aa-toast__go {
		order: 3;
		flex: 1 1 100%;
		justify-content: center;
	}

	/* На сторінці товару внизу ще липка панель «У кошик». */
	.single-product .aa-toast {
		bottom: 156px;
	}
}

/* ------------------------------------------- плаваюча кнопка Telegram */

/* Над усім вмістом, але під фіксованими панелями теми (нижня навігація 40,
   «У кошик» 41, фільтри 70, тост 80, вікна 90): якщо щось і зійдеться, панель
   лишиться зверху й клікабельною. Над «У кошик» кнопку піднімає sticky.js
   через --aa-float-lift; поки відкриті вікно, фільтри, мегаменю чи тост —
   ховається. */
.aa-tg-float {
	position: fixed;
	right: max(24px, env(safe-area-inset-right, 0px));
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 39;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--r-pill);
	background: var(--tg);
	color: #fff;
	box-shadow: 0 6px 20px rgb(21 23 26 / 22%), 0 2px 6px rgb(21 23 26 / 14%);
	translate: 0 calc(-1 * var(--aa-float-lift, 0px));
	transition: translate 0.15s ease, background-color 0.15s, opacity 0.15s, visibility 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.aa-tg-float:hover {
	background: var(--tg-hover);
	text-decoration: none;
}

/* Загальний :focus-visible скруглює рамку на 4 px — тут вона кругла. */
.aa-tg-float:focus-visible {
	border-radius: var(--r-pill);
	outline-offset: 3px;
}

/* Площина іконки зміщена вліво-вниз — оптично по центру кола. */
.aa-tg-float .aa-icon {
	margin: 2px 3px 0 0;
}

html.aa-sheet-open .aa-tg-float,
html:has(.aa-modal:not([hidden])) .aa-tg-float,
html:has(.aa-mega.is-open) .aa-tg-float,
html:has(.aa-toast.is-on) .aa-tg-float {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Кінець сторінки не ховається під кнопкою: 24 + 56 px і проміжок. */
body:has(.aa-tg-float) .aa-footer__bottom {
	padding-bottom: 96px;
}

@media (max-width: 767px) {
	/* Над нижньою навігацією (68 px), ціль 48 px. */
	.aa-tg-float {
		right: max(16px, env(safe-area-inset-right, 0px));
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
		width: 48px;
		height: 48px;
	}

	.aa-tg-float .aa-icon {
		width: 23px;
		height: 23px;
	}

	body:has(.aa-tg-float) .aa-footer__bottom {
		padding-bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aa-tg-float {
		transition: none;
	}
}

@media print {
	.aa-tg-float {
		display: none;
	}
}

/* Товару немає: пояснення й «спитати менеджера» замість кнопок кошика. */
.aa-oos {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

/* Обраний варіант у липкій панелі: «2 ряди (5 килимків) · змінити». */
.aa-sticky-buy__variant {
	display: block;
	max-width: 100%;
	overflow: hidden;
	font-size: 13px;
	color: var(--muted);
	text-decoration: underline;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aa-sticky-buy .aa-price {
	min-width: 0;
}

/* ------------------------------------------ фото товару на весь екран */

.aa-gallery__stage img {
	cursor: zoom-in;
}

.aa-gallery__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	background: var(--photo);
}

.aa-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 56px 16px 48px;
	border: 0;
	background: rgb(21 23 26 / 94%);
	color: var(--on-dark);
}

.aa-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.aa-lightbox::backdrop {
	background: rgb(21 23 26 / 60%);
}

.aa-lightbox__img {
	max-width: min(1200px, 100%);
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--r-md);
	background: #fff;
}

.aa-lightbox__close,
.aa-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--dark-border-2);
	border-radius: var(--r-pill);
	background: var(--ink-2);
	color: var(--on-dark);
	cursor: pointer;
}

.aa-lightbox__close {
	top: 12px;
	right: 12px;
}

.aa-lightbox__nav {
	top: 50%;
	translate: 0 -50%;
}

.aa-lightbox__nav--prev {
	left: 12px;
}

.aa-lightbox__nav--next {
	right: 12px;
}

.aa-lightbox__counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	translate: -50% 0;
	color: var(--on-dark-muted);
}

.aa-lightbox-open,
.aa-lightbox-open body {
	overflow: hidden;
}

@media (max-width: 767px) {
	/* На телефоні стрілки — унизу, щоб не закривали фото. */
	.aa-lightbox__nav {
		top: auto;
		bottom: 8px;
		translate: none;
	}
}

/* Рубрика без товарів для авто з гаража на головній — як і в мегаменю:
   сіра, без переходу. */
.aa-cat-card.is-off {
	opacity: 0.45;
	cursor: default;
	pointer-events: none;
}

.aa-cat-card.is-off .aa-cat-card__photo {
	filter: grayscale(1);
}

/* Заголовки колонок футера — справжні h2, вигляд той самий. */
h2.aa-footer__head {
	font-weight: 400;
}

/* --------------------------------------------------------------- відгуки */

/* Зірки — темно-жовті: фірмовий жовтий на світлому тлі майже не видно. */
.aa-stars {
	display: inline-flex;
	color: #b77f00;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1;
}

.aa-stars__off {
	color: var(--line);
}

.aa-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
}

.aa-rating:hover span:last-child {
	text-decoration: underline;
}

.aa-reviews {
	padding-top: 20px;
}

.aa-reviews__summary {
	gap: 10px;
	font-weight: 600;
}

.aa-reviews__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-review {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.aa-review__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-bottom: 8px;
}

.aa-review__verified {
	font-size: 13px;
	color: var(--stock);
}

.aa-review .aa-prose p {
	margin: 0;
}

.aa-review-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 560px;
	padding-top: 8px;
}

.aa-review-form__hint {
	margin: -8px 0 0;
	font-size: 13px;
}

.aa-rate {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Від п'яти до одного в розмітці, від одного до п'яти на екрані: так
   «~ label» фарбує обрану зірку й усі менші. */
.aa-rate__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 4px;
	margin-top: 6px;
}

.aa-rate__stars label {
	font-size: 30px;
	line-height: 1;
	color: var(--line);
	cursor: pointer;
}

.aa-rate__stars input:checked ~ label,
.aa-rate__stars label:hover,
.aa-rate__stars label:hover ~ label {
	color: #b77f00;
}

.aa-rate__stars input:focus-visible + label {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- поради */

/* Стаття: розмітка інформаційної сторінки (.aa-info), але текст довгий —
   рядок до ~75 знаків, темніший колір абзаців, відступи між блоками. */

.aa-guide__body {
	max-width: 780px;
	gap: 24px;
}

.aa-guide__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aa-guide__eyebrow {
	align-self: flex-start;
	color: var(--muted);
}

.aa-guide__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.aa-info__body .aa-guide__byline a {
	color: var(--ink);
	font-weight: 600;
}

.aa-guide__short {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 24px;
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	background: var(--surface);
}

.aa-guide__short-label {
	color: var(--muted);
}

.aa-info__body .aa-guide__short p {
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
}

.aa-guide__text img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
}

.aa-guide__text figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

/* Відео YouTube: до кліку — кадр-прев'ю й кнопка (video.js вставляє плеєр).
   Прев'ю з i.ytimg.com 4:3 зі смугами згори й знизу — object-fit їх обрізає.
   Рамка — абсолютно позиційована, як фото товару: у WebKit aspect-ratio з
   потоковим img на 100 % висоти розтягує блок. */
.aa-video__play,
.aa-video__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--ink);
}

.aa-guide__text .aa-video__play img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	opacity: 0.92;
	transition: opacity 0.2s, transform 0.3s;
}

.aa-video__play:hover img,
.aa-video__play:focus-visible img {
	opacity: 1;
	transform: scale(1.02);
}

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

.aa-video__btn {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s;
}

.aa-video__btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent var(--ink);
}

.aa-video__play:hover .aa-video__btn {
	transform: translate(-50%, -50%) scale(1.08);
}

.aa-video__frame {
	border: 0;
}

.aa-guide__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aa-guide__text > * {
	margin: 0;
}

.aa-guide__text h2 {
	margin-top: 20px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(21px, 2.2vw, 28px);
	letter-spacing: -0.02em;
	line-height: 1.2;
	scroll-margin-top: 16px;
}

.aa-guide__text h3 {
	margin-top: 8px;
}

.aa-info__body .aa-guide__text p,
.aa-info__body .aa-guide__text li {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
}

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

/* Таблиці порівняння: шапка, рядки через лінію, на телефоні — прокрутка
   вбік, а не стиснуті до нечитабельного колонки. */
.aa-guide__text .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

.aa-guide__text table {
	min-width: 520px;
	font-size: 15px;
}

/* Стилі блоків малюють рамку кожній клітинці — тут лише лінії між рядками. */
.aa-guide__text .wp-block-table th,
.aa-guide__text .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--line);
}

.aa-guide__text .wp-block-table thead {
	border-bottom: 0;
}

.aa-guide__text .wp-block-table th {
	border-bottom: 2px solid var(--ink);
}

.aa-guide__text th {
	padding: 12px 12px 12px 0;
	text-align: left;
	vertical-align: bottom;
	font-weight: 700;
}

.aa-info__body .aa-guide__text td {
	padding: 12px 12px 12px 0;
	color: var(--ink-2);
}

.aa-info__body .aa-guide__text td:first-child {
	width: auto;
	color: var(--ink);
	font-weight: 600;
}

/* «З досвіду» — цитата менеджера чи покупця. */
.aa-guide__text blockquote {
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--line);
}

.aa-guide__text blockquote p {
	font-style: italic;
}

.aa-guide__text blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	color: var(--muted);
}

/* Зміст у бічній колонці. */
.aa-guide__toc {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aa-guide__toc ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.4;
}

.aa-guide__toc a {
	color: var(--muted);
}

.aa-guide__toc a:hover {
	color: var(--ink);
}

/* «Підібрати для свого авто»: темна картка збоку, світлий блок під текстом. */
.aa-guide-pick {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border-radius: var(--r-block);
	background: var(--ink);
	color: var(--on-dark);
}

.aa-guide-pick__title {
	font-weight: 700;
	font-size: 16px;
}

.aa-guide-pick__text {
	font-size: 14px;
	color: var(--on-dark-dim);
}

.aa-guide-pick__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-guide-pick__list a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-top: 1px solid var(--dark-line);
}

.aa-guide-pick__name {
	font-weight: 600;
	font-size: 15px;
}

.aa-guide-pick__meta {
	color: var(--on-dark-muted);
}

.aa-guide-pick__car {
	margin-top: 4px;
}

.aa-guide-pick--inline {
	padding: 24px 28px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
}

.aa-guide-pick--inline .aa-guide-pick__text,
.aa-guide-pick--inline .aa-guide-pick__meta {
	color: var(--muted);
}

.aa-guide-pick--inline .aa-guide-pick__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
}

.aa-info__body .aa-guide-pick a {
	text-decoration: none;
}

.aa-info__body .aa-guide-pick a:hover .aa-guide-pick__name {
	text-decoration: underline;
}

.aa-guide-pick--inline .aa-guide-pick__list a {
	border-top-color: var(--line);
}

.aa-guide-pick--inline .aa-guide-pick__car {
	align-self: flex-start;
}

/* Автор під статтею. */
.aa-guide__author {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.aa-guide__author-photo {
	width: 88px;
	height: 88px;
	flex-shrink: 0;
	border-radius: var(--r-pill);
	object-fit: cover;
}

.aa-guide__author > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aa-info__body .aa-guide__author p {
	font-size: 15px;
}

.aa-info__body .aa-guide__author .aa-guide__author-name {
	font-weight: 700;
	font-size: 18px;
	color: var(--ink);
}

.aa-guide__more {
	margin-top: 24px;
}

/* Картки статей: зміст розділу й «Ще поради». */
.aa-guide-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--surface);
}

.aa-guide-card__photo {
	display: block;
	aspect-ratio: 1200 / 630;
	border-bottom: 1px solid var(--line-3);
	background: var(--photo);
}

.aa-guide-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aa-guide-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
	padding: 20px 22px 22px;
}

.aa-guide-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.aa-guide-card__lead {
	flex-grow: 1;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--muted);
}

.aa-guides-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 780px;
}

/* «Корисно перед покупкою» на сторінці товару. */
.aa-guides-box {
	display: flex;
	flex-direction: column;
	padding: 20px 28px 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-block);
	background: var(--surface);
}

.aa-guides-box__eyebrow {
	margin-bottom: 4px;
	color: var(--muted);
}

.aa-guides-box__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
}

.aa-guides-box__item + .aa-guides-box__item {
	border-top: 1px solid var(--line);
}

.aa-guides-box__item .aa-icon {
	flex-shrink: 0;
	margin-top: 1px;
}

.aa-guides-box__item:hover {
	text-decoration: none;
}

.aa-guides-box__item:hover .aa-guides-box__title {
	text-decoration: underline;
}

.aa-guides-box__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.aa-guides-box__title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
}

/* «Порада: …» над лістингом рубрики. */
.aa-guide-hint {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	max-width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 14px;
	line-height: 1.35;
}

.aa-guide-hint:hover {
	border-color: var(--ink);
	text-decoration: none;
}

.aa-guide-hint .aa-icon {
	flex-shrink: 0;
}

.aa-guide-hint__label {
	font-weight: 700;
}

@media (max-width: 1023px) {
	/* Колонка .aa-info на телефоні стала б над заголовком: зміст там
	   нікому не потрібен, а «Підібрати для авто» є й під текстом. */
	.aa-guide .aa-info__side {
		display: none;
	}

	/* .aa-info у колонку ставить align-items: flex-start — стаття тоді
	   ширшала б до таблиці порівняння (520 px) і виходила за екран. */
	.aa-guide__body {
		width: 100%;
		max-width: none;
	}

	/* «Поради» на головній — стрічкою з прокручуванням: три картки одна під
	   одною на телефоні займали 1 400 px, на планшеті третя лишалась сама. */
	.aa-home-guides .aa-guide-grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
	}

	.aa-home-guides .aa-guide-grid::-webkit-scrollbar {
		display: none;
	}

	.aa-home-guides .aa-guide-card {
		flex: 0 0 min(82%, 340px);
		scroll-snap-align: start;
	}
}

@media (max-width: 767px) {
	.aa-guide-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-guide__short {
		padding: 16px 18px;
	}

	.aa-info__body .aa-guide__text p,
	.aa-info__body .aa-guide__text li {
		font-size: 16px;
	}

	.aa-guide-pick--inline {
		padding: 20px;
	}

	.aa-guide-pick--inline .aa-guide-pick__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-guides-box {
		padding-inline: 20px;
	}

	.aa-guide__author-photo {
		width: 64px;
		height: 64px;
	}
}

/* Позначка для автора в перегляді чернетки: «[ДОСВІД: …]». */
.aa-guide-todo {
	padding: 1px 6px;
	border-radius: 4px;
	background: #ffe680;
	color: var(--ink);
}
