/* =========================================================
   Liberecká devítka — custom styly
   Tailwind CDN nezpracovává @apply v externích CSS, takže
   všechno zde je čisté CSS. Tailwind utility používáme
   přímo v HTML, tady řeším to, co utility neumí: grunge,
   odtržený papír, scroll animace, hover detaily, CTA.
========================================================= */

:root {
    /* Brand barvy přesně podle nového loga „LIBERECKÁ 9" */
    --c-navy:    #0E2050;    /* tmavá modrá z textu „LIBERECKÁ" */
    --c-blue:    #1A65D2;    /* živá modrá z číslice „9" */
    --c-blue-d:  #134DA2;    /* tmavší blue pro hover stavy */
    --c-red:     #D5272D;    /* červený akcent z arc nad textem, používáme střídmě */
    --c-yellow:  #F2C314;    /* žlutý akcent z arc — doplňková barva */
    --c-ink:     #0E2050;    /* hlavní textová modrá, bez černé */
    --c-paper:   #F6FAFF;    /* světlý modrobílý podklad */
    --c-sky:     #E7F2FF;
    --c-line:    #D8E6F7;
    --shadow-soft: 0 16px 40px -30px rgba(14, 32, 80, 0.35);
    --shadow-lift: 0 24px 54px -34px rgba(14, 32, 80, 0.48);
}

/* ---------- Globální ladění ---------- */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-paper);
    background-image:
        radial-gradient(rgba(26, 101, 210, 0.035) 1px, transparent 1px),
        radial-gradient(rgba(14, 32, 80, 0.02) 1px, transparent 1px);
    background-size: 4px 4px, 9px 9px;
    background-position: 0 0, 1px 2px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(26, 101, 210, 0.035) 0 1px, transparent 1px 46px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 42%, rgba(242, 195, 20, 0.055));
    opacity: 0.65;
}

.site-header {
    border-bottom: 1px solid rgba(216, 230, 247, 0.88);
    background-color: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px -26px rgba(14, 32, 80, 0.65);
}

.section-dark,
footer.bg-brand-ink,
.cta-split > .bg-brand-ink {
    background-color: var(--c-ink);
    background-image:
        linear-gradient(135deg, rgba(26, 101, 210, 0.18), transparent 56%),
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
}

.cta-split > .bg-brand-blue {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 5px 5px;
}

::selection {
    background-color: var(--c-blue);
    color: #fff;
}

/* ---------- Navigace ---------- */

.nav-link {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-ink);
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background-color: var(--c-blue);
    transition: width 0.25s ease;
}

.nav-link:hover { color: var(--c-blue); }
.nav-link:hover::after { width: 100%; }

.main-nav {
    align-items: center;
}

.main-nav > .nav-link:not(:last-of-type)::before {
    content: '';
    position: absolute;
    right: -0.64rem;
    top: 50%;
    width: 1px;
    height: 1.05rem;
    background-color: rgba(14, 32, 80, 0.24);
    transform: translateY(-50%);
}

.nav-social,
.mobile-social {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-social {
    margin-left: 0.2rem;
    padding-left: 0.9rem;
    border-left: 1px solid rgba(14, 32, 80, 0.14);
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--c-ink);
    background-color: #fff;
    border: 1px solid rgba(216, 230, 247, 0.95);
    border-radius: 999px;
    box-shadow: 0 8px 20px -18px rgba(14, 32, 80, 0.55);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-social-link:hover {
    color: #fff;
    background-color: var(--c-blue);
    border-color: var(--c-blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -16px rgba(26, 101, 210, 0.65);
}

.nav-social-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* =========================================================
   MOBILNÍ NAV — overlay panel pod headerem,
   žádný layout shift, smooth slide + fade
========================================================= */

.mobile-nav {
    position: absolute;
    top: 100%;            /* hned pod sticky headerem */
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.18);
    border-top: 3px solid var(--c-blue);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 49;
    overflow: hidden;
}

.mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
}

.mobile-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.5rem;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-ink);
    border-bottom: 1px solid #F1F0EC;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-list li:last-child .mobile-link {
    border-bottom: 0;
}

/* Drobný číslovaný marker před položkou (pořadové číslo v menu) */
.mobile-link::before {
    counter-increment: mnav;
    content: counter(mnav, decimal-leading-zero);
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--c-blue);
    letter-spacing: 0.06em;
    min-width: 1.6rem;
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.mobile-nav-list { counter-reset: mnav; }

/* Šipka po hover */
.mobile-link::after {
    content: '→';
    margin-left: auto;
    color: var(--c-blue);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    background-color: var(--c-paper);
    color: var(--c-blue);
    padding-left: 1.75rem;
}

.mobile-link:hover::before { opacity: 1; }
.mobile-link:hover::after  { opacity: 1; transform: translateX(0); }

.mobile-link.is-active {
    background-color: var(--c-paper);
    color: var(--c-blue);
}

.mobile-link.is-active::before {
    opacity: 1;
    color: var(--c-blue);
}

.mobile-social {
    padding: 0.9rem 1.5rem 1.1rem;
    border-top: 1px solid #EEF4FC;
    background: linear-gradient(180deg, #fff, var(--c-paper));
}

/* Animovaný hamburger ↔ křížek */
.nav-toggle {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--c-ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1.4rem;
    height: 2.5px;
    background-color: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
}

.nav-toggle-bars {
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-toggle-bars::before {
    top: -8px;
    transform: translateX(-50%);
}

.nav-toggle-bars::after {
    top: 8px;
    transform: translateX(-50%);
}

/* Stav „otevřeno" — středová čára zmizí, krajní se zkříží */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
    background-color: var(--c-blue);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
    background-color: var(--c-blue);
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--c-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .nav-toggle-bars,
    .nav-toggle-bars::before,
    .nav-toggle-bars::after { transition-duration: 0.01ms; }
}

/* =========================================================
   Komponenty pro podstránky (kdo-jsme, zmen-liberec,
   clanky, kontakty)
========================================================= */

/* Page eyebrow — malý label nad H1 na podstránkách */
.page-eyebrow {
    display: inline-block;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--c-blue);
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    background-color: rgba(26, 101, 210, 0.08);
    border-left: 3px solid var(--c-blue);
}

/* ---------- KDO JSME — value-card ---------- */
.value-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 2.25rem 1.5rem 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-blue);
    box-shadow: var(--shadow-lift);
}

.value-num {
    position: absolute;
    top: -0.6rem;
    left: 1.5rem;
    background-color: var(--c-ink);
    color: #fff;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    letter-spacing: 0.05em;
    border-radius: 3px;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: var(--c-blue);
    background-color: var(--c-sky);
    border-radius: 999px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.value-icon .lucide {
    width: 1.8rem;
    height: 1.8rem;
    stroke-width: 2;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(-4deg);
}

.value-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    margin-bottom: 0.6rem;
}

.value-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4B5563;
}

/* ---------- KDO JSME — timeline ---------- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--c-blue) 0%, var(--c-navy) 100%);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .timeline::before { left: 1rem; }
}

.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 9.5rem;
    min-height: 4rem;
}

@media (max-width: 640px) {
    .timeline-item { padding-left: 3rem; }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 6.6rem;
    top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    background-color: #fff;
    border: 3px solid var(--c-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--c-paper);
}

@media (max-width: 640px) {
    .timeline-item::before { left: 0.1rem; }
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 6rem;
    text-align: right;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--c-blue);
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .timeline-date {
        position: static;
        text-align: left;
        margin-bottom: 0.4rem;
        width: auto;
    }
}

.timeline-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    margin-bottom: 0.4rem;
}

.timeline-text {
    color: #4B5563;
    line-height: 1.55;
}

/* ---------- ZMĚŇ LIBEREC — step-card ---------- */
.step-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 3rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-blue);
    box-shadow: var(--shadow-lift);
}

.step-num {
    position: absolute;
    top: -1.4rem;
    left: 1.5rem;
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-blue);
    color: #fff;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 50%;
    box-shadow: 0 6px 14px -4px rgba(26, 101, 210, 0.45);
}

.step-num .lucide {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 2.2;
}

.step-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    margin-bottom: 0.75rem;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4B5563;
    margin-bottom: 1rem;
}

.step-link {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-blue);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.step-link:hover {
    transform: translateX(4px);
}

/* ---------- ZMĚŇ LIBEREC — vote-card ---------- */
.vote-card {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.vote-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .vote-card-grid { grid-template-columns: 1fr; }
}

.vote-cell {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid #F1F0EC;
}

@media (max-width: 768px) {
    .vote-cell { border-right: 0; border-bottom: 1px solid #F1F0EC; }
}

.vote-cell:last-child {
    border-right: 0;
    border-bottom: 0;
}

.vote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--c-sky);
    color: var(--c-blue);
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.vote-icon .lucide {
    width: 1.65rem;
    height: 1.65rem;
    stroke-width: 2;
}

.vote-label {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-blue);
    margin-bottom: 0.5rem;
}

.vote-value {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--c-ink);
    margin-bottom: 0.4rem;
}

.vote-meta {
    font-size: 0.8rem;
    color: #6B7280;
}

.vote-card-cta {
    background-color: var(--c-paper);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #E5E7EB;
}

/* ---------- PODPOŘ NÁS ---------- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.support-card {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    min-height: 13rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.support-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-blue);
    box-shadow: var(--shadow-lift);
}

.support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--c-blue);
    background-color: var(--c-sky);
    border-radius: 999px;
}

.support-icon .lucide {
    width: 1.55rem;
    height: 1.55rem;
    stroke-width: 2;
}

.support-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
    color: var(--c-ink);
    margin-bottom: 0.45rem;
}

.support-text {
    color: #4B5563;
    font-size: 0.9rem;
    line-height: 1.55;
}

.support-cta {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: #fff;
    border: 1px solid #D7E6FF;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.support-cta-text {
    color: #475569;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 1023px) {
    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        min-height: 0;
    }

    .support-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ---------- INFO — zákonné povinnosti ---------- */
.legal-panel {
    display: grid;
    gap: 1rem;
}

.legal-row,
.legal-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 14px 30px -24px rgba(14, 32, 80, 0.28);
}

.legal-box {
    display: block;
    margin-top: 1rem;
    background-color: var(--c-paper);
    border-color: #D7E6FF;
}

.legal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--c-blue);
    background-color: var(--c-sky);
    border-radius: 999px;
}

.legal-icon .lucide {
    width: 1.45rem;
    height: 1.45rem;
    stroke-width: 2;
}

.legal-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    color: var(--c-ink);
    margin-bottom: 0.25rem;
}

.legal-value {
    color: var(--c-ink);
    font-weight: 700;
    line-height: 1.45;
}

.legal-value a {
    color: var(--c-blue);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.legal-note {
    color: #64748B;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .legal-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- ZMĚŇ LIBEREC — action-list ---------- */
.action-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #F1F0EC;
}

.action-item:last-child {
    border-bottom: 0;
}

.action-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--c-blue);
    color: #fff;
    border-radius: 50%;
    margin-top: 0.15rem;
}

.action-check .lucide {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.5;
}

.action-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    margin-bottom: 0.25rem;
}

.action-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4B5563;
}

/* ---------- ČLÁNKY — filter-chips ---------- */
.filter-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    background-color: transparent;
    border: 1.5px solid #E5E7EB;
    color: var(--c-ink);
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--c-blue);
    color: var(--c-blue);
}

.filter-chip.is-active {
    background-color: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
}

/* ---------- ČLÁNKY — featured + grid card ---------- */
.article-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 768px) {
    .article-featured { grid-template-columns: 1fr; }
}

.article-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.article-featured-media {
    position: relative;
    min-height: 280px;
}

.article-featured-body {
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-featured-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.1;
    color: var(--c-ink);
    margin: 0.4rem 0 1rem;
}

.article-featured-perex {
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-card {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-blue);
    box-shadow: var(--shadow-lift);
}

.article-card-media {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.article-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card-media img {
    transform: scale(1.04);
}

.article-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--c-ink);
    margin: 0.6rem 0 0.5rem;
    text-transform: none;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-perex {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4B5563;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-tag {
    display: inline-block;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    color: var(--c-blue);
    background-color: var(--c-sky);
    border: 1px solid rgba(26, 101, 210, 0.16);
    align-self: flex-start;
    text-decoration: none;
}

.article-tag--red,
.article-tag--blue {
    color: #fff;
    background-color: var(--c-blue);
    border-color: var(--c-blue);
}

.article-featured-media .article-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

/* Placeholder pro chybějící thumbnail */
.article-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background:
        linear-gradient(135deg, var(--c-blue) 0%, var(--c-navy) 70%, var(--c-ink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 6px 6px;
    pointer-events: none;
}

.article-placeholder--small {
    min-height: 180px;
}

.article-placeholder-num {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: -0.03em;
}

.article-placeholder--small .article-placeholder-num {
    font-size: 4.5rem;
}

.video-badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(14, 32, 80, 0.86);
    font-family: 'Oswald', Impact, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.video-badge .lucide {
    width: 0.85rem;
    height: 0.85rem;
}

.empty-state {
    max-width: 44rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-left: 5px solid var(--c-blue);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.empty-state h2 {
    font-family: 'Oswald', Impact, sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.article-back {
    color: var(--c-blue);
    font-weight: 800;
    text-decoration: none;
}

.article-detail-perex {
    margin-top: 1.4rem;
    color: #475569;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.article-detail-cover {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.article-detail-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-lift);
}

.article-detail-body {
    color: #1F2A44;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-detail-body p {
    margin: 0 0 1.25rem;
}

.youtube-embed {
    margin-top: 2rem;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-soft);
    background: var(--c-ink);
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.latest-article {
    display: none;
}

.latest-article.is-visible {
    display: block;
}

.latest-article-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.latest-article-media {
    min-height: 230px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-ink));
}

.latest-article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-article-body {
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

@media (max-width: 780px) {
    .latest-article-card {
        grid-template-columns: 1fr;
    }
}

/* ---------- KONTAKTY — info-card ---------- */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: var(--c-blue);
    box-shadow: var(--shadow-lift);
}

.info-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-sky);
    color: var(--c-blue);
    border-radius: 50%;
}

.info-icon .lucide {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.info-label {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-blue);
    margin-bottom: 0.2rem;
}

.info-value {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c-ink);
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

a.info-value:hover {
    color: var(--c-blue);
}

.info-meta {
    font-size: 0.8rem;
    color: #6B7280;
}

.social-circle--ink {
    border-color: rgba(10, 10, 10, 0.25);
    color: var(--c-ink);
}

.social-circle--ink:hover {
    background-color: var(--c-blue);
    border-color: var(--c-blue);
    color: #fff;
}

/* ---------- KONTAKTY — contact form ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-ink);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: #fff;
    color: var(--c-ink);
    border: 1.5px solid #E5E7EB;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input:focus {
    outline: none;
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(26, 101, 210, 0.12);
}

textarea.form-input {
    resize: vertical;
    min-height: 8rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #4B5563;
    line-height: 1.5;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--c-blue);
}

/* ---------- KONTAKTY — FAQ ---------- */
.faq-item {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--c-blue);
}

.faq-item[open] {
    border-color: var(--c-blue);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--c-ink);
    text-transform: none;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-toggle {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-paper);
    color: var(--c-blue);
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 0;
    font-weight: 400;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
    background-color: var(--c-blue);
    color: #fff;
}

.faq-body {
    padding: 0 1.5rem 1.25rem;
    color: #4B5563;
    line-height: 1.6;
}

.faq-body a {
    color: var(--c-blue);
    text-decoration: underline;
}

/* ---------- HERO ---------- */

.hero-title {
    font-size: clamp(3rem, 8vw, 6.8rem);
    text-shadow: 0 1px 0 rgba(14, 32, 80, 0.05);
}

.hero-clean {
    background:
        linear-gradient(180deg, #fff 0%, var(--c-paper) 100%);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-blue);
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.hero-kicker::before,
.section-kicker::before {
    content: '';
    width: 2rem;
    height: 2px;
    background-color: var(--c-yellow);
}

.hero-lead {
    margin-top: 1.35rem;
    max-width: 38rem;
    color: #475569;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
}

@media (max-width: 1023px) {
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Wrapper kolem fotky kandidáta — geometrické tvary za ní */
.hero-photo-wrap {
    position: relative;
    isolation: isolate;
    padding: 0 0.5rem;
}

.hero-clean .hero-photo-wrap.max-w-md {
    max-width: min(32rem, 100%);
}

/* Geometrický tvar za transparentní fotkou, bez dojmu rámečku */
.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: 16% 2% 2% 4%;
    background:
        linear-gradient(155deg, rgba(26, 101, 210, 0.9) 0%, rgba(20, 78, 166, 0.95) 58%, rgba(14, 32, 80, 0.9) 100%);
    z-index: -2;
    clip-path: polygon(12% 6%, 88% 0, 100% 64%, 70% 100%, 10% 90%, 0 28%);
    transform: rotate(-5deg);
    box-shadow:
        0 34px 70px -26px rgba(14, 32, 80, 0.35),
        0 14px 32px -16px rgba(26, 101, 210, 0.35);
}

/* Drobný žlutý akcent z loga */
.hero-photo-wrap::after {
    content: '';
    position: absolute;
    top: 13%;
    right: 2%;
    width: 22%;
    height: 14%;
    background-color: var(--c-yellow);
    z-index: -1;
    clip-path: polygon(0 20%, 100% 0, 86% 82%, 8% 100%);
    transform: rotate(9deg);
    box-shadow: 0 12px 26px -12px rgba(242, 195, 20, 0.5);
}

.hero-photo-wrap img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 24px rgba(14, 32, 80, 0.22));
}

@media (max-width: 1023px) {
    .hero-photo-wrap { max-width: 380px; margin: 0 auto; }
    .hero-photo-wrap::before { inset: 8% 10% 0 10%; }
    .hero-photo-wrap::after  { width: 30%; height: 28%; }
}

.hero-tag {
    display: inline-block;
    padding: 0.48rem 0.9rem;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: 0.04em;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    text-transform: uppercase;
    border: 1px solid rgba(26, 101, 210, 0.18);
    border-radius: 999px;
    box-shadow: 0 10px 24px -18px rgba(14, 32, 80, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-tag--ink,
.hero-tag--navy { background-color: #EAF2FF; color: var(--c-ink); }
.hero-tag--blue { background-color: var(--c-blue); color: #fff; }
.hero-tag--soft { background-color: #fff; color: var(--c-blue); }

.hero-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -18px rgba(14, 32, 80, 0.45);
}

/* ---------- Dekorativní geometrické akcenty (místo splashů) ---------- */

/* Jemný šikmý barevný proužek pro sekce — používán přes ::before
   Inspirováno arc detailem pod „LIBERECKÁ" v logu (modrá / žlutá / červená) */
.section-accent {
    position: relative;
    isolation: isolate;
}

.section-accent::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
        var(--c-navy)   0%,   var(--c-navy)   38%,
        var(--c-red)    38%,  var(--c-red)    50%,
        var(--c-yellow) 50%,  var(--c-yellow) 62%,
        var(--c-blue)   62%,  var(--c-blue)   100%);
    z-index: 2;
}

/* Globální brand strip pod hlavičkou — drobný vizuální podpis loga */
.brand-strip {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg,
        var(--c-navy)   0%,
        var(--c-navy)   46%,
        var(--c-red)    46%,
        var(--c-red)    50%,
        var(--c-yellow) 50%,
        var(--c-yellow) 54%,
        var(--c-blue)   54%,
        var(--c-blue)   100%);
}

/* Velké dekorativní číslo "9" v pozadí (subtle watermark) */
.bg-nine {
    position: relative;
    isolation: isolate;
}

.bg-nine::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: clamp(12rem, 28vw, 28rem);
    aspect-ratio: 320 / 393;
    background: url('assets/nine-mark.png') center / contain no-repeat;
    opacity: 0.075;
    pointer-events: none;
    z-index: 0;
}

.bg-nine.bg-nine--dark::after {
    color: #fff;
    opacity: 0.05;
}

/* Diagonální barevný roh pro hero sekce */
.corner-accent {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.corner-accent--tl {
    top: 0; left: 0;
    width: 200px; height: 200px;
    background: var(--c-sky);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.8;
}

.corner-accent--br {
    bottom: 0; right: 0;
    width: 240px; height: 240px;
    background: var(--c-blue);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.1;
}

@media (max-width: 640px) {
    .corner-accent--tl { width: 120px; height: 120px; }
    .corner-accent--br { width: 140px; height: 140px; }
}

/* Odtržený papír — SVG sedí na spodek hero sekce */
.paper-tear {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
}

/* Jemné boční světlo pro obsahové sekce napříč webem */
main > section.bg-white:not(.section-intro),
main > section.bg-brand-paper:not(.page-hero):not(.hero),
.section-light {
    position: relative;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(26, 101, 210, 0.045), transparent 28%, rgba(242, 195, 20, 0.028) 100%),
        radial-gradient(rgba(14, 32, 80, 0.028) 1px, transparent 1px);
    background-size: auto, 10px 10px;
}

main > section.bg-white:not(.section-intro)::before,
main > section.bg-brand-paper:not(.page-hero):not(.hero)::before,
.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: clamp(4px, 0.8vw, 10px);
    background: linear-gradient(180deg,
        rgba(26, 101, 210, 0.38),
        rgba(242, 195, 20, 0.26),
        rgba(26, 101, 210, 0.08));
    pointer-events: none;
    z-index: 0;
}

main > section.bg-white:not(.section-intro) > *,
main > section.bg-brand-paper:not(.page-hero):not(.hero) > *,
.section-light > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    main > section.bg-white:not(.section-intro)::before,
    main > section.bg-brand-paper:not(.page-hero):not(.hero)::before,
    .section-light::before {
        width: 4px;
        opacity: 0.7;
    }
}

/* ---------- Tmavá sekce: pillars ---------- */

.section-intro {
    position: relative;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    background-image:
        linear-gradient(90deg, rgba(26, 101, 210, 0.035), transparent 36%, rgba(242, 195, 20, 0.04)),
        radial-gradient(rgba(14, 32, 80, 0.035) 1px, transparent 1px);
    background-size: auto, 7px 7px;
}

.section-intro::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(1rem, calc((100vw - 80rem) / 2));
    width: 4px;
    background: linear-gradient(180deg, var(--c-blue), var(--c-yellow));
    opacity: 0.75;
    pointer-events: none;
}

.section-intro > * {
    position: relative;
    z-index: 1;
}

.pillar-grid {
    counter-reset: pillar;
}

.pillar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    counter-increment: pillar;
    text-align: center;
    background:
        radial-gradient(circle at 88% 14%, rgba(26, 101, 210, 0.09), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    border: 1px solid rgba(216, 230, 247, 0.95);
    border-radius: 8px;
    padding: 1.65rem 1.25rem 1.45rem;
    height: 100%;
    min-height: 15.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar::before {
    content: '0' counter(pillar);
    position: absolute;
    top: 0.45rem;
    right: 0.9rem;
    z-index: 0;
    font-family: 'Oswald', Impact, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(26, 101, 210, 0.12);
}

.pillar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--c-blue), var(--c-yellow));
}

.pillar:nth-child(2)::after {
    background: linear-gradient(180deg, var(--c-navy), var(--c-blue));
}

.pillar:nth-child(3)::after {
    background: linear-gradient(180deg, var(--c-blue), var(--c-yellow) 54%, rgba(213, 39, 45, 0.32));
}

.pillar > * {
    position: relative;
    z-index: 1;
}

.pillar:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 101, 210, 0.22);
    box-shadow: var(--shadow-lift);
}

@media (min-width: 640px) {
    .pillar { text-align: left; }
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    color: var(--c-blue);
    background:
        linear-gradient(180deg, #fff, #EAF2FF);
    border-radius: 999px;
    box-shadow:
        inset 0 0 0 1px rgba(26, 101, 210, 0.12),
        0 14px 28px -20px rgba(14, 32, 80, 0.42);
    transition: transform 0.35s ease, color 0.25s ease, background 0.25s ease;
}

.pillar-icon .lucide,
.topic-icon .lucide {
    width: 1.9rem;
    height: 1.9rem;
    stroke-width: 1.9;
}

.pillar:hover .pillar-icon {
    transform: translateY(-6px) scale(1.08) rotate(-3deg);
    color: var(--c-navy);
    background:
        linear-gradient(180deg, #fff, rgba(242, 195, 20, 0.18));
}

.pillar-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.125rem;
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--c-ink);
}

@media (min-width: 640px) {
    .pillar-title { font-size: 1.25rem; }
}

.pillar-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
}

@media (min-width: 640px) {
    .pillar-text { font-size: 1rem; }
}

/* ---------- 9 témat ---------- */

.topic {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    padding: 2.4rem 0.75rem 1rem;     /* víc top paddingu kvůli posunutému číslu */
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    -webkit-appearance: none;
            appearance: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* topic-detail-link je tlačítko v program.html — reset defaultu */
button.topic-detail-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.topic:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-blue);
}

.topic-num {
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.topic-icon {
    margin: 0.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-blue);
    transition: transform 0.25s ease;
}

.topic:hover .topic-icon {
    transform: scale(1.15) rotate(-4deg);
}

.topic-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: var(--c-ink);
}

/* ---------- Tlačítka ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease,
                color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    will-change: transform;
    box-shadow: 0 14px 28px -22px rgba(14, 32, 80, 0.42);
}

.btn:active { transform: translateY(1px); }

.btn-outline-red {
    background-color: var(--c-ink);
    color: #fff;
    border: 2px solid var(--c-blue);
}

.btn-outline-red:hover {
    background-color: var(--c-blue);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 18px -6px rgba(26, 101, 210, 0.55);
}

.btn-blue {
    background-color: var(--c-blue);
    color: #fff;
    border: 2px solid var(--c-blue);
}

.btn-blue:hover {
    background-color: var(--c-blue-d);
    border-color: var(--c-blue-d);
    transform: scale(1.05);
    box-shadow: 0 6px 18px -6px rgba(30, 79, 191, 0.55);
}

.btn-white {
    background-color: #fff;
    color: var(--c-blue);
    border: 2px solid #fff;
}

.btn-white--soft {
    border-color: var(--c-line);
    color: var(--c-ink);
    box-shadow: 0 10px 26px -20px rgba(14, 32, 80, 0.35);
}

.btn-white:hover {
    background-color: var(--c-sky);
    color: var(--c-ink);
    transform: scale(1.05);
}

.icon-sm,
.btn .lucide {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    stroke-width: 2.25;
}

.quote-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    color: var(--c-blue);
    stroke-width: 1.8;
}

/* ---------- CTA split ---------- */

.fist-graphic {
    position: absolute;
    bottom: -20px;
    right: 6%;
    width: clamp(180px, 30%, 280px);
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.cta-portrait {
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(200px, 38%, 360px);
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    z-index: 0;
    opacity: 0.95;
    -webkit-mask-image: linear-gradient(to left, #000 72%, transparent 100%);
            mask-image: linear-gradient(to left, #000 72%, transparent 100%);
}

@media (max-width: 1023px) {
    .fist-graphic,
    .cta-portrait { opacity: 0.35; }
}

/* ---------- Sociální + kontaktní ikony ---------- */

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-circle:hover {
    background-color: var(--c-blue);
    border-color: var(--c-blue);
    transform: translateY(-2px) scale(1.08);
}

.social-circle .lucide,
.social-circle svg {
    width: 0.82rem;
    height: 0.82rem;
    flex-shrink: 0;
}

.social-circle[aria-label="Instagram"] svg {
    width: 0.9rem;
    height: 0.9rem;
}

.social-circle[aria-label="YouTube"] svg {
    width: 0.92rem;
    height: 0.92rem;
}

.social-circle .lucide {
    stroke-width: 2.2;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.contact-icon .lucide {
    width: 0.9rem;
    height: 0.9rem;
    stroke-width: 2.25;
}

.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.65;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* ---------- Scroll reveal animace ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .pillar:hover .pillar-icon,
    .topic:hover .topic-icon,
    .topic:hover { transform: none; }
}

.logo-mark { display: inline-block; }

/* =========================================================
   LOGO (image-based)
========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-logo:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.site-logo img {
    height: 68px;          /* větší logo bez změny výšky navbaru */
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

/* Footer (tmavé pozadí) — logo je tmavě modré, takže ho dáme do bílé karty */
.site-logo--footer {
    background-color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    box-shadow:
        0 4px 12px -2px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-logo--footer:hover {
    opacity: 1;
    box-shadow:
        0 6px 18px -4px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(225, 20, 28, 0.4) inset;
}

.site-logo--footer img {
    height: 42px;
}

@media (max-width: 640px) {
    .site-logo img { height: 50px; }
    .site-logo--footer img { height: 36px; }
}

/* =========================================================
   NAV — aktivní stav podstránky
========================================================= */

.nav-link.is-active {
    color: var(--c-blue);
}

.nav-link.is-active::after {
    width: 100%;
}

.mobile-link.is-active {
    background-color: var(--c-paper);
    color: var(--c-blue);
}

/* =========================================================
   PAGE HERO (společné pro podstránky)
========================================================= */

.page-hero {
    position: relative;
    border-bottom: 1px solid rgba(216, 230, 247, 0.8);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.75);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(26, 101, 210, 0.13) 0%, rgba(26, 101, 210, 0.04) 24%, transparent 52%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0 18%, transparent 18% 100%),
        linear-gradient(315deg, rgba(26, 101, 210, 0.075) 0 20%, transparent 20% 100%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.paper-tear--inverse {
    /* Odtržený papír vedoucí z tmavé do světlé */
}

/* Razítko „JE ČAS NA ZMĚNU" v tmavém heru */
.stamp {
    display: inline-block;
    border: 3px solid #fff;
    color: #fff;
    padding: 0.7rem 1.4rem;
    font-size: 1.1rem;
    line-height: 1.1;
    transform: rotate(-6deg);
    box-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background:
        radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
}

@media (max-width: 640px) {
    .stamp { font-size: 0.95rem; padding: 0.55rem 1.1rem; }
}

/* =========================================================
   PROGRAM — detail theme cards
========================================================= */

.topic-detail {
    position: relative;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 1.75rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.topic-detail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-blue);
}

.topic-detail-num {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    color: var(--c-blue);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.topic-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: var(--c-blue);
    background-color: var(--c-sky);
    border-radius: 999px;
    margin-bottom: 0.75rem;
    transition: transform 0.25s ease;
}

.topic-detail-icon .lucide {
    width: 1.85rem;
    height: 1.85rem;
    stroke-width: 2;
}

.topic-detail:hover .topic-detail-icon {
    transform: scale(1.1) rotate(-4deg);
}

.topic-detail-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--c-ink);
    margin-bottom: 0.6rem;
}

.topic-detail-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4B5563;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.topic-detail-link {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-blue);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    transition: transform 0.2s ease;
}

.topic-detail-link:hover {
    transform: translateX(4px);
}

/* 10. dlaždice = dark CTA */
.topic-detail--cta {
    background-color: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    justify-content: center;
}

.topic-detail--cta:hover {
    transform: translateY(-4px);
    border-color: var(--c-blue);
    box-shadow: 0 16px 32px -14px rgba(26, 101, 210, 0.45);
}

.topic-cta-title {
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* =========================================================
   CTA SPLIT — 3 sloupce (na program.html)
========================================================= */

.cta-split-3 .cta-illustration--small {
    bottom: 12%;
    right: 4%;
    width: clamp(90px, 18%, 140px);
    color: #fff;
    opacity: 0.4;
}

.cta-portrait--small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(160px, 38%, 240px);
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%);
            mask-image: linear-gradient(to left, #000 50%, transparent 100%);
}

.social-circle--lg {
    width: 2.75rem;
    height: 2.75rem;
}

/* =========================================================
   CTA Icon (handshake) — vycentrovaná, čistá
========================================================= */

.cta-icon {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    width: clamp(80px, 14%, 130px);
    height: auto;
    aspect-ratio: 1;
    color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    z-index: 1;
    /* tenký kruh kolem pro vizuální zarámování */
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    padding: 1.25rem;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-icon--small {
    width: clamp(64px, 12%, 96px);
    padding: 0.9rem;
}

@media (max-width: 1023px) {
    .cta-icon {
        position: static;
        transform: none;
        margin: 1.25rem 0 0;
        width: 80px;
    }
    .cta-icon--small { width: 70px; }
}

/* =========================================================
   HOMEPAGE — kandidáti propojení s tématy
========================================================= */

.home-candidates {
    border-top: 1px solid var(--c-line);
}

.candidate-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.candidate-topic {
    min-width: 0;
}

.candidate-topic-button {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 8.5rem;
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    border: 1px solid var(--c-line);
    border-radius: 8px;
    color: var(--c-ink);
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.candidate-topic-button:hover,
.candidate-topic-button:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(26, 101, 210, 0.45);
    box-shadow: var(--shadow-lift);
}

.candidate-topic-button:focus-visible {
    outline: 3px solid rgba(26, 101, 210, 0.25);
    outline-offset: 2px;
}

.candidate-topic-num {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-blue);
    color: #fff;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: 4px;
    z-index: 2;
}

.candidate-topic-photo {
    width: 5.25rem;
    height: 6.5rem;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
    background-color: var(--c-sky);
}

.candidate-topic-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.candidate-topic-name {
    font-family: 'Oswald', Impact, sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--c-ink);
}

.candidate-topic-role {
    margin-top: 0.28rem;
    font-size: 0.78rem;
    color: #64748B;
    line-height: 1.3;
}

.candidate-topic-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: 0.7rem;
    padding: 0.35rem 0.55rem;
    background-color: var(--c-sky);
    color: var(--c-blue);
    border-radius: 999px;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
    line-height: 1;
}

.candidate-topic-label .lucide {
    width: 0.9rem;
    height: 0.9rem;
    stroke-width: 2.2;
}

@media (max-width: 1023px) {
    .candidate-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .candidate-home-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .candidate-topic-button {
        min-height: 7.5rem;
        grid-template-columns: 4.75rem minmax(0, 1fr);
        padding: 0.85rem;
    }

    .candidate-topic-photo {
        width: 4.75rem;
        height: 5.9rem;
    }
}

/* =========================================================
   KANDIDÁTI — karty
========================================================= */

.candidate {
    position: relative;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.candidate:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-blue);
}

.candidate-num {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: 3px;
    z-index: 2;
}

.candidate-num--blue { background-color: var(--c-blue); }
.candidate-num--red  { background-color: var(--c-navy); }

.candidate-photo {
    width: 90px;
    height: 110px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #F4F6F8;
}

.candidate-body {
    flex: 1;
    min-width: 0;
}

.candidate-name {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: none;
    font-size: 1.05rem;
    line-height: 1.05;
    color: var(--c-ink);
    margin-bottom: 0.25rem;
}

.candidate-role {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.candidate-bio {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #4B5563;
}

/* =========================================================
   JEŠTĚD silueta + worker (s grunge slope)
========================================================= */

.jested-graphic {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin-left: auto;
    opacity: 0.85;
}

.megaphone-graphic {
    width: 100%;
    max-width: 180px;
    height: auto;
    color: var(--c-blue);
    display: block;
    transform: rotate(-12deg);
    transition: transform 0.4s ease;
}

.megaphone-graphic:hover {
    transform: rotate(-6deg) scale(1.05);
}

@media (max-width: 1023px) {
    .megaphone-graphic { max-width: 140px; margin: 0 auto; }
}

/* =========================================================
   PRIDEJ SE — ribbon + 5 ways cards
========================================================= */

/* Stužka „JAK SE MŮŽEŠ ZAPOJIT?" — černý pozadí jako rozmazaný proužek */
.ribbon-title {
    display: inline-block;
    position: relative;
    padding: 0.6rem 1.2rem;
    color: #fff;
    background-color: var(--c-ink);
    background-image:
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    transform: rotate(-1.5deg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.engage {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    backdrop-filter: blur(2px);
}

.engage:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.22);
}

.engage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.engage:hover .engage-icon {
    transform: scale(1.15) rotate(-4deg);
}

.engage-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.engage-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4B5563;
    margin-bottom: 0.75rem;
    min-height: 5em;
}

.engage-arrow {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.engage-arrow:hover {
    transform: translateX(6px);
}

/* =========================================================
   NEWSLETTER form
========================================================= */

.newsletter-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .newsletter-row {
        flex-direction: row;
        gap: 0;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.85rem 1rem;
    background-color: #fff;
    color: var(--c-ink);
    border: 0;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    border-radius: 2px;
}

@media (min-width: 640px) {
    .newsletter-input { border-radius: 2px 0 0 2px; }
}

.newsletter-input::placeholder {
    color: #9CA3AF;
}

.newsletter-input:focus {
    box-shadow: inset 0 0 0 2px var(--c-blue);
}

.newsletter-submit {
    border-radius: 2px !important;
}

@media (min-width: 640px) {
    .newsletter-submit { border-radius: 0 2px 2px 0 !important; }
}

.newsletter-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Doplňková tlačítka
========================================================= */

.btn-red {
    background-color: var(--c-blue);
    color: #fff;
    border: 2px solid var(--c-blue);
}

.btn-red:hover {
    background-color: var(--c-blue-d);
    border-color: var(--c-blue-d);
    transform: scale(1.03);
    box-shadow: 0 6px 18px -6px rgba(26, 101, 210, 0.45);
}

/* sr-only utility */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero-tag s velkou variantou (pro Pridej se) */
.hero-tag {
    line-height: 1.1;
}

/* =========================================================
   Drobné ladění
========================================================= */

/* Mobil — page hero stamp / Ještěd nemají posunout layout */
@media (max-width: 1023px) {
    .stamp { margin-top: 1rem; }
    .jested-graphic { display: none; }
}

/* =========================================================
   MODAL — popup pro detail témat programu
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fade-in 0.25s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.5),
        0 6px 16px -2px rgba(0, 0, 0, 0.2);
    animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    color: #6B7280;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background-color: var(--c-paper);
    color: var(--c-blue);
}

.modal-header {
    padding: 2rem 3rem 1.25rem 2rem;
    border-bottom: 1px solid #E5E7EB;
    background-color: var(--c-paper);
    border-radius: 8px 8px 0 0;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 4px 4px;
}

.modal-num {
    display: inline-block;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background-color: var(--c-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.modal-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.65rem;
    line-height: 1.05;
    color: var(--c-ink);
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.modal-eyebrow {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--c-blue);
    line-height: 1;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
    color: #1F2937;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body h3 {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--c-blue);
    margin: 1.25rem 0 0.5rem;
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body p {
    margin-bottom: 0.75rem;
}

.modal-body ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.modal-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background-color: var(--c-blue);
    transform: rotate(45deg);
}

.modal-slogan {
    margin-top: 1.5rem;
    padding: 0.9rem 1.1rem;
    background-color: var(--c-ink);
    color: #fff;
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    border-left: 4px solid var(--c-blue);
    line-height: 1.3;
}

@media (max-width: 640px) {
    .modal { padding: 0.5rem; }
    .modal-header { padding: 1.5rem 2.5rem 1rem 1.25rem; }
    .modal-body   { padding: 1.25rem 1.25rem 1.5rem; }
    .modal-title  { font-size: 1.35rem; }
}

/* Když je modal otevřený, zamkni scroll body */
body.modal-open {
    overflow: hidden;
}

/* =========================================================
   MIKROANIMACE — drobné „wow" detaily, ne přehnaně
   Používáme `translate` (CSS Logical), aby se nemíchalo
   s existujícím `transform: rotate(...)`.
========================================================= */

@keyframes float-y {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

@keyframes float-y-soft {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -4px; }
}

@keyframes pulse-ring {
    0%   { opacity: 0.55; transform: scale(1); }
    70%  { opacity: 0;    transform: scale(1.18); }
    100% { opacity: 0;    transform: scale(1.18); }
}

/* Hero „Fungovat?" — jemné plování (4.5s). Jen tento element. */
.hero-fungovat {
    animation: float-y 4.5s ease-in-out infinite;
    will-change: translate;
}

/* Subtle pulse ring kolem primárních tlačítek (jen .btn-pulse opt-in) */
.btn-pulse {
    position: relative;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid currentColor;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    animation: pulse-ring 2.6s ease-out infinite;
}

.btn-pulse:hover::before { animation-play-state: paused; }

/* Counter chip pro 9 témat — jednorázová animace „pop in" */
.topic-num.is-counted {
    animation: pop-num 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-num {
    0%   { transform: translateX(-50%) scale(0.4); opacity: 0; }
    60%  { transform: translateX(-50%) scale(1.18); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); }
}

/* Scroll-to-top tlačítko */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-blue);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(26, 101, 210, 0.5);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background-color: var(--c-blue-d);
    transform: translateY(-2px);
}

.scroll-top .lucide {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.5;
}

.scroll-top:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .scroll-top { width: 2.6rem; height: 2.6rem; right: 1rem; bottom: 1rem; }
}

/* Reduced-motion — vše plovoucí/animace zastavit */
@media (prefers-reduced-motion: reduce) {
    .hero-fungovat,
    .btn-pulse::before,
    .topic-num.is-counted {
        animation: none !important;
    }
    .scroll-top { transition: opacity 0.15s ease; transform: none !important; }
}
