/* Czcionki DM Sans i Fraunces (licencja SIL Open Font License) hostowane lokalnie w folderze fonts/ –
   szybsze ładowanie i brak połączeń z serwerami Google (RODO). Zestawy znaków: łaciński + polskie litery. */
/* DM Sans – latin-ext */
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/dm-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;
}
/* DM Sans – latin */
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/dm-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;
}
/* Fraunces – latin-ext */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/fraunces-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;
}
/* Fraunces – latin */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/fraunces-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;
}

/* =========================================================
   Kolory i podstawowe wartości
   Morskie pastele: turkus i błękit, z odrobiną jasnego piasku.
   Kontrast tekstu sprawdzony pod WCAG 2.0 (min. 4.5:1).
   ========================================================= */
:root {
	--bg: #f3f9fa;          /* jasne, lekko błękitne tło strony */
	--surface: #ffffff;     /* karty */
	--mist: #e3f1f3;        /* morska mgiełka – tła pomocnicze, stopka */
	--aqua: #cdedee;        /* pastelowy turkus */
	--sky: #d6e9f8;         /* błękit nieba */
	--sand: #f1ead8;        /* jasny piasek (plaża) */
	--line: #d3e6ea;        /* linie i obramowania */
	--field-border: #78959c; /* obramowanie pól formularza (min. 3:1 z białym tłem) */

	--text: #12343b;        /* ciemny morski granat – tekst główny (13:1) */
	--muted: #4a6870;       /* tekst pomocniczy (5.6:1 na tle) */
	--accent: #0b6e78;      /* głęboki turkus – przyciski i linki (5.7:1 na tle, 6:1 z białym) */
	--accent-hover: #08545c;
	--on-accent: #ffffff;

	/* Kalendarz */
	--free: #d2efea;        /* wolny – miętowy turkus */
	--busy: #f2b8a8;        /* zajęty – koral (wyraźnie inny niż wolny) */
	--past: #eaf0f1;

	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(18, 52, 59, 0.04), 0 8px 24px rgba(18, 52, 59, 0.07);
	--container: 1100px;

	color-scheme: light;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	scroll-padding-top: 6rem; /* kotwice nie chowają się pod przyklejonym nagłówkiem */
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--bg);
	font-size: 1.0625rem;
	line-height: 1.6;
}

main {
	flex: 1;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	overflow-x: hidden; /* dekoracyjne tło sekcji powitalnej nie powoduje przewijania w bok */
	overflow-x: clip;
}

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

h1,
h2,
h3 {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.01em;
	line-height: 1.15;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
}

h2 {
	margin: 3rem 0 1rem;
	font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
}

h3 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

p {
	max-width: 62ch;
	margin: 0;
	color: var(--muted);
}

p + p {
	margin-top: 1rem;
}

.lead {
	font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3rem);
}

a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--accent-hover);
	text-decoration-thickness: 2px;
}

/* =========================================================
   Dostępność (WCAG 2.0)
   ========================================================= */

/* Wyraźnie widoczny fokus klawiatury – 2.4.7 */
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

/* Tekst tylko dla czytników ekranu */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Link „Przejdź do treści” – 2.4.1, widoczny po wciśnięciu Tab */
.skip-link {
	position: absolute;
	top: -10rem;
	left: 1rem;
	z-index: 50;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 500;
}

.skip-link:focus {
	top: 1rem;
}

main:focus {
	outline: none;
}

/* =========================================================
   Nagłówek i menu
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: rgba(243, 249, 250, 0.88);
	-webkit-backdrop-filter: saturate(1.2) blur(12px);
	backdrop-filter: saturate(1.2) blur(12px);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	min-height: 4.5rem;
	padding-block: 0.75rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text);
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
}

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

/* Logo obok nazwy; obrazek jest dekoracyjny (alt=""), nazwę czyta tekst obok */
.brand-logo {
	flex: none;
	width: 3.25rem;
	height: 3.25rem;
}

.site-nav {
	margin-left: auto;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-btn {
	display: block;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s;
}

.menu-btn:hover {
	background: var(--mist);
	color: var(--text);
}

.menu-btn[aria-current="page"] {
	background: var(--aqua);
}

/* Przycisk „hamburger” – ukryty na komputerze i gdy nie działa JavaScript */
.menu-toggle {
	display: none;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s, background 0.2s;
}

.menu-toggle-icon {
	position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle-icon::before {
	top: -6px;
}

.menu-toggle-icon::after {
	top: 6px;
}

/* Tablety i telefony: menu chowa się pod przyciskiem */
@media (max-width: 1024px) {
	/* Logo zajmuje resztę miejsca i może się zawinąć – przycisk „Menu” zostaje w tej samej linii */
	.js .brand {
		flex: 1 1 0;
		min-width: 0;
	}

	.js .menu-toggle {
		flex: none;
		display: inline-flex;
		align-items: center;
		gap: 0.75rem;
		margin-left: auto;
		padding: 0.6rem 1.1rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--surface);
		color: var(--text);
		font: inherit;
		font-weight: 500;
		cursor: pointer;
	}

	.js .menu-toggle:hover {
		background: var(--mist);
	}

	.js .site-nav {
		display: none;
	}

	.js .menu-open .menu-toggle {
		border-color: var(--text);
		background: var(--text);
		color: var(--bg);
	}

	/* Ikona zmienia się w „X” po otwarciu */
	.js .menu-open .menu-toggle-icon {
		background: transparent;
	}

	.js .menu-open .menu-toggle-icon::before {
		transform: translateY(6px) rotate(45deg);
	}

	.js .menu-open .menu-toggle-icon::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.js .menu-open .site-nav {
		display: block;
		flex-basis: 100%;
		margin-left: 0;
	}

	.js .menu-open .menu {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		padding-bottom: 0.5rem;
	}

	.js .menu-btn {
		padding: 0.8rem 1.1rem;
	}
}

/* =========================================================
   Przyciski i karty
   ========================================================= */
.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}

.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
}

.btn-primary:hover {
	background: var(--accent-hover);
	color: var(--on-accent);
}

.btn-secondary {
	border-color: var(--line);
	background: var(--surface);
	color: var(--text);
}

.btn-secondary:hover {
	background: var(--mist);
	color: var(--text);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.25rem;
}

.card {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.card h2 {
	margin-top: 0;
	font-size: 1.375rem;
}

.card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.card-link:hover {
	color: inherit;
	box-shadow: 0 2px 4px rgba(18, 52, 59, 0.05), 0 14px 32px rgba(18, 52, 59, 0.1);
	transform: translateY(-3px);
}

.card-icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: var(--aqua);
	color: var(--text);
}

.card-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.card-icon.sand {
	background: var(--sand);
}

.card-icon.sky {
	background: var(--sky);
}

.card-more {
	display: inline-block;
	margin-top: 1rem;
	color: var(--accent);
	font-weight: 500;
}

/* =========================================================
   Strona główna – sekcja powitalna
   ========================================================= */
.hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}

/* Miękkie pastelowe plamy w tle (dekoracja) */
.hero::before {
	content: "";
	position: absolute;
	inset: -4rem -10vw -6rem;
	z-index: -1;
	background:
		radial-gradient(circle at 88% 18%, var(--aqua) 0, transparent 32%),
		radial-gradient(circle at 70% 75%, var(--sand) 0, transparent 30%),
		radial-gradient(circle at 5% 80%, var(--sky) 0, transparent 26%);
	opacity: 0.9;
	pointer-events: none;
	/* łagodne wygaszenie u góry i u dołu – bez ostrych krawędzi */
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 60%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 60%, transparent);
}

.eyebrow {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 14ch;
}

/* Tekst + kolaż zdjęć obok siebie na komputerze, jeden pod drugim na telefonie */
.hero-grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.hero-grid {
		grid-template-columns: 1.05fr 1fr;
		gap: 3.5rem;
	}

	.hero-grid h1 {
		max-width: none;
		font-size: clamp(2.5rem, 2.4vw + 1.25rem, 3.4rem);
	}
}

.hero-photos {
	position: relative;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	aspect-ratio: 5 / 4;
}

.hero-photos img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: var(--radius);
	object-fit: cover;
	box-shadow: var(--shadow);
}

.hero-photos img:first-child {
	grid-row: span 2;
}

.hero-photos-link {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--shadow);
}

.hero-photos-link:hover {
	background: var(--surface);
	color: var(--accent);
}

/* =========================================================
   Galeria (galeria.html)
   ========================================================= */

/* Skróty do sekcji galerii */
.chip-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip-nav a {
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s;
}

.chip-nav a:hover {
	background: var(--mist);
	color: var(--text);
}
.gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 600px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery .featured {
		grid-column: span 2;
	}
}

@media (min-width: 900px) {
	.gallery {
		grid-template-columns: repeat(4, 1fr);
	}

	.gallery .featured {
		grid-row: span 2;
	}
}

.gallery figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.gallery img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s;
}

.gallery figure:hover img {
	transform: scale(1.03);
}

@media (min-width: 900px) {
	.gallery .featured img {
		aspect-ratio: auto;
	}
}

/* Podpis na jasnej „pigułce” – czytelny niezależnie od zdjęcia */
.gallery figcaption {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 500;
}

/* =========================================================
   Sekcje strony głównej: udogodnienia, okolica, pytania
   ========================================================= */
.section {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.section > h2:first-child,
.split h2 {
	margin-top: 0;
}

.section-lead {
	margin: -0.25rem 0 1.25rem;
}

/* Lista udogodnień z „ptaszkiem” w pastelowym kółku */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font-weight: 500;
	line-height: 1.35;
}

.features li::before {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312343b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

.features li:nth-child(3n + 2)::before {
	background-color: var(--sand);
}

.features li:nth-child(3n)::before {
	background-color: var(--sky);
}

/* Tekst obok zdjęcia */
.split {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1.1fr 1fr;
		gap: 3.5rem;
	}
}

.split img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	object-fit: cover;
	box-shadow: var(--shadow);
}

/* Najczęstsze pytania – rozwijane (działa bez JavaScriptu, obsługa klawiaturą) */
.faq {
	display: grid;
	gap: 0.75rem;
	max-width: 48rem;
}

.faq details {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	color: var(--text);
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

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

.faq summary::after {
	content: "+";
	flex: none;
	color: var(--accent);
	font-size: 1.5rem;
	line-height: 1;
}

.faq details[open] summary::after {
	content: "–";
}

.faq details p {
	padding: 0 1.25rem 1.1rem;
}

/* Strona błędu 404 */
.error-page {
	padding-bottom: 0;
}

/* =========================================================
   Nagłówek podstrony
   ========================================================= */
.page-head {
	margin-bottom: 2rem;
}

/* =========================================================
   Cennik (cennik.html)
   ========================================================= */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.prices {
	width: 100%;
	border-collapse: collapse;
}

.prices caption {
	padding: 1.25rem 1.5rem 0.75rem;
	color: var(--text);
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 600;
	text-align: left;
}

.prices th,
.prices td {
	padding: 0.9rem 1.5rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prices tbody tr:last-child th,
.prices tbody tr:last-child td {
	border-bottom: 0;
}

.prices thead th {
	background: var(--mist);
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.prices tbody th {
	color: var(--text);
	font-weight: 500;
}

.prices td {
	color: var(--text);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.prices .note {
	display: block;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.info-grid {
	margin-top: 1.5rem;
}

.info-list {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--muted);
}

.info-list li + li {
	margin-top: 0.5rem;
}

.info-list li::marker {
	color: var(--accent);
}

/* =========================================================
   Kontakt (kontakt.html)
   ========================================================= */
address {
	font-style: normal;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
	margin: 0;
}

.contact-card {
	position: relative;
	min-height: 5.25rem;
	padding: 1.25rem 1.5rem 1.25rem 5.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

/* Układ bez „sierot”: 2 kolumny na tabletach, 3 na komputerze; szeroka karta zamyka rząd */
@media (min-width: 600px) {
	.contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-card.wide {
		grid-column: span 2;
	}
}

@media (min-width: 900px) {
	.contact-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.contact-card dt {
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.contact-card dd {
	margin: 0;
	color: var(--text);
	overflow-wrap: anywhere;
}

/* Kilka wartości w jednej karcie (np. dwa numery telefonu) – odstęp ułatwia trafienie palcem */
.contact-card dd + dd {
	margin-top: 0.4rem;
}

/* Piktogram karty kontaktu (dekoracyjny – ukryty przed czytnikami ekranu) */
.contact-icon {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 12px;
	background: var(--aqua);
	color: var(--text);
}

.contact-icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.contact-icon.sky {
	background: var(--sky);
}

.contact-icon.sand {
	background: var(--sand);
}

/* Link do profilu w mediach społecznościowych (ikona + napis) */
.social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.25rem;
	overflow-wrap: anywhere;
}

.social-link svg {
	flex: none;
	width: 1.375rem;
	height: 1.375rem;
}

/* =========================================================
   Kalendarz dostępności (dostep.html)
   ========================================================= */
.cal {
	max-width: 560px;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

/* Przełącznik apartamentów w formie „segmentów” */
.tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 1.25rem;
	padding: 4px;
	border-radius: 999px;
	background: var(--mist);
}

.tabs button {
	flex: 1;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, box-shadow 0.15s;
}

.tabs button:hover {
	background: rgba(255, 255, 255, 0.6);
}

.tabs button[aria-pressed="true"] {
	background: var(--surface);
	box-shadow: 0 1px 3px rgba(18, 52, 59, 0.12);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.nav h2 {
	margin: 0;
	font-size: 1.25rem;
	text-transform: capitalize;
}

.nav button {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	font-size: 1.25rem;
	cursor: pointer;
}

.nav button:hover {
	background: var(--mist);
}

.grid {
	width: calc(100% + 8px);
	margin: 0 -4px;
	border-collapse: separate;
	border-spacing: 4px;
	table-layout: fixed;
	text-align: center;
}

.grid th {
	padding: 4px 0;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.grid td {
	padding: 0;
}

.d {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: var(--radius-sm);
	background: var(--free);
	color: var(--text);
	font-size: 0.875rem;
}

/* Zajęty: kolor + przekreślenie, żeby nie polegać tylko na kolorze – 1.4.1 */
.d.busy {
	background: var(--busy);
	font-weight: 700;
}

.d.busy .num {
	text-decoration: line-through;
}

/* Przyjazd/wyjazd: trójkąt w rogu, liczba zostaje na jasnym tle (kontrast – 1.4.3) */
.d.in {
	background: linear-gradient(135deg, var(--free) 66%, var(--busy) 66%);
	font-weight: 700;
}

.d.out {
	background: linear-gradient(135deg, var(--busy) 34%, var(--free) 34%);
	font-weight: 700;
}

/* Remont / awaria: lokal niedostępny – ukośne paski (nie tylko kolor) i przekreślona data – 1.4.1 */
.d.blk {
	font-weight: 700;
	color: var(--text);
}

.d.blk .num {
	text-decoration: line-through;
}

.d.blk-remont {
	background: repeating-linear-gradient(135deg, #dfe5e8 0 6px, #c4ced3 6px 12px);
}

.d.blk-awaria {
	background: repeating-linear-gradient(135deg, #f8e3a8 0 6px, #eccb6e 6px 12px);
}

/* Miniony dzień: neutralne tło */
.d.past {
	background: var(--past);
	color: var(--muted);
	font-weight: 400;
}

.d.past .num {
	text-decoration: none;
}

.d.today {
	box-shadow: inset 0 0 0 2px var(--accent);
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.8125rem;
}

.legend i {
	display: inline-block;
	width: 0.875rem;
	height: 0.875rem;
	margin-right: 6px;
	border: 1px solid #a9c7cd;
	border-radius: 4px;
	vertical-align: -2px;
}

.legend .lg-free {
	background: var(--free);
}

.legend .lg-busy {
	background: var(--busy);
}

.legend .lg-in {
	background: linear-gradient(135deg, var(--free) 50%, var(--busy) 50%);
}

.legend .lg-out {
	background: linear-gradient(135deg, var(--busy) 50%, var(--free) 50%);
}

.legend .lg-remont {
	background: repeating-linear-gradient(135deg, #dfe5e8 0 3px, #c4ced3 3px 6px);
}

.legend .lg-awaria {
	background: repeating-linear-gradient(135deg, #f8e3a8 0 3px, #eccb6e 3px 6px);
}

/* =========================================================
   Stopka
   ========================================================= */
.site-footer {
	padding-block: 2rem;
	border-top: 1px solid var(--line);
	background: var(--mist);
	color: var(--muted);
	font-size: 0.9375rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

.site-footer p {
	color: var(--muted);
}

.site-footer p + p {
	margin-top: 0;
}

/* =========================================================
   Telefony
   ========================================================= */
@media (max-width: 480px) {
	body {
		font-size: 1rem;
	}

	.brand {
		gap: 0.5rem;
		font-size: 1.15rem;
	}

	.brand-logo {
		width: 2.75rem;
		height: 2.75rem;
	}

	.header-inner {
		column-gap: 0.75rem;
	}

	.btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.tabs button {
		padding: 0.55rem 0.5rem;
		font-size: 0.875rem;
	}

	/* Mniejsze komórki – mniejszy trójkąt, żeby nie zachodził na liczbę */
	.d.in {
		background: linear-gradient(135deg, var(--free) 74%, var(--busy) 74%);
	}

	.d.out {
		background: linear-gradient(135deg, var(--busy) 26%, var(--free) 26%);
	}

	.prices th,
	.prices td {
		padding: 0.7rem 0.75rem;
	}

	.prices caption {
		padding: 1rem 0.75rem 0.5rem;
	}

	.prices thead th {
		font-size: 0.75rem;
		letter-spacing: 0.02em;
	}
}

/* =========================================================
   Formularz zapytania (kontakt.html)
   ========================================================= */
.inquiry-form {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 600px) {
	.form-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.field.full {
		grid-column: 1 / -1;
	}
}

.field label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--text);
	font-weight: 500;
}

.field .req {
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.field input,
.field select,
.field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.875rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
}

.field textarea {
	min-height: 9rem;
	resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
	border-color: var(--accent);
	outline-offset: 1px;
}

.field-hint {
	margin: 0.35rem 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.form-note {
	margin: 1.5rem 0 1.25rem;
	color: var(--muted);
	font-size: 0.875rem;
}

/* Komunikat o błędzie wysyłki (js/formularz.js) */
.form-status {
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid #b8452e;
	border-radius: var(--radius-sm);
	background: #fdece7;
	color: var(--text);
}

/* Honeypot – pole-pułapka dla botów, poza ekranem (nie display:none, bo część botów to sprawdza) */
.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* =========================================================
   Strona tekstowa (polityka prywatności)
   ========================================================= */
.prose {
	max-width: 46rem;
}

.prose h2 {
	margin-top: 2.25rem;
	font-size: 1.375rem;
}

.prose ul {
	padding-left: 1.25rem;
}

.prose li + li {
	margin-top: 0.4rem;
}

/* =========================================================
   Komunikat o plikach cookie (js/cookies.js)
   ========================================================= */
.cookie-banner {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	left: 1rem;
	z-index: 40;
	max-width: 28rem;
	margin-left: auto;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 4px 10px rgba(18, 52, 59, 0.08), 0 20px 48px rgba(18, 52, 59, 0.18);
	animation: cookie-in 0.3s ease-out;
}

.cookie-banner .cookie-title {
	margin: 0 0 0.4rem;
	color: var(--text);
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.125rem;
	font-weight: 600;
}

.cookie-banner p {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.9375rem;
}

@keyframes cookie-in {
	from {
		opacity: 0;
		transform: translateY(1rem);
	}
}

/* Ograniczone animacje na życzenie użytkownika */
@media (prefers-reduced-motion: reduce) {
	.cookie-banner {
		animation: none;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}

	.card-link:hover {
		transform: none;
	}
}
