/* Onest, self-hosted (variable 400–800). */
@font-face{font-family:"Onest";font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Onest";font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest";font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1f2937;        /* 14.7:1 на білому */
  --muted: #4b5563;       /* 7.6:1 */
  --line: #e2e5ea;
  --teal: #0e7c86;        /* фірмовий, 4.9:1 з білим */
  --teal-dark: #0a5c64;
  --teal-soft: #e6f4f5;
  --cta: #c2410c;         /* 5.2:1 з білим */
  --cta-dark: #9a3412;
  --yellow: #ffc933;      /* з темним текстом 12:1 */
  --green: #15803d;       /* 5.0:1 */
  --green-soft: #e8f6ed;
  --amber-soft: #fff4d6;
  --amber-text: #8a5a00;  /* 5.6:1 на #fff4d6 */
  --red: #b91c1c;         /* 6.5:1 */
  --red-soft: #fdecec;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tap: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
/* Липка шапка (разом з панеллю «Моє авто») не перекриває те, до чого прокручує браузер: повідомлення WooCommerce, якорі, фокус. Висоту виставляє chrome.js. */
html { scroll-padding-top: calc(var(--header-h, 140px) + 16px); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 10px 14px; z-index: 200; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); padding: 10px 18px; border-radius: var(--radius-sm); border: 2px solid transparent; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s, transform .05s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-yellow { background: var(--yellow); color: #1f2937; }
.btn-yellow:hover { background: #f5b800; }
.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-plain { background: transparent; color: var(--teal-dark); padding: 8px 10px; }
.btn-plain:hover { background: var(--teal-soft); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.btn .spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon { width: 20px; height: 20px; flex: none; }

.section { padding-top: 26px; padding-bottom: 26px; }
[hidden] { display: none !important; }
.panel { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.panel h2, .panel h3 { margin-top: 0; }
.included { background: var(--green-soft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: .92rem; }
.included ul { margin: 4px 0 0; padding-left: 18px; }
.included .note { display: block; margin-top: 4px; }
.note { font-size: .78rem; color: var(--muted); }

/* Повідомлення WooCommerce («додано до кошика», помилки) на всіх сторінках. Фокус на них ставить сам WooCommerce, тож кільце фокуса, призначене для кнопок і полів, тут не потрібне: повідомлення неінтерактивне й озвучується як role=alert. */
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; padding: 12px 16px; border-radius: 10px; margin: 0 0 12px; font-weight: 600; }
.woocommerce-error { background: var(--red-soft); color: var(--red); }
.woocommerce-message, .woocommerce-info { background: var(--teal-soft); color: var(--teal-dark); }
.woocommerce-error:focus, .woocommerce-message:focus, .woocommerce-info:focus,
.woocommerce-error:focus-visible, .woocommerce-message:focus-visible, .woocommerce-info:focus-visible { outline: none; }
