/*
 * Foto Studio — style motywu.
 *
 * Spis treści
 *  1. Fonty i tokeny
 *  2. Podstawy
 *  3. Przyciski, nagłówki sekcji, linki
 *  4. Pasek górny i nagłówek
 *  5. Menu na telefonie
 *  6. Hero
 *  7. Atuty
 *  8. Kafelki (bento)
 *  9. Oferta: kafelki usług
 * 10. Sesje: kafelki
 * 11. Opinie
 * 12. FAQ
 * 13. Kontakt i formularz
 * 14. Stopka
 * 15. Podstrony: nagłówek, treść, okruszki
 * 16. Oferta (podstrona)
 * 17. Galerie i portfolio
 * 18. O mnie, FAQ, mapa, pasek zachęty, 404
 * 19. Podgląd zdjęć (lightbox)
 * 20. Ruch i ograniczenie ruchu
 *
 * Kształty: przyciski i kontrolki 4px, pola formularza 6px, karty i zdjęcia 10px.
 * Kolory: --brand (niebieski z logo) w tekstach i ikonach, --accent (błękit) tylko w przyciskach, zawsze z ciemnym tekstem.
 */

/* 1. Fonty i tokeny ---------------------------------------------------- */

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	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: "DM Sans";
	src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	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;
}

:root {
	--ink: #1c232c;
	--ink-2: #434d59;
	--muted: #5f6975;
	--line: #e1e5e9;
	--line-strong: #c9d0d7;
	--paper: #f6f7f8;
	--paper-2: #eef0f2;
	--surface: #fcfcfd;
	--brand: #1479c4;
	--brand-deep: #115f9c;
	--accent: #00b4f0;
	--accent-hover: #00a5dd;
	--on-accent: #062230;
	--charcoal: #2b2f33;
	--slate: #4f7089;
	--star: #f2b01e;
	--danger: #b42318;
	--success: #067647;

	--radius-btn: 4px;
	--radius-input: 6px;
	--radius: 10px;

	--shadow-sm: 0 1px 2px rgb(28 35 44 / 0.05);
	--shadow: 0 1px 2px rgb(28 35 44 / 0.04), 0 14px 32px -18px rgb(20 50 80 / 0.28);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--section: clamp(64px, 8vw, 112px);

	--font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	interpolate-size: allow-keywords;
	color-scheme: light;
}

/* 2. Podstawy ------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-2);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ink);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

address {
	font-style: normal;
}

figure {
	margin: 0;
}

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

::selection {
	background: rgb(0 180 240 / 0.25);
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius-btn);
	transform: translateY(-160%);
	transition: transform 0.2s var(--ease);
}

.skip-link:focus {
	transform: none;
}

.site-main:focus {
	outline: none;
}

/* 3. Przyciski, nagłówki sekcji, linki ------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-btn);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s var(--ease);
}

.btn:active {
	transform: scale(0.98);
}

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

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

.btn--ghost {
	border-color: rgb(255 255 255 / 0.85);
	color: #fff;
	background: rgb(20 24 28 / 0.25);
}

.btn--ghost:hover {
	background: rgb(255 255 255 / 0.12);
	border-color: #fff;
}

.btn--outline {
	border-color: var(--line-strong);
	color: var(--ink);
	background: var(--surface);
}

.btn--outline:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn--lg {
	min-height: 52px;
	font-size: 13px;
}

.btn[aria-busy="true"] {
	opacity: 0.7;
	pointer-events: none;
}

.section-head {
	margin-bottom: clamp(28px, 4vw, 40px);
}

.section-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.section-head--row > div {
	max-width: 760px;
}

.section-title {
	font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem);
	font-weight: 500;
}

.section-lead {
	margin-top: 10px;
	max-width: 68ch;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--muted);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--brand);
	font-weight: 600;
	font-size: 14.5px;
}

.link-arrow .icon {
	transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon,
a:hover .link-arrow .icon {
	transform: translateX(4px);
}

.empty {
	padding: 40px;
	text-align: center;
	background: var(--surface);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--muted);
}

.empty .btn {
	margin-top: 16px;
}

/* 4. Pasek górny i nagłówek ------------------------------------------------ */

.topbar {
	background: var(--charcoal);
	color: #d6dade;
	font-size: 11.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

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

.topbar__hours.is-closed {
	color: #fff;
	font-weight: 600;
}

.topbar__hours.is-closed::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: #ff8a65;
	vertical-align: 1px;
}

.topbar__call {
	white-space: nowrap;
}

.topbar__phone {
	margin-left: 4px;
	color: #fff;
	font-weight: 600;
}

.topbar__call:hover .topbar__phone {
	color: var(--accent);
}

.topbar__short {
	display: none;
}

@media (max-width: 639.98px) {
	.topbar {
		letter-spacing: 0.04em;
	}

	.topbar__in {
		padding-block: 7px;
	}

	.topbar__long,
	.topbar__label {
		display: none;
	}

	.topbar__short {
		display: inline;
	}

	.topbar__hours.is-closed {
		font-size: 11px;
		line-height: 1.4;
	}
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Tło z rozmyciem na pseudo-elemencie: backdrop-filter na samym nagłówku zamknąłby w nim menu (position: fixed) na telefonie. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(252 252 253 / 0.94);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.nav-open .site-header::before {
	background: var(--surface);
}

.site-header.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px -18px rgb(20 40 60 / 0.35);
}

.site-header__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	color: var(--brand);
	flex: none;
}

.brand__mark {
	width: clamp(150px, 16vw, 190px);
	height: auto;
}

.brand img {
	max-height: 40px;
	width: auto;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 30px);
}

.nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
}

.nav__list > li > a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.2s ease;
}

.nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}

.nav__list > li > a:hover {
	color: var(--ink);
}

.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a,
.nav__list > .current-page-ancestor > a {
	color: var(--brand);
	font-weight: 600;
}

.nav__list > .current-menu-item > a::after,
.nav__list > .current-menu-ancestor > a::after,
.nav__list > .current-page-ancestor > a::after,
.nav__list > li > a:hover::after {
	transform: scaleX(1);
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: var(--radius-btn);
	color: var(--muted);
	font-size: 12px;
	transition: transform 0.25s var(--ease), color 0.2s ease;
}

.submenu-toggle:hover {
	color: var(--ink);
}

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

.nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: -18px;
	min-width: 250px;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.nav .sub-menu::before {
	content: "";
	position: absolute;
	inset: -12px 0 auto;
	height: 12px;
}

.nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 14px;
	color: var(--ink-2);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nav .sub-menu a:hover,
.nav .sub-menu .current-menu-item > a {
	background: var(--paper);
	color: var(--brand);
}

@media (hover: hover) and (min-width: 1024px) {
	.menu-item-has-children:hover > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}

@media (min-width: 1024px) {
	.menu-item-has-children.is-open > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}

.nav__extra,
.nav-toggle {
	display: none;
}

/* 5. Menu na telefonie ---------------------------------------------------- */

@media (max-width: 1023.98px) {
	:root {
		--header-h: 64px;
	}

	.nav-toggle {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		border-radius: var(--radius-btn);
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: var(--ink);
		transition: transform 0.3s var(--ease), opacity 0.2s ease;
	}

	.nav-toggle__bars {
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before {
		top: -7px;
	}

	.nav-toggle__bars::after {
		top: 7px;
	}

	.nav-open .nav-toggle__bars {
		background: transparent;
	}

	.nav-open .nav-toggle__bars::before {
		transform: translateY(7px) rotate(45deg);
	}

	.nav-open .nav-toggle__bars::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.nav {
		position: fixed;
		top: var(--nav-top, var(--header-h));
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 49;
		display: flex;
		flex-direction: column;
		gap: 28px;
		padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--surface);
		border-top: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
	}

	.nav-open .nav {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	html.nav-open {
		overflow: hidden;
	}

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

	.nav__list > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid var(--line);
	}

	.nav__list > li > a {
		flex: 1;
		padding: 16px 0;
		font-size: 15px;
		letter-spacing: 0.04em;
		color: var(--ink);
	}

	.nav__list > li > a::after {
		display: none;
	}

	.submenu-toggle {
		width: 44px;
		height: 44px;
		font-size: 16px;
		color: var(--ink);
	}

	.nav .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		padding: 0 0 12px;
		border: 0;
		box-shadow: none;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

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

	.nav .sub-menu a {
		padding: 10px 12px;
		font-size: 15px;
	}

	.nav__extra {
		display: grid;
		gap: 12px;
		margin-top: auto;
	}

	.nav__phone {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		font-size: 20px;
		font-weight: 600;
		color: var(--brand);
	}

	.nav__phone .icon {
		font-size: 24px;
	}

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

/* 6. Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(560px, calc(100dvh - 106px), 820px);
	color: #fff;
	background: var(--charcoal);
	overflow: hidden;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 50%;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgb(18 22 27 / 0.86) 0%, rgb(18 22 27 / 0.7) 34%, rgb(18 22 27 / 0.22) 66%, rgb(18 22 27 / 0.05) 100%),
		linear-gradient(0deg, rgb(18 22 27 / 0.35), transparent 40%);
}

.hero__in {
	padding-block: clamp(64px, 9vw, 96px);
}

.hero__content {
	max-width: 780px;
}

.hero__title {
	color: #fff;
	font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.45rem);
	font-weight: 300;
	line-height: 1.16;
	letter-spacing: -0.005em;
	text-transform: uppercase;
}

.hero__title strong {
	display: block;
	font-weight: 700;
}

.hero__title span {
	display: block;
}

.hero__text {
	margin-top: 22px;
	max-width: 610px;
	font-size: 15.5px;
	line-height: 1.6;
	color: rgb(255 255 255 / 0.9);
}

.hero__text--sub {
	margin-top: 12px;
	color: rgb(255 255 255 / 0.78);
	font-size: 14.5px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

@media (max-width: 767.98px) {
	.hero {
		min-height: clamp(520px, calc(100dvh - 98px), 700px);
		align-items: end;
	}

	.hero__media img {
		object-position: 70% 50%;
	}

	.hero__media::after {
		background: linear-gradient(0deg, rgb(18 22 27 / 0.92) 0%, rgb(18 22 27 / 0.78) 48%, rgb(18 22 27 / 0.25) 100%);
	}

	.hero__in {
		padding-block: 120px 40px;
	}

	.hero__actions .btn {
		flex: 1 1 auto;
	}
}

/* 7. Atuty ----------------------------------------------------------------- */

.features {
	padding-block: var(--section) calc(var(--section) * 0.7);
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px);
}

.feature__icon {
	display: inline-grid;
	color: var(--brand);
	font-size: 46px;
}

.feature__title {
	margin-top: 18px;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.feature__text {
	margin-top: 6px;
	max-width: 32ch;
	font-size: 14px;
	color: var(--muted);
}

@media (max-width: 767.98px) {
	.features__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.feature {
		display: grid;
		grid-template-columns: 44px 1fr;
		gap: 16px;
		align-items: start;
	}

	.feature__icon {
		font-size: 40px;
	}

	.feature__title {
		margin-top: 2px;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 8. Kafelki (bento) ------------------------------------------------------- */

.tiles {
	padding-bottom: var(--section);
}

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

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 212px;
	padding: clamp(22px, 2.4vw, 30px);
	border-radius: var(--radius);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tile:has(.tile__link):hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.tile:has(.tile__link:focus-visible) {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
}

.tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.tile__link:focus-visible {
	outline: none;
}

.tile__title {
	font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.6rem);
	font-weight: 500;
	line-height: 1.15;
}

.tile__text {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 1.55;
}

.tile__note {
	margin-top: auto;
	padding-top: 14px;
	font-size: 13.5px;
}

.tile__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.tile__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.tile:hover .tile__bg img {
	transform: scale(1.04);
}

.tile__bg::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tile__go {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-btn);
	background: var(--accent);
	color: var(--on-accent);
	font-size: 18px;
	transition: transform 0.3s var(--ease);
}

.tile:hover .tile__go {
	transform: translateX(4px);
}

.tile--exp {
	grid-column: span 3;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.tile--exp .tile__title {
	color: var(--brand);
	max-width: 9ch;
}

.tile--exp .tile__text {
	color: var(--muted);
	margin-top: 14px;
}

.tile--doc {
	grid-column: span 9;
	background: #eaf1f6;
}

.tile--doc .tile__bg img {
	object-position: 50% 60%;
	filter: grayscale(0.7);
}

.tile--doc .tile__bg::after {
	background: linear-gradient(90deg, rgb(238 244 248 / 0.97) 0%, rgb(238 244 248 / 0.9) 42%, rgb(238 244 248 / 0.55) 100%);
}

.tile--doc .tile__title {
	color: var(--brand);
}

.tile--doc .tile__text {
	color: var(--ink-2);
}

.tile--ses {
	grid-column: span 9;
	background: var(--brand-deep);
	color: #fff;
}

.tile--ses .tile__bg img {
	object-position: 60% 35%;
}

.tile--ses .tile__bg::after {
	background: linear-gradient(90deg, rgb(13 82 138 / 0.95) 0%, rgb(17 95 156 / 0.86) 45%, rgb(22 112 180 / 0.6) 100%);
}

.tile--ses .tile__title,
.tile--add .tile__title {
	color: #fff;
}

.tile--ses .tile__text {
	color: rgb(255 255 255 / 0.9);
}

.tile--add {
	grid-column: span 3;
	background: var(--slate);
	color: #fff;
}

.tile--add .tile__text {
	color: rgb(255 255 255 / 0.92);
}

.chips {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 10px 36px;
	margin-top: 22px;
	padding-right: 60px;
}

.chips li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
}

.chips .icon {
	font-size: 16px;
}

.tile--doc .chips {
	color: var(--ink);
}

.tile--doc .chips .icon {
	color: var(--charcoal);
}

.tile--ses .chips .icon {
	color: #fff;
}

@media (max-width: 1023.98px) {
	.tile--exp,
	.tile--add {
		grid-column: span 4;
	}

	.tile--doc,
	.tile--ses {
		grid-column: span 8;
	}
}

@media (max-width: 767.98px) {
	.tile--exp,
	.tile--add,
	.tile--doc,
	.tile--ses {
		grid-column: 1 / -1;
	}

	.tile {
		min-height: 0;
	}

	.chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
		padding-right: 0;
		padding-bottom: 46px;
	}

	.tile--exp .tile__title {
		max-width: none;
	}
}

/* 9. Oferta: kafelki usług ------------------------------------------------- */

.services {
	padding-bottom: var(--section);
}

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

.service-tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--charcoal);
	isolation: isolate;
	color: #fff;
}

.service-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform 0.8s var(--ease);
}

.service-tile::before,
.service-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	transition: opacity 0.4s var(--ease);
}

.service-tile::before {
	background: linear-gradient(0deg, rgb(16 20 25 / 0.78) 0%, rgb(16 20 25 / 0.2) 52%, rgb(16 20 25 / 0) 75%);
}

.service-tile::after {
	background: linear-gradient(0deg, rgb(17 95 156 / 0.92) 0%, rgb(20 121 196 / 0.6) 100%);
	opacity: 0;
}

.service-tile__label {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 20px;
	display: grid;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

.service-tile__line {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 14px;
	font-size: 14px;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.service-tile__line::before {
	content: "";
	position: absolute;
	left: 0;
	right: 4px;
	top: 50%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.service-tile:hover img,
.service-tile:focus-visible img {
	transform: scale(1.05);
}

.service-tile:hover::after,
.service-tile:focus-visible::after {
	opacity: 1;
}

.service-tile:hover .service-tile__line,
.service-tile:focus-visible .service-tile__line {
	opacity: 1;
	transform: none;
}

.service-tile:hover .service-tile__line::before,
.service-tile:focus-visible .service-tile__line::before {
	transform: scaleX(1);
}

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

@media (max-width: 559.98px) {
	.services__grid {
		grid-template-columns: 1fr;
	}

	.service-tile {
		aspect-ratio: 16 / 9;
	}

	.service-tile__line {
		opacity: 1;
		transform: none;
	}

	.service-tile__line::before {
		transform: scaleX(1);
	}
}

@media (max-width: 767.98px) {
	.section-head--row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* 10. Sesje: kafelki ------------------------------------------------------- */

.sessions {
	padding-bottom: var(--section);
}

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

.session-card {
	display: grid;
	grid-template-rows: auto auto;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--charcoal);
	color: #fff;
}

.session-card__media {
	display: block;
	aspect-ratio: 2.3 / 1;
	overflow: hidden;
	background: #3a3f44;
}

.session-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.session-card__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 68px;
	padding: 18px 24px;
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.session-card__count {
	margin-left: auto;
	font-size: 13px;
	font-weight: 400;
	color: rgb(255 255 255 / 0.72);
	transition: color 0.3s ease;
}

.session-card__arrow {
	font-size: 18px;
	margin-left: auto;
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.session-card__count + .session-card__arrow {
	margin-left: 0;
}

.session-card:hover .session-card__bar,
.session-card:focus-visible .session-card__bar {
	background: var(--accent);
	color: var(--on-accent);
}

.session-card:hover .session-card__count,
.session-card:focus-visible .session-card__count {
	color: var(--on-accent);
}

.session-card:hover .session-card__arrow,
.session-card:focus-visible .session-card__arrow {
	opacity: 1;
	transform: none;
}

.session-card:hover .session-card__media img,
.session-card:focus-visible .session-card__media img {
	transform: scale(1.04);
}

.sessions--index {
	padding-top: 8px;
}

.session-card--lead {
	grid-column: 1 / -1;
}

.session-card--lead .session-card__media {
	aspect-ratio: 2.8 / 1;
}

.session-card--lead .session-card__bar {
	min-height: 76px;
	font-size: 17px;
}

.sessions__note {
	margin-top: 40px;
}

@media (max-width: 767.98px) {
	.sessions__grid {
		grid-template-columns: 1fr;
	}

	.session-card__media,
	.session-card--lead .session-card__media {
		aspect-ratio: 16 / 9;
	}

	.session-card__arrow {
		opacity: 1;
		transform: none;
	}
}

/* 11. Opinie --------------------------------------------------------------- */

.reviews {
	padding-bottom: var(--section);
}

.carousel-nav {
	display: flex;
	gap: 8px;
	flex: none;
}

.carousel-nav[hidden] {
	display: none;
}

.carousel-nav__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-btn);
	background: var(--accent);
	color: var(--on-accent);
	font-size: 18px;
	transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s var(--ease);
}

.carousel-nav__btn--prev {
	background: var(--surface);
	color: var(--brand);
	box-shadow: var(--shadow-sm);
}

.carousel-nav__btn:hover {
	background: var(--accent-hover);
}

.carousel-nav__btn--prev:hover {
	background: #fff;
	color: var(--brand-deep);
}

.carousel-nav__btn:active {
	transform: scale(0.96);
}

.carousel-nav__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.reviews__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 14px) / 3);
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px 2px 6px;
	margin: -2px;
}

.reviews__track::-webkit-scrollbar {
	display: none;
}

.review {
	display: flex;
	flex-direction: column;
	padding: 26px 26px 20px;
	background: var(--surface);
	border-radius: calc(var(--radius) + 2px);
	box-shadow: var(--shadow-sm);
	scroll-snap-align: start;
}

.review__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.review__avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #e3edf6;
	color: var(--brand-deep);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.review__name {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
}

.review__stars {
	display: flex;
	gap: 2px;
	margin-top: 3px;
	color: var(--star);
	font-size: 15px;
}

.review__quote {
	margin: 18px 0 18px 56px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-2);
}

.review__quote p + p {
	margin-top: 0.5em;
}

.review__source {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-top: auto;
	font-size: 12px;
	color: var(--muted);
}

.review__source .icon {
	font-size: 15px;
}

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

.reviews__empty {
	display: flex;
	align-items: center;
	gap: 20px 28px;
	flex-wrap: wrap;
	padding: 28px 30px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.reviews__empty > .icon {
	font-size: 34px;
	color: var(--brand);
}

.reviews__empty p {
	flex: 1 1 280px;
	color: var(--ink-2);
}

@media (max-width: 1023.98px) {
	.reviews__track {
		grid-auto-columns: calc((100% - 14px) / 2);
	}
}

@media (max-width: 639.98px) {
	.reviews__track {
		grid-auto-columns: 86%;
	}

	.review__quote {
		margin-left: 0;
	}
}

/* 12. FAQ ------------------------------------------------------------------ */

.faq-section {
	padding-bottom: var(--section);
}

.faq {
	display: grid;
	gap: 10px;
}

.faq__item {
	background: var(--surface);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
}

.faq__item::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq__item[open]::details-content {
	block-size: auto;
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 16px 16px 22px;
	list-style: none;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
	border-radius: 8px;
}

.faq__q::-webkit-details-marker {
	display: none;
}

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

.faq__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-btn);
	background: var(--accent);
	color: var(--on-accent);
	font-size: 15px;
	transition: transform 0.35s var(--ease);
}

.faq__item[open] .faq__icon {
	transform: rotate(180deg);
}

.faq__a {
	padding: 0 64px 20px 22px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--ink-2);
}

.faq__a p + p,
.faq__a ul {
	margin-top: 0.6em;
}

.faq__a ul li {
	position: relative;
	padding-left: 18px;
}

.faq__a ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 8px;
	height: 2px;
	background: var(--brand);
}

.faq__a a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.faq-section__more {
	margin-top: 22px;
}

@media (max-width: 639.98px) {
	.faq__a {
		padding-right: 22px;
	}
}

/* 13. Kontakt i formularz -------------------------------------------------- */

.contact {
	padding-block: var(--section);
	background: var(--paper-2);
}

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
	gap: clamp(40px, 7vw, 96px);
	align-items: start;
}

.contact__list {
	display: grid;
	gap: 30px;
	padding-top: 6px;
}

.contact__list li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 14px;
}

.contact__icon {
	font-size: 22px;
	color: var(--brand);
	margin-top: 1px;
}

.contact__list li > div {
	display: grid;
	gap: 2px;
	font-size: 14.5px;
	color: var(--ink);
}

.contact__label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--brand);
}

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

.contact__note {
	font-size: 13.5px;
	color: var(--muted);
}

.form {
	display: grid;
	gap: 10px;
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field {
	position: relative;
}

.field__input {
	display: block;
	width: 100%;
	min-height: 56px;
	padding: 24px 16px 8px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-input);
	font-size: 15px;
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
}

textarea.field__input {
	min-height: 132px;
	resize: vertical;
	line-height: 1.5;
}

.field__input:hover {
	border-color: #b3bcc6;
}

.field__input:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgb(20 121 196 / 0.18);
}

.field__label {
	position: absolute;
	left: 17px;
	top: 17px;
	font-size: 14.5px;
	color: var(--muted);
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.2s var(--ease), color 0.2s ease;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
	transform: translateY(-10px) scale(0.78);
	color: var(--brand);
	font-weight: 600;
}

.field__error {
	margin: 4px 2px 0;
	font-size: 12.5px;
	color: var(--danger);
}

.field__error:empty {
	display: none;
}

.field.is-invalid .field__input {
	border-color: var(--danger);
}

.field.is-invalid .field__input:focus {
	box-shadow: 0 0 0 3px rgb(180 35 24 / 0.15);
}

.field--check {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 4px 10px;
	align-items: start;
	margin: 4px 0 6px;
}

.field--check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--brand);
}

.field--check label {
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.field--check .field__error {
	grid-column: 2;
	margin: 0;
}

.form__status {
	font-size: 14px;
	border-radius: var(--radius-input);
}

.form__status:empty {
	display: none;
}

.form__status.is-success {
	padding: 12px 14px;
	background: #e9f8f0;
	color: var(--success);
}

.form__status.is-error {
	padding: 12px 14px;
	background: #fdeeec;
	color: var(--danger);
}

@media (max-width: 899.98px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}

/* 14. Stopka --------------------------------------------------------------- */

.site-footer {
	background: #f9fafb;
	border-top: 1px solid var(--line);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
	gap: 48px;
	padding-block: clamp(56px, 7vw, 88px) clamp(48px, 6vw, 72px);
}

.brand--footer .brand__mark {
	width: 190px;
}

.site-footer__brand p {
	max-width: 42ch;
	margin: 28px 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--muted);
}

.site-footer__links {
	display: grid;
	gap: 14px;
	padding-top: 6px;
}

.site-footer__links a {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.2s ease;
}

.site-footer__links a:hover {
	color: var(--brand);
}

.site-footer__contact {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 14px;
	padding-top: 6px;
	font-size: 13.5px;
	color: var(--brand);
}

.site-footer__contact a:hover {
	color: var(--brand-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.social {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 2px 0 0 -4px;
	border-radius: var(--radius-btn);
	color: var(--brand);
	font-size: 34px;
	transition: color 0.2s ease;
}

.site-footer__contact .social:hover {
	color: var(--brand-deep);
	text-decoration: none;
}

.site-footer__bar {
	background: var(--charcoal);
	color: #cfd4d9;
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.site-footer__bar-in {
	display: flex;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 11px;
}

.site-footer__bar a:hover {
	color: #fff;
}

@media (max-width: 899.98px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

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

@media (max-width: 559.98px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.site-footer__bar-in {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* 15. Podstrony: nagłówek, treść, okruszki --------------------------------- */

.page-head {
	padding-block: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 56px);
}

.page-head__in {
	display: grid;
	gap: 40px;
}

.page-head--media .page-head__in {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	font-size: 12.5px;
	color: var(--muted);
}

.crumbs li + li::before {
	content: "/";
	margin: 0 8px;
	color: var(--line-strong);
}

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

.crumbs [aria-current] {
	color: var(--ink);
}

.page-head__title {
	margin-top: 18px;
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.page-head__lead {
	margin-top: 16px;
	max-width: 60ch;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--ink-2);
}

.page-head__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 28px;
}

.page-head__meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--muted);
}

.page-head__meta .icon {
	font-size: 20px;
	color: var(--brand);
}

.page-head__media {
	aspect-ratio: 3 / 2;
	border-radius: calc(var(--radius) + 2px);
	overflow: hidden;
	background: var(--paper-2);
}

.page-head__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 899.98px) {
	.page-head--media .page-head__in {
		grid-template-columns: 1fr;
	}
}

.page-body {
	padding-bottom: var(--section);
}

.page-body--tight {
	padding-bottom: 24px;
}

.prose {
	max-width: 72ch;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-2);
}

.prose > * + * {
	margin-top: 1em;
}

.prose h2 {
	margin-top: 1.8em;
	font-size: 1.4rem;
}

.prose h3 {
	margin-top: 1.6em;
	font-size: 1.15rem;
}

.prose strong {
	color: var(--ink);
	font-weight: 600;
}

.prose a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul li,
.prose ol li {
	position: relative;
	padding-left: 22px;
}

.prose ul li + li,
.prose ol li + li {
	margin-top: 0.4em;
}

.prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.82em;
	width: 10px;
	height: 2px;
	background: var(--brand);
}

.prose ol {
	counter-reset: li;
}

.prose ol li::before {
	counter-increment: li;
	content: counter(li) ".";
	position: absolute;
	left: 0;
	color: var(--brand);
	font-weight: 600;
}

.prose .wp-block-image img {
	border-radius: var(--radius);
}

.post-list {
	display: grid;
	gap: 14px;
	max-width: 800px;
}

.post-list__item a {
	display: block;
	padding: 24px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.post-list__title {
	font-size: 1.2rem;
	margin-bottom: 6px;
}

/* 16. Oferta (podstrona) --------------------------------------------------- */

.offer {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	padding-block: 24px var(--section);
}

.offer__nav {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.offer__nav-title {
	margin-bottom: 10px;
	padding-left: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.offer__nav ul {
	display: grid;
	gap: 2px;
}

.offer__nav a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 14.5px;
	line-height: 1.35;
	color: var(--ink-2);
	transition: background-color 0.2s ease, color 0.2s ease;
}

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

.offer__nav a.is-active {
	background: var(--surface);
	color: var(--brand);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

.offer-item {
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.offer-item + .offer-item {
	margin-top: clamp(56px, 7vw, 88px);
}

.offer-item__media {
	aspect-ratio: 2.3 / 1;
	margin-bottom: 28px;
	border-radius: calc(var(--radius) + 2px);
	overflow: hidden;
	background: var(--paper-2);
}

.offer-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.offer-item__title {
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.85rem);
	margin-bottom: 14px;
}

@media (min-width: 900px) {
	.offer-item__body ul.is-columns {
		columns: 2;
		column-gap: 40px;
	}

	.offer-item__body ul.is-columns li {
		break-inside: avoid;
	}
}

@media (max-width: 899.98px) {
	.offer {
		grid-template-columns: 1fr;
		padding-top: 0;
	}

	.offer__nav {
		top: var(--header-h);
		z-index: 5;
		margin-inline: calc(var(--gutter) * -1);
		padding: 10px var(--gutter);
		background: rgb(246 247 248 / 0.94);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-bottom: 1px solid var(--line);
	}

	.offer__nav-title {
		display: none;
	}

	.offer__nav ul {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.offer__nav ul::-webkit-scrollbar {
		display: none;
	}

	.offer__nav a {
		white-space: nowrap;
		font-size: 13.5px;
		border: 1px solid var(--line);
		background: var(--surface);
		border-radius: var(--radius-btn);
	}

	.offer-item__media {
		aspect-ratio: 16 / 9;
	}
}

/* 17. Galerie i portfolio -------------------------------------------------- */

.page-body--gallery {
	padding-top: 8px;
}

/* Siatka zachowuje kolejność zdjęć: poziome 10:7 zajmują jeden rząd, pionowe 7:10 dwa (wysokość rzędu z szerokości kontenera). */
.gallery-wrap {
	container-type: inline-size;
	--g-gap: 12px;
	--g-cols: 3;
}

.gallery-wrap .wp-block-gallery,
.gallery-wrap .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(var(--g-cols), minmax(0, 1fr));
	grid-auto-rows: calc((100cqi - (var(--g-cols) - 1) * var(--g-gap)) / var(--g-cols) * 0.7);
	grid-auto-flow: row dense;
	gap: var(--g-gap);
	margin: 0;
}

.gallery-wrap .wp-block-gallery.has-nested-images figure.wp-block-image,
.gallery-wrap .wp-block-gallery figure.wp-block-image {
	display: block;
	width: auto !important;
	height: 100%;
	margin: 0 !important;
	border-radius: 8px;
	overflow: hidden;
	background: var(--paper-2);
}

.gallery-wrap .wp-block-gallery figure.wp-block-image.is-portrait {
	grid-row: span 2;
}

.gallery-wrap .wp-block-gallery.has-nested-images figure.wp-block-image img,
.gallery-wrap .wp-block-gallery figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 0;
	transition: transform 0.7s var(--ease), opacity 0.3s ease;
}

.gallery-wrap .wp-block-gallery figure.wp-block-image a {
	display: block !important;
	height: 100%;
	cursor: zoom-in;
	overflow: hidden;
}

.gallery-wrap .wp-block-gallery figure.wp-block-image a:hover img {
	transform: scale(1.03);
}

.gallery-wrap .wp-block-gallery figcaption {
	display: none;
}

.gallery-wrap > p {
	max-width: 72ch;
	margin-bottom: 24px;
}

.more-sessions {
	padding-bottom: var(--section);
}

.more-sessions__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, calc((100% - 3 * 14px) / 4));
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 10px;
}

.more-sessions__track .session-card {
	scroll-snap-align: start;
}

.session-card--compact .session-card__media {
	aspect-ratio: 3 / 2;
}

.session-card--compact .session-card__bar {
	min-height: 56px;
	padding: 14px 18px;
	font-size: 14px;
}

.portfolio {
	padding-bottom: var(--section);
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.filters__btn {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-btn);
	background: var(--surface);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink-2);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease);
}

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

.filters__btn:active {
	transform: scale(0.98);
}

.filters__btn[aria-pressed="true"] {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.portfolio__grid {
	columns: 3 260px;
	column-gap: 12px;
}

.portfolio__item {
	break-inside: avoid;
	margin-bottom: 12px;
}

.portfolio__item.is-hidden {
	display: none;
}

.portfolio__item.is-entering {
	animation: fs-fade-up 0.5s var(--ease) both;
}

.portfolio__item a {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: var(--paper-2);
	cursor: zoom-in;
}

.portfolio__item img {
	width: 100%;
	transition: transform 0.7s var(--ease);
}

.portfolio__item a:hover img {
	transform: scale(1.03);
}

.portfolio__more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 40px;
	font-size: 14.5px;
	color: var(--muted);
}

.pill-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pill-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-btn);
	background: var(--surface);
	font-size: 13.5px;
	color: var(--ink);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.pill-links a span {
	color: var(--muted);
	font-size: 12.5px;
}

.pill-links a:hover {
	border-color: var(--brand);
	color: var(--brand);
}

@media (max-width: 899.98px) {
	.gallery-wrap {
		--g-cols: 2;
		--g-gap: 10px;
	}
}

@media (max-width: 639.98px) {
	.gallery-wrap {
		--g-gap: 8px;
	}

	.portfolio__grid {
		columns: 2;
		column-gap: 8px;
	}

	.portfolio__item {
		margin-bottom: 8px;
	}

	.filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.filters__btn {
		white-space: nowrap;
	}
}

/* 18. O mnie, FAQ, mapa, pasek zachęty, 404 -------------------------------- */

.about {
	padding-bottom: var(--section);
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.about__media {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	aspect-ratio: 4 / 5;
	border-radius: calc(var(--radius) + 2px);
	overflow: hidden;
	background: var(--paper-2);
}

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

.about__stat {
	font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--brand);
	margin-bottom: 0.6em;
}

.split-links {
	padding-bottom: var(--section);
}

.split-links__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.split-link {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	background: var(--surface);
	border-radius: calc(var(--radius) + 2px);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.split-link:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.split-link__media {
	display: block;
	min-height: 200px;
	overflow: hidden;
}

.split-link__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.split-link:hover .split-link__media img {
	transform: scale(1.04);
}

.split-link__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 26px 24px;
}

.split-link__title {
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--ink);
}

.split-link__text {
	font-size: 14.5px;
	color: var(--muted);
}

.split-link .link-arrow {
	margin-top: auto;
	padding-top: 10px;
}

@media (max-width: 899.98px) {
	.about__grid,
	.split-links__grid {
		grid-template-columns: 1fr;
	}

	.about__media {
		position: static;
		max-width: 520px;
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 559.98px) {
	.split-link {
		grid-template-columns: 1fr;
	}

	.split-link__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

.faq-page {
	padding-bottom: var(--section);
}

.faq-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}

.faq-page__content {
	margin-top: 40px;
}

.ask {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 12px;
	padding: 28px;
	background: var(--surface);
	border-radius: calc(var(--radius) + 2px);
	box-shadow: var(--shadow-sm);
	font-size: 14.5px;
}

.ask__title {
	font-size: 1.2rem;
}

.ask__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--brand);
}

.ask__phone .icon {
	font-size: 1.4rem;
}

.ask__hours {
	color: var(--muted);
	margin-bottom: 6px;
}

@media (max-width: 899.98px) {
	.faq-page__grid {
		grid-template-columns: 1fr;
	}

	.ask {
		position: static;
	}
}

.map {
	padding-bottom: var(--section);
	background: var(--paper-2);
}

.map__frame {
	position: relative;
	display: grid;
	min-height: 380px;
	border-radius: calc(var(--radius) + 2px);
	overflow: hidden;
	background: #e2e8ed;
}

.map__frame iframe {
	width: 100%;
	height: 440px;
	border: 0;
}

.map__placeholder {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 10px;
	padding: 40px 24px;
	text-align: center;
	color: var(--ink-2);
}

.map__pin {
	font-size: 44px;
	color: var(--brand);
}

.map__title {
	font-size: 1.4rem;
}

.map__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.map__note {
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--muted);
}

.map__content {
	margin-top: 40px;
}

.cta-band {
	padding-bottom: var(--section);
}

.cta-band__in {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px 48px;
	padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
	background: var(--brand-deep);
	border-radius: calc(var(--radius) + 2px);
	color: rgb(255 255 255 / 0.9);
}

.cta-band__title {
	color: #fff;
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
}

.cta-band__text p {
	margin-top: 8px;
	font-size: 14.5px;
}

.cta-band__facts {
	display: grid;
	gap: 10px;
	font-size: 14px;
}

.cta-band__facts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cta-band__facts .icon {
	font-size: 18px;
	color: #8fdcfb;
}

.cta-band__facts a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1023.98px) {
	.cta-band__in {
		grid-template-columns: 1fr 1fr;
	}

	.cta-band__btn {
		justify-self: start;
	}
}

@media (max-width: 639.98px) {
	.cta-band__in {
		grid-template-columns: 1fr;
	}
}

.not-found {
	padding-block: clamp(80px, 12vw, 140px);
}

.not-found__in {
	max-width: 620px;
	text-align: center;
}

.not-found__icon {
	margin: 0 auto 20px;
	font-size: 56px;
	color: var(--brand);
}

.not-found__title {
	font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
	margin-bottom: 14px;
}

.not-found__in a:not(.btn) {
	color: var(--brand);
	font-weight: 600;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

/* 19. Podgląd zdjęć (lightbox) --------------------------------------------- */

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(14 17 20 / 0.95);
	color: #fff;
	overflow: hidden;
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox[open] {
	display: grid;
	grid-template-rows: auto 1fr auto;
	animation: fs-fade 0.25s ease both;
}

.lightbox__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px clamp(14px, 3vw, 28px);
	font-size: 13px;
	color: rgb(255 255 255 / 0.75);
}

.lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 0 clamp(8px, 7vw, 96px);
	touch-action: pan-y;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100dvh - 140px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	user-select: none;
	transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.lightbox__img.is-loading {
	opacity: 0;
	transform: scale(0.985);
}

.lightbox__caption {
	padding: 14px 20px 18px;
	text-align: center;
	font-size: 13.5px;
	color: rgb(255 255 255 / 0.8);
	min-height: 52px;
}

.lightbox__btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-btn);
	background: rgb(255 255 255 / 0.08);
	color: #fff;
	font-size: 22px;
	transition: background-color 0.2s ease, transform 0.15s var(--ease);
}

.lightbox__btn:hover {
	background: rgb(255 255 255 / 0.18);
}

.lightbox__btn:active {
	transform: scale(0.96);
}

.lightbox__prev,
.lightbox__next {
	position: absolute;
	top: 50%;
	translate: 0 -50%;
}

.lightbox__prev {
	left: clamp(8px, 2vw, 28px);
}

.lightbox__next {
	right: clamp(8px, 2vw, 28px);
}

@media (max-width: 639.98px) {
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 8px;
		translate: none;
		background: rgb(14 17 20 / 0.6);
	}
}

/* 20. Ruch i ograniczenie ruchu -------------------------------------------- */

@keyframes fs-fade {
	from {
		opacity: 0;
	}
}

@keyframes fs-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes fs-hero-img {
	from {
		transform: scale(1.06);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
		transition-delay: var(--d, 0ms);
	}

	.js [data-reveal].is-in,
	.reveal-fallback [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.hero__media img {
		animation: fs-hero-img 1.8s var(--ease) both;
	}

	.hero__content > * {
		animation: fs-fade-up 0.9s var(--ease) both;
	}

	.hero__content > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.hero__content > :nth-child(3) {
		animation-delay: 0.14s;
	}

	.hero__content > :nth-child(4) {
		animation-delay: 0.2s;
	}

	/* Kafelki z przejściem — zachowujemy przesunięcie po hoverze także po wejściu na ekran. */
	.js .tile[data-reveal].is-in:has(.tile__link):hover {
		transform: translateY(-3px);
	}

	.js .split-link[data-reveal].is-in:hover {
		transform: translateY(-2px);
	}
}

.no-motion *,
.no-motion *::before,
.no-motion *::after {
	animation: none !important;
	transition: none !important;
}

.no-motion [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.reviews__track {
		scroll-behavior: auto;
	}
}
