/*
	praktikpribram.cz – šablona ppm2
	Bez externích fontů a knihoven (žádné přenosy dat třetím stranám bez souhlasu).
*/

:root {
	--bg: #f6f9fa;
	--surface: #ffffff;
	--ink: #18262e;
	--muted: #566872;
	--line: #dde6ea;
	--accent: #0b7a85;
	--accent-strong: #075b64;
	--accent-ink: #ffffff;
	--accent-soft: #e2f1f3;
	--notice-bg: #fff6df;
	--notice-line: #efd48a;
	--notice-ink: #5a4300;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 40, 50, .06), 0 10px 30px rgba(16, 40, 50, .07);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 64px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1a1f;
		--surface: #15262d;
		--ink: #e7eff2;
		--muted: #9fb2ba;
		--line: #264149;
		--accent: #4cc3cf;
		--accent-strong: #86dbe4;
		--accent-ink: #06282c;
		--accent-soft: #14393f;
		--notice-bg: #3a3112;
		--notice-line: #6b5a1f;
		--notice-ink: #f3e3b0;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
	}
}

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

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }

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

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 200;
	padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
	border-radius: 8px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 860px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand__mark {
	display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px;
	background: var(--accent); color: var(--accent-ink);
}
.brand__mark svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: 0; line-height: 1.1; }

.nav__list { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav__list a {
	display: block; padding: .5rem .8rem; border-radius: 999px;
	color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none;
	transition: background .15s, color .15s;
}
.nav__list a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.nav__list a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
		height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px;
		background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, 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); }

	.js .nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: .5rem 1rem 1rem;
	}
	.js .nav.is-open { display: block; }
	.js .nav__list { flex-direction: column; gap: 0; width: min(100%, 1080px); margin-inline: auto; }
	.js .nav__list a { padding: .85rem .5rem; border-radius: 8px; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); background:
	radial-gradient(900px 380px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero__grid { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; align-items: center; }
.hero__main { flex: 1 1 26rem; }
.hero .notice { flex: 1 1 20rem; max-width: 34rem; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 750; }
.hero__lead { margin: 1.1rem 0 0; max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	min-height: 2.9rem; padding: .6rem 1.3rem; border-radius: 999px; border: 2px solid var(--accent);
	background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--accent-strong); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }

.notice {
	padding: 1rem 1.25rem;
	background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: var(--radius); color: var(--notice-ink);
	display: flex; gap: .85rem; align-items: flex-start;
}
.notice .icon { margin-top: .2rem; }
.notice__title { display: block; font-weight: 700; margin-bottom: .1rem; }
.notice p { margin: 0; }
.notice p + p { margin-top: .5rem; }

/* ---------- Sections ---------- */

.sec { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { margin-bottom: 1.5rem; }
.sec__head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; }
.sec__head h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: .6rem; border-radius: 4px; background: var(--accent); }

.prose { font-size: 1.0625rem; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1rem; }
.prose p { margin-block: 0; }
.prose p + p { margin-top: 1rem; }
.prose u { text-decoration: none; font-weight: 600; }
.prose h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose strong { font-weight: 650; }

.prose ul { padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5rem; margin: .45rem 0; }
.prose ul li::before {
	content: ""; position: absolute; left: .1rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
}
@media (min-width: 760px) {
	#o-nas .prose ul { column-count: 2; column-gap: 2.5rem; }
	#o-nas .prose ul li { break-inside: avoid; }
}

.prose img { border-radius: 10px; }
.prose .image.main { margin: 0 0 1.5rem; }
.prose .image.main img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose .image.avatar img { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; border: 4px solid var(--surface); box-shadow: var(--shadow); }

/* sekce Náš tým: každý člen týmu je karta (vytváří main.js) */
.sec--team { background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); border-top: 1px solid var(--line); }
.prose .person {
	display: grid; grid-template-columns: auto 1fr; grid-template-areas: "photo name" "text text";
	gap: .75rem 1.25rem; align-items: center; margin-top: 1.25rem; padding: 1.25rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.prose .person:first-child { margin-top: 0; }
.person__photo { grid-area: photo; margin: 0; line-height: 0; }
.prose .person .person__photo img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 3px solid var(--accent-soft); box-shadow: none; }
.prose .person__name { grid-area: name; margin: 0; font-size: 1.25rem; }
.person__text { grid-area: text; }
.person__text > * + * { margin-top: .9rem; }
.person--plain { grid-template-areas: "name" "text"; grid-template-columns: 1fr; }
.person__docs { border: 1px solid var(--line); border-radius: 10px; padding: .25rem .9rem; background: var(--bg); }
.person__docs summary { padding: .6rem 0; cursor: pointer; font-weight: 600; color: var(--accent-strong); }
.person__docs[open] summary { margin-bottom: .5rem; }
@media (min-width: 700px) {
	.prose .person { grid-template-columns: 148px 1fr; grid-template-areas: "photo name" "photo text"; align-items: start; gap: .5rem 1.75rem; padding: 1.5rem; }
	.prose .person .person__photo img { width: 148px; height: 148px; }
	.prose .person__name { align-self: end; font-size: 1.4rem; }
	.person--plain { grid-template-columns: 1fr; grid-template-areas: "name" "text"; }
}

.prose iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius); aspect-ratio: 16 / 9; height: auto; min-height: 280px; background: var(--accent-soft); }

/* tabulky: ordinační doba a galerie diplomů */
.table-wrap { overflow-x: auto; }
.table-wrap.is-hours { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; }
.prose table.is-hours th, .prose table.is-hours td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose table.is-hours th { background: var(--accent-soft); color: var(--accent-strong); font-size: .9rem; font-weight: 650; }
.prose table.is-hours td:first-child { font-weight: 650; text-transform: capitalize; white-space: nowrap; }
.prose table.is-hours tr:last-child td { border-bottom: 0; }
.prose table.is-hours td { font-variant-numeric: tabular-nums; }
.prose table.is-gallery { border-spacing: 0; }
.prose table.is-gallery td { width: 50%; padding: .35rem; vertical-align: top; }
.prose table.is-gallery img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 600px) {
	.prose table.is-hours th, .prose table.is-hours td { padding: .65rem .7rem; font-size: .95rem; }
}

/* dokumenty ke stažení */
#dokumenty-ke-stazeni .prose ul { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
#dokumenty-ke-stazeni .prose li { margin: 0; padding: 0; }
#dokumenty-ke-stazeni .prose li::before { content: none; }
#dokumenty-ke-stazeni .prose li a {
	display: flex; align-items: center; gap: .85rem; height: 100%; padding: .9rem 1.1rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
#dokumenty-ke-stazeni .prose li a::before {
	content: "PDF"; flex: none; padding: .3rem .5rem; border-radius: 8px;
	background: var(--accent-soft); color: var(--accent-strong); font-size: .7rem; font-weight: 800; letter-spacing: .04em;
}
#dokumenty-ke-stazeni .prose li a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }

/* ---------- Souhlas s externím obsahem (mapa) ---------- */

[hidden] { display: none !important; }

/* Kontakt: tři karty vedle sebe (vytváří main.js) */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prose .contact-grid > .contact-card {
	margin: 0; padding: 1.25rem; font-size: 1rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-card__label { display: block; margin-bottom: .5rem; color: var(--accent-strong); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.embed-gate {
	display: grid; place-items: center; gap: .9rem; text-align: center; min-height: 280px; padding: 1.5rem;
	border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}
.embed-gate p { margin: 0; max-width: 46ch; color: var(--muted); font-size: .95rem; }
.embed-gate .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a, .link-btn { color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer a:hover, .link-btn:hover { color: var(--accent-strong); }

/* ---------- Cookie lišta a nastavení ---------- */

.cc-banner {
	position: fixed; z-index: 300; left: 1rem; bottom: 1rem; width: min(calc(100% - 2rem), 440px);
	padding: 1.25rem; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(10, 30, 40, .25);
}
.cc-banner[hidden] { display: none; }
.cc-banner h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.cc-banner p { margin: 0; font-size: .92rem; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cc-actions .btn { flex: 1 1 auto; min-height: 2.6rem; padding: .5rem 1rem; font-size: .92rem; }
.cc-actions .btn--text { flex-basis: 100%; border-color: transparent; background: none; color: var(--accent-strong); text-decoration: underline; min-height: 2rem; }
.cc-actions .btn--text:hover { background: none; }
@media (max-width: 520px) {
	.cc-banner { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
}

.cc-dialog {
	width: min(calc(100% - 2rem), 520px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(10, 30, 40, .35);
}
.cc-dialog::backdrop { background: rgba(10, 25, 32, .55); }
.cc-dialog form { padding: 1.5rem; }
.cc-dialog h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.cc-dialog p { margin: 0; font-size: .92rem; color: var(--muted); }
.cc-cat { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cc-cat:first-of-type { margin-top: 1rem; border-top: 1px solid var(--line); }
.cc-cat strong { display: block; margin-bottom: .15rem; }
.cc-switch { position: relative; flex: none; width: 3rem; height: 1.75rem; margin-top: .15rem; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.cc-switch span::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.75rem - 6px); height: calc(1.75rem - 6px);
	border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.cc-switch input:checked + span { background: var(--accent); }
.cc-switch input:checked + span::after { transform: translateX(1.25rem); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + span { opacity: .6; }
.cc-switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-dialog .cc-actions { margin-top: 1.25rem; }

@media print {
	.site-header, .cc-banner, .nav-toggle, .hero__actions, .embed-gate { display: none !important; }
	body { background: #fff; color: #000; }
}
