/* Pliker: części wspólne (tokeny, reset, typografia, nagłówek, menu, baner, przyciski, formularz, stopka, cookies).
   Tokeny i zasady: docs/ARCHITEKTURA.md, sekcja 4. Mobile-first; breakpointy: 768 (tablet), 992 (nav), 1025 (desktop), 1200 (wide). */

:root {
  /* Marka */
  --c-blue: #00A0E3;
  --c-navy: #393185;
  --g-brand: linear-gradient(90deg, #00A0E3, #393185);
  --g-brand-45: linear-gradient(45deg, #00A0E3, #393185);
  --g-brand-45-rev: linear-gradient(45deg, #393185, #00A0E3);
  --c-blue-text-bg: #007AB3;
  --g-brand-text: linear-gradient(90deg, #007AB3, #393185);
  --g-banner: linear-gradient(45deg, #393185, #007AB3);  /* baner strony (90% krycia na zdjęciu), biały tekst */

  /* Tekst */
  --c-heading: #1D2025;
  --c-text: #555555;
  --c-text-strong: #333333;
  --c-link: #1863DC;
  --c-on-brand: #FFFFFF;

  /* Tła i linie */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F9FAFF;
  --c-line: #F4F4F4;
  --c-line-strong: #DDDDDD;
  --c-error: #C92D2D;        /* błędy formularza: kontrast ≥ 5,17:1 na jasnych tłach */
  --c-success: #46B450;      /* ramka komunikatu „wysłano” (kolor CF7), nie tekst */
  --c-bg-dark: #23282D;
  --c-bg-dark-2: #54595F;
  --c-header-sticky: rgb(52 58 64 / 0.9);
  --c-overlay: rgb(0 0 0 / 0.7);            /* tło pod menu mobilnym i oknem filmu */
  --c-line-on-brand: rgb(255 255 255 / 0.4); /* linie podmenu na niebieskim panelu */
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-md: 0 10px 15px rgb(0 0 0 / 0.1);

  /* Fonty */
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1rem;
  --lh-body: 1.75;
  --fs-banner-title: 1.875rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 1.6vw, 2.3125rem);
  --lh-h2: 1.68;
  --fs-h3-tile: clamp(1.5rem, 1rem + 1.6vw, 2.1875rem);
  --fs-card-title: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --fw-heading: 600;
  --fw-heading-strong: 700;

  /* Odstępy (skala 4 px) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px; --s-10: 110px;
  --section-y: clamp(50px, 4rem + 4vw, 110px);
  --container: 1140px;
  --gutter: 15px;

  /* Przyciski i elementy */
  --btn-h: 45px;
  --btn-px: 50px;
  --radius-btn: 30px;
  --radius-card: 8px;
}

/* Fonty: Poppins (OFL, assets/fonts/OFL.txt), podzbiór latin + latin-ext. Przeglądarka pobiera tylko użyte wagi. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  color: var(--c-heading);
  line-height: 1.2;
}
p, ul, ol { margin: 0 0 var(--s-4); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-link); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
main:focus { outline: none; } /* fokus z kodu (skip-link, po decyzji o cookies) */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: var(--s-2); left: var(--s-2);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--c-bg);
  color: var(--c-heading);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--c-blue-text-bg);
  color: var(--c-on-brand);
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  text-transform: uppercase;
  transition: background 0.3s;
}
.btn:hover { color: var(--c-on-brand); }
.btn--gradient { background: var(--g-brand-text); }
.btn--gradient:hover, .btn--gradient:focus-visible { background: var(--g-brand-45-rev); }

/* Nagłówek: telefon = biały pasek z kolorowym logo; od 992 px przezroczysty nad banerem, po przewinięciu przyklejony. */
.site-header { position: relative; z-index: 50; background: var(--c-bg); }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 89px;
}
.site-header__logo img { width: 144px; }

/* Przycisk menu zostaje nad otwartym panelem i zmienia się w „zamknij”. */
.nav-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-navy);
}
.nav-toggle__close, .nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle { position: fixed; top: 22px; right: 20px; margin: 0; color: var(--c-on-brand); }
.nav-open .nav-toggle__close { display: block; }

/* Menu mobilne: panel z prawej (jak meanMenu), przyciemnione tło. */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(300px, 85vw);
  padding: var(--s-5) 20px var(--s-6);
  overflow-y: auto;
  background: var(--c-blue-text-bg);
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s, visibility 0s 0.3s;
}
.nav-open .nav { transform: none; visibility: visible; transition: transform 0.3s; }
.nav-open body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 49; /* pod nagłówkiem (z-index 50), w którym jest panel menu */
  background: var(--c-overlay);
}
.nav__head { margin: 68px 0 var(--s-6); }
.nav__list, .nav__sub { margin: 0; padding: 0; list-style: none; }
.nav__list { border-top: 1px solid var(--c-on-brand); }
.nav__list > li { border-bottom: 1px solid var(--c-on-brand); }
.nav__list a, .nav__sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) 11px;
  border: 0;
  background: none;
  color: var(--c-on-brand);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--c-on-brand); text-decoration: underline; }
.nav__chevron { display: none; }
.nav__plus { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__sub-toggle[aria-expanded="true"] .nav__plus { transform: rotate(45deg); }
.nav__sub { display: none; padding-left: var(--s-4); }
.nav__sub-toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub li { border-top: 1px solid var(--c-line-on-brand); }

/* Bez JS na telefonie pozostaje zwykła lista linków, bez nieczynnego hamburgera. */
@media (max-width: 991px) {
  html:not(.js) .site-header__bar { flex-wrap: wrap; }
  html:not(.js) .nav { position: static; width: 100%; transform: none; visibility: visible; }
  html:not(.js) .nav-toggle, html:not(.js) .nav__sub-toggle, html:not(.js) .nav__head { display: none; }
  html:not(.js) .nav__sub { display: block; }
}

@media (min-width: 992px) {
  .site-header { position: absolute; inset: 0 0 auto; background: none; transition: background 0.3s; }
  .is-scrolled .site-header { position: fixed; background: var(--c-header-sticky); }
  .site-header__bar { justify-content: flex-start; min-height: 87px; }
  .site-header__logo { flex: 0 0 calc((100% + 2 * var(--gutter)) / 4); }
  .site-header__logo img { width: 150px; }
  .nav-toggle, .nav__head, .nav__plus { display: none; }

  .nav {
    position: static;
    width: auto;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav-open body::after { content: none; }
  .nav__list { display: flex; border: 0; }
  .nav__list > li { position: relative; border: 0; }
  .nav__list > li > a, .nav__sub-toggle {
    position: relative;
    width: auto;
    min-height: 46px;
    margin: 20px 0;
    padding: 9px 18px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 28px;
    text-transform: uppercase;
  }
  .nav__list > li > a::before, .nav__sub-toggle::before {
    content: "";
    position: absolute;
    left: 18px; bottom: 6px;
    width: 0; height: 2px;
    background: var(--c-blue);
    transition: width 0.3s;
  }
  .nav__list > li > a:hover, .nav__list > li > a[aria-current="page"] { text-decoration: none; }
  .nav__list > li > a:hover::before, .nav__list > li > a[aria-current="page"]::before,
  .nav__has-sub:hover > .nav__sub-toggle::before { width: 50%; }
  .nav__chevron { display: block; width: 11px; height: 11px; margin-left: 5px; opacity: 0.5; }

  /* Podmenu: rozwija się po najechaniu albo kliknięciu (Enter/spacja); Esc zamyka. */
  .nav__sub {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    width: 200px;
    padding: 0;
    border-radius: 5px;
    background: var(--c-bg);
    box-shadow: var(--shadow-sm);
  }
  /* Ostatnia pozycja (język) otwiera panel w stronę środka okna. */
  .nav__list > li:last-child > .nav__sub { left: auto; right: 0; }
  html:not(.js) .nav__has-sub:focus-within > .nav__sub,
  .nav__sub-toggle[aria-expanded="true"] + .nav__sub {
    display: block;
  }
  .nav__sub li { border: 0; }
  .nav__sub a {
    min-height: 44px;
    padding: var(--s-3) 20px;
    color: var(--c-navy);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
  }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--c-link); text-decoration: none; }
}
@media (min-width: 992px) and (hover: hover) {
  html:not(.js) .nav__has-sub:hover > .nav__sub { display: block; }
}

/* Baner strony: zdjęcie pod gradientem marki (90%), tytuł H1 i okruszki. */
.page-banner {
  position: relative;
  isolation: isolate;
  padding: 90px 0 100px;
  background: center / cover no-repeat url("/assets/img/tla/baner-1440.jpg");
  background-image: image-set(url("/assets/img/tla/baner-1440.webp") type("image/webp"), url("/assets/img/tla/baner-1440.jpg") type("image/jpeg"));
  color: var(--c-on-brand);
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--g-banner);
  opacity: 0.9;
}
.page-banner__title {
  margin: 0 0 10px;
  color: var(--c-on-brand);
  font-size: var(--fs-banner-title);
  font-weight: var(--fw-heading-strong);
  line-height: 1.2;
  text-transform: uppercase;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; min-width: 0; max-width: calc(100% - 4px); margin: 0 2px; overflow-wrap: anywhere; }
.crumbs a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.crumbs a:hover { color: var(--c-on-brand); text-decoration: underline; }
.crumbs a:focus-visible { outline-color: var(--c-on-brand); }
.crumbs__sep { flex: none; width: 9px; height: 9px; margin: 0 4px 0 2px; }

@media (min-width: 992px) {
  .page-banner { padding-top: 145px; }
  /* Okruszki bez tytułu: miejsce pod dwuwierszową Ofertą oraz na obwódkę. */
  .page-banner:not(:has(.page-banner__title)) { padding-top: 193px; }
}
@media (min-width: 992px) and (max-width: 1023px) {
  /* Na progu desktopu wyższy nagłówek przesuwa koniec Oferty do 209 px. */
  .page-banner { padding-top: 177px; }
  .page-banner:not(:has(.page-banner__title)) { padding-top: 221px; }
}
@media (min-width: 1025px) {
  .page-banner {
    background-image: url("/assets/img/tla/baner-1920.jpg");
    background-image: image-set(url("/assets/img/tla/baner-1920.webp") type("image/webp"), url("/assets/img/tla/baner-1920.jpg") type("image/jpeg"));
  }
}

/* Formularz kontaktowy (pola jak w obecnym CF7); warianty kolorystyczne w CSS stron. */
/* WebKit przewija natywnie błędne pole 16 px poza ekran; zapas chroni też obwódkę bez JS. */
html:has(.contact-form) { scroll-padding-block: 24px; }
.contact-form input, .contact-form textarea { scroll-margin-block: 16px; }
@media (min-width: 992px) {
  /* Nagłówek87px plus miejsce na całą obwódkę, także przy walidacji bez JS. */
  .contact-form input, .contact-form textarea { scroll-margin-block-start: 104px; }
}
.contact-form__row { display: grid; gap: 0 22px; }
.contact-form__field { margin: 0 0 var(--s-4); }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"], .contact-form textarea {
  display: block;
  width: 100%;
  height: 50px;
  padding: 1px 2px 1px 30px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-btn);
  background: var(--c-bg);
  color: var(--c-text-strong);
  line-height: 43px;
}
.contact-form textarea { height: 150px; padding: 30px; line-height: 1.6; resize: vertical; }
.contact-form ::placeholder { color: var(--c-text-strong); opacity: 1; }
.contact-form__info a { text-decoration: underline; }
.contact-form__consent { margin: 0 0 var(--s-2) var(--s-4); font-size: 0.875rem; }
.contact-form__consent label { display: block; min-height: 44px; cursor: pointer; }
.contact-form__consent input { width: 20px; height: 20px; margin: 0 var(--s-1) 0 0; vertical-align: -4px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status { margin: 0 0 var(--s-4); padding: var(--s-1) var(--s-4); border: 2px solid var(--c-line-strong); }
.contact-form__status[data-state="ok"] { border-color: var(--c-success); }
.contact-form__status[data-state="error"] { border-color: var(--c-error); }
.contact-form__status a { text-decoration: underline; }
.contact-form__status:empty { display: none; }
.contact-form__error { display: block; margin: var(--s-1) 0 0 var(--s-4); color: var(--c-error); font-size: 0.875rem; }
.contact-form [aria-invalid="true"] { border-color: var(--c-error); }
.contact-form__submit { width: 100%; min-height: 50px; font-family: var(--font-body); font-size: 1rem; }

@media (min-width: 768px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

/* Certyfikacja: cały oficjalny znak oraz zaznaczalne szczegóły w HTML. */
.certifications { padding-block: 48px; scroll-margin-top: 104px; }
.certifications--summary { padding-block: 32px; background: var(--c-bg-soft); }
.certifications h2 { max-width: 48rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.4; }
.certifications__intro { max-width: 54rem; }
.certifications__mark { width: 100%; max-width: 680px; margin-block: 24px 16px; padding: 12px; border: 1px solid #ddd; background: #fff; }
.certifications__mark img, .site-footer__certifications img { display: block; width: 100%; height: auto; }
.certifications__list { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-block: 24px 16px; padding: 0; list-style: none; }
.certifications__list li { flex: 1 1 15rem; min-width: 0; }
.certifications__list h3 { margin-bottom: 8px; color: var(--c-link); font-size: 1.125rem; line-height: 1.5; }
.certifications__list p { margin: 0; }
.certifications__link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 4px 6px; margin-left: -6px; color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
.certifications__facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-block: 24px 16px; }
.certifications__facts > div { flex: 1 1 15rem; }
.certifications__facts dt { font-weight: 600; color: var(--c-heading); }
.certifications__facts dd { margin: 0; }
.certifications__audit { margin-bottom: 0; }

/* Stopka: gradient, logo, adres, linki, LinkedIn; pod spodem pasek z prawami autorskimi. */
.site-footer__main { padding: 50px 0 30px; background: var(--g-brand); color: var(--c-on-brand); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--s-5) 0;
}
.site-footer__logo { grid-column: 1 / -1; }
.site-footer__logo img { width: 200px; }
.site-footer__logo-color { display: none; } /* jasna stopka strony głównej: home.css */
.site-footer__title {
  margin: 0;
  padding-bottom: 17px;
  color: var(--c-on-brand);
  font-size: 1.25rem;
  font-weight: var(--fw-heading);
  line-height: 24px;
}
.site-footer__list { margin: 0; padding: 0; list-style: none; line-height: 31px; }
.site-footer__list a:hover { color: var(--c-on-brand); text-decoration: underline; }
.site-footer__social { align-self: end; padding-bottom: var(--s-2); }
.site-footer__social a { display: block; color: var(--c-blue); }
.site-footer__social svg { width: 28px; height: 32px; }
.site-footer__certifications { flex-basis: 100%; min-width: 0; max-width: 100%; margin: 8px 0 16px; }
.site-footer__certifications a { display: inline-block; width: 400px; max-width: 100%; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #ddd; background: #fff; }
.site-footer__certifications a:hover { color: inherit; }
.site-footer__certifications a:focus-visible { outline-color: currentColor; }
.icon-fg { fill: var(--c-on-brand); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 var(--s-4);
  padding: 12px var(--gutter) 6px; /* pełna obwódka ostatniego przycisku mieści się także na końcu dokumentu (#41) */
  background: var(--c-bg-soft);
  font-size: 0.875rem;
  text-align: center;
}
.site-footer__bottom a:hover { color: var(--c-link); }
.site-footer__cookies { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; text-decoration: underline; scroll-margin-block: var(--s-2); } /* cel dotyku (#46); obwódka 4px + zapas na ułamkowy DOMRect i przewijanie do całych px (#41) */

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); padding-inline: 10px; }
  .site-footer__grid > * { padding-inline: 10px; }
  .site-footer__logo { grid-column: auto; }
  .site-footer__logo img { width: 156px; }
  .site-footer__social { padding-bottom: 0; }
  .site-footer__bottom { justify-content: flex-end; padding-right: 100px; text-align: right; }
}

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 120px; pointer-events: none; }

/* Przycisk „do góry” (widoczny po przewinięciu, gdy działa JS) */
.to-top {
  position: fixed;
  right: 30px; bottom: 30px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: var(--shadow-md);
  color: var(--c-link);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.is-scrolled .to-top { opacity: 1; visibility: visible; transition: opacity 0.3s; }

/* Baner zgody na cookies (lewy dolny róg, jak dotychczasowy CookieYes) */
.cookies {
  position: fixed;
  left: var(--s-2); right: var(--s-2); bottom: var(--s-2);
  z-index: 70;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 20px 26px;
  border-radius: 6px;
  background: var(--c-bg);
  box-shadow: var(--shadow-md);
  color: var(--c-text-strong);
  font-size: 0.875rem;
  line-height: 24px;
}
.cookies__title { margin-bottom: var(--s-3); color: var(--c-text-strong); font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; }
.cookies__text { margin-bottom: var(--s-4); }
.cookies__settings { margin-bottom: var(--s-4); }
.cookies__option { display: flex; gap: var(--s-2); align-items: flex-start; margin-bottom: var(--s-2); }
.cookies__option input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.cookies__buttons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cookies__btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 2px solid var(--c-link);
  border-radius: 2px;
  background: var(--c-bg);
  color: var(--c-link);
  font-weight: 500;
}
.cookies__btn--primary { background: var(--c-link); color: var(--c-on-brand); }

@media (min-width: 768px) {
  .cookies { left: 40px; right: auto; bottom: 40px; width: 440px; }
}

/* Lokalny film; osobny rząd zamknięcia nie zasłania nagrania ani kontrolek. */
.video-dialog { width: min(960px, 92vw); padding: 44px 0 0; border: 0; background: var(--c-bg-dark); }
.video-dialog::backdrop { background: var(--c-overlay); }
.video-dialog video { display: block; width: 100%; max-height: calc(100dvh - 100px); aspect-ratio: 16 / 9; background: #000; }
.video-dialog video:focus-visible { outline-color: var(--c-on-brand); outline-offset: -4px; }
.video-dialog__close {
  position: absolute;
  top: 0; right: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  background: var(--c-bg-dark);
  color: var(--c-on-brand);
}
.map-frame { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* Natychmiastowa widoczność potomków menu chroni pierwszy fokus po zmianie układu. */
  .nav, .nav * { transition: none !important; }
}
