/* Azja Motors design layer — 12 CHROME (site header, menu drawer, language switcher, footer, cookie banner, page
   loader, flash; the "Dopasuj ratę" tab and its configurator went with the offers, owner 2026-10-25 ~15:45). Written
   from the concept (design-system/concept/concept.css: header 205-269, drawer 271-284, footer 489-507, toast 509-514,
   header states 1449-1483).
   Plain UNLAYERED rules (they win over 00/10, which live in cascade layers). Markup: views/partials/public-nav.ejs,
   language-switcher.ejs, public-footer.ejs, head.ejs (sprite + loader); cookie banner markup comes
   from public/privacy-consent.js. Behaviour: public/design/am.js (header state classes) + am-chrome.js.
   Header state classes: .is-top-dark (inner pages at scroll 0) / .is-over-hero (home over the hero) / .am-scrolled
   (scrolled > 4 px) / .is-hidden (autohide). The production .is-scrolled (190/90 px hysteresis) is NOT styled. */

/* ==========================================================================
   Header — one row, nav left, logo centred, phone + language right; height never changes
   ========================================================================== */
.am-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h);
  color: var(--ink);
  transition: transform var(--t-panel) var(--ease-settle), background-color var(--t-color) var(--ease-out), color var(--t-color) var(--ease-out), box-shadow var(--t-color) var(--ease-out);
}
.site-header::before { /* the material: frosted beige glass */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  transition: opacity var(--t-color) var(--ease-out), background-color var(--t-color) var(--ease-out);
}
.site-header::after { /* scroll edge: soft shadow once content is under the bar */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none;
  background: var(--header-edge-shadow); opacity: 0; transition: opacity var(--t-color) var(--ease-out);
}
.site-header.am-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden::after { opacity: 0; }

/* inner pages at scroll 0: black liquid glass, white logo and text */
.site-header.is-top-dark { color: #fff; background-color: var(--header-dark); background-image: var(--header-dark-sheen); box-shadow: var(--header-dark-edge); }
.site-header.is-top-dark::before, .site-header.is-top-dark::after { opacity: 0; }
/* home: transparent over the dark hero at scroll 0, dark liquid glass once it scrolls while still over the hero */
.site-header.is-over-hero { color: #fff; }
.site-header.is-over-hero::before, .site-header.is-over-hero::after { opacity: 0; }
.site-header.is-over-hero.am-scrolled { background-image: var(--header-dark-sheen); box-shadow: var(--header-dark-edge); }
.site-header.is-over-hero.am-scrolled::before { opacity: 1; background-color: var(--header-hero-glass); }

.header-bar { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header-menu { display: contents; } /* [data-mobile-nav-root]: the menu button is a grid item, the drawer is fixed */

.header-nav { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: -14px; }
.header-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill);
  font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: background-color var(--t-color) var(--ease-out); }
.header-nav a:hover { background: var(--header-hover); }
.header-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--cherry); }
/* pointer hover (owner 2026-10-14): the underline draws in from the start edge (the current page keeps its own) */
@media (hover: hover) and (pointer: fine) {
  .header-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: currentColor;
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 360ms var(--ease-expand); }
  .header-nav a:is(:hover, :focus-visible)::after, .header-nav a[aria-current="page"]::after { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .header-nav a::after { transition: none; } }

.brand-logo { display: inline-grid; align-items: center; justify-self: center; min-height: 44px; color: inherit; }
.brand-logo img { grid-area: 1 / 1; display: block; width: 132px; height: auto; }
.site-header .brand-logo img { transition: opacity var(--t-color) var(--ease-out); }
.site-header .brand-logo__white { opacity: 0; }
.site-header:is(.is-top-dark, .is-over-hero) .brand-logo__white { opacity: 1; }
.site-header:is(.is-top-dark, .is-over-hero) .brand-logo__ink { opacity: 0; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--pill);
  font-weight: 600; font-size: .9375rem; white-space: nowrap; transition: background-color var(--t-color) var(--ease-out); }
.header-phone:hover { background: var(--header-hover); }
.header-phone svg { width: 20px; height: 20px; flex: none; }
.header-phone span { line-height: 1.15; }
.header-phone small { display: block; font-size: .8125rem; font-weight: 500; opacity: .78; line-height: 1.1; }

/* partner session (only when a partner is signed in) */
.header-session { display: flex; align-items: center; }
.header-session__out { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill);
  font-weight: 600; font-size: .875rem; background: var(--header-hover); transition: background-color var(--t-color) var(--ease-out); }
.header-session__out:hover { background: rgb(26 25 23 / .12); }
:is(.is-top-dark, .is-over-hero) .header-session__out { background: rgb(255 255 255 / .12); }

/* dark states: hover washes, the current-page underline and the focus ring turn white */
:is(.is-top-dark, .is-over-hero) :is(.header-nav a, .header-phone, .lang-btn, .menu-btn, .phone-btn, .header-session__out):hover,
:is(.is-top-dark, .is-over-hero) .lang[open] > .lang-btn { background: var(--header-hover-dark); }
:is(.is-top-dark, .is-over-hero) .header-nav a[aria-current="page"]::after { background: #fff; }
:is(.is-top-dark, .is-over-hero) :is(.menu-btn, .phone-btn):active { background: rgb(255 255 255 / .16); }

/* language switcher: native <details> (i18n.js) styled as the concept .lang-btn + .popover */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px; border-radius: var(--pill);
  font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-color) var(--ease-out); }
.lang-btn::-webkit-details-marker, .lang-btn::marker { display: none; content: ""; }
.lang-btn:hover, .lang[open] > .lang-btn { background: var(--header-hover); }
.lang-btn svg { width: 20px; height: 20px; flex: none; }
.lang-btn .chev { width: 16px; height: 16px; transition: transform var(--t-color) var(--ease-out); }
.lang[open] > .lang-btn .chev { transform: rotate(180deg); }
.lang-pop { color: var(--ink); }
/* flags (owner 2026-10-14; public/flags, 3:2): rounded, with a hairline ring so the white of PL / RU / GB reads on
   white; the header button's flag keeps the globe's 20 px slot, so the bar-fit measurements do not change */
.flag { flex: none; display: block; width: 21px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(26 25 23 / .18); }
.lang-btn .flag { width: 20px; height: 14px; margin-inline: 1px 2px; }
:is(.is-top-dark, .is-over-hero) .lang-btn .flag { box-shadow: 0 0 0 1px rgb(255 255 255 / .34); }
/* popover rows: flag | name | code | the current row's dot. Every row reserves the dot's slot, so the codes line up
   (the current row's dot used to push its code 57 px to the left) */
.lang-pop a { justify-content: flex-start; gap: 12px; }
.lang-pop__name { white-space: nowrap; }
.lang-pop .code { margin-left: auto; }
.lang-pop a::after { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; }
.lang-pop a[aria-current="true"]::after { background: var(--cherry); }
@starting-style { .lang[open] > .popover { opacity: 0; transform: scale(.94) translateY(-4px); } }
/* everything that opens from the dark bar keeps the light-surface focus ring */
.site-header :is(.popover, .drawer__panel) :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 5px rgb(255 255 255 / .9); }

/* phones and tablets: menu button left, logo centred, call button right */
.menu-btn, .phone-btn { display: none; place-items: center; width: 48px; height: 48px; border-radius: var(--pill);
  -webkit-tap-highlight-color: transparent; transition: background-color var(--t-color) var(--ease-out); }
.menu-btn:hover, .phone-btn:hover { background: var(--header-hover); }
.menu-btn:active, .phone-btn:active { background: rgb(26 25 23 / .08); }
.menu-btn svg, .phone-btn svg { width: 24px; height: 24px; }
@media (max-width: 1099px) {
  .header-nav, .header-phone, .header-actions .lang, .header-session { display: none; }
  .header-bar { grid-template-columns: 48px 1fr 48px; gap: 8px; }
  .menu-btn, .phone-btn { display: inline-grid; }
  .brand-logo img { width: 116px; }
  .header-actions { gap: 0; }
}

/* One row in every language: the logo stays centred, so the links get the left column only. Where a language's
   labels do not fit, bar links give way in order (data-nav-priority 2 = Top modele, then 1 = Kontakt; both stay in
   the menu drawer and the footer), and where even the core links do not fit the bar takes the menu layout above.
   am-chrome.js measures the real labels (.nav-js, .nav-off, .nav-collapsed); the language thresholds below are the
   same decisions for the first paint (measured with Onest), so nothing changes once the script runs. */
/* (owner 2026-10-14: four bar links since "Śledź dostawę" left the bar: Oferty, Top modele, Poradnik, Kontakt; pl, en
   and de fit all four from 1100 px, ru and uk drop "Top modele" below the widths below; no language needs the menu
   layout at 1100 px any more). The widths are am-chrome.js's own flip points (links + gaps <= logo left - 16 px).
   The rules skip .nav-measure: the script's first fit runs before .nav-js and must measure the link they hide. */
@media (max-width: 1404px) { :root:lang(ru) .site-header:not(.nav-js, .nav-measure) .header-nav a[data-nav-priority="2"] { display: none; } }
@media (max-width: 1252px) { :root:lang(uk) .site-header:not(.nav-js, .nav-measure) .header-nav a[data-nav-priority="2"] { display: none; } }
.site-header .header-nav a.nav-off { display: none; }
.site-header.nav-measure .header-nav a[data-nav-priority] { display: inline-flex; }
.site-header.nav-measure * { transition: none; }
.site-header.nav-collapsed :is(.header-nav, .header-phone, .header-actions .lang, .header-session) { display: none; }
.site-header.nav-collapsed .header-bar { grid-template-columns: 48px 1fr 48px; gap: 8px; }
.site-header.nav-collapsed :is(.menu-btn, .phone-btn) { display: inline-grid; }
.site-header.nav-collapsed .header-bar > .brand-logo img { width: 116px; }
.site-header.nav-collapsed .header-actions { gap: 0; }

/* ==========================================================================
   Menu drawer — slides in from the left (where its trigger lives), draggable (AM.Sheet in am-chrome.js)
   [data-mobile-nav-root].is-open is the production state; .drawer.is-open is the visual state.
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; color: var(--body); }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(17 17 17 / .44); opacity: 0; transition: opacity 280ms var(--ease-out); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel[data-mobile-nav-panel] { /* overrides the foundation's closed-state display:none so it can slide out */
  position: absolute; inset: 0 auto 0 0; width: min(420px, 88vw); display: flex; flex-direction: column;
  background: var(--page); color: var(--body); box-shadow: var(--shadow-float);
  transform: translateX(-100%); will-change: transform; touch-action: pan-y; overflow-y: auto; overscroll-behavior: contain; }
.drawer__head { display: flex; flex: none; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 20px; }
.drawer__head .brand-logo { justify-self: start; }
.drawer__head .brand-logo img { width: 116px; }
.drawer__nav { display: grid; padding: 8px 20px; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-stretch: 75%; font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--ink); }
.drawer__nav a svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.drawer__nav a[aria-current="page"] { color: var(--cherry); }
.drawer__nav a[aria-current="page"] svg { color: var(--cherry); }
.drawer__session { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 20px 0; font-size: .9375rem; color: var(--body); }
.drawer__foot { display: grid; gap: 16px; margin-top: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.drawer__foot .btn { width: 100%; }
.drawer__hint { margin-bottom: -6px; font-size: .875rem; line-height: 1.4; color: var(--muted); text-align: center; }
/* the showroom line above the advisor hint (owner 2026-10-25): a quiet link to the contact page, a 44 px target */
.drawer__hint--showroom a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
@media (min-width: 1100px) { .site-header:not(.nav-collapsed) .drawer { display: none; } }

/* language pills (footer: dark; drawer: light) */
.lang-pills { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.lang-pills a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 44px; padding: 0 9px 0 8px; border-radius: var(--pill);
  font-weight: 600; font-size: .8125rem; letter-spacing: .06em; color: var(--on-dark-muted); transition: background-color var(--t-color), color var(--t-color); }
.lang-pills a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.lang-pills a[aria-current="true"] { background: #fff; color: var(--ink); }
.lang-pills--light { justify-content: space-between; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lang-pills--light a { flex: 1; color: var(--body); }
.lang-pills--light a:hover { color: var(--ink); background: var(--panel); }
.lang-pills--light a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang-pills .flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / .26); }
.lang-pills a[aria-current="true"] .flag { box-shadow: 0 0 0 1px rgb(26 25 23 / .2); }          /* footer: the current pill is white */
.lang-pills--light .flag { box-shadow: 0 0 0 1px rgb(26 25 23 / .18); }
.lang-pills--light a[aria-current="true"] .flag { box-shadow: 0 0 0 1px rgb(255 255 255 / .4); } /* drawer: the current pill is black */
.lang-pills--light a { min-width: 0; padding-inline: 4px; }
/* phones: tighter pills, so the footer's five fit the content width from 360 px; below 360 px they stack flag over
   code instead of overflowing */
@media (max-width: 399px) { .lang-pills a { gap: 5px; padding-inline: 6px; } }
@media (max-width: 359px) { .lang-pills a { flex-direction: column; gap: 3px; min-width: 44px; min-height: 52px; padding: 6px 4px; } .lang-pills--light a { padding-inline: 2px; } }

/* ==========================================================================
   Footer — black, thin accent stripe, brand + three columns, company data, language pills
   ========================================================================== */
.site-footer { position: relative; padding-top: var(--section); padding-bottom: 32px; background: var(--dark); color: var(--on-dark-muted); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cherry-on-dark); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px var(--gutter); }
.footer-brand .brand-logo { justify-self: start; color: #fff; }
.footer-brand .brand-logo img { width: 150px; }
.footer-brand p { max-width: 34ch; margin-top: 18px; font-size: .9375rem; }
.footer-col h2 { margin-bottom: 14px; font-family: var(--sans); font-size: .8125rem; font-weight: 600; line-height: 1.625; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-col button { display: flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); font-size: .9375rem; text-align: left; transition: color var(--t-color) var(--ease-out); }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-col .strong { color: #fff; font-weight: 600; font-size: 1.0625rem; }
.footer-col p { margin-top: 6px; font-size: .9375rem; }
.footer-col .footer-col__lead { margin-top: 0; margin-bottom: 2px; }
.footer-col address { margin-top: 8px; font-style: normal; font-size: .9375rem; line-height: 1.6; }
/* the showroom and the registered office (owner 2026-10-25): a small label over each address, the visit note and the
   directions link (Google Maps in a new tab) under the showroom */
.footer-col .footer-address { margin-top: 18px; }
.footer-col__label { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-col .footer-col__note { margin-top: 4px; font-size: .875rem; }
.footer-col .footer-col__route { display: inline-flex; color: #fff; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 4px; }
.footer-social { display: flex; gap: 8px; margin-bottom: 6px; }
.footer-social a { justify-content: center; width: 44px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-dark); }
.footer-social a:hover { background: rgb(255 255 255 / .08); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 72px); padding-top: 24px;
  border-top: 1px solid var(--line-dark); font-size: .8125rem; }
@media (max-width: 1279px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Cookie banner (markup: public/privacy-consent.js) — dark card like the configurator, bottom-left; sheet on phones
   ========================================================================== */
.aa-cookie-banner {
  position: fixed; z-index: var(--z-cookie); left: 24px; bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 18px; padding: 24px; border-radius: var(--r-lg);
  background: var(--dark-2); color: var(--on-dark-muted); font-size: .9375rem; line-height: 1.55;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 40px 90px -24px rgb(0 0 0 / .65), 0 12px 24px -12px rgb(0 0 0 / .4);
  animation: am-cookie-in 420ms var(--ease-settle) both;
}
.aa-cookie-banner-copy { display: grid; gap: 8px; }
.aa-cookie-banner-copy strong { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: #fff; }
.aa-cookie-banner p { margin: 0; }
.aa-cookie-banner-actions, .aa-cookie-customize-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.aa-cookie-banner :is(.aa-cookie-primary, .aa-cookie-secondary) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  font-weight: 600; font-size: .9375rem; line-height: 1.2; white-space: nowrap;
  transition: background-color var(--t-color) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.aa-cookie-primary { order: 1; background: var(--cherry-on-dark); color: #111; }
.aa-cookie-primary:hover { background: var(--cherry-on-dark-hover); }
.aa-cookie-primary:active { background: var(--cherry-on-dark-press); transform: scale(.975); }
.aa-cookie-secondary { order: 2; background: #F4F1EC; color: var(--ink); }
.aa-cookie-secondary:hover { background: #fff; }
.aa-cookie-secondary:active { background: #E5E0D8; transform: scale(.975); }
.aa-cookie-secondary[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--cherry-on-dark); }
.aa-cookie-banner-actions a { order: 3; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: #fff; font-weight: 500;
  text-decoration: underline; text-decoration-color: rgb(255 255 255 / .45); text-underline-offset: 3px; }
.aa-cookie-banner-actions a:hover { text-decoration-color: currentColor; }
.aa-cookie-customize { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.aa-cookie-customize[hidden] { display: none; }
.aa-cookie-banner :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgb(0 0 0 / .55); }
@keyframes am-cookie-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .aa-cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; max-height: 88dvh; gap: 14px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 -10px 40px rgb(0 0 0 / .3); }
  .aa-cookie-banner-actions :is(.aa-cookie-primary, .aa-cookie-secondary) { flex: 1 1 140px; }
  .aa-cookie-customize-actions .aa-cookie-secondary { flex: 1 1 100%; }
}
/* phones held sideways (short landscape): a compact side sheet over the right-hand column, so the page beside it
   stays in use until the visitor decides (QA UX09: on the 3D configurator the card covered the whole stage) */
@media (orientation: landscape) and (max-height: 540px) {
  .aa-cookie-banner { left: auto; right: 0; bottom: 0; width: max(320px, 42vw); max-height: calc(100dvh - var(--header-h, 64px));
    gap: 10px; padding: 16px 18px calc(14px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) 0 0 0;
    font-size: .8125rem; line-height: 1.45; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), -10px 0 40px rgb(0 0 0 / .3); }
  .aa-cookie-banner-copy { gap: 4px; }
  .aa-cookie-banner-copy strong { font-size: .9375rem; }
  .aa-cookie-banner-actions, .aa-cookie-customize-actions { gap: 8px; }
  .aa-cookie-banner :is(.aa-cookie-primary, .aa-cookie-secondary) { flex: 1 1 auto; padding: 0 16px; font-size: .875rem; }
}

/* ==========================================================================
   Page loader (footer script: body.is-page-loading for 520 ms before a same-origin navigation)
   Foundation draws the veil, logo and bar (00-foundation.css); the chrome adds only the entrance animation.
   ========================================================================== */
body.is-page-loading .page-loader__inner { animation: am-loader-in 360ms var(--ease-settle) both; }
@keyframes am-loader-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: opacity 200ms linear, background-color 200ms linear, color 200ms linear; }
  .site-header.is-hidden { transform: none; opacity: 0; pointer-events: none; }
  .lang-btn .chev, .lang[open] > .lang-btn .chev { transition: none; }
  @starting-style { .lang[open] > .popover { transform: none; } }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-top-dark, .site-header.is-over-hero.am-scrolled { background-image: none; }
  .site-header.is-over-hero.am-scrolled::before { background-color: var(--header-dark); }
}
@media (prefers-contrast: more) {
  .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 #1A1917; }
  .aa-cookie-banner { box-shadow: 0 0 0 2px #fff; }
}
@media (forced-colors: active) {
  .lang-btn, .menu-btn, .phone-btn, .aa-cookie-primary, .aa-cookie-secondary { border: 1px solid ButtonText; }
}
