/*
 * ECK Polska — styles from the Figma design (file 58yFNz7S3TGduHgBvhSlNr: Style Guide, Desktop 1440, Mobile 320).
 * Breakpoints: phone < 768 px, tablet 768–1099 px (mobile header), desktop ≥ 1100 px.
 */

:root {
	--eck-navy: #004c91;
	--eck-yellow: #fbc504;
	--eck-yellow-85: rgba(251, 197, 4, 0.85);
	--eck-blue-n1: #d9e7f3;
	--eck-grey-n1: #f1f3f3;
	--eck-grey-3: #9d9d9c;
	--eck-grey-5: #3c3c3b;
	--eck-black: #000;
	--eck-white: #fff;
	--eck-white-80: rgba(255, 255, 255, 0.8);
	--eck-white-90: rgba(255, 255, 255, 0.9);
	--eck-grad-blue-1: linear-gradient(180deg, #f1f3f3 0%, #d9e6f3 100%);
	--eck-grad-yellow-2: linear-gradient(180deg, #fbc504 36.108%, #ffefb7 100%);
	--eck-font: Roboto, Arial, sans-serif;
	--eck-gutter: 20px;
	--eck-max: 1320px;
	--eck-radius: 20px;
	--eck-ease: 150ms ease-out;
}

@media (min-width: 768px) {
	:root { --eck-gutter: 40px; }
}

@media (min-width: 1100px) {
	:root { --eck-gutter: 60px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--eck-grey-n1);
	color: var(--eck-black);
	font-family: var(--eck-font);
	font-size: 1.125rem;
	line-height: 1.5;
	letter-spacing: -0.02em;
	font-size-adjust: from-font;
}

img,
svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-position: from-font; }

button { font: inherit; letter-spacing: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; }

:focus-visible { outline: 3px solid var(--eck-navy); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.eck-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 15px;
	background: var(--eck-white);
	transform: translateY(-200%);
}

.eck-skip-link:focus { transform: none; }

.eck-main:focus { outline: none; }

.eck-container {
	width: 100%;
	max-width: calc(var(--eck-max) + 2 * var(--eck-gutter));
	margin-inline: auto;
	padding-inline: var(--eck-gutter);
}

.eck-icon { flex: none; }

/* Whole card clickable through its main link. */
.eck-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

@media (max-width: 767px) {
	.eck-hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
	.eck-show-mobile { display: none !important; }
}

/* ---------- Buttons (Style Guide: BUTTON 18 / 16, BUTTON DO FORM) ---------- */

.eck-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	border: 1px solid var(--eck-black);
	border-radius: 49px;
	color: var(--eck-black);
	font-size: 1.125rem;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--eck-ease), border-color var(--eck-ease);
}

.eck-btn:hover,
.eck-btn:focus-visible { background: var(--eck-white); border-color: var(--eck-white); }

.eck-btn--small { font-size: 1rem; }

.eck-form-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 65px;
	padding: 20px;
	border-radius: 10px;
	background: var(--eck-yellow-85);
	color: var(--eck-black);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--eck-ease);
}

.eck-form-btn:hover,
.eck-form-btn:focus-visible { background: var(--eck-yellow); }

/* ---------- Header ---------- */

.eck-header { position: relative; z-index: 50; background: var(--eck-white); }

.eck-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	padding-inline: 20px;
}

.eck-header__logo img { width: 180px; height: auto; }

.eck-header__burger {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 32px;
	background: var(--eck-navy);
	cursor: pointer;
}

.eck-header__icon-close,
.eck-header__burger[aria-expanded="true"] .eck-header__icon-open { display: none; }

.eck-header__burger[aria-expanded="true"] .eck-header__icon-close { display: block; }

.eck-search {
	position: relative;
	display: flex;
	align-items: center;
	height: 40px;
	border-radius: 42px;
	background: var(--eck-grey-n1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.eck-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 0 0 15px;
	border: 0;
	background: transparent;
	color: var(--eck-black);
	font: 500 1rem/1.24 var(--eck-font);
	letter-spacing: -0.02em;
}

.eck-search__input::placeholder { color: var(--eck-black); opacity: 1; }

.eck-search__input:focus { outline: none; }

.eck-search:focus-within { outline: 3px solid var(--eck-navy); outline-offset: 2px; }

.eck-search__submit {
	display: grid;
	place-items: center;
	width: 44px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.eck-lang {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.24;
}

.eck-lang li + li::before { content: "|"; padding-inline: 0.25em; }

.eck-lang a { text-decoration: none; }

.eck-lang a[aria-current],
.eck-lang a:hover { text-decoration: underline; text-decoration-skip-ink: none; }

.eck-social { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }

.eck-social a { display: block; border-radius: 50%; transition: opacity var(--eck-ease); }

.eck-social a:hover { opacity: 0.8; }

.eck-social svg { width: 40px; height: 40px; }

.eck-nav__list { margin: 0; padding: 0; list-style: none; }

.eck-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.5;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
}

.eck-nav__link:hover,
.eck-nav__link[aria-current] { text-decoration: underline; }

.eck-nav__caret { width: 8px; height: 4px; transition: transform var(--eck-ease); }

.eck-nav__toggle[aria-expanded="true"] .eck-nav__caret { transform: rotate(180deg); }

.eck-nav__sub {
	display: none;
	flex-direction: column;
	gap: 15px;
	margin: 0;
	list-style: none;
}

.eck-nav__toggle[aria-expanded="true"] + .eck-nav__sub { display: flex; }

.eck-nav__sublink {
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.5;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.eck-nav__sublink:hover,
.eck-nav__sublink[aria-current] { text-decoration: underline; }

/* Mobile / tablet panel (Figma: 320 Menu Poziom 1 / 2). */
@media (max-width: 1099px) {
	.eck-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		grid-template-areas: "search" "nav" "meta";
		grid-template-columns: minmax(0, 1fr);
		max-height: calc(100dvh - 80px);
		overflow-x: hidden;
		overflow-y: auto;
		background: var(--eck-white);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	}

	.eck-header.is-open .eck-header__panel,
	html:not(.js) .eck-header__panel:target { display: grid; }

	.eck-header__tools { display: contents; }

	.eck-header__search { grid-area: search; padding: 15px 20px; background: var(--eck-blue-n1); }

	.eck-search { background: var(--eck-white); }

	.eck-nav { grid-area: nav; padding: 15px 20px 0; border-top: 0; }

	.eck-nav__item { border-bottom: 1px solid var(--eck-grey-3); }

	.eck-nav__link { width: 100%; padding-block: 15px; text-align: left; }

	.eck-nav__sub { padding: 15px 0 15px 25px; background: var(--eck-grey-n1); }

	.eck-header__social { grid-area: meta; padding: 15px 20px 20px; }

	.eck-header__lang { grid-area: meta; justify-self: end; align-self: center; padding: 0 20px 5px; }
}

/* Desktop header (Figma: Frame 6, 1440 × 120). */
@media (min-width: 1100px) {
	.eck-header__bar { min-height: 120px; padding-inline: 30px; }

	.eck-header__logo img { width: 229px; }

	.eck-header__burger { display: none; }

	.eck-header__panel { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

	.eck-header__tools { display: flex; align-items: center; gap: 20px; }

	.eck-header__search { display: contents; }

	.eck-search { width: 250px; }

	.eck-nav__list { display: flex; align-items: center; gap: 30px; }

	.eck-nav__item { position: relative; }

	.eck-nav__sub {
		position: absolute;
		top: calc(100% + 15px);
		left: -25px;
		min-width: 280px;
		padding: 20px 25px;
		background: var(--eck-white);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
		white-space: nowrap;
	}

	/* Bridge the gap so the pointer can travel from the item to the panel. */
	.eck-nav__sub::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 15px; }

	.eck-nav__item:last-child .eck-nav__sub,
	.eck-nav__item:nth-last-child(2) .eck-nav__sub { left: auto; right: -25px; }
}

/* ---------- Page layout ---------- */

.eck-home { --eck-section-gap: 30px; --eck-tight-gap: 10px; }

/* Hero, "Poznaj swoje prawa" and banners form one group (Figma: Frame 583, gap 20 / mobile 10). */
.eck-home > * + * { margin-top: var(--eck-section-gap); }

.eck-home > .eck-rights,
.eck-home > .eck-banners { margin-top: var(--eck-tight-gap); }

.eck-section__title { font-size: 1.875rem; font-weight: 700; }

@media (min-width: 1100px) {
	.eck-home { --eck-section-gap: 60px; --eck-tight-gap: 20px; }

	/* The blue band starts right under the news navigation and carries its own padding. */
	.eck-home > .eck-cases { margin-top: 0; }

	.eck-section__title { font-size: 2.5rem; }
}

.eck-section { display: flex; flex-direction: column; gap: 30px; }

.eck-home > .eck-section:not(.eck-cases) {
	width: 100%;
	max-width: calc(var(--eck-max) + 2 * var(--eck-gutter));
	margin-inline: auto;
	padding-inline: var(--eck-gutter);
}

@media (min-width: 1100px) {
	.eck-section { gap: 40px; }

	.eck-section__title { max-width: 460px; }
}

/* ---------- Hero ---------- */

.eck-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px 20px 0;
	border-radius: 0 0 var(--eck-radius) var(--eck-radius);
	background: var(--eck-grad-blue-1);
	overflow: hidden;
}

.eck-hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.eck-hero__title { font-size: 1.875rem; font-weight: 700; }

.eck-hero__text { font-size: 1.125rem; }

.eck-hero__text p + p { margin-top: 0.75em; }

.eck-hero__btn { width: 100%; font-size: 1rem; }

.eck-hero__image { width: 100%; height: 221px; object-fit: cover; object-position: top; }

@media (min-width: 768px) {
	.eck-hero { margin-inline: var(--eck-gutter); border-radius: var(--eck-radius); }

	.eck-hero__btn { width: auto; font-size: 1.125rem; }

	.eck-hero__image { height: 420px; object-fit: contain; object-position: bottom; }
}

/* Desktop: Frame 5 (1320 × 520). */
@media (min-width: 1100px) {
	.eck-hero {
		flex-direction: row;
		align-items: center;
		min-height: 520px;
		max-width: var(--eck-max);
		margin-inline: auto;
		width: calc(100% - 2 * var(--eck-gutter));
		padding: 0 0 0 clamp(40px, 8.56%, 113px);
	}

	.eck-hero__body { width: 645px; max-width: 55%; padding-bottom: 30px; }

	.eck-hero__title { font-size: 2.5rem; }

	.eck-hero__text { padding-right: 60px; font-size: 1.25rem; }

	.eck-hero__media {
		position: absolute;
		top: 64px;
		right: -35px;
		width: 43.5%;
		max-width: 574px;
	}

	.eck-hero__image { height: auto; object-fit: initial; }
}

/* ---------- Poznaj swoje prawa ---------- */

.eck-rights {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-inline: var(--eck-gutter);
	padding: 20px 20px 30px;
	border-radius: var(--eck-radius);
	background: var(--eck-yellow);
}

.eck-rights__title { font-size: 1.875rem; font-weight: 700; max-width: 220px; }

.eck-rights__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eck-rights__grid > li:first-child,
.eck-rights__aside { grid-column: 1 / -1; }

.eck-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 115px;
	padding-inline: 10px;
	border-radius: var(--eck-radius);
	background: var(--eck-white-80);
	font-size: 1rem;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--eck-ease);
}

.eck-tile:hover,
.eck-tile:focus-visible { background: var(--eck-white); }

.eck-tile__icon { width: 40px; height: 40px; }

.eck-rights__aside { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; font-size: 1rem; line-height: 1.24; }

.eck-rights__aside .eck-btn { width: 100%; }

@media (min-width: 768px) {
	.eck-rights__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.eck-rights__grid > li:first-child { grid-column: auto; }

	.eck-rights__aside { grid-column: auto; justify-content: center; padding: 0 10px; }

	.eck-rights__aside .eck-btn { width: auto; align-self: flex-start; }
}

/* Desktop: Frame 585 (1320 × 315). */
@media (min-width: 1100px) {
	.eck-rights {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 30px;
		max-width: var(--eck-max);
		width: calc(100% - 2 * var(--eck-gutter));
		margin-inline: auto;
		padding: 30px;
	}

	.eck-rights__title { flex: none; width: 220px; font-size: 2.5rem; }

	.eck-rights__grid { flex: 0 1 954px; grid-template-columns: repeat(3, minmax(0, 308px)); gap: 15px; }

	.eck-tile { height: 120px; font-size: 1.125rem; }
}

/* ---------- Banners ---------- */

.eck-banners {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-inline: var(--eck-gutter);
}

.eck-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	border-radius: var(--eck-radius);
	background: var(--eck-grad-yellow-2);
}

.eck-banner__title { font-size: 1.5625rem; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }

.eck-banner__btn { width: 100%; font-size: 1rem; }

/* The whole banner is clickable; hovering it lights up the button (Style Guide: baner 1 Variant2). */
.eck-banner__btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--eck-radius); }

.eck-banner:hover .eck-banner__btn { background: var(--eck-white); border-color: var(--eck-white); }

.eck-banner--grey { background: var(--eck-grey-n1); }

@media (min-width: 768px) {
	.eck-banners { flex-direction: row; justify-content: center; }

	.eck-banner { flex: 0 1 539px; min-height: 180px; padding: 20px 39px; }

	.eck-banner__title { font-size: 1.875rem; max-width: 438px; }

	.eck-banner__btn { width: auto; font-size: 1.125rem; line-height: 1.25; }
}

/* ---------- Najczęstsze problemy ---------- */

.eck-problems__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eck-problem { position: relative; display: flex; flex-direction: column; }

.eck-problem__top {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	padding: 15px 5px;
	border-radius: 10px 10px 0 0;
	background: var(--eck-white-80);
	transition: background-color var(--eck-ease);
}

.eck-problem:hover .eck-problem__top { background: var(--eck-white); }

.eck-problem__title { font-size: 1rem; font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; }

.eck-problem__link { margin-top: auto; font-size: 1rem; line-height: 1.5; }

.eck-problem__media { height: 100px; border-radius: 0 0 10px 10px; background: var(--eck-blue-n1); overflow: hidden; }

.eck-problem__media img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 768px) {
	.eck-problems__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

	.eck-problem__top { padding: 20px; border-radius: var(--eck-radius) var(--eck-radius) 0 0; }

	.eck-problem__title { font-size: 1.25rem; }

	.eck-problem__link { font-size: 1.125rem; line-height: 1.25; }

	.eck-problem__media { height: 210px; border-radius: 0 0 var(--eck-radius) var(--eck-radius); }
}

/* ---------- Carousels (Aktualności, Tak pomogliśmy) ---------- */

.eck-carousel { margin-right: calc(-1 * var(--eck-gutter)); }

.eck-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 230px;
	gap: 10px;
	margin: 0;
	padding: 0 var(--eck-gutter) 0 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scrollbar-width: none;
}

.eck-carousel__track::-webkit-scrollbar { display: none; }

.eck-carousel__track > li { scroll-snap-align: start; }

@media (prefers-reduced-motion: no-preference) {
	.eck-carousel__track { scroll-behavior: smooth; }
}

@media (min-width: 1100px) {
	.eck-carousel { margin-right: 0; }

	.eck-carousel__track { gap: 20px; padding-right: 0; }

	.eck-carousel__track--3 { grid-auto-columns: calc((100% - 2 * 20px) / 3); }

	.eck-carousel__track--4 { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
}

.eck-carousel-nav { display: flex; align-items: center; gap: 20px; }

.eck-carousel-nav__buttons { display: flex; gap: 10px; }

.eck-carousel-nav__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 48px;
	background: var(--eck-white);
	cursor: pointer;
	transition: background-color var(--eck-ease), opacity var(--eck-ease);
}

.eck-carousel-nav__btn svg { width: 24px; height: auto; }

.eck-carousel-nav__btn--prev svg { transform: rotate(180deg); }

.eck-carousel-nav__btn:hover { background: var(--eck-yellow); }

.eck-carousel-nav__btn:disabled { opacity: 0.5; cursor: default; background: var(--eck-white); }

.eck-carousel-nav__all { font-size: 1rem; line-height: 1.5; }

@media (min-width: 768px) {
	.eck-carousel-nav__all { font-size: 1.25rem; }
}

.eck-card__date { font-size: 0.875rem; line-height: 1.5; }

/* News card (AKTUALNOSCI KOMPONENT). */
.eck-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--eck-radius);
	background: var(--eck-navy);
	color: var(--eck-white);
	transition: background-color var(--eck-ease);
}

.eck-news-card__head { display: flex; flex-direction: column; gap: 5px; padding: 20px 20px 0; }

.eck-news-card__title { font-size: 1.125rem; font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; }

.eck-news-card__title a { text-decoration: none; }

.eck-news-card__body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 10px; padding: 10px 20px 20px; }

.eck-news-card__excerpt { font-size: 1rem; line-height: 1.5; }

.eck-news-card__more { font-size: 1rem; line-height: 1.5; text-decoration: underline; text-underline-position: from-font; }

@media (min-width: 768px) {
	.eck-news-card { min-height: 392px; background: rgba(0, 76, 145, 0.9); }

	.eck-news-card:hover { background: var(--eck-navy); }

	.eck-news-card__head { padding: 20px 30px 30px; }

	.eck-news-card__title { font-size: 1.5625rem; }

	.eck-news-card__body { padding: 10px 30px 30px; }

	.eck-news-card__excerpt { font-size: 1.125rem; }

	.eck-news-card__more { font-size: 1.125rem; line-height: 1.25; }
}

/* Case card (Tak pomoglismy kafel) on the blue band. */
.eck-cases { padding: 0 0 30px var(--eck-gutter); background: var(--eck-grad-blue-1); }

.eck-cases__inner { display: flex; flex-direction: column; gap: 30px; }

/* The band has no right padding on phones, so the carousel already reaches the screen edge. */
.eck-cases .eck-carousel { margin-right: 0; }

.eck-case-card { position: relative; display: flex; flex-direction: column; }

.eck-case-card__head {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 5px;
	padding: 20px;
	border-radius: var(--eck-radius) var(--eck-radius) 0 0;
	background: var(--eck-white);
	transition: background-color var(--eck-ease);
}

.eck-case-card__head > div { display: flex; flex-direction: column; gap: 5px; }

.eck-case-card__title { font-size: 1.125rem; font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; }

.eck-case-card__title a { text-decoration: none; }

.eck-case-card__more { font-size: 1.125rem; line-height: 1.25; text-decoration: underline; text-underline-position: from-font; }

.eck-case-card__media { height: 130px; border-radius: 0 0 var(--eck-radius) var(--eck-radius); background: var(--eck-navy); overflow: hidden; }

.eck-case-card__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
	.eck-case-card__head { min-height: 161px; background: var(--eck-white-90); }

	.eck-case-card:hover .eck-case-card__head { background: var(--eck-white); }

	.eck-case-card__title { font-size: 1.25rem; }

	.eck-case-card__media { height: 180px; }
}

@media (min-width: 1100px) {
	.eck-cases { padding: 60px var(--eck-gutter) 40px; }

	.eck-cases__inner { gap: 40px; max-width: var(--eck-max); margin-inline: auto; }
}

/* ---------- Page (Formularze online) ---------- */

.eck-page { padding-top: 20px; padding-bottom: 20px; }

.eck-page__title { font-size: 1.875rem; font-weight: 700; }

.eck-page__content { margin-top: 20px; }

@media (min-width: 1100px) {
	.eck-page { padding-top: 40px; padding-bottom: 60px; }

	.eck-page__title { font-size: 2.5rem; }

	.eck-page__content { margin-top: 10px; }
}

.eck-forms { display: flex; flex-direction: column; gap: 20px; }

.eck-forms__lead { max-width: 538px; font-weight: 700; }

.eck-forms__grid { display: flex; flex-direction: column; gap: 20px; }

.eck-forms__notes { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }

.eck-forms__note { display: flex; flex-direction: column; gap: 5px; }

.eck-forms__pin { width: 24px; height: 24px; }

.eck-forms__note p { margin: 0; }

.eck-forms__box {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border-radius: var(--eck-radius);
	background: var(--eck-grad-blue-1);
	font-size: 0.875rem;
}

.eck-forms__group { display: flex; flex-direction: column; gap: 10px; }

.eck-forms__group + .eck-forms__group { padding-top: 20px; border-top: 1px solid var(--eck-grey-3); }

.eck-forms__group-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; line-height: 1.5; letter-spacing: -0.02em; }

.eck-forms__group-title svg { width: 24px; height: 24px; }

.eck-forms a { color: inherit; }

.eck-forms__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; margin: 0; padding: 0; list-style: none; line-height: 1.5; }

/* Phones: the two form buttons stay pinned to the bottom of the screen (Figma: 320 Formularze, Frame 674). */
@media (max-width: 767px) {
	.eck-forms__actions {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 5px;
		padding: 5px;
	}

	.eck-forms__actions .eck-form-btn { background: var(--eck-yellow); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25)); }

	body:has(.eck-forms__actions) { padding-bottom: 75px; }
}

@media (min-width: 768px) {
	.eck-forms__actions { display: flex; flex-direction: column; gap: 10px; }

	.eck-forms__box { padding: 30px 20px; font-size: 1rem; }

	.eck-forms__links { gap: 10px 20px; }
}

@media (min-width: 1100px) {
	.eck-forms { gap: 30px; }

	.eck-forms__grid { flex-direction: row; align-items: flex-start; gap: 20px; }

	.eck-forms__notes { display: grid; flex: 0 1 874px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }

	.eck-forms__aside { display: flex; flex: 0 0 427px; flex-direction: column; gap: 20px; }
}

/* ---------- Guide (Poradnik) and topic area: no Figma design yet — home page styles ---------- */

.eck-guide { padding-bottom: 20px; }

.eck-guide__hero {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px 20px;
	border-radius: 0 0 var(--eck-radius) var(--eck-radius);
	background: var(--eck-grad-blue-1);
}

.eck-guide__topic { font-weight: 500; font-size: 1rem; }

.eck-guide__title { margin-top: 10px; font-size: 1.875rem; font-weight: 700; }

.eck-guide__media img { width: 100%; border-radius: var(--eck-radius); }

.eck-guide__content { max-width: calc(874px + 2 * var(--eck-gutter)); margin: 30px auto 0; padding-inline: var(--eck-gutter); }

@media (min-width: 768px) {
	.eck-guide__hero { margin-inline: var(--eck-gutter); border-radius: var(--eck-radius); }
}

@media (min-width: 1100px) {
	.eck-guide { padding-bottom: 60px; }

	.eck-guide__hero {
		flex-direction: row;
		align-items: center;
		gap: 40px;
		width: calc(100% - 2 * var(--eck-gutter));
		max-width: var(--eck-max);
		min-height: 360px;
		margin-inline: auto;
		padding: 60px 60px 60px clamp(40px, 8.56%, 113px);
	}

	.eck-guide__intro { flex: 1; }

	.eck-guide__media { flex: 0 0 45%; }

	.eck-guide__title { font-size: 2.5rem; }

	.eck-guide__content { margin-top: 60px; }
}

.eck-content .wp-block-heading { margin-top: 40px; font-size: 1.5625rem; font-weight: 700; }

@media (min-width: 1100px) {
	.eck-content .wp-block-heading { font-size: 1.875rem; }
}

.eck-faq { display: flex; flex-direction: column; gap: 10px; }

.eck-faq__item { border-radius: var(--eck-radius); background: var(--eck-white-80); transition: background-color var(--eck-ease); }

.eck-faq__item:hover,
.eck-faq__item[open] { background: var(--eck-white); }

.eck-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.eck-faq__question::-webkit-details-marker { display: none; }

.eck-faq__question:focus-visible { border-radius: var(--eck-radius); }

.eck-faq__icon { width: 12px; height: 6px; transition: transform var(--eck-ease); }

.eck-faq__item[open] .eck-faq__icon { transform: rotate(180deg); }

.eck-faq__answer { padding: 0 20px 20px; }

.eck-faq__answer > * + * { margin-top: 0.75em; }

.eck-faq__answer :where(ul, ol) { padding-left: 1.25em; }

.eck-topic { padding-top: 20px; padding-bottom: 20px; }

.eck-topic__intro { max-width: 874px; margin-top: 10px; }

.eck-guide-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.eck-problem__title a { text-decoration: none; }

/* Guide photos on the old site are banners with text: show them whole, never cropped. */
.eck-guide-card__media { height: auto; }

.eck-guide-card__media img { height: auto; object-fit: initial; }

@media (min-width: 768px) {
	.eck-guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1100px) {
	.eck-topic { padding-top: 40px; padding-bottom: 60px; }

	.eck-guide-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
}

/* ---------- Generic content ---------- */

.eck-content > * + * { margin-top: 1em; }

:where(.eck-content) a { color: var(--eck-navy); }

.eck-notice { padding: 10px 15px; border-left: 4px solid var(--eck-yellow); background: var(--eck-white); }

.eck-article,
.eck-page-header { padding-block: 40px; }

.eck-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }

.eck-card { padding: 20px; border-radius: var(--eck-radius); background: var(--eck-white); }

.eck-card__title { font-size: 1.25rem; font-weight: 400; }

/* ---------- Footer ---------- */

/* Templates end with their own bottom padding; the footer follows directly (Figma). */
.eck-footer { background: var(--eck-white); color: var(--eck-grey-5); }

.eck-footer a { text-decoration: none; }

.eck-footer a:hover { text-decoration: underline; }

.eck-footer__main { display: flex; flex-direction: column; gap: 30px; padding-block: 30px; }

.eck-footer__nav { display: none; }

.eck-footer__nav-mobile ul {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.5;
}

.eck-footer__nav-mobile .is-strong { font-weight: 700; }

.eck-footer__aside { display: flex; flex-direction: column; gap: 20px; }

.eck-footer .eck-banner { flex: none; min-height: 180px; color: var(--eck-black); }

/* Figma: the title box (438) is wider than the 426 card, so the title runs up to its right edge. */
@media (min-width: 768px) {
	.eck-footer .eck-banner { padding-right: 0; }
}

.eck-footer__bottom { background: var(--eck-grey-n1); font-size: 0.75rem; line-height: 1.5; }

.eck-footer__bottom-inner { display: flex; flex-direction: column; gap: 20px; padding-block: 30px; }

.eck-footer__funding { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 40px; }

.eck-footer__funding p { flex-basis: 100%; }

.eck-footer__legal ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }

.eck-footer__legal li + li::before { content: "|"; padding-inline: 0.25em; }

.eck-footer__legal a { text-decoration: underline; }

@media (min-width: 1100px) {
	.eck-footer__main { flex-direction: row; justify-content: space-between; gap: 21px; padding-block: 80px; }

	.eck-footer__nav { display: flex; gap: 21px; }

	.eck-footer__nav-mobile { display: none; }

	.eck-footer__col { display: flex; flex-direction: column; gap: 15px; width: 203px; padding-right: 20px; }

	.eck-footer__heading { padding-bottom: 15px; border-bottom: 1px solid var(--eck-grey-3); font-weight: 700; font-size: 1rem; line-height: 1.5; }

	.eck-footer__links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 1rem; line-height: 1.5; }

	.eck-footer__aside { flex: 0 0 426px; gap: 30px; }

	.eck-footer__bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 60px; }

	.eck-footer__funding p { flex-basis: auto; }
}

/* ---------- Document ---------- */

.eck-document__type { font-weight: 500; font-size: 1rem; }

.eck-document .eck-card__date { margin-top: 10px; }

.eck-document__action { max-width: 427px; margin-top: 30px; }

/* ---------- Institutions ---------- */

.eck-orgs { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }

.eck-orgs--cards { grid-template-columns: minmax(0, 1fr); }

.eck-org .eck-problem__top { order: 2; border-radius: 0 0 var(--eck-radius) var(--eck-radius); }

.eck-org .eck-org__media { order: 1; height: 160px; border-radius: var(--eck-radius) var(--eck-radius) 0 0; }

.eck-org__media img { object-fit: cover; }

.eck-org__text { font-size: 1rem; }

.eck-orgs--logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.eck-orgs__logo { display: grid; place-items: center; min-height: 120px; padding: 15px; border-radius: var(--eck-radius); background: var(--eck-white); }

.eck-orgs__logo img { max-height: 90px; width: auto; object-fit: contain; }

@media (min-width: 768px) {
	.eck-orgs { gap: 20px; }

	.eck-orgs--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.eck-orgs--logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
	.eck-orgs--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.eck-orgs--logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Listings, articles, search, pagination ---------- */

.eck-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }

.eck-list-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 20px;
	border-radius: var(--eck-radius);
	background: var(--eck-white-90);
	transition: background-color var(--eck-ease);
}

.eck-list-card:hover { background: var(--eck-white); }

.eck-list-card__type { font-size: 0.875rem; font-weight: 500; color: var(--eck-navy); }

.eck-list-card__title { font-size: 1.25rem; font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; }

.eck-list-card__title a { text-decoration: none; }

.eck-list-card__excerpt { font-size: 1rem; }

.eck-list-card__more { margin-top: auto; padding-top: 10px; font-size: 1rem; text-decoration: underline; text-underline-position: from-font; }

@media (min-width: 768px) {
	.eck-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1100px) {
	.eck-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
}

.eck-article__header { display: flex; flex-direction: column; gap: 10px; max-width: 874px; }

.eck-article .eck-page__content,
.eck-article__image { max-width: 874px; }

.eck-article__image { margin: 20px 0 0; }

.eck-article__image img { width: 100%; border-radius: var(--eck-radius); }

.eck-search--page { max-width: 427px; margin-top: 20px; background: var(--eck-white); }

.pagination { margin-top: 30px; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 5px; }

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 44px;
	background: var(--eck-white);
	text-decoration: none;
}

.pagination .page-numbers.current { background: var(--eck-navy); color: var(--eck-white); }

.pagination a.page-numbers:hover { background: var(--eck-yellow); }
