/* ==========================================================================
   RynekUSA — style główne
   ========================================================================== */

:root {
	--ink: #0f1b2d;
	--ink-2: #1c2b42;
	--ink-deep: #0a1320;
	--paper: #ffffff;
	--sand: #f4f2ee;
	--soft: #fafaf8;
	--white: #fff;
	--red: #c8102e;
	--red-dark: #a10c24;
	--muted: #5b6474;
	--line: rgba(15, 27, 45, 0.14);
	--line-light: rgba(255, 255, 255, 0.16);

	--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 14px;
	--shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 12px 32px -12px rgba(15, 27, 45, 0.18);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-variation-settings: "opsz" 72; }
p { margin: 0 0 1.1em; }
abbr[title] { text-decoration: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--white); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 820px; }

/* Typografia pomocnicza ----------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--red); margin: 0 0 18px;
}
.eyebrow--light { color: #ff8a9b; }
.flag-dot { width: 22px; height: 12px; border-radius: 2px; background: linear-gradient(var(--white) 50%, var(--red) 50%); box-shadow: inset 0 0 0 1px var(--line); flex: none; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section__head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section__title { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; }
.section__title--sm { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 32px; }
.section__lead { color: var(--muted); margin: 14px 0 0; max-width: 560px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Przyciski ----------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px;
	font: 600 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn--sms { background: var(--ink); color: var(--white); min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn--sms:hover { background: var(--red); color: var(--white); }
.btn--sms svg { width: 16px; height: 16px; }
.btn--sms:hover svg { transform: none; }

/* Pasek górny --------------------------------------------------------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar__clocks, .topbar__contact { display: flex; gap: 22px; align-items: center; }
.topbar b { font-weight: 500; color: rgba(255, 255, 255, 0.55); margin-right: 4px; }
.topbar time { font-variant-numeric: tabular-nums; color: var(--white); }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* Nagłówek ------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--ink); color: var(--white); font: italic 600 1.35rem/1 var(--serif);
	box-shadow: inset 0 -6px 0 var(--red);
}
.brand__name { font: 500 1.45rem/1 var(--serif); letter-spacing: -0.02em; }
.brand__name strong { font-weight: 700; color: var(--red); }
.custom-logo-link img { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav .menu a {
	display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500;
	transition: background .2s;
}
.site-nav .menu a:hover { background: var(--sand); color: var(--ink); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-page-ancestor > a { background: var(--sand); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; margin: 6px 0 0; padding: 8px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { border-radius: 8px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 50%; width: 46px; height: 46px; place-items: center; cursor: pointer; color: var(--ink); }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 880px) {
	.topbar__clocks { display: none; }
	.topbar__inner { justify-content: center; }
	.nav-toggle { display: grid; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(15, 27, 45, .25);
		display: none;
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 14px 12px; font-size: 1.15rem; border-radius: 10px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
	.btn--sms { min-height: 50px; }
}
@media (max-width: 520px) {
	.topbar__contact a:first-child { display: none; }
}

/* Hero ---------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__title {
	font-size: clamp(2.5rem, 5.6vw, 4.7rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em;
	margin-bottom: 28px; font-variation-settings: "opsz" 144;
}
.hero__title em { font-style: italic; color: var(--red); font-weight: 400; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 580px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__founder { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hero__photo {
	position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 18px 18px; overflow: hidden;
	background: var(--sand);
}
.hero__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .08); border-radius: inherit; pointer-events: none; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__founder::before {
	content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: 220px 220px 18px 18px;
	border: 1px solid var(--red); z-index: -1;
}
.hero__founder figcaption {
	position: absolute; left: -28px; bottom: 32px; background: var(--white); padding: 12px 18px 12px 16px; border-radius: 10px;
	box-shadow: var(--shadow); font: italic 500 1rem/1.3 var(--serif); border-left: 3px solid var(--red);
}

.facts {
	display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 8vw, 96px) 0 0; padding: 28px 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 0 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--serif); letter-spacing: -0.02em; }
.facts small { font: 400 0.92rem/1 var(--sans); color: var(--muted); letter-spacing: 0; }

@media (max-width: 880px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__founder { justify-self: start; max-width: 340px; margin-left: 24px; }
	.facts { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
	.hero__founder { max-width: 280px; }
	.hero__founder figcaption { left: -16px; }
	.facts > div { padding: 0 14px; }
}

/* Intro --------------------------------------------------------------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.intro .section__title { font-style: italic; font-weight: 400; }
.intro__text { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: var(--ink-2); margin: 0; font-family: var(--serif); font-variation-settings: "opsz" 24; }
@media (max-width: 760px) { .intro__grid { grid-template-columns: 1fr; } }

/* Usługi -------------------------------------------------------------- */
.services { background: var(--white); }
.services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); counter-reset: none; }
.service { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.services__list .service:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.service__num { font: italic 500 1.05rem/1 var(--serif); color: var(--red); }
.service__text { font-size: 1.12rem; line-height: 1.45; font-weight: 500; }
a.service__text { text-decoration: none; display: inline; }
a.service__text svg { display: inline-block; vertical-align: -3px; margin-left: 6px; color: var(--red); transition: transform .25s var(--ease); }
a.service__text:hover { color: var(--red); }
a.service__text:hover svg { transform: translateX(4px); }
.service--link .service__text { border-bottom: 1px solid transparent; }
@media (max-width: 760px) {
	.services__list { grid-template-columns: 1fr; }
	.services__list .service:nth-last-child(2) { border-bottom: 0; }
	.service { grid-template-columns: 44px 1fr; padding: 20px 0; }
}

/* Referencje ---------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote-card {
	margin: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
	background: var(--white); border-radius: var(--radius); padding: 32px 28px 26px; border: 1px solid var(--line);
}
.quote-card::before {
	content: "\201D"; display: block; height: 0.42em; margin-bottom: -6px; font: 400 4rem/1 var(--serif); color: var(--red);
}
.quote-card__text { margin: 0; position: relative; flex: 1; }
.quote-card__text p { margin: 0; font: 400 1.12rem/1.5 var(--serif); font-variation-settings: "opsz" 24; }
.quote-card__by { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-card__by a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.quote-card--lead { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--white); border-color: var(--ink); padding: clamp(32px, 5vw, 56px); }
.quote-card--lead::before { font-size: 6rem; }
.quote-card--lead .quote-card__text { flex: 1; }
.quote-card--lead .quote-card__text p { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.3; font-weight: 300; }
.quote-card--lead .quote-card__by { border-top-color: var(--line-light); color: rgba(255, 255, 255, .8); }
.quote-card--lead .quote-card__by a:hover { color: var(--white); }
.quotes--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-reviews { margin: 36px 0 0; }
@media (max-width: 980px) { .quotes, .quotes--all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.quotes, .quotes--all { grid-template-columns: 1fr; }
	.quote-card--lead { grid-column: auto; grid-row: auto; }
}

/* Karty wpisów -------------------------------------------------------- */
.knowledge { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
	position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.knowledge .card { background: var(--white); }
.cards--grid .card { background: var(--white); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card__title { font-size: 1.32rem; line-height: 1.25; margin: 0 0 12px; font-weight: 500; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--red); }
.card__excerpt { color: var(--muted); font-size: 0.96rem; margin-bottom: 20px; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--red); }
.card:hover .card__more svg { transform: translateX(4px); }
.card__more svg { transition: transform .25s var(--ease); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); background: var(--white); }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.empty { text-align: center; padding: 40px 0; }

/* Wyszukiwarka -------------------------------------------------------- */
.search-form { display: flex; gap: 8px; max-width: 560px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: inherit; }
.search-form__input:focus { outline: none; }
.search-form:focus-within { border-color: var(--ink); }
.search-form__btn { border: 0; border-radius: 999px; background: var(--ink); color: var(--white); padding: 10px 22px; font: 600 0.95rem var(--sans); cursor: pointer; }
.search-form__btn:hover { background: var(--red); }
.empty .search-form { margin: 0 auto; }

/* Pas CTA ------------------------------------------------------------- */
.cta { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.cta::before {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
	border: 1px solid var(--line-light); box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .02);
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.cta__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.cta__text { color: rgba(255, 255, 255, .75); font-size: 1.08rem; max-width: 480px; margin: 0; }
.cta__channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.channel {
	display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
	padding: 18px 22px; border: 1px solid var(--line-light); border-radius: var(--radius); text-decoration: none;
	transition: background .2s, border-color .2s;
}
.channel:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); color: var(--white); }
.channel__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.channel__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, .6); }
.channel__value { font: 500 1.25rem/1.3 var(--serif); word-break: break-word; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* Nagłówek podstron --------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.03em; max-width: 960px; margin: 0 0 18px; }
.page-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; margin: 0; }
.page-hero__search { margin-top: 28px; }
.page-hero--article .page-hero__title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.page-hero--404 { border: 0; padding-bottom: clamp(64px, 9vw, 120px); }
.page-hero--404 .btn { margin-top: 20px; }
.crumbs { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.article__meta { color: var(--muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Artykuł ------------------------------------------------------------- */
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.article__main { min-width: 0; }
.article__image { margin: 0 0 40px; }
.article__image img { border-radius: var(--radius); width: 100%; }
.aside-sticky { position: sticky; top: 110px; display: grid; gap: 24px; }
@media (max-width: 960px) {
	.article__grid { grid-template-columns: 1fr; }
	.aside-sticky { position: static; }
	.toc { display: none; }
}

.toc { border-left: 2px solid var(--line); padding-left: 18px; }
.toc__title { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; line-height: 1.4; }
.toc__list a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0; position: relative; }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--ink); font-weight: 600; }
.toc__list a.is-active::before { content: ""; position: absolute; left: -20px; top: 4px; bottom: 4px; width: 2px; background: var(--red); }

.consult-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.consult-box__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sand); }
.consult-box__title { font: 500 1.25rem/1.25 var(--serif); margin: 4px 0 0; }
.consult-box__text { color: var(--muted); font-size: 0.94rem; margin: 0 0 6px; }
.consult-box .btn { min-height: 44px; font-size: 0.92rem; }
.widget { font-size: 0.95rem; }
.widget-title { font-size: 1.1rem; }

/* Treść z edytora ----------------------------------------------------- */
.entry-content { font-size: 1.08rem; line-height: 1.75; }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > figure, .entry-content > .wp-block-table, .entry-content > .wp-block-columns, .entry-content > .wp-block-group { max-width: none; }
.entry-content h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin: 2em 0 0.6em; scroll-margin-top: 110px; }
.entry-content h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1.8em 0 0.5em; scroll-margin-top: 110px; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.2rem; margin: 1.6em 0 0.5em; scroll-margin-top: 110px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content a { color: var(--red); }
.entry-content a:hover { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content ol li::marker { color: var(--red); font-family: var(--serif); font-style: italic; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 2em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--red); font: italic 400 1.3rem/1.5 var(--serif); }
.entry-content blockquote cite { display: block; margin-top: 10px; font: normal 600 0.85rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.entry-content .wp-block-pullquote { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2em 0; }
.entry-content img { border-radius: 10px; }
.entry-content figcaption, .wp-caption-text { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 1.6em 0; background: var(--white); border-radius: 10px; overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--ink); color: var(--white); font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.entry-content code { background: var(--sand); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content strong { font-weight: 600; }
.entry-content .wp-block-button__link { background: var(--red); color: var(--white); border-radius: 999px; padding: 12px 24px; text-decoration: none; font-weight: 600; }
.entry-content .wp-block-button__link:hover { background: var(--red-dark); color: var(--white); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry-content details { border-top: 1px solid var(--line); padding: 16px 0; }
.entry-content details:last-of-type { border-bottom: 1px solid var(--line); }
.entry-content summary { cursor: pointer; font: 500 1.15rem/1.4 var(--serif); }
.entry-content--page { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.has-ink-color { color: var(--ink); } .has-ink-background-color { background-color: var(--ink); }
.has-red-color { color: var(--red); } .has-red-background-color { background-color: var(--red); }
.has-paper-color { color: var(--paper); } .has-paper-background-color { background-color: var(--paper); }
.has-sand-color { color: var(--sand); } .has-sand-background-color { background-color: var(--sand); }
.has-white-color { color: var(--white); } .has-white-background-color { background-color: var(--white); }

.tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; text-decoration: none; }
.page-links { margin-top: 32px; display: flex; gap: 8px; }
.related { background: var(--white); }

/* Kontakt ------------------------------------------------------------- */
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 6px; align-content: start; }
.contact-card__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; margin-bottom: 14px; }
.contact-card__label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.25 var(--serif); text-decoration: none; word-break: break-word; }
.contact-card__note { font-size: 0.9rem; color: var(--muted); }
.contact-card__note time { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.contact-content { margin-top: 48px; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

/* Formularze (komentarze, wtyczki) ----------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], textarea, select {
	font: inherit; color: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
.search-form .search-form__input { width: auto; border: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 27, 45, .08); }
input[type="submit"], button[type="submit"]:not(.search-form__btn) { background: var(--red); color: var(--white); border: 0; border-radius: 999px; padding: 12px 24px; font: 600 1rem var(--sans); cursor: pointer; }
.comments { padding: 48px 0 72px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

/* Stopka -------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .7); font-size: 0.95rem; padding-top: clamp(56px, 7vw, 88px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); }
.site-footer .brand__mark { background: var(--white); color: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 48px; padding-bottom: 56px; }
.site-footer__brand p { margin-top: 18px; max-width: 360px; }
.site-footer__title { font: 600 0.8rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.contact-list span { color: rgba(255, 255, 255, .45); }
.contact-list a { color: var(--white); word-break: break-word; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu--inline { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__bottom { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 0.85rem; }
.copyright { margin: 0 auto 0 0; }
.social { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.social:hover { background: var(--white); color: var(--ink) !important; }
.site-footer .custom-logo-link img { filter: brightness(0) invert(1); }
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.copyright { margin-right: 0; width: 100%; }
}

/* Animacja wejścia ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* FAQ ----------------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
	padding: 22px 0; font: 500 clamp(1.1rem, 1.8vw, 1.3rem)/1.35 var(--serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red); }
.faq__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; margin-top: 2px; transition: transform .25s var(--ease), background .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.faq__item[open] .faq__icon { background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq__answer p { margin-bottom: 14px; }
.faq__answer .link-arrow { font-size: .92rem; color: var(--red); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } .faq__answer { padding-right: 0; } }

/* Przewodniki według tematu ------------------------------------------ */
.topics { background: var(--white); }
.topics--compact { background: transparent; border-top: 1px solid var(--line); }
.topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.topic { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.topic__num { font: italic 500 1rem/1 var(--serif); color: var(--red); margin-bottom: 14px; }
.topic__title { font-size: 1.3rem; margin-bottom: 6px; }
.topic__desc { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.topic__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic__links li { border-bottom: 1px solid var(--line); }
.topic__links a { display: block; padding: 10px 18px 10px 0; font-size: .92rem; line-height: 1.4; text-decoration: none; position: relative; }
.topic__links a::after { content: "→"; position: absolute; right: 0; top: 10px; color: var(--red); opacity: 0; transition: opacity .2s, transform .2s; }
.topic__links a:hover { color: var(--red); }
.topic__links a:hover::after { opacity: 1; transform: translateX(2px); }
@media (max-width: 1080px) { .topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topics__grid { grid-template-columns: 1fr; } }

/* Autor --------------------------------------------------------------- */
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 24px; margin-top: 56px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); max-width: 72ch; }
.author-box__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sand); }
.author-box__label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.author-box__name { font: 500 1.3rem/1.2 var(--serif); margin: 0 0 10px; }
.author-box__name span { font: 400 .95rem var(--sans); color: var(--muted); }
.author-box__bio { color: var(--ink-2); font-size: .98rem; margin-bottom: 14px; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; font-size: .92rem; }
.link-arrow--muted { color: var(--muted); }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }

/* Białe tło: sekcje oddzielone liniami ---------------------------------- */
.section + .section, .hero + .section { border-top: 1px solid var(--line); }
.hero__photo { background: var(--sand); }
.quote-card, .topic, .card, .contact-card, .consult-box, .author-box { box-shadow: 0 1px 2px rgba(15, 27, 45, .04); }
.service--link:hover, .topic__links a:hover { background: transparent; }

/* ==========================================================================
   Mobile
   ========================================================================== */
.mobile-bar { display: none; }
.entry-content { overflow-wrap: break-word; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.link-arrow { min-height: 44px; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; padding-bottom: 0; }
.entry-content details summary { padding: 12px 0; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); vertical-align: middle; }

@media (max-width: 880px) {
	body { font-size: 16.5px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.topbar { display: none; }
	.site-header__inner { min-height: 64px; }
	.brand__mark { width: 36px; height: 36px; font-size: 1.2rem; }
	.brand__name { font-size: 1.3rem; }
	.custom-logo-link img { max-height: 44px; }
	html { scroll-padding-top: 76px; }
	.nav-open { overflow: hidden; }
	.site-nav { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; }
	.site-nav .btn--sms { display: none; }

	/* Pasek kontaktu na dole ekranu */
	.mobile-bar {
		display: grid; grid-template-columns: auto auto 1fr; gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
		background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
		box-shadow: 0 -8px 24px -16px rgba(15, 27, 45, .35);
	}
	.mobile-bar a {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
		border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink);
	}
	.mobile-bar a svg { width: 18px; height: 18px; }
	.mobile-bar .mobile-bar__primary { background: var(--red); border-color: var(--red); color: var(--white); }
	.nav-open .mobile-bar { display: none; }

	/* Stopka: wygodne cele dotyku */
	.footer-menu { gap: 0; }
	.footer-menu a, .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
	.contact-list { gap: 0; }
	.contact-list li { align-items: center; }
	.footer-menu--inline { gap: 0 20px; }
	.social { width: 44px; height: 44px; }
	.quote-card__by a { min-height: 44px; }
	.quote-card__by { padding-top: 6px; }
	.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
	.crumbs { margin-bottom: 4px; align-items: center; }
	.contact-card__value { display: inline-flex; align-items: center; min-height: 44px; }

	/* Hero */
	.hero { padding-top: 32px; }
	.hero__title { margin-bottom: 20px; }
	.hero__lead { margin-bottom: 26px; }
	.hero__actions .btn { flex: 1 1 auto; }
	.hero__founder { justify-self: center; margin: 8px auto 0; width: calc(100% - 24px); max-width: 320px; }
	.hero__founder::before { inset: 16px -12px -12px 16px; }
	.hero__founder figcaption { left: 12px; bottom: 20px; }
	.facts { margin-top: 56px; }

	/* Sekcje */
	.section { padding: 56px 0; }
	.section--tight { padding: 36px 0; }
	.section__head { margin-bottom: 28px; }
	.section__head--split { align-items: flex-start; }
	.quote-card { padding: 26px 22px 18px; }
	.quote-card--lead { padding: 30px 24px 20px; }
	.cta { padding: 56px 0; }
	.cta::before { display: none; }
	.channel { padding: 14px 16px; grid-template-columns: 44px 1fr; }
	.channel__icon { width: 44px; height: 44px; }
	.page-hero { padding: 36px 0 28px; }
	.article__grid { padding-top: 28px; padding-bottom: 48px; gap: 40px; }
	.author-box { padding: 22px; margin-top: 40px; }
	.consult-box { padding: 22px; }
	.topic { padding: 22px 20px; }
	.topic__links a { padding: 12px 18px 12px 0; }

	/* Tabele w treści przewijane poziomo zamiast rozpychać stronę */
	.entry-content table, .entry-content .wp-block-table table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
	.entry-content th, .entry-content td { white-space: normal; min-width: 140px; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (max-width: 400px) {
	:root { --gutter: 16px; }
	.hero__title { font-size: 2.25rem; }
	.page-hero__title { font-size: 2rem; }
	.page-hero--article .page-hero__title { font-size: 1.8rem; }
	.section__title { font-size: 1.85rem; }
	.facts dd { font-size: 1.55rem; }
	.facts > div { padding: 0 10px; }
	.mobile-bar { gap: 6px; }
	.mobile-bar a { padding: 0 12px; font-size: .88rem; }
	.search-form__btn { padding: 10px 16px; }
	.btn { padding: 12px 18px; }
}
@media (max-width: 340px) {
	.mobile-bar a:not(.mobile-bar__primary) span { display: none; }
	.mobile-bar a { padding: 0 14px; }
}
@media (max-width: 880px) {
	.brand, .custom-logo-link { min-height: 44px; }
	.crumbs a { padding: 0 6px; margin: 0 -6px; }
	.widget ul { list-style: none; padding: 0; margin: 0; }
	.widget li a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 880px) { .mobile-bar a { white-space: nowrap; } .hero__founder { max-width: 290px; } }

/* Przewijane poziomo karty na telefonie (krótsza strona) */
@media (max-width: 640px) {
	.quotes:not(.quotes--all), .topics__grid {
		display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
		margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter);
	}
	.quotes:not(.quotes--all)::-webkit-scrollbar, .topics__grid::-webkit-scrollbar { display: none; }
	.quotes:not(.quotes--all) > .quote-card, .topics__grid > .topic { flex: 0 0 84%; scroll-snap-align: start; }
	.quotes:not(.quotes--all) > .quote-card--lead .quote-card__text p { font-size: 1.3rem; }
	.swipe-hint { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
	.swipe-hint::after { content: "→"; color: var(--red); }
}
@media (min-width: 641px) { .swipe-hint { display: none; } }
.facts { border-bottom: 0; padding-bottom: 40px; }
