:root {
    --navy: #12263f;
    --navy-light: #1e3a5f;
    --accent: #0f7bd4;
    --text: #24303f;
    --muted: #6b7785;
    --bg: #ffffff;
    --bg-alt: #f4f7fa;
    --border: #e2e8f0;
    --radius: 6px;
    --container: 1120px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 65ch; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent); margin-bottom: .25rem; }

/* --- Nagłówek --- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; color: var(--text); border-radius: var(--radius); font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); text-decoration: none; }
.nav a.active { color: var(--accent); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* --- Sekcje treści --- */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; padding: 80px 0; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: rgba(255, 255, 255, .8); }

.page-head { background: var(--bg-alt); padding: 56px 0; border-bottom: 1px solid var(--border); }

.btn {
    display: inline-block; margin-top: 12px; padding: 12px 24px;
    background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600;
}
.btn:hover { background: #0c66b0; text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.card:hover { border-color: var(--accent); }

.features { padding-left: 20px; max-width: 70ch; }
.features li { margin-bottom: .5rem; }

/* --- Stopka --- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); margin-top: 40px; padding: 40px 0 16px; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-logo { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.footer-logo span { color: #57aef5; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: rgba(255, 255, 255, .8); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 16px; }
.copyright p { margin: 0; font-size: .875rem; }

/* --- Mobile --- */
@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav { display: none; width: 100%; order: 3; padding-bottom: 12px; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; }
    .header-inner { flex-wrap: wrap; }
    h1 { font-size: 1.8rem; }
    .hero { padding: 56px 0; }
}

/* --- Sekcje o innym tle --- */
.band { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.band + .band { border-top: 0; }

/* --- Układ dwukolumnowy --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* --- Ilustracje i diagramy --- */
.figure { margin: 24px 0 0; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 12px; }
.figure figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); text-align: center; }

/* --- Karty: listy i odnośniki --- */
.card p:last-child { margin-bottom: 0; }
.mini-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; color: var(--muted); }
.mini-list li { padding-left: 18px; position: relative; }
.mini-list li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.more { font-weight: 600; font-size: .95rem; }
.more::after { content: " →"; }

/* --- Przyciski --- */
.btn + .btn { margin-left: 10px; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* --- Etykiety standardów --- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 100px; padding: 6px 16px; font-size: .875rem; font-weight: 600; color: var(--navy); }

/* --- Tabela --- */
.table-wrap { overflow-x: auto; margin: 24px 0 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-alt); }

/* --- Sekcja zamykająca --- */
.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }

.eyebrow-light { color: #7cc0f7; }

@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; gap: 28px; }
    .btn + .btn { margin-left: 0; margin-top: 8px; }
    .btn { display: block; text-align: center; }
}

/* Odnośnik w karcie zawsze na dole, niezależnie od długości opisu */
.card { display: flex; flex-direction: column; }
.card .more { margin-top: auto; padding-top: 4px; }

/* --- Dane kontaktowe --- */
.contact { font-style: normal; line-height: 1.8; margin-bottom: 16px; }
.contact strong { color: var(--navy); font-size: 1.05rem; }
.contact-mail a { font-size: 1.1rem; font-weight: 600; }
.copyright .small { font-size: .8rem; margin-top: 6px; opacity: .8; }

/* --- Pytania i odpowiedzi --- */
.faq { max-width: 78ch; }
.faq h3 { margin-top: 28px; font-size: 1.05rem; }
.faq h3:first-child { margin-top: 0; }
.faq p { color: var(--text); }

/* --- Okruszki --- */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 10px 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs li:last-child span { color: var(--navy); font-weight: 600; }

/* Długość wiersza w sekcjach tekstowych - ok. 78 znaków czyta się wygodnie */
.section > p, .section > h3, .band > .container > p, .band > .container > h3 { max-width: 78ch; }

/* --- Odnośniki do sklepu --- */
.shop-link {
    display: inline-block; white-space: nowrap; font-weight: 600; font-size: .9rem;
    padding: 8px 16px; border: 1px solid var(--accent); border-radius: var(--radius);
    color: #fff; background: var(--accent);
}
.shop-link:hover { background: #0c66b0; border-color: #0c66b0; color: #fff; text-decoration: none; }
.shop-link::after { content: " ↗"; font-weight: 400; }

/* --- Kroki zakupu --- */
.steps { max-width: 78ch; padding-left: 20px; }
.steps li { margin-bottom: 10px; }
.btn-outline { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--bg-alt); }

/* --- Oznaczenie autoryzowanego partnera --- */
.badge { display: block; width: 280px; max-width: 100%; height: auto; margin-bottom: 24px; }
/* Znak partnerski w stopce - JPG ma białe tło, więc dostaje jasny kafelek */
.badge-footer { display: block; width: 200px; max-width: 100%; height: auto; margin-top: 16px; padding: 8px; background: #fff; border-radius: var(--radius); }

/* ==========================================================================
   Warstwa graficzna: cienkie linie, ramki, numeracja, rozstrzelone etykiety
   ========================================================================== */

/* Etykiety nad nagłówkami - drobne, rozstrzelone */
.eyebrow { letter-spacing: .14em; font-size: .72rem; font-weight: 700; margin-bottom: 14px; }

/* Nagłówek sekcji z cienką kreską nad nim */
.section > h2, .band > .container > h2 {
    position: relative; padding-top: 28px;
}
.section > h2::before, .band > .container > h2::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 48px; height: 2px; background: var(--accent);
}

/* Karty: ramka zamiast cienia, wewnętrzna linia oddzielająca stopkę karty */
.card { position: relative; padding: 28px 26px; background: transparent; border-color: var(--border); }
.band .card { background: var(--bg); }
.card h3 { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.card:hover { border-color: var(--accent); }
.card .more { padding-top: 18px; border-top: 1px solid var(--border); width: 100%; }
/* Odnośnik do sklepu zostaje obrysowanym przyciskiem, oddzielonym linią od opisu */
.card .shop-link { margin-top: auto; align-self: flex-start; }
.card:has(.shop-link) p:last-of-type { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }

/* Numeracja porządkowa w rogu karty */
.cards { counter-reset: karta; }
.cards .card::after {
    counter-increment: karta;
    content: "0" counter(karta);
    position: absolute; top: 22px; right: 24px;
    font-size: 1.05rem; font-weight: 700; color: var(--border); letter-spacing: .04em;
}

/* Kroki zakupu jako numerowane bloki z linią */
.steps { counter-reset: krok; list-style: none; padding-left: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.steps li { counter-increment: krok; padding-top: 18px; border-top: 2px solid var(--navy); margin-bottom: 0; }
.steps li::before {
    content: "0" counter(krok);
    display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    color: var(--accent); margin-bottom: 8px;
}

/* Listy cech - kreska zamiast punktora */
.features { list-style: none; padding-left: 0; }
.features li { position: relative; padding-left: 26px; margin-bottom: .7rem; }
.features li::before {
    content: ""; position: absolute; left: 0; top: .75em;
    width: 14px; height: 1px; background: var(--accent);
}

/* Sekcja zamykająca oddzielona linią */
.cta { border-top: 1px solid var(--border); }

/* Ilustracje bez ramki, z samą linią pod podpisem */
.figure img { border: 1px solid var(--border); }
.figure figcaption { padding-top: 12px; border-top: 1px solid var(--border); max-width: 520px; margin-left: auto; margin-right: auto; }

/* Pytania rozdzielone cienką linią */
.faq h3 { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 32px; }
.faq h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* Tabela: bez ramki zewnętrznej, sama siatka linii */
table { border: 0; }
th { background: transparent; color: var(--navy); border-bottom: 2px solid var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
tbody tr:hover { background: rgba(15, 123, 212, .04); }
.table-wrap { background: transparent; }
