/*
Theme Name: Certyfikat Polska Firma
Theme URI: https://certyfikatpolskafirma.pl/
Author: Centrum Certyfikacji Produktów i Usług
Description: Motyw serwisu Certyfikat Polska Firma — bez kreatora stron. Katalog firm (typ „Firma”), wizytówki, strony programu.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cpf
*/

:root {
	--red: #C8102E;
	--red-dark: #A00D24;
	--red-deep: #7E0A1C;
	--gold: #B8893B;
	--gold-dark: #94692A;
	--gold-light: #E3C27E;
	--gold-soft: #F4E7CC;
	--ink: #14203A;
	--text: #39404D;
	--muted: #6B7080;
	--cream: #FBF8F2;
	--cream-2: #F5EEE1;
	--line: #EBDFC8;
	--white: #FFFFFF;
	--green: #1E7B34;
	--green-bg: #EAF6EC;
	--radius: 10px;
	--shadow: 0 6px 24px rgba(60, 40, 10, .07);
	--shadow-lg: 0 14px 40px rgba(60, 40, 10, .12);
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; justify-content: center;
	padding: 14px 26px; border-radius: 6px; font-weight: 600; font-size: 15px;
	border: 1.5px solid transparent; cursor: pointer; transition: all .2s; line-height: 1.2;
	font-family: var(--sans); text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .25); }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--gold-light); }
.btn-outline:hover { border-color: var(--gold); color: var(--ink); background: #FFFCF5; }
.btn-outline-red { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #E2C07A, #C99B49); color: #3A2A0E; }
.btn-gold:hover { filter: brightness(1.05); color: #3A2A0E; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #FFF6F0; color: var(--red-dark); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-white:hover { background: #fff; color: var(--red); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Nagłówek ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-txt { font-family: var(--sans); font-weight: 800; font-size: 17px; line-height: 1.05; letter-spacing: .01em; color: var(--ink); text-transform: uppercase; }
.brand-txt span { display: block; color: var(--red); }
.mainnav { flex: 1; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; }
.mainnav a { color: var(--ink); font-size: 13.5px; white-space: nowrap; font-weight: 500; padding: 6px 0; position: relative; display: inline-block; }
.mainnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.mainnav a:hover, .mainnav .current a { color: var(--red); }
.mainnav .current a::after, .mainnav a:hover::after { transform: scaleX(1); }
.nav-cta { flex-shrink: 0; display: flex; gap: 10px; }
.nav-cta .is-current { background: var(--red-dark); }
.mainnav .nav-break { flex-basis: 100%; height: 0; }
.mainnav .nav-mobile-only { display: none; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }
@media (max-width: 1360px) {
	.mainnav ul { gap: 4px 13px; }
	.mainnav a { font-size: 12.5px; }
	.brand-txt { font-size: 15px; }
	.brand img { width: 48px; height: 48px; }
}
@media (max-width: 1180px) {
	.burger { display: block; }
	.mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.mainnav.open { display: block; }
	.mainnav ul { flex-direction: column; padding: 12px 24px 20px; gap: 0; }
	.mainnav li { border-bottom: 1px solid #F1EADC; }
	.mainnav a { display: block; font-size: 16px; padding: 12px 0; }
	.mainnav a::after { display: none; }
	.nav-cta { display: none; }
	.mainnav .nav-break { display: none; }
	.mainnav .nav-mobile-only { display: list-item; }
	.topbar .wrap { position: relative; }
}

/* ---------- Bohater (hero) ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(560px, 41vw, 680px); display: flex; align-items: center; background: linear-gradient(100deg, #FFFDF8 0%, #FBF5EA 45%, #F6ECDA 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 110%, rgba(227,194,126,.25), transparent 55%); pointer-events: none; }
.hero-img { position: absolute; inset: 0; width: 100%; overflow: hidden; pointer-events: none; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,248,.9) 0%, rgba(255,253,248,.72) 38%, rgba(255,253,248,0) 58%); }
.hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 580px; padding: 40px 0 44px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .gold { display: block; }
.hero p.lead { font-size: 1.12rem; color: var(--text); max-width: 540px; }
.hero p.lead strong { color: var(--ink); }
.hero-img-contain { background-size: contain; background-position: center right; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-dark); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--gold-light); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { content: ""; width: 56px; height: 1px; background: var(--gold-light); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 0; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); display: block; }
.ornament i:nth-child(2) { width: 8px; height: 8px; }
.ornament.left { justify-content: flex-start; margin-left: 0; }
.ornament.left::before { display: none; }
@media (max-width: 900px) {
	.hero-img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1920 / 700; min-height: 200px; }
	.hero-img::after { display: none; }
	.hero-pic { object-position: 80% center; }
	.hero { display: flex; flex-direction: column-reverse; min-height: 0; align-items: stretch; }
	.hero-inner { padding: 36px 0 48px; }
}

/* ---------- Sekcje ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-white { background: #fff; }
.section-cream { background: var(--cream-2); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p { color: var(--muted); margin-top: 14px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head-row h2 { margin: 0; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; position: relative; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-center { text-align: center; }
.card-center .ornament { margin-bottom: 14px; }
.card-icon-top { padding-top: 58px; margin-top: 40px; }
.icon-badge { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--red); box-shadow: 0 6px 18px rgba(184,137,59,.15); }
.card-icon-top .icon-badge { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); }
.icon-badge svg { width: 38px; height: 38px; }
.icon-badge.gold { color: var(--gold); }
.icon-inline { color: var(--gold); width: 42px; height: 42px; flex-shrink: 0; }
.icon-inline svg { width: 42px; height: 42px; }
.card-row { display: flex; gap: 16px; align-items: flex-start; }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 52px 22px 28px; text-align: center; position: relative; box-shadow: var(--shadow); }
.step-num { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(200,16,46,.3); }
.step .icon-badge { margin: 0 auto 16px; border: none; background: #FFF6F1; box-shadow: none; }
.step h3 { font-size: 1.2rem; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.step p { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; color: var(--gold); font-size: 22px; transform: translateY(-50%); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } .step::after { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pasek CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(110deg, #8E0B1F 0%, #B30F28 45%, #C8102E 70%, #9C0D22 100%); color: #fff; padding: 64px 0; }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; background: radial-gradient(ellipse at center, rgba(255,255,255,.18), transparent 60%); transform: rotate(-12deg); }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -60px; height: 120px; background: linear-gradient(170deg, transparent 40%, rgba(255,255,255,.14) 41%, rgba(255,255,255,.14) 52%, transparent 53%); }
.cta-band .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Karty firm (katalog) ---------- */
.firm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .firm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .firm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .firm-grid { grid-template-columns: 1fr; } }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.fcard-logo { height: 96px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.fcard-logo img { max-height: 96px; max-width: 86%; object-fit: contain; }
.fcard-logo .ph { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold); }
.fcard h3 { font-size: 1.08rem; margin: 0 0 8px; line-height: 1.3; }
.fcard .branza { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; margin-bottom: 16px; }
.fcard .branza svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px; border-radius: 6px; margin-top: auto; }
.status svg { width: 16px; height: 16px; }
.status.off { background: #F3F0EA; color: var(--muted); }
.firm-grid.list { grid-template-columns: 1fr; gap: 12px; }
.firm-grid.list .fcard { flex-direction: row; text-align: left; padding: 14px 22px; gap: 22px; }
.firm-grid.list .fcard-logo { width: 140px; height: 64px; margin: 0; flex-shrink: 0; }
.firm-grid.list .fcard-logo img { max-height: 64px; }
.firm-grid.list .fcard h3 { margin: 0 0 4px; }
.firm-grid.list .fcard .branza { justify-content: flex-start; margin: 0; }
.firm-grid.list .fcard .status { margin: 0 0 0 auto; flex-shrink: 0; }
.firm-grid.list .fcard-body { flex: 1; }
@media (max-width: 600px) { .firm-grid.list .fcard { flex-wrap: wrap; } .firm-grid.list .fcard .status { margin: 0; } }

.cat-tools { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-bottom: 22px; }
@media (max-width: 760px) { .cat-tools { grid-template-columns: 1fr; } }
.field-ico { position: relative; }
.field-ico svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--gold); pointer-events: none; }
.field-ico input, .field-ico select { width: 100%; height: 60px; border: 1.5px solid var(--gold-light); border-radius: 8px; background: #fff; padding: 0 18px 0 54px; font: inherit; font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none; }
.field-ico select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314203A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.field-ico input:focus, .field-ico select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,194,126,.25); }
.cat-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.cat-count { font-size: 17px; color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.view-toggle button { border: 0; background: #fff; padding: 9px 13px; cursor: pointer; color: var(--ink); display: flex; }
.view-toggle button svg { width: 20px; height: 20px; }
.view-toggle button.on { background: var(--red); color: #fff; }
.cat-empty-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.cat-empty { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); display: none; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pager button, .pager a, .pager span { min-width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.pager .on, .pager .current { background: var(--red); border-color: var(--red); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
mark { background: #FFF0B8; color: inherit; padding: 0 1px; }

/* ---------- Wizytówka ---------- */
.firm-page { background: linear-gradient(180deg, #FDFAF4, var(--cream)); padding: 26px 0 70px; position: relative; overflow: hidden; }
.firm-page::before { content: ""; position: absolute; right: -120px; top: 40px; width: 360px; height: 360px; border: 1px solid rgba(184,137,59,.25); transform: rotate(45deg); pointer-events: none; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.crumbs a { color: var(--gold-dark); }
.crumbs svg { width: 16px; height: 16px; }
.firm-head { display: grid; grid-template-columns: 290px 1fr auto; gap: 34px; align-items: center; margin-bottom: 34px; position: relative; }
.firm-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height: 210px; display: flex; align-items: center; justify-content: center; padding: 22px; }
.firm-logo img { max-height: 166px; object-fit: contain; }
.firm-id { border-left: 1px solid var(--gold-light); padding-left: 32px; }
.firm-id h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.firm-active { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 15px; margin-bottom: 12px; }
.firm-active::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #23A047; box-shadow: 0 0 0 4px rgba(35,160,71,.15); }
.firm-active.off { color: var(--muted); }
.firm-active.off::before { background: #AAA; box-shadow: none; }
.firm-tagline { font-size: 1.12rem; color: var(--text); margin-bottom: 14px; }
.firm-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin: 16px 0 4px; padding-top: 14px; position: relative; }
.firm-label::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--gold-light); }
.firm-branza { font-size: 1.08rem; color: var(--ink); }
.firm-cat { display: inline-block; margin-top: 8px; font-size: 13px; background: var(--gold-soft); color: var(--gold-dark); padding: 3px 10px; border-radius: 20px; }
.firm-seals { display: flex; gap: 28px; align-items: flex-start; }
.firm-seals figure { margin: 0; text-align: center; font-size: 14px; color: var(--ink); width: 150px; }
.firm-seals figure + figure { border-left: 1px solid var(--gold-light); padding-left: 28px; width: 178px; }
.firm-seals img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 10px; }
@media (max-width: 1080px) { .firm-head { grid-template-columns: 240px 1fr; } .firm-seals { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 680px) { .firm-head { grid-template-columns: 1fr; } .firm-id { border-left: 0; padding-left: 0; } .firm-logo { height: 170px; } .firm-seals img { width: 110px; height: 110px; } .firm-seals figure { width: 120px; } .firm-seals figure + figure { width: 146px; } }
.firm-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; margin-bottom: 22px; }
@media (max-width: 860px) { .firm-row { grid-template-columns: 1fr; } }
.fbox { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 34px 30px; }
.fbox-h { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.fbox-h h2 { font-size: 1.7rem; margin: 0; white-space: nowrap; }
.fbox-h::after { content: ""; flex: 1; height: 1px; background: var(--gold-light); }
.fbox-ico { width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, #D7AE63, #B8893B); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fbox-ico svg { width: 24px; height: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0 0 0 68px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; font-size: 1.04rem; color: var(--ink); word-break: break-word; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--red); }
@media (max-width: 600px) { .contact-list { padding-left: 0; } .fbox { padding: 22px 20px; } .fbox-h h2 { font-size: 1.4rem; white-space: normal; } }
.check-list { list-style: none; margin: 0; padding: 0 0 0 40px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 9px; font-size: 1.03rem; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 600px) { .check-list { padding-left: 0; } }
.firm-opis { font-size: 1.04rem; color: var(--text); }
.firm-opis p { margin-bottom: .7em; }
.cert-facts { list-style: none; margin: 0; padding: 0 0 0 68px; }
.cert-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.cert-facts li span:first-child { color: var(--muted); }
.cert-facts li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.dyplomy { display: flex; gap: 14px; margin: 18px 0 0 68px; flex-wrap: wrap; }
.dyplomy a { display: block; width: 92px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.dyplomy a img { width: 100%; aspect-ratio: 1/1.41; object-fit: cover; }
@media (max-width: 600px) { .cert-facts, .dyplomy { padding-left: 0; margin-left: 0; } }
.firm-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.firm-actions .btn { min-width: 300px; padding: 18px 30px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.firm-actions .btn svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .firm-actions .btn { min-width: 0; width: 100%; } }
.firm-more { margin-top: 60px; }

/* ---------- Cennik ---------- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 34px 26px 28px; text-align: center; display: flex; flex-direction: column; position: relative; }
.price-card.best { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.price-flag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #D7AE63, #B8893B); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 7px 22px; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); white-space: nowrap; }
.price-seals { display: flex; align-items: center; justify-content: center; gap: 12px; height: 120px; margin-bottom: 14px; color: var(--gold); font-size: 28px; font-weight: 300; }
.price-seals img { width: 112px; height: 112px; object-fit: contain; }
.price-card.best .price-seals img { width: 96px; height: 96px; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.price { font-family: var(--serif); color: var(--gold-dark); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: 14px; }
.price small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 400; }
.price-next { background: #FBF5E8; border-radius: 8px; padding: 12px; margin-bottom: 22px; color: var(--ink); }
.price-next strong { display: block; color: var(--gold-dark); font-size: 1.15rem; }
.price-card .check-list { padding: 0; text-align: left; margin-bottom: 26px; }
.price-card .check-list li { font-size: 15px; }
.price-card .check-list svg { color: #fff; background: var(--gold); border-radius: 50%; padding: 3px; }
.price-card .btn { margin-top: auto; }
.included { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px 10px; box-shadow: var(--shadow); }
.included div { text-align: center; padding: 0 14px; color: var(--ink); font-size: 15px; }
.included div + div { border-left: 1px solid var(--line); }
.included svg { width: 48px; height: 48px; color: var(--red); margin: 0 auto 12px; display: block; }
@media (max-width: 900px) { .included { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } .included div + div { border-left: 0; } .price-card.best { transform: none; } }

/* ---------- Strefa wiedzy ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
@media (max-width: 980px) { .blog-layout { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/7; overflow: hidden; background: var(--cream-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.tag { background: #FBF1DC; color: var(--gold-dark); border: 1px solid var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.post-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: 15px; color: var(--muted); }
.more { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.more svg { width: 18px; height: 18px; }
.side-box { background: #FCF6EA; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: sticky; top: 100px; }
.side-box h2 { font-size: 1.45rem; margin-bottom: 4px; }
.side-post { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-post:last-of-type { border-bottom: 0; }
.side-post img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.side-post small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 4px; }
.side-post strong { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.3; display: block; }
.side-post:hover strong { color: var(--red); }
.promo-banner { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.promo-banner .txt { padding: 40px 44px; border-left: 3px solid var(--gold); }
.promo-banner .img { background-size: cover; background-position: center; min-height: 240px; }
@media (max-width: 800px) { .promo-banner { grid-template-columns: 1fr; } .promo-banner .txt { padding: 28px 24px; } }

/* ---------- Artykuł / treść ---------- */
.article { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 44px 50px; }
@media (max-width: 700px) { .article { padding: 26px 20px; } }
.prose { font-size: 1.05rem; color: var(--text); }
.prose h2 { font-size: 1.85rem; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.12rem; margin: 1.3em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--gold); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.2em 0; padding: .4em 0 .4em 1.2em; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 0 20px; }
.prose details[open] { padding-bottom: 14px; }
.prose summary { cursor: pointer; padding: 16px 0; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.prose details[open] summary::after { content: "–"; }
.content-sections .cpf-sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 40px 46px; margin-bottom: 26px; }
@media (max-width: 700px) { .content-sections .cpf-sec { padding: 24px 20px; } }
.content-sections .cpf-sec > h2:first-child { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--gold); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text); font-size: 15px; }

/* ---------- Formularze (CF7) ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 36px 34px; }
.form-card h2 { font-size: 2rem; }
.form-card .intro { color: var(--muted); font-size: 15px; margin: 16px 0 24px; }
.wpcf7-form p { margin: 0 0 16px; }
.wpcf7-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=url], .wpcf7-form input[type=tel], .wpcf7-form select, .wpcf7-form textarea {
	width: 100%; margin-top: 6px; border: 1px solid #DCCFB6; border-radius: 6px; padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff;
}
.wpcf7-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314203A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,194,126,.3); }
.wpcf7-form .wpcf7-list-item { display: block; margin: 6px 0; font-weight: 400; }
.wpcf7-form .wpcf7-list-item label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.wpcf7-form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; margin-top: 2px; }
.wpcf7-form .wpcf7-acceptance label, .wpcf7-form .wpcf7-acceptance { font-weight: 400; font-size: 13px; color: var(--muted); }
.wpcf7-form input[type=submit] { width: 100%; background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: 16px 24px; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; box-shadow: 0 6px 18px rgba(200,16,46,.25); }
.wpcf7-form input[type=submit]:hover { background: var(--red-dark); }
.wpcf7-not-valid-tip { font-size: 13px; }
.wpcf7-response-output { border-radius: 6px; font-size: 14px; }
@media (min-width: 700px) {
	.form-2col .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
	.form-2col .wpcf7-form > * { grid-column: 1 / -1; }
	.form-2col .wpcf7-form > p.half { grid-column: auto; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.org-card h2 { font-size: 2rem; }
.org-name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin: 20px 0 6px; line-height: 1.3; }
.org-list { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.org-list li { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; color: var(--ink); font-size: 1.05rem; }
.org-list svg { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }

/* ---------- Statystyki ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.stat-big { background: linear-gradient(135deg, #B30F28, #C8102E); color: #fff; border-radius: 12px; padding: 34px; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.stat-big b { font-family: var(--serif); font-size: 5rem; line-height: 1; display: block; margin-bottom: 12px; }
.stat-big small { opacity: .8; font-size: 13px; margin-top: 14px; display: block; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.stat b { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-dark); display: block; line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 15px; color: var(--text); }
a.stat-link { text-decoration: none; transition: border-color .2s, transform .2s; }
a.stat-link:hover { border-color: var(--gold); transform: translateY(-2px); }
a.stat-link b { font-size: 1.6rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat-big { grid-column: 1 / -1; grid-row: auto; } }
.info-strip { display: flex; align-items: center; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 34px; box-shadow: var(--shadow); }
.info-strip .txt { flex: 1; }
.info-strip h3 { font-size: 1.6rem; margin-bottom: 6px; }
.info-strip p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .info-strip { flex-direction: column; align-items: flex-start; } }

/* ---------- Jak wykorzystać godło ---------- */
.use-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.use-card .head { padding: 26px 26px 18px; }
.use-card .head-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.use-card .head-row svg { width: 40px; height: 40px; color: var(--gold); flex-shrink: 0; }
.use-card h3 { margin: 0; font-size: 1.4rem; }
.use-card p { color: var(--text); margin: 0; font-size: 15.5px; }
.use-card .img { margin: auto 8px 8px; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.use-card .img img { width: 100%; height: 100%; object-fit: cover; }
.seal-hero { width: min(380px, 80%); aspect-ratio: 1; margin-left: auto; position: relative; display: flex; align-items: center; justify-content: center; }
.seal-hero::before, .seal-hero::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-light); }
.seal-hero::after { inset: -26px; opacity: .5; }
.seal-hero img { width: 82%; filter: drop-shadow(0 18px 30px rgba(160, 13, 36, .25)); }
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; }
.hero-split .hero-inner { max-width: none; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .seal-hero { margin: 0 auto 30px; width: 240px; } }

/* ---------- Programy ---------- */
.scope-strip { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); align-items: center; margin-top: -40px; position: relative; z-index: 3; }
.scope-strip > div { padding: 22px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.scope-strip > div:first-child { display: flex; align-items: center; gap: 18px; text-align: left; font-size: 15px; color: var(--text); }
.scope-strip > div + div { border-left: 1px solid var(--line); }
.scope-strip b { display: block; color: var(--ink); font-size: 14px; }
.scope-strip svg { width: 34px; height: 34px; color: var(--red); margin: 0 auto 6px; display: block; }
.scope-strip > div:first-child svg { width: 64px; height: 64px; margin: 0; flex-shrink: 0; color: var(--gold); }
@media (max-width: 900px) { .scope-strip { grid-template-columns: repeat(2, 1fr); margin-top: 24px; } .scope-strip > div:first-child { grid-column: 1 / -1; } .scope-strip > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .img { border-radius: 12px; overflow: hidden; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.flow > div { padding: 26px 28px 26px 74px; position: relative; }
.flow > div + div::before { content: "→"; position: absolute; left: -10px; top: 40%; color: var(--gold); font-size: 24px; }
.flow .n { position: absolute; left: 22px; top: 26px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--serif); }
.flow svg { width: 38px; height: 38px; color: var(--red); margin-bottom: 8px; }
.flow h3 { font-size: 1.15rem; margin-bottom: 6px; }
.flow p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow > div + div::before { display: none; } }
.big-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.big-list li { break-inside: avoid; display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink); }
.big-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 700px) { .big-list { columns: 1; } }

/* ---------- Partnerzy / sieć serwisów ---------- */
.net-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; box-shadow: var(--shadow); }
.net-card strong { display: block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--serif); color: var(--ink); font-size: clamp(.95rem, 1.15vw, 1.08rem); margin-bottom: 4px; }
.net-card span { font-size: 14px; color: var(--muted); }
.partners { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.partners img { height: 70px; width: auto; object-fit: contain; }

/* ---------- Stopka ---------- */
.site-footer { background: #17120F; color: #CFC6B5; padding: 64px 0 24px; font-size: 15px; }
.site-footer a { color: #E8DCC2; }
.site-footer a:hover { color: var(--gold-light); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.foot-brand img { width: 58px; height: 58px; }
.foot-brand span { font-weight: 800; font-size: 17px; text-transform: uppercase; line-height: 1.1; color: #fff; }
.foot-brand span b { color: var(--gold-light); display: block; }
.site-footer h4, .site-footer .foot-h { margin-top: 0; font-weight: 700; color: var(--gold-light); font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 20px; font-size: 13px; color: #9C9384; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Różne ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 20px; } .mt-4 { margin-top: 40px; }
.muted { color: var(--muted); }
.lead-center { max-width: 760px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.pagination-wp { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination-wp .page-numbers { min-width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); padding: 0 8px; }
.pagination-wp .current { background: var(--red); color: #fff; border-color: var(--red); }
.notice-404 { text-align: center; padding: 100px 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.cert-more { margin: 12px 0 0; font-size: 14.5px; }
.cert-more a { color: var(--red); font-weight: 600; }

.firm-legal { margin: -6px 0 12px; font-size: 15px; color: var(--muted); }
.firm-legal strong { color: var(--ink); font-weight: 600; }
.firm-branza a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold-light); }
.firm-branza a:hover { color: var(--red); border-color: var(--red); }
.fcard-legal { display: block; font-size: 12.5px; color: var(--muted); margin: -2px 0 4px; }
.contact-list .contact-name strong { color: var(--ink); font-weight: 600; }
.fbox-zakres { margin-top: 22px; }
.check-cols { padding-left: 0; columns: 2; column-gap: 40px; }
.check-cols li { break-inside: avoid; }
@media (max-width: 700px) { .check-cols { columns: 1; } }
