@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@400;600&display=swap');

:root {
    --navy: #1a365d;
    --navy-dark: #0f2440;
    --red: #c53030;
    --red-dark: #9b2c2c;
    --black: #111827;
    --gray-600: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
    --max: 1140px;
    --radius: 6px;
    --transition: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
p { margin-bottom: 1rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── MASTHEAD ─────────────────────────────────────────────── */
.masthead {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0 1rem;
}
.masthead-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.site-name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.site-tagline {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    text-align: center;
}
.masthead-rule {
    width: 100%;
    height: 3px;
    background: var(--navy);
    margin-top: 1rem;
    position: relative;
}
.masthead-rule::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--navy);
    opacity: 0.3;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav-bar {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}
.nav-links a {
    display: block;
    padding: 0 1.25rem;
    height: 44px;
    line-height: 44px;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition);
    border-right: 1px solid rgba(255,255,255,0.1);
}
.nav-links li:first-child a { border-left: 1px solid rgba(255,255,255,0.1); }
.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
}

/* ── HERO LEAD ─────────────────────────────────────────────── */
.hero-lead {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.hero-lead-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}
.hero-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 0.75rem;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-body {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 560px;
}
.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.03em;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Stats sidebar */
.hero-stats {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-stats-header {
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--gray-600); }
.stat-value { font-weight: 600; color: var(--black); }

/* ── SECTION HEADING ─────────────────────────────────────── */
.section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.section-heading h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}
.section-heading-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.section-heading-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    white-space: nowrap;
}

/* ── ODBORY PŘEHLED ──────────────────────────────────────── */
.odbory-section {
    padding: 3rem 0;
}
.odbory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.odbor-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.odbor-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.odbor-card.featured { border-color: var(--red); border-width: 2px; }
.odbor-card-top {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.odbor-zkratka {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-bottom: 0.3rem;
}
.odbor-nazev {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}
.status-dot.green { background: #22c55e; }
.status-dot.red { background: var(--red); }
.status-dot.yellow { background: #eab308; }
.odbor-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}
.odbor-card-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0 0 0.75rem;
}
.odbor-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tag-web { background: #eff6ff; color: #1d4ed8; }
.tag-aktivni { background: #f0fdf4; color: #15803d; }
.tag-neaktivni { background: #fff1f2; color: #be123c; }
.tag-omezeny { background: #fefce8; color: #a16207; }
.odbor-card-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--gray-200);
}
.odbor-card-footer a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}
.odbor-card-footer a:hover { color: var(--red); }

/* ── O PORTÁLU ───────────────────────────────────────────── */
.o-portalu-section {
    background: var(--gray-100);
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.o-portalu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.o-portalu-text h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.o-portalu-text p { color: var(--gray-600); font-size: 0.95rem; }
.o-portalu-list { list-style: none; }
.o-portalu-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}
.o-portalu-list li:last-child { border-bottom: none; }
.o-portalu-list li strong { color: var(--black); display: block; font-size: 0.95rem; }
.list-marker {
    width: 20px;
    height: 20px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── AKTUALITY ───────────────────────────────────────────── */
.aktuality-section { padding: 3rem 0; }
.aktuality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.aktualita-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: box-shadow var(--transition);
}
.aktualita-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.aktualita-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.aktualita-org {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.aktualita-org.nosddpp { background: #fff1f2; color: #be123c; }
.aktualita-org.odpp { background: #eff6ff; color: #1d4ed8; }
.aktualita-org.oszo { background: #f0fdf4; color: #15803d; }
.aktualita-date { font-size: 0.8rem; color: var(--gray-600); }
.aktualita-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.aktualita-card h3 a { color: var(--black); }
.aktualita-card h3 a:hover { color: var(--red); }
.aktualita-card p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }
.section-more { text-align: center; margin-top: 2rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.65);
    padding: 2.5rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-disclaimer { font-style: italic; opacity: 0.6; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .odbory-grid, .aktuality-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .hero-lead-inner { grid-template-columns: 1fr; }
    .stat-row { font-size: 0.8125rem; padding: 0.625rem 0.875rem; }
    .odbory-grid, .aktuality-grid, .o-portalu-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* Navigace — mobilní hamburger menu */
    .nav-inner {
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        flex-basis: 100%;
        order: 1;
        background: var(--navy-dark);
    }
    .nav-links.open { display: flex; }
    .nav-links li { list-style: none; }
    .nav-links a,
    .nav-links li:first-child a {
        display: block;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        height: auto;
        line-height: 1;
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
    .nav-toggle { display: flex; margin-left: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
    /* Menší nadpisy na mobilech */
    .site-name { font-size: clamp(1.6rem, 5vw, 2.5rem); }
    .hero-headline { font-size: clamp(1.4rem, 4vw, 2rem); }
    .hero-body { font-size: 1rem; }
    /* Tlačítka na celou šířku */
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { text-align: center; justify-content: center; }
    /* Section headings */
    .section-heading { flex-wrap: wrap; }
    .section-heading h2 { white-space: normal; font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-lead { padding: 2rem 0 1.5rem; }
    .odbory-section, .aktuality-section { padding: 2rem 0; }
    .o-portalu-section { padding: 2rem 0; }
    .stat-row { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
}
