/* =========================================================================
   Ondřej Mixan — hlavní stylopis
   1. Písmo
   2. Proměnné a základ
   3. Typografie
   4. Layout (container, sekce, mřížky)
   5. Tlačítka
   6. Karty
   7. Hlavička a navigace
   8. Sekce O mně
   9. Sekce Služby a ceník
  10. Rezervační formulář
  11. Kontakt
  12. Patička
  13. Chybová stránka 404
  14. Textové stránky
  15. Responzivita
   ========================================================================= */

/* ---------------------------------------------------------------- 1. Písmo */

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/poppins-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/poppins-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------- 2. Proměnné a základ */

:root {
	--bg: #eef6f9;
	--bg-soft: #f3f8fb;
	--surface: #ffffff;
	--ink: #0b1b2f;
	--navy: #122947;
	--muted: #536676;
	--accent: #4c8c9f;
	--line: rgba(11, 27, 47, 0.08);
	--line-strong: rgba(11, 27, 47, 0.16);
	--shadow-sm: 0 1px 2px rgba(11, 27, 47, 0.04);
	--shadow-md: 0 12px 32px rgba(11, 27, 47, 0.06);
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 12px;
	--container: 1140px;
	--header-h: 76px;
	--font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a,
button {
	-webkit-tap-highlight-color: rgba(11, 27, 47, 0.06);
}

a {
	color: inherit;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 3px;
	transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
	color: var(--accent);
	text-decoration-color: currentColor;
}

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

.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:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--navy);
	color: #fff;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

/* ------------------------------------------------------- 3. Typografie */

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

.display {
	font-size: clamp(1.95rem, 1.1rem + 3.2vw, 3.4rem);
	line-height: 1.12;
	text-wrap: balance;
}

.eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.lead {
	margin: 1.15rem 0 0;
	font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);
	line-height: 1.6;
	color: var(--muted);
	max-width: 62ch;
	text-wrap: pretty;
}

.prose {
	margin-top: 2rem;
	color: var(--muted);
}

.prose p {
	margin-bottom: 1.35em;
}

.section__subtitle {
	margin: 4rem 0 1.75rem;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

/* ----------------------------------------------------------- 4. Layout */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

@media (min-width: 560px) {
	.container {
		padding-inline: 24px;
	}
}

.container--narrow {
	max-width: 900px;
}

.section {
	padding: clamp(3rem, 1.8rem + 5vw, 6.5rem) 0;
}

.section + .section {
	border-top: 1px solid var(--line);
}

.section__head {
	max-width: 760px;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.grid {
	display: grid;
	gap: 24px;
}

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

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

/* --------------------------------------------------------- 5. Tlačítka */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.72rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn--lg {
	padding: 0.95rem 1.9rem;
	font-size: 1rem;
}

.btn--primary {
	background: var(--navy);
	color: #fff;
	box-shadow: 0 6px 18px rgba(18, 41, 71, 0.18);
}

.btn--primary:hover {
	background: #1c3a60;
	color: #fff;
	transform: translateY(-1px);
}

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

.btn--ghost:hover {
	background: var(--surface);
	color: var(--ink);
}

.btn:active {
	transform: translateY(1px);
}

.btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* Kompaktní tlačítko v hlavičce — pouze na mobilu, kde je menu schované. */
.header-cta {
	display: none;
	margin-left: auto;
}

/* ------------------------------------------------------------- 6. Karty */

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	box-shadow: var(--shadow-sm);
}

.card--dashed {
	background: transparent;
	border-style: dashed;
	border-color: var(--line-strong);
	box-shadow: none;
}

.card__title {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.card__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.card__row .card__title,
.card__row .subcard__title {
	margin-bottom: 0;
}

.card__meta {
	font-size: 0.95rem;
	color: var(--muted);
	white-space: nowrap;
}

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

.stack-list,
.dot-list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
}

.stack-list li {
	margin-bottom: 1rem;
}

.stack-list li:last-child {
	margin-bottom: 0;
}

.dot-list {
	margin-top: 1.25rem;
}

.dot-list li {
	position: relative;
	padding-left: 1.1rem;
	margin-bottom: 0.9rem;
	font-size: 0.97rem;
}

.dot-list li:last-child {
	margin-bottom: 0;
}

.dot-list li::before {
	content: "·";
	position: absolute;
	left: 0;
	color: var(--muted);
	font-weight: 700;
}

.tag {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
}

.subcard {
	margin-top: 1.5rem;
	padding: 1.35rem 1.5rem;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.subcard__title {
	font-size: 1.05rem;
}

.subcard p {
	font-size: 0.95rem;
	margin: 0;
}

/* ------------------------------------------- 7. Hlavička a navigace */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(11, 27, 47, 0.05);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.site-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--ink);
}

.site-brand__link:hover {
	color: var(--ink);
}

.site-brand__mark {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #3f7f96 0%, #1d4a6b 45%, #0e2439 100%);
	flex: none;
}

.site-brand__name {
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

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

.site-nav {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 2rem;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

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

.nav-menu a {
	font-size: 0.97rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	padding: 0.4rem 0;
	border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .is-active > a {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.nav-toggle {
	display: none;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	cursor: pointer;
}

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

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

.nav-toggle__bars::before {
	transform: translateY(-6px);
}

.nav-toggle__bars::after {
	transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: rotate(-45deg);
}

/* ------------------------------------------------------ 8. Sekce O mně */

.about {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	align-items: start;
}

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

.about__photo {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.about__cta {
	margin: 2.25rem 0 0;
}

.about__credentials {
	margin-top: 2.75rem;
}

/* -------------------------------------------- 9. Sekce Služby a ceník */

.card--price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0.5rem 0 1.75rem;
}

.price__value {
	font-size: clamp(2.1rem, 1.6rem + 1.8vw, 2.8rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.price__unit {
	font-size: 1.05rem;
	color: var(--muted);
}

.steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.step__num {
	display: block;
	margin-bottom: 0.9rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--accent);
}

.step .card__title {
	font-size: 1.15rem;
	margin-bottom: 0.7rem;
}

.step p {
	font-size: 0.97rem;
	margin: 0;
}

.services__bottom {
	margin-top: 3rem;
	align-items: start;
}

/* ------------------------------------------- 10. Rezervační formulář */

.card--form {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.field {
	margin-bottom: 1.4rem;
}

.field:last-of-type {
	margin-bottom: 0;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.field label,
.field__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
}

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

.field__hint {
	margin: -0.15rem 0 0.75rem;
	font-size: 0.88rem;
	color: var(--muted);
}

.field__error {
	margin: 0.4rem 0 0;
	font-size: 0.85rem;
	color: #b3261e;
	min-height: 0;
}

.field__error:empty {
	display: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.8rem 1rem;
	font-family: inherit;
	font-size: 16px; /* 16px brání automatickému přiblížení na iOS. */
	color: var(--ink);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23536676' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

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

/* Sjednocení výšky a zarovnání data v Safari na iOS. */
input[type="date"] {
	text-align: left;
}

input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
	min-height: 1.4em;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	background: var(--surface);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(76, 140, 159, 0.16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
	border-color: #b3261e;
}

.slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 0.6rem;
	padding: 1rem;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	align-items: center;
}

.slots__empty {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.slot {
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	font-family: inherit;
	font-size: 0.93rem;
	font-weight: 500;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.slot:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.slot.is-selected {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.93rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--muted);
	cursor: pointer;
}

.checkbox input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--navy);
	cursor: pointer;
}

.field--consent {
	margin-top: 1.75rem;
}

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

.booking-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
}

.booking-form__note {
	margin: 0;
	font-size: 0.88rem;
	color: var(--muted);
}

.form-message {
	margin: 1.25rem 0 0;
	padding: 1rem 1.15rem;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	display: none;
}

.form-message.is-visible {
	display: block;
}

.form-message.is-success {
	background: rgba(76, 140, 159, 0.12);
	color: #1d4a5b;
}

.form-message.is-error {
	background: rgba(179, 38, 30, 0.08);
	color: #8c1d18;
}

/* ------------------------------------------------------- 11. Kontakt */

.contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}

.contact__details {
	display: grid;
	gap: 1.25rem;
}

.card--contact {
	padding: 1.5rem 1.75rem;
}

.card__label {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
}

.card__value {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.5;
}

.card__value a {
	text-decoration: none;
}

.contact__map {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
	background: var(--surface);
	height: 100%;
	min-height: 420px;
}

.contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
}

/* ------------------------------------------------------- 12. Patička */

.site-footer {
	border-top: 1px solid var(--line);
	padding: clamp(3rem, 2.5rem + 2vw, 4rem) 0 2.5rem;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2.5rem;
}

.site-footer__name {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-footer__title {
	margin: 0 0 0.6rem;
	font-size: 1rem;
	font-weight: 600;
}

.site-footer__text {
	margin: 0;
	color: var(--muted);
	font-size: 0.97rem;
	line-height: 1.7;
}

.site-footer__text a {
	text-decoration: none;
}

.site-footer__legal {
	margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
	text-align: center;
	font-size: 0.88rem;
	color: var(--muted);
}

/* --------------------------------------------- 13. Chybová stránka 404 */

.error-404 {
	text-align: center;
	padding: clamp(2rem, 1rem + 4vw, 4rem) 0;
}

.error-404 .lead {
	margin-left: auto;
	margin-right: auto;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin: 2.25rem 0 0;
}

.error-404__contact {
	max-width: 420px;
	margin: 3rem auto 0;
	text-align: left;
}

/* ---------------------------------------------- 14. Textové stránky */

.legal {
	padding: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
}

.legal h2 {
	margin: 2.25rem 0 0.85rem;
	font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
}

.legal > h2:first-child {
	margin-top: 0;
}

.legal p,
.legal li {
	color: var(--muted);
}

.legal p {
	margin-bottom: 1.15rem;
}

.legal ul,
.legal ol {
	margin: 0 0 1.25rem;
	padding-left: 1.3rem;
}

.legal li {
	margin-bottom: 0.55rem;
}

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

.legal a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: rgba(76, 140, 159, 0.4);
	overflow-wrap: anywhere;
}

.legal__updated {
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
}

.page-back {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2rem 0 0;
}

.site-footer__links {
	margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
	text-align: center;
	font-size: 0.95rem;
}

.site-footer__links a {
	color: var(--muted);
	text-decoration: none;
}

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

.site-footer__links + .site-footer__legal {
	margin-top: 1.5rem;
}


/* -------------------------------------------------- 15. Responzivita */

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

	.about__media {
		position: static;
		max-width: 420px;
	}

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

	.contact {
		grid-template-columns: 1fr;
	}

	.site-footer__cols {
		grid-template-columns: 1fr 1fr;
	}
}

/* Pod 880 px se menu skládá do panelu a hlavní akce zůstává v hlavičce. */
@media (max-width: 880px) {
	:root {
		--header-h: 64px;
	}

	.site-header__inner {
		gap: 0.75rem;
	}

	.header-cta {
		display: inline-flex;
		padding: 0.6rem 1.1rem;
		font-size: 0.9rem;
	}

	.nav-toggle {
		display: inline-flex;
		position: relative;
		flex: none;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 0.5rem max(20px, env(safe-area-inset-left)) 1rem;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-md);
	}

	.site-nav.is-open {
		display: flex;
		animation: om-slide-down 0.22s ease;
	}

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

	.nav-menu li + li {
		border-top: 1px solid var(--line);
	}

	.nav-menu a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 0;
		font-size: 1.02rem;
		border-bottom: 0;
	}

	/* Objednání je dostupné z hlavičky, v panelu by se opakovalo. */
	.site-nav__cta {
		display: none;
	}
}

@keyframes om-slide-down {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Telefony — jeden sloupec, sevřenější rytmus. */
@media (max-width: 720px) {
	body {
		font-size: 16px;
		line-height: 1.6;
	}

	.grid {
		gap: 16px;
	}

	.grid--2,
	.grid--3,
	.field-row {
		grid-template-columns: 1fr;
	}

	.section__head {
		margin-bottom: 2rem;
	}

	.section__subtitle {
		margin: 2.5rem 0 1.25rem;
	}

	.prose {
		margin-top: 1.5rem;
	}

	.prose p {
		margin-bottom: 1.1em;
	}

	.card {
		border-radius: var(--radius-md);
		padding: 1.35rem 1.25rem;
	}

	.card__title {
		font-size: 1.15rem;
		margin-bottom: 0.75rem;
	}

	.stack-list li {
		margin-bottom: 0.75rem;
		font-size: 0.96rem;
	}

	/* Fotka nesmí zabrat celou obrazovku, než se čtenář dostane k textu. */
	.about__media {
		max-width: none;
	}

	.about__photo {
		aspect-ratio: 4 / 5;
		border-radius: var(--radius-md);
	}

	.about__cta {
		margin-top: 1.75rem;
	}

	.about__cta .btn,
	.card--price .btn {
		width: 100%;
	}

	.about__credentials {
		margin-top: 1.75rem;
	}

	.price {
		margin: 0.35rem 0 1.35rem;
	}

	/* Číslo kroku vedle nadpisu ušetří tři řádky výšky. */
	.step {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 0.7rem;
	}

	.step__num {
		margin-bottom: 0;
		line-height: 1.4;
	}

	.step .card__title,
	.step p {
		grid-column: 2;
	}

	.step .card__title {
		margin-bottom: 0.4rem;
	}

	.subcard {
		margin-top: 1.1rem;
		padding: 1.1rem 1.15rem;
	}

	.services__bottom {
		margin-top: 2rem;
	}

	.field {
		margin-bottom: 1.15rem;
	}

	.field-row {
		gap: 1.15rem;
	}

	.slots {
		grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
		gap: 0.5rem;
		padding: 0.85rem;
	}

	.booking-form__foot {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 1rem;
		margin-top: 1.5rem;
		padding-top: 1.5rem;
		text-align: left;
	}

	.booking-form__foot .btn {
		width: 100%;
	}

	.booking-form__note {
		font-size: 0.85rem;
	}

	.card__row {
		flex-wrap: wrap;
	}

	.card--contact {
		padding: 1.15rem 1.25rem;
	}

	.card__value {
		font-size: 1.05rem;
		overflow-wrap: anywhere;
	}

	.contact__details {
		gap: 1rem;
	}

	.contact__map,
	.contact__map iframe {
		min-height: 260px;
		height: 260px;
	}

	.site-footer {
		padding-bottom: max(2rem, env(safe-area-inset-bottom));
	}

	.site-footer__cols {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.site-footer__legal {
		margin-top: 2rem;
		padding-top: 1.25rem;
	}

	.error-404__actions .btn,
	.page-back .btn {
		width: 100%;
	}

	.legal h2 {
		margin-top: 1.85rem;
	}
}

/* Úzké telefony — hlavička musí zůstat na jednom řádku. */
@media (max-width: 420px) {
	.site-brand__mark {
		width: 30px;
		height: 30px;
	}

	.site-brand__name {
		font-size: 1rem;
	}

	.header-cta {
		padding: 0.55rem 0.9rem;
		font-size: 0.85rem;
	}

	.eyebrow {
		font-size: 0.76rem;
		letter-spacing: 0.12em;
	}

	.price__value {
		font-size: 2.1rem;
	}

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

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

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