/* ==========================================================================
   CennikAI — główny arkusz stylów motywu
   ========================================================================== */

/* 1. Fonty (hostowane lokalnie, font-display: swap)
   ========================================================================== */

/* Bricolage Grotesque — nagłówki (700 i 800, font zmienny) */
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Sans — tekst (400, 500, 600, font zmienny) */
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2122, U+FEFF, U+FFFD;
}

/* Instrument Serif Italic — akcenty w nagłówkach */
@font-face {
	font-family: 'Instrument Serif';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Instrument Serif';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Zmienne CSS (design system)
   ========================================================================== */

:root {
	--navy: #0F2A3D;
	--navy-2: #16384F;
	--navy-line: #2E5169;
	--mint: #7FE0C4;
	--teal: #0E7C66;
	--teal-dark: #0A5E4D;
	--bg: #F2F6F7;
	--surface: #FFFFFF;
	--surface-2: #E3ECEE;
	--line: #D6E1E4;
	--muted: #4A6072;
	--muted-dark: #C9D8DE;

	/* wartości pomocnicze (z projektu, spoza tabeli tokenów) */
	--header-line: #23445A;   /* obramowanie nagłówka */
	--muted-dark-2: #9FB4BE;  /* tekst trzeciorzędny na ciemnym tle */
	--mint-soft: #E3F4EE;     /* tło etykiety zmiany ceny */

	--radius-btn: 14px;
	--radius-card: 18px;
	--radius-block: 24px;
	--radius-large: 28px;
	--radius-pill: 999px;

	--font-heading: 'Bricolage Grotesque', sans-serif;
	--font-body: 'Instrument Sans', sans-serif;
	--font-serif: 'Instrument Serif', serif;

	--container-content: 1280px;
}

/* 3. Reset i typografia bazowa
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.5;
	color: var(--navy);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--navy);
}

p {
	margin: 0 0 1em;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--teal);
	text-decoration: none;
}

a:hover {
	color: var(--teal-dark);
}

/* Akcent serifowy w nagłówkach */
.serif-accent {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}

/* 4. Układ
   ========================================================================== */

.container {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 80px;
}

/* 5. Dostępność — widoczny fokus
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

.site-header :focus-visible,
.hero :focus-visible,
.newsletter :focus-visible {
	outline-color: var(--mint);
}

/* 6. Nagłówek
   ========================================================================== */

.site-header {
	background: var(--navy);
	color: var(--bg);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	height: 88px;
	border-bottom: 1px solid var(--header-line);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 1;
}

.site-header .site-brand {
	color: var(--bg);
}

.cennikai-footer .site-brand {
	color: var(--navy);
}

.site-brand__logo {
	display: block;
	width: auto;
}

.site-header .site-brand__logo {
	height: 32px;
}

.site-header__nav .menu {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__nav .menu a {
	display: inline-block;
	color: var(--bg);
	font-size: 16px;
	font-weight: 500;
}

.site-header__nav .menu a:hover {
	color: var(--mint);
}

.site-header__cta {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	height: 48px;
	padding: 0 22px;
	border-radius: var(--radius-pill);
	background: var(--mint);
	color: var(--navy);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.site-header__cta:hover {
	background: #5FD4B0;
	color: var(--navy);
}

/* Przycisk menu mobilnego — style w sekcji 15 (responsywność). */

/* 7. Stopka
   ========================================================================== */

.cennikai-footer {
	background: var(--bg);
	color: var(--navy);
}

.cennikai-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 72px;
	padding-bottom: 48px;
}

.cennikai-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 48px;
}

.cennikai-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 360px;
}

.cennikai-footer .site-brand__logo {
	height: 28px;
}

.cennikai-footer__description {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
}

.cennikai-footer__cols {
	display: flex;
	gap: 80px;
}

.cennikai-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cennikai-footer__heading {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0;
	line-height: 1.5;
	color: var(--navy);
}

.cennikai-footer__nav .menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cennikai-footer__nav .menu a {
	color: var(--muted);
	font-size: 15px;
}

.cennikai-footer__nav .menu a:hover {
	color: var(--teal-dark);
}

.cennikai-footer__legal {
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

/* 8. Strona główna — pełna szerokość i sekcje
   ========================================================================== */

/* Kontrolki formularzy używają fontu tekstowego (nadpisuje font systemowy GP). */
button,
input,
select,
textarea {
	font-family: var(--font-body);
}

/* Wyłącza boxed container #page na stronie głównej (sekcje są pełnej szerokości). */
body.cennikai-front-page #page {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	box-shadow: none;
	background: transparent;
}

body.cennikai-front-page .site-content {
	display: block;
}

/* Sekcje na jasnym tle — stały rytm pionowy (40 + 40 = 80 px między sekcjami). */
.home-section {
	padding: 40px 0;
}

.home-section .container {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Nagłówek sekcji (tytuł + podtytuł + link „→”). */
.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.section__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.section__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 44px;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--navy);
}

.section__title .serif-accent {
	color: var(--teal);
}

.section__sub {
	margin: 0;
	font-size: 17px;
	color: var(--muted);
}

.section__link {
	font-weight: 600;
	font-size: 16px;
	color: var(--teal);
	white-space: nowrap;
}

.section__link:hover {
	color: var(--teal-dark);
}

/* 9. Hero
   ========================================================================== */

.hero {
	background: var(--navy);
	color: var(--bg);
	padding: 72px 0 40px;
}

.hero__grid {
	display: flex;
	gap: 64px;
	align-items: center;
}

.hero__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 700px;
	min-width: 0;
}

.hero__aside {
	flex: 0 0 480px;
	width: 480px;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	margin: 0;
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--navy-line);
	font-size: 14px;
	font-weight: 500;
	color: var(--muted-dark);
}

.hero__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-pill);
	background: var(--mint);
}

.hero__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 84px;
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--bg);
}

.hero__accent {
	color: var(--mint);
}

.hero__desc {
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--muted-dark);
	max-width: 600px;
}

/* Formularz wyszukiwania (jasne tło — strona wyszukiwania, 404). */
.search-form {
	display: flex;
	gap: 10px;
}

.search-form .search-form__input {
	flex-grow: 1;
	min-width: 0;
	height: 56px;
	padding: 0 20px;
	border-radius: var(--radius-btn);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--navy);
	font-size: 16px;
}

.search-form .search-form__input::placeholder {
	color: var(--muted);
}

.search-form .search-form__submit {
	height: 56px;
	padding: 0 24px;
	border-radius: var(--radius-btn);
	border: none;
	background: var(--teal);
	color: #FFFFFF;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.search-form .search-form__submit:hover {
	background: var(--teal-dark);
	color: #FFFFFF;
}

/* Wyszukiwarka w hero (ciemne tło). */
.hero .search-form {
	max-width: 620px;
}

.hero .search-form__input {
	height: 60px;
	padding: 0 22px;
	border-color: var(--navy-line);
	background: var(--navy-2);
	color: var(--bg);
	font-size: 17px;
}

.hero .search-form__input::placeholder {
	color: var(--muted-dark-2);
}

.hero .search-form__submit {
	height: 60px;
	padding: 0 28px;
	background: var(--bg);
	color: var(--navy);
	font-size: 17px;
}

.hero .search-form__submit:hover {
	background: var(--surface);
	color: var(--navy);
}

.hero__popular {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--muted-dark-2);
}

.hero__popular-label {
	margin: 0;
}

.hero__chip {
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	background: var(--navy-2);
	color: var(--bg);
}

.hero__chip:hover {
	background: var(--mint);
	color: var(--navy);
}

/* Karta kalkulatora (miejsce na wtyczkę cennikai-core). */
.calc-card {
	box-sizing: border-box;
	padding: 32px;
	border-radius: var(--radius-block);
	background: var(--navy-2);
	border: 1px solid var(--navy-line);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.calc-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.calc-card__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	white-space: nowrap;
}

.calc-card__tag {
	font-size: 13px;
	font-weight: 500;
	color: var(--navy);
	background: var(--mint);
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	white-space: nowrap;
}

.calc-card__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.calc-card__label {
	font-size: 14px;
	color: var(--muted-dark);
}

.calc-card .calc-card__select,
.calc-card .calc-card__input {
	width: 100%;
	height: 52px;
	box-sizing: border-box;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid var(--navy-line);
	background: var(--navy);
	color: var(--bg);
	font-size: 16px;
}

.calc-card__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.calc-card__result {
	padding: 20px;
	border-radius: 16px;
	background: var(--navy);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.calc-card__result-label {
	font-size: 14px;
	color: var(--muted-dark);
}

.calc-card__result-value {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 44px;
	line-height: 1.05;
	color: var(--mint);
}

.calc-card__result-unit {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--muted-dark);
	white-space: nowrap;
}

.calc-card__result-note {
	font-size: 13px;
	color: var(--muted-dark-2);
}

.calc-card .calc-card__cta {
	height: 52px;
	border-radius: 12px;
	border: none;
	background: var(--mint);
	color: var(--navy);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.calc-card .calc-card__cta:hover {
	background: #5FD4B0;
}

/* 10. Puls cen
   ========================================================================== */

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

.pulse-card {
	box-sizing: border-box;
	padding: 24px;
	border-radius: var(--radius-card);
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--navy);
	text-decoration: none;
}

.pulse-card:hover {
	border-color: var(--teal);
}

.pulse-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pulse-card__id {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pulse-card__name {
	font-weight: 600;
	font-size: 18px;
}

.pulse-card__plan {
	font-size: 14px;
	color: var(--muted);
}

.pulse-card__change {
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--mint-soft);
	color: var(--teal-dark);
	white-space: nowrap;
}

.pulse-card__price {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 32px;
	line-height: 1.05;
}

.pulse-card__meta {
	font-size: 13px;
	color: var(--muted);
}

/* 11. Kategorie
   ========================================================================== */

.categories__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cat-card {
	box-sizing: border-box;
	padding: 28px;
	border-radius: var(--radius-card);
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	gap: 20px;
	align-items: flex-start;
	color: var(--navy);
	text-decoration: none;
}

.cat-card:hover {
	border-color: var(--teal);
}

.cat-card__icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 14px;
	background: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cat-card__icon-svg {
	width: 26px;
	height: 26px;
	stroke: var(--mint);
}

.cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cat-card__name {
	font-weight: 600;
	font-size: 20px;
}

.cat-card__desc {
	font-size: 15px;
	line-height: 1.45;
	color: var(--muted);
}

.cat-card__count {
	font-size: 14px;
	font-weight: 600;
	color: var(--teal);
	margin-top: 4px;
}

/* 12. Kalkulatory
   ========================================================================== */

.calculators__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.calc-tile {
	box-sizing: border-box;
	min-height: 220px;
	padding: 24px;
	border-radius: var(--radius-card);
	background: var(--surface-2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	color: var(--navy);
	text-decoration: none;
}

.calc-tile:hover {
	background: #D6E3E6;
}

.calc-tile__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.calc-tile__name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.15;
}

.calc-tile__desc {
	font-size: 15px;
	line-height: 1.45;
	color: var(--muted);
}

.calc-tile__cta {
	font-size: 15px;
	font-weight: 600;
	color: var(--teal-dark);
}

/* 13. Porównanie
   ========================================================================== */

.comparison__table {
	border-radius: var(--radius-card);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--surface);
}

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

.comparison__row + .comparison__row {
	border-top: 1px solid var(--line);
}

.comparison__row--head {
	background: var(--navy);
	color: var(--bg);
	font-weight: 600;
	font-size: 16px;
}

.comparison__cell {
	padding: 18px 24px;
	font-size: 16px;
}

.comparison__cell--label {
	color: var(--muted);
}

.comparison__row--head .comparison__cell--label {
	color: var(--muted-dark-2);
}

.comparison__cell--value {
	font-weight: 500;
}

/* 14. Newsletter
   ========================================================================== */

.newsletter__card {
	padding: 56px 64px;
	border-radius: var(--radius-large);
	background: var(--navy);
	color: var(--bg);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.newsletter__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 560px;
}

.newsletter__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 40px;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--bg);
}

.newsletter__accent {
	color: var(--mint);
}

.newsletter__desc {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: var(--muted-dark);
}

.newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 520px;
}

.newsletter__row {
	display: flex;
	gap: 10px;
}

.newsletter .newsletter__input {
	flex-grow: 1;
	min-width: 0;
	height: 56px;
	box-sizing: border-box;
	padding: 0 20px;
	border-radius: var(--radius-btn);
	border: 1px solid var(--navy-line);
	background: var(--navy-2);
	color: var(--bg);
	font-size: 16px;
}

.newsletter .newsletter__input::placeholder {
	color: var(--muted-dark-2);
}

.newsletter .newsletter__submit {
	height: 56px;
	padding: 0 24px;
	border-radius: var(--radius-btn);
	border: none;
	background: var(--mint);
	color: var(--navy);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.newsletter .newsletter__submit:hover {
	background: #5FD4B0;
}

.newsletter__note {
	margin: 0;
	font-size: 13px;
	color: var(--muted-dark-2);
}

/* 15. Responsywność
   ========================================================================== */

/* Przycisk menu mobilnego — widoczny tylko na małych ekranach. */
.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	color: var(--bg);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
	margin: 0;
	flex-grow: 0;
	text-align: left;
	border-radius: 8px;
}

.menu-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.menu-toggle__bars span {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

@media (max-width: 1200px) {
	.hero__grid {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.hero__content {
		max-width: none;
	}

	.hero__aside {
		flex: none;
		width: 100%;
	}

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

	.calculators__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.container {
		padding-inline: 40px;
	}

	.hero {
		padding: 56px 0 32px;
	}

	.hero__title {
		font-size: 64px;
	}

	.section__title {
		font-size: 36px;
	}

	.newsletter__title {
		font-size: 32px;
	}

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

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

	/* Tabela porównania przewija się poziomo w swoim kontenerze. */
	.comparison__table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.comparison__row {
		min-width: 600px;
	}

	/* Newsletter przechodzi w jedną kolumnę. */
	.newsletter__card {
		flex-direction: column;
		align-items: stretch;
	}

	.newsletter__content {
		max-width: none;
	}

	.newsletter__form {
		width: 100%;
	}

	/* Menu mobilne. */
	.site-header__inner {
		height: auto;
		min-height: 64px;
		padding-top: 14px;
		padding-bottom: 14px;
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-header__nav {
		display: none;
		flex-basis: 100%;
		order: 10;
	}

	.site-header__nav.is-open {
		display: block;
	}

	.site-header__nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
	}

	.site-header__nav .menu a {
		display: block;
		padding: 12px 0;
	}

	.site-header__cta {
		display: none;
	}

	.cennikai-footer__top {
		flex-direction: column;
		gap: 32px;
	}
}

@media (max-width: 600px) {
	.container {
		padding-inline: 20px;
	}

	.hero {
		padding: 40px 0 24px;
	}

	.home-section {
		padding: 24px 0;
	}

	.hero__title {
		font-size: 44px;
	}

	.hero__desc {
		font-size: 17px;
	}

	.section__title {
		font-size: 30px;
	}

	.newsletter__title {
		font-size: 28px;
	}

	.section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.pulse__grid,
	.categories__grid,
	.calculators__grid {
		grid-template-columns: 1fr;
	}

	.search-form {
		flex-direction: column;
	}

	.search-form__input,
	.search-form__submit {
		width: 100%;
	}

	.newsletter__card {
		padding: 32px 20px;
	}

	.newsletter__row {
		flex-direction: column;
	}

	.newsletter__input,
	.newsletter__submit {
		width: 100%;
	}

	.site-header .site-brand__logo {
		height: 26px;
	}

	.cennikai-footer__inner {
		padding-top: 48px;
		padding-bottom: 32px;
	}

	.cennikai-footer__cols {
		gap: 40px;
	}
}

/* 16. Szablony treści (wpis, strona, archiwum, blog, 404)
   ========================================================================== */

/* Kontener treści na podstronach (pionowe odstępy). */
.cennikai-content {
	padding-top: 48px;
	padding-bottom: 80px;
}

/* Wyłącza flex kontenera GP na podstronach (brak sidebara). */
body.single .site-content,
body.page .site-content,
body.archive .site-content,
body.blog .site-content,
body.search .site-content,
body.error404 .site-content {
	display: block;
}

/* Wpis / strona — kolumna tekstu maks. 720 px. */
.entry {
	max-width: 720px;
	margin-inline: auto;
}

.entry__header {
	margin-bottom: 32px;
}

.entry__title {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 44px;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--navy);
}

.entry__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--muted);
}

.entry__meta-sep {
	opacity: 0.5;
}

.entry__sponsored {
	display: inline-flex;
	align-items: center;
	margin: 16px 0 0;
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	background: var(--navy);
	color: var(--mint);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Spis treści. */
.entry__toc {
	margin: 0 0 32px;
	padding: 24px;
	border-radius: var(--radius-card);
	background: var(--surface);
	border: 1px solid var(--line);
}

.entry__toc-title {
	margin: 0 0 12px;
	font-weight: 700;
	font-size: 16px;
	color: var(--navy);
}

.entry__toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.entry__toc-item--h3 {
	padding-left: 16px;
}

.entry__toc-list a {
	color: var(--teal);
}

.entry__toc-list a:hover {
	color: var(--teal-dark);
}

/* Treść wpisu. */
.entry__content {
	font-size: 17px;
	line-height: 1.7;
}

.entry__content p {
	margin: 0 0 1.25em;
}

.entry__content h2 {
	font-size: 28px;
	margin: 1.75em 0 0.6em;
}

.entry__content h3 {
	font-size: 22px;
	margin: 1.5em 0 0.5em;
}

.entry__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry__content img {
	border-radius: var(--radius-card);
}

.entry__content ul,
.entry__content ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

/* Nagłówek archiwum / bloga / wyszukiwania. */
.archive__header {
	margin-bottom: 32px;
}

.search .search-form {
	margin-bottom: 32px;
}

.archive__title {
	margin: 0 0 8px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 44px;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--navy);
}

.archive__desc {
	margin: 0;
	font-size: 17px;
	color: var(--muted);
}

.archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 40px;
}

/* Karta wpisu. */
.post-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.post-card:hover {
	border-color: var(--teal);
}

.post-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--navy);
	text-decoration: none;
}

.post-card__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.post-card__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--navy);
}

.post-card:hover .post-card__title {
	color: var(--teal-dark);
}

.post-card__date {
	font-size: 13px;
	color: var(--muted);
}

.post-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
}

/* Paginacja. */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}

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

.pagination .page-numbers:hover:not(.current) {
	border-color: var(--teal);
	color: var(--teal);
}

/* Przycisk (jasne tło). */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 24px;
	border-radius: var(--radius-btn);
	border: none;
	background: var(--teal);
	color: #FFFFFF;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	background: var(--teal-dark);
	color: #FFFFFF;
}

/* 404. */
.error-404 {
	max-width: 560px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.error-404__code {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 96px;
	line-height: 1;
	color: var(--teal);
}

.error-404__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 40px;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.error-404__desc {
	margin: 0;
	font-size: 17px;
	color: var(--muted);
}

.error-404__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.error-404 .search-form {
	width: 100%;
	max-width: 480px;
}

/* Responsywność szablonów treści. */
@media (max-width: 900px) {
	.archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cennikai-content {
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.entry__title,
	.archive__title {
		font-size: 30px;
	}

	.archive__grid {
		grid-template-columns: 1fr;
	}

	.error-404__title {
		font-size: 30px;
	}

	.error-404__code {
		font-size: 72px;
	}
}
