/*
Theme Name: Topkomat
Description: Motyw potomny GeneratePress dla topkomat.pl. System „Drabinka cen”.
Template: generatepress
Version: 0.5.0
Requires PHP: 8.3
Text Domain: topkomat
License: GPL-2.0-or-later
*/

@font-face {
	font-family: "Sofia Sans";
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/sofia-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+FEFF, U+FFFD;
}

@font-face {
	font-family: "Sofia Sans";
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/sofia-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Sofia Sans Extra Condensed";
	font-weight: 800 900;
	font-display: swap;
	src: url("assets/fonts/sofia-sans-extra-condensed-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;
}

@font-face {
	font-family: "Sofia Sans Extra Condensed";
	font-weight: 800 900;
	font-display: swap;
	src: url("assets/fonts/sofia-sans-extra-condensed-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokeny */
:root {
	--tk-tusz: #111111;
	--tk-tusz-2: #3d4247;
	--tk-papier: #ffffff;
	--tk-mgla: #f1f2f3;
	--tk-linia: #c9cdd1;
	/* Skala ceny względem budżetu; każdy kolor niesie czarny tekst (AA). */
	--tk-s1: #5cba47;
	--tk-s2: #a9c613;
	--tk-s3: #f2bd00;
	--tk-s4: #f5891f;
	--tk-regula: 4px;
	--tk-ramka: 3px;
	--tk-wlos: 1.5px;
	--tk-font: "Sofia Sans", system-ui, sans-serif;
	--tk-font-c: "Sofia Sans Extra Condensed", "Sofia Sans", system-ui, sans-serif;
	--tk-kolumna: 42rem;
	--tk-margines: 1rem;
}

/* Podstawa: nadpisuje domyślne style GeneratePress */
html { scroll-behavior: smooth; }

body,
button,
input,
select,
textarea {
	font-family: var(--tk-font);
}

body {
	background: var(--tk-papier);
	color: var(--tk-tusz);
	font-size: 1.0625rem;
	line-height: 1.55;
	caret-color: var(--tk-tusz);
}

::selection { background: var(--tk-s3); color: var(--tk-tusz); }

a,
a:visited { color: var(--tk-tusz); }

a {
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus { color: var(--tk-tusz); text-decoration-thickness: 3px; }

:focus-visible {
	outline: 3px solid var(--tk-tusz);
	outline-offset: 3px;
}

h1, h2, h3,
.entry-title,
.entry-content h2,
.entry-content h3 {
	font-family: var(--tk-font-c);
	font-weight: 900;
	line-height: 0.98;
	text-wrap: balance;
	margin: 0;
}

h1, .entry-title, h1.entry-title { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4rem); line-height: 0.95; }
h2, .entry-content h2 { font-size: 2rem; }
h3, .entry-content h3 { font-size: 1.5rem; }

.separate-containers .inside-article,
.one-container .site-content,
.separate-containers .page-header {
	background: transparent;
	padding: 0;
}

.site.grid-container { max-width: none; }

.site-content { display: block; }

.separate-containers .site-main,
.separate-containers .site-main > * { margin: 0; }

.tk-kolumna,
.page .inside-article,
.error404 .inside-article,
.search .site-main {
	box-sizing: border-box;
	max-width: calc(var(--tk-kolumna) + 2 * var(--tk-margines));
	margin-inline: auto;
	padding: 1rem var(--tk-margines) 3rem;
}

.tk-kolumna .entry-content { margin-top: 0.75rem; }
.entry-content > * { margin-block: 0 1rem; }
.entry-content > h2 {
	margin-block: 3rem 1rem;
	padding-top: 0.75rem;
	border-top: var(--tk-regula) solid var(--tk-tusz);
}
.entry-content > h3 { margin-block: 2rem 0.5rem; }

/* Nagłówek */
.tk-naglowek { border-bottom: var(--tk-regula) solid var(--tk-tusz); }

.tk-naglowek-w {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 1.5rem;
	max-width: calc(var(--tk-kolumna) + 2 * var(--tk-margines));
	margin-inline: auto;
	padding: 0 var(--tk-margines);
}

.tk-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 52px;
	font: 900 1.75rem/1 var(--tk-font-c);
	text-transform: uppercase;
	text-decoration: none;
}

.tk-logo svg { width: 24px; height: 22px; fill: currentColor; }

.tk-menu summary {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 48px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.tk-menu summary::-webkit-details-marker { display: none; }

.tk-menu summary::after {
	content: "";
	border: 6px solid transparent;
	border-top-color: currentColor;
	translate: 0 3px;
}

.tk-menu[open] summary::after { rotate: 180deg; translate: 0 -3px; }

.tk-menu[open] { flex-basis: 100%; }
.tk-menu[open] summary { justify-content: flex-end; }

.tk-menu ul,
.tk-nawigacja ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-menu li a {
	display: block;
	padding: 0.7rem 0;
	border-top: var(--tk-wlos) solid var(--tk-tusz);
	font-weight: 700;
	text-decoration: none;
}

.tk-nawigacja { display: none; }

@media (min-width: 48rem) {
	.tk-menu { display: none; }
	.tk-nawigacja { display: block; }
	.tk-nawigacja ul { display: flex; gap: 1.5rem; }
	.tk-nawigacja a { display: block; padding: 0.9rem 0; font-weight: 700; text-decoration: none; }
}

.tk-nawigacja .current-cat > a,
.tk-menu .current-cat > a { text-decoration: underline; text-decoration-thickness: 3px; }

/* Ujawnienie afiliacji */
.tk-ujawnienie {
	margin: 0 0 0.75rem;
	padding: 0.4rem 0.6rem;
	border: var(--tk-wlos) solid var(--tk-tusz);
	font-size: 0.8125rem;
	line-height: 1.35;
}

/* Strzałka: długość = cena / budżet (--w). Stan niesie też etykieta i kształt. */
.tk-tor {
	position: relative;
	display: block;
	border-right: var(--tk-ramka) solid var(--tk-tusz);
}

.tk-strzalka {
	--grot: 16px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: var(--w, 100%);
	min-width: 5.5rem;
	height: 2rem;
	padding-right: calc(var(--grot) + 4px);
	background: var(--tk-s3);
	color: var(--tk-tusz);
	clip-path: polygon(0 0, calc(100% - var(--grot)) 0, 100% 50%, calc(100% - var(--grot)) 100%, 0 100%);
	font: 800 1.375rem/1 var(--tk-font-c);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tk-s1 { background: var(--tk-s1); }
.tk-s2 { background: var(--tk-s2); }
.tk-s3 { background: var(--tk-s3); }
.tk-s4 { background: var(--tk-s4); }

/* Bez ceny nie ma długości: pusty, kreskowany obrys na prawie cały tor. */
.tk-strzalka.tk-brak {
	position: relative;
	justify-content: center;
	width: calc(100% - var(--grot) - 12px);
	padding: 0;
	border: 2px dashed var(--tk-tusz-2);
	border-right: 0;
	background: var(--tk-papier);
	clip-path: none;
}

.tk-brak::after {
	content: "";
	position: absolute;
	top: -2px;
	bottom: -2px;
	left: 100%;
	width: var(--grot);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 32' preserveAspectRatio='none'%3E%3Cpath d='M0 1L15 16L0 31' fill='none' stroke='%233d4247' stroke-width='2' stroke-dasharray='5 3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Ponad limit: cały tor, biel z pełnym obrysem tuszu zamiast koloru skali. */
.tk-strzalka.tk-ponad {
	position: relative;
	width: calc(100% - var(--grot));
	padding-right: 4px;
	border: 2px solid var(--tk-tusz);
	border-right: 0;
	background: var(--tk-papier);
	clip-path: none;
}

.tk-ponad::after {
	content: "";
	position: absolute;
	top: -2px;
	bottom: -2px;
	left: 100%;
	width: var(--grot);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 32' preserveAspectRatio='none'%3E%3Cpath d='M0 1L15 16L0 31' fill='none' stroke='%23111111' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Drabinka */
.tk-drabinka {
	border: var(--tk-ramka) solid var(--tk-tusz);
	padding: 0.5rem 0.75rem 0.6rem;
}

.tk-skala {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
}

.entry-content .tk-drabinka ol { margin: 0; padding: 0; list-style: none; }

.tk-drabinka li + li { border-top: var(--tk-wlos) solid var(--tk-linia); }

.tk-drabinka li a {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr);
	row-gap: 0.1rem;
	padding: 0.25rem 0 0.3rem;
	text-decoration: none;
}

.tk-nr {
	grid-row: 1 / span 3;
	font: 900 1.75rem/1 var(--tk-font-c);
}

.tk-drabinka li:first-child .tk-nr { font-size: 2.75rem; }

.tk-nazwa { font: 800 1.1875rem/1.05 var(--tk-font-c); }
.tk-drabinka .tk-strzalka { --grot: 12px; height: 1.375rem; font-size: 1.125rem; }
.tk-drabinka li:first-child .tk-nazwa { font-size: 1.75rem; font-weight: 900; }
.tk-drabinka li:first-child .tk-strzalka { height: 2.375rem; font-size: 1.625rem; font-weight: 900; }

.tk-powod { font-size: 0.8125rem; line-height: 1.25; color: var(--tk-tusz-2); }

.tk-drabinka li a:hover .tk-nazwa,
.tk-drabinka li a:focus-visible .tk-nazwa { text-decoration: underline; text-decoration-thickness: 3px; }

.tk-przypis {
	margin: 0;
	padding-top: 0.4rem;
	border-top: var(--tk-wlos) solid var(--tk-tusz);
	font-size: 0.8125rem;
	color: var(--tk-tusz-2);
}

@media (prefers-reduced-motion: no-preference) {
	.tk-drabinka .tk-strzalka:not(.tk-brak) { animation: tk-wysun 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
	.tk-drabinka li:nth-child(2) .tk-strzalka { animation-delay: 0.06s; }
	.tk-drabinka li:nth-child(3) .tk-strzalka { animation-delay: 0.12s; }
	.tk-drabinka li:nth-child(4) .tk-strzalka { animation-delay: 0.18s; }
	.tk-drabinka li:nth-child(n+5) .tk-strzalka { animation-delay: 0.24s; }
	.tk-karta:target .tk-strzalka:not(.tk-brak) { animation: tk-wysun 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
}

@keyframes tk-wysun { from { width: 5.5rem; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Tabela porównawcza */
.entry-content .wp-block-table { overflow-x: auto; margin-inline: 0; }

.entry-content .wp-block-table table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.9375rem;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.entry-content .wp-block-table :is(th, td) {
	padding: 0.55rem 0.4rem;
	border: 0;
	border-bottom: var(--tk-wlos) solid var(--tk-linia);
	text-align: left;
	vertical-align: top;
}

.entry-content .wp-block-table td { white-space: nowrap; }
.entry-content .wp-block-table td:nth-child(2) { white-space: normal; }

@media (max-width: 34rem) {
	.entry-content .wp-block-table table { font-size: 0.875rem; }
	.entry-content .wp-block-table :is(th, td):first-child { max-width: 7.5rem; }
}

@media (min-width: 34rem) {
	.entry-content .wp-block-table :is(th, td) { padding-inline: 0.7rem; }
}

.entry-content .wp-block-table thead th {
	border-bottom: var(--tk-ramka) solid var(--tk-tusz);
	font-weight: 800;
}

.entry-content .wp-block-table :is(th, td):first-child {
	position: sticky;
	left: 0;
	padding-left: 0;
	background: var(--tk-papier);
	border-right: var(--tk-wlos) solid var(--tk-tusz);
	font-weight: 700;
}

.entry-content .wp-block-table figcaption { text-align: left; font-size: 0.8125rem; color: var(--tk-tusz-2); }

/* Karta produktu */
.tk-karta {
	margin-block: 2.5rem;
	padding-top: 0.75rem;
	border-top: var(--tk-regula) solid var(--tk-tusz);
	scroll-margin-top: 1rem;
}

.tk-karta-glowa {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.tk-poz {
	min-width: 3rem;
	padding: 0.15rem 0.4rem 0.3rem;
	border: var(--tk-ramka) solid var(--tk-tusz);
	font: 900 2rem/1 var(--tk-font-c);
	text-align: center;
	white-space: nowrap;
}

.tk-poz small { font-size: 1rem; }

.tk-karta:target .tk-poz { background: var(--tk-tusz); color: var(--tk-papier); }

.entry-content .tk-karta h2 { font-size: 2rem; margin: 0; }
.entry-content .tk-karta:first-of-type h2 { font-size: 2.5rem; }
.tk-karta:first-of-type .tk-poz { font-size: 2.75rem; }

.tk-karta p { margin: 0 0 0.75rem; }

.tk-karta-glowa p { margin: 0.25rem 0 0; line-height: 1.35; }

.tk-karta .tk-skala { margin-top: 1rem; }

.tk-oceny {
	display: grid;
	gap: 0 1.5rem;
	margin-block: 1rem;
}

@media (min-width: 34rem) { .tk-oceny { grid-template-columns: 1fr 1fr; } }

.entry-content .tk-oceny h3 {
	margin: 0;
	padding-block: 0.4rem 0.25rem;
	border-bottom: var(--tk-ramka) solid var(--tk-tusz);
	font-size: 1.375rem;
}

.entry-content .tk-oceny ul { margin: 0 0 0.75rem; padding: 0; list-style: none; }

.tk-oceny li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.5rem;
	border-bottom: var(--tk-wlos) solid var(--tk-linia);
	line-height: 1.35;
}

/* Znak plus / minus rysowany, nie z czcionki. */
.tk-oceny li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95em;
	width: 0.875rem;
	height: 3px;
	background: var(--tk-tusz);
}

.tk-plusy li::after {
	content: "";
	position: absolute;
	left: calc(0.4375rem - 1.5px);
	top: calc(0.95em - 0.4375rem + 1.5px);
	width: 3px;
	height: 0.875rem;
	background: var(--tk-tusz);
}

.entry-content .tk-parametry { margin: 0 0 1rem; }

.tk-parametry > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: var(--tk-wlos) solid var(--tk-linia);
}

.tk-parametry dt { font-weight: 700; }

.entry-content .tk-parametry dd { margin: 0; }

.tk-parametry .tk-wartosc {
	font: 900 1.5rem/1 var(--tk-font-c);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.tk-parametry .tk-opis { grid-column: 1 / -1; font-size: 0.9375rem; line-height: 1.35; }

.tk-zrodlo { display: block; font-size: 0.8125rem; color: var(--tk-tusz-2); }
.tk-zrodlo a, .tk-zrodlo a:visited { color: inherit; }

/* Przyciski do sklepów: strzałka wychodząca, nie „kup teraz”. */
.tk-sklepy { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.75rem; }

.entry-content a.tk-btn {
	--grot: 18px;
	box-sizing: border-box;
	display: flex;
	flex: 1 1 14rem;
	align-items: center;
	min-height: 52px;
	padding: 0.5rem calc(var(--grot) + 0.75rem) 0.5rem 1rem;
	background: var(--tk-tusz);
	color: var(--tk-papier);
	clip-path: polygon(0 0, calc(100% - var(--grot)) 0, 100% 50%, calc(100% - var(--grot)) 100%, 0 100%);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.entry-content a.tk-btn:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.entry-content a.tk-btn:active { translate: 2px 0; }

/* Obrys przycięty przez clip-path, więc fokus rysowany do środka. */
.entry-content a.tk-btn:focus-visible { outline: 3px solid var(--tk-papier); outline-offset: -6px; }

/* Drugi sklep: czarny obrys strzałki z dwóch warstw (ramkę przyciąłby clip-path). */
.entry-content a.tk-btn-2 { position: relative; isolation: isolate; color: var(--tk-tusz); }

.entry-content a.tk-btn-2::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 2.5px 3.5px 2.5px 2.5px;
	background: var(--tk-papier);
	clip-path: polygon(0 0, calc(100% - var(--grot) + 1px) 0, 100% 50%, calc(100% - var(--grot) + 1px) 100%, 0 100%);
}

.entry-content a.tk-btn-2:focus-visible { outline-color: var(--tk-tusz); }

.tk-powrot { font-size: 0.875rem; }
.tk-powrot a { display: inline-block; padding: 0.5rem 0; }

/* FAQ */
.tk-faq details { border-bottom: var(--tk-wlos) solid var(--tk-tusz); }

.tk-faq details { margin: 0; }

.tk-faq summary {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	min-height: 48px;
	padding: 0.75rem 2rem 0.75rem 0;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.tk-faq summary::-webkit-details-marker { display: none; }

.tk-faq summary::before,
.tk-faq summary::after {
	content: "";
	position: absolute;
	right: 0.25rem;
	top: 1.4rem;
	width: 1rem;
	height: 3px;
	background: var(--tk-tusz);
}

.tk-faq summary::after { rotate: 90deg; }
.tk-faq details[open] summary::after { rotate: 0deg; }
.tk-faq details > p { margin: 0 0 1rem; }

/* Metryczka */
.tk-metryczka {
	margin-top: 3rem;
	padding: 0.75rem;
	border: var(--tk-ramka) solid var(--tk-tusz);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.tk-metryczka p { margin: 0 0 0.4rem; }
.tk-metryczka p:last-child { margin: 0; }

/* Strona główna i kategoria */
.tk-wstep { margin: 0.75rem 0 0; max-width: 34rem; }

.tk-dzial { margin-top: 2.5rem; border-top: var(--tk-regula) solid var(--tk-tusz); padding-top: 0.6rem; }

.tk-dzial h2 a { text-decoration: none; }
.tk-dzial h2 a:hover { text-decoration: underline; }

.tk-lista { margin: 0.5rem 0 0; padding: 0; list-style: none; }

.tk-kolumna > .tk-lista { margin-top: 1.5rem; border-top: var(--tk-regula) solid var(--tk-tusz); }

.tk-lista li { border-bottom: var(--tk-wlos) solid var(--tk-tusz); }

.tk-lista a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1.25rem;
	align-items: center;
	column-gap: 0.75rem;
	padding: 0.75rem 0;
	text-decoration: none;
}

.tk-lista strong { font: 800 1.5rem/1.05 var(--tk-font-c); }
.tk-lista time { grid-column: 1; font-size: 0.875rem; color: var(--tk-tusz-2); }

.tk-lista a::after {
	content: "";
	grid-column: 2;
	grid-row: 1;
	height: 1rem;
	background: var(--tk-tusz);
	clip-path: polygon(0 30%, 50% 30%, 50% 0, 100% 50%, 50% 100%, 50% 70%, 0 70%);
}

.tk-lista a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; }

/* Mini-drabinka w wierszu listy: trzy pierwsze miejsca z wpisu. */
.tk-lista .tk-mini {
	grid-column: 1 / -1;
	display: block;
	margin-block: 0.5rem 0.35rem;
	padding: 0.4rem 0.6rem 0.5rem;
	border: var(--tk-ramka) solid var(--tk-tusz);
}

.tk-mini .tk-skala { font-size: 0.8125rem; }

.tk-mini-w {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	padding-block: 0.15rem;
}

.tk-mini-w .tk-nr { grid-row: 1 / span 2; font-size: 1.375rem; }
.tk-mini-w .tk-nazwa { font-size: 1.0625rem; }
.tk-mini .tk-strzalka { --grot: 12px; height: 1.25rem; font-size: 1.0625rem; }

.tk-pusto { margin: 0.75rem 0 0; max-width: 24rem; }

.navigation.pagination { margin-top: 1.5rem; }
.nav-links .page-numbers { display: inline-block; min-width: 44px; padding: 0.6rem 0; text-align: center; font-weight: 700; }
.nav-links .current { border-bottom: var(--tk-regula) solid var(--tk-tusz); }

/* Stopka */
.tk-stopka { border-top: var(--tk-regula) solid var(--tk-tusz); font-size: 0.9375rem; }

.tk-stopka-w {
	box-sizing: border-box;
	max-width: calc(var(--tk-kolumna) + 2 * var(--tk-margines));
	margin-inline: auto;
	padding: 1.25rem var(--tk-margines) 2rem;
}

.tk-stopka ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.tk-stopka li a { display: inline-block; padding: 0.6rem 0; font-weight: 700; }
.tk-stopka p { margin: 0 0 0.4rem; max-width: 34rem; }

/* Formularz wyszukiwania (404, brak wyników) */
input[type="search"] { border: var(--tk-wlos) solid var(--tk-tusz); border-radius: 0; }
.search-submit, input[type="submit"] { background: var(--tk-tusz); color: var(--tk-papier); border-radius: 0; }

/* Ponowne otwarcie banera zgód: wygląda jak link w stopce. */
.tk-stopka button.tk-zgody {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	min-height: 44px;
	padding: 0;
	text-decoration: underline;
}
