/* Strona główna (bloki esw-* w treści strony). Wspólne elementy: pages.css, tokeny: rebrand.css. */

.esw-page--home {
	max-width: none;
	padding: 0;
}

.esw-page--home > section,
.esw-page--home > .wp-block-group__inner-container > section {
	scroll-margin-top: 84px;
}

.esw-section,
.esw-hero {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(48px, 8vw, 96px) 16px;
}

.esw-section__head {
	display: grid;
	gap: 10px;
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 44px);
	text-align: center;
}

.esw-section__head .esw-kicker {
	justify-self: center;
	margin-bottom: 0 !important;
}

.esw-section__head .esw-section__title {
	margin-bottom: 0 !important;
}

.esw-section__lead {
	color: var(--esw-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.esw-section__lead a {
	color: var(--esw-primary);
	font-weight: 600;
}

/* ---------- Hero ---------- */
.esw-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding-top: clamp(40px, 7vw, 88px);
}

.esw-hero__body {
	display: grid;
	gap: 18px;
	justify-items: start;
}

.esw-hero__body .esw-kicker {
	margin-bottom: 0 !important;
}

.esw-hero__title {
	font-size: clamp(2.5rem, 6.4vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.035em !important;
}

.esw-hero__title span {
	background: linear-gradient(transparent 62%, var(--esw-highlight) 62% 92%, transparent 92%);
}

.esw-hero__lead {
	color: var(--esw-ink);
	font-size: clamp(1.125rem, 2vw, 1.3125rem);
	font-weight: 600;
	line-height: 1.4;
}

.esw-hero__text {
	max-width: 58ch;
	color: var(--esw-ink-soft);
	line-height: 1.65;
}

.esw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.esw-btn--ghost .wp-block-button__link {
	border: 1.5px solid var(--esw-line);
	background: var(--esw-surface);
	color: var(--esw-ink);
}

.esw-btn--ghost .wp-block-button__link:hover {
	border-color: var(--esw-primary);
	background: var(--esw-surface);
	color: var(--esw-primary);
}

.esw-hero__contact {
	color: var(--esw-ink-soft);
	font-size: .9375rem;
}

.esw-hero__contact a {
	color: var(--esw-ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.esw-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.esw-stat {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 22px;
	background: var(--esw-surface);
	border: 1px solid var(--esw-line);
	border-radius: var(--esw-radius);
	box-shadow: var(--esw-shadow);
}

.esw-stat:first-child {
	background: var(--esw-ink);
	border-color: var(--esw-ink);
}

.esw-stat:first-child .esw-stat__num {
	color: var(--esw-highlight);
}

.esw-stat:first-child .esw-stat__label {
	color: #C9D3CC;
}

.esw-stat__num {
	color: var(--esw-ink);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.esw-stat__label {
	color: var(--esw-ink-soft);
	font-size: .9375rem;
	line-height: 1.4;
}

.esw-stat--badge img {
	max-width: 160px;
}

/* ---------- Cennik ---------- */
.esw-pick.esw-section {
	text-align: center;
}

/* ---------- Kroki ---------- */
.esw-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	counter-reset: step;
}

.esw-step {
	position: relative;
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 28px;
	background: var(--esw-surface);
	border: 1px solid var(--esw-line);
	border-radius: var(--esw-radius);
	box-shadow: var(--esw-shadow);
}

.esw-step__num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--esw-highlight);
	color: var(--esw-ink);
	font-size: 1.25rem;
	font-weight: 800;
}

.esw-step__title {
	font-size: 1.25rem;
	line-height: 1.25;
}

.esw-step__text {
	color: var(--esw-ink-soft);
	line-height: 1.6;
}

/* ---------- Logotypy ---------- */
.esw-logos.esw-section {
	padding-top: 0;
	padding-bottom: clamp(32px, 5vw, 56px);
}

.esw-logos__title {
	margin-bottom: 20px !important;
	color: var(--esw-ink-soft);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}

.esw-logos__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px 48px;
}

.esw-logos__item img {
	width: auto;
	max-width: 150px;
	max-height: 56px;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s ease-out, opacity .2s ease-out;
}

.esw-logos__item img:hover {
	filter: none;
	opacity: 1;
}

/* ---------- Zalety ---------- */
.esw-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.esw-feature {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 24px;
	background: var(--esw-surface);
	border: 1px solid var(--esw-line);
	border-radius: var(--esw-radius);
}

.esw-feature__icon img {
	width: 52px;
	height: 52px;
	border-radius: 12px;
}

.esw-feature__title {
	font-size: 1.125rem;
	line-height: 1.25;
}

.esw-feature__text {
	color: var(--esw-ink-soft);
	font-size: .9375rem;
	line-height: 1.6;
}

/* ---------- Opinie ---------- */
.esw-reviews {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.esw-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px;
	background: var(--esw-surface);
	border: 1px solid var(--esw-line);
	border-radius: var(--esw-radius);
	box-shadow: var(--esw-shadow);
}

.esw-review__stars {
	color: #F5A623;
	letter-spacing: 2px;
}

.esw-review__quote {
	flex: 1;
	color: var(--esw-ink);
	font-size: 1.0625rem;
	line-height: 1.55;
}

.esw-review__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.esw-review__avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.esw-review__who {
	color: var(--esw-ink-soft);
	font-size: .875rem;
	line-height: 1.35;
}

.esw-review__who strong {
	color: var(--esw-ink);
}

/* ---------- O nas ---------- */
.esw-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: center;
}

.esw-about__body {
	display: grid;
	gap: 18px;
	justify-items: start;
}

.esw-about__body .esw-section__head {
	margin: 0;
	text-align: left;
}

.esw-about__body .esw-section__head .esw-kicker {
	justify-self: start;
}

.esw-about__item {
	display: grid;
	gap: 4px;
}

.esw-about__q {
	font-size: 1.125rem;
}

.esw-about__a {
	color: var(--esw-ink-soft);
	line-height: 1.6;
}

.esw-about__a b,
.esw-about__a strong {
	color: var(--esw-ink);
	font-weight: 600;
}

.esw-about__cert img {
	border-radius: var(--esw-radius);
	box-shadow: var(--esw-shadow-hover);
}

/* ---------- Współpraca ---------- */
.esw-coop {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: start;
}

.esw-coop__body {
	display: grid;
	gap: 18px;
	justify-items: start;
}

.esw-coop__body .esw-section__head {
	margin: 0;
	text-align: left;
}

.esw-coop__body .esw-section__head .esw-kicker {
	justify-self: start;
}

.esw-check {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.esw-check li {
	position: relative;
	padding-left: 34px;
	color: var(--esw-ink-soft);
	line-height: 1.6;
}

.esw-check li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--esw-highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1F14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.esw-check b,
.esw-check strong {
	color: var(--esw-ink);
}

.esw-coop__form {
	padding: clamp(22px, 4vw, 32px);
	background: var(--esw-surface);
	border: 1px solid var(--esw-line);
	border-radius: var(--esw-radius);
	box-shadow: var(--esw-shadow);
}

.esw-coop__form-title {
	margin-bottom: 14px !important;
	font-size: 1.25rem;
}

/* ---------- FAQ ---------- */
.esw-faq {
	display: grid;
	gap: 10px;
	max-width: 820px;
	margin: 0 auto;
}

.esw-faq__item {
	background: var(--esw-surface);
	border: 1px solid var(--esw-line);
	border-radius: var(--esw-radius-sm);
}

.esw-faq__item summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	color: var(--esw-ink);
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

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

.esw-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--esw-primary);
	border-bottom: 2px solid var(--esw-primary);
	transform: rotate(45deg);
	transition: transform .2s ease-out;
}

.esw-faq__item[open] summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.esw-faq__item p {
	padding: 0 20px 16px;
	color: var(--esw-ink-soft);
	line-height: 1.65;
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
	.esw-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.esw-hero,
	.esw-about,
	.esw-coop,
	.esw-steps,
	.esw-reviews {
		grid-template-columns: 1fr;
	}

	.esw-about__cert {
		order: -1;
		max-width: 520px;
	}
}

@media (max-width: 520px) {
	.esw-features {
		grid-template-columns: 1fr;
	}

	.esw-hero__actions,
	.esw-hero__actions .wp-block-button,
	.esw-hero__actions .wp-block-button__link {
		width: 100%;
	}

	.esw-stat {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.esw-logos__item img,
	.esw-faq__item summary::after {
		transition: none;
	}
}

/* Białe logo – w szarości byłoby niewidoczne na jasnym tle */
.esw-logos__item img[src*="white-lion"] {
	filter: brightness(0);
	opacity: .55;
}

/* ---------- Program partnerski i elementy wspólne ---------- */
.esw-center {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

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

.esw-hero__title--md {
	font-size: clamp(2.1rem, 4.8vw, 3.5rem);
	line-height: 1.05;
}

.esw-hero__body .esw-check {
	margin: 2px 0;
}

.esw-partner-hero__media {
	position: relative;
}

.esw-partner-hero__img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--esw-radius) + 6px);
	box-shadow: var(--esw-shadow-hover);
}

.esw-partner-hero__chip {
	position: absolute;
	bottom: -22px;
	left: -22px;
	max-width: 220px;
	background: var(--esw-ink);
	border-color: var(--esw-ink);
}

.esw-partner-hero__chip .esw-stat__num {
	color: var(--esw-highlight);
}

.esw-partner-hero__chip .esw-stat__label {
	color: #C9D3CC;
}

.esw-section--tight {
	padding-top: 0;
	padding-bottom: 0;
}

.esw-statbar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.esw-steps--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.esw-features--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esw-feature--list {
	padding: 28px;
	box-shadow: var(--esw-shadow);
}

.esw-feature--list .esw-check {
	gap: 10px;
}

.esw-feature--list .esw-check li {
	font-size: .9375rem;
}

.esw-logos__yours {
	display: grid;
	place-items: center;
	width: 150px;
	height: 56px;
	border: 1.5px dashed #B9C6B4;
	border-radius: var(--esw-radius-sm);
	color: var(--esw-ink-soft);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.esw-review--badge {
	align-items: flex-start;
	justify-content: center;
	background: #E4F2E7;
	box-shadow: none;
}

.esw-review__quote--sm {
	flex: 0;
	color: var(--esw-ink-soft);
	font-size: .9375rem;
}

.esw-coop__contact {
	padding: 18px 20px;
	border-left: 3px solid var(--esw-highlight);
	background: var(--esw-surface);
	border-radius: 0 var(--esw-radius-sm) var(--esw-radius-sm) 0;
	line-height: 1.8;
}

.esw-coop__contact a {
	color: var(--esw-ink);
	font-weight: 700;
	text-decoration: none;
}

.esw-coop .esw-coop__form .forminator-ui.forminator-custom-form {
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.esw-demo > *:not(summary) {
	margin: 0 20px 16px !important;
}

@media (max-width: 1024px) {
	.esw-statbar,
	.esw-steps--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.esw-features--2 {
		grid-template-columns: 1fr;
	}

	.esw-partner-hero__chip {
		left: 12px;
		bottom: -18px;
	}
}

@media (max-width: 520px) {
	.esw-statbar,
	.esw-steps--4 {
		grid-template-columns: 1fr;
	}
}

/* Wyróżniony pas (ciemne tło) */
.esw-band.esw-section {
	max-width: none;
	background: var(--esw-ink);
}

.esw-band__body {
	display: grid;
	gap: 20px;
	max-width: 820px;
	margin: 0 auto;
}

.esw-band .esw-section__head {
	margin-bottom: 0;
}

.esw-band .esw-section__title {
	color: #fff !important;
}

.esw-band .esw-check {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
}

.esw-band .esw-check li {
	color: #DDE5DF;
}

@media (max-width: 700px) {
	.esw-band .esw-check {
		grid-template-columns: 1fr;
	}
}

.esw-page--audit .esw-about__cert img {
	max-height: 560px;
	width: 100%;
	object-fit: cover;
	object-position: top;
}

.esw-band + .esw-logos.esw-section {
	padding-top: clamp(40px, 6vw, 64px);
}
