/* ==========================================================================
   Motyw Wites – style według projektu design/project/wites-v2a-klasyczna.dc.html
   (Claude Design, wariant „klasyczny”, wrzesień 2026).
   Tokeny: tło #ffffff, powierzchnie #f0f4fb / #e3eefb, tekst #17212f, wyciszony #4f5b6e,
   granat #1c3a6a (hover #3b7ddd), granat głęboki #12294d, błękit #8fd3f4 na granacie,
   font Archivo (lokalnie), zaokrąglenia 12–28 px, pigułki 999 px.
   ========================================================================== */

:root {
	--w-bg: #ffffff;
	--w-surface: #f0f4fb;
	--w-surface-2: #e3eefb;
	--w-surface-3: #dbeffa;
	--w-line: #e3eaf5;
	--w-line-2: #cfdcf0;
	--w-text: #17212f;
	--w-muted: #4f5b6e;
	--w-navy: #1c3a6a;
	--w-navy-deep: #12294d;
	--w-blue: #3b7ddd;
	--w-sky: #8fd3f4;
	--w-sky-text: #dff3fc;
	--w-on-navy: #d3e3f7;
	--w-footer-text: #b8c8e0;
	--w-shadow-card: 0 20px 50px rgba(28, 58, 106, .12);
	--w-r-sm: 12px;
	--w-r-md: 16px;
	--w-r-lg: 24px;
	--w-r-xl: 28px;
	--w-container: 1240px;
	--w-gutter: 24px;
}

/* --- podstawy ------------------------------------------------------------ */

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--w-bg); color: var(--w-text); text-wrap: pretty; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--w-navy); text-underline-offset: 3px; }
a:hover { color: var(--w-blue); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--w-blue); outline-offset: 2px; }
::selection { background: rgba(143, 211, 244, .45); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.w-container { max-width: var(--w-container); margin: 0 auto; padding-left: var(--w-gutter); padding-right: var(--w-gutter); }
.w-gs { background: var(--w-surface-2); } /* klasa z treści w bazie – dziś tylko tło pod zdjęciem */

/* Neutralizacja odstępów bloków WordPressa wewnątrz naszych układów. */
.wp-block-group.w-container > *, .w-main .wp-block-group > * { margin-block-start: 0; }
.w-main .wp-block-group > * + * { margin-block-start: 0; }
.w-main p { margin: 0; }
.w-main h1, .w-main h2, .w-main h3, .w-main h4 { margin: 0; }
.w-main .wp-block-buttons { gap: 12px; }
.w-main .wp-block-buttons > .wp-block-button { margin: 0; }

/* --- miękkie plamy koloru w tle ----------------------------------------- */

.w-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.w-blob { position: absolute; border-radius: 50%; display: block; }
.w-blob--hero-1 { width: 640px; height: 640px; background: var(--w-blue); opacity: .55; filter: blur(90px); top: -260px; right: -120px; }
.w-blob--hero-2 { width: 520px; height: 520px; background: var(--w-sky); opacity: .35; filter: blur(100px); bottom: -300px; left: -140px; }
.w-blob--services { width: 700px; height: 700px; background: var(--w-sky); opacity: .25; filter: blur(110px); top: -350px; right: -200px; }
.w-blob--contact { width: 600px; height: 600px; background: var(--w-blue); opacity: .5; filter: blur(100px); bottom: -300px; left: -150px; }

/* --- typografia pomocnicza ---------------------------------------------- */

.w-kicker { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--w-navy); font-weight: 800; background: var(--w-surface-2); border-radius: 999px; padding: 5px 12px; margin: 0 0 14px !important; }
.w-kicker--white { background: var(--w-bg); }
.w-kicker--light { color: var(--w-sky-text); background: rgba(143, 211, 244, .18); border: 1px solid rgba(143, 211, 244, .5); }
.w-pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 14px; margin: 0; }
.w-pill--light { background: rgba(18, 41, 77, .35); border: 1px solid rgba(143, 211, 244, .5); color: #fff; } /* ciemniejsze tło i biały tekst – kontrast AA */
.w-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--w-sky); display: inline-block; flex: none; }
.w-kicker-inline, .w-meta .w-kicker-inline a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--w-navy); font-weight: 800; text-decoration: none; }
.w-meta .w-kicker-inline a:hover { color: var(--w-blue); }
.w-tag a, .w-tag { display: inline-block; background: var(--w-navy); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; text-decoration: none; }
.w-tag a:hover { background: var(--w-blue); color: #fff; }
.w-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--w-muted); flex-wrap: wrap; }
.w-meta--small { gap: 10px; }
.w-date { color: var(--w-muted); }
.w-more, .w-more a, .wp-block-read-more.w-more { font-weight: 800; font-size: 14px; text-decoration: none; color: var(--w-navy); display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.w-more a:hover, .wp-block-read-more.w-more:hover { color: var(--w-blue); }
.w-more--outline a { font-weight: 600; border: 1.5px solid var(--w-line-2); border-radius: 999px; padding: 10px 18px; transition: background .15s ease; }
.w-more--outline a:hover { background: var(--w-surface); color: var(--w-navy); }
.w-section__lead { color: var(--w-muted); font-size: 15px; max-width: 48ch; margin: 0 0 20px !important; }
.w-page-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; }

/* --- przyciski ------------------------------------------------------------ */

.w-btn .wp-block-button__link { border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; padding: 12px 20px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease, transform .15s ease; }
.w-btn--primary .wp-block-button__link { background: var(--w-navy); color: #fff; }
.w-btn--primary .wp-block-button__link:hover { background: var(--w-blue); color: #fff; }
.w-btn--secondary .wp-block-button__link { background: transparent; color: var(--w-navy); border: 1.5px solid var(--w-line-2); }
.w-btn--secondary .wp-block-button__link:hover { background: var(--w-surface); color: var(--w-navy); }
.w-btn--sky .wp-block-button__link { background: var(--w-sky); color: var(--w-navy-deep); font-weight: 800; padding: 16px 26px; }
.w-btn--sky .wp-block-button__link:hover { background: #fff; color: var(--w-navy-deep); }
.w-btn--ghost .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); padding: 16px 26px; }
.w-btn--ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.w-btn--wide .wp-block-button__link { font-weight: 800; padding: 16px 26px; }
.w-btn--sm .wp-block-button__link { font-size: 14px; padding: 10px 16px; }
.w-btn-plain { font: inherit; font-weight: 600; font-size: 14px; color: var(--w-navy); background: #fff; border: 1.5px solid var(--w-line-2); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.w-btn-plain:hover { background: var(--w-surface); }

/* --- pasek górny ---------------------------------------------------------- */

.w-topbar { background: var(--w-surface); font-size: 13px; color: var(--w-muted); }
.w-topbar__inner { padding-top: 8px; padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.w-topbar__lang { display: flex; gap: 14px; }
.w-topbar__lang a { color: var(--w-muted); text-decoration: none; }
.w-topbar__lang a[aria-current] { color: var(--w-navy); font-weight: 600; }
.w-topbar__contact { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.w-topbar__contact a { color: var(--w-navy); text-decoration: none; font-weight: 600; }

/* --- nagłówek ------------------------------------------------------------- */

.w-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--w-line); }
.w-header__inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.w-logo { display: block; flex: none; margin-right: auto; } /* logo z pliku PNG, przezroczyste tło – leży bezpośrednio na tle strony */
.w-logo img { height: 72px; width: auto; }
.w-header__cta { margin: 0 !important; }
.w-nav.wp-block-navigation { gap: 4px; font-size: 16px; font-weight: 600; }
.w-nav .wp-block-navigation-item__content { color: var(--w-text); text-decoration: none; padding: 10px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.w-nav .wp-block-navigation-item__content:hover, .w-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--w-surface); color: var(--w-navy); }
@media (max-width: 1080px) {
	.w-nav.wp-block-navigation { order: 3; flex-basis: 100%; font-size: 15px; gap: 2px; }
	.w-nav .wp-block-navigation-item__content { padding: 8px 12px; }
}
@media (max-width: 700px) {
	.w-header { position: static; }
	/* logo i przycisk w jednym rzędzie: logo zwęża się do wolnego miejsca (wysokość maks. 56 px), przycisk skrócony do „Zarezerwuj →” */
	.w-logo { flex: 1 1 0px; min-width: 0; max-width: 253px; } /* podstawa 0 – logo nie wymusza zawijania, tylko rośnie do wolnego miejsca */
	.w-logo img { width: 100%; height: auto; }
	.w-header__inner { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
	.w-header__cta { flex: none; }
	.w-header__cta .wp-block-button__link { font-size: 14px; padding: 10px 14px; gap: 8px; }
	.w-hide-sm { display: none; }
	.w-nav.wp-block-navigation { font-size: 14px; }
	.w-nav .wp-block-navigation-item__content { padding: 7px 10px; }
}

/* --- sekcje --------------------------------------------------------------- */

.w-section { position: relative; background: var(--w-bg); }
.w-section--tint { background: var(--w-surface); overflow: hidden; }
.w-section--navy { background: var(--w-navy); color: #fff; overflow: hidden; }
.w-section--navy a { color: #fff; }
.w-section > .w-container { position: relative; padding-top: 80px; padding-bottom: 80px; }
.w-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px !important; }
.w-section__head h2, .w-section__head h1 { margin: 0; }
.w-section__head .w-section__lead { margin: 0 !important; max-width: 44ch; }
.w-section__head--tight { margin-bottom: 28px !important; }
@media (max-width: 700px) { .w-section > .w-container { padding-top: 56px; padding-bottom: 56px; } .w-section__head { margin-bottom: 28px !important; } }

/* --- hero ----------------------------------------------------------------- */

.w-hero { position: relative; background: var(--w-navy); color: #fff; overflow: hidden; }
.w-hero__grid { position: relative; padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.w-hero__copy { display: flex; flex-direction: column; gap: 24px; }
.w-hero__title { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
.w-hero__accent { color: var(--w-sky); }
.w-hero__lead { font-size: 18px; max-width: 50ch; color: var(--w-on-navy); }
.w-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.w-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.w-fact { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--w-r-md); padding: 16px; min-width: 0; }
.w-fact__value { display: block; font-size: 28px; font-weight: 800; line-height: 1; color: var(--w-sky); }
.w-fact__value--sm { font-size: 22px; line-height: 1.1; }
.w-fact__label { display: block; font-size: 13px; color: var(--w-on-navy); margin-top: 6px; }
.w-hero__media { position: relative; min-width: 0; }
.w-hero__photo { border-radius: var(--w-r-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: rotate(1.5deg); background: var(--w-surface-2); }
.w-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.w-hero__card { position: absolute; left: -16px; bottom: -24px; background: #fff; color: var(--w-text); text-decoration: none; border-radius: 18px; padding: 16px 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); display: flex; gap: 14px; align-items: center; max-width: 320px; transition: transform .15s ease; }
.w-hero__card:hover { transform: translateY(-3px); color: var(--w-text); }
.w-hero__card-badge { width: 44px; height: 44px; border-radius: var(--w-r-sm); background: var(--w-surface-2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--w-navy); font-weight: 800; font-size: 18px; }
.w-hero__card-body { display: block; }
.w-hero__card-title { display: block; font-weight: 800; font-size: 15px; line-height: 1.2; }
.w-hero__card-sub { display: block; font-size: 13px; color: var(--w-muted); margin-top: 2px; }
@media (max-width: 700px) {
	.w-hero__grid { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
	.w-hero__facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
	.w-hero__photo { transform: none; }
	.w-hero__card { position: static; margin-top: 16px; max-width: none; }
}

/* --- aktualności ---------------------------------------------------------- */

.w-news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; align-items: stretch; }
.w-news__featured { background: var(--w-surface); border-radius: var(--w-r-lg); padding: 20px; transition: box-shadow .2s ease; }
.w-news__featured:hover { box-shadow: var(--w-shadow-card); }
.w-news__featured .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.w-news__featured .wp-block-post { display: flex; flex-direction: column; gap: 18px; }
.w-news__img { background: var(--w-surface-2); border-radius: var(--w-r-md); overflow: hidden; margin: 0; }
.w-news__img img { width: 100%; height: 100%; object-fit: cover; }
.w-news__title { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.w-news__title a { color: var(--w-text); text-decoration: none; }
.w-news__title a:hover { color: var(--w-navy); }
.w-news__excerpt { color: var(--w-muted); font-size: 16px; }
.w-news__excerpt .wp-block-post-excerpt__more-text { display: none; }
/* lista po prawej rozciąga się na wysokość dużej karty – bez pustego miejsca pod ostatnim wpisem */
.w-news__list, .w-news__list .wp-block-query { display: flex; flex-direction: column; }
.w-news__list .wp-block-query { flex: 1 1 auto; }
.w-news__list .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; justify-content: space-between; }
.w-news__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: 18px; border: 1px solid var(--w-line); align-items: center; transition: background .15s ease, border-color .15s ease; }
.w-news__item:hover { background: var(--w-surface); border-color: var(--w-surface); }
.w-news__thumb { width: 88px; height: 72px; border-radius: var(--w-r-sm); background: var(--w-surface-2); overflow: hidden; margin: 0; }
.w-news__thumb a, .w-news__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-news__item-body { display: flex; flex-direction: column; gap: 6px; }
.w-news__item-title { font-weight: 800; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.w-news__item-title a { color: var(--w-text); text-decoration: none; }
.w-news__item:hover .w-news__item-title a { color: var(--w-navy); }
@media (max-width: 700px) { .w-news__title { font-size: 24px; } }

/* --- usługi --------------------------------------------------------------- */

.w-services__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.w-service { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 22px; padding: 12px 12px 20px; text-decoration: none; color: var(--w-text); min-width: 0; box-shadow: 0 2px 0 rgba(28, 58, 106, .04); transition: transform .2s ease, box-shadow .2s ease; }
.w-service:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(28, 58, 106, .16); color: var(--w-text); }
.w-service__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--w-surface-2); }
.w-service__img img { width: 100%; height: 100%; object-fit: cover; }
.w-service__num { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--w-navy); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.w-service__title { font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -.015em; hyphens: auto; padding: 0 6px; }
.w-service__desc { font-size: 13px; color: var(--w-muted); flex: 1; padding: 0 6px; }
.w-service__more { font-weight: 800; font-size: 13px; color: var(--w-navy); padding: 0 6px; } /* granat zamiast jasnego niebieskiego – kontrast AA (Lighthouse) */
@media (max-width: 1100px) { .w-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .w-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { .w-services__grid { grid-template-columns: 1fr; } }

/* --- o kancelarii --------------------------------------------------------- */

.w-about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.w-about__media { position: relative; min-width: 0; }
.w-about__photo { border-radius: var(--w-r-xl); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; box-shadow: 0 30px 70px rgba(28, 58, 106, .18); background: var(--w-surface-2); }
.w-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.w-about__badge { position: absolute; right: -12px; top: 28px; background: var(--w-sky); color: var(--w-navy-deep); border-radius: var(--w-r-md); padding: 14px 18px; font-weight: 800; font-size: 14px; line-height: 1.2; box-shadow: 0 12px 30px rgba(28, 58, 106, .2); }
.w-about__badge span { display: block; font-weight: 500; font-size: 12px; }
.w-about__copy { display: flex; flex-direction: column; gap: 20px; }
.w-about__copy .w-kicker { margin-bottom: 0 !important; align-self: flex-start; }
.w-about__lead { max-width: none; font-size: 16px; margin: 0 !important; }
.w-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.w-pillar { border-radius: 18px; padding: 18px; min-width: 0; }
.w-pillar--1 { background: var(--w-surface); }
.w-pillar--2 { background: var(--w-surface-2); }
.w-pillar--3 { background: var(--w-surface-3); }
.w-pillar__num { display: block; font-size: 26px; font-weight: 800; color: var(--w-blue); line-height: 1; margin-bottom: 10px; }
.w-pillar__title { display: block; font-weight: 800; font-size: 17px; margin-bottom: 6px; overflow-wrap: anywhere; }
.w-pillar p { font-size: 13px; color: var(--w-muted); margin: 0; }
@media (max-width: 700px) { .w-about__photo { max-width: 420px; } .w-about__badge { right: 0; } }
@media (max-width: 480px) { .w-pillars { grid-template-columns: 1fr; } }

/* --- zaufali nam ---------------------------------------------------------- */

.w-trusted > .w-container { padding-top: 64px; padding-bottom: 64px; }
.w-trusted__title { font-size: clamp(26px, 2.6vw, 34px); }
.w-logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.w-logos__cell { height: 92px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; border-radius: 18px; min-width: 0; transition: box-shadow .2s ease; }
.w-logos__cell:hover { box-shadow: 0 12px 30px rgba(28, 58, 106, .1); }
.w-logos__cell img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; } /* logotypy w naturalnych kolorach, jak w projekcie (decyzja użytkownika 15.09.2026) */
.w-logos__cell a { font-size: 13px; font-weight: 800; color: var(--w-navy); text-decoration: none; text-align: center; }
@media (max-width: 1000px) { .w-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .w-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .w-logos__cell { height: 76px; padding: 12px; } }
@media (max-width: 400px) { .w-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- FAQ (sekcja na stronie głównej i akordeon na stronie FAQ) ----------- */

.w-faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.w-faq__intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.w-faq__intro .w-kicker { margin-bottom: 0 !important; }
.w-faq__intro .w-section__lead { margin: 0 !important; max-width: 40ch; }
.w-faq__list { display: flex; flex-direction: column; gap: 10px; }
.w-faq__item, .w-prose .wp-block-details { background: var(--w-surface); border-radius: 18px; padding: 0 22px; margin: 0 !important; }
.w-prose .wp-block-details + .wp-block-details { margin-top: 10px !important; }
.w-faq__item > summary, .w-prose .wp-block-details > summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 17px; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.w-faq__item > summary::-webkit-details-marker, .w-prose .wp-block-details > summary::-webkit-details-marker { display: none; }
.w-faq__item > summary::after, .w-prose .wp-block-details > summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--w-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 400; font-size: 20px; flex: none; transition: transform .2s ease; }
.w-faq__item[open] > summary::after, .w-prose .wp-block-details[open] > summary::after { transform: rotate(45deg); }
.w-faq__item > summary:hover, .w-prose .wp-block-details > summary:hover { color: var(--w-navy); }
.w-faq__item > :not(summary), .w-prose .wp-block-details > :not(summary) { margin: 0 !important; padding: 0 46px 20px 0; color: var(--w-muted); font-size: 15px; }

/* --- kontakt -------------------------------------------------------------- */

.w-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: stretch; }
.w-contact__info { display: flex; flex-direction: column; gap: 28px; }
.w-contact__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; font-size: 15px; margin: 0; }
.w-contact__details dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--w-sky); margin-bottom: 6px; font-weight: 600; }
.w-contact__details dd { margin: 0; }
.w-contact__details dd a { color: #fff; text-decoration: none; font-weight: 600; }
.w-contact__details dd a.w-link { text-decoration: underline; }
.w-contact__details dd a:hover { color: var(--w-sky); }
.w-contact__map { background: #fff; border-radius: var(--w-r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; color: var(--w-text); }
.w-map { flex: 1; min-height: 300px; position: relative; background: var(--w-surface-2); border-radius: var(--w-r-md); overflow: hidden; }
.w-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; font-size: 13px; color: var(--w-muted); }
.w-map__placeholder p { margin: 0; }
.w-map--loaded .w-map__placeholder { display: none; }
.w-contact__mapnote { font-size: 13px; color: var(--w-muted); padding: 0 8px 6px; }
.w-section--navy .w-contact__mapnote a { color: var(--w-navy); }

/* --- stopka --------------------------------------------------------------- */

.w-footer { background: var(--w-navy-deep); color: var(--w-footer-text); font-size: 13px; }
.w-footer__inner { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.w-footer a { color: var(--w-footer-text); text-decoration: none; }
.w-footer a:hover { color: #fff; text-decoration: underline; }
.w-footer__name { color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.w-footer__address { font-style: normal; line-height: 1.6; }
.w-footer__address a { display: inline-block; padding: 5px 0; } /* cel dotyku min. 24 px wysokości */
.w-footer__ids { margin-top: 8px; }
.w-footer__heading { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.w-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.w-footer__cookies { font: inherit; color: var(--w-footer-text); background: none; border: 0; padding: 0; cursor: pointer; }
.w-footer__cookies:hover { color: #fff; text-decoration: underline; }
.w-footer__meta { display: flex; flex-direction: column; gap: 6px; }
.w-footer a.w-footer__lang { color: var(--w-sky); }
.w-footer__note { color: #8fa3c2; margin-top: 6px; }

/* --- listy wpisów (archiwum, wyszukiwanie) ------------------------------- */

.w-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.w-cards > li { display: block; }
.w-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--w-surface); border-radius: var(--w-r-lg); height: 100%; transition: box-shadow .2s ease; }
.w-card:hover { box-shadow: var(--w-shadow-card); }
.w-card__img { background: var(--w-surface-2); margin: 0; overflow: hidden; border-radius: var(--w-r-md); }
.w-card__title { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; }
.w-card__title a { color: var(--w-text); text-decoration: none; }
.w-card__title a:hover { color: var(--w-navy); }
.w-card__excerpt { font-size: 14px; color: var(--w-muted); }
.w-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.w-pagination { padding-top: 32px; font-weight: 600; font-size: 14px; }
.w-pagination a { text-decoration: none; }
.w-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; }
.w-pagination a.page-numbers:hover { background: var(--w-surface); }
.w-pagination .page-numbers.current { background: var(--w-navy); color: #fff; }
.w-search { max-width: 420px; margin: 0 !important; }
.w-search .wp-block-search__inside-wrapper { gap: 8px; }
.w-search .wp-block-search__input { font: inherit; font-size: 14px; padding: 10px 16px; border: 1.5px solid var(--w-line-2); background: #fff; color: var(--w-text); border-radius: 999px; }
.w-search .wp-block-search__input:focus-visible { border-color: var(--w-blue); outline-offset: 0; }
.w-search .wp-block-search__button { font: inherit; font-weight: 600; font-size: 14px; background: var(--w-navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; margin: 0; }
.w-search .wp-block-search__button:hover { background: var(--w-blue); }

/* --- ścieżka nawigacyjna -------------------------------------------------- */

.w-crumbs { font-size: 13px; color: var(--w-muted); }
.w-crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.w-crumbs__item + .w-crumbs__item::before { content: "›"; padding: 0 8px; color: var(--w-line-2); }
.w-crumbs a { color: var(--w-muted); text-decoration: none; }
.w-crumbs a:hover { color: var(--w-navy); text-decoration: underline; }
.w-crumbs [aria-current] { color: var(--w-text); font-weight: 600; }
.w-section__head .w-crumbs { flex-basis: 100%; margin-bottom: -16px; }

/* --- pojedynczy wpis i strony ------------------------------------------- */

/* selektory z „.w-section >”, żeby przebić ogólne odstępy sekcji (.w-section > .w-container) */
.w-section > .w-single__head, .w-section > .w-page__head, .w-section > .w-service-page__head { padding-top: 56px; padding-bottom: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.w-single__head .w-page-title { max-width: 26ch; }
.w-single__img { margin: 12px 0 0; background: var(--w-surface-2); border-radius: var(--w-r-lg); overflow: hidden; width: 100%; }
.w-section > .w-single__body, .w-section > .w-page__body, .w-section > .w-service-page__body { padding-top: 28px; padding-bottom: 80px; }
.w-page__head .w-kicker { margin-bottom: 0 !important; }
.w-service-page .w-page-title { max-width: 20ch; }
.w-section > .w-service-page__body { padding-bottom: 64px; }
@media (max-width: 700px) { .w-section > .w-single__head, .w-section > .w-page__head, .w-section > .w-service-page__head { padding-top: 40px; } .w-section > .w-single__body, .w-section > .w-page__body, .w-section > .w-service-page__body { padding-bottom: 56px; } }

.w-prose { font-size: 17px; line-height: 1.65; color: var(--w-text); }
.w-prose > * { margin-block: 0 1em; }
/* układ „constrained” WordPressa centruje treść – u nas wszystko do lewej */
.w-prose.is-layout-constrained > *, .w-prose.is-layout-constrained > .alignwide { margin-left: 0 !important; margin-right: auto !important; max-width: 760px; }
/* portret/zdjęcie otwierające stronę (np. Kancelaria) – opływane przez tekst */
.w-prose > .wp-block-image:first-child { float: right; width: 320px; max-width: 42%; margin: 0 0 24px 40px; }
.w-prose > .wp-block-image:first-child img { width: 100%; height: auto; border-radius: var(--w-r-lg); }
.w-prose::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .w-prose > .wp-block-image:first-child { float: none; width: 100%; max-width: 100%; margin: 0 0 24px; } }
.w-prose h2 { font-size: 28px; margin-top: 1.6em !important; }
.w-prose h3 { font-size: 22px; margin-top: 1.4em !important; }
.w-prose h4 { font-size: 18px; margin-top: 1.2em !important; }
.w-prose ul, .w-prose ol { padding-left: 1.3em; }
.w-prose li { margin-bottom: .35em; }
.w-prose blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--w-surface); border-radius: 18px; color: var(--w-muted); font-size: 17px; }
.w-prose blockquote p:last-child { margin-bottom: 0; }
.w-prose img { margin: 1.4em 0; border-radius: var(--w-r-md); }
.w-prose figure { margin: 1.4em 0; }
.w-prose figure img { margin: 0; }
.w-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.w-prose th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--w-muted); padding: 8px; border-bottom: 2px solid var(--w-line-2); }
.w-prose td { padding: 8px; border-bottom: 1px solid var(--w-line); vertical-align: top; }
.w-prose a { font-weight: 600; }
.w-prose .w-section__lead { font-size: 18px; max-width: 60ch; color: var(--w-muted); }

.w-single__foot { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--w-line); display: flex; flex-direction: column; gap: 20px; }
.w-tags { font-size: 13px; color: var(--w-muted); }
.w-tags a { text-decoration: none; font-weight: 600; }
.w-single__note { font-size: 13px; color: var(--w-muted); }
.w-single__cta { font-size: 16px; background: var(--w-surface); border-radius: 18px; padding: 18px 22px; }
.w-single__cta a { font-weight: 800; }
.w-postnav { font-size: 14px; font-weight: 600; gap: 16px; }
.w-postnav a { text-decoration: none; color: var(--w-text); }
.w-postnav a:hover { color: var(--w-navy); }
.w-postnav .post-navigation-link-previous, .w-postnav .post-navigation-link-next { max-width: 45%; }

/* --- baner cookies -------------------------------------------------------- */

.w-consent { position: fixed; inset: auto 16px 16px 16px; z-index: 100; max-width: 560px; background: #fff; color: var(--w-text); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: 0 24px 60px rgba(28, 58, 106, .22); padding: 22px; font-size: 14px; display: none; flex-direction: column; gap: 14px; }
.w-consent[data-open] { display: flex; }
.w-consent__title { font-weight: 800; font-size: 16px; }
.w-consent p { margin: 0; color: var(--w-muted); }
.w-consent__opts { display: grid; gap: 8px; }
.w-consent__opts label { display: flex; gap: 10px; align-items: flex-start; }
.w-consent__opts input { margin-top: 3px; accent-color: var(--w-navy); }
.w-consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.w-consent__btn { font: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border: 1.5px solid var(--w-line-2); border-radius: 999px; background: transparent; color: var(--w-navy); cursor: pointer; }
.w-consent__btn:hover { background: var(--w-surface); }
.w-consent__btn--primary { background: var(--w-navy); color: #fff; border-color: var(--w-navy); }
.w-consent__btn--primary:hover { background: var(--w-blue); border-color: var(--w-blue); }
.w-consent a { font-weight: 600; }
@media (max-width: 480px) { .w-consent { inset: auto 8px 8px 8px; max-width: none; } }

/* --- wersja angielska ---------------------------------------------------- */

.w-en .w-kicker { letter-spacing: .1em; }

/* --- edytor bloków ------------------------------------------------------- */

.editor-styles-wrapper .w-container { max-width: none; }
