/* ==========================================================================
   Azja Motors — design layer 10: COMPONENTS (layer am-components)
   The concept's shared components, with the concept's class names, so area views can port concept markup
   1:1: buttons (+ press feedback, dark-surface accent variant), icon buttons, links, badges, chips,
   segmented controls, tabs, the car card, the rail, accordions, ranges, form controls, tiles and bands,
   breadcrumbs, page head, pagination, tables, rich text, toasts (+ server flash), popover, modal/sheet,
   spinners (+ photo spinner), skeletons, empty states, glass recipes.
   Everything here sits in @layer am-components: any plain (unlayered) rule in an area file overrides it.
   Behaviour for these components lives in public/design/am.js (window.AM).
   ========================================================================== */

@layer am-components {

  /* ---------- Buttons: pills, never hollow ----------
     .btn = accent (#422E15, white text) · .btn--dark = solid black · .btn--light = cream on dark surfaces
     On black surfaces (.on-dark, .band-dark, .hero) the accent pill turns bronze with dark text (variant A),
     or use .btn--on-dark explicitly. Press feedback: :active and .is-pressed (am.js, pointer + keyboard). */
  .btn {
    --bg: var(--cherry); --bg-h: var(--cherry-hover); --bg-p: var(--cherry-press); --fg: #fff;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: var(--pill);
    background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
    text-align: center; white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent; user-select: none;
    transition: background-color var(--t-color) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-color) var(--ease-out);
  }
  .btn:hover { background: var(--bg-h); }
  .btn:active, .btn.is-pressed { background: var(--bg-p); transform: scale(.975); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .22); transition-duration: 60ms; }
  .btn svg { width: 20px; height: 20px; flex: none; }
  .btn--dark { --bg: var(--btn-dark); --bg-h: var(--btn-dark-hover); --bg-p: var(--btn-dark-press); --fg: #fff; }
  .btn--light { --bg: #F4F1EC; --bg-h: #FFFFFF; --bg-p: #E5E0D8; --fg: var(--ink); }
  .btn--light:active, .btn--light.is-pressed { box-shadow: inset 0 0 0 2px rgb(0 0 0 / .12); }
  .btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
  .btn--block { display: flex; width: 100%; }
  .btn--wrap { white-space: normal; }
  .btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }
  /* accent on black (owner 2026-10-02, variant A): bronze pill, dark text 6.5:1 */
  .btn--on-dark,
  :is(.on-dark, .band-dark, .hero) .btn:not(.btn--dark, .btn--light) {
    --bg: var(--cherry-on-dark); --bg-h: var(--cherry-on-dark-hover); --bg-p: var(--cherry-on-dark-press); --fg: #111111;
  }
  .btn--on-dark:active, .btn--on-dark.is-pressed,
  :is(.on-dark, .band-dark, .hero) .btn:not(.btn--dark, .btn--light):is(:active, .is-pressed) { box-shadow: inset 0 0 0 2px rgb(0 0 0 / .18); }
  @media (max-width: 767px) { .btn { white-space: normal; text-wrap: balance; padding-block: 10px; } }

  /* ---------- Icon buttons (48 px round) ---------- */
  .icon-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--pill);
    background: var(--surface); color: var(--ink); -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color var(--t-color) var(--ease-out), color var(--t-color) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-color);
  }
  .icon-btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
  .icon-btn:active, .icon-btn.is-pressed { transform: scale(.94); transition-duration: 60ms; }
  .icon-btn svg { width: 22px; height: 22px; }
  .icon-btn[disabled], .icon-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
  .icon-btn--glass { background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
  .icon-btn--dark { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
  .icon-btn--dark:hover { background: #fff; color: var(--ink); }
  .icon-btn--sm { width: 44px; height: 44px; }
  .icon-btn[aria-pressed="true"] { color: var(--cherry); }
  .icon-btn[aria-pressed="true"]:hover { color: #fff; }
  .icon-btn[aria-pressed="true"] .ico-heart { fill: currentColor; }

  /* ---------- Links ---------- */
  .link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-bottom: 2px; font-weight: 600; color: var(--ink);
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: color var(--t-color) var(--ease-out), background-size var(--t-color) var(--ease-out); }
  .link:hover { color: var(--cherry); }
  .link svg { width: 18px; height: 18px; transition: transform var(--t-color) var(--ease-out); }
  .link:hover svg { transform: translateX(3px); }
  .link--cherry, .link--accent { color: var(--cherry); }
  :is(.on-dark, .band-dark) .link { color: var(--on-dark); }
  :is(.on-dark, .band-dark) .link:hover { color: var(--cherry-on-dark); }
  .back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); }
  .back svg { width: 20px; height: 20px; transition: transform var(--t-color) var(--ease-out); }
  .back:hover svg { transform: translateX(-3px); }
  /* running-text links (consent lines, notes) */
  .consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .text-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
  .text-link:hover { color: var(--cherry); }

  /* ---------- Badges ---------- */
  .badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border-radius: var(--r-badge);
    background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .badge--dark { background: var(--ink); color: #fff; }
  .badge--soft { background: var(--panel); }
  .badge--accent { background: var(--cherry); color: #fff; }
  .badge--ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

  /* ---------- Chips ---------- */
  .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pill);
    background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; font-weight: 600;
    transition: background-color var(--t-color) var(--ease-out), color var(--t-color) var(--ease-out), transform var(--t-fast); }
  a.chip:hover, button.chip:hover { background: var(--ink); color: #fff; box-shadow: none; }
  .chip:active, .chip.is-pressed { transform: scale(.96); }
  .chip svg { width: 18px; height: 18px; }
  .chip[aria-pressed="true"], .chip[aria-current="true"], .chip[aria-current="page"], .chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
  /* removable filter chip (listing) */
  .fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 14px; border-radius: var(--pill);
    background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; transition: background-color var(--t-color), transform var(--t-fast); }
  .fchip:hover { background: var(--btn-dark-hover); }
  .fchip:active, .fchip.is-pressed { transform: scale(.96); }
  .fchip svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: rgb(255 255 255 / .16); }
  .fchip--clear { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 10px; }
  .fchip--clear:hover { background: var(--header-hover); }

  /* ---------- Segmented control (sliding indicator placed by am.js) ----------
     Concept markup: buttons with aria-checked. Production groups (rate panel [data-segment], VAT options)
     mark the current one with .is-active / aria-pressed — both are styled. Before am.js places the
     indicator (.has-ind), the current button paints its own fill, so there is no flash. */
  .seg { position: relative; display: inline-flex; max-width: 100%; padding: 4px; border-radius: var(--pill); background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg__ind { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--pill); background: var(--ink);
    transition: transform 360ms var(--ease-settle), width 360ms var(--ease-settle); }
  .seg button { position: relative; min-height: 44px; padding: 0 18px; border-radius: var(--pill); font-size: .9375rem; font-weight: 600; white-space: nowrap;
    color: var(--body); transition: color var(--t-color) var(--ease-out); -webkit-tap-highlight-color: transparent; }
  .seg button:is([aria-checked="true"], .is-active, [aria-pressed="true"]) { color: #fff; }
  .seg:not(.has-ind) button:is([aria-checked="true"], .is-active, [aria-pressed="true"]) { background: var(--ink); }
  .seg button:not([aria-checked="true"], .is-active, [aria-pressed="true"]):hover { color: var(--ink); }
  .seg button:active, .seg button.is-pressed { transform: scale(.97); }
  .seg--dark { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--line-dark); }
  .seg--dark .seg__ind { background: #fff; }
  .seg--dark button { color: var(--on-dark-muted); }
  .seg--dark button:is([aria-checked="true"], .is-active, [aria-pressed="true"]) { color: var(--ink); }
  .seg--dark:not(.has-ind) button:is([aria-checked="true"], .is-active, [aria-pressed="true"]) { background: #fff; }
  .seg--dark button:not([aria-checked="true"], .is-active, [aria-pressed="true"]):hover { color: #fff; }
  .seg--block { display: flex; width: 100%; }
  .seg--block button { flex: 1; padding: 0 10px; }
  @media (max-width: 767px) { .seg button { padding: 0 14px; font-size: .875rem; } }

  /* ---------- Tabs (sliding underline placed by am.js) ---------- */
  .tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button, .tabs [role="tab"] { position: relative; flex: none; min-height: 52px; padding: 0 16px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color var(--t-color) var(--ease-out); }
  .tabs [role="tab"]:hover { color: var(--ink); }
  .tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
  .tabs__ind { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--cherry); transition: transform 360ms var(--ease-settle), width 360ms var(--ease-settle); }
  .tabs:not(.has-ind) [role="tab"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--cherry); }
  .tabpanel { padding-top: 8px; }
  .tabpanel:focus-visible { outline-offset: 6px; }

  /* ---------- Car card (concept): photo 3:2, brand eyebrow, model, version, facts, price | rate, pill ---------- */
  .card { position: relative; display: flex; flex-direction: column; height: 100%; container-type: inline-size;
    background: var(--surface); border-radius: var(--r); overflow: hidden; color: var(--body);
    transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out); }
  .card:hover { box-shadow: var(--shadow-card-hover); }
  .card__media { position: relative; aspect-ratio: 3 / 2; background: var(--panel); overflow: hidden; }
  .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-expand), opacity 280ms var(--ease-out); }
  .card:hover .card__media img { transform: scale(1.03); }
  .card__media .badge { position: absolute; left: 14px; top: 14px; }
  .card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; overflow-wrap: anywhere; }
  .card__brand { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .card__title { margin-top: 4px; font-size: 1.25rem; line-height: 1.35; font-weight: 700; color: var(--ink); }
  .card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); } /* the whole card is the link target */
  .card__title a:focus-visible { outline: none; box-shadow: none; }
  .card:has(.card__title a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
  .card__version { margin-top: 2px; min-height: 2.9em; font-size: .875rem; line-height: 1.45; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__price { margin-top: auto; padding-top: 18px; }
  .card .btn { position: relative; z-index: 2; margin-top: 16px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
  .facts > div { min-width: 0; }
  .facts dt { font-size: .8125rem; line-height: 1.33; letter-spacing: .02em; color: var(--muted); }
  .facts dd { font-size: .9375rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .facts .wide { grid-column: 1 / -1; }
  .price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .price-row small { display: block; font-size: .8125rem; letter-spacing: .02em; line-height: 1.4; color: var(--muted); }
  .price-row .price { font-size: 1.5rem; line-height: 1.2; }
  .price-row .rate { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1.3; }
  .price-row .rate small { font-weight: 400; }
  .price-row .rate b { font-size: 1.0625rem; }
  @container (max-width: 340px) {
    .price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .price-row .rate { text-align: left; }
    .price-row .rate small { display: inline; margin-right: 6px; }
  }

  /* ---------- Article tile (home "Artykuły", articles list): photo 16:10, meta, title, excerpt, link ---------- */
  .articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
  .article { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; transition: box-shadow 280ms var(--ease-out); }
  .article:hover { box-shadow: var(--shadow-card-hover); }
  .article__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
  /* article covers come as <picture> (phones: the 800 px source); the wrapper must not take part in layout */
  :is(.article__media, .feature-article__media, .article-cover) > picture { display: contents; }
  .article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-expand), opacity 280ms var(--ease-out); }
  .article:hover .article__media img { transform: scale(1.03); }
  .article__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
  /* wraps (4 px rows) when a date + reading time + category do not fit one line (articles list) */
  .article__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8125rem; color: var(--muted); }
  .article h3 { margin-top: 10px; font-size: 1.25rem; line-height: 1.35; font-weight: 700; }
  .article h3 a::after { content: ""; position: absolute; inset: 0; }
  .article .article__excerpt { margin-top: 10px; font-size: .9375rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .article .link { margin-top: auto; padding-top: 14px; align-self: flex-start; }
  @media (max-width: 1099px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .articles > :nth-child(3) { display: none; } }
  @media (max-width: 767px) { .articles { grid-template-columns: minmax(0, 1fr); } .articles > :nth-child(3) { display: flex; } }

  /* ---------- Rail: drag carousel (physics in am.js: AM.Rail, auto-initialised on .rail) ---------- */
  .rail { position: relative; }
  .rail__viewport { overflow: hidden; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); padding-block: 8px 28px; outline: none; }
  .rail__viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--r); }
  .rail__track { position: relative; display: flex; gap: var(--gutter); touch-action: pan-y; will-change: transform; cursor: grab; user-select: none; -webkit-user-select: none; transition: opacity 220ms var(--ease-out); }
  .rail__track.is-dragging { cursor: grabbing; }
  .rail__track.is-dragging a { pointer-events: none; }
  .rail__track img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
  .rail__slide { flex: 0 0 calc((100% - 2.4 * var(--gutter)) / 3.3); min-width: 0; }
  .rail__foot { display: flex; align-items: center; gap: 24px; margin-top: 4px; }
  .rail__progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
  .rail__thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 2px; background: var(--ink); will-change: transform; }
  .rail__nav { display: flex; gap: 10px; }
  /* one head gap (concept): the rail keeps 8 px above its cards for the hover lift; that room overlaps the head gap */
  .section-head + .rail > .rail__viewport { margin-top: -8px; }
  .rail.is-filtering .rail__track { opacity: 0; transition: opacity 120ms var(--ease-out); }
  :is(.on-dark, .band-dark) .rail__progress { background: rgb(255 255 255 / .2); }
  :is(.on-dark, .band-dark) .rail__thumb { background: #fff; }
  @media (max-width: 1099px) { .rail__slide { flex-basis: calc((100% - var(--gutter)) / 2.15); } }
  @media (max-width: 767px) {
    .rail__slide { flex-basis: 84%; }
    .rail__foot .rail__nav, .section-head__tools .rail__nav { display: none; }
  }

  /* ---------- Accordion (details.acc; height animation in am.js) ---------- */
  .acc { border-bottom: 1px solid var(--line); }
  .acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0;
    cursor: pointer; font-weight: 600; color: var(--ink); -webkit-tap-highlight-color: transparent; }
  .acc > summary::-webkit-details-marker { display: none; }
  .acc > summary .chev { width: 22px; height: 22px; flex: none; transition: transform var(--t-panel) var(--ease-expand); }
  .acc[open] > summary .chev { transform: rotate(180deg); }
  .acc > summary:hover { color: var(--cherry); }
  .acc > summary .cnt { margin-left: auto; margin-right: 6px; font-size: .875rem; font-weight: 500; color: var(--muted); }
  .acc__body { padding: 0 0 22px; color: var(--muted); }
  .acc__body > * + * { margin-top: 10px; }
  details.acc[data-animating] > .acc__body { overflow: hidden; }
  :is(.on-dark, .band-dark) .acc { border-color: var(--line-dark); }
  :is(.on-dark, .band-dark) .acc > summary { color: #fff; }
  :is(.on-dark, .band-dark) .acc > summary:hover { color: var(--cherry-on-dark); }
  :is(.on-dark, .band-dark) .acc__body { color: var(--on-dark-muted); }

  /* ---------- Range slider (am.js keeps --p = filled part in sync) ---------- */
  .range { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
  .range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cherry-on-dark) var(--p), rgb(255 255 255 / .18) var(--p)); }
  .range::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .18); }
  .range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--cherry-on-dark); }
  .range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); transition: transform var(--t-fast) var(--ease-out); }
  .range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
  .range:active::-webkit-slider-thumb { transform: scale(1.15); }
  .range:focus-visible { outline: none; box-shadow: none; }
  .range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--dark-2), 0 0 0 6px #fff; }
  .range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--dark-2), 0 0 0 6px #fff; }
  .range--light::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--cherry) var(--p), var(--line) var(--p)); }
  .range--light::-moz-range-track { background: var(--line); }
  .range--light::-moz-range-progress { background: var(--cherry); }
  .range--light::-webkit-slider-thumb { background: var(--ink); }
  .range--light::-moz-range-thumb { background: var(--ink); }
  .range--light:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
  .range--light:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }

  /* ---------- Forms ---------- */
  .form-card { background: var(--surface); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); }
  .form-card h3 { font-size: 1.25rem; }
  /* paragraph type only for copy: an .eyebrow (am-base) keeps its own size, tracking and colour — a later layer would
     otherwise win over it regardless of specificity */
  .form-card > p { margin-top: 6px; }
  .form-card > p:not(.eyebrow) { color: var(--muted); font-size: .9375rem; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
  .form-grid .full { grid-column: 1 / -1; }
  .field { min-width: 0; }
  .field label, .field .label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; color: var(--ink); }
  .field .hint { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
  .field .err { display: none; margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--danger); }
  .field.is-invalid .err { display: block; }
  .input, .select, .textarea {
    width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r); background-color: var(--surface);
    border: 1px solid var(--line-input); color: var(--ink); font-size: 1rem;
    transition: border-color var(--t-color) var(--ease-out), box-shadow var(--t-color) var(--ease-out);
  }
  .input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
  .input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
  .input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(26 25 23 / .14); border-radius: var(--r); }
  .field.is-invalid :is(.input, .select, .textarea), :is(.input, .select, .textarea)[aria-invalid="true"] { border-color: var(--danger); }
  .textarea { min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
  .select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1917' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
  .select--pill { min-height: 48px; border-radius: var(--pill); font-weight: 600; }
  .select--pill:focus-visible { border-radius: var(--pill); }
  .check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: .9375rem; color: var(--body); -webkit-tap-highlight-color: transparent; }
  .check input { -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin: 0;
    border-radius: 6px; border: 1.5px solid var(--line-input); background: var(--surface); transition: background-color var(--t-fast), border-color var(--t-fast); }
  .check input::after { content: ""; width: 12px; height: 7px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 160ms var(--ease-settle); }
  .check input:checked { background: var(--ink); border-color: var(--ink); }
  .check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
  .check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }
  .check:hover input { border-color: var(--muted); }
  .check .count { margin-left: auto; font-size: .8125rem; color: var(--muted); }
  .check.is-empty { opacity: .45; }
  .range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .range-pair :is(.input, .select) { min-height: 48px; padding: 0 12px; font-size: .9375rem; }
  .range-pair .select { padding-right: 36px; background-position: right 10px center; }
  .search { position: relative; flex: 1 1 280px; max-width: 400px; }
  .search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
  .search .input { padding-left: 48px; border-radius: var(--pill); }
  .search .input:focus-visible { border-radius: var(--pill); }
  .consent { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
  .form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .form-success { display: none; margin-top: 24px; padding: 20px 22px; border-radius: var(--r); background: var(--panel); color: var(--ink); }
  .form-success strong { display: block; font-size: 1.0625rem; }
  form.is-sent .form-success, .form-success.is-on { display: block; }
  form.is-sent .form-grid { display: none; }
  .form-alert { padding: 14px 18px; border-radius: var(--r); background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ok); }
  .form-alert--error { box-shadow: inset 3px 0 0 var(--danger); }
  @media (max-width: 767px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- Tiles and bands (surface rule: beige page -> white tile -> tint / black block; never beige on beige) ---------- */
  .tile { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.6vw, 32px); }
  .tile--list { padding-block: 4px; }
  .tile--list > .acc:last-of-type { border-bottom: 0; }
  .tile--dark { background: var(--dark); color: var(--on-dark); }
  .more-band { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: clamp(28px, 3.4vw, 48px);
    border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark-muted); }
  .more-band h2 { color: #fff; }
  .more-band p { margin-top: 10px; max-width: 62ch; }

  /* ---------- Breadcrumbs ---------- */
  .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); }
  .crumbs ol, .crumbs ul { display: contents; }
  .crumbs li { display: inline-flex; align-items: center; gap: 6px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .crumbs svg { width: 14px; height: 14px; }
  /* phones: every crumb is a 44 x 44 target ("Home" was 38 px wide); padding + negative margin keep the text in place */
  @media (max-width: 767px) { .crumbs a { min-height: 44px; min-width: 44px; justify-content: center; padding-inline: 4px; margin-inline: -4px; } }

  /* ---------- Page head (listing, editorial pages): crumbs, serif title, lead, side info ---------- */
  .page-head { padding-top: clamp(24px, 3vw, 40px); padding-bottom: var(--head-gap); }
  .page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-top: 18px; }
  .page-head h1 { text-wrap: balance; }
  .page-head p { margin-top: 14px; max-width: 56ch; }
  .page-head p:not(.eyebrow) { color: var(--body); }
  .live-count { display: inline-flex; align-items: center; justify-self: end; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--pill);
    background: var(--surface); font-weight: 600; color: var(--ink); white-space: nowrap; }
  .dot-live { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(21 128 61 / .14); }
  @media (max-width: 767px) { .page-head__grid { grid-template-columns: minmax(0, 1fr); } .live-count { display: none; } }

  /* ---------- Pagination ---------- */
  .pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
  .pager a, .pager span { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border-radius: var(--pill); font-weight: 600; color: var(--ink); }
  .pager a { background: var(--surface); transition: background-color var(--t-color), color var(--t-color), transform var(--t-fast); }
  .pager a:hover { background: var(--ink); color: #fff; }
  .pager a:active, .pager a.is-pressed { transform: scale(.95); }
  .pager [aria-current="page"] { background: var(--ink); color: #fff; }
  .pager .wide { display: inline-flex; gap: 6px; padding: 0 18px; }
  .pager .wide svg { width: 18px; height: 18px; }
  .pager [aria-disabled="true"], .pager .is-disabled { opacity: .4; pointer-events: none; }
  .pager .gap { min-width: 24px; padding: 0; color: var(--muted); }
  @media (max-width: 767px) { .pager .num-far { display: none; } }

  /* ---------- Tables (data on a white tile; .table-scroll keeps wide tables inside the page on phones) ---------- */
  .table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--r-lg); background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .table-scroll:focus-visible { outline-offset: 2px; }
  .table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; color: var(--body); }
  .table-scroll > .table { min-width: 560px; }
  .table :is(th, td) { padding: 14px 18px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
  .table thead :is(th, td) { border-top: 0; padding-block: 16px 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .table tbody th { font-weight: 600; color: var(--ink); }
  .table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .table .is-highlight { background: var(--panel); }
  .table :is(tfoot, .is-total) :is(th, td) { border-top: 2px solid var(--ink); font-weight: 700; color: var(--ink); }

  /* ---------- Rich text (articles, privacy policy, server HTML) ---------- */
  .prose { color: var(--body); font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; }
  .prose > * + * { margin-top: 1.1em; }
  .prose :is(h2, h3, h4) { scroll-margin-top: calc(var(--header-h) + 24px); }
  .prose h2 { margin-top: 1.9em; font-family: var(--serif); font-weight: 400; font-stretch: 75%; font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem); line-height: 1.18; letter-spacing: -0.005em; }
  .prose h3 { margin-top: 1.6em; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
  .prose h4 { margin-top: 1.4em; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
  .prose :is(h2, h3, h4) + * { margin-top: .6em; }
  .prose > :first-child { margin-top: 0; }
  .prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-color) var(--ease-out); }
  .prose a:hover { color: var(--cherry); }
  .prose strong { color: var(--ink); }
  .prose ul { padding-left: 1.4em; }
  .prose ul > li { position: relative; }
  .prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); }
  .prose ol { padding-left: 1.6em; list-style: decimal; }
  .prose ol > li::marker { color: var(--muted); font-weight: 700; }
  .prose li + li { margin-top: .45em; }
  .prose li > :is(ul, ol) { margin-top: .45em; }
  .prose blockquote { padding: 18px 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 3px 0 0 var(--cherry); color: var(--ink); }
  .prose :is(img, video) { border-radius: var(--r); }
  .prose figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
  .prose hr { margin-block: 2em; border-top-color: var(--line-strong); }
  .prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
  /* .prose breaks long words anywhere, which also shrinks a cell's min-content width: auto table layout then squeezed
     short first columns to a few letters ("ELEMEN|T"). Cells break only words that cannot fit at all. */
  .prose :is(th, td) { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: break-word; }
  .prose thead th { border-top: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .prose code { padding: .1em .35em; border-radius: 4px; background: var(--panel); font-size: .9em; }

  /* ---------- Toasts: concept .toast (am.js AM.toast) and the server flash (views/partials/flash.ejs) ---------- */
  .toast, .flash-toast-wrap {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: var(--z-toast);
    width: max-content; max-width: min(560px, calc(100vw - 32px));
  }
  .toast { padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 500; font-size: .9375rem; line-height: 1.45; text-align: center;
    box-shadow: var(--shadow-float); pointer-events: none; opacity: 0; transform: translate(-50%, 20px) scale(.96);
    transition: opacity 200ms var(--ease-out), transform 320ms var(--ease-settle); }
  .toast.is-on { opacity: 1; transform: translate(-50%, 0); }
  .flash-toast-wrap { transform: translateX(-50%); animation: am-toast-in 320ms var(--ease-settle) both; transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-settle); }
  .flash-toast-wrap.is-leaving { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
  .flash { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 10px 12px 18px; border-radius: 16px;
    background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow-float); }
  .flash::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--cherry-on-dark); }
  .flash-success::before { background: #6FCF8E; }
  .flash-error::before { background: #E07A84; }
  .flash > span { flex: 1; }
  .flash__close { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -6px 0; border-radius: var(--pill); color: var(--on-dark-muted); transition: background-color var(--t-color), color var(--t-color); }
  .flash__close:hover { background: rgb(255 255 255 / .12); color: #fff; }
  .flash__close svg { width: 18px; height: 18px; }
  .flash__close:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgb(0 0 0 / .55); }
  @keyframes am-toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0); } }
  /* phones: above the floating "Dopasuj ratę" button */
  @media (max-width: 767px) { .toast, .flash-toast-wrap { bottom: calc(80px + env(safe-area-inset-bottom)); } }
  /* car page bottom bar (concept body.has-bottom-bar): above the bar, and above bar + rate button on phones */
  body.has-bottom-bar :is(.toast, .flash-toast-wrap) { bottom: calc(108px + env(safe-area-inset-bottom)); }
  @media (max-width: 767px) { body.has-bottom-bar :is(.toast, .flash-toast-wrap) { bottom: calc(156px + env(safe-area-inset-bottom)); } }

  /* ---------- Popover (menus anchored to their trigger) ---------- */
  .popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-popover); min-width: 220px; padding: 8px;
    background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-float); transform-origin: top right;
    opacity: 0; transform: scale(.94) translateY(-4px); pointer-events: none; visibility: hidden;
    transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-settle), visibility 0s linear 220ms; }
  .popover.is-open, [open] > .popover { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-settle), visibility 0s; }
  .popover :is(a, button) { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 500; text-align: left; }
  .popover :is(a, button):hover { background: var(--panel); }
  .popover [aria-current="true"], .popover [aria-current="page"] { font-weight: 700; }
  .popover [aria-current="true"]::after, .popover [aria-current="page"]::after { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cherry); }
  .popover .code { color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
  /* a white menu inside a dark bar keeps the dark focus ring */
  .popover :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 5px rgb(255 255 255 / .9); }

  /* ---------- Modal dialog: centred card on desktop, draggable bottom sheet on phones (AM.Sheet) ---------- */
  .modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 24px; visibility: hidden; pointer-events: none; }
  .modal.is-open { visibility: visible; pointer-events: auto; }
  .modal__scrim { position: absolute; inset: 0; background: rgb(17 17 17 / .5); opacity: 0; transition: opacity 300ms var(--ease-out); }
  .modal.is-open .modal__scrim { opacity: 1; }
  .modal__panel { position: relative; display: flex; flex-direction: column; width: min(620px, 100%); max-height: min(860px, calc(100dvh - 48px));
    background: var(--surface); color: var(--body); border-radius: var(--r-sheet); box-shadow: var(--shadow-float);
    opacity: 0; transform: scale(.96) translateY(8px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-settle); }
  .modal.is-open .modal__panel { opacity: 1; transform: none; }
  .modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 14px 26px; }
  .modal__head h2 { font-size: 1.5rem; }
  .modal__grab { display: none; }
  .modal__body { padding: 4px 26px 26px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
  .modal__car { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border-radius: var(--r); background: var(--panel); }
  .modal__car img { width: 96px; height: 64px; border-radius: 8px; object-fit: cover; }
  .modal__car b { display: block; color: var(--ink); }
  .modal__car span { font-size: .875rem; color: var(--muted); }
  .modal .form-grid { margin-top: 18px; }
  .modal .form-card { padding: 0; background: none; border-radius: 0; }
  .modal .form-card > h3 { margin-top: 20px; font-size: 1.0625rem; }
  .sheet-scrim { position: fixed; inset: 0; z-index: var(--z-sheet-scrim); background: rgb(17 17 17 / .48); opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease-out); }
  .sheet-scrim.is-on { opacity: 1; pointer-events: auto; }
  .sheet-grab { display: block; position: relative; flex: none; height: 22px; cursor: grab; touch-action: none; }
  .sheet-grab::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-strong); }
  @media (max-width: 767px) {
    .modal { padding: 0; align-items: end; }
    .modal__panel { width: 100%; max-height: 92dvh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; opacity: 1; transform: translateY(100%); transition: none; }
    .modal.is-open .modal__panel { transform: translateY(100%); } /* AM.Sheet drives the transform */
    .modal__grab { display: block; position: relative; height: 22px; cursor: grab; touch-action: none; }
    .modal__grab::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-strong); }
    .modal__head { padding-top: 4px; touch-action: none; }
    .modal__body { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
  }

  /* ---------- Spinners ----------
     .spinner = 40 px accent arc on a warm track (8.4:1); .spinner--sm 20 px; .spinner--light on black.
     Photo spinner: cover-fitted photos show the same arc as their background until they paint, then fade in
     (am.js adds .is-loaded; lazy photos that load later get .am-fade). Contain-fitted stages use
     [data-am-spinner] on the container (am.js toggles .is-loading while the image (re)loads). */
  .spinner { display: inline-block; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cherry); animation: am-spin 900ms linear infinite; }
  .spinner--sm { width: 20px; height: 20px; border-width: 2px; }
  .spinner--light { border-color: rgb(255 255 255 / .22); border-top-color: var(--cherry-on-dark); }
  @keyframes am-spin { to { transform: rotate(360deg); } }
  :is(.card__media, .offer__media, .article__media, .mtile__media, .photo) img, img.am-photo {
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='none' stroke='%23D6D0C6' stroke-width='3'/%3E%3Cpath d='M20 3a17 17 0 0 1 17 17' fill='none' stroke='%23422E15' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='0.9s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center / 40px 40px no-repeat;
    color: transparent; /* the alt text never shows over the spinner */
  }
  :is(.card__media, .offer__media, .article__media, .mtile__media, .photo) img:is(.is-loaded, .is-failed), img.am-photo:is(.is-loaded, .is-failed) { background-image: none; }
  img.am-fade { opacity: 0; transition: opacity 320ms var(--ease-out); }
  img.am-fade.is-loaded { opacity: 1; }
  [data-am-spinner] { position: relative; }
  [data-am-spinner].is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none;
    border-radius: 50%; border: 3px solid rgb(255 255 255 / .22); border-top-color: var(--cherry-on-dark); animation: am-spin 900ms linear infinite; }
  [data-am-spinner="light"].is-loading::after { border-color: var(--line); border-top-color: var(--cherry); }

  /* ---------- Skeleton and empty state ---------- */
  .skeleton { display: block; min-height: 1em; border-radius: var(--r); background: linear-gradient(90deg, var(--tint) 0%, #F4EFE7 50%, var(--tint) 100%) 0 0 / 200% 100%; animation: am-shimmer 1.3s linear infinite; }
  @keyframes am-shimmer { to { background-position: -200% 0; } }
  .empty { display: grid; justify-items: center; gap: 8px; padding: 48px 28px; border-radius: var(--r-lg); background: var(--surface); text-align: center; }
  .empty h2, .empty h3 { font-size: 1.25rem; font-weight: 700; }
  .empty p { max-width: 44ch; color: var(--muted); }
  .empty .btn, .empty .link { margin-top: 12px; }

  /* ---------- Glass recipes ----------
     .glass        frosted beige (header past the hero, sticky toolbars, price bar)
     .glass-strong denser frosted beige (bottom bars, icon buttons on photos)
     .glass-dark   translucent black (counters, chips and captions on photos)
     .glass-black  black liquid glass (header .is-top-dark state: black + soft sheen + hairline edges)
     For bars, put the material on ::before so the content never inherits the filter. */
  .glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
  .glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
  .glass-dark { background: var(--glass-dark); color: #fff; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .glass-black { background-color: var(--header-dark); background-image: var(--header-dark-sheen); box-shadow: var(--header-dark-edge); color: #fff; }

  /* ---------- Preferences ---------- */
  @media (prefers-reduced-motion: reduce) {
    .card:hover .card__media img, .article:hover .article__media img { transform: none; }
    .btn:active, .btn.is-pressed, .icon-btn:active, .icon-btn.is-pressed, .seg button:active, .seg button.is-pressed,
    .fchip:active, .fchip.is-pressed, .chip:active, .chip.is-pressed, .pager a:active, .pager a.is-pressed { transform: none; }
    .link:hover svg, .back:hover svg { transform: none; }
    .seg__ind, .tabs__ind { transition: opacity 150ms linear; }
    .popover, .popover.is-open, [open] > .popover { transform: none; }
    .toast, .toast.is-on { transform: translate(-50%, 0); }
    .flash-toast-wrap, .flash-toast-wrap.is-leaving { transform: translateX(-50%); animation: none; }
    .modal__panel, .modal.is-open .modal__panel { transform: none; }
    .spinner, [data-am-spinner].is-loading::after { animation: none; border-top-color: var(--cherry); }
    .skeleton { animation: none; }
    :is(.card__media, .offer__media, .article__media, .mtile__media, .photo) img, img.am-photo {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='none' stroke='%23D6D0C6' stroke-width='3'/%3E%3Cpath d='M20 3a17 17 0 0 1 17 17' fill='none' stroke='%23422E15' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    }
    img.am-fade { transition: none; }
  }
  @media (prefers-reduced-transparency: reduce) {
    /* !important as in the concept: a preference override must beat the unlayered area rules that add blur */
    .icon-btn--glass, .glass, .glass-strong, .glass-dark { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    .glass-black { background-image: none; }
  }
  @media (prefers-contrast: more) {
    .card, .article, .tile, .form-card, .table-scroll, .empty { box-shadow: inset 0 0 0 1px #5E5952; }
  }
  @media (forced-colors: active) {
    .btn, .icon-btn, .seg button, .fchip, .chip, .pager a { border: 1px solid ButtonText; }
    .seg__ind, .tabs__ind { background: Highlight; }
  }
}
