/* Meble Sosnowski – style główne (układ, nagłówek, stopka, strona główna).
   Style sklepu: sklep.css. */

@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/barlow-800-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:"Barlow";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/barlow-800-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}

/* ==========================================================================
   1. Zmienne i warianty kolorystyczne
   ========================================================================== */

:root {
	--czerwien: #d80118;
	--font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 14px;
	--radius-sm: 8px;
	--photo-bg: #edf0f7; /* tło zdjęć produktowych */

	/* pola formularzy są jasne lub ciemne zależnie od wariantu, niezależnie od tła sekcji */
	--field: #fff;
	--field-text: #131313;
	--field-line: #cbc6be;
	--field-placeholder: #7a7773;
}

/* --- Biały (domyślny) --- */
html,
html[data-wariant="bialy"] {
	color-scheme: light;
	--bg: #fff;
	--bg-soft: #f6f4f1;
	--surface: #fff;
	--text: #1b1b1b;
	--heading: #111;
	--muted: #66625e;
	--line: #e5e1db;
	--accent-text: #c80016;
	--ring: #d80118;
	--btn: #d80118;
	--on-btn: #fff;
	--btn-hover: #131313;
	--on-btn-hover: #fff;

	--panel: #f6f4f1;
	--panel-text: #1b1b1b;
	--panel-heading: #111;
	--panel-muted: #66625e;
	--panel-line: #dedad3;
	--panel-accent-text: #c80016;
	--panel-btn: #d80118;
	--panel-on-btn: #fff;
	--panel-btn-hover: #131313;
	--panel-on-btn-hover: #fff;
	--panel-field-line: #cbc6be;

	--header: #fff;
	--header-line: #ece8e2;
	--hero: #f6f4f1;
	--logo-tree: #d80118;
	--logo-text: #000;

	--dark: #131313;
	--cta: #131313;
	--cta-text: #fff;
	--cta-muted: #c9c7c4;
	--cta-btn: #d80118;
	--cta-on-btn: #fff;
	--cta-btn-hover: #fff;
	--cta-on-btn-hover: #131313;
}

/* --- Czarny --- */
html[data-wariant="czarny"] {
	color-scheme: dark;
	--bg: #0c0c0d;
	--bg-soft: #151516;
	--surface: #0c0c0d;
	--text: #f1f0ee;
	--heading: #fff;
	--muted: #a9a7a3;
	--line: #2b2b2d;
	--accent-text: #ff5a66;
	--ring: #ff5a66;
	--btn: #d80118;
	--on-btn: #fff;
	--btn-hover: #fff;
	--on-btn-hover: #0c0c0d;

	--panel: #171718;
	--panel-text: #f1f0ee;
	--panel-heading: #fff;
	--panel-muted: #a9a7a3;
	--panel-line: #2f2f31;
	--panel-accent-text: #ff5a66;
	--panel-btn: #d80118;
	--panel-on-btn: #fff;
	--panel-btn-hover: #fff;
	--panel-on-btn-hover: #0c0c0d;
	--panel-field-line: #3d3d40;

	--field: #111112;
	--field-text: #f1f0ee;
	--field-line: #3d3d40;
	--field-placeholder: #8d8b88;

	--header: #0c0c0d;
	--header-line: #232325;
	--hero: #131314;
	--logo-tree: #d80118;
	--logo-text: #fff;

	--dark: #000;
	--cta: #d80118;
	--cta-text: #fff;
	--cta-muted: #ffecee;
	--cta-btn: #fff;
	--cta-on-btn: #b30014;
	--cta-btn-hover: #0c0c0d;
	--cta-on-btn-hover: #fff;
}

/* --- Czerwony --- */
html[data-wariant="czerwony"] {
	color-scheme: light;
	--bg: #d80118;
	--bg-soft: #bd0014;
	--surface: #d80118;
	--text: #fff;
	--heading: #0b0b0b;
	--muted: #ffecee;
	--line: rgba(255, 255, 255, 0.3);
	--accent-text: #fff;
	--ring: #fff;
	--btn: #111;
	--on-btn: #fff;
	--btn-hover: #fff;
	--on-btn-hover: #b30014;

	--panel: #fff;
	--panel-text: #1b1b1b;
	--panel-heading: #111;
	--panel-muted: #66625e;
	--panel-line: #e5e1db;
	--panel-accent-text: #c80016;
	--panel-btn: #d80118;
	--panel-on-btn: #fff;
	--panel-btn-hover: #131313;
	--panel-on-btn-hover: #fff;
	--panel-field-line: #cbc6be;

	--field-line: #fff;

	--header: #d80118;
	--header-line: rgba(0, 0, 0, 0.16);
	--hero: #d80118;
	--logo-tree: #fff;
	--logo-text: #000;

	--dark: #131313;
	--cta: #131313;
	--cta-text: #fff;
	--cta-muted: #c9c7c4;
	--cta-btn: #d80118;
	--cta-on-btn: #fff;
	--cta-btn-hover: #fff;
	--cta-on-btn-hover: #131313;
}

/* Panel: jasna/ciemna „karta” – wewnątrz obowiązują kolory panelu */
.ms-panel,
html[data-wariant="czerwony"] .ms-sheet {
	--surface: var(--panel);
	--text: var(--panel-text);
	--heading: var(--panel-heading);
	--muted: var(--panel-muted);
	--line: var(--panel-line);
	--accent-text: var(--panel-accent-text);
	--ring: var(--panel-btn);
	--btn: var(--panel-btn);
	--on-btn: var(--panel-on-btn);
	--btn-hover: var(--panel-btn-hover);
	--on-btn-hover: var(--panel-on-btn-hover);
	--field-line: var(--panel-field-line);
	background: var(--panel);
	color: var(--text);
}

/* Sekcje zawsze ciemne: górny pasek i stopka */
.ms-topbar,
.ms-footer {
	--surface: var(--dark);
	--text: #f1f0ee;
	--heading: #fff;
	--muted: #a9a7a3;
	--line: #2c2c2e;
	--accent-text: #ff5a66;
	--ring: #fff;
	--logo-tree: #d80118;
	--logo-text: #fff;
	background: var(--dark);
	color: var(--text);
}

/* ==========================================================================
   2. Podstawy
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 110px;
}

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

html.ms-anim,
html.ms-anim body,
html.ms-anim .ms-header,
html.ms-anim .ms-hero,
html.ms-anim .ms-section,
html.ms-anim .ms-cta,
html.ms-anim .ms-logo use {
	transition: background-color 0.3s ease, color 0.3s ease, fill 0.3s ease, border-color 0.3s ease;
}

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

img {
	display: block;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	color: var(--heading);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
	margin: 0 0 1.1em;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 3px;
	border-radius: 3px;
}

::selection {
	background: #d80118;
	color: #fff;
}

html[data-wariant="czerwony"] ::selection {
	background: #111;
}

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

.ms-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: #111;
	color: #fff;
	border-radius: var(--radius-sm);
}

.ms-skip:focus {
	top: 12px;
}

.ms-container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.ms-container--waski {
	max-width: 900px;
}

.ms-icon {
	flex: none;
	width: 1.4em;
	height: 1.4em;
}

.ms-eyebrow {
	display: inline-block;
	margin: 0 0 0.9em;
	color: var(--accent-text);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.ms-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 2px;
	white-space: nowrap;
}

.ms-link .ms-icon {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.2s ease;
}

.ms-link:hover .ms-icon {
	transform: translateX(3px);
}

/* ==========================================================================
   3. Przyciski i formularze
   ========================================================================== */

.ms-btn,
.wp-element-button,
.wpcf7-submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-page a.button,
.woocommerce-page button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.7em 1.5em;
	border: 1.5px solid var(--btn);
	border-radius: var(--radius-sm);
	background: var(--btn);
	color: var(--on-btn);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ms-btn:hover,
.wp-element-button:hover,
.wpcf7-submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
	background: var(--btn-hover);
	border-color: var(--btn-hover);
	color: var(--on-btn-hover);
}

.ms-btn--lg {
	min-height: 56px;
	padding-inline: 1.9em;
	font-size: 1rem;
}

.ms-btn--ghost,
.woocommerce a.button.wc-backward,
.woocommerce button.button[name="update_cart"],
.woocommerce button.button[name="apply_coupon"],
.woocommerce-page a.button.wc-backward,
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-error a.button,
.woocommerce .woocommerce-MyAccount-content a.button {
	background: transparent;
	border-color: var(--text);
	color: var(--text);
}

.ms-btn--ghost:hover,
.woocommerce a.button.wc-backward:hover,
.woocommerce button.button[name="update_cart"]:hover,
.woocommerce button.button[name="apply_coupon"]:hover,
.woocommerce-page a.button.wc-backward:hover,
.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce .woocommerce-error a.button:hover,
.woocommerce .woocommerce-MyAccount-content a.button:hover {
	background: var(--text);
	border-color: var(--text);
	color: var(--surface);
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce a.button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65em 0.9em;
	border: 1px solid var(--field-line);
	border-radius: var(--radius-sm);
	background: var(--field);
	color: var(--field-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

select {
	padding-right: 2.4em;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	-webkit-appearance: none;
	appearance: none;
}

::placeholder {
	color: var(--field-placeholder);
	opacity: 1;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 1px;
	border-radius: var(--radius-sm);
}

input[type="checkbox"],
input[type="radio"] {
	width: 1.15em;
	height: 1.15em;
	margin: 0 0.5em 0 0;
	accent-color: #d80118;
	vertical-align: -0.15em;
}

label {
	font-weight: 500;
}

/* ==========================================================================
   4. Przełącznik wariantu
   ========================================================================== */

.ms-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ms-switch__label {
	margin-right: 2px;
	font-size: 0.82rem;
	opacity: 0.85;
}

.ms-switch__btn {
	position: relative;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid rgba(140, 140, 140, 0.7);
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.ms-switch__btn::after {
	content: "";
	position: absolute;
	inset: -8px -5px;
}

.ms-switch__btn:hover {
	transform: scale(1.12);
}

.ms-switch__btn--bialy { background: #fff; }
.ms-switch__btn--czarny { background: #0c0c0d; }
.ms-switch__btn--czerwony { background: #d80118; }

.ms-switch__btn[aria-pressed="true"] {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ==========================================================================
   5. Górny pasek i nagłówek
   ========================================================================== */

.ms-topbar {
	font-size: 0.85rem;
}

.ms-topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.ms-topbar__msg {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 500;
}

.ms-topbar__right {
	display: flex;
	align-items: center;
	gap: 22px;
}

.ms-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	white-space: nowrap;
}

.ms-topbar__link:hover {
	text-decoration: underline;
}

.ms-topbar .ms-icon {
	width: 1.15em;
	height: 1.15em;
	opacity: 0.85;
}

.ms-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header);
	border-bottom: 1px solid var(--header-line);
}

.ms-header__in {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.5vw, 40px);
	min-height: 84px;
}

.ms-brand {
	display: block;
	flex: none;
	line-height: 0;
	color: var(--logo-tree);
}

.ms-drzewko {
	display: block;
	width: auto;
	height: 62px;
	aspect-ratio: 578 / 460;
}

.ms-logo {
	display: block;
	width: auto;
	height: 52px;
	aspect-ratio: 1807 / 460;
}

.ms-nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

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

.ms-menu {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.5vw, 28px);
}

.ms-menu > li {
	position: relative;
}

.ms-menu a {
	display: block;
	padding: 10px 0;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 4px) / 0 2px;
	transition: background-size 0.2s ease;
}

.ms-menu a:hover,
.ms-menu .is-current > a {
	background-size: 100% 2px;
}

.ms-menu .ms-menu__promo > a {
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--btn);
	color: var(--on-btn);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.ms-menu .ms-menu__promo > a:hover {
	background: var(--btn-hover);
	color: var(--on-btn-hover);
}

.ms-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 5;
	min-width: 220px;
	padding: 10px 16px;
	border: 1px solid var(--header-line);
	border-radius: var(--radius-sm);
	background: var(--header);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.ms-menu li:hover > .sub-menu,
.ms-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ms-nav__extra {
	display: none;
}

.ms-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.ms-action {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ms-action:hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
}

.ms-action .ms-icon {
	width: 24px;
	height: 24px;
}

.ms-action--menu {
	display: none;
}

.ms-action__close {
	display: none;
}

.ms-action[aria-expanded="true"] .ms-action__open {
	display: none;
}

.ms-action[aria-expanded="true"] .ms-action__close {
	display: block;
}

.ms-action__open,
.ms-action__close {
	line-height: 0;
}

.ms-cart-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--btn);
	color: var(--on-btn);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}

.ms-cart-count.is-empty {
	display: none;
}

.ms-search {
	border-top: 1px solid var(--header-line);
	background: var(--header);
}

.ms-search[hidden] {
	display: none;
}

.ms-searchform {
	display: flex;
	gap: 10px;
	padding-block: 16px;
}

.ms-searchform input[type="search"] {
	flex: 1;
}

/* --- nagłówek: tablety i telefony --- */
@media (max-width: 1199px) {
	.ms-action--menu {
		display: inline-grid;
	}

	.ms-header__in {
		min-height: 68px;
		justify-content: space-between;
	}

	.ms-logo {
		height: 42px;
	}

	.ms-drzewko {
		height: 50px;
	}

	.ms-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100dvh - 68px);
		padding: 8px var(--gutter) 24px;
		overflow-y: auto;
		border-top: 1px solid var(--header-line);
		border-bottom: 1px solid var(--header-line);
		background: var(--header);
	}

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

	.ms-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ms-menu > li {
		border-bottom: 1px solid var(--header-line);
	}

	.ms-menu a {
		padding: 15px 0;
		font-size: 1.02rem;
		background: none;
	}

	.ms-menu .ms-menu__promo > a {
		display: inline-block;
		margin: 10px 0;
		padding: 8px 16px;
	}

	.ms-menu .sub-menu {
		position: static;
		padding: 0 0 8px 16px;
		border: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.ms-nav__extra {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding-top: 20px;
	}

	.ms-nav__extra a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		font-weight: 600;
		text-decoration: none;
	}

	.ms-nav__extra .ms-switch__btn {
		width: 30px;
		height: 30px;
	}

	.ms-topbar__right {
		display: none;
	}

	.ms-topbar__in {
		justify-content: center;
		min-height: 36px;
	}
}

@media (max-width: 420px) {
	.ms-logo {
		height: 36px;
	}

	.ms-drzewko {
		height: 46px;
	}

	.ms-action {
		width: 42px;
		height: 42px;
	}

	.ms-action--konto {
		display: none;
	}
}

/* ==========================================================================
   6. Strona główna
   ========================================================================== */

.ms-hero {
	background: var(--hero);
}

.ms-hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
	padding-block: clamp(40px, 6vw, 84px);
}

.ms-hero h1 {
	margin-bottom: 0.4em;
	font-size: clamp(2.3rem, 5.4vw, 4.3rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.ms-hero__lead {
	max-width: 34em;
	margin-bottom: 1.8em;
	font-size: clamp(1.05rem, 1.4vw, 1.22rem);
	color: var(--muted);
}

html[data-wariant="czerwony"] .ms-hero__lead {
	color: var(--text);
}

.ms-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ms-hero__media {
	position: relative;
	padding: 0 0 9% 12%;
}

.ms-hero__img {
	overflow: hidden;
	border-radius: 22px;
	background: var(--photo-bg);
}

.ms-hero__img img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ms-hero__img--2 {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40%;
	border: 8px solid var(--hero);
	border-radius: 26px;
}

.ms-hero__media--puste {
	display: grid;
	place-items: center;
	padding: 0;
	color: var(--logo-tree);
}

.ms-hero__media--puste .ms-mark {
	width: min(100%, 420px);
}

.ms-usp {
	border-bottom: 1px solid var(--line);
}

.ms-usp__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px clamp(16px, 3vw, 40px);
	padding: clamp(22px, 3vw, 34px) 0;
	list-style: none;
}

ul.ms-usp__list {
	margin-block: 0;
}

.ms-usp__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.ms-usp__list .ms-icon {
	width: 30px;
	height: 30px;
	margin-top: 2px;
	color: var(--accent-text);
}

.ms-usp__list strong {
	display: block;
	color: var(--heading);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
}

.ms-usp__list span {
	display: block;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.4;
}

.ms-section {
	padding-block: clamp(48px, 7vw, 92px);
}

.ms-section--soft {
	background: var(--bg-soft);
}

html[data-wariant="czerwony"] .ms-section--soft {
	--heading: #fff;
}

.ms-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	margin-bottom: clamp(22px, 3vw, 38px);
}

.ms-section__head h2 {
	margin: 0;
}

.ms-cats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(12px, 1.8vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-cat {
	display: block;
	text-decoration: none;
}

.ms-cat__img {
	display: block;
	overflow: hidden;
	margin-bottom: 12px;
	border-radius: var(--radius);
	background: var(--photo-bg);
	aspect-ratio: 1 / 1;
}

.ms-cat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ms-cat:hover .ms-cat__img img {
	transform: scale(1.05);
}

.ms-cat__name {
	display: block;
	color: var(--heading);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

html[data-wariant="czerwony"] .ms-cat__name,
html[data-wariant="czerwony"] .ms-usp__list strong {
	color: var(--text);
}

.ms-cat__count {
	color: var(--muted);
	font-size: 0.9rem;
}

.ms-about__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(28px, 6vw, 88px);
	padding-block: clamp(48px, 7vw, 92px);
}

.ms-about__media {
	overflow: hidden;
	border-radius: 22px;
	background: var(--photo-bg);
	color: #d80118;
}

.ms-about__media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ms-about__media .ms-mark {
	display: block;
	width: 60%;
	margin: 20% auto;
}

.ms-about__text h2 {
	margin-bottom: 0.7em;
}

.ms-about__text p {
	color: var(--muted);
}

html[data-wariant="czerwony"] .ms-about__text p:not(.ms-eyebrow) {
	color: var(--text);
}

.ms-about__text .ms-btn {
	margin-top: 0.6em;
}

.ms-cta {
	--surface: var(--cta);
	--text: var(--cta-text);
	--heading: var(--cta-text);
	--muted: var(--cta-muted);
	--btn: var(--cta-btn);
	--on-btn: var(--cta-on-btn);
	--btn-hover: var(--cta-btn-hover);
	--on-btn-hover: var(--cta-on-btn-hover);
	--ring: #fff;
	background: var(--cta);
	color: var(--text);
}

.ms-cta__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	flex-wrap: wrap;
	padding-block: clamp(36px, 5vw, 64px);
}

.ms-cta h2 {
	margin-bottom: 0.3em;
}

.ms-cta p {
	margin: 0;
	color: var(--muted);
	font-size: 1.1rem;
}

.ms-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 1099px) {
	.ms-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (max-width: 860px) {
	.ms-hero__in,
	.ms-about__in {
		grid-template-columns: minmax(0, 1fr);
	}

	.ms-hero__media {
		max-width: 520px;
	}

	.ms-about__media {
		max-width: 520px;
	}
}

@media (max-width: 560px) {
	.ms-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ms-usp__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.ms-hero__cta .ms-btn,
	.ms-cta__actions .ms-btn {
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   7. Podstrony i treść
   ========================================================================== */

.site-main {
	padding-bottom: clamp(48px, 7vw, 96px);
}

.site-main.ms-home {
	padding-bottom: 0;
}

.ms-pagehead {
	padding-block: clamp(28px, 4vw, 56px) clamp(14px, 2vw, 26px);
}

.ms-pagehead h1 {
	margin: 0;
}

html[data-wariant="czerwony"] .ms-sheet {
	padding: clamp(20px, 4vw, 48px);
	border-radius: 20px;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

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

.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content > h2:first-child,
.entry-content > h3:first-child {
	margin-top: 0;
}

.entry-content :where(a:not(.ms-btn):not(.button):not(.wp-element-button)) {
	color: var(--accent-text);
	text-decoration: underline;
}

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

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

.entry-content li > p {
	margin-bottom: 0.4em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.ms-dane {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 0 0 1.6em;
	padding: 0;
	list-style: none;
}

.entry-content ul.ms-dane {
	padding: 0;
}

.ms-dane li {
	margin: 0;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.ms-dane strong {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ms-404 {
	padding-block: clamp(56px, 10vw, 140px);
	text-align: center;
}

.ms-404__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 2em;
}

.ms-posts {
	display: grid;
	gap: 28px;
}

.ms-post h2 a {
	text-decoration: none;
}

.nav-links {
	display: flex;
	gap: 8px;
	margin-top: 32px;
}

/* Formularz kontaktowy */
.ms-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
	scroll-margin-top: 120px;
}

.ms-form > * {
	grid-column: 1 / -1;
	margin: 0 0 16px;
}

.ms-form__pole--pol {
	grid-column: auto;
}

.ms-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.95rem;
}

.ms-form__wymagane {
	color: var(--accent-text);
	font-weight: 700;
}

.ms-form__opcja {
	color: var(--muted);
	font-weight: 400;
}

.ms-form__pulapka {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ms-form__stopka {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-bottom: 0;
}

.ms-form__stopka small {
	flex: 1 1 240px;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.4;
}

.ms-form__info {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left: 5px solid #1b8a4b;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.ms-form__info--blad {
	border-left-color: #d80118;
}

@media (max-width: 560px) {
	.ms-form {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   8. Stopka
   ========================================================================== */

.ms-footer {
	border-top: 1px solid var(--line);
	font-size: 0.98rem;
}

.ms-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 36px clamp(24px, 4vw, 64px);
	padding-block: clamp(40px, 6vw, 72px);
}

.ms-footer__brand .ms-logo {
	height: 56px;
	margin-bottom: 20px;
}

.ms-footer__brand p {
	max-width: 30em;
	color: var(--muted);
}

.ms-footer h2 {
	margin-bottom: 1.1em;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.ms-footer__menu,
.ms-footer__kontakt {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-footer__menu li {
	margin-bottom: 0.1em;
}

.ms-footer__menu a {
	display: inline-block;
	padding: 5px 0;
}

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

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

.ms-footer__kontakt li {
	display: flex;
	gap: 12px;
	margin-bottom: 0.9em;
}

.ms-footer__kontakt .ms-icon {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--muted);
}

.ms-footer__kontakt small {
	color: var(--muted);
	font-size: 0.86rem;
}

.ms-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	padding-block: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.88rem;
}

.ms-footer__bottom p {
	margin: 0;
}

@media (max-width: 900px) {
	.ms-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ms-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.ms-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

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