/**
 * Kancelaria Wyoming – style front-endu i edytora (add_editor_style).
 * Kolory, fonty i odstępy pochodzą z tokenów theme.json (--wp--preset--*).
 * Mobile-first: bazowe style = telefon, rozszerzenia w @media (min-width).
 */

:root {
	--w-navy: var(--wp--preset--color--navy, #252b3d);
	--w-navy-2: var(--wp--preset--color--navy-2, #2b3443);
	--w-gold: var(--wp--preset--color--gold, #c9b28e);
	--w-gold-dark: var(--wp--preset--color--gold-dark, #8a6f45);
	--w-slate: var(--wp--preset--color--slate, #46505a);
	--w-muted: var(--wp--preset--color--muted, #6b7480);
	--w-light: var(--wp--preset--color--light, #f0f0ee);
	--w-white: var(--wp--preset--color--white, #fff);
	--w-heading: var(--wp--preset--font-family--heading, Georgia, serif);
	--w-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--w-border: #e6e4df;
	--w-shadow: 0 10px 30px rgba(37, 43, 61, 0.06);
	--w-shadow-strong: 0 18px 40px rgba(37, 43, 61, 0.14);
	--w-section: var(--wp--preset--spacing--70, clamp(3.5rem, 8vw, 6.5rem));
	--w-gutter: clamp(1rem, 4vw, 2rem);
	--w-inset: 0px;
	--w-header-h: 76px;
}

@media (min-width: 1024px) {
	:root {
		--w-inset: clamp(1.5rem, 4.4vw, 4rem);
	}
}

/* ---------- Baza ---------- */

body {
	font-family: var(--w-body);
	color: var(--w-slate);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.main-title {
	font-family: var(--w-heading);
	font-weight: 400;
}

.entry-content p a:not(.wp-element-button),
.entry-content li a,
.child-footer p a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
.wp-element-button:focus-visible {
	outline: 2px solid var(--w-gold-dark);
	outline-offset: 3px;
}

.has-navy-background-color a:focus-visible,
.has-navy-background-color .wp-element-button:focus-visible,
.wp-block-cover a:focus-visible,
.site-info a:focus-visible,
.child-landing .site-header a:focus-visible {
	outline-color: var(--w-gold);
}

.skip-link.screen-reader-text:focus {
	background: var(--w-white);
	color: var(--w-navy);
}

img {
	height: auto;
}

/* ---------- Przyciski ---------- */

.wp-element-button,
.wp-block-button__link {
	letter-spacing: 0.02em;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	border: 1px solid var(--w-gold);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
	background-color: var(--w-navy);
	border-color: var(--w-navy);
	color: var(--w-white);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--w-navy);
	color: var(--w-navy);
	padding: 0.9rem 1.75rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--w-navy);
	color: var(--w-white);
}

.has-navy-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--w-white);
	border-color: var(--w-white);
	color: var(--w-navy);
}

.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--w-gold);
	color: var(--w-white);
}

.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--w-gold);
	color: var(--w-navy);
}

/* ---------- Nagłówek (GeneratePress) ---------- */

.site-header {
	background: var(--w-white);
	border-bottom: 1px solid var(--w-border);
}

.site-header .inside-header {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-branding-container {
	gap: 0.75rem;
}

/* Logo pionowe (sygnet + nazwa) – wysokość steruje rozmiarem.
   Selektor mocniejszy od szerokości logo z Customizera GP (.site-header .header-image). */
.site-header .site-logo .header-image {
	width: auto;
	height: 48px;
}

@media (min-width: 769px) {
	.site-header .site-logo .header-image {
		height: 64px;
	}
}

/* Nazwa jest w logo – tytuł tekstowy zostaje tylko dla czytników ekranu. */
.site-branding {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.main-title {
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.1;
}

.main-title a,
.main-title a:hover {
	color: var(--w-navy);
}

.main-navigation .main-nav ul li a {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 56px;
	padding-left: 0.85rem;
	padding-right: 0.85rem;
}

/* Pozycja menu z klasą „menu-cta” = przycisk w nagłówku. */
.main-navigation .main-nav ul li.menu-cta > a {
	background: var(--w-gold);
	color: var(--w-navy);
	line-height: 1.2;
	padding: 0.8rem 1.25rem;
	margin-left: 0.75rem;
}

.main-navigation .main-nav ul li.menu-cta > a:hover,
.main-navigation .main-nav ul li.menu-cta > a:focus-visible {
	background: var(--w-navy);
	color: var(--w-white);
}

@media (min-width: 769px) {
	.main-navigation .main-nav ul li.menu-cta {
		display: flex;
		align-items: center;
	}
}

.main-navigation .menu-toggle {
	color: var(--w-navy);
	font-weight: 500;
}

/* Strony z sekcją hero: przezroczysty nagłówek na zdjęciu (tylko desktop). */
@media (min-width: 769px) {
	.child-landing .site-header {
		position: absolute;
		inset: 0 0 auto 0;
		z-index: 50;
		background: transparent;
		border-bottom-color: rgba(255, 255, 255, 0.15);
	}

	/* Jasna wersja logo na zdjęciu hero. */
	.child-landing .site-logo a {
		display: block;
		background: url("../images/logo-kancelaria-wyoming-jasne.svg") center / contain no-repeat;
	}

	.child-landing .site-logo img {
		opacity: 0;
	}

	.child-landing .main-title a,
	.child-landing .main-navigation .main-nav > ul > li:not(.menu-cta) > a {
		color: var(--w-white);
	}

	.child-landing .main-navigation .main-nav > ul > li:not(.menu-cta) > a:hover,
	.child-landing .main-navigation .main-nav > ul > li.current-menu-item:not(.menu-cta) > a {
		color: var(--w-gold);
	}

	.child-landing .main-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle {
		color: inherit;
	}

	.child-landing .w-hero__cover {
		padding-top: calc(var(--w-header-h) + 2rem);
	}
}

/* Pełna szerokość treści na stronach z sekcjami. */
.child-landing .site-content,
.child-landing .inside-article {
	padding: 0;
}

.child-landing .entry-content {
	margin-top: 0;
}

.child-landing .site-main {
	margin: 0;
}

/*
 * GeneratePress przy „full-width-content" zeruje marginesy i max-width bloków .alignwide
 * (.full-width-content .entry-content .alignwide). Przywracamy wyśrodkowany kontener 1200 px.
 */
.full-width-content .entry-content .alignwide:not(.alignfull),
.editor-styles-wrapper .alignwide:not(.alignfull) {
	width: auto;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
}

/*
 * Siatki core (layout grid) używają auto-fill, co przy 3–4 elementach zostawia puste kolumny.
 * auto-fit rozciąga elementy na całą szerokość kontenera.
 */
.w-steps__grid.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) !important;
}

.w-testimonials__grid.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)) !important;
}

.w-team__grid.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)) !important;
}

.w-services__grid.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)) !important;
}

/* ---------- Wspólne elementy sekcji ---------- */

.w-section {
	padding: var(--w-section) var(--w-gutter);
}

.w-section-flush {
	padding: 0;
}

.entry-content > .alignfull.w-section,
.entry-content > .alignfull.w-section-flush {
	margin-top: 0;
	margin-bottom: 0;
}

.w-inset {
	margin-left: var(--w-inset) !important;
	margin-right: var(--w-inset) !important;
	width: auto;
	max-width: none;
}

.w-eyebrow {
	font-family: var(--w-body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--w-gold-dark);
	margin-bottom: 0.75rem;
}

.has-navy-background-color .w-eyebrow,
.wp-block-cover .w-eyebrow {
	color: var(--w-gold);
}

.w-lead {
	font-size: 1.125rem;
	max-width: 36rem;
}

.w-more a {
	font-size: var(--wp--preset--font-size--s);
	font-weight: 500;
	color: var(--w-gold-dark);
	text-decoration: none !important;
}

.w-more a::after {
	content: " →";
}

.w-more a:hover {
	color: var(--w-navy);
}

.w-section-head {
	margin-bottom: var(--wp--preset--spacing--60);
}

.w-section-head > * {
	max-width: 40rem;
	margin-left: auto !important;
	margin-right: auto !important;
}

.w-heading-row {
	gap: 1rem;
	margin-bottom: 1rem;
}

.w-heading-row h2 {
	margin-bottom: 0;
}

.w-heading-row .w-eyebrow {
	margin-bottom: 0.25rem;
}

.w-icon img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.w-icon--lg img {
	width: 52px;
	height: 52px;
}

.w-icon,
.w-ornament,
.w-quote-mark,
.w-avatar {
	margin: 0;
	flex: 0 0 auto;
	width: max-content;
	max-width: 100%;
}

.w-ornament.aligncenter,
.w-cta__mark.aligncenter {
	width: max-content;
	margin-left: auto !important;
	margin-right: auto !important;
}

.w-ornament img {
	width: 48px;
	height: 48px;
}

.w-ornament.aligncenter {
	margin-bottom: 1rem;
}

.w-photo img,
.w-member__photo img {
	width: 100%;
	object-fit: cover;
	display: block;
}

.w-photo--portrait img {
	aspect-ratio: 4 / 5;
}

.has-navy-background-color h1,
.has-navy-background-color h2,
.has-navy-background-color h3,
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3 {
	color: var(--w-white);
}

.has-navy-background-color a:not(.wp-element-button),
.wp-block-cover a:not(.wp-element-button) {
	color: var(--w-gold);
}

.has-navy-background-color h3 a,
.wp-block-cover h2 a {
	color: var(--w-white);
	text-decoration: none;
}

.has-navy-background-color h3 a:hover,
.wp-block-cover h2 a:hover {
	color: var(--w-gold);
}

/* Karty */
.w-card {
	background: var(--w-white);
	border: 1px solid var(--w-border);
	box-shadow: var(--w-shadow);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.w-card > * + * {
	margin-top: 0.75rem;
}

.w-card h2,
.w-card h3 {
	margin-bottom: 0;
}

.w-card p {
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-muted);
	margin-bottom: 0;
}

.w-card--dark {
	border-color: var(--w-navy);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.w-card--dark p {
	color: rgba(255, 255, 255, 0.78);
}

.w-card--dark .wp-block-buttons {
	margin-top: 1.5rem;
}

/* ---------- 1. Hero ---------- */

.w-hero {
	padding: 0;
	position: relative;
}

.w-hero__cover {
	min-height: clamp(34rem, 80vh, 46rem);
	padding: 5rem var(--w-gutter) 6rem;
	align-items: center;
}

.full-width-content .entry-content .w-hero__content.alignwide,
.editor-styles-wrapper .w-hero__content.alignwide {
	max-width: 48rem;
	text-align: center;
}

.w-hero__content .w-lead {
	margin-left: auto;
	margin-right: auto;
}

.w-hero__content .wp-block-buttons {
	justify-content: center;
}

.w-hero h1 {
	margin-bottom: 1.25rem;
}

.w-hero .w-lead {
	color: rgba(255, 255, 255, 0.86);
	margin-bottom: 2rem;
}

.w-bar {
	position: relative;
	z-index: 2;
	background: var(--w-light);
	box-shadow: var(--w-shadow-strong);
	margin-top: -3rem !important;
	gap: 0 !important;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)) !important;
}

.w-bar__item {
	gap: 0.9rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--w-border);
}

.w-bar__item .w-eyebrow {
	margin: 0;
	font-size: 0.6875rem;
	color: var(--w-muted);
}

.w-bar__title {
	margin: 0;
	font-family: var(--w-heading);
	font-size: 1.125rem;
	line-height: 1.3;
}

.w-bar__title a {
	color: var(--w-navy);
	text-decoration: none !important;
}

.w-bar__title a:hover {
	color: var(--w-gold-dark);
}

@media (min-width: 640px) {
	.w-bar__item {
		border-bottom: 0;
		border-right: 1px solid var(--w-border);
	}
}

.full-width-content .entry-content .w-bar.alignwide,
.editor-styles-wrapper .w-bar.alignwide {
	max-width: min(1200px, calc(100% - 2 * var(--w-gutter)));
}

/* ---------- 2. O kancelarii ---------- */

.w-about__cols {
	gap: clamp(2rem, 4vw, 3.5rem);
}

.w-about__intro p:not(.w-eyebrow):not(.w-more),
.w-about__aside p {
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-muted);
}

.w-about__media .wp-block-image {
	margin: 0;
}

.w-signature__name {
	font-family: var(--w-heading);
	color: var(--w-navy);
	font-size: 1.125rem;
	margin: 1.5rem 0 0;
}

.w-about__aside .w-signature__role {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
	margin: 0;
}

.w-signature__mark img {
	width: 56px;
	margin-top: 1rem;
}

@media (min-width: 782px) {
	.w-about__cols > .w-about__intro {
		flex-basis: 34% !important;
	}

	.w-about__cols > .w-about__media {
		flex-basis: 30% !important;
	}

	.w-about__cols > .w-about__aside {
		flex-basis: 36% !important;
		align-self: center;
	}
}

/* ---------- 3. Jak działamy ---------- */

.w-steps {
	padding-top: 0;
}

.w-steps__grid {
	gap: clamp(1rem, 2vw, 1.5rem) !important;
}

/* ---------- 4. Usługi ---------- */

.w-services {
	padding: 0;
}

.w-services__cols {
	gap: 0 !important;
	margin: 0;
}

.w-services__media {
	display: flex;
}

.w-services__cover {
	width: 100%;
	min-height: 22rem;
	padding: 2rem;
}

.w-services__content {
	padding: var(--w-section) var(--w-gutter);
}

.w-services .w-intro {
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--wp--preset--font-size--s);
	margin-bottom: 2.5rem;
}

.w-services__grid {
	gap: 2rem 2.5rem !important;
}

.w-service {
	gap: 1rem;
}

.w-service h3 {
	font-size: 1.1875rem;
	margin-bottom: 0.35rem;
}

.w-service p {
	font-size: var(--wp--preset--font-size--s);
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
}

.w-quote {
	border: 0;
	margin: 0;
	padding: 0;
	max-width: 24rem;
}

.w-quote p {
	font-family: var(--w-heading);
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--w-white);
}

.w-quote p::before {
	content: "„";
}

.w-quote p::after {
	content: "”";
}

.w-quote cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--w-gold);
}

@media (min-width: 782px) {
	.w-services__cols > .w-services__media {
		flex-basis: 38% !important;
	}

	.w-services__cols > .w-services__content {
		flex-basis: 62% !important;
		padding-left: clamp(2rem, 5vw, 4.5rem);
		padding-right: clamp(2rem, 5vw, 4.5rem);
	}

	.w-services__cover {
		min-height: 100%;
		padding: 3rem;
	}
}

/* ---------- 5. Galeria ---------- */

.w-strip.wp-block-gallery {
	gap: 0 !important;
	--wp--style--unstable-gallery-gap: 0px;
}

.w-strip.wp-block-gallery.has-nested-images figure.wp-block-image {
	width: 50% !important;
	flex-grow: 1;
	aspect-ratio: 4 / 5;
}

.w-strip.wp-block-gallery.has-nested-images figure.wp-block-image img {
	height: 100%;
	transition: transform 0.4s ease, filter 0.4s ease;
	filter: grayscale(0.15);
}

.w-strip.wp-block-gallery figure.wp-block-image {
	overflow: hidden;
}

.w-strip.wp-block-gallery figure.wp-block-image:hover img {
	transform: scale(1.04);
	filter: none;
}

@media (min-width: 782px) {
	.w-strip.wp-block-gallery.has-nested-images figure.wp-block-image {
		width: 20% !important;
		flex-basis: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.w-strip.wp-block-gallery figure.wp-block-image img {
		transition: none;
	}
}

/* ---------- 6. Pytania / opinie ---------- */

.w-testimonials {
	padding-top: 0;
}

.w-testimonials__grid {
	gap: clamp(2rem, 4vw, 3rem) !important;
}

.w-testimonials__intro p:not(.w-eyebrow):not(.w-more) {
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-muted);
}

.w-testimonial .w-quote-mark img {
	width: 40px;
	height: 40px;
}

.w-testimonial__text {
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-muted);
	margin: 1rem 0 1.5rem;
}

.w-testimonial__text strong {
	display: block;
	font-family: var(--w-heading);
	font-weight: 400;
	font-size: 1.1875rem;
	color: var(--w-navy);
	margin-bottom: 0.4rem;
}

.w-person {
	gap: 0.85rem;
}

.w-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--w-light);
}

.w-avatar {
	margin: 0;
}

.w-person__name {
	margin: 0;
	font-family: var(--w-heading);
	color: var(--w-navy);
	line-height: 1.3;
}

.w-person__role {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--w-muted);
}

/* ---------- 7. CTA ---------- */

.w-cta__cover {
	min-height: 26rem;
	padding: var(--w-section) var(--w-gutter);
}

.w-cta__mark img {
	width: 64px;
}

.w-cta h2 {
	font-size: var(--wp--preset--font-size--xl);
	margin: 0.25rem 0 0.75rem;
}

.w-cta p:not(.w-eyebrow) {
	color: rgba(255, 255, 255, 0.82);
}

.w-cta .wp-block-buttons {
	margin-top: 1.5rem;
}

/* ---------- 8. Zespół ---------- */

.w-team {
	position: relative;
	isolation: isolate;
}

.w-team::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: var(--w-inset);
	right: var(--w-inset);
	bottom: 0;
	height: 45%;
	background: var(--wp--preset--gradient--gold-band, linear-gradient(180deg, #b9a683 0%, #252b3d 100%));
}

.w-team__grid {
	gap: 0 !important;
	box-shadow: var(--w-shadow-strong);
}

.w-member {
	background: var(--w-white);
	padding-bottom: 1.25rem;
	border-right: 1px solid var(--w-border);
}

.w-member__photo {
	margin: 0 0 1rem;
}

.w-member__photo img {
	aspect-ratio: 4 / 5;
}

.w-member h3 {
	font-size: 1.125rem;
	margin-bottom: 0.2rem;
}

.w-member__role {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--w-muted);
	margin: 0;
}

/* ---------- 9. Kontakt ---------- */

.w-contact {
	margin-top: 0;
}

.w-contact__cols {
	gap: clamp(2.5rem, 6vw, 5rem);
}

.w-contact__item {
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.w-contact__item:first-child {
	padding-top: 0;
}

.w-contact__item h3 {
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

.w-contact__item p {
	margin: 0;
	font-size: var(--wp--preset--font-size--s);
	color: rgba(255, 255, 255, 0.78);
}

.w-contact__form > p:not(.w-eyebrow) {
	color: rgba(255, 255, 255, 0.78);
}

.w-checklist {
	list-style: none;
	margin: 1.5rem 0 2rem;
	padding: 0;
}

.w-checklist li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.6rem;
}

.w-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.9rem;
	height: 0.45rem;
	border-left: 2px solid var(--w-gold);
	border-bottom: 2px solid var(--w-gold);
	transform: rotate(-45deg);
}

@media (min-width: 782px) {
	.w-contact__cols > .w-contact__info {
		flex-basis: 40% !important;
	}

	.w-contact__cols > .w-contact__form {
		flex-basis: 60% !important;
	}
}

/* ---------- FAQ ---------- */

.w-faq {
	max-width: 50rem;
	margin: 0 auto;
}

.w-faq__item {
	border-bottom: 1px solid var(--w-border);
	padding: 0;
}

.w-faq__item summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 1.25rem 2.5rem 1.25rem 0;
	font-family: var(--w-heading);
	font-size: 1.1875rem;
	color: var(--w-navy);
}

.w-faq__item summary::-webkit-details-marker {
	display: none;
}

.w-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--w-body);
	font-size: 1.5rem;
	color: var(--w-gold-dark);
}

.w-faq__item[open] summary::after {
	content: "−";
}

.w-faq__item > :not(summary) {
	padding-bottom: 1.25rem;
	color: var(--w-muted);
}

/* ---------- Blog ---------- */

.w-posts .wp-block-post-title {
	font-size: 1.25rem;
	margin: 0.25rem 0 0.5rem;
}

.w-posts .wp-block-post-title a {
	color: var(--w-navy);
	text-decoration: none;
}

.w-posts .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-muted);
}

.w-posts .wp-block-post-date {
	margin-top: 1rem;
}

/* ---------- Stopka ---------- */

.site-footer .site-info {
	background: var(--w-navy);
	color: rgba(255, 255, 255, 0.78);
}

.site-footer .inside-site-info {
	flex-direction: column;
	align-items: stretch;
	padding: 0 var(--w-gutter);
}

.child-footer {
	padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	text-align: left;
}

.w-footer__cols {
	gap: 2rem;
}

.w-footer__title {
	font-size: 1.125rem;
	color: var(--w-white);
	margin-bottom: 1rem;
}

.w-footer p {
	font-size: var(--wp--preset--font-size--s);
	color: rgba(255, 255, 255, 0.78);
}

.w-footer a:not(.wp-element-button) {
	color: var(--w-gold);
}

.w-footer a:not(.wp-element-button):hover {
	color: var(--w-white);
}

.w-footer__logo img {
	width: 56px;
}

.w-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--s);
}

.w-footer__links li {
	margin-bottom: 0.5rem;
}

.w-footer__links a {
	text-decoration: none !important;
}

.site-info .copyright-bar {
	padding: 1.25rem 0;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.03em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	justify-content: space-between;
	align-items: center;
}

.child-footer-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.child-footer-menu__list a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.child-footer-menu__list a:hover {
	color: var(--w-gold);
}

/* ---------- Edytor (WYSIWYG) ---------- */

.editor-styles-wrapper .w-inset {
	margin-left: var(--w-inset) !important;
	margin-right: var(--w-inset) !important;
}

/* ---------- Podstrona oferty ---------- */

.w-hero--sub .w-hero__cover {
	min-height: clamp(22rem, 52vh, 30rem);
	padding-bottom: 4rem;
}

.w-hero--sub h1 {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.w-offer__cols {
	gap: clamp(2rem, 5vw, 4.5rem);
}

.w-article {
	max-width: 46rem;
}

.w-article > h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	margin: 2.75rem 0 1rem;
}

.w-article > h2:first-child {
	margin-top: 0;
}

.w-article > h3 {
	margin: 2rem 0 0.75rem;
}

.w-article > p,
.w-article li {
	color: var(--w-slate);
}

.w-article strong {
	color: var(--w-navy);
	font-weight: 500;
}

.w-offer__aside > * + * {
	margin-top: 1.5rem;
}

.w-aside-card__phone {
	margin: 0.5rem 0 0;
}

.w-aside-card__phone a {
	font-family: var(--w-heading);
	font-size: 1.5rem;
	color: var(--w-gold) !important;
	text-decoration: none !important;
}

.w-aside-links__title {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.w-aside-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.w-aside-links__list li {
	margin: 0;
	border-bottom: 1px solid var(--w-border);
}

.w-aside-links__list li:last-child {
	border-bottom: 0;
}

.w-aside-links__list a {
	display: block;
	padding: 0.6rem 0;
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-navy);
	text-decoration: none !important;
}

.w-aside-links__list a:hover,
.w-aside-links__list a[aria-current="page"] {
	color: var(--w-gold-dark);
}

.w-aside-links__list a::after {
	content: " →";
	color: var(--w-gold-dark);
}

@media (min-width: 782px) {
	.w-offer__cols > .w-offer__main {
		flex-basis: 66% !important;
	}

	.w-offer__cols > .w-offer__aside {
		flex-basis: 34% !important;
	}

	.w-offer__aside {
		position: sticky;
		top: 2rem;
		align-self: flex-start;
	}
}

/* ---------- Wpis blogowy ---------- */

/* Na stronach z hero tytuł, meta i nawigację wpisu zastępują bloki w treści. */
.child-landing .entry-header,
.child-landing .featured-image,
.child-landing .post-image,
.child-landing footer.entry-meta,
.child-landing .post-navigation,
.child-landing .comments-area {
	display: none;
}

.w-post-meta {
	gap: 0.25rem 1.25rem;
	margin-bottom: 0.75rem;
}

.w-post-meta .w-eyebrow {
	margin: 0;
}

.w-post-meta .w-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.w-article__intro {
	font-size: 1.1875rem;
	line-height: 1.65;
	color: var(--w-navy) !important;
}

.w-article > ul,
.w-article > ol {
	padding-left: 1.25rem;
	margin-bottom: 1.5rem;
}

.w-article > ul li,
.w-article > ol li {
	margin-bottom: 0.5rem;
}

.w-article > ul li::marker,
.w-article > ol li::marker {
	color: var(--w-gold-dark);
}

.w-summary {
	background: var(--w-light);
	border-left: 3px solid var(--w-gold);
	padding: 1.5rem 1.75rem;
	margin: 2.5rem 0;
}

.w-inline-cta {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	margin: 2.5rem 0;
	border-left: 3px solid var(--w-gold);
}

.w-inline-cta > * {
	margin-top: 0;
}

.w-inline-cta .w-eyebrow {
	margin-bottom: 0.5rem;
}

.w-inline-cta__title {
	font-family: var(--w-heading);
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	line-height: 1.3;
	color: var(--w-white);
	margin-bottom: 0.75rem;
}

.w-inline-cta p:not(.w-eyebrow):not(.w-inline-cta__title) {
	color: rgba(255, 255, 255, 0.8) !important;
}

.w-inline-cta .wp-block-buttons {
	margin-top: 1.25rem;
	gap: 0.75rem;
}

.w-article .w-faq {
	max-width: none;
	margin: 0 0 1rem;
}

.w-article .w-faq__item summary {
	font-size: 1.125rem;
}

/* ---------- Tabela źródeł zdjęć ---------- */

.w-credits table {
	font-size: var(--wp--preset--font-size--s);
	border-collapse: collapse;
}

.w-credits th,
.w-credits td {
	border: 1px solid var(--w-border);
	padding: 0.6rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.w-credits thead th {
	background: var(--w-light);
	color: var(--w-navy);
	font-weight: 500;
}

/* ---------- Nagłówek na tabletach i małych laptopach ---------- */

@media (min-width: 769px) and (max-width: 1199px) {
	.main-navigation .main-nav ul li a {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		font-size: 0.875rem;
	}

	.main-navigation .main-nav ul li.menu-cta > a {
		padding: 0.7rem 0.9rem;
		margin-left: 0.25rem;
	}

	.main-title {
		font-size: 1rem;
	}
}

@media (min-width: 769px) and (max-width: 1023px) {
	.main-title {
		display: none;
	}
}

/* ---------- Autor (EEAT) ---------- */

.w-author {
	gap: 1.25rem;
	margin: 3rem 0 0;
	padding: 1.5rem 1.75rem;
	background: var(--w-light);
	border-left: 3px solid var(--w-gold);
}

.w-author__photo {
	margin: 0;
	flex: 0 0 auto;
	width: max-content;
}

.w-author__photo img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	background: var(--w-white);
}

.w-author .w-eyebrow {
	margin: 0 0 0.25rem;
}

.w-author__name {
	margin: 0 0 0.35rem;
	font-family: var(--w-heading);
	font-size: 1.1875rem;
	color: var(--w-navy) !important;
}

.w-author__bio {
	margin: 0;
	font-size: var(--wp--preset--font-size--s);
	color: var(--w-muted) !important;
}

/* ---------- Lista wszystkich wpisów ---------- */

.w-posts--all .wp-block-post-template {
	gap: 2.5rem 2rem;
}

.w-posts--all .wp-block-post {
	display: flex;
	flex-direction: column;
}

.w-posts--all .wp-block-post-featured-image {
	margin-bottom: 1rem;
}

.w-posts--all .wp-block-post-terms {
	margin: 0 0 0.35rem;
}

.w-posts--all .wp-block-post-terms a {
	color: var(--w-gold-dark);
	text-decoration: none;
}

.w-posts--all .wp-block-post-title {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.w-posts--all .wp-block-post-title a {
	color: var(--w-navy);
	text-decoration: none;
}

.w-posts--all .wp-block-post-title a:hover {
	color: var(--w-gold-dark);
}

.w-posts--all .wp-block-post-excerpt__more-link {
	font-size: var(--wp--preset--font-size--s);
	font-weight: 500;
	color: var(--w-gold-dark);
	text-decoration: none;
}

.w-posts--all .wp-block-query-pagination {
	margin-top: 3rem;
	gap: 0.5rem;
	font-weight: 500;
}

.w-posts--all .wp-block-query-pagination a,
.w-posts--all .wp-block-query-pagination .page-numbers {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--w-border);
	color: var(--w-navy);
	text-decoration: none;
}

.w-posts--all .wp-block-query-pagination .page-numbers.current {
	background: var(--w-navy);
	border-color: var(--w-navy);
	color: var(--w-white);
}

/* ---------- Treść: zdjęcia, filmy, tabele, szeroki tekst ---------- */

.w-article .wp-block-image,
.w-article .wp-block-embed {
	margin: 2rem 0;
}

.w-article .wp-block-image img {
	max-width: 100%;
	height: auto;
}

.w-article .wp-block-table {
	overflow-x: auto;
	margin: 2rem 0;
}

.w-article .wp-block-table table {
	font-size: var(--wp--preset--font-size--s);
	border-collapse: collapse;
	min-width: 36rem;
}

.w-article .wp-block-table th,
.w-article .wp-block-table td {
	border: 1px solid var(--w-border);
	padding: 0.6rem 0.75rem;
	vertical-align: top;
}

.w-article .wp-block-table thead th {
	background: var(--w-light);
	color: var(--w-navy);
	font-weight: 500;
}

.w-article--wide {
	max-width: 52rem;
	margin: 0 auto;
}

.w-article .wp-block-buttons {
	margin: 1.5rem 0;
}

/* Linki w danych kontaktowych – min. 24 px obszaru klikania (WCAG 2.5.8). */
.w-contact__item p a {
	display: inline-block;
	padding-block: 2px;
}

/* Rozwijane menu (np. „Oferta") na desktopie: szerokość według najdłuższej pozycji, bez zawijania. */
@media (min-width: 769px) {
	.main-navigation .main-nav ul ul {
		width: max-content;
		min-width: 240px;
	}

	.main-navigation .main-nav ul ul li a {
		white-space: nowrap;
	}
}

/* ---------- Formularz kontaktowy (Contact Form 7, strona /contact/) ---------- */

.w-form {
	margin: 0 0 2.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--w-light);
	border: 1px solid var(--w-border);
}

.w-form .wpcf7-form > p,
.w-form__field {
	margin: 0 0 1rem;
}

.w-form__grid {
	display: grid;
	gap: 0 1rem;
}

@media (min-width: 640px) {
	.w-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.w-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--w-navy);
}

.w-form .wpcf7-form-control-wrap {
	display: block;
}

.w-form input[type="text"],
.w-form input[type="email"],
.w-form input[type="tel"],
.w-form select,
.w-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	font: inherit;
	color: var(--w-navy);
	background: var(--w-white);
	border: 1px solid #b9b5ac;
	border-radius: 0;
}

.w-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.w-form input:focus-visible,
.w-form select:focus-visible,
.w-form textarea:focus-visible {
	outline: 2px solid var(--w-gold-dark);
	outline-offset: 1px;
	border-color: var(--w-gold-dark);
}

.w-form__consent {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--w-slate);
}

.w-form__consent .wpcf7-list-item {
	margin: 0;
}

.w-form__consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: inherit;
	color: inherit;
}

.w-form__consent input[type="checkbox"] {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	accent-color: var(--w-navy);
}

.w-form .wpcf7-submit {
	cursor: pointer;
	border: 0;
}

.w-form .wpcf7-spinner {
	vertical-align: middle;
}

.w-form .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	font-size: 0.875rem;
	color: #a3261f;
}

.w-form .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-width: 1px;
	font-size: 0.9375rem;
}

.w-form .cf-turnstile {
	margin: 0 0 1rem;
}

/* ---------- Strona podziękowania /dziekujemy/ ---------- */

/* Znak potwierdzenia nad nagłówkiem baneru. */
.w-hero--thanks .w-hero__content::before {
	content: "";
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1.5rem;
	border: 2px solid var(--w-gold);
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b28e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 55% no-repeat;
}

.w-thanks__intro {
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
	text-align: center;
}

.w-thanks__intro h2 {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.w-thanks .w-card h3 {
	font-size: 1.1875rem;
}

.w-thanks--read .w-card {
	background: var(--w-white);
}

.w-thanks__link {
	display: flex;
	flex-direction: column;
}

.w-thanks__link .w-more {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* Na stronie podziękowania bez adresu e-mail kancelarii w stopce. */
body:has(.w-hero--thanks) .w-footer a[href^="mailto:"] {
	display: none;
}

/* ---------- Baner zgód (inc/consent.php) ---------- */

.w-consent {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 9999;
	padding: 0 var(--w-gutter) var(--w-gutter);
	pointer-events: none;
}

.w-consent[hidden] {
	display: none;
}

.w-consent__box {
	max-width: 46rem;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	background: var(--w-navy);
	color: rgba(255, 255, 255, 0.85);
	box-shadow: var(--w-shadow-strong);
	pointer-events: auto;
}

.w-consent__title {
	margin: 0 0 0.4rem;
	font-family: var(--w-heading);
	font-size: 1.25rem;
	color: var(--w-white);
}

.w-consent__text {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.55;
}

.w-consent__text a {
	color: var(--w-gold);
}

.w-consent__opts {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

.w-consent__opts[hidden] {
	display: none;
}

.w-consent__opts label {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	color: var(--w-white);
}

.w-consent__opts input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--w-gold);
}

.w-consent__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.w-consent__btn {
	padding: 0.65rem 1.1rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--w-white);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 0;
	cursor: pointer;
}

.w-consent__btn:hover,
.w-consent__btn:focus-visible {
	border-color: var(--w-gold);
	color: var(--w-gold);
}

.w-consent__btn--primary {
	background: var(--w-gold);
	border-color: var(--w-gold);
	color: var(--w-navy);
}

.w-consent__btn--primary:hover,
.w-consent__btn--primary:focus-visible {
	background: var(--w-white);
	border-color: var(--w-white);
	color: var(--w-navy);
}

.w-consent__btn--link {
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.w-consent__btn[hidden] {
	display: none;
}

@media (max-width: 639px) {
	.w-consent__btn {
		flex: 1 1 100%;
	}
}

/* ---------- Okno powitalne (inc/welcome.php) ---------- */

.w-welcome {
	position: fixed;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 9998;
	width: min(22rem, calc(100vw - 32px));
	padding: 1.25rem 1.25rem 1.35rem;
	background: var(--w-white);
	border-top: 3px solid var(--w-gold);
	box-shadow: var(--w-shadow-strong);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.w-welcome[hidden] {
	display: none;
}

.w-welcome.is-in {
	opacity: 1;
	transform: none;
}

.w-welcome__close {
	position: absolute;
	top: 0.35rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--w-muted);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.w-welcome__close:hover,
.w-welcome__close:focus-visible {
	color: var(--w-navy);
}

.w-welcome__eyebrow {
	margin: 0 0 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--w-gold-dark);
}

.w-welcome__title {
	margin: 0 0 0.5rem;
	padding-right: 1.5rem;
	font-family: var(--w-heading);
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--w-navy);
}

.w-welcome__text {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--w-slate);
}

.w-welcome__btn {
	display: inline-block;
	text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.w-welcome {
		transition: none;
	}
}

/* Podpis wykonawcy w pasku copyright. */
.w-credit {
	margin-left: 0.75rem;
	opacity: 0.8;
}

/* ---------- Zastrzeżenie prawne w stopce ---------- */

.w-disclaimer {
	font-size: 0.8125rem;
	line-height: 1.6;
	opacity: 0.85;
}
