/* ==========================================================================
   Kulturalnie o SEO 2027 – style uzupełniające Tailwind
   --------------------------------------------------------------------------
   • Tokeny (kolory, fonty) są zdefiniowane TYLKO tutaj, w :root.
     Tailwind (@theme inline w index.html / css/tailwind.input.css)
     jedynie się do nich odwołuje, więc zmiana koloru = jedna linijka.
   • Wszystko siedzi w warstwach @layer, żeby utility Tailwinda zawsze
     wygrywały z tymi stylami (style bez warstwy nadpisałyby Tailwinda).
   ========================================================================== */

@layer theme, base, components, utilities;

:root {
  /* Kolory */
  --ink: #09080d;          /* tło ciemnych sekcji */
  --ink-header: #0b0912;   /* tło headera po przewinięciu */
  --cream: #f5f2eb;        /* nagłówki na ciemnym tle */
  --paper: #f1eee7;        /* tło sekcji z biletami */
  --card: #f7f4ee;         /* karta biletu EDU */
  --plum: #8555b1;         /* fiolet marki */
  --plum-deep: #351255;    /* ciemny fiolet (box promocji) */
  --coral: #ff493d;        /* czerwień CTA / VIP / partnerstwo */
  --scarlet: #f92823;      /* czerwień logo */
  --mist: #9f9aa3;         /* drugorzędny tekst na ciemnym tle */
  --fog: #c3bec7;          /* jasny tekst pomocniczy */
  --smoke: #66616a;        /* drugorzędny tekst na jasnym tle */

  /* Fonty */
  --ff-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --ff-serif: "Instrument Serif", ui-serif, Georgia, serif;

  /* Ruch */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Wysokość headera po zmniejszeniu – używana przy przewijaniu do kotwic */
  --header-offset: 72px;
  --focus-color: var(--coral);
}

@media (min-width: 1024px) {
  :root { --header-offset: 84px; }
}

/* ========================================================================== */
@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--ink);
  }

  body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--ff-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  section[id] { scroll-margin-top: var(--header-offset); }
  #top { scroll-margin-top: 0; }

  ::selection { background: var(--plum); color: #fff; }

  :focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 4px;
  }
  main:focus { outline: none; }

  /* Na czerwonym tle obrys czerwony byłby niewidoczny */
  .on-coral { --focus-color: var(--ink); }

  s { text-decoration-thickness: 2px; }
}

/* ========================================================================== */
@layer components {

  /* ---------- Link "przejdź do treści" ---------- */
  .skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    transform: translateY(-160%);
    transition: transform 0.25s var(--ease-out);
  }
  .skip-link:focus { transform: none; }

  /* ---------- Sticky header ---------- */
  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background-color: transparent;
    transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  }

  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  }

  .header-logo { display: block; line-height: 0; }
  .header-logo img {
    display: block;
    width: 70px;
    height: auto;
    transition: width 0.4s var(--ease-out);
  }

  /* Stan po przewinięciu: niższy pasek + ciemne tło */
  .site-header.is-scrolled,
  .site-header.is-menu-open {
    background-color: var(--ink-header);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  }
  .site-header.is-scrolled .header-bar,
  .site-header.is-menu-open .header-bar {
    padding-block: 9px;
    border-bottom-color: transparent;
  }
  .site-header.is-scrolled .header-logo img,
  .site-header.is-menu-open .header-logo img { width: 56px; }

  @media (min-width: 1024px) {
    .header-bar { padding-block: 18px; }
    .header-logo img { width: 98px; }
    .site-header.is-scrolled .header-bar { padding-block: 12px; }
    .site-header.is-scrolled .header-logo img { width: 74px; }
  }

  /* Linki w menu – podkreślenie wysuwane od lewej */
  .nav-link {
    position: relative;
    display: inline-block;
    padding-block: 6px;
    color: #d9d5dd;
    transition: color 0.25s ease;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
  }
  .nav-link:hover,
  .nav-link[aria-current="true"] { color: #fff; }
  .nav-link:hover::after,
  .nav-link[aria-current="true"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  /* ---------- Hamburger ---------- */
  .burger {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
  }
  .burger:hover { border-color: rgba(255, 255, 255, 0.45); }
  .burger__bar {
    position: absolute;
    left: 13px;
    right: 13px;
    top: 50%;
    height: 1.5px;
    margin-top: -0.75px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s var(--ease-out);
  }
  .burger__bar:nth-child(1) { transform: translateY(-4px); }
  .burger__bar:nth-child(2) { transform: translateY(4px); }
  .burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bar:nth-child(2) { transform: rotate(-45deg); }

  /* ---------- Menu mobilne (pełny ekran) ---------- */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 112px 20px max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(70% 45% at 15% 0%, rgba(133, 85, 177, 0.32), transparent 70%),
      radial-gradient(60% 40% at 100% 100%, rgba(255, 73, 61, 0.18), transparent 70%),
      var(--ink-header);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease-out);
  }
  @media (min-width: 768px) {
    .mobile-menu { padding-inline: 32px; padding-top: 136px; }
  }

  .mobile-menu__link {
    display: block;
    padding-block: 10px;
    color: var(--cream);
    font-size: clamp(2.1rem, 1.4rem + 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s ease;
  }
  .mobile-menu__link:hover,
  .mobile-menu__link[aria-current="true"] { color: var(--coral); }
  .mobile-menu.is-open .mobile-menu__link {
    opacity: 1;
    transform: none;
    transition-delay: calc(90ms + var(--i, 0) * 60ms);
  }
  .mobile-menu__meta { margin-top: auto; }

  @media (min-width: 1024px) {
    .mobile-menu { display: none; }
  }

  /* ---------- Hero ---------- */
  .hero-media__shade {
    background:
      linear-gradient(180deg, rgba(9, 8, 13, 0.5) 0%, rgba(9, 8, 13, 0.15) 35%, rgba(9, 8, 13, 0.85) 100%),
      linear-gradient(90deg, rgba(9, 8, 13, 0.8) 0%, rgba(9, 8, 13, 0.2) 100%);
  }
  /* Desktop: grafika ma już ciemną lewą stronę – na węższych ekranach
     kurtyna wchodzi pod tekst, więc dokładamy delikatny gradient */
  @media (min-width: 1024px) {
    .hero-media__shade {
      background: linear-gradient(90deg, rgba(9, 8, 13, 0.82) 0%, rgba(9, 8, 13, 0.5) 38%, rgba(9, 8, 13, 0) 68%);
    }
  }
  @media (min-width: 1680px) {
    .hero-media__shade { background: none; }
  }

  /* "powraca" – kursywa z lekkim zapasem, żeby ogonki liter nie były przycinane */
  .hero-accent__ink {
    display: inline-block;
    padding: 0 0.14em 0.08em 0.04em;
    margin: 0 -0.14em -0.08em -0.04em;
  }

  /* ---------- Etykieta sekcji z kreską: "—— BILETY" ---------- */
  .eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .eyebrow-line::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
  }

  /* ---------- Ceny ---------- */
  /* Rozmiar zależny od szerokości karty (container query units),
     żeby trzy ceny VIP zawsze mieściły się w jednym rzędzie */
  .price {
    font-size: clamp(1.75rem, 7.4cqi, 2.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    white-space: nowrap;
  }

  /* ---------- Kod rabatowy (kopiowanie) ---------- */
  .code-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 12px 28px;
    border: 0;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    cursor: copy;
    transition: transform 0.3s var(--ease-out), background-color 0.3s ease, box-shadow 0.3s ease;
  }
  .code-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  }
  .code-btn:active { transform: translateY(0); }
  .code-btn.is-copied { background: var(--plum-deep); }

  .copy-hint { min-height: 1.4em; transition: color 0.25s ease; }
  .copy-hint.is-copied { color: #fff; font-weight: 600; }

  .code-inline {
    position: relative;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: copy;
    text-decoration: underline dotted transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
  }
  .code-inline:hover { text-decoration-color: currentColor; }
  .code-inline::after {
    content: "Skopiowano!";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  }
  .code-inline.is-copied::after { opacity: 1; transform: translate(-50%, 0); }
  .code-inline.is-failed::after { content: "Skopiuj ręcznie"; opacity: 1; transform: translate(-50%, 0); }

  /* ---------- Aftermovie: miniatura otwierająca popup ---------- */
  .video-trigger {
    position: relative;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 56px -4px rgba(133, 85, 177, 0.32);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  }
  .video-trigger img {
    display: block;
    width: 100%;
    height: auto;
  }
  .video-trigger:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 90px -10px rgba(133, 85, 177, 0.55);
  }
  /* Pierścień wokół przycisku "play", który jest częścią grafiki */
  .video-trigger__ring {
    position: absolute;
    left: 48.62%;
    top: 49.92%;
    width: 12.42%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
  }

  /* ---------- Popup wideo ---------- */
  .video-modal {
    position: fixed;
    inset: 0;
    margin: auto; /* preflight Tailwinda zeruje marginesy – bez tego popup nie byłby wyśrodkowany */
    width: min(92vw, 1200px, calc((100dvh - 150px) * 16 / 9));
    height: fit-content;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    color: #fff;
  }
  .video-modal::backdrop {
    background: rgba(6, 5, 9, 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .video-modal__frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 30px 120px -20px rgba(133, 85, 177, 0.55);
  }
  .video-modal__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .video-modal__close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.3s var(--ease-out);
  }
  .video-modal__close:hover { background: var(--coral); border-color: var(--coral); transform: rotate(90deg); }

  /* ---------- Kontakt / partnerstwo ---------- */
  .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
    text-decoration: underline transparent;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.25s ease, color 0.25s ease;
    overflow-wrap: anywhere;
  }
  .contact-link:hover { text-decoration-color: currentColor; color: #fff; }

  .partner-arc {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
  }

  /* ---------- Podstrony z dokumentami (regulamin, polityka prywatności) ---------- */
  .doc-hero__shade {
    background:
      radial-gradient(55% 70% at 18% 0%, rgba(133, 85, 177, 0.3), transparent 70%),
      linear-gradient(90deg, rgba(9, 8, 13, 0.97) 0%, rgba(9, 8, 13, 0.85) 45%, rgba(9, 8, 13, 0.35) 100%);
  }

  .print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: transparent;
    color: var(--fog);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
  }
  .print-btn:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: rgba(255, 255, 255, 0.05); }

  /* Spis treści */
  .doc-toc ol { list-style: none; margin: 0; padding: 0; }
  .doc-toc a {
    display: grid;
    grid-template-columns: 2em minmax(0, 1fr);
    gap: 0.25em;
    padding: 7px 0 7px 14px;
    border-left: 2px solid rgba(9, 8, 13, 0.1);
    color: var(--smoke);
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .doc-toc a:hover { color: var(--ink); }
  .doc-toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--plum); font-weight: 600; }
  .doc-toc .toc-num { color: var(--plum); font-variant-numeric: tabular-nums; }
  /* Nagłówki zapisane w dokumencie WERSALIKAMI pokazujemy w spisie treści zwykłą wielkością liter (tylko wygląd) */
  .doc-toc--caps .toc-txt { display: inline-block; text-transform: lowercase; }
  .doc-toc--caps .toc-txt::first-letter { text-transform: uppercase; }

  .doc-toc-mobile {
    border: 1px solid rgba(9, 8, 13, 0.12);
    border-radius: 16px;
    background: var(--card);
  }
  .doc-toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
  }
  .doc-toc-mobile summary::-webkit-details-marker { display: none; }
  .doc-toc-mobile summary svg { transition: transform 0.3s var(--ease-out); }
  .doc-toc-mobile[open] summary svg { transform: rotate(90deg); }
  .doc-toc-mobile .doc-toc { padding: 0 20px 18px; }

  /* Treść dokumentu */
  .doc {
    max-width: 47rem;
    color: #2b2830;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: break-word;
  }
  .doc p { margin: 0 0 1rem; }
  .doc h2 {
    display: flex;
    gap: 0.5em;
    margin: 3.25rem 0 1.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(9, 8, 13, 0.12);
    color: var(--ink);
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    scroll-margin-top: calc(var(--header-offset) + 20px);
  }
  .doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .doc h2 .doc-num { color: var(--plum); }

  .doc a {
    color: var(--plum-deep);
    text-decoration: underline;
    text-decoration-color: rgba(133, 85, 177, 0.55);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: text-decoration-color 0.2s ease;
  }
  .doc a:hover { text-decoration-color: currentColor; }
  .doc mark { background: #ffe58f; color: inherit; padding: 0 0.1em; }
  .doc .doc-tab { white-space: pre; }

  /* Punkty z numeracją – etykieta w osobnej kolumnie (wcięcie wiszące) */
  .doc-item {
    display: grid;
    grid-template-columns: 2.2em minmax(0, 1fr);
    column-gap: 0.45em;
  }
  .doc-item .doc-num {
    color: var(--plum);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .doc-item.lvl-1 { grid-template-columns: 2.9em minmax(0, 1fr); }
  .doc-item.lvl-2 {
    grid-template-columns: 1.6em minmax(0, 1fr);
    margin-left: 3.35em;
    margin-bottom: 0.45rem;
  }
  .doc-item.doc-sub {
    grid-template-columns: 1.6em minmax(0, 1fr);
    margin-left: 2.65em;
    margin-bottom: 0.45rem;
  }
  .doc-item.doc-bullet .doc-num { font-weight: 400; }
  .doc .doc-indent { margin-left: 3.35em; }
  .doc-center { text-align: center; font-weight: 600; margin-top: 2rem !important; }

  @media (max-width: 639.98px) {
    .doc { font-size: 15px; }
    .doc-item.lvl-2, .doc .doc-indent { margin-left: 1.4em; }
    .doc-item.doc-sub { margin-left: 1em; }
  }

  /* Tabele */
  .doc-table {
    margin: 1.5rem 0 2.25rem;
    overflow-x: auto;
    border: 1px solid rgba(9, 8, 13, 0.12);
    border-radius: 14px;
    background: var(--card);
    -webkit-overflow-scrolling: touch;
  }
  .doc-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
  }
  .doc-table th,
  .doc-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(9, 8, 13, 0.1);
    border-right: 1px solid rgba(9, 8, 13, 0.1);
    text-align: left;
    vertical-align: top;
  }
  .doc-table th:last-child,
  .doc-table td:last-child { border-right: 0; }
  .doc-table tbody tr:last-child td { border-bottom: 0; }
  .doc-table td[rowspan] { border-bottom: 0; }
  .doc-table thead th { background: #e9e4db; color: var(--ink); font-weight: 600; }
  .doc-table thead th strong { font-weight: 600; }
  .doc-table p { margin: 0; }
  .doc-table p + p { margin-top: 0.5em; }

  /* ---------- Blokada przewijania (menu / popup) ---------- */
  html.is-locked {
    overflow: hidden;
    scrollbar-gutter: stable;
  }
}

/* ==========================================================================
   Animacje – tylko gdy użytkownik nie prosi o ograniczenie ruchu
   1) wejście hero (kurtyna + tekst),  2) odsłanianie sekcji przy scrollu,
   3) mikrointerakcje (hover) – zdefiniowane wyżej przy komponentach.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Hero */
  .hero-media__img {
    animation: curtain-settle 2.6s var(--ease-out) both;
    transform-origin: 70% 40%;
  }
  .rise {
    animation: rise 1s var(--ease-out) both;
    animation-delay: calc(140ms + var(--d, 0) * 110ms);
  }
  .hero-accent__ink {
    animation: ink-wipe 1.3s cubic-bezier(0.65, 0, 0.35, 1) backwards;
    animation-delay: calc(140ms + var(--d, 3) * 110ms);
  }

  @keyframes curtain-settle {
    from { opacity: 0.35; transform: scale(1.08); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes ink-wipe {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }

  /* 2. Odsłanianie przy scrollu (klasy nadaje js/main.js) */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 110ms);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* 3. Pulsujący pierścień na "play" */
  .video-trigger__ring { animation: ring-pulse 2.6s var(--ease-out) infinite; }
  .video-trigger:hover .video-trigger__ring { animation-duration: 1.4s; }
  @keyframes ring-pulse {
    0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    80%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
  }

  /* Popup */
  .video-modal[open] { animation: modal-in 0.45s var(--ease-out); }
  .video-modal[open]::backdrop { animation: fade-in 0.35s ease; }
  @keyframes modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes fade-in { from { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Druk – pokaż wszystko, bez sticky headera */
@media print {
  .site-header { position: static; background: var(--ink-header); }
  .mobile-menu, .video-modal, .skip-link { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* Podstrony z dokumentami: drukujemy sam dokument, czarno na białym */
  .is-doc-page .site-header,
  .is-doc-page .site-footer,
  .is-doc-page .doc-aside,
  .is-doc-page .doc-hero__media,
  .is-doc-page .print-btn,
  .is-doc-page nav[aria-label="Ścieżka nawigacji"] { display: none !important; }
  .is-doc-page,
  .is-doc-page body,
  .is-doc-page .doc-hero,
  .is-doc-page .doc-body { background: #fff !important; color: #000 !important; }
  .is-doc-page .doc-hero > div { padding: 0 0 16px !important; }
  .is-doc-page .doc-hero h1,
  .is-doc-page .doc-hero h1 span,
  .is-doc-page .doc-hero p { color: #000 !important; }
  .is-doc-page .doc-body > div { display: block !important; padding: 0 !important; }
  .is-doc-page .doc { max-width: none; font-size: 11pt; color: #000; }
  .is-doc-page .doc a { color: #000; }
  .is-doc-page .doc h2 { break-after: avoid; }
  .is-doc-page .doc-table { overflow: visible; }
}
