/* =========================================================
   Zednictví Novák — stylesheet
   Sekce: 1 tokeny · 2 reset · 3 layout · 4 komponenty
          5 hlavička · 6 hero · 7 o nás · 8 služby
          9 reference · 10 kontakty · 11 patička · 12 lightbox
   ========================================================= */

/* ---------- 1. tokeny ---------- */
:root {
	--brand:        #c2410c;   /* terakota — hlavní akcent */
	--brand-600:    #9a3412;
	--brand-100:    #ffedd5;

	--ink:          #1c1917;   /* text */
	--ink-soft:     #57534e;
	--ink-muted:    #78716c;

	--bg:           #ffffff;
	--bg-alt:       #faf8f6;
	--bg-dark:      #1c1917;
	--line:         #e7e2dd;

	--radius:       14px;
	--radius-sm:    9px;
	--shadow:       0 1px 2px rgb(28 25 23 / .05), 0 8px 24px -12px rgb(28 25 23 / .18);
	--shadow-lg:    0 24px 60px -24px rgb(28 25 23 / .35);

	--container:    1180px;
	--gutter:       clamp(1rem, 4vw, 2.5rem);
	--section-y:    clamp(3.5rem, 9vw, 7rem);

	--font:         'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;

	--header-h:     72px;
	--ease:         cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

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

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 200;
	padding: .75rem 1.25rem;
	background: var(--ink);
	color: #fff;
	border-radius: 0 0 var(--radius-sm) 0;
	text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- 3. layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.section__title {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
	text-transform: uppercase;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .75rem;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--brand-600);
}
.eyebrow::before {
	content: '';
	width: 28px;
	height: 2px;
	background: var(--brand);
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }

.grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.grid--split { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
	.grid--split { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- 4. komponenty ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .8rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn .ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px var(--brand-600); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--sm { padding: .55rem 1rem; font-size: .9375rem; }
.btn--block { width: 100%; }

.card,
.service,
.contact-card,
.testimonial,
.contact-form {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checklist li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .45em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--brand-100);
	box-shadow: inset 0 0 0 1px rgb(194 65 12 / .25);
}
.checklist li::after {
	content: '';
	position: absolute;
	left: .35rem;
	top: .72em;
	width: .45rem;
	height: .25rem;
	border-left: 2px solid var(--brand-600);
	border-bottom: 2px solid var(--brand-600);
	transform: rotate(-45deg);
}

/* odhalování při scrollu */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. hlavička ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgb(255 255 255 / .86);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.header.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px -20px rgb(28 25 23 / .6);
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.35rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	flex: none;
}
.logo__mark { width: 30px; height: 30px; fill: var(--brand); flex: none; }
.logo__text strong { font-weight: 700; }
.logo__text { font-weight: 600; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 1.9rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__list a {
	position: relative;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	padding-block: .35rem;
}
.nav__list a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--brand);
	transition: right .25s var(--ease);
}
.nav__list a:hover::after,
.nav__list a.is-active::after { right: 0; }
.nav__list a.is-active { color: var(--brand-600); }

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--ink);
	transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem var(--gutter) 1.75rem;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		transform: translateY(-120%);
		visibility: hidden;
		transition: transform .35s var(--ease), visibility .35s;
	}
	.nav.is-open { transform: none; visibility: visible; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a {
		display: block;
		padding: .95rem .25rem;
		border-bottom: 1px solid var(--line);
		font-size: 1.1rem;
	}
	.nav__list a::after { display: none; }
	.nav__cta { margin-top: 1.25rem; justify-content: center; padding: .9rem 1.25rem; }
}

/* ---------- 6. hero ---------- */
.hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(4rem, 11vw, 8.5rem);
	background: var(--bg-dark);
	color: #fff;
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60rem 30rem at 82% 8%, rgb(194 65 12 / .38), transparent 62%),
		radial-gradient(45rem 28rem at 8% 92%, rgb(120 113 108 / .35), transparent 60%),
		repeating-linear-gradient(90deg, rgb(255 255 255 / .045) 0 1px, transparent 1px 84px),
		repeating-linear-gradient(0deg, rgb(255 255 255 / .045) 0 1px, transparent 1px 42px),
		var(--bg-dark);
}
.hero__inner { position: relative; max-width: 54rem; }

.hero__eyebrow {
	margin: 0 0 1.1rem;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fdba74;
}

.hero__title {
	font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.4rem);
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}
.hero__title em {
	font-style: normal;
	color: #fb923c;
	position: relative;
}
.hero__title em::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: .07em;
	height: .09em;
	background: var(--brand);
	opacity: .55;
}

.hero__lead {
	max-width: 46ch;
	font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
	color: rgb(255 255 255 / .82);
	margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .45); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.25rem 2rem;
	margin: clamp(2.5rem, 6vw, 4rem) 0 0;
	padding-top: 2rem;
	border-top: 1px solid rgb(255 255 255 / .16);
	max-width: 42rem;
}
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem);
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.hero__stats dt {
	font-size: .8125rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgb(255 255 255 / .6);
	margin-top: .4rem;
}

/* ---------- 7. o nás ---------- */
.about-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
}
.card { padding: 1.5rem 1.35rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.card__ico {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1rem;
	border-radius: var(--radius-sm);
	background: var(--brand-100);
}
.card__ico svg { width: 24px; height: 24px; fill: var(--brand-600); }

/* ---------- 8. služby ---------- */
.services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 1.15rem;
}
.service {
	padding: 1.75rem 1.5rem;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service:hover {
	transform: translateY(-4px);
	border-color: rgb(194 65 12 / .35);
	box-shadow: var(--shadow-lg);
}
.service h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.service p { color: var(--ink-soft); font-size: .97rem; }
.service__ico {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.1rem;
	border-radius: var(--radius-sm);
	background: var(--ink);
}
.service__ico svg { width: 26px; height: 26px; fill: #fdba74; }
.service__price {
	margin: 1.1rem 0 0;
	padding-top: .85rem;
	border-top: 1px dashed var(--line);
	font-weight: 700;
	color: var(--brand-600);
}

.process {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
}
.process__title {
	font-size: 1.75rem;
	text-transform: uppercase;
	margin-bottom: 1.75rem;
	color: #fff;
}
.process__list {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.75rem;
}
.process__list li { position: relative; }
.process__list strong { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.process__list p { margin: 0; font-size: .95rem; color: rgb(255 255 255 / .68); }
.process__num {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: .85rem;
	border-radius: 50%;
	background: var(--brand);
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
}

/* ---------- 9. reference ---------- */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
}
.gallery__item { margin: 0; }
.gallery__btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	overflow: hidden;
	cursor: zoom-in;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.gallery__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgb(194 65 12 / .35); }
.gallery__btn img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .5s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__btn figcaption {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	padding: .9rem 1rem 1rem;
	border-top: 1px solid var(--line);
}
.gallery__btn figcaption strong { font-weight: 600; }
.gallery__btn figcaption span { font-size: .875rem; color: var(--ink-muted); }

.fb-cta {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem 1.5rem;
	margin-top: clamp(2rem, 5vw, 3rem);
	padding: clamp(1.4rem, 3.5vw, 2rem);
	border-radius: var(--radius);
	background: linear-gradient(135deg, #1877f2 0%, #0f5ecb 100%);
	color: #fff;
	box-shadow: var(--shadow);
}
.fb-cta__ico {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgb(255 255 255 / .16);
}
.fb-cta__ico svg { width: 34px; height: 34px; fill: #fff; }
.fb-cta h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.fb-cta p { margin: 0; color: rgb(255 255 255 / .85); font-size: .97rem; }
.fb-cta .btn--primary { background: #fff; color: #0f5ecb; box-shadow: none; white-space: nowrap; }
.fb-cta .btn--primary:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
	.fb-cta { grid-template-columns: auto 1fr; text-align: left; }
	.fb-cta .btn { grid-column: 1 / -1; justify-content: center; }
}

.testimonials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 1.15rem;
	margin-top: clamp(2rem, 5vw, 3rem);
}
.testimonial { margin: 0; padding: 1.6rem 1.5rem; }
.testimonial blockquote {
	margin: 0 0 1rem;
	font-size: 1.02rem;
	color: var(--ink-soft);
	position: relative;
	padding-top: 1.75rem;
}
.testimonial blockquote::before {
	content: '„';
	position: absolute;
	top: -.35rem;
	left: -.1rem;
	font-family: var(--font-display);
	font-size: 3.5rem;
	line-height: 1;
	color: var(--brand);
	opacity: .45;
}
.testimonial figcaption { font-weight: 600; }
.testimonial figcaption span {
	display: block;
	font-weight: 400;
	font-size: .875rem;
	color: var(--ink-muted);
}

/* ---------- 10. kontakty ---------- */
.contact { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 950px) { .contact { grid-template-columns: 1fr 1fr; } }

.contact__cards { display: grid; gap: 1rem; }
.contact-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	text-decoration: none;
	color: inherit;
	transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
a.contact-card:hover {
	transform: translateY(-3px);
	border-color: rgb(194 65 12 / .4);
	box-shadow: var(--shadow-lg);
}
.contact-card--static { cursor: default; }
.contact-card__ico {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--radius-sm);
	background: var(--brand-100);
}
.contact-card__ico svg { width: 23px; height: 23px; fill: var(--brand-600); }
.contact-card__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.contact-card__body strong {
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-muted);
	font-weight: 600;
}
.contact-card__value { font-size: 1.1rem; font-weight: 600; }
.contact-card__note { font-size: .875rem; color: var(--ink-muted); }

.contact-form { padding: clamp(1.4rem, 3.5vw, 2rem); }
.contact-form__title { font-size: 1.6rem; margin-bottom: .35rem; text-transform: uppercase; }
.contact-form__note { color: var(--ink-muted); font-size: .95rem; margin-bottom: 1.5rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: .8rem .9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg);
	font: inherit;
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgb(194 65 12 / .16);
}
.field input.is-invalid,
.field textarea.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgb(220 38 38 / .14); }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.contact-form__hint { margin: 1rem 0 0; font-size: .9rem; min-height: 1.2em; }
.contact-form__hint.is-error { color: #b91c1c; }
.contact-form__hint.is-ok { color: #15803d; }

/* ---------- 11. patička ---------- */
.footer { background: var(--ink); color: rgb(255 255 255 / .74); padding-top: clamp(2.5rem, 6vw, 4rem); }
.footer__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 2rem;
	padding-bottom: 2.5rem;
}
.logo--footer { color: #fff; margin-bottom: .85rem; }
.footer__claim { font-size: .95rem; max-width: 34ch; margin: 0; }

.footer__nav { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.footer__nav a,
.footer__contact a { color: rgb(255 255 255 / .8); text-decoration: none; }
.footer__nav a:hover,
.footer__contact a:hover { color: #fdba74; text-decoration: underline; }

.footer__contact { display: flex; flex-direction: column; gap: .6rem; font-size: .97rem; }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .75rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / .12);
	font-size: .875rem;
}
.footer__bottom p { margin: 0; }
.footer__top { color: rgb(255 255 255 / .8); text-decoration: none; }
.footer__top:hover { color: #fdba74; }

/* plovoucí tlačítko „Zavolat“ (mobil) */
.call-fab {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: none;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.25rem;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 14px 30px -12px rgb(28 25 23 / .7);
}
.call-fab svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 860px) {
	.call-fab { display: inline-flex; }
	.footer__bottom { padding-bottom: 5.5rem; }  /* aby FAB nepřekryl text */
}
/* při otevřeném lightboxu FAB překáží ovládacím tlačítkům */
.lightbox:not([hidden]) ~ .call-fab { display: none; }

/* ---------- 12. lightbox ---------- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: .5rem;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgb(12 10 9 / .93);
	backdrop-filter: blur(4px);
	animation: lb-in .25s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure { margin: 0; justify-self: center; max-width: min(1000px, 100%); }
.lightbox__figure img {
	width: 100%;
	max-height: 76vh;
	object-fit: contain;
	border-radius: var(--radius-sm);
	background: #000;
}
.lightbox__figure figcaption {
	margin-top: .9rem;
	text-align: center;
	color: rgb(255 255 255 / .82);
	font-size: .95rem;
}

.lightbox__nav,
.lightbox__close {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgb(255 255 255 / .25);
	border-radius: 50%;
	background: rgb(255 255 255 / .08);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--brand); transform: scale(1.06); }
.lightbox__close {
	position: absolute;
	top: clamp(.75rem, 3vw, 1.5rem);
	right: clamp(.75rem, 3vw, 1.5rem);
	font-size: 1.6rem;
}
@media (max-width: 640px) {
	.lightbox { grid-template-columns: 1fr; }
	.lightbox__nav { position: absolute; bottom: 1.25rem; }
	.lightbox__nav--prev { left: 25%; }
	.lightbox__nav--next { right: 25%; }
}

/* ---------- tmavý režim ---------- */
@media (prefers-color-scheme: dark) {
	:root {
		--ink:       #f5f5f4;
		--ink-soft:  #d6d3d1;
		--ink-muted: #a8a29e;
		--bg:        #1a1817;
		--bg-alt:    #221f1d;
		--line:      #35302d;
		--brand:     #ea580c;
		--brand-600: #fb923c;
		--brand-100: #3a2318;
		--shadow:    0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .7);
		--shadow-lg: 0 24px 60px -24px rgb(0 0 0 / .85);
	}
	body { background: var(--bg); }
	.header { background: rgb(26 24 23 / .86); }
	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after { background: var(--ink); }
	.btn--ghost:hover { background: #fff; color: #1c1917; }
	.process,
	.footer { background: #100e0d; }
	.service__ico { background: #2c2724; }
	.checklist li::before { box-shadow: inset 0 0 0 1px rgb(251 146 60 / .35); }
	.footer__claim, .footer { color: rgb(255 255 255 / .72); }
}

/* ---------- omezený pohyb / tisk ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.reveal { opacity: 1; transform: none; }
}

@media print {
	.header, .nav, .call-fab, .lightbox, .contact-form, .hero__bg { display: none !important; }
	body { color: #000; background: #fff; }
	.reveal { opacity: 1; transform: none; }
	.hero { background: #fff; color: #000; padding-block: 1rem; }
	a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
