/*
Theme Name: Jazda po pijaku
Theme URI: https://jazdapopijaku.pl
Author: weboski
Author URI: https://weboski.pl
Description: Autorski motyw WordPress dla bloga adw. Gabriela Gatnera o prawie drogowym. Zbudowany na ACF Blocks V3 (Advanced Custom Fields PRO), mobile-first, z importerem treści demonstracyjnych.
Version: 1.0.31
Requires at least: 6.7
Requires PHP: 8.0
Tested up to: 6.7
Text Domain: jpp
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =============================================================================
   JAZDA PO PIJAKU — blog adw. Gabriela Gatnera
   Mobile-first. Domyslny CSS: 0-991.98px. Desktop: @media (min-width: 992px).
   Projekt Figma: Homepage / Mobile 390 + Homepage / Desktop 1440
   ============================================================================= */

/* =============================== ZMIENNE ================================== */
:root {
    /* ===== COLORS ===== */
    --green-900: #0f3d2e;
    --green-700: #1b5943;
    --ink-900: #14201b;
    --ink-600: #56655d;
    --cream-50: #f6f5f0;
    --white: #ffffff;
    --gold-500: #c9a227;
    --gold-100: #efe4be;
    --bronze-500: #b9862f;
    --line-200: #dde3dc;
    --track-200: #d6ded9;

    /* ===== FONTS ===== */
    --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --font-numeric: "Cormorant Infant", "Cormorant Garamond", Georgia, serif;
    --font-text: "DM Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* ===== TYPO ===== */
    --lh-display: 1.21;
    --lh-text: 1.3;
    --fs-section-heading: clamp(39px, 3.4722vw, 50px);
    --fs-post-hero-heading: clamp(34px, 3.3333vw, 48px);

    /* ===== LAYOUT ===== */
    --max: 1440px;
    --gutter: 24px;
    --section-y: 60px;
    --header-h: 76px;

    /* ===== TRANSITIONS ===== */
    --t-fast: .18s ease;
    --t-base: .25s ease;
    --t-slow: .45s ease;
}

/* =============================== RESET =================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--cream-50);
    color: var(--ink-900);
    font-family: var(--font-text);
    font-size: 15px;
    line-height: var(--lh-text);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd, pre, table { margin: 0; padding: 0; }

/* Reset znacznikow list dotyczy TYLKO list z klasa (menu, nawigacje).
   Listy bez klasy — czyli te z edytora WYSIWYG — dostaja znaczniki nizej. */
ul[class], ol[class] { list-style: none; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
}

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

/* ======================== ANIMACJE WEJSCIOWE =========================== */
.has-intro-animations :is(.fade-in, .fade-up, .fade-left, .fade-right):not(.intro-complete) {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 640ms;
    transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}
.has-intro-animations .fade-in:not(.intro-complete) { transform: translate3d(0, 0, 0); }
.has-intro-animations .fade-up:not(.intro-complete) { transform: translate3d(0, 18px, 0); }
.has-intro-animations .fade-left:not(.intro-complete) { transform: translate3d(-24px, 0, 0); }
.has-intro-animations .fade-right:not(.intro-complete) { transform: translate3d(24px, 0, 0); }
.has-intro-animations :is(.fade-in, .fade-up, .fade-left, .fade-right).is-animated:not(.intro-complete) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.has-intro-animations :is(.fade-in, .fade-up, .fade-left, .fade-right)[data-delay]:not(.intro-complete) {
    transition-delay: var(--anim-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .has-intro-animations :is(.fade-in, .fade-up, .fade-left, .fade-right) {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =============================================================================
   TYPOGRAFIA GLOBALNA
   Style dla czystych elementow HTML — bez zadnych klas. Redaktor w edytorze
   WYSIWYG wstawia zwykly naglowek / akapit / liste / tabele i wszystko
   wyglada zgodnie z projektem. Sekcje strony (np. .hero h1, .topics h3)
   nadpisuja te wartosci kontekstowo, bo maja wyzsza specyficznosc.
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--lh-display);
    color: var(--green-900);
    text-wrap: balance;
}

h1 { font-size: clamp(36px, 3.1944vw, 46px); }
h2 { font-size: clamp(28px, 2.2222vw, 32px); }
h3 { font-size: clamp(22px, 1.6667vw, 24px); }
h4 { font-size: clamp(19px, 1.3889vw, 20px); }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p, li, dd, dt, td, th, figcaption { text-wrap: pretty; }

strong, b { font-weight: 700; color: var(--green-900); }
em, i, cite { font-style: italic; }
small { font-size: .85em; }
sup, sub { font-size: .7em; line-height: 0; }
mark { background: var(--gold-100); color: var(--green-900); padding: 0 .2em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
del { text-decoration: line-through; color: var(--ink-600); }

hr {
    border: 0;
    height: 1px;
    background: var(--line-200);
}

/* Linki w tresci — podkreslone, zeby byly rozpoznawalne bez samego koloru.
   Regula celuje TYLKO w konteksty tekstowe (nie w nawigacje ani UI), zeby
   podkreslenie nie "wyciekalo" na menu, filtry czy spis tresci. */
:is(.wysiwyg, .text-block, .post__body, .form__consent label) a:not([class]) {
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
:is(.wysiwyg, .text-block, .post__body, .form__consent label) a:not([class]):hover,
:is(.wysiwyg, .text-block, .post__body, .form__consent label) a:not([class]):focus-visible { color: var(--gold-500); }

/* Listy z edytora (bez klasy) */
ul:not([class]), ol:not([class]) { padding-left: 1.35em; }
ul:not([class]) { list-style: square; }
ol:not([class]) { list-style: decimal; }
li::marker { color: var(--gold-500); font-weight: 700; }

blockquote:not([class]) {
    padding: 20px 24px;
    background: var(--gold-100);
    border-left: 3px solid var(--gold-500);
}

code, kbd, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    background: var(--cream-50);
    border: 1px solid var(--line-200);
    padding: .1em .35em;
}
pre {
    overflow-x: auto;
    padding: 18px 20px;
    background: var(--green-900);
    color: var(--gold-100);
    font-size: 13px;
    line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

table { border-collapse: collapse; width: 100%; }
th, td {
    padding: 12px 14px;
    border: 1px solid var(--line-200);
    text-align: left;
    vertical-align: top;
}
th { background: var(--gold-100); color: var(--green-900); font-weight: 700; }
caption {
    caption-side: bottom;
    padding-top: 10px;
    font-size: 13px;
    color: var(--ink-600);
    text-align: left;
}

figcaption { font-size: 13px; color: var(--ink-600); }

/* =============================================================================
   .wysiwyg — TRESC Z EDYTORA
   Klase dodaje SZABLON bloku ACF, nie redaktor. Zakres ustawia wylacznie
   rytm pionowy i wyglad elementow zlozonych (listy, tabele, cytaty, media).
   Rozmiar pisma, interlinie i kolor dziedziczy z sekcji nadrzednej — dzieki
   temu .wysiwyg mozna wstawic zarowno w blok tekstowy, jak i w kolumne
   na stronie glownej, bez rozjezdzania sie skali.
   ============================================================================= */

.wysiwyg { max-width: 100%; }
.wysiwyg::after { content: ""; display: table; clear: both; }

/* ---- rytm pionowy ---- */
/* Reguly obejmuja tez neutralne wrappery z legacy HTML, np. <div><p>... */
.wysiwyg * + * { margin-top: 1.15em; }
.wysiwyg * + :is(h1, h2, h3, h4, h5, h6) { margin-top: 1.9em; }
.wysiwyg :is(h1, h2, h3, h4, h5, h6) + * { margin-top: .7em; }

/* naglowki, linie i tabele zawsze zaczynaja sie pod oblewanym zdjeciem */
.wysiwyg :is(h1, h2, h3, h4, h5, h6, hr, .table-scroll) { clear: both; }

/* ---- listy ---- */
.wysiwyg :is(ul, ol) { list-style: none; padding-left: 0; }
.wysiwyg li { position: relative; padding-left: 1.6em; }
.wysiwyg li + li { margin-top: .5em; }
.wysiwyg :is(ul, ol) :is(ul, ol) { margin-top: .55em; }

.wysiwyg ul > li::before {
    content: "";
    position: absolute;
    left: .3em;
    top: .58em;
    width: 6px;
    height: 6px;
    background: var(--gold-500);
}

/* numeracja: 1.  →  1)  →  a)   (kazdy <ol> zeruje licznik, wiec dziala
   dowolna glebokosc zagniezdzenia) */
.wysiwyg ol { counter-reset: wys; }
.wysiwyg ol > li { counter-increment: wys; padding-left: 2.1em; }
.wysiwyg ol > li::before {
    content: counter(wys) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--gold-500);
    font-variant-numeric: tabular-nums;
}
.wysiwyg ol ol > li::before { content: counter(wys) ")"; }
.wysiwyg ol ol ol > li::before { content: counter(wys, lower-alpha) ")"; }

.wysiwyg dt { font-weight: 700; color: var(--green-900); }
.wysiwyg dd { padding-left: 1.6em; }
.wysiwyg dd + dt { margin-top: .8em; }

/* ---- cytat ---- */
.wysiwyg blockquote {
    padding: 22px 26px;
    background: var(--gold-100);
    border-left: 3px solid var(--gold-500);
}
.wysiwyg blockquote > * + * { margin-top: .7em; }
.wysiwyg blockquote p {
    font-family: var(--font-display);
    font-size: 1.3em;
    font-style: italic;
    line-height: 1.35;
    color: var(--green-900);
}
.wysiwyg blockquote :is(cite, footer) {
    display: block;
    font-family: var(--font-text);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bronze-500);
}

/* ---- tabele (opakowywane w .table-scroll przez main.js) ---- */
.table-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.wysiwyg table { font-size: .95em; min-width: 30ch; }
.wysiwyg tbody tr:nth-child(even) { background: var(--cream-50); }

/* ---- media ---- */
.wysiwyg :is(img, video) { max-width: 100%; height: auto; }
.wysiwyg figure > figcaption { margin-top: 10px; }

/* blok "Media i tekst" (media-text) - duze zdjecie, ale nie w oryginalnej rozdzielczosci */
.wysiwyg .wp-block-media-text__media img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}
.wysiwyg .wp-block-media-text__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.wysiwyg :is(iframe, embed, object) {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* ---- klasy, ktore WordPress dopisuje sam (wyrownanie mediow i tekstu) ---- */
.wysiwyg :is(.aligncenter, .wp-caption.aligncenter) { display: block; margin-inline: auto; }
.wysiwyg .alignnone { display: block; }
.wysiwyg .has-text-align-center { text-align: center; }
.wysiwyg .has-text-align-right { text-align: right; }
.wysiwyg .has-text-align-left { text-align: left; }
.wysiwyg .wp-caption { max-width: 100%; }
.wysiwyg .wp-caption-text { margin-top: 10px; font-size: 13px; color: var(--ink-600); }
.wysiwyg .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* ---- linki: takze te, do ktorych WP dopisze klase ---- */
.wysiwyg a {
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}
.wysiwyg a:hover,
.wysiwyg a:focus-visible { color: var(--gold-500); }
.wysiwyg a:is(.btn, .wp-block-button__link) { text-decoration: none; }

/* ---- wariant na ciemnym tle (np. blok tekstowy is-dark) ---- */
.wysiwyg.is-invert { color: var(--gold-100); }
.wysiwyg.is-invert :is(h1, h2, h3, h4, h5, h6, strong, b) { color: var(--white); }
.wysiwyg.is-invert a { color: var(--gold-500); }
.wysiwyg.is-invert a:hover { color: var(--white); }
.wysiwyg.is-invert :is(th) { background: rgba(201, 162, 39, .18); color: var(--white); }
.wysiwyg.is-invert :is(th, td) { border-color: rgba(239, 228, 190, .28); }
.wysiwyg.is-invert tbody tr:nth-child(even) { background: rgba(239, 228, 190, .06); }

/* ============================== HELPERY ================================== */
.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.icon {
    display: inline-block;
    flex: none;
    color: currentColor;
    vertical-align: middle;
}

.icons-sprite { display: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--green-900);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* Nadkreslenie sekcji (eyebrow) */
.eyebrow {
    display: block;
    font-family: var(--font-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-500);
}

/* Link z strzalka */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--green-700);
}
.link-arrow .icon {
    position: relative;
    top: -1px;
    flex: 0 0 auto;
    color: var(--green-900);
    transition: transform var(--t-base);
}

/* ============================== PRZYCISKI ================================ */
.btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: left;
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn > span {
    display: block;
    line-height: 1;
    transform: translateY(1px);
}
.btn .icon { transition: transform var(--t-base); }
.btn:hover .icon, .btn:focus-visible .icon { transform: translateX(4px); }

.btn.is-primary {
    background: var(--gold-500);
    color: var(--green-900);
}
.btn.is-primary:hover, .btn.is-primary:focus-visible { background: var(--bronze-500); color: var(--white); }

.btn.is-outline {
    justify-content: center;
    text-align: center;
    border: 1px solid var(--gold-500);
    color: var(--white);
}
.btn.is-outline:hover, .btn.is-outline:focus-visible { background: var(--gold-500); color: var(--green-900); }

.btn.is-bronze {
    background: var(--bronze-500);
    color: var(--white);
    min-height: 54px;
    padding-inline: 18px;
    font-size: 11px;
}
.btn.is-bronze:hover, .btn.is-bronze:focus-visible { background: var(--green-900); }

.btn.is-dark {
    background: var(--green-900);
    color: var(--white);
    padding-inline: 18px;
    font-size: 11px;
}
.btn.is-dark:hover, .btn.is-dark:focus-visible { background: var(--green-700); }

/* ================================ HEADER ================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream-50);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line-200), 0 10px 30px -22px rgba(15, 61, 46, .45); }

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
    padding-block: 18px;
}

.brand { display: block; }
.brand__name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(23px, 2.0833vw, 30px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--green-900);
}
.brand__tagline {
    display: block;
    margin-top: 2px;
    font-size: clamp(7px, .625vw, 9px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-500);
    transition: color var(--t-fast);
}
.header-phone:hover, .header-phone:focus-visible { color: var(--bronze-500); }
.header-phone__number {
    display: none;
    inline-size: 115px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    white-space: nowrap;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border: 1px solid var(--line-200);
    color: var(--green-900);
    transition: background-color var(--t-fast), border-color var(--t-fast);
}
.menu-toggle:hover { background: var(--white); border-color: var(--green-900); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* ------------------------------- MENU ------------------------------------ */
.site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cream-50);
    border-top: 1px solid var(--line-200);
    box-shadow: 0 24px 40px -28px rgba(15, 61, 46, .5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.site-nav .menu { padding: 8px var(--gutter) 24px; }

.site-nav .menu-item { position: relative; border-bottom: 1px solid var(--line-200); }
.site-nav .menu > .menu-item:last-child { border-bottom: 0; }

.site-nav .menu-item > a {
    display: block;
    padding: 16px 48px 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-900);
    transition: color var(--t-fast);
}
.site-nav .menu-item > a:hover { color: var(--green-700); }

.site-nav .submenu-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--green-900);
}
.site-nav .submenu-toggle .icon { transition: transform var(--t-base); }
.site-nav .submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.site-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base);
}
.site-nav .sub-menu .menu-item { border-bottom: 0; border-top: 1px solid var(--line-200); }
.site-nav .sub-menu .menu-item > a {
    padding: 12px 48px 12px 16px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-600);
}
.site-nav .sub-menu .sub-menu .menu-item > a { padding-left: 32px; }
.site-nav .sub-menu .submenu-toggle { top: 2px; }

/* ================================= HERO ================================== */
.hero {
    background: var(--green-900);
    color: var(--white);
}
.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 50px;
    padding-bottom: 60px;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero__copy h1 {
    font-size: clamp(46px, 4.6528vw, 67px);
    line-height: .96;
    color: var(--white);
    text-wrap: pretty;
}
.hero__copy p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.5;
    color: var(--gold-100);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding-block: 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gold-100);
}
.hero__trust .icon { color: var(--gold-100); }

.hero__visual {
    position: relative;
    aspect-ratio: 342 / 430;
    overflow: hidden;
    background: var(--gold-100);
}
.hero__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 69%;
}
.hero__badge {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 270px;
    min-height: 64px;
    max-width: calc(100% - 24px);
    padding: 14px 16px;
    background: var(--cream-50);
}
.hero__badge-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green-900);
}
.hero__badge-role {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--ink-600);
}

/* ========================= TOPICS / ZACZNIJ TUTAJ ======================== */
.topics {
    padding-block: var(--section-y);
    background: var(--cream-50);
}
.topics__head { display: flex; flex-direction: column; gap: 15px; }
.topics__intro { display: flex; flex-direction: column; gap: 15px; }
.topics__intro h2 { font-size: var(--fs-section-heading); }
.topics__intro br { display: none; }
.topics__note p {
    margin-top: 13px;
    font-size: 14px;
    color: var(--ink-600);
}

.topics__list { display: flex; flex-direction: column; }

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 30px;
    border-top: 1px solid var(--line-200);
    transition: background-color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.topic-card:last-child { border-bottom: 1px solid var(--line-200); }
.topic-card__icon {
    display: inline-flex;
    color: var(--gold-500);
    transition: transform var(--t-base);
}
.topic-card h3 {
    font-size: clamp(27px, 2.0833vw, 30px);
    max-width: 292px;
    transition: color var(--t-base);
}
.topic-card p {
    font-size: 14px;
    color: var(--ink-600);
}
.topic-card:hover h3, .topic-card:focus-visible h3 { color: var(--green-700); }
.topic-card:hover .link-arrow .icon { transform: translateX(4px); }
.topic-card:hover .topic-card__icon { transform: translateY(-2px); }

/* ============================ LATEST ARTICLES ============================ */
.articles {
    padding-block: var(--section-y);
    background: var(--white);
}
.articles__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.articles__intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
    order: 1;
}
.articles__intro h2 { font-size: var(--fs-section-heading); }

.articles__grid { order: 2; }
.articles__all { order: 3; }

.article-scroller__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.article-scroller__track::-webkit-scrollbar { display: none; }

/* 246px = szerokosc karty z projektu (390px). Powyzej karta rosnie, zeby w
   kadrze zawsze bylo widoczne ~1,5 elementu i bylo jasne, ze lista sie przewija. */
.article-card {
    flex: 0 0 clamp(246px, 68%, 420px);
    scroll-snap-align: start;
}
.article-card__link {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}
.article-card__media {
    display: block;
    aspect-ratio: 246 / 158;
    overflow: hidden;
    background: var(--cream-50);
}
.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .62), transparent 34%),
        linear-gradient(145deg, #e8ebe8 0%, #d9deda 100%);
    color: #7d8982;
}
.article-card__placeholder svg {
    width: clamp(48px, 18%, 68px);
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--t-base), color var(--t-base);
}
.article-card__placeholder span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.article-card:hover .article-card__placeholder svg {
    color: var(--green-700);
    transform: translateY(-2px);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.article-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-500);
}
.article-card__meta .icon { color: var(--green-900); }
/* tytul karty moze byc h2 (archiwum) albo h3 (sekcja pod naglowkiem h2) */
.article-card :is(h2, h3) { font-size: 31px; transition: color var(--t-base); }
.article-card p {
    font-size: 14px;
    color: var(--ink-600);
}
.article-card:hover :is(h2, h3) { color: var(--green-700); }
.article-card:hover .link-arrow .icon { transform: translateX(4px); }

/* Wlasny pasek przewijania karuzeli */
.scrollbar {
    position: relative;
    height: 2px;
    margin-top: 16px;
    background: var(--track-200);
    overflow: hidden;
}
.scrollbar__thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 42%;
    background: var(--green-900);
    transition: transform .1s linear;
    will-change: transform;
}

/* ============================== AUTHOR / O MNIE ========================== */
.author {
    padding-block: var(--section-y);
    background: var(--cream-50);
}
.author__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.author__head { display: flex; flex-direction: column; gap: 15px; }
.author__label { display: flex; align-items: center; gap: 12px; }
.author__label .icon { color: var(--green-900); }
.author__head h2 { font-size: var(--fs-section-heading); }

.author__portrait {
    aspect-ratio: 342 / 334;
    overflow: hidden;
    background: var(--line-200);
}
.author__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.author__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}
.author__body > :is(p, .wysiwyg) {
    font-size: clamp(15px, 1.1111vw, 16px);
    line-height: 1.5;
    color: var(--ink-600);
}

.author__facts { width: 100%; }
.author__fact {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding-block: 18px;
    border-top: 1px solid var(--line-200);
}
.author__fact-top {
    display: flex;
    align-items: center;
    gap: 16px;
}
.author__fact-top .icon { color: var(--green-900); }
.author__fact-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-900);
}
.author__fact-label {
    font-size: 12px;
    color: var(--ink-600);
}

.author__quote {
    width: 100%;
    padding: 24px 22px;
    background: var(--gold-100);
}
.author__quote blockquote p {
    font-family: var(--font-display);
    font-size: 27px;
    font-style: italic;
    font-weight: 400;
    line-height: var(--lh-display);
    color: var(--green-900);
}
.author__quote figcaption {
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-500);
}

/* ========================= PROCESS / JAK TO DZIALA ======================= */
.process {
    padding-block: var(--section-y);
    background: var(--green-900);
}
.process__head {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 32px;
}
.process__head h2 {
    font-size: var(--fs-section-heading);
    color: var(--white);
}

.process__steps { display: flex; flex-direction: column; gap: 32px; }

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--gold-500);
}
.process-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    background: var(--gold-100);
    color: var(--green-900);
}
.process-step__text { display: flex; flex-direction: column; gap: 8px; }
.process-step h3 {
    font-size: clamp(25px, 1.9444vw, 28px);
    color: var(--white);
}
.process-step p {
    font-size: clamp(13px, .9722vw, 14px);
    color: var(--gold-100);
}

/* ============================== MEDIA PROOF ============================== */
.brand-logo {
    display: grid;
    place-items: center;
    color: inherit;
    text-decoration: none;
    opacity: .82;
    transform: scale(.94);
    transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease;
}
.brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-logo:hover,
.brand-logo:focus-visible {
    opacity: 1;
    filter: saturate(1.08);
    transform: translateY(-3px) scale(1);
}

.media {
    padding-block: var(--section-y);
    background: var(--gold-100);
}
.media__head {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}
.media__intro { display: flex; flex-direction: column; gap: 15px; }
.media__intro h2 { font-size: var(--fs-section-heading); }
.media__intro p {
    margin-top: 13px;
    font-size: 14px;
    color: var(--ink-600);
}

.media__logos {
    --media-logo-gap: clamp(28px, 3vw, 44px);
    position: relative;
    min-width: 0;
}
.media__logos-viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.media__logos-track {
    display: flex;
    width: max-content;
    animation: media-logo-marquee 30s linear infinite;
    will-change: transform;
}
.media__logos-group {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--media-logo-gap);
    padding-right: var(--media-logo-gap);
}
.media__logo {
    flex: 0 0 clamp(145px, 15vw, 190px);
    width: clamp(145px, 15vw, 190px);
    height: 88px;
}
.media__logo img {
    max-height: 76px;
}
.media__logo--tvn24 img { max-width: 76px; max-height: 76px; }
.media__logo--rzeczpospolita img { max-width: min(100%, 210px); max-height: 76px; }
.media__logos:hover .media__logos-track { animation-play-state: paused; }
@keyframes media-logo-marquee {
    to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .media__logos-track { animation: none; }
    .media__logos-group[aria-hidden="true"] { display: none; }
    .media__logos-viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

.media__video {
    position: relative;
    width: 100%;
    max-width: 799px;
    margin-inline: auto;
    aspect-ratio: 799 / 396;
    overflow: hidden;
    background: var(--green-900);
}
.media__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.media__video[data-yt-id]:not([data-yt-id=""]) { cursor: pointer; }
.media__video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--white);
    background: rgba(15, 61, 46, .12);
    transition: background-color var(--t-base);
}
.media__video-play::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 76px;
    border: 1px solid var(--white);
    border-radius: 50%;
    background: rgba(15, 61, 46, .35);
    backdrop-filter: blur(2px);
    transition: transform var(--t-base), background-color var(--t-base);
}
.media__video-play:hover::before,
.media__video-play:focus-visible::before { background: rgba(201, 162, 39, .9); }
.media__video-play .icon { position: relative; transform: translateX(2px); }
.media__video-play:hover { background: rgba(15, 61, 46, .3); }
.media__video-play:hover::before { transform: scale(1.08); }

/* ============================== CONTACT CTA ============================== */
.contact {
    padding-block: var(--section-y);
    background: var(--cream-50);
}
.contact__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact__copy { display: flex; flex-direction: column; gap: 15px; }
.contact__copy h2 { font-size: var(--fs-section-heading); }
.contact__copy p {
    margin-top: 13px;
    font-size: clamp(15px, 1.1111vw, 16px);
    color: var(--ink-600);
}

.contact__actions { display: flex; flex-direction: column; gap: 16px; }

.contact-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 14px 18px;
    color: var(--green-900);
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.contact-tile__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.contact-tile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-tile__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.contact-tile__value {
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.contact-tile.is-outline .contact-tile__value { font-size: 13px; }
.contact-tile .icon:last-child { transition: transform var(--t-base); }
.contact-tile:hover .icon:last-child, .contact-tile:focus-visible .icon:last-child { transform: translateX(4px); }

.contact-tile.is-primary { background: var(--gold-500); }
.contact-tile.is-primary:hover, .contact-tile.is-primary:focus-visible { background: var(--bronze-500); color: var(--white); }

.contact-tile.is-outline { border: 1px solid var(--green-900); }
.contact-tile.is-outline:hover, .contact-tile.is-outline:focus-visible { background: var(--green-900); color: var(--white); }

/* ================================ PARTNERS =============================== */
.partners {
    padding-block: var(--section-y);
    background: var(--white);
}
.partners__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 36px;
    text-align: center;
}
.partners__head h2 { font-size: var(--fs-section-heading); }

.partners__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 60px;
}
.partners__logo { width: 237px; height: 62px; }
.partners__logo:nth-child(3) { width: 172px; }

/* ================================= FOOTER ================================ */
.site-footer {
    padding-top: clamp(50px, 3.8889vw, 56px);
    padding-bottom: 32px;
    background: var(--green-900);
    color: var(--gold-100);
}
.site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gold-500);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 28px; }
.site-footer__name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(28px, 2.3611vw, 34px);
    font-weight: 600;
    line-height: var(--lh-display);
    text-transform: uppercase;
    color: var(--white);
}
.site-footer__brand p {
    font-size: 13px;
    color: var(--gold-100);
}

.site-footer__nav .menu { display: flex; flex-direction: column; gap: 14px; }
.site-footer__nav a {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    transition: color var(--t-fast);
}
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { color: var(--gold-500); }

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
    font-size: 10px;
    color: var(--gold-100);
}
.site-footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom a:hover { color: var(--gold-500); }
.site-footer__author a { color: var(--gold-500); text-decoration: none; }
.site-footer__author a:hover { text-decoration: underline; }

/* ================= CARDS GRID (archiwum, powiazane wpisy) =============== */
.cards-grid { display: grid; gap: 32px; }
.cards-grid .article-card { background: var(--cream-50); }
.cards-grid .article-card__link { gap: 20px; }
.cards-grid .article-card__body { padding: 0 24px 26px; }
.cards-grid .article-card :is(h2, h3) { font-size: clamp(24px, 1.875vw, 27px); }
.cards-grid .article-card .link-arrow { margin-top: auto; }

/* ============================== ARCHIWUM ================================= */
.archive {
    padding-block: var(--section-y);
    background: var(--white);
}
.archive__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.archive__filters a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-900);
    border: 1px solid var(--line-200);
    transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.archive__filters a:hover,
.archive__filters a:focus-visible { border-color: var(--green-900); background: var(--cream-50); }
.archive__filters a[aria-current="page"] {
    background: var(--green-900);
    border-color: var(--green-900);
    color: var(--white);
}

/* ============================= PAGINACJA ================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-900);
    border: 1px solid var(--line-200);
    transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.pagination a.page-numbers:hover { border-color: var(--green-900); background: var(--cream-50); }
.pagination .page-numbers.current {
    background: var(--green-900);
    border-color: var(--green-900);
    color: var(--white);
}
.pagination .page-numbers.dots { border-color: transparent; }

/* ============================== POST HERO ================================ */
.post-hero {
    padding-top: 50px;
    padding-bottom: var(--section-y);
    background: var(--green-900);
    color: var(--white);
}
.post-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
}
.post-hero h1 {
    font-size: var(--fs-post-hero-heading);
    line-height: 1.04;
    color: var(--white);
}
.post-hero p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.5;
    color: var(--gold-100);
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-500);
}
.post-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================================= POST ================================== */
.post {
    padding-block: var(--section-y);
    background: var(--white);
}
.post__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post__aside {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.post__figure {
    margin: 0;
    background: var(--gold-100);
}
.post__figure > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.post__figure figcaption {
    padding-top: 10px;
    font-size: 12px;
    color: var(--ink-600);
}

.post__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 12px;
    background: var(--cream-50);
    border-left: 3px solid var(--gold-500);
    text-decoration: none;
    transition: background-color .2s ease;
}
a.post__card:hover,
a.post__card:focus-visible {
    background: var(--gold-100);
}
.post__card-avatar {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gold-100);
}
.post__card-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post__card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.post__card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-900);
}
.post__card-role { font-size: 12px; color: var(--ink-600); }

/* ---- spis tresci (generowany z naglowkow h2 przez main.js) ---- */
.post-toc {
    padding-top: 18px;
    border-top: 1px solid var(--gold-500);
}
.post-toc__title {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-500);
}
.post-toc ol {
    list-style: none;
    padding-left: 0;
    counter-reset: toc;
}
.post-toc li { counter-increment: toc; }
.post-toc a {
    display: flex;
    gap: 10px;
    padding: 8px 12px 8px 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink-600);
    border-left: 2px solid var(--line-200);
    transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.post-toc a::before {
    content: counter(toc);
    flex: none;
    font-weight: 700;
    color: var(--gold-500);
    font-variant-numeric: tabular-nums;
}
.post-toc a:hover { color: var(--green-900); background: var(--cream-50); }
.post-toc a.is-active {
    color: var(--green-900);
    font-weight: 500;
    border-left-color: var(--gold-500);
    background: var(--cream-50);
}

/* ---- udostepnianie ---- */
.post-share { display: flex; flex-direction: column; gap: 12px; }
.post-share__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-500);
}
.post-share__list { display: flex; flex-wrap: wrap; gap: 10px; }
.post-share__list :is(a, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--green-900);
    border: 1px solid var(--line-200);
    transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.post-share__list :is(a, button):hover,
.post-share__list :is(a, button):focus-visible {
    background: var(--green-900);
    border-color: var(--green-900);
    color: var(--white);
}
.post-share__status { font-size: 12px; color: var(--green-700); }
.post-share__status:empty { display: none; }

/* ---- tresc wpisu ---- */
.post__body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-600);
}
.post__body > .wysiwyg > :is(h2, h3) { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ============================ POWIAZANE WPISY ============================ */
.related {
    padding-block: var(--section-y);
    background: var(--cream-50);
}
.related__head {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 32px;
}
.related__head h2 { font-size: var(--fs-post-hero-heading); }
.related__track { display: flex; gap: 16px; }
.related .article-card { background: var(--white); }

/* ============================== PAGE HERO ================================ */
.page-hero {
    padding-top: 50px;
    padding-bottom: var(--section-y);
    background: var(--green-900);
    color: var(--white);
}
.page-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
}
.page-hero h1 {
    font-size: clamp(39px, 3.5417vw, 51px);
    line-height: .98;
    color: var(--white);
}
.page-hero p {
    font-size: clamp(15px, 1.1111vw, 17px);
    line-height: 1.5;
    color: var(--gold-100);
}
.page-hero__highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-family: var(--font-numeric);
    font-size: clamp(20px, 1.8056vw, 26px);
    font-weight: 700;
    color: var(--gold-500);
    transition: color var(--t-fast);
}
.page-hero__highlight:hover,
.page-hero__highlight:focus-visible { color: var(--gold-100); }

/* ===================== TEXT BLOCK (ACF: blok tekstowy) =================== */
.text-block {
    padding-block: var(--section-y);
    background: var(--white);
}
.text-block.is-cream { background: var(--cream-50); }
.text-block.is-dark { background: var(--green-900); }

.text-block .wysiwyg {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-600);
}
.text-block.is-narrow .wysiwyg { max-width: 680px; }
.text-block.is-wide .wysiwyg { max-width: none; }

/* ============================ CONTACT INFO =============================== */
.contact-info {
    padding-block: var(--section-y);
    background: var(--cream-50);
}
.contact-info__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-info__head {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-info__head h2 { font-size: var(--fs-section-heading); }
.contact-info__body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-info .wysiwyg {
    font-size: clamp(15px, 1.1111vw, 16px);
    line-height: 1.6;
    color: var(--ink-600);
}
.contact-info__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================ FORMULARZ ================================== */
.contact-form {
    padding-block: var(--section-y);
    background: var(--white);
}
.contact-form__head {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 32px;
    max-width: 620px;
}
.contact-form__head h2 { font-size: var(--fs-section-heading); }
.contact-form__head p {
    margin-top: 13px;
    font-size: clamp(15px, 1.1111vw, 16px);
    color: var(--ink-600);
}

.form {
    display: grid;
    gap: 20px;
    max-width: 820px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field.is-wide { grid-column: 1 / -1; }

.form label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-900);
}
.form__required { color: var(--bronze-500); }

.form :is(input, textarea) {
    width: 100%;
    padding: 15px 16px;
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink-900);
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: 0;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
}
.form textarea { min-height: 168px; resize: vertical; }
.form :is(input, textarea)::placeholder { color: #9aa8a0; }
.form :is(input, textarea):hover { border-color: var(--ink-600); }
.form :is(input, textarea):focus-visible {
    outline: none;
    border-color: var(--green-900);
    box-shadow: 0 0 0 3px rgba(15, 61, 46, .12);
}

/* Blad pokazujemy dopiero po interakcji uzytkownika (:user-invalid),
   nigdy przy wejsciu na strone. Kolor + ikona + tekst — nie tylko kolor. */
.form :is(input, textarea):user-invalid {
    border-color: #b3261e;
    background: #fdf6f5;
}
.form :is(input, textarea):user-invalid ~ .form__error { display: flex; }
.form__error {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #b3261e;
}
.form__error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 15px;
    height: 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: #b3261e;
    border-radius: 50%;
}

.form__consent {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    grid-column: 1 / -1;
}
.form__consent input {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 2px;
    accent-color: var(--green-900);
    appearance: auto;
}
.form__consent label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-600);
}
.form__consent input:user-invalid ~ label { color: #b3261e; }
.form__consent .form__error { flex-basis: 100%; margin-left: 32px; }

.form__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 1 / -1;
}
.form button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--green-900);
    background: var(--gold-500);
    transition: background-color var(--t-fast), color var(--t-fast);
}
.form button[type="submit"]:hover,
.form button[type="submit"]:focus-visible { background: var(--bronze-500); color: var(--white); }
.form button[type="submit"] .icon { transition: transform var(--t-base); }
.form button[type="submit"]:hover .icon { transform: translateX(4px); }

.form__status:empty { display: none; }
.form__status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    font-size: 14px;
    background: var(--gold-100);
    border-left: 3px solid var(--gold-500);
    color: var(--green-900);
}
.form__status.is-error {
    background: #fdf6f5;
    border-left-color: #b3261e;
    color: #b3261e;
}

/* =============================================================================
   DESKTOP 992px+
   ============================================================================= */
@media (min-width: 992px) {

    :root {
        --gutter: clamp(40px, 6.6667vw, 96px);
        --section-y: clamp(60px, 5.5556vw, 80px);
        --header-h: 96px;
    }

    body { font-size: 16px; }

    /* eyebrow w sekcjach nadrzednych jest o stopien wieksze (zgodnie z projektem) */
    .hero .eyebrow,
    .topics .eyebrow,
    .articles .eyebrow { font-size: 12px; }

    /* --------------------------- HEADER ---------------------------------- */
    /* 1fr | auto | 1fr — menu jest dokladnie na osi strony (jak w projekcie) */
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 32px;
        padding-block: 20px;
    }
    .site-header__actions { gap: 0; justify-content: flex-end; }
    .header-phone__number { display: block; }
    .header-phone .visually-hidden { display: none; }
    .menu-toggle { display: none; }

    .site-nav {
        position: static;
        max-height: none;
        overflow: visible;
        background: none;
        border-top: 0;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }
    .site-nav .menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 0;
    }
    .site-nav .menu-item { border-bottom: 0; }
    .site-nav .menu > .menu-item > a {
        position: relative;
        padding: 4px 0;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }
    .site-nav .menu > .menu-item > a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 1px;
        background: var(--gold-500);
        transition: width var(--t-base);
    }
    .site-nav .menu > .menu-item > a:hover::after,
    .site-nav .menu > .menu-item:focus-within > a::after { width: 100%; }

    .site-nav .submenu-toggle { display: none; }

    .site-nav .sub-menu {
        position: absolute;
        left: -18px;
        top: 100%;
        z-index: 95;
        min-width: 260px;
        max-height: none;
        padding: 8px 0;
        margin-top: 18px;
        background: var(--white);
        border: 1px solid var(--line-200);
        box-shadow: 0 26px 44px -26px rgba(15, 61, 46, .45);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
    }
    /* mostek pod odstepem — kursor nie traci hoveru w drodze do rozwinietego menu */
    .site-nav .sub-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -19px;
        height: 19px;
    }
    .site-nav .menu-item-has-children:hover > .sub-menu,
    .site-nav .menu-item-has-children:focus-within > .sub-menu {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .site-nav .sub-menu .menu-item { border-top: 0; }
    .site-nav .sub-menu .menu-item > a {
        padding: 10px 18px;
        font-size: 14px;
        color: var(--ink-900);
        white-space: nowrap;
    }
    .site-nav .sub-menu .menu-item > a:hover { background: var(--cream-50); color: var(--green-700); }
    .site-nav .sub-menu .sub-menu {
        left: 100%;
        top: 0;
        margin: -9px 0 0 0;
    }
    .site-nav .sub-menu .sub-menu::before {
        left: -19px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 19px;
        height: auto;
    }
    .site-nav .sub-menu .sub-menu .menu-item > a { padding-left: 18px; }

    /* ---------------------------- HERO ----------------------------------- */
    .hero__inner {
        display: grid;
        grid-template-columns: 610fr 566fr;
        gap: clamp(40px, 5vw, 72px);
        align-items: stretch;
        min-height: 720px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .hero__copy { justify-content: center; }
    .hero__copy h1 { line-height: .92; }
    .hero__copy p { max-width: 560px; }

    .hero__actions {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    .hero__actions .btn {
        width: auto;
        min-height: 52px;
        justify-content: center;
        padding: 14px 24px;
        font-size: 13px;
    }
    .hero__actions .btn.is-primary { min-width: 220px; }
    .hero__actions .btn.is-outline { min-width: 180px; padding-inline: 22px; }

    .hero__visual { aspect-ratio: auto; min-height: 720px; }
    .hero__visual img { object-position: center; }
    .hero__badge {
        bottom: 20px;
        width: 280px;
        padding: 12px 20px;
        min-height: 60px;
    }
    .hero__badge-name { font-size: 13px; }
    .hero__badge-role { font-size: 12px; }

    /* --------------------------- TOPICS ---------------------------------- */
    .topics__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 48px;
        margin-bottom: 40px;
    }
    .topics__intro { gap: 8px; flex: 0 1 680px; }
    .topics__intro br { display: inline; }
    .topics__note { flex: 0 0 360px; }
    .topics__note p { margin-top: 0; font-size: 15px; }

    .topics__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
    .topic-card {
        gap: 18px;
        padding: 28px;
        background: var(--white);
        border: 1px solid var(--line-200);
    }
    .topic-card:last-child { border-bottom: 1px solid var(--line-200); }
    .topic-card:hover {
        border-color: var(--gold-500);
        box-shadow: 0 14px 26px -22px rgba(28, 31, 30, .28);
    }
    .topic-card h3 { max-width: none; }
    .topic-card .link-arrow { margin-top: auto; font-size: 12px; letter-spacing: .05em; }

    /* ------------------------ LATEST ARTICLES ---------------------------- */
    .articles__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 44px 32px;
        align-items: end;
    }
    .articles__intro { grid-column: 1; grid-row: 1; gap: 6px; }
    .articles .btn.is-bronze {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 230px;
        min-height: 52px;
        justify-self: end;
    }
    .articles__grid { grid-column: 1 / -1; grid-row: 2; }

    .articles__track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
        overflow: visible;
    }
    .article-card {
        flex: initial;
        background: var(--cream-50);
        transition: box-shadow var(--t-base);
    }
    .article-card:hover { box-shadow: 0 16px 30px -24px rgba(28, 31, 30, .26); }

    /* karta wyrozniona: lewa kolumna, pelna wysokosc (tylko sekcja .articles) */
    .articles .article-card.is-featured { grid-column: 1; grid-row: 1 / span 2; }
    .articles .article-card.is-featured .article-card__link { gap: 20px; }
    .articles .article-card.is-featured .article-card__media { aspect-ratio: 608 / 330; }
    .articles .article-card.is-featured .article-card__body {
        gap: 14px;
        padding: 0 30px 28px;
        flex: 1 1 auto;
    }
    .articles .article-card.is-featured h3 { font-size: clamp(27px, 2.2222vw, 32px); }
    .articles .article-card.is-featured p { font-size: 14px; }
    .articles .article-card.is-featured .link-arrow { margin-top: auto; }

    /* karty poziome: obraz + tresc (tylko sekcja .articles) */
    .articles .article-card:not(.is-featured) { grid-column: 2; min-height: 291px; }
    .articles .article-card:not(.is-featured) .article-card__link {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }
    .articles .article-card:not(.is-featured) .article-card__media {
        flex: 0 0 39.14%;
        aspect-ratio: auto;
        align-self: stretch;
    }
    .articles .article-card:not(.is-featured) .article-card__body {
        flex: 1 1 auto;
        justify-content: center;
        gap: 14px;
        padding: 26px 24px 26px 26px;
    }
    .articles .article-card:not(.is-featured) .article-card__meta { font-size: 10px; }
    .articles .article-card:not(.is-featured) h3 { font-size: 27px; }
    .articles .article-card:not(.is-featured) p { font-size: 13px; }

    .article-card .link-arrow { font-size: 12px; }
    .scrollbar { display: none; }

    /* --------------------------- AUTHOR --------------------------------- */
    .author__inner {
        display: grid;
        grid-template-columns: 500fr 676fr;
        gap: 16px clamp(40px, 5vw, 72px);
        align-items: center;
    }
    .author__portrait {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: 500 / 560;
    }
    .author__head { grid-column: 2; grid-row: 1; gap: 16px; align-self: end; }
    .author__body { grid-column: 2; grid-row: 2; gap: 16px; align-self: start; }
    .author__body > :is(p, .wysiwyg) { max-width: 640px; }

    .author__facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .author__fact {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        min-height: 73px;
        padding: 14px 18px;
        border-top: 0;
        border-right: 1px solid var(--line-200);
    }
    .author__fact-top { gap: 10px; }
    .author__fact-label { font-size: 11px; }

    .author__quote { padding: 24px 20px 14px; }
    .author__quote blockquote p { font-size: 18px; }
    .author__quote figcaption { margin-top: 7px; }

    .author__body .btn.is-dark {
        width: auto;
        min-width: 220px;
        min-height: 52px;
    }

    /* --------------------------- PROCESS -------------------------------- */
    .process__head { gap: 8px; margin-bottom: 52px; max-width: 700px; }
    .process__steps {
        flex-direction: row;
        gap: 24px;
    }
    .process-step {
        flex: 1 1 0;
        flex-direction: column;
        gap: 18px;
        padding: 28px;
    }
    .process-step__text { gap: 18px; }

    /* ------------------------- MEDIA PROOF ------------------------------ */
    .media {
        padding-top: 54px;
        padding-bottom: clamp(60px, 5.5556vw, 80px);
    }
    .media__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
        margin-bottom: 80px;
    }
    .media__intro { gap: 12px; flex: 0 1 520px; }
    .media__intro p { margin-top: 0; }
    .media__logos {
        flex: 0 1 656px;
        min-height: 100px;
    }

    /* -------------------------- CONTACT CTA ----------------------------- */
    .contact__inner {
        display: grid;
        grid-template-columns: 650fr 502fr;
        gap: clamp(40px, 6.6667vw, 96px);
        align-items: center;
    }
    .contact__copy { gap: 18px; }
    .contact__copy p { margin-top: 0; max-width: 600px; }
    .contact-tile {
        min-height: 90px;
        padding: 22px 24px;
    }
    .contact-tile__main { gap: 14px; }
    .contact-tile__text { gap: 4px; }
    .contact-tile__value,
    .contact-tile.is-outline .contact-tile__value { font-size: 17px; }

    /* --------------------------- PARTNERS ------------------------------- */
    .partners__head { gap: 18px; margin-bottom: 36px; }
    .partners__logos { flex-wrap: nowrap; min-height: 100px; gap: 60px; }

    /* ------------------------- CARDS GRID -------------------------------- */
    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .cards-grid .article-card__body { padding: 0 26px 28px; }

    /* -------------------------- ARCHIWUM -------------------------------- */
    .archive__filters { margin-bottom: 40px; gap: 12px; }

    /* -------------------------- POST HERO ------------------------------- */
    .post-hero { padding-top: 76px; }
    .post-hero__inner { gap: 24px; }

    /* ---------------------------- POST ---------------------------------- */
    .post__inner {
        display: grid;
        grid-template-columns: 380fr 796fr;
        gap: clamp(40px, 5vw, 72px);
        align-items: start;
    }
    .post__aside {
        position: sticky;
        top: calc(var(--header-h) + 32px);
        max-height: calc(100dvh - var(--header-h) - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
    .post__card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    .post__card-text { align-items: flex-start; }
    .post__body { font-size: 17px; max-width: 720px; }

    /* ------------------------ POWIAZANE WPISY ---------------------------- */
    .related__head { margin-bottom: 40px; }
    .related__track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        overflow: visible;
    }

    /* -------------------------- PAGE HERO ------------------------------- */
    .page-hero { padding-top: 76px; }
    .page-hero__inner { gap: 24px; }

    /* ------------------------- TEXT BLOCK ------------------------------- */
    .text-block .wysiwyg { font-size: 17px; }

    /* --------------------- TRESC Z EDYTORA: oblewanie ------------------- */
    .wysiwyg .alignleft { float: left; margin: .35em 32px 24px 0; max-width: 50%; }
    .wysiwyg .alignright { float: right; margin: .35em 0 24px 32px; max-width: 50%; }

    /* ------------------------ CONTACT INFO ------------------------------ */
    .contact-info__inner { gap: 44px; }
    .contact-info__body {
        display: grid;
        grid-template-columns: 640fr 502fr;
        gap: clamp(40px, 5vw, 72px);
        align-items: start;
    }
    .contact-info__actions { gap: 16px; }

    /* -------------------------- FORMULARZ ------------------------------- */
    .contact-form__head { margin-bottom: 40px; }
    .form { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .form__actions {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
    .form button[type="submit"] {
        width: auto;
        min-width: 220px;
        min-height: 52px;
        justify-content: center;
        padding: 14px 24px;
        font-size: 13px;
    }
    .form__status { flex: 1 1 auto; }

    /* ---------------------------- FOOTER -------------------------------- */
    .site-footer__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 48px;
        padding-bottom: 30px;
    }
    .site-footer__brand { flex: 0 1 430px; gap: 12px; }
    .site-footer__brand p { max-width: 400px; }
    .site-footer__nav .menu { flex-direction: row; gap: 48px; }
    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding-top: 30px;
    }
}
