:root {
    --bg: #10161b;
    --surface: #172027;
    --surface-2: #1d2931;
    --paper: #f3f5f3;
    --ink: #172027;
    --muted: #647078;
    --line: #d9dfdc;
    --white: #ffffff;
    --yellow: #ffd230;
    --yellow-deep: #eab600;
    --green: #00a86b;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(11, 20, 25, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); padding: .7rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--bg); color: var(--white); }
.road-stripe {
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--yellow) 0 70px, transparent 70px 108px);
    opacity: .95;
}
.header-inner, .finder, .directory, .source-note, .footer-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.route-sign {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 3px solid var(--white); border-radius: 12px; color: var(--yellow);
    font-size: 1.12rem; font-weight: 900; letter-spacing: -.04em;
    transform: rotate(-2deg);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.06rem; letter-spacing: -.02em; }
.brand-copy small { color: #aeb9be; margin-top: .28rem; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 1.75rem; }
.header-nav a { color: #cbd3d6; text-decoration: none; font-size: .9rem; font-weight: 650; }
.header-nav a:hover { color: var(--white); }
.header-nav a.active { color: var(--white); }
.header-nav .add-link { color: var(--bg); background: var(--yellow); padding: .62rem .95rem; border-radius: 999px; }
.header-nav .add-link:hover { color: var(--bg); background: #ffe070; }
.nav-toggle { display: none; }

.finder {
    display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 7vw, 6.5rem);
    min-height: 440px; padding-block: 64px; color: var(--white);
}
main { background: linear-gradient(var(--bg) 0 520px, var(--paper) 520px); }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; color: #bdc7ca; font-size: .76rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 3px; background: var(--yellow); }
h1 { margin: 1.1rem 0 1rem; max-width: 720px; font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: .97; letter-spacing: -.065em; }
h1 em { color: var(--yellow); font-style: normal; }
.finder-copy > p { max-width: 600px; margin: 0; color: #b9c3c7; font-size: 1.08rem; }
.search-panel { position: relative; padding: 1.35rem; border: 1px solid #36434a; border-radius: 22px; background: rgba(28, 39, 46, .78); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.search-panel::before { content: ""; position: absolute; top: -12px; right: 30px; width: 54px; height: 24px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.search-panel label { display: block; margin: 0 0 .7rem; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .3rem .4rem .3rem 1rem; background: var(--white); color: var(--ink); border-radius: 13px; }
.search-box:focus-within { outline: 3px solid rgba(255, 210, 48, .35); }
.search-box svg { width: 1.3rem; color: #6f7b81; }
.search-box input { width: 100%; min-height: 48px; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 1rem; background: transparent; }
.search-box input::placeholder { color: #8b959a; }
kbd { border: 1px solid #d8dddf; background: #f1f3f2; color: #778187; border-radius: 7px; padding: .25rem .4rem; font: 700 .65rem/1 ui-monospace, monospace; }
.quick-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.quick-links a { display: inline-flex; align-items: center; gap: .42rem; color: #d8dfe1; text-decoration: none; font-size: .8rem; padding: .32rem .55rem; }
.quick-links a:hover { color: var(--yellow); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #55dc86; box-shadow: 0 0 0 4px rgba(85,220,134,.12); }

.category-strip { width: min(1240px, calc(100% - 24px)); margin: 0 auto 3.4rem; padding: .65rem; border: 1px solid #dfe3e1; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.category-scroll { display: grid; grid-template-columns: repeat(9, minmax(96px, 1fr)); gap: .35rem; }
.category-pill { min-height: 79px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; border-radius: 14px; color: #59666d; text-decoration: none; font-size: .76rem; font-weight: 750; white-space: nowrap; transition: background .18s, color .18s, transform .18s; }
.category-pill:hover { background: #f1f4f2; color: var(--ink); transform: translateY(-2px); }
.category-pill.active { background: var(--yellow); color: var(--ink); }
.category-pill svg { width: 1.35rem; height: 1.35rem; }
.all-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 7px; font-size: .68rem; }

.directory { padding-bottom: 5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.7rem; }
.section-number { color: #78848a; font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
h2 { margin: .25rem 0 0; font-size: clamp(1.8rem, 3.5vw, 2.75rem); line-height: 1.12; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 .25rem; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.section-heading strong { color: var(--ink); font-size: 1.15rem; }
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.link-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 1.3rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 90px; height: 90px; border: 12px solid #eef1ef; border-radius: 50%; }
.link-card:hover { z-index: 1; transform: translateY(-4px); border-color: #b8c2be; box-shadow: 0 18px 45px rgba(19, 32, 39, .1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--bg); color: var(--yellow); }
.card-icon svg { width: 1.25rem; height: 1.25rem; }
.card-tag { max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: #66737a; background: #edf0ef; border-radius: 999px; padding: .28rem .52rem; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.card-tag.official { color: #08734d; background: #e4f6ee; }
.link-card h3 { margin: 1.2rem 0 .35rem; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.02em; }
.link-card p { margin: 0; color: var(--muted); font-size: .87rem; }
.card-link { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.2rem; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.card-link span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--yellow); font-size: 1rem; transition: transform .18s; }
.card-link:hover span { transform: translate(2px, -2px); }
.empty-state { padding: 4rem 1rem; text-align: center; border: 1px dashed #bdc6c2; border-radius: var(--radius); }
.empty-state > span { display: grid; place-items: center; width: 46px; height: 46px; margin: auto; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.empty-state h3 { margin: .8rem 0 .2rem; }
.empty-state p { margin: 0 0 1rem; color: var(--muted); }
.empty-state button { border: 0; border-radius: 999px; background: var(--bg); color: var(--white); padding: .7rem 1rem; font: 750 .85rem inherit; cursor: pointer; }

.source-note { display: grid; grid-template-columns: 130px 1fr; gap: 2.2rem; align-items: center; margin-bottom: 5rem; padding: 2.3rem; border-radius: 24px; color: var(--white); background: var(--surface); }
.source-sign { display: grid; place-items: center; aspect-ratio: 1; border: 4px solid var(--white); border-radius: 18px; transform: rotate(45deg); }
.source-sign span { color: var(--yellow); font-size: 3rem; font-family: Georgia, serif; font-weight: 800; transform: rotate(-45deg); }
.source-note .section-number { color: #98a7ad; }
.source-note h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.source-note p { max-width: 820px; margin: .75rem 0 0; color: #bec8cc; }

footer { color: #aeb9bd; background: #0b1014; border-top: 1px solid #252f34; }
.footer-inner { min-height: 120px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; font-size: .78rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-weight: 800; }
.footer-brand span { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--white); border-radius: 8px; color: var(--yellow); }
.credit a { color: var(--yellow); text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { color: #aeb9bd; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }

/* Vnitřní stránky */
.inner-main { background: var(--paper); }
.page-hero { color: var(--white); background: var(--bg); padding: 48px max(20px, calc((100% - 1180px) / 2)) 74px; }
.page-hero h1 { margin-bottom: 1rem; max-width: 900px; }
.page-hero > p { max-width: 760px; margin: 0; color: #b9c3c7; font-size: 1.08rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.4rem; color: #849298; font-size: .76rem; }
.breadcrumbs a { color: #b8c3c7; text-decoration: none; }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs strong { color: var(--white); font-weight: 700; }
.content-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 4.5rem 0 5.5rem; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.overview-card { position: relative; min-height: 245px; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.overview-card:hover { transform: translateY(-4px); border-color: #b8c2be; box-shadow: var(--shadow); }
.overview-card .item-count { position: absolute; top: 1.7rem; right: 1.6rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.overview-card h2 { margin-top: 1.2rem; font-size: 1.4rem; }
.overview-card p { max-width: 500px; color: var(--muted); }
.overview-card b { display: block; margin-top: 1.2rem; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.region-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.region-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 1rem; min-height: 110px; padding: 1.2rem 1.35rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 15px; text-decoration: none; transition: transform .18s, border-color .18s; }
.region-card:hover { transform: translateX(4px); border-color: #aeb9b4; }
.region-card > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--yellow); background: var(--bg); font-size: .75rem; font-weight: 900; }
.region-card h2 { margin: 0; font-size: 1.05rem; }
.region-card p { margin: .22rem 0 0; color: var(--muted); font-size: .8rem; }
.region-card b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--yellow); }
.back-row { margin: 2rem 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 999px; padding: .82rem 1.15rem; color: var(--bg); background: var(--yellow); font: inherit; font-size: .82rem; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffe070; }
.button:disabled { color: #7b858a; background: #dfe3e1; cursor: not-allowed; }
.button.secondary { color: var(--white); background: var(--bg); }
.text-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.text-link.light { display: inline-block; margin-top: 1rem; color: var(--yellow); }
.text-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(2.5rem,7vw,6rem); align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin: .35rem 0 1.2rem; }
.prose h3 { margin: 2.2rem 0 .45rem; font-size: 1.2rem; }
.prose p { color: var(--muted); font-size: 1.02rem; }
.fact-panel { padding: 1.8rem; color: var(--white); background: var(--surface); border-radius: 22px; }
.route-sign.large { width: 62px; height: 62px; }
.fact-panel h2 { margin: 1.5rem 0 1rem; font-size: 1.55rem; }
.fact-panel dl { margin: 0 0 1.5rem; }
.fact-panel dl div { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid #344149; }
.fact-panel dt { color: #aeb9bd; }
.fact-panel dd { margin: 0; color: var(--yellow); font-size: 1.4rem; font-weight: 900; }
.form-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
.form-intro h2 { overflow-wrap: anywhere; font-size: clamp(1.6rem,3vw,2.35rem); }
.form-intro p, .form-intro li { color: var(--muted); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: .48rem 0 .48rem 1.8rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.site-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-field { display: grid; gap: .4rem; }
.form-field.full, .site-form > .notice, .site-form > .form-note, .site-form > .button { grid-column: 1/-1; }
.form-field label { font-size: .78rem; font-weight: 800; }
.form-field label span { color: #c7472f; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #cbd3cf; border-radius: 10px; padding: .78rem .85rem; color: var(--ink); background: #fbfcfb; font: inherit; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(255,210,48,.35); border-color: var(--yellow-deep); }
.form-note { margin: 0; color: var(--muted); font-size: .75rem; }
.site-form > .button { justify-self: start; }
.notice { padding: 1rem; border-radius: 12px; background: #eef2f0; }
.notice p { margin: 0; }
.notice .button { margin-top: .75rem; }
.notice.error { color: #8b2f22; background: #fdece8; }
.notice.ok { color: #096646; background: #e4f6ee; }
.notice.ready { border-left: 4px solid var(--yellow-deep); }
.trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 980px) {
    .finder { grid-template-columns: 1fr; gap: 2.2rem; padding-block: 52px 76px; }
    main { background: linear-gradient(var(--bg) 0 700px, var(--paper) 700px); }
    .finder-copy > p { max-width: 720px; }
    .category-scroll { display: flex; overflow-x: auto; scrollbar-width: thin; padding-bottom: .2rem; }
    .category-pill { min-width: 105px; }
    .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 1.5rem; }
    .footer-nav { order: 3; grid-column: 1/-1; }
    .text-layout, .form-layout { grid-template-columns: 1fr; }
    .fact-panel { max-width: 520px; }
}

@media (max-width: 680px) {
    .header-inner, .finder, .directory, .source-note, .footer-inner { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 72px; }
    .route-sign { width: 42px; height: 42px; }
    .nav-toggle { display: grid; grid-template-columns: 22px auto; align-items: center; column-gap: .5rem; padding: .6rem; border: 0; color: var(--white); background: transparent; cursor: pointer; }
    .nav-toggle span { grid-column: 1; display: block; width: 22px; height: 2px; margin: 2px 0; background: var(--yellow); }
    .nav-toggle b { grid-column: 2; grid-row: 1/4; font-size: .72rem; }
    .header-nav { display: none; position: absolute; z-index: 20; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .7rem 14px 1rem; background: var(--bg); border-top: 1px solid #344149; }
    .header-nav.open { display: flex; }
    .header-nav a { padding: .7rem .8rem; }
    .header-nav .add-link { margin-top: .35rem; text-align: center; }
    .brand-copy small { display: none; }
    .finder { min-height: auto; padding-block: 42px 64px; }
    h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .finder-copy > p { font-size: .98rem; }
    main { background: linear-gradient(var(--bg) 0 665px, var(--paper) 665px); }
    .search-panel { padding: 1rem; }
    .search-box { padding-left: .75rem; }
    kbd { display: none; }
    .quick-links { gap: .15rem; }
    .quick-links a { padding-inline: .38rem; }
    .category-strip { margin-bottom: 2.7rem; }
    .section-heading { align-items: start; }
    .section-heading > p { display: none; }
    .link-grid { grid-template-columns: 1fr; }
    .link-card { min-height: 228px; }
    .source-note { grid-template-columns: 1fr; padding: 1.6rem; }
    .source-sign { width: 72px; }
    .footer-inner { grid-template-columns: 1fr; gap: .65rem; }
    .footer-nav { grid-column: auto; }
    .credit { margin: 0; }
    .page-hero { padding: 34px 14px 52px; }
    .breadcrumbs { margin-bottom: 1.7rem; }
    .content-section { width: calc(100% - 28px); padding: 3.2rem 0 4rem; }
    .overview-grid, .region-grid, .site-form { grid-template-columns: 1fr; }
    .overview-card { min-height: 220px; }
    .form-field.full, .site-form > .notice, .site-form > .form-note, .site-form > .button { grid-column: auto; }
    .site-form { padding: 1rem; }
}

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