/* ==========================================================================
   Strony w edytorze bloków (Gutenberg)

   Ładowane na stronach, które nie są zbudowane w Elementorze, oraz w edytorze
   bloków. Wspólne elementy (nagłówek, stopka, formularz) są w style.css.
   ========================================================================== */

.us-eyebrow {
	margin: 0 0 22px;
	color: var(--us-gold);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.us-eyebrow--line::after {
	content: '';
	display: block;
	width: 56px;
	height: 2px;
	margin-top: 14px;
	background: var(--us-gold);
}

.us-lead {
	font-size: 18px;
	line-height: 1.7;
}

/* ==========================================================================
   Kontener sekcji
   ========================================================================== */

.us-section.us-section > *,
.us-stats.us-stats > *,
.us-hero .wp-block-cover__inner-container > *,
.us-page-hero .wp-block-cover__inner-container > * {
	width: var(--us-wide);
	max-width: var(--us-wide);
	margin-inline: auto;
}

.us-prose.us-prose > * {
	max-width: min(820px, 100% - 2 * var(--us-gutter));
}

.entry-content > .alignfull:first-child {
	margin-top: 0;
}

.entry-content > .alignfull {
	margin-block: 0;
}

/* ==========================================================================
   HERO – strona główna
   ========================================================================== */

.us-hero.wp-block-cover {
	position: relative;
	align-items: center;
	padding: calc(var(--us-header-h) + 40px) 0 72px;
	overflow: hidden;
	background: var(--us-bg);
}

.us-hero .wp-block-cover__image-background,
.us-page-hero .wp-block-cover__image-background {
	object-position: 70% 50%;
	animation: us-zoom 18s ease-out both;
}

.us-hero .wp-block-cover__background,
.us-page-hero .wp-block-cover__background {
	opacity: 1 !important;
	background:
		linear-gradient(90deg, rgba(13, 11, 8, 0.94) 0%, rgba(13, 11, 8, 0.78) 34%, rgba(13, 11, 8, 0.25) 62%, rgba(13, 11, 8, 0.15) 100%),
		linear-gradient(0deg, rgba(13, 11, 8, 0.95) 0%, rgba(13, 11, 8, 0) 32%),
		linear-gradient(180deg, rgba(13, 11, 8, 0.75) 0%, rgba(13, 11, 8, 0) 26%) !important;
}

/* Złote smugi światła w narożnikach */
.us-hero::before,
.us-hero::after,
.us-section--cta::before {
	content: '';
	position: absolute;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(var(--us-streak-angle, 125deg),
		transparent 49.4%,
		rgba(245, 184, 0, 0.25) 49.7%,
		rgba(255, 214, 102, 1) 50%,
		rgba(245, 184, 0, 0.25) 50.3%,
		transparent 50.6%);
	filter: drop-shadow(0 0 10px rgba(245, 184, 0, 0.85)) drop-shadow(0 0 30px rgba(245, 184, 0, 0.45));
}

.us-hero::before {
	--us-streak-angle: 118deg;
	left: -18%;
	top: 18%;
	width: 36%;
	height: 90%;
	opacity: .7;
	mask: linear-gradient(180deg, transparent 10%, #000 45%, #000 60%, transparent 92%);
	-webkit-mask: linear-gradient(180deg, transparent 10%, #000 45%, #000 60%, transparent 92%);
}

.us-hero::after {
	--us-streak-angle: 120deg;
	right: -12%;
	bottom: -36%;
	width: 46%;
	height: 80%;
	mask: linear-gradient(90deg, transparent 15%, #000 55%);
	-webkit-mask: linear-gradient(90deg, transparent 15%, #000 55%);
}

.us-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
	color: var(--us-text);
}

.us-hero__grid.wp-block-columns {
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	margin: 0 auto;
}

.us-hero__main > * {
	animation: us-rise .9s var(--us-ease) both;
}

.us-hero__main > *:nth-child(2) { animation-delay: .08s; }
.us-hero__main > *:nth-child(3) { animation-delay: .16s; }
.us-hero__main > *:nth-child(4) { animation-delay: .24s; }
.us-hero__main > *:nth-child(5) { animation-delay: .34s; }

/* Podstrony – napisy w banerze wchodzą jak na stronie głównej */
.us-page-hero .wp-block-cover__inner-container > * {
	animation: us-rise .9s var(--us-ease) both;
}

.us-page-hero .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: .1s; }
.us-page-hero .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: .2s; }

.us-hero__aside {
	align-self: center;
	animation: us-rise 1s var(--us-ease) .4s both;
}

.us-hero .us-eyebrow {
	margin-bottom: 30px;
	font-size: 15px;
}

.us-hero__title.wp-block-heading,
.us-page-hero__title.wp-block-heading,
.us-glass__title.wp-block-heading {
	color: var(--us-white);
}

.us-hero__title.wp-block-heading,
.us-page-hero__title.wp-block-heading {
	margin: 0;
	font-size: clamp(2.6rem, 5.4vw, 4.7rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.us-hero__title em,
.us-page-hero__title em {
	display: block;
	color: var(--us-gold);
	font-style: normal;
}

.us-hero__title::after {
	content: '';
	display: block;
	width: 180px;
	height: 2px;
	margin-top: 36px;
	background: linear-gradient(90deg, var(--us-gold) 0 42%, rgba(255, 255, 255, 0.22) 42% 100%);
}

.us-hero__lead {
	max-width: 560px;
	margin: 32px 0 44px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 18px;
	line-height: 1.65;
}

.us-hero__buttons {
	gap: 14px;
}

/* Trzy wyróżniki pod hero */
.us-features.wp-block-group {
	flex-wrap: nowrap;
	gap: 0;
	margin-top: clamp(48px, 8vh, 96px);
}

.us-feature.wp-block-group {
	flex: 1 1 0;
	min-width: 0;
	gap: 16px;
	padding: 4px 28px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.us-feature:first-child {
	padding-left: 0;
	border-left: 0;
}

.us-feature h3 {
	margin: 4px 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.us-feature p {
	margin: 0;
	max-width: 190px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13.5px;
	line-height: 1.6;
}

/* Szklana karta */
.us-glass.wp-block-group {
	position: relative;
	padding: clamp(28px, 3vw, 40px);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 14px;
	background: linear-gradient(160deg, rgba(40, 35, 27, 0.62), rgba(14, 12, 9, 0.72));
	backdrop-filter: blur(16px) saturate(120%);
	-webkit-backdrop-filter: blur(16px) saturate(120%);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.us-glass .us-eyebrow {
	font-size: 14px;
}

.us-glass__title.wp-block-heading {
	margin: 34px 0 26px;
	font-size: clamp(1.7rem, 2.3vw, 2.15rem);
	font-weight: 400;
	line-height: 1.22;
}

.us-glass p:not(.us-eyebrow):not(.us-link-arrow) {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	line-height: 1.75;
}

.us-glass .us-link-arrow {
	margin-top: 30px;
}

/* ==========================================================================
   Baner podstron
   ========================================================================== */

.us-page-hero.wp-block-cover {
	position: relative;
	align-items: flex-end;
	padding: calc(var(--us-header-h) + 60px) 0 clamp(56px, 8vw, 96px);
	overflow: hidden;
	background: var(--us-bg);
}

.us-page-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.us-page-hero .wp-block-cover__image-background {
	filter: sepia(0.55) saturate(0.85) brightness(0.72) contrast(1.05);
}

.us-page-hero__title em {
	margin-top: 8px;
	font-size: 0.5em;
	letter-spacing: -0.01em;
}

.us-page-hero::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(245, 184, 0, 0.7), transparent);
}

/* ==========================================================================
   Sekcje
   ========================================================================== */

.us-section.wp-block-group {
	position: relative;
	padding: clamp(80px, 10vw, 140px) 0;
	background: var(--us-bg);
}

.us-section--alt.wp-block-group {
	background:
		radial-gradient(60% 60% at 100% 0%, rgba(245, 184, 0, 0.06), transparent 60%),
		var(--us-surface);
	border-block: 1px solid var(--us-border);
}

.us-section h2.wp-block-heading {
	margin: 0 0 24px;
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	font-weight: 400;
	line-height: 1.12;
}

.us-section h2 em {
	font-style: normal;
	color: var(--us-gold);
}

.us-section__head.wp-block-group {
	margin-bottom: clamp(44px, 6vw, 72px);
}

.us-section__head > * {
	max-width: 760px;
}

/* Siatki – stała liczba kolumn zamiast auto-fill (bez pustej kolumny) */
.us-cards.wp-block-group,
.us-stats__grid.wp-block-group {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.us-steps.wp-block-group {
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

@media (max-width: 1099px) {
	.us-cards.wp-block-group,
	.us-stats__grid.wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.us-cards.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Karty usług */
.us-cards.wp-block-group {
	gap: 24px;
}

.us-card.wp-block-group {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--us-border);
	border-radius: var(--us-radius);
	background: var(--us-card);
	transition: transform .35s var(--us-ease), border-color .3s, box-shadow .35s;
}

.us-card:hover {
	transform: translateY(-6px);
	border-color: rgba(245, 184, 0, 0.45);
	box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 184, 0, 0.15);
}

.us-card__img.wp-block-image {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.us-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85);
	transition: transform .6s var(--us-ease), filter .4s;
}

.us-card:hover .us-card__img img {
	transform: scale(1.06);
	filter: saturate(1);
}

.us-card__body.wp-block-group {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 28px 28px 30px;
}

.us-card__body h3 {
	margin: 0 0 12px;
	font-size: 21px;
	font-weight: 600;
}

.us-card__body p {
	font-size: 15px;
	line-height: 1.7;
}

.us-card__body .us-link-arrow {
	margin-top: auto;
	padding-top: 14px;
}

.us-card__num {
	margin: 0 0 14px;
	color: var(--us-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.us-card__num::after {
	content: '';
	display: inline-block;
	width: 28px;
	height: 1px;
	margin-left: 12px;
	vertical-align: middle;
	background: currentColor;
}

/* Układ zdjęcie + tekst */
.us-split.wp-block-columns {
	align-items: center;
	gap: clamp(40px, 6vw, 96px);
	margin: 0 auto;
}

.us-split__media.wp-block-column {
	position: relative;
	align-self: center;
}

.us-photo.wp-block-image {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--us-radius);
	box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
}

.us-photo img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

.us-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: inherit;
	pointer-events: none;
}

.us-badge.wp-block-group {
	position: absolute;
	right: clamp(-8px, -2vw, -28px);
	bottom: -28px;
	padding: 22px 28px;
	border-radius: 10px;
	background: var(--us-gold);
	color: var(--us-bg);
	box-shadow: 0 24px 40px -16px rgba(245, 184, 0, 0.5);
}

.us-badge p {
	margin: 0;
	color: var(--us-bg);
}

.us-badge__num {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.us-badge__label {
	margin-top: 6px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.us-split__content p {
	font-size: 16.5px;
	line-height: 1.75;
}

.us-split__content .wp-block-buttons {
	margin-top: 36px;
}

/* Listy */
.us-checklist.wp-block-list {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.us-chips.wp-block-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

/* Pasek liczb */
.us-stats.wp-block-group {
	position: relative;
	padding: clamp(48px, 6vw, 72px) 0;
	background: var(--us-gold);
	overflow: hidden;
}

.us-stats::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(120deg, transparent 0 120px, rgba(0, 0, 0, 0.04) 120px 121px);
	pointer-events: none;
}

.us-stats__grid.wp-block-group {
	position: relative;
	gap: 24px;
}

.us-stat {
	padding-left: 24px;
	border-left: 1px solid rgba(13, 11, 8, 0.2);
}

.us-stat p {
	margin: 0;
	color: var(--us-bg);
}

.us-stat__num {
	font-size: clamp(2rem, 3.4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.us-stat__label {
	margin-top: 6px !important;
	font-size: 14px;
	font-weight: 600;
	opacity: .8;
}

/* Kroki / wartości */
.us-steps.wp-block-group {
	gap: 24px;
}

.us-step.wp-block-group {
	position: relative;
	padding: 36px 32px;
	border: 1px solid var(--us-border);
	border-radius: var(--us-radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
	transition: border-color .3s, transform .35s var(--us-ease);
}

.us-step:hover {
	transform: translateY(-4px);
	border-color: rgba(245, 184, 0, 0.4);
}

.us-step::before {
	content: '';
	position: absolute;
	left: 32px;
	top: -1px;
	width: 48px;
	height: 2px;
	background: var(--us-gold);
}

.us-step__num {
	margin: 0 0 22px;
	color: transparent;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	-webkit-text-stroke: 1px var(--us-gold);
}

.us-step .us-icon {
	margin-bottom: 22px;
}

.us-step h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
}

.us-step p:not(.us-step__num) {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
}

/* Usługi na stronie Oferta */
.us-service.wp-block-group {
	padding: clamp(40px, 5vw, 64px) 0;
	border-top: 1px solid var(--us-border);
	scroll-margin-top: 40px;
}

.us-service:last-child {
	padding-bottom: 0;
}

.us-service .us-card__num {
	font-size: 14px;
}

/* CTA */
.us-section--cta.wp-block-group {
	overflow: hidden;
	background:
		radial-gradient(50% 80% at 50% 120%, rgba(245, 184, 0, 0.2), transparent 70%),
		var(--us-bg);
}

.us-section--cta::before {
	--us-streak-angle: 120deg;
	right: -10%;
	top: -30%;
	width: 40%;
	height: 90%;
	opacity: .55;
	mask: linear-gradient(270deg, transparent 10%, #000 60%);
	-webkit-mask: linear-gradient(270deg, transparent 10%, #000 60%);
}

.us-cta.wp-block-group {
	position: relative;
	z-index: 2;
	padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
	border: 1px solid rgba(245, 184, 0, 0.25);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(40, 35, 27, 0.55), rgba(14, 12, 9, 0.85));
	text-align: center;
}

.us-cta h2.wp-block-heading {
	max-width: 760px;
	margin-inline: auto;
}

.us-cta p:not(.us-eyebrow) {
	max-width: 620px;
	margin-inline: auto;
	font-size: 17px;
}

.us-cta__buttons.wp-block-buttons {
	justify-content: center;
	gap: 14px;
	margin-top: 36px;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.us-contact.wp-block-columns {
	gap: clamp(40px, 6vw, 80px);
	margin: 0 auto;
}

.us-contact-item.wp-block-group {
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--us-border);
}

.us-contact-item .us-icon {
	width: 52px;
	height: 52px;
}

.us-contact-item p {
	margin: 0;
}

.us-contact-item__label {
	color: var(--us-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.us-contact-item__value {
	margin-top: 4px !important;
	color: var(--us-white);
	font-size: 17px;
	line-height: 1.55;
}

.us-contact-item__value a {
	color: var(--us-white);
	text-decoration: none;
	word-break: break-word;
}

.us-contact-item__value a:hover {
	color: var(--us-gold);
}

.us-form-box h3 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 500;
}

.us-map.wp-block-group {
	line-height: 0;
	border-top: 1px solid var(--us-border);
}

/* Polityka prywatności */
.us-prose h2.wp-block-heading {
	margin: 2.2em 0 .6em;
	font-size: 1.45rem;
	font-weight: 600;
}

.us-prose h2:first-child {
	margin-top: 0;
}

.us-prose p {
	font-size: 16px;
	line-height: 1.8;
}

.us-prose a {
	color: var(--us-gold);
}

/* ==========================================================================
   Responsywność
   ========================================================================== */

@media (max-width: 1199px) {
	.us-feature.wp-block-group {
		padding-inline: 20px;
	}
}

@media (max-width: 999px) {
	.us-hero.wp-block-cover {
		min-height: 0 !important;
		padding-bottom: 56px;
	}

	.us-hero .wp-block-cover__background {
		background:
			linear-gradient(180deg, rgba(13, 11, 8, 0.8) 0%, rgba(13, 11, 8, 0.7) 50%, rgba(13, 11, 8, 0.95) 100%) !important;
	}

	.us-hero__grid.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.us-hero__grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.us-features.wp-block-group {
		flex-wrap: wrap;
		gap: 22px;
	}

	.us-feature.wp-block-group,
	.us-feature:first-child {
		flex: 1 1 260px;
		padding: 0;
		border: 0;
	}

	.us-feature p {
		max-width: none;
	}

	.us-split--reverse.wp-block-columns {
		flex-direction: column-reverse;
	}

	.us-badge.wp-block-group {
		right: 16px;
	}

	.us-hero::before {
		display: none;
	}
}

@media (max-width: 781px) {
	.us-split--reverse.wp-block-columns {
		flex-direction: column-reverse;
	}

	.us-hero__buttons .wp-block-button,
	.us-cta__buttons .wp-block-button {
		width: 100%;
	}

	.us-hero__buttons .wp-block-button__link,
	.us-cta__buttons .wp-block-button__link {
		width: 100%;
	}

	.us-stat {
		padding-left: 16px;
	}
}

