/* ==========================================================================
   Ładna Polska – główny arkusz stylów
   Spis treści:
   1. Font (self-hosted Poppins, latin + latin-ext)
   2. Tokeny (:root)
   3. Reset / podstawy
   4. Dostępność (skip-link, focus, screen-reader)
   5. Layout (kontenery, sekcje, grid)
   6. Header / nawigacja
   7. Hero
   8. Karty
   9. Przyciski / linki
   10. Single / strona / treść (entry-content)
   11. Breadcrumbs
   12. Archiwum / wyszukiwanie / paginacja
   13. 404 / stan pusty
   14. Footer
   15. Formularz wyszukiwania
   16. Responsywność
   17. Preferencje ruchu
   ========================================================================== */

/* 1. FONT ------------------------------------------------------------------ */

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/poppins-400-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: 'Poppins';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/poppins-400-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/poppins-500-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: 'Poppins';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/poppins-500-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/poppins-600-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: 'Poppins';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/poppins-600-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/poppins-700-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: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/poppins-700-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. TOKENY ---------------------------------------------------------------- */

:root {
	--lp-bg: #ffffff;
	--lp-text: #15151b;
	--lp-muted: #6c6c75;
	--lp-accent: #2f80ed;
	--lp-accent-hover: #1c63c4;
	--lp-cta: #f7e04b;
	--lp-cta-text: #15151b;
	--lp-cta-hover: #ecd227;
	--lp-surface: #f5f6f7;
	--lp-border: #eaeaec;

	--lp-max: 1200px;
	--lp-read: 720px;

	--lp-font: 'Poppins', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--lp-radius: 2px;
	--lp-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
	--lp-shadow-header: 0 1px 0 var(--lp-border);
	--lp-shadow-header-scrolled: 0 2px 12px rgba(0, 0, 0, 0.07);

	--lp-section-y: clamp(3rem, 8vw, 6rem);
	--lp-gap: clamp(1.5rem, 3vw, 2.5rem);
	--lp-transition: 180ms ease;
}

/* 3. RESET / PODSTAWY ------------------------------------------------------ */

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

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

body {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-font);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

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

a {
	color: var(--lp-accent);
	text-decoration: none;
	transition: color var(--lp-transition);
}

a:hover {
	color: var(--lp-accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--lp-text);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.2em;
}

ul,
ol {
	padding-left: 1.4em;
}

blockquote {
	margin: 1.6em 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* 4. DOSTĘPNOŚĆ ------------------------------------------------------------ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.lp-skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 1000;
	background: var(--lp-text);
	color: #fff;
	padding: 12px 20px;
	font-weight: 600;
	border-radius: var(--lp-radius);
	transition: top var(--lp-transition);
}

.lp-skip-link:focus {
	top: 8px;
	color: #fff;
}

:focus-visible {
	outline: 3px solid var(--lp-accent);
	outline-offset: 2px;
}

/* Usuwamy domyślny outline tylko gdy focus-visible jest wspierany. */
:focus:not(:focus-visible) {
	outline: none;
}

/* 5. LAYOUT ---------------------------------------------------------------- */

.lp-container {
	width: 100%;
	max-width: var(--lp-max);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.lp-narrow {
	max-width: var(--lp-read);
}

.lp-section {
	padding-block: var(--lp-section-y);
}

.lp-section__head {
	text-align: center;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.lp-section__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
}

.lp-grid {
	display: grid;
	gap: var(--lp-gap);
}

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

/* 6. HEADER / NAWIGACJA ---------------------------------------------------- */

.lp-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--lp-bg);
	box-shadow: var(--lp-shadow-header);
	transition: box-shadow var(--lp-transition);
}

.lp-header.is-scrolled {
	box-shadow: var(--lp-shadow-header-scrolled);
}

.lp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}

.lp-branding {
	display: flex;
	align-items: center;
}

.lp-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--lp-text);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.1;
}

.lp-logo:hover {
	color: var(--lp-text);
}

.lp-logo__icon {
	flex: none;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

/* Menu */
.lp-nav {
	display: flex;
}

.lp-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
}

.lp-menu li {
	position: relative;
	margin: 0;
}

.lp-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--lp-text);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lp-menu a:hover,
.lp-menu .current-menu-item > a,
.lp-menu .current_page_item > a,
.lp-menu .current-menu-ancestor > a {
	color: var(--lp-accent);
}

/* Pod-menu (dropdown) */
.lp-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--lp-bg);
	border: 1px solid var(--lp-border);
	box-shadow: var(--lp-shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--lp-transition), transform var(--lp-transition), visibility var(--lp-transition);
	z-index: 110;
}

.lp-menu .menu-item-has-children:hover > .sub-menu,
.lp-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lp-menu .sub-menu a {
	display: block;
	padding: 0.4rem 1.2rem;
	letter-spacing: 0.04em;
	min-height: 44px;
}

/* Strzałka rodzica (desktop dekoracyjna) */
.lp-menu .menu-item-has-children > a::after {
	content: '⌄';
	margin-left: 0.35rem;
	font-size: 0.9em;
	line-height: 1;
}

/* Przycisk pod-menu z JS (mobile) */
.lp-submenu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	padding: 0 0.5rem;
	min-width: 44px;
	min-height: 44px;
	font-size: 1.2rem;
	line-height: 1;
}

/* Hamburger */
.lp-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px;
}

.lp-nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--lp-text);
	transition: transform var(--lp-transition), opacity var(--lp-transition);
}

.lp-nav-toggle[aria-expanded='true'] .lp-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.lp-nav-toggle[aria-expanded='true'] .lp-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.lp-nav-toggle[aria-expanded='true'] .lp-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* 7. HERO ------------------------------------------------------------------ */

.lp-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(420px, 70vh, 720px);
	overflow: hidden;
	color: #fff;
}

.lp-hero.no-image {
	color: #fff;
	background: linear-gradient(135deg, #1c63c4 0%, #2f80ed 55%, #4f9bff 100%);
}

.lp-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.lp-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lp-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.05) 100%);
}

.lp-hero__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(3rem, 8vw, 6rem);
}

.lp-hero__content {
	max-width: 760px;
	text-align: left;
}

.lp-hero__title {
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
	margin-bottom: 0.4em;
}

.lp-hero__text {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	max-width: 56ch;
	margin-bottom: 1.8em;
}

/* 8. KARTY ----------------------------------------------------------------- */

.lp-card {
	display: flex;
	flex-direction: column;
	background: transparent;
}

.lp-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--lp-surface);
	border-radius: var(--lp-radius);
}

.lp-thumb,
.lp-card__media > .lp-thumb {
	display: block;
	width: 100%;
	height: 100%;
}

.lp-thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 200ms ease;
}

.lp-card:hover .lp-thumb__img {
	transform: scale(1.03);
}

.lp-card__body {
	padding-top: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.lp-card__title {
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.lp-card__title a {
	color: var(--lp-text);
}

.lp-card__title a:hover {
	color: var(--lp-accent);
}

.lp-card__excerpt {
	color: var(--lp-muted);
	margin: 0;
	font-size: 0.98rem;
}

/* Karty na szarej powierzchni: białe z cieniem. */
.lp-featured,
.lp-related {
	background: var(--lp-surface);
}

.lp-featured .lp-card,
.lp-related .lp-card {
	background: var(--lp-bg);
	box-shadow: var(--lp-shadow-card);
	border-radius: var(--lp-radius);
	overflow: hidden;
	transition: transform var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-featured .lp-card:hover,
.lp-related .lp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.lp-featured .lp-card__media,
.lp-related .lp-card__media {
	border-radius: 0;
}

.lp-featured .lp-card__body,
.lp-related .lp-card__body {
	padding: 1.1rem 1.25rem 1.4rem;
}

/* 9. PRZYCISKI / LINKI ----------------------------------------------------- */

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 16px 32px;
	font-weight: 600;
	border: 0;
	border-radius: var(--lp-radius);
	cursor: pointer;
	text-align: center;
	transition: background-color var(--lp-transition), transform var(--lp-transition);
}

.lp-btn--cta {
	background: var(--lp-cta);
	color: var(--lp-cta-text);
}

.lp-btn--cta:hover {
	background: var(--lp-cta-hover);
	color: var(--lp-cta-text);
	transform: translateY(-2px);
}

.lp-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--lp-accent);
	font-weight: 600;
	font-size: 0.95rem;
	margin-top: 0.2rem;
	align-self: flex-start;
}

.lp-readmore__arrow {
	display: inline-block;
	transition: transform var(--lp-transition);
}

.lp-readmore:hover {
	text-decoration: underline;
}

.lp-readmore:hover .lp-readmore__arrow {
	transform: translateX(4px);
}

/* 10. SINGLE / STRONA / TREŚĆ ---------------------------------------------- */

.lp-single__hero {
	position: relative;
}

.lp-single__hero-media {
	position: relative;
	width: 100%;
	max-height: 70vh;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.lp-single__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lp-single__hero-box {
	position: relative;
	margin-top: -90px;
	z-index: 2;
}

.lp-single__hero-box-inner {
	background: var(--lp-bg);
	max-width: var(--lp-read);
	padding: clamp(1.75rem, 4vw, 3rem);
	box-shadow: var(--lp-shadow-card);
	border-radius: var(--lp-radius);
}

.lp-single__title,
.lp-page__title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	margin: 0.3em 0 0;
}

.lp-single__header,
.lp-page__header {
	padding-top: clamp(2rem, 5vw, 3rem);
}

.lp-page__hero {
	width: 100%;
	max-height: 50vh;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.lp-page__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lp-single__content,
.lp-page__content {
	padding-top: clamp(2rem, 5vw, 3rem);
	padding-bottom: clamp(2rem, 5vw, 3rem);
}

/* Treść wpisu */
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.entry-content > p:first-of-type::first-letter {
	float: left;
	font-size: 3.6em;
	line-height: 0.78;
	font-weight: 700;
	padding: 0.05em 0.12em 0 0;
	color: var(--lp-accent);
}

.entry-content h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	margin-top: 1.8em;
}

.entry-content h3 {
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	margin-top: 1.6em;
}

.entry-content h4 {
	font-size: 1.2rem;
	margin-top: 1.4em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.5em;
}

.entry-content li {
	margin-bottom: 0.5em;
}

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

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 0.4em 0 0.4em 1.4em;
	border-left: 4px solid var(--lp-accent);
	color: var(--lp-text);
	font-size: 1.15em;
	font-style: italic;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content img {
	border-radius: var(--lp-radius);
	height: auto;
}

.entry-content figure {
	margin: 1.8em 0;
}

.entry-content figcaption,
.wp-caption-text {
	color: var(--lp-muted);
	font-size: 0.9rem;
	text-align: center;
	margin-top: 0.6em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: 0.98rem;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--lp-border);
	padding: 0.7em 0.9em;
	text-align: left;
}

.entry-content th {
	background: var(--lp-surface);
	font-weight: 600;
}

.entry-content pre {
	background: var(--lp-surface);
	padding: 1.2em;
	overflow-x: auto;
	border-radius: var(--lp-radius);
	font-size: 0.9rem;
}

.entry-content code {
	background: var(--lp-surface);
	padding: 0.15em 0.4em;
	border-radius: var(--lp-radius);
	font-size: 0.9em;
}

.entry-content pre code {
	background: none;
	padding: 0;
}

/* Wyrównanie WP */
.entry-content .alignleft {
	float: left;
	margin: 0.4em 1.6em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.6em;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content .alignwide {
	width: min(100% + 8vw, 92vw);
	margin-left: 50%;
	transform: translateX(-50%);
	max-width: 1000px;
}

/* Tagi */
.lp-tags-wrap {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--lp-border);
}

.lp-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lp-tags a {
	display: inline-block;
	padding: 0.3em 0.8em;
	background: var(--lp-surface);
	border-radius: var(--lp-radius);
	font-size: 0.85rem;
	color: var(--lp-text);
}

.lp-tags a:hover {
	color: var(--lp-accent);
}

.lp-page-links {
	margin: 2rem 0;
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	align-items: center;
}

.lp-page-links a,
.lp-page-links > span {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
}

/* 11. BREADCRUMBS ---------------------------------------------------------- */

.lp-breadcrumbs {
	font-size: 0.85rem;
}

.lp-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	color: var(--lp-muted);
}

.lp-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.lp-breadcrumbs__item:not(:last-child)::after {
	content: '›';
	color: var(--lp-muted);
}

.lp-breadcrumbs a {
	color: var(--lp-muted);
}

.lp-breadcrumbs a:hover {
	color: var(--lp-accent);
}

.lp-breadcrumbs [aria-current='page'] {
	color: var(--lp-text);
	font-weight: 500;
}

/* 12. ARCHIWUM / WYSZUKIWANIE / PAGINACJA ---------------------------------- */

.lp-archive-header {
	padding-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.lp-archive-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-top: 0.3em;
}

.lp-archive-desc {
	color: var(--lp-muted);
	max-width: var(--lp-read);
}

.lp-pagination {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.lp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
}

.lp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	color: var(--lp-text);
	font-weight: 500;
}

.lp-pagination .page-numbers:hover {
	border-color: var(--lp-accent);
	color: var(--lp-accent);
}

.lp-pagination .page-numbers.current {
	background: var(--lp-accent);
	border-color: var(--lp-accent);
	color: #fff;
}

.lp-pagination .page-numbers.dots {
	border: 0;
	min-width: auto;
}

/* 13. 404 / STAN PUSTY ----------------------------------------------------- */

.lp-404 {
	text-align: center;
	padding-block: clamp(3rem, 8vw, 6rem);
	max-width: 640px;
}

.lp-404__code {
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 700;
	line-height: 1;
	color: var(--lp-accent);
	margin: 0;
}

.lp-404__title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	margin-top: 0.4em;
}

.lp-404__text {
	color: var(--lp-muted);
	max-width: 46ch;
	margin-inline: auto;
}

.lp-404__search {
	margin: 1.8rem auto;
	max-width: 480px;
}

.lp-none {
	text-align: center;
	padding-block: clamp(3rem, 8vw, 5rem);
}

.lp-none__title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.lp-none__text {
	color: var(--lp-muted);
	max-width: 46ch;
	margin: 0 auto 1.8rem;
}

/* 14. FOOTER --------------------------------------------------------------- */

.lp-footer {
	background: var(--lp-surface);
	margin-top: var(--lp-section-y);
}

.lp-footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.lp-footer__desc {
	color: var(--lp-muted);
	margin-top: 1rem;
	max-width: 40ch;
}

.lp-footer__heading {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
}

.lp-footer__menu,
.lp-footer__catlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.lp-footer__menu a,
.lp-footer__catlist a {
	color: var(--lp-text);
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}

.lp-footer__menu a:hover,
.lp-footer__catlist a:hover {
	color: var(--lp-accent);
}

.lp-footer__bottom {
	border-top: 1px solid var(--lp-border);
	padding-block: 1.4rem;
}

.lp-copyright {
	margin: 0;
	color: var(--lp-muted);
	font-size: 0.9rem;
	text-align: center;
}

/* 15. FORMULARZ WYSZUKIWANIA ----------------------------------------------- */

.lp-searchform {
	display: flex;
	gap: 0.5rem;
}

.lp-searchform__field {
	flex: 1;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-bg);
}

.lp-searchform__field:focus {
	border-color: var(--lp-accent);
	outline: 2px solid var(--lp-accent);
	outline-offset: 1px;
}

.lp-searchform__submit {
	min-height: 44px;
	padding: 0 1.4rem;
	background: var(--lp-text);
	color: #fff;
	border: 0;
	border-radius: var(--lp-radius);
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--lp-transition);
}

.lp-searchform__submit:hover {
	background: var(--lp-accent);
}

/* 16. RESPONSYWNOŚĆ -------------------------------------------------------- */

@media (max-width: 1024px) {
	.lp-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.lp-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 782px) {
	/* Hamburger + menu mobilne */
	.lp-nav-toggle {
		display: flex;
	}

	.lp-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--lp-bg);
		border-top: 1px solid var(--lp-border);
		box-shadow: var(--lp-shadow-card);
		display: none;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}

	.lp-nav.is-open {
		display: block;
	}

	.lp-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 0;
	}

	.lp-menu li {
		border-bottom: 1px solid var(--lp-border);
	}

	.lp-menu > li:last-child {
		border-bottom: 0;
	}

	.lp-menu a {
		padding: 0.4rem clamp(1rem, 4vw, 2rem);
		width: 100%;
	}

	/* Strzałka rodzica chowana – zastępuje ją przycisk JS */
	.lp-menu .menu-item-has-children > a::after {
		display: none;
	}

	.lp-menu .menu-item-has-children {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.lp-menu .menu-item-has-children > a {
		grid-column: 1;
	}

	.lp-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		grid-column: 2;
		transition: transform var(--lp-transition);
	}

	.lp-menu .menu-item-has-children.is-expanded > .lp-submenu-toggle {
		transform: rotate(180deg);
	}

	/* Pod-menu jako akordeon */
	.lp-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		background: var(--lp-surface);
		display: none;
		min-width: 0;
		width: 100%;
		grid-column: 1 / -1;
		padding: 0;
	}

	.lp-menu .menu-item-has-children.is-expanded > .sub-menu {
		display: block;
	}

	.lp-menu .sub-menu a {
		padding-left: clamp(2rem, 8vw, 3rem);
	}
}

@media (max-width: 640px) {
	.lp-grid--3 {
		grid-template-columns: 1fr;
	}

	.lp-footer__inner {
		grid-template-columns: 1fr;
	}

	.lp-single__hero-box {
		margin-top: -50px;
	}

	.lp-searchform {
		flex-direction: column;
	}
}

/* 17. PREFERENCJE RUCHU ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.lp-card:hover .lp-thumb__img {
		transform: none;
	}
}
