/* === ZABUDĚJOVICE VOLBY 2026 - DESIGN SYSTEM === */

/* FIREMNÍ BAREVNÁ PALETA */
:root {
    --brand-light: #1D9CD7;   /* Firemní světle modrá */
    --brand-dark: #264796;    /* Firemní tmavě modrá */
    --darkest-blue: #13244d;  /* Nejtmavší modrá */
    --light-bg: #f4f8fb;      /* Velmi jemný modrobílý nádech */
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--brand-dark);
    line-height: 1.1;
}

h1 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 20px; }
h2 { font-size: 2.2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 700; }
p { font-size: 1.05rem; font-weight: 300; color: #475569; }

/* TLAČÍTKA */
.btn-container { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-dark); color: var(--white);
    padding: 16px 32px; font-weight: 600; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px; transition: background 0.3s ease; border: none;
    cursor: pointer;
}
.btn-cta:hover { background: var(--darkest-blue); color: var(--white); }
.btn-support { background-color: var(--brand-light); }
.btn-support:hover { background-color: #1680b5; }
.btn-icon { height: 20px; margin-right: 10px; filter: brightness(0) invert(1); }

/* HLAVIČKA A LOGO */
header {
    background: var(--brand-dark); color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 40px; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
.site-logo { height: 45px; filter: brightness(0) invert(1); transition: opacity 0.3s; }
.site-logo:hover { opacity: 0.8; }

nav { display: flex; gap: 30px; }
nav a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px;
    transition: color 0.3s; position: relative;
}
nav a:hover, nav a.active { color: var(--brand-light); }

/* BENTO GRID */
.grid-container {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.grid-item {
    border-right: 1px solid var(--border); border-top: 1px solid var(--border);
    padding: 40px; display: flex; flex-direction: column; justify-content: center; background: var(--white);
}
.no-pad { padding: 0; overflow: hidden; }
.bg-light { background-color: var(--light-bg); }
.span-2-col { grid-column: span 2; }
.span-3-col { grid-column: span 3; }
.span-4-col { grid-column: span 4; }

/* HERO */
.hero-text { position: relative; z-index: 1; }
.hero-text h1 i { color: var(--brand-light); font-style: italic; }
.hero-text::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/images/DJI_0010.jpg');
    background-size: cover; background-position: center; z-index: -2;
}
.hero-text::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.90); z-index: -1;
}
.hero-video iframe { width: 100%; height: 100%; min-height: 400px; border: none; }
.hero-video video { width: 100%; height: 100%; min-height: 400px; display: block; }
.hero-video { height: 100%; background: #000; }

/* TÝMOVÁ FOTKA */
.full-team-photo { height: 600px; position: relative; background-color: var(--darkest-blue); overflow: hidden; }
.full-team-photo img.team-bg {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) contrast(1.1); transition: all 0.6s ease-in-out; position: relative; z-index: 0;
}
.full-team-photo::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(38, 71, 150, 0.9) 0%, rgba(29, 156, 215, 0.6) 100%);
    mix-blend-mode: color; z-index: 1; transition: opacity 0.6s ease-in-out;
}
.full-team-photo:hover img.team-bg { filter: grayscale(0%) contrast(1); }
.full-team-photo:hover::before { opacity: 0; }

.heart-overlay {
    position: absolute; bottom: 30px; right: 50px; width: 250px;
    z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: pulse 3s infinite;
}
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ── MODULÁRNÍ SEKCE HOMEPAGE ─────────────────────────────────────────── */

/* Hero banner – text + tlačítka */
.hero-banner-block {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    justify-content: center;
}
.hero-banner-block::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('/images/DJI_0010.jpg');
    background-size: cover; background-position: center; z-index: 0;
}
.hero-banner-block::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.90); z-index: 1;
}
.hero-banner-block > * { position: relative; z-index: 2; }
.hero-banner-block h1 { font-size: 3.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero-banner-block h1 i { color: var(--brand-light); font-style: italic; }

/* Hero video */
.hero-video-block {
    background: #000; min-height: 300px; position: relative;
}
.hero-video-block iframe,
.hero-video-block video,
.hero-video-block img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border: none; display: block;
}

/* Týmová fotka */
.team-photo-block { min-height: 380px; background: var(--darkest-blue); position: relative; }
.team-photo-block img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center; display: block;
}

/* Odpočet do voleb */
.countdown-block {
    background: var(--brand-dark); color: white;
    text-align: center; justify-content: center; align-items: center;
}
.countdown-number {
    font-size: 5rem; font-weight: 800; color: var(--brand-light);
    line-height: 1; letter-spacing: -2px; font-family: 'Inter', sans-serif;
}
.countdown-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.6; margin-top: 12px; }
.countdown-date  { font-size: 0.85rem; opacity: 0.5; margin-top: 5px; }

/* Výsledky voleb – interní 2×2 grid */
.results-block {
    background: var(--brand-dark); color: white;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch; min-height: 240px;
}
.result-cell {
    padding: 28px 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.result-cell:nth-child(2n) { border-right: none; }
.result-cell:nth-child(n+3) { border-bottom: none; }
.rc-num {
    font-size: 1.55rem; font-weight: 800; color: var(--brand-light);
    line-height: 1; margin-bottom: 8px; font-family: 'Inter', sans-serif; letter-spacing: -0.5px;
}
.rc-lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.55; line-height: 1.4; }
.sidebar-team-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    display: block;
}
.sidebar-countdown {
    padding: 22px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    flex-shrink: 0;
}
.sidebar-count-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-light);
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}
.sidebar-count-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.55;
    margin-top: 6px;
    line-height: 1.5;
}
.sidebar-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
}
.sidebar-result {
    padding: 18px 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sidebar-result:nth-child(2n) { border-right: none; }
.sidebar-result:nth-child(n+3) { border-bottom: none; }
.s-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-light);
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}
.s-lbl {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.55;
    line-height: 1.4;
}

/* VÝSLEDKY */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
.result-number { font-size: 4rem; font-weight: 800; color: var(--brand-dark); line-height: 1; margin-bottom: 10px; font-family: 'Inter', sans-serif; letter-spacing: -1px; }
.result-text { font-size: 1.05rem; color: var(--text); line-height: 1.4; font-weight: 400; }

.countdown-box { background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%); color: var(--white); text-align: center; align-items: center; }
.countdown-number { font-size: 5rem; font-weight: 800; line-height: 1; margin-bottom: 5px; font-family: 'Inter', sans-serif; letter-spacing: -2px; }
.countdown-label { font-size: 1.25rem; font-weight: 400; opacity: 0.9; }

/* STATISTIKY */
.stats-banner { background: var(--brand-dark); color: var(--white); display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.stats-banner > * { text-align: center; padding: 50px 30px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stats-banner > *:nth-child(4n) { border-right: none; }
.stats-banner > *:nth-child(n+5) { border-bottom: none; }

.stat-icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.stat-number { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--white); }
.stat-label { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1.5px; margin-top: 8px; opacity: 0.7; color: var(--brand-light); }

.stat-title-box { position: relative; overflow: hidden; text-decoration: none; color: inherit; }
.stat-title-box h3 { color: var(--white); font-size: 1.8rem; margin: 0; position: relative; z-index: 2; line-height: 1.3; }
.stat-title-box::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%; background-image: url('https://zabudejovice.cz/wp-content/uploads/2022/05/heart.svg');
    background-repeat: no-repeat; background-position: center; background-size: contain;
    opacity: 0.2; filter: brightness(0) invert(1); z-index: 1;
}

/* MAPA */
#mapa-investic { width: 100%; height: 500px; z-index: 1; }

/* NEWSLETTER */
.newsletter-block { background: var(--darkest-blue); color: var(--white); }
.newsletter-block h2 { color: var(--brand-light); }
.newsletter-form { display: flex; gap: 12px; flex-wrap: nowrap; margin-top: 20px; align-items: stretch; }
.newsletter-input {
    flex: 1 1 0; min-width: 0; width: 0; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); color: var(--white); font-family: 'Inter', sans-serif;
    font-size: 1rem; border-radius: 8px; outline: none; transition: all 0.3s ease;
    box-sizing: border-box;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: var(--brand-light); background: rgba(255,255,255,0.1); }

/* KANDIDÁTI – GRID KARET */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

/* SOCIÁLNÍ SÍTĚ */
.social-bento { text-align: center; text-decoration: none; transition: background-color 0.3s ease; align-items: center;}
.social-bento:hover { background-color: var(--light-bg); }
.social-bento svg { width: 50px; height: 50px; fill: var(--brand-dark); margin-bottom: 15px; transition: fill 0.3s ease; }
.social-bento:hover svg { fill: var(--brand-light); }
.social-bento h3 { margin: 0; font-size: 1.1rem; color: var(--brand-dark); transition: color 0.3s ease; }
.social-bento:hover h3 { color: var(--brand-light); }

.youtube-bento { background-color: var(--brand-dark); }
.youtube-bento:hover { background-color: var(--brand-light); }
.youtube-bento svg { fill: var(--white); }
.youtube-bento:hover svg { fill: var(--white); }
.youtube-bento h3 { color: var(--white); }
.youtube-bento:hover h3 { color: var(--white); }

/* --- POSLEDNÍ NÁZORY v sekci kandidátů --- */
.latest-opinions-block {
    background: var(--brand-dark);
    color: white;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}
.opinion-card-link {
    display: flex;
    flex-direction: column;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: color 0.2s;
}
.opinion-card-link:last-of-type { border-bottom: none; }
.opinion-card-date {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}
.opinion-card-title {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.4;
    transition: color 0.2s;
}
.opinion-card-link:hover .opinion-card-title { color: var(--brand-light); }
.opinion-all-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}
.opinion-all-link:hover { text-decoration: underline; }

/* --- HERO PRO PODSTRÁNKY --- */
.subpage-hero { padding: 80px 40px; text-align: center; }
.subpage-hero h1 { font-size: 4rem; margin-bottom: 15px; }
.subpage-hero h1 { color: var(--brand-dark); }
.subpage-hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }

.bg-dark { background-color: var(--darkest-blue); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white); }
.bg-dark h1 { color: var(--brand-light); }

/* PROGRAM */
.unified-program { background-color: var(--light-bg); padding: 60px; display: block; }
.unified-program-header { max-width: 800px; margin-bottom: 50px; border-left: 5px solid var(--brand-light); padding-left: 25px; }
.unified-program-header h2 { font-size: 3rem; margin-bottom: 10px; }
.program-items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 30px; }
.p-item { position: relative; padding-top: 15px; border-top: 2px solid var(--border); }
.p-bg-num { position: absolute; top: -25px; left: -10px; font-size: 5rem; font-weight: 800; color: rgba(29, 156, 215, 0.08); z-index: 0; font-family: 'Playfair Display', serif; user-select: none; letter-spacing: -2px; line-height: 1; }
.p-content { position: relative; z-index: 1; }
.p-content h3 { font-size: 1.4rem; color: var(--brand-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 10px;}
.p-item h3, .p-content h3 { position: relative; z-index: 1; font-size: 1.25rem; color: var(--brand-dark); margin-bottom: 8px;}
.p-item p, .p-content p { position: relative; z-index: 1; font-size: 0.95rem; line-height: 1.5; color: #475569;}

/* TÝM */
.team-photo {
    width: 100%; height: 350px; object-fit: cover; object-position: top center;
    align-self: flex-start; filter: grayscale(100%); transition: filter 0.4s; display: block;
}
.team-item:hover .team-photo { filter: grayscale(0%); }
.team-info {
    padding: 25px; border-top: 1px solid var(--border); text-align: center;
    flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start;
}
.team-role { font-size: 0.8rem; text-transform: uppercase; color: var(--brand-light); letter-spacing: 1px; font-weight: 800; min-height: 2.6rem; margin-bottom: 5px; }
.team-quote { font-style: italic; font-size: 0.9rem; color: #64748b; margin-bottom: 15px; }

.team-themes {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: auto; padding-top: 15px;
}
.theme-tag {
    display: inline-flex; align-items: center; background: var(--light-bg); color: var(--brand-dark);
    padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border);
}
.theme-tag svg { width: 12px; height: 12px; margin-right: 6px; fill: var(--brand-light); }

/* AKCE – homepage blok */
.events-block { background: var(--brand-dark); color: white; }
.events-block h3 { color: white; }

/* AKCE – bento karta na stránce akce */
.event-bento { flex-direction: column; padding: 0; overflow: hidden; }
.event-bento-date {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
    color: white; padding: 28px 30px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.event-bento-day {
    font-size: 4.5rem; font-weight: 900; line-height: 1;
    font-family: 'Inter', sans-serif; letter-spacing: -3px; flex-shrink: 0;
}
.event-bento-month-wrap { display: flex; flex-direction: column; justify-content: center; }
.event-bento-month { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.event-bento-weekday { font-size: 0.8rem; opacity: 0.75; margin-top: 2px; font-weight: 400; }
.event-bento-time {
    margin-left: auto; font-size: 1rem; font-weight: 700;
    background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 50px;
    white-space: nowrap;
}
.event-bento-body { padding: 30px; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.event-bento-body h3 { font-size: 1.6rem; color: var(--brand-dark); margin-bottom: 10px; }
.event-bento-location {
    display: flex; align-items: center; gap: 6px;
    color: var(--brand-light); font-weight: 700; font-size: 0.9rem; margin-bottom: 15px;
}
.event-bento-location svg { flex-shrink: 0; stroke: var(--brand-light); }
.event-bento-desc { font-size: 0.95rem; line-height: 1.7; color: #475569; }

/* ÚSPĚCHY - STATUS TAGY */
.status-tag {
    display: inline-block; background: var(--brand-light); color: white; padding: 4px 10px;
    border-radius: 0px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
    margin-bottom: 15px;
}

/* PATIČKA */
footer { background: var(--darkest-blue); color: var(--white); }
.footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-item { padding: 50px 40px; border-right: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; justify-content: flex-start; }
.footer-item h3 { color: var(--brand-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-family: 'Inter', sans-serif; font-weight: 700;}
.footer-item p, .footer-item a { color: var(--white); font-size: 1.05rem; text-decoration: none; margin-bottom: 10px; line-height: 1.5;}
.footer-item a { border-bottom: 1px dotted rgba(255,255,255,0.3); transition: border-color 0.3s; }
.footer-item a:hover { border-color: var(--brand-light); color: var(--brand-light); }

.coalition-logos { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--white); padding: 15px; border-radius: 0;}
.coalition-logos img { height: 35px; object-fit: contain; }

/* FORMULÁŘE V BENTU */
.input-field {
    width: 100%; padding: 15px; border: 2px solid var(--border); border-radius: 0px;
    font-family: 'Inter', sans-serif; font-size: 1rem; background: var(--light-bg);
    transition: 0.3s; margin-bottom: 15px;
}
.input-field:focus { border-color: var(--brand-light); outline: none; background: var(--white); }

/* PODPOROVATELÉ BANNER */
.supporters-banner { padding: 50px 40px; background: var(--light-bg); display: block !important; }
.supporters-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; flex-wrap: wrap; gap: 10px; }
.supporters-header h2 { margin: 0; }
.supporters-header em { color: var(--brand-light); font-style: italic; }
.supporters-carousel-wrap { position: relative; overflow: hidden; }
.supporters-track { display: flex; will-change: transform; }
.supp-slide { padding: 0 10px; box-sizing: border-box; }
.supp-slide-img {
    width: 100%; height: 180px;
    background-size: cover; background-position: top center;
    border-radius: 4px 4px 0 0; background-color: var(--brand-dark);
}
.supp-slide-noimg { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }
.supp-slide-info { background: white; border: 1px solid var(--border); border-top: none; padding: 15px; border-radius: 0 0 4px 4px; min-height: 110px; }
.supp-slide-name { font-weight: 700; font-size: 0.95rem; color: var(--brand-dark); margin-bottom: 3px; }
.supp-slide-role { font-size: 0.75rem; color: var(--brand-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.supp-slide-quote { font-size: 0.82rem; color: #64748b; font-style: italic; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.supp-nav {
    position: absolute; top: 80px;
    background: var(--brand-dark); color: white; border: none;
    width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0.85; transition: opacity 0.2s; z-index: 2; line-height: 1;
}
.supp-nav:hover { opacity: 1; background: var(--brand-light); }
.supp-prev { left: -5px; }
.supp-next { right: -5px; }
.supp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.supp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: background 0.3s; }
.supp-dot.active { background: var(--brand-light); }

/* HAMBURGER TLAČÍTKO */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONZIVITA */
@media (max-width: 1024px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .span-2-col, .span-3-col, .span-4-col { grid-column: span 2; }
    .tablet-span-2, .tablet-fill { grid-column: span 2; }
    .team-item { grid-column: span 1; }
    /* Na tabletu/mobilu mají social-bento vždy span 1 – zabraňuje mezerám u lichého počtu */
    .grid-item.social-bento { grid-column: span 1 !important; }
    .candidates-grid { grid-template-columns: repeat(3, 1fr); }
    .team-photo { height: 400px; }
    .full-team-photo { height: 450px; }
    .heart-overlay { width: 180px; bottom: 20px; right: 30px; }
    .results-grid { gap: 30px 20px; }
    .stats-banner { grid-template-columns: repeat(2, 1fr); }
    .stats-banner > div:nth-child(n) { border-right: 1px solid rgba(255,255,255,0.1); }
    .stats-banner > div:nth-child(2n) { border-right: none; }
    .stats-banner > div:nth-last-child(-n+2) { border-bottom: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .footer-item:nth-child(2n) { border-right: none; }
    .footer-item:nth-last-child(-n+2) { border-bottom: none; }
    .unified-program { padding: 40px 20px; }
    .unified-program-header h2 { font-size: 2.2rem; }
    .event-card { flex-direction: column; }
    .event-date { padding: 20px; flex-direction: row; gap: 15px; justify-content: flex-start;}
    .event-date .time { margin-top: 0; margin-left: auto;}
    .subpage-hero { padding: 60px 40px; }
    .subpage-hero h1 { font-size: 3rem; }

    /* Modulární sekce – tablet */
    .hero-banner-block { min-height: 360px; padding: 40px 30px; }
    .hero-banner-block h1 { font-size: 2.8rem; }
    .hero-video-block { min-height: 250px; }
    .team-photo-block { min-height: 280px; }
    .countdown-number { font-size: 3.8rem; }
    .rc-num { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .span-2-col, .span-3-col, .span-4-col, .tablet-fill { grid-column: span 2; }
    header { flex-direction: row; flex-wrap: wrap; padding: 15px 20px; gap: 0; position: relative; }
    .nav-toggle { display: flex; }
    #mainNav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: var(--darkest-blue);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        padding: 10px 0;
    }
    #mainNav.nav-open { display: flex; }
    #mainNav a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    #mainNav a:last-child { border-bottom: none; }
    .grid-item { padding: 30px 20px; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-video iframe { min-height: 300px; }
    .stat-box, .stat-title-box { padding: 30px 15px; }
    .stat-title-box h3 { font-size: 1.3rem; }
    .stat-icon { font-size: 1.4rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.7rem; }
    .unified-program { padding: 40px 20px; }
    .unified-program-header h2 { font-size: 2.2rem; }
}

@media (max-width: 576px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); border-left: none; }
    /* 1/2+ bloky na celou šířku, 1/4 bloky zůstávají vedle sebe (2 sloupce) */
    .grid-item.span-2-col, .grid-item.span-3-col, .grid-item.span-4-col { grid-column: span 2; border-right: none; }
    .grid-item:not(.span-2-col):not(.span-3-col):not(.span-4-col) { border-right: 1px solid var(--border); }
    .grid-item.social-bento { grid-column: span 1 !important; padding: 25px 10px; }
    .social-bento:nth-child(odd) { border-right: 1px solid var(--border); }
    .social-bento:nth-child(even) { border-right: none; }
    .grid-item.youtube-bento { grid-column: span 1 !important; border-right: none; }
    .candidates-grid { grid-template-columns: repeat(2, 1fr); }
    .team-item { grid-column: span 1; }
    .team-item:nth-child(even) { border-right: 1px solid var(--border); }
    .team-item:nth-child(odd) { border-right: none; }
    .team-photo { height: 180px; }
    .team-info { padding: 15px 10px; }
    .team-item h3 { font-size: 1.05rem; margin-bottom: 5px; }
    .team-role { font-size: 0.65rem; min-height: 2rem; margin-bottom: 2px;}
    .team-quote { font-size: 0.8rem; margin-bottom: 10px; line-height: 1.3;}
    .theme-tag { font-size: 0.65rem; padding: 3px 6px; }
    .theme-tag svg { width: 10px; height: 10px; margin-right: 4px; }
    .footer-grid { grid-template-columns: 1fr; border-left: none; }
    .footer-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .footer-item:last-child { border-bottom: none; }
    .results-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 15px; }
    .result-number { font-size: 2.2rem; }
    .result-text { font-size: 0.85rem; }
    .countdown-number { font-size: 4rem; }
    .full-team-photo { height: 280px; }
    .heart-overlay { width: 120px; bottom: 20px; right: 20px; }
    .btn-container { flex-direction: column; }
    .btn-cta { width: 100%; }
    .newsletter-form { flex-direction: column; gap: 8px; }
    .newsletter-input { width: 100%; flex: none; }
    .newsletter-form .btn-cta { width: 100%; }
    .coalition-logos { justify-content: center; }

    /* Modulární sekce – mobile */
    .hero-banner-block { min-height: unset; padding: 35px 20px; }
    .hero-banner-block h1 { font-size: 2.2rem; }
    .hero-video-block { min-height: 220px; }
    .team-photo-block { min-height: 220px; }
    .countdown-number { font-size: 3rem; }
    .results-block { grid-template-columns: 1fr 1fr; }
}

/* ── ANKETA — blok na homepage ─────────────────────────────────────── */
.anketa-block {
    background: linear-gradient(135deg, var(--darkest-blue) 0%, var(--brand-dark) 100%);
    color: white; padding: 36px 32px;
    display: flex; align-items: stretch;
}
.anketa-block-inner { display: flex; flex-direction: column; width: 100%; }
.anketa-block-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(255,255,255,0.15); display: flex;
    align-items: center; justify-content: center; margin-bottom: 16px; color: white;
}
.anketa-block h3 { font-size: 1.3rem; font-weight: 800; color: white; margin: 0 0 10px; }
.anketa-block p { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.55; margin: 0 0 16px; }
.anketa-block-bullets { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 6px; }
.anketa-block-bullets li {
    font-size: .82rem; color: rgba(255,255,255,.75);
    display: flex; align-items: center; gap: 8px;
}
.anketa-block-bullets li::before {
    content: '✓'; display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2);
    font-size: .65rem; font-weight: 800; color: white; flex-shrink: 0;
}
.anketa-block-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
    background: white; color: var(--darkest-blue);
    font-size: .9rem; font-weight: 700; padding: 12px 22px;
    border-radius: 9px; text-decoration: none; align-self: flex-start;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.anketa-block-btn:hover { background: #e8f0fe; transform: translateY(-1px); }
