@charset "UTF-8";
/* Modelklub Horažďovice – v2 */
:root {
	--navy: #0b1a33;
	--navy-2: #13284d;
	--sky: #2f6fde;
	--sky-l: #e8f0fd;
	--gold: #f4b400;
	--red: #d7263d;
	--text: #1b2333;
	--muted: #5d6779;
	--bg: #f4f6fa;
	--card: #fff;
	--line: #e1e6ef;
	--r: 14px;
	--shadow: 0 6px 24px rgba(11, 26, 51, .08);
	--wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
}
img, video { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: .93rem; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* ---------- Hlavička ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { display: block; height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
	display: block; padding: 8px 11px; border-radius: 8px;
	color: var(--navy); text-decoration: none; font-weight: 650; font-size: .93rem;
}
.nav a:hover { background: var(--sky-l); color: var(--sky); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav a.cta { background: var(--red); color: #fff; margin-left: 6px; border-radius: 8px; box-shadow: none; }
.nav a.cta:hover { background: var(--navy); color: #fff; }
.nav-toggle {
	display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
	width: 46px; height: 42px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 22px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; content: ""; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
	.js .nav-toggle { display: block; }
	.js .site-nav { display: none; }
	.js .nav-open .site-nav { display: block; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.nav { flex-direction: column; padding: 10px 20px 16px; }
	.nav a { padding: 12px 8px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
	.nav a.cta { margin: 10px 0 0; text-align: center; border: 0; }
	html:not(.js) .site-nav { position: static; box-shadow: none; border: 0; }
	html:not(.js) .head-in { flex-wrap: wrap; }
}

/* ---------- Robotika – záložky ---------- */
.tabs { background: var(--navy); }
.tabs ul { display: flex; gap: 4px; overflow-x: auto; list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--wrap); scrollbar-width: none; }
.tabs a { display: block; white-space: nowrap; padding: 12px 14px; color: #c9d6f2; text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Hero (úvod) ---------- */
.hero {
	position: relative; color: #fff;
	background: var(--navy) url("../img/hero.jpg") center / cover no-repeat;
	min-height: min(78vh, 720px);
	display: flex; align-items: flex-end;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(11,26,51,.92) 0%, rgba(11,26,51,.7) 45%, rgba(11,26,51,.15) 100%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 70px; width: 100%; }
.hero h1 { color: #fff; max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.2rem; max-width: 34em; color: #dbe4f6; }
.hero .eyebrow { color: var(--gold); }
.actions { display: flex; justify-content: inherit; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 24px; border-radius: 10px; font-weight: 750; text-decoration: none;
	background: var(--red); color: #fff; border: 2px solid var(--red);
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #b81c31; border-color: #b81c31; color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.dark { background: var(--navy); border-color: var(--navy); }
.btn.dark:hover { background: var(--sky); border-color: var(--sky); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Banner podstránek ---------- */
.banner {
	position: relative; color: #fff; background: var(--navy-2) center / cover no-repeat;
	padding: 72px 0 56px;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,51,.92), rgba(11,26,51,.55)); }
.banner .wrap { position: relative; }
.banner h1 { color: #fff; margin: 0; }
.banner p { color: #d3ddf1; margin: 10px 0 0; font-size: 1.12rem; max-width: 40em; }
.banner .eyebrow { color: var(--gold); }
.b-letadla { background-image: url("../img/banner-letadla.jpg"); }
.b-klub { background-image: url("../img/banner-klub.jpg"); }
.b-robo { background-image: url("../img/banner-robotika.jpg"); }
.b-lode { background-image: url("../img/sekce-lode.jpg"); }

/* ---------- Sekce ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

.stats { background: var(--navy); color: #fff; }
.stats ul { list-style: none; margin: 0 auto; padding: 26px 20px; max-width: var(--wrap); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stats strong { display: block; font-size: 1.6rem; color: var(--gold); line-height: 1.2; }
.stats span { color: #c9d6f2; font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
	background: var(--card); border-radius: var(--r); overflow: hidden;
	box-shadow: var(--shadow); border: 1px solid var(--line);
	display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,26,51,.14); color: inherit; }
.card img.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.card .more { margin-top: auto; font-weight: 700; color: var(--sky); }
a.card:hover .more { color: var(--red); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.prose { max-width: 46em; }
.prose.center { margin-left: auto; margin-right: auto; }

/* ---------- Nábor ---------- */
.join {
	background: linear-gradient(120deg, var(--gold), #ffd45c);
	border-radius: 20px; padding: 40px; color: var(--navy);
	display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
}
.join h2 { color: var(--navy); }
.join ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.join li { background: rgba(255,255,255,.7); border-radius: 10px; padding: 10px 14px; }
.join li strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #7a5a00; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; padding: 26px; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }

.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.doc { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.doc img { border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.price { display: inline-block; background: var(--sky-l); color: var(--navy); font-weight: 800; padding: 3px 10px; border-radius: 6px; }

/* ---------- Aktuality ---------- */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-list.full { grid-template-columns: 1fr; max-width: 820px; }
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news .body { padding: 18px 22px 22px; }
.news time { display: inline-block; font-size: .82rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.news h3 { margin-bottom: 6px; }
.news p { color: var(--muted); }
.news p:last-child { margin-bottom: 0; }
.news-list.full .news { flex-direction: row; }
.news-list.full .news img { width: 300px; aspect-ratio: auto; }
@media (max-width: 680px) { .news-list.full .news { flex-direction: column; } .news-list.full .news img { width: 100%; aspect-ratio: 16/9; } }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
	font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
	padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy);
}
.filters button:hover { border-color: var(--sky); color: var(--sky); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters .count { opacity: .6; font-weight: 600; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.grid a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: #dde3ee; }
.grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.grid a:hover img { transform: scale(1.06); }
.grid a span {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; color: #fff; font-size: .85rem; font-weight: 700;
	background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s;
}
.grid a:hover span, .grid a:focus span { opacity: 1; }
.grid [hidden] { display: none; }

/* ---------- Fotky s popisky ---------- */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.models figure { margin: 0; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.models a { display: block; overflow: hidden; }
.models img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.models a:hover img { transform: scale(1.05); }
.models figcaption { padding: 10px 14px; font-weight: 750; color: var(--navy); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.feature img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; }
.feature.rev > :first-child { order: 2; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature.rev > :first-child { order: 0; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair img { border-radius: 10px; width: 100%; }

/* ---------- Video ---------- */
.video { margin: 0 0 30px; }
.video video { display: block; width: 100%; border-radius: var(--r); background: #000; box-shadow: var(--shadow); }
.video figcaption { margin-top: 10px; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.videos h3 { margin-top: 0; }

/* ---------- Historie ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 38px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.timeline b { display: block; color: var(--navy); font-size: 1.1rem; }

/* ---------- Kontakt ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.person { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--muted); margin-bottom: 14px; }
.person a { display: block; font-weight: 700; text-decoration: none; padding: 4px 0; }

/* ---------- Patička ---------- */
.site-foot { background: var(--navy); color: #c9d6f2; padding: 54px 0 24px; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid li a { text-decoration: none; }
.foot-grid li a:hover { color: var(--gold); }
.sponsors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sponsors img { height: 36px; width: auto; background: #fff; padding: 4px 6px; border-radius: 6px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.svatek strong { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 10, 20, .92); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { display: block; max-width: 94vw; max-height: 84vh; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 10px; font-weight: 600; }
.lightbox button {
	position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.95); color: var(--navy); font-size: 1.9rem; line-height: 1;
}
.lightbox .close { top: 14px; right: 14px; }
.lightbox .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Chybové stránky ---------- */
.error-code { font-size: 6rem; font-weight: 900; color: var(--red); line-height: 1; margin: 0; }

/* ---------- Animace při scrollu ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.section { padding: 44px 0; }
	.panel { padding: 20px; }
	.hero { background-image: url("../img/hero-m.jpg"); min-height: 82vh; }
	.hero::before { background: linear-gradient(180deg, rgba(11,26,51,.35), rgba(11,26,51,.92) 60%); }
	.brand img { height: 42px; }
	.doc { grid-template-columns: 90px 1fr; }
	.pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* doladění */
.grid.teaser { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) {
	.grid, .grid.teaser { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.stats ul { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
	.stats strong { font-size: 1.3rem; }
	.models { grid-template-columns: 1fr 1fr; gap: 10px; }
	.models figcaption { font-size: .9rem; padding: 8px 10px; }
}
.center .actions { justify-content: center; }
