/* ==========================================================================
   Fileno Test – veřejný web
   Barvy a rozměry jsou v proměnných níže; po dodání grafiky stačí upravit je.
   ========================================================================== */

:root {
	--ink: #0b2a36;
	--text: #2b4652;
	--muted: #5b7480;
	--brand: #0b3b4f;
	--brand-deep: #072a39;
	--teal: #138a7e;
	--teal-dark: #0f7369;
	--mint: #5fd3c3;
	--mint-soft: #e3f6f3;
	--amber: #f4b860;
	--danger: #c2413a;
	--bg: #ffffff;
	--bg-soft: #f2f7f8;
	--line: #dbe6e9;

	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(11, 42, 54, .05), 0 8px 24px -12px rgba(11, 42, 54, .18);
	--shadow-lg: 0 24px 60px -24px rgba(7, 42, 57, .45);
	--container: 1200px;
	--gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* Základ ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
	background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* Tlačítka ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45rem .95rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 6px 18px -8px rgba(19, 138, 126, .7); }
.btn-outline { border-color: var(--line); color: var(--brand); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--mint-soft); color: var(--brand); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row.center { justify-content: center; }
.link-button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.link-button:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Horní lišta a hlavička -------------------------------------------------- */
.topbar { background: var(--brand-deep); color: #b9d3da; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; gap: .5rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar .icon { color: var(--mint); }

.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; flex-grow: 1; gap: 1.5rem; }
.nav-main { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; flex-grow: 1; }
.nav-main a {
	display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px;
	color: var(--ink); font-weight: 500; text-decoration: none; font-size: .95rem;
}
.nav-main a:hover { background: var(--bg-soft); }
.nav-main a.active { color: var(--teal-dark); background: var(--mint-soft); }
.nav-main .nav-hcp { color: var(--teal-dark); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-right: .25rem; }
.lang-switch a { padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.lang-switch a.active { background: var(--brand); color: #fff; }
.account-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; max-width: 220px; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mint-soft); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; color: var(--brand); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1023.98px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0 0 0 auto; top: 0; width: min(360px, 100%); background: #fff;
		flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 88px 24px 32px;
		box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
		z-index: -1;
	}
	.nav-open .site-nav { transform: none; }
	.nav-open .nav-toggle .icon-open { display: none; }
	.nav-open .nav-toggle .icon-close { display: block; }
	.nav-main { flex-direction: column; flex-grow: 0; }
	.nav-main a { display: flex; padding: .8rem 1rem; font-size: 1.05rem; }
	.nav-tools { flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); }
	.nav-tools .btn { flex-grow: 1; }
	.lang-switch { order: 10; }
	.account-link { flex-basis: 100%; max-width: none; }
	.nav-open .nav-toggle { position: relative; z-index: 2; }
}
@media (max-width: 1023.98px) {
	/* backdrop-filter by z fixed menu udělal relativní k hlavičce */
	.site-header { z-index: 60; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Hlášky ------------------------------------------------------------------ */
.flashes { padding-top: 1.25rem; }
.alert { display: flex; align-items: flex-start; gap: .6rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; font-size: .95rem; }
.alert .icon { margin-top: .2em; }
.alert p { margin: 0; }
.alert-success, .alert-info { background: var(--mint-soft); color: #0b4f47; }
.alert-error { background: #fdecea; color: #8a241f; }
.alert-warning { background: #fff5e0; color: #7a4d00; }
.alert-error { flex-direction: column; gap: .15rem; }

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden; color: #d9ecf0;
	background: radial-gradient(900px 500px at 85% 20%, rgba(95, 211, 195, .25), transparent 60%),
		linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, #0e5a63 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-art { position: absolute; right: -80px; top: 50%; width: 620px; max-width: none; transform: translateY(-50%); opacity: .95; }
.hero-inner { position: relative; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #cfe6eb; margin-bottom: 2rem; max-width: 540px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--teal); margin-bottom: .5rem; }
@media (max-width: 899.98px) {
	.hero-art { right: -260px; top: auto; bottom: -220px; transform: none; opacity: .45; }
	.hero-inner { padding-top: 56px; padding-bottom: 72px; }
}

/* Výhody --------------------------------------------------------------- */
.features { position: relative; margin-top: -48px; z-index: 2; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature h2 { font-size: 1.1rem; margin: .9rem 0 .35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.feature-icon .icon { width: 24px; height: 24px; }

/* Sekce ------------------------------------------------------------------ */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
@media (max-width: 599.98px) { .section { padding: 52px 0; } }

.page-hero { background: var(--bg-soft); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .3em; }
.page-lead { font-size: 1.125rem; color: var(--muted); max-width: 680px; margin: 0; }
.page-hero-dark { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 70%, #0e5a63); border: 0; color: #cfe6eb; padding: 72px 0 64px; }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .page-lead { color: #cfe6eb; }

/* Karty ------------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8dade; }
.card-media { display: block; position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0e4a5e, var(--teal)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.media-placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .85);
	background: radial-gradient(400px 200px at 80% 0, rgba(95, 211, 195, .45), transparent 70%);
}
.media-placeholder .icon { width: 64px; height: 64px; }
.play-badge {
	position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
	background: rgba(255, 255, 255, .95); color: var(--teal); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.play-badge .icon { width: 24px; height: 24px; margin-left: 3px; }
.card:hover .play-badge { transform: scale(1.08); }
.duration { position: absolute; right: .6rem; bottom: .6rem; background: rgba(7, 42, 57, .85); color: #fff; font-size: .75rem; font-weight: 600; padding: .15rem .45rem; border-radius: 4px; }
.card-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; min-height: 1.6rem; }
.chip {
	display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .6rem;
	border-radius: 999px; background: var(--bg-soft); color: var(--muted); text-decoration: none; letter-spacing: .01em;
}
a.chip:hover { background: var(--mint-soft); color: var(--teal-dark); }
.chip-hcp { background: var(--brand); color: #fff; }
.chip-hcp .icon { width: .95em; height: .95em; color: var(--mint); }
.card-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-title a:hover { color: var(--teal-dark); }
.card-text { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.card-more { display: inline-flex; align-items: center; gap: .3rem; color: var(--teal-dark); font-weight: 600; }
.card-hcp .card-media::after {
	content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 42, 57, .35), transparent 50%);
}
@media (min-width: 900px) {
	.card-large { grid-column: 1 / -1; flex-direction: row; }
	.card-large .card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
	.card-large .card-body { padding: 2rem 2.25rem; justify-content: center; }
	.card-large .card-title { font-size: 1.75rem; }
	.card-large .card-text { font-size: 1.02rem; }
	.card-large .card-foot { margin-top: 1rem; }
}

/* Filtr a stránkování ---------------------------------------------------- */
.category-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pill {
	padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text);
	text-decoration: none; font-size: .9rem; font-weight: 500; transition: all .15s;
}
.pill:hover { border-color: var(--teal); color: var(--teal-dark); }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 3rem; flex-wrap: wrap; }
.page-link {
	min-width: 42px; height: 42px; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; background: #fff;
}
.page-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { color: var(--muted); padding: 0 .25rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius); }

/* Detail článku / videa ------------------------------------------------- */
.article-head { padding: 48px 0 24px; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.025em; margin: .25em 0 .35em; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 1.25rem; }
.back-link:hover { color: var(--teal-dark); }
.article-date { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: .35rem; }
.article-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-weight: 500; margin: 1.25rem 0 0; }
.article-image { margin: 1rem 0 2.5rem; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article + .section, .article { padding-bottom: 32px; }

.prose { font-size: 1.075rem; line-height: 1.75; color: var(--text); margin-bottom: 2.5rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 2em 0; padding: 1.25em 1.5em; background: var(--mint-soft); border-left: 4px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .5em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.prose iframe { max-width: 100%; }
.prose a { font-weight: 500; }

.attachments { margin: 0 0 3rem; padding: 1.75rem; background: var(--bg-soft); border-radius: var(--radius); }
.attachments h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.attachment {
	display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); transition: border-color .15s;
}
.attachment:hover { border-color: var(--teal); color: var(--ink); }
.attachment > .icon { margin-left: auto; color: var(--teal); width: 22px; height: 22px; }
.attachment-ext {
	width: 44px; height: 44px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
	text-transform: uppercase; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.attachment-info { display: flex; flex-direction: column; min-width: 0; }
.attachment-info strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.attachment-info small { color: var(--muted); }

/* Video přehrávač (načte se až po kliknutí) ----------------------------- */
.video-container { max-width: calc(1000px + 2 * var(--gutter)); margin-bottom: 2rem; }
.video-player {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(135deg, var(--brand-deep), #0e5a63); box-shadow: var(--shadow-lg);
}
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 42, 57, .6), transparent 50%); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.play-circle {
	width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s;
}
.play-circle .icon { width: 34px; height: 34px; margin-left: 5px; }
.video-play:hover .play-circle { transform: scale(1.08); }
.video-consent { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .75rem 1rem; font-size: .78rem; color: #d7e8ec; text-align: center; pointer-events: none; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Zamčený obsah -------------------------------------------------------- */
.locked-box {
	text-align: center; padding: 2.5rem 1.5rem; margin: 0 0 3rem; border-radius: var(--radius);
	background: linear-gradient(180deg, var(--mint-soft), #fff); border: 1px solid #bfe6e0;
}
.locked-box h2 { font-size: 1.35rem; max-width: 480px; margin: 1rem auto .5rem; }
.locked-box p { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; }
.locked-box .btn-row { justify-content: center; }
.locked-icon, .status-icon {
	width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--mint); margin: 0 auto;
	display: flex; align-items: center; justify-content: center;
}
.locked-icon .icon, .status-icon .icon { width: 28px; height: 28px; }
.status-icon { margin-bottom: 1.25rem; background: var(--mint-soft); color: var(--teal); }
.status-error { background: #fdecea; color: var(--danger); }

/* CTA pás --------------------------------------------------------------- */
.cta-band {
	display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
	padding: 2.75rem; border-radius: 20px; color: #cfe6eb; position: relative; overflow: hidden;
	background: radial-gradient(600px 300px at 100% 0, rgba(95, 211, 195, .35), transparent 70%), linear-gradient(135deg, var(--brand-deep), var(--brand));
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4em; }
.cta-band p { margin: 0; max-width: 560px; }
@media (max-width: 599.98px) { .cta-band { padding: 2rem 1.5rem; } }

/* Odborná sekce – kroky ---------------------------------------------------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 2.5rem; counter-reset: step; }
.step { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step h2 { font-size: 1.15rem; margin: 1rem 0 .35rem; }
.step p { margin: 0; color: var(--muted); }
.step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Formuláře a účet ------------------------------------------------------- */
.auth { padding: 56px 0 80px; background: var(--bg-soft); min-height: 60vh; }
.auth-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); max-width: 980px; }
@media (min-width: 860px) { .auth-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.auth-card { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.auth-card h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.auth-card.center { text-align: center; }
.auth-card.center p { max-width: 520px; margin-left: auto; margin-right: auto; }
.auth-links { margin: 1.25rem 0 0; }
.auth-links a { display: inline-flex; align-items: center; gap: .3rem; }
.auth-aside {
	border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); color: #cfe6eb;
	background: radial-gradient(400px 240px at 100% 0, rgba(95, 211, 195, .3), transparent 70%), linear-gradient(135deg, var(--brand-deep), var(--brand));
}
.auth-aside h2 { color: #fff; font-size: 1.4rem; }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .icon { color: var(--mint); margin-top: .2em; }
.profile-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.profile-side { display: grid; gap: 1.5rem; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.danger-zone[open] summary { margin-bottom: 1rem; }
.danger-zone .btn-primary { background: var(--danger); }

form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
form legend {
	font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal);
	padding: 0; margin-bottom: 1rem; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: .5rem;
}
.form-fields { display: grid; gap: 1rem 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
	.auth-card-wide fieldset .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.auth-card-wide fieldset .field:has(input[type=checkbox]) { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field.is-required > label:first-child::after { content: ' *'; color: var(--teal); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select, .field textarea {
	width: 100%; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235b7480' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(95, 211, 195, .25); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-hint { color: var(--muted); font-size: .82rem; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 500; }
.field:has(input[type=checkbox]) { flex-direction: row; }
.field:has(input[type=checkbox]) label { font-weight: 400; font-size: .92rem; display: block; position: relative; padding-left: 1.9rem; cursor: pointer; color: var(--text); }
.field.is-required:has(input[type=checkbox]) > label:first-child::after { content: none; }
.field input[type=checkbox] { position: absolute; left: 0; top: .1em; width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }
.field:has(input[type=checkbox]) .field-error { margin-left: 1.9rem; }
.field:has(input[type=checkbox]) { flex-wrap: wrap; }
.field input[type=submit] { justify-self: start; }
.hp-field { position: absolute !important; left: -9999px !important; }
.field:has(input[type=submit]) { margin-top: .5rem; }

/* Chybová stránka -------------------------------------------------------- */
.error-page { text-align: center; padding-top: 40px; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin: 0 0 .2em; background: linear-gradient(135deg, var(--brand), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Patička --------------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: #9fbcc5; font-size: .92rem; padding: 64px 0 32px; }
.site-footer a, .site-footer .link-button { color: #d4e6ea; text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-brand img { margin-bottom: 1.25rem; height: 36px; width: auto; }
.footer-brand p { max-width: 320px; }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--mint) !important; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }
.footer-code { color: #6f909a; }

/* Brána „Jste zdravotník?“ -------------------------------------------------- */
.gate {
	position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(7, 42, 57, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	animation: fade-in .25s ease;
}
.gate[hidden] { display: none; }
.gate-panel {
	background: #fff; border-radius: 20px; max-width: 560px; width: 100%; padding: clamp(1.75rem, 5vw, 2.75rem);
	text-align: center; box-shadow: var(--shadow-lg); animation: rise .3s ease; max-height: 100%; overflow-y: auto;
}
.gate-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.gate-icon .icon { width: 32px; height: 32px; }
.gate h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); }
.gate p { color: var(--muted); }
.gate-actions { display: flex; flex-direction: column; gap: .65rem; margin: 1.75rem 0 1.25rem; }
.gate-actions .btn { width: 100%; white-space: normal; }
.gate-note { font-size: .8rem; margin: 0; }
body.has-gate { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Cookie lišta ---------------------------------------------------------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; pointer-events: none; }
.cookie-bar[hidden] { display: none; }
.cookie-inner {
	pointer-events: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	padding: 1.1rem 1.35rem; max-width: 920px; width: 100%; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; flex: 1 1 380px; font-size: .88rem; }
.cookie-inner strong { color: var(--ink); }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

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