/* ==========================================================
   BETONODZARAZ – arkusz stylów
   Czcionka: Lato (lokalnie). Paleta: grafit, ciepły beton, pomarańcz.
   Zasady: bez cieni, gradientów, rozmyć i animacji wejścia. Przyciski, pola
   i zdjęcia 4px, formularz 8px. Treści dzielone liniami 1px, karty tylko
   w poradniku. Przejścia tylko dla koloru (max 150ms).
   ========================================================== */

/* ---------- czcionka: Lato (OFL), lokalne pliki woff2, grubości 400 / 700 / 900 ---------- */
@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/lato-400-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/lato-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/lato-700-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/lato-700-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Lato";font-style:normal;font-weight:900;font-display:swap;src:url(../fonts/lato-900-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lato";font-style:normal;font-weight:900;font-display:swap;src:url(../fonts/lato-900-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- tokeny ---------- */
:root{
    --accent: #ff5e14;
    --accent-text: #c2410c;              /* tekst w kolorze akcentu na jasnym tle (5,2:1) */
    --accent-strong: #cc4a0e;            /* tło pod białym tekstem: przyciski, pas CTA (4,6:1) */
    --accent-strong-hover: #ad3a08;      /* hover: delikatne przyciemnienie (6,2:1) */
    --field-border: #8f887d;             /* obramowanie pól formularza (3,5:1) */
    --ink: #1b1c1e;
    --text: #55524d;
    --muted: #6b665f;
    --line: #e4dfd6;
    --line-strong: #d3ccc0;
    --sand: #f4f0e9;
    --dark: #1d1f22;
    --white: #ffffff;
    --error: #c8321c;

    --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius-control: 4px;               /* przyciski, pola formularza, scroll to top */
    --radius-img: 4px;                   /* zdjęcia i karty wpisów (poza tłem hero) */
    --radius-form: 8px;                  /* karta formularza */
    --hero-overlay: rgba(29, 31, 34, .76); /* ciemna nakładka na zdjęcie hero (kontrast tekstu min. 5,9:1) */
    --topbar-h: 42px;
    --nav-h: 80px;
    --container: 1200px;
    --gutter: 24px;
    --fade: .15s ease;                   /* jedyne przejście: kolor */
}

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

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

body{
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4{
    margin: 0 0 .5em;
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
}

h1{ font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; }
h2{ font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.012em; }
h3{ font-size: 1.2rem; line-height: 1.3; letter-spacing: 0; }
h4{ font-size: 1.1rem; }

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

a{
    color: inherit;
    text-decoration: none;
    transition: color var(--fade);
}

ul, ol{ margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; }
a,
button{ -webkit-tap-highlight-color: transparent; }

strong{ color: var(--ink); font-weight: 700; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}
.hero :focus-visible,
.page-header :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible,
.aside-card :focus-visible{ outline-color: var(--accent); }
.cta-band :focus-visible,

.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.skip-link{
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 2000;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--white);
}
.skip-link:focus{ top: 16px; }

/* ---------- ikony (tylko funkcyjne: menu, chevron, komunikaty formularza) ---------- */
.icon{
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- przyciski: tylko "Wyceń dostawę" i "Wyślij zapytanie" ---------- */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background-color: var(--accent-strong);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color var(--fade);
}
.btn:hover{ background-color: var(--accent-strong-hover); color: var(--white); }

/* hero: przycisk obrysowany na ciemnym tle, na hover wypełnia się pomarańczem */
.btn--outline{
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn--outline:hover{
    background-color: var(--accent-strong);
    border-color: var(--accent-strong);
}

/* jedyny wyjątek: przycisk w pomarańczowym pasie CTA – wszystkie inne przyciski wyglądają jak CTA w nawigacji */
.btn--dark{ background-color: var(--ink); }
.btn--dark:hover{ background-color: #3a3c40; }

.btn[disabled]{ opacity: .65; pointer-events: none; }

/* ---------- linki tekstowe ---------- */
.text-link,
.link-arrow{
    font-weight: 700;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--fade);
}
.text-link:hover,
.link-arrow:hover{ color: var(--accent-text); }

/* ==========================================================
   NAGŁÓWEK: topbar chowa się, główny pasek przyklejony
   ========================================================== */
.site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.site-header.is-scrolled{
    transform: translateY(calc(var(--topbar-h) * -1));
}

body{ padding-top: calc(var(--topbar-h) + var(--nav-h)); }

.topbar{
    height: var(--topbar-h);
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
    font-size: 13.5px;
}
.topbar .container{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
}
.topbar ul{
    display: flex;
    align-items: center;
}
.topbar li{ white-space: nowrap; }
.topbar a{ display: inline-block; padding: 4px 0; } /* WCAG 2.5.8: cel min. 24px wysokości */
.topbar li + li::before{
    content: "·";
    margin: 0 12px;
    color: rgba(255, 255, 255, .45);
}
.topbar a:hover{ color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.navbar{
    height: var(--nav-h);
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: border-color var(--fade);
}
.site-header.is-scrolled .navbar{ border-bottom-color: var(--line); }

.navbar .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 100%;
}

/* logo: obraz PNG (logo.png na jasnym tle, logo-light.png w stopce) */
.logo{ display: inline-flex; flex-shrink: 0; }
.logo-img{ width: auto; height: 46px; }

.nav{
    display: flex;
    align-items: center;
    height: 100%;
}
.nav > ul{
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.nav-item{
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-link{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}
.nav-link .icon{ font-size: 15px; stroke-width: 2; color: var(--muted); }
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link{ color: var(--accent-text); }
.nav-link[aria-current="page"]{
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.dropdown{
    position: absolute;
    top: calc(100% - 14px);
    left: 0;
    min-width: 240px;
    padding: 8px 0;
    border: 1px solid var(--line);
    background: var(--white);
    visibility: hidden;
}
.nav-item:not(.is-dismissed):hover > .dropdown,
.nav-item:not(.is-dismissed):focus-within > .dropdown{ visibility: visible; }
.dropdown a{
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    color: var(--ink);
    transition: background-color var(--fade);
}
.dropdown a:hover{ background-color: var(--sand); }
.dropdown a[aria-current="page"]{ color: var(--accent-text); font-weight: 700; }

.header-actions{
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-actions .btn{ min-height: 46px; padding: 11px 20px; }

.burger{
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: var(--ink);
    font-size: 26px;
}
.burger:focus:not(:focus-visible){ outline: 0; }
.burger:focus-visible{ outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ---------- menu mobilne: pełny ekran, bez animacji ---------- */
.mobile{
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
}
.mobile.is-open{ visibility: visible; }
.mobile-panel{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow-y: auto;
}
.mobile-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: var(--nav-h);
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}
.mobile-close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: var(--ink);
    font-size: 26px;
}
.mobile-close:focus:not(:focus-visible){ outline: 0; }
.mobile-close:focus-visible{ outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.mobile-nav{ padding: 12px 16px; }
.mobile-nav > ul > li{ border-bottom: 1px solid var(--line); }
.mobile-nav a,
.mobile-toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: left;
    color: var(--ink);
}
.mobile-toggle .icon{ font-size: 18px; color: var(--muted); }
.mobile-row{
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-row > a{ flex: 1; min-width: 0; }
.mobile-row .mobile-toggle{
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    padding: 0;
    justify-content: center;
}
.mobile-nav a[aria-current="page"]{ color: var(--accent-text); }
.mobile-sub{ display: none; }
.mobile-sub.is-open{ display: block; }
.mobile-sub a{
    padding: 10px 0 10px 14px;
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
}
.mobile-sub > div > a:last-child{ margin-bottom: 10px; }
.mobile-foot{
    display: grid;
    gap: 16px;
    margin-top: auto;
    padding: 24px 16px 32px;
    text-align: center;
}
.mobile-foot .btn{ width: 100%; }
.mobile-tel{
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.is-locked{ overflow: hidden; }

/* ==========================================================
   SEKCJE: tła naprzemiennie biała / piaskowa (sync.ps1), różny rytm
   ========================================================== */
.section{ padding: 96px 0; }
.section--compact{ padding: 72px 0; }      /* lekkie: FAQ, Poradnik */
.section--wide{ padding: 120px 0; }        /* tabela */
.section--alt{
    background: var(--sand);
    --line: var(--line-strong);            /* linie wewnątrz sekcji widoczne na piaskowym tle */
}

/* etykieta nad nagłówkiem: zostaje tylko na podstronach (strona główna jej nie używa) */
.eyebrow{
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--accent-text);
}
.page-header .eyebrow,
.aside-card .eyebrow{ color: var(--accent); }

.section-head{
    max-width: 720px;
    margin-bottom: 48px;
}
.section-head h2{ max-width: 24ch; margin-bottom: 0; }
.section-head p{ max-width: 62ch; margin-top: 16px; font-size: 17px; }
.section--compact .section-head{ margin-bottom: 36px; }


.lead{ font-size: 18px; line-height: 1.65; }

/* ---------- zdjęcie ---------- */
.media{
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-img);
    background: #d9d3c9;
    aspect-ratio: 4 / 3;
}
.media img{ width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   HERO: zdjęcie jako tło + jednolita ciemna nakładka
   ========================================================== */
.hero{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--dark);
    color: rgba(255, 255, 255, .85);
}
.hero-bg{
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 50%;
}
.hero::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hero-overlay);
}
.hero-copy{ max-width: 780px; padding: 120px 0 112px; }
.hero h1{ max-width: 18ch; margin-bottom: 22px; color: var(--white); }
.hero .lead{
    max-width: 580px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, .85);
}
.hero-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

/* ---------- pas CTA: pełna szerokość, płaski ---------- */
.cta-band{
    padding: 32px 0;
    background: var(--accent-strong);
    color: var(--white);
}
.cta-band .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}
.cta-band-text{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    min-width: 0;
}
.cta-band h2{
    max-width: 36ch;
    margin: 0;
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--white);
}
.cta-band-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    flex-shrink: 0;
}
.cta-tel{
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--white);
    text-underline-offset: 4px;
}
.cta-tel:hover{ text-decoration: underline; }
.cta-band .btn--dark{ border-color: transparent; }

/* ==========================================================
   OFERTA: lista 2×2 rozdzielona liniami
   ========================================================== */
.offer-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
}
.offer-list li{
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
}
.offer-list h3{ margin-bottom: 10px; }
.offer-list p{ max-width: 48ch; margin-bottom: 14px; }

/* ==========================================================
   DLACZEGO MY: tekst 7/12, zdjęcie 5/12
   ========================================================== */
.why{
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 72px;
    align-items: start;
}
.why .section-head{ margin-bottom: 24px; }
.why > div > p{ max-width: 62ch; }
.why-media{ overflow: hidden; border-radius: var(--radius-img); background: #d9d3c9; }
.why-media img{ width: 100%; height: auto; }
.why .btn{ margin-top: 4px; }

.plain-list{
    margin: 24px 0 28px;
    padding-left: 1.2em;
    list-style: square;
}
.plain-list li{ max-width: 62ch; padding-left: .2em; }
.plain-list li + li{ margin-top: 8px; }
.plain-list li::marker{ color: var(--text); }

/* ==========================================================
   JAK PRACUJEMY: 4 kolumny z pionową linią
   ========================================================== */
.process{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.process li{ padding: 4px 28px 0; }
.process li:first-child{ padding-left: 0; }
.process li:last-child{ padding-right: 0; }
.process li + li{ border-left: 1px solid var(--line); }
.process h3{ margin-bottom: 8px; }
.process p{ font-size: 15.5px; }

/* ==========================================================
   TABELA
   ========================================================== */
.table-wrap{ overflow-x: auto; }
.table-wrap:focus-visible{ outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.spec-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    font-variant-numeric: tabular-nums;
}
.spec-table th,
.spec-table td{
    padding: 15px 24px 15px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.spec-table thead th{
    border-bottom: 2px solid var(--ink);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.spec-table tbody th{
    width: 30%;
    font-weight: 700;
    color: var(--ink);
}
.spec-table--wide{ min-width: 760px; }
.spec-table--wide tbody th{ width: auto; }

/* ==========================================================
   PORADNIK: karty wpisów – 3 / 2 / 1 w rzędzie
   ========================================================== */
.post-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.post-card{
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-img);
    background: var(--white);
}
.post-img{
    display: block;
    overflow: hidden;
    background: #d9d3c9;
    aspect-ratio: 16 / 10;
}
.post-img img{ width: 100%; height: 100%; object-fit: cover; }
.post-body{
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}
.post-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--muted);
}
.post-card h3{ font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; }
.post-card h3 a:hover{ color: var(--accent-text); }
.post-card p:not(.post-meta){ font-size: 15px; margin-bottom: 14px; }
.post-card .text-link,
.post-card .link-arrow{ align-self: flex-start; margin-top: auto; }
.posts-more{ margin-top: 40px; }

/* ==========================================================
   FAQ: natywne <details>, jedna kolumna
   ========================================================== */
.faq-wrap{ max-width: 800px; }
.faq details{ border-top: 1px solid var(--line); }
.faq details:last-child{ border-bottom: 1px solid var(--line); }
.faq summary{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
    content: "+";
    flex-shrink: 0;
    width: 1ch;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}
.faq details[open] summary::after{ content: "\2212"; }
.faq summary h3{
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}
.faq summary:hover h3{ color: var(--accent-text); }
.faq details p{ max-width: 66ch; padding: 0 0 22px; font-size: 15.5px; }

/* ==========================================================
   KOMPONENTY PODSTRON (bez ramek i cieni, podział liniami)
   ========================================================== */
.grid-2,
.grid-3,
.grid-4{
    display: grid;
    column-gap: 40px;
    row-gap: 8px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card{
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 0 32px;
    border-top: 1px solid var(--line);
}
.card h3{ margin-bottom: 10px; }
.card p{ font-size: 15.5px; }
.card .link-arrow{ align-self: flex-start; margin-top: auto; padding-top: 14px; }
a.card h3{ text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--fade); }
a.card:hover h3{ text-decoration-color: currentColor; }
.card p a,
.note a{
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.card p a:hover,
.note a:hover{ color: var(--accent-text); }

.card-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 16px;
}
.tag{
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.check-list{
    display: grid;
    gap: 12px;
    margin: 24px 0;
}
.check-list li{
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.check-list .icon{
    margin-top: 4px;
    font-size: 18px;
    color: var(--text);
    stroke-width: 2.4;
}

/* ---------- split ---------- */
.split{
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 72px;
    align-items: start;
}
.split--reverse .split-media{ order: 2; }
.split .section-head{ margin-bottom: 24px; }
.split-media .media{ aspect-ratio: 5 / 4; }

/* ---------- liczby ---------- */
.stats{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat{ padding: 4px 24px 0; }
.stat:first-child{ padding-left: 0; }
.stat + .stat{ border-left: 1px solid var(--line); }
.stat strong{
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}
.stat p{ margin-top: 6px; font-size: 15px; line-height: 1.5; }

/* ---------- etapy (strona podziękowania) ---------- */
.step-num{
    display: inline-block;
    min-width: 2ch;
    font-weight: 700;
    color: var(--ink);
}


/* ==========================================================
   PODSTRONY
   ========================================================== */
.page-header{
    padding: 88px 0 80px;
    background: var(--dark);
    color: rgba(255, 255, 255, .72);
}
.page-header h1{
    max-width: 22ch;
    color: var(--white);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
}
.page-header .lead{ max-width: 700px; }

.breadcrumbs{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}
.breadcrumbs a:hover{ color: var(--white); }
.breadcrumbs li{ display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before{ content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumbs [aria-current]{ color: var(--white); }

.prose{
    max-width: 760px;
    font-size: 17px;
}
.prose h2{
    margin: 1.8em 0 .55em;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.prose h3{ margin: 1.5em 0 .5em; }
.prose > :first-child{ margin-top: 0; }
.prose ul,
.prose ol{ margin: 0 0 1.2em; padding-left: 1.3em; }
.prose ul{ list-style: square; }
.prose ol{ list-style: decimal; }
.prose li{ margin-bottom: .45em; }
.prose a{
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover{ color: var(--accent-text); }
.prose .table-wrap{ margin: 1.4em 0; }

.note{
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--accent-strong);
    font-size: 16px;
}
.note strong{ display: block; margin-bottom: 4px; }

.article-layout{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 72px;
    align-items: start;
}
.article-layout .media{ aspect-ratio: 16 / 9; margin-bottom: 44px; }
.aside-card{
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    padding: 30px;
    background: var(--dark);
    color: rgba(255, 255, 255, .72);
}
.aside-card h2{ font-size: 24px; color: var(--white); }
.aside-card p{ font-size: 15px; margin-bottom: 22px; }
.aside-card .btn{ width: 100%; }
.aside-card .btn + .btn{ margin-top: 10px; }

/* strona informacji prawnej: sama kolumna tekstu */
.section--legal{ padding: 64px 0 88px; }
.section--legal .prose h1{ margin: 20px 0 .6em; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.legal-back{ font-size: 16px; }

.legal-meta{ margin-bottom: 32px; font-size: 14px; color: var(--muted); }

.status-page{ padding: 128px 0; }
.status-page .container{ max-width: 820px; }
.status-page h1{ font-size: clamp(2.2rem, 4.4vw, 3.25rem); }
.status-page .hero-actions{ margin-top: 32px; }
.status-steps{
    display: grid;
    gap: 16px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}
.status-steps li{ display: flex; gap: 12px; align-items: flex-start; }

/* ==========================================================
   KONTAKT + FORMULARZ
   ========================================================== */
.contact-grid{
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
}
.contact-list{ margin: 32px 0 0; }
.contact-list > div{ padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dt{ font-size: 14px; color: var(--muted); }
.contact-list dd{
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}
.contact-list a{ text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover{ color: var(--accent-text); }

.form-card{
    padding: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-form);
    background: var(--white);
    color: var(--text);
}
.form-card h3{ font-size: 24px; margin-bottom: 6px; }
.form-required{ margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.req{ color: var(--accent-text); }

/* grupy pól: fieldset + legend, podział linią */
.form-group{
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}
.form-group + .form-group{ padding-top: 24px; border-top: 1px solid var(--line); }
/* legend pływający nie przerywa linii i nie łamie siatki */
.form-group > legend{
    float: left;
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
}
.form-group > .form-grid{ clear: both; }

.form-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field{
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.field--full{ grid-column: 1 / -1; }
.field legend{ margin-bottom: 7px; }
.field label,
.field legend{
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.input,
.select,
.textarea{
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-control);
    background-color: var(--white);
    font-size: 15.5px;
    color: var(--ink);
    transition: border-color var(--fade);
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder,
.textarea::placeholder{ color: #706a62; }
.input:hover,
.select:hover,
.textarea:hover{ border-color: var(--muted); }
.input:focus,
.select:focus,
.textarea:focus,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible{
    /* WCAG 2.4.7: obramowanie zmienia kolor i pogrubia się do 2px (outline przylega, bez poświaty) */
    outline: 1px solid var(--accent-strong);
    outline-offset: 0;
    border-color: var(--accent-strong);
}
.select{
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1c1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}
.textarea{ min-height: 132px; resize: vertical; }

.input-unit{ position: relative; }
.input-unit .input{ padding-right: 52px; }
.input-unit span{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--muted);
    pointer-events: none;
}

.field-hint{ font-size: 13px; line-height: 1.5; color: var(--muted); }

.field-error{
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--error);
}
.field-error .icon{ font-size: 15px; }
.field.has-error .field-error{ display: flex; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea{ border-color: var(--error); }

/* natywne radio w jednym rzędzie */
.radio-row{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}
.field .radio-row label{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 15.5px;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}
.radio-row input{
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent-strong);
    cursor: pointer;
}

.consent{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    font-weight: 400 !important;
    line-height: 1.6;
    color: var(--text) !important;
    cursor: pointer;
}
.consent input{
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--accent-strong);
    cursor: pointer;
}
.consent a{
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.honeypot{
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot{
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 6px;
}

.form-status{
    grid-column: 1 / -1;
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-control);
    font-size: 14.5px;
    font-weight: 700;
}
.form-status.is-visible{ display: flex; }
.form-status.is-info{ background: var(--sand); color: var(--ink); }
.form-status.is-error{ background: #fbe9e5; color: var(--error); }
.form-status .icon{ font-size: 18px; margin-top: 2px; }

/* wskaźnik wysyłania (stan przycisku, nie dekoracja) */
.btn .spinner{
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.btn.is-loading .spinner{ display: inline-block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ==========================================================
   STOPKA
   ========================================================== */
.site-footer{
    padding-top: 80px;
    background: var(--ink);
    color: rgba(255, 255, 255, .62);
    font-size: 15px;
}
.footer-main{
    display: grid;
    grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr));
    gap: 48px;
    padding-bottom: 56px;
}
.site-footer .logo{ margin-bottom: 18px; }
.footer-about{ max-width: 360px; }
.footer-title{
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--white);
}
.footer-links{ display: grid; gap: 10px; }
.footer-links a:hover{ color: var(--accent); }
.footer-links li{ line-height: 1.5; }
.footer-bottom{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding: 24px 0 32px;
    font-size: 14px;
}
.footer-bottom ul{ display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-bottom a:hover{ color: var(--accent); }

.to-top{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background-color: var(--accent-strong);
    color: var(--white);
    font-size: 20px;
    visibility: hidden;
    transition: background-color var(--fade);
}
.to-top.is-visible{ visibility: visible; }
.to-top:hover{ background-color: var(--accent-strong-hover); }

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

/* ==========================================================
   RWD
   ========================================================== */
@media (max-width: 1199px){
    .nav-link{ padding: 8px 10px; }
    .footer-main{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px){
    :root{ --nav-h: 72px; }
    .topbar{ display: none; }
    body{ padding-top: var(--nav-h); }
    .site-header.is-scrolled{ transform: none; }
    .nav{ display: none; }
    .burger{ display: inline-flex; }
    .header-actions .btn{ display: none; }

    .section{ padding: 80px 0; }
    .section--compact{ padding: 60px 0; }
    .section--wide{ padding: 96px 0; }

    .hero-copy{ padding: 88px 0 80px; }

    .post-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .why,
    .split,
    .contact-grid,
    .article-layout{
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }
    .split--reverse .split-media{ order: 0; }
    .aside-card{ position: static; }

    /* kroki: lista pionowa z linią między krokami */
    .process{ grid-template-columns: minmax(0, 1fr); }
    .process li,
    .process li:first-child,
    .process li:last-child{ padding: 20px 0 24px; }
    .process li + li{ border-left: 0; border-top: 1px solid var(--line); }
    .process li:first-child{ padding-top: 0; }

    .grid-3,
    .grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    .stat:nth-child(odd){ padding-left: 0; border-left: 0; }

    .cta-band .container{ flex-direction: column; align-items: flex-start; }

    .form-card{ padding: 32px; }
}

@media (max-width: 767px){
    :root{ --gutter: 16px; }
    .section{ padding: 64px 0; }
    .section--compact{ padding: 52px 0; }
    .section--wide{ padding: 76px 0; }
    .section-head{ margin-bottom: 32px; }

    .hero-copy{ padding: 64px 0 56px; }
    .hero-actions .btn{ width: 100%; }

    .offer-list{ grid-template-columns: minmax(0, 1fr); }
    .offer-list li{ padding: 24px 0 28px; }

    .grid-2,
    .grid-3,
    .grid-4,
    .stats{ grid-template-columns: minmax(0, 1fr); }
    .stat,
    .stat + .stat{ padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }

    .post-grid{ grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .post-body{ padding: 20px 18px 22px; }

    .footer-main{ grid-template-columns: minmax(0, 1fr); gap: 32px; }

    .cta-band-actions{ width: 100%; }
    .cta-band-actions .btn{ width: 100%; }

    .form-card{ padding: 24px 16px; }
    .form-grid{ grid-template-columns: minmax(0, 1fr); }
    .form-foot .btn{ width: 100%; }

    .page-header{ padding: 64px 0 56px; }
    .status-page{ padding: 88px 0; }
    .spec-table th,
    .spec-table td{ padding: 12px 14px 12px 0; }
    .to-top{ right: 16px; bottom: 16px; }

    /* WCAG 1.4.10: tekst przycisku może się zawinąć zamiast wychodzić poza przycisk */
    .btn{ white-space: normal; }
}

@media (max-width: 420px){
    .logo-img{ height: 40px; }
}
