/* =====================================================================
   SVJ Kamnářská 7-17, Blansko — styly webu
   Barvy vychází z loga: červená střecha, oranžové akcenty, tmavá šedá.
   Zadání klienta: jednoduchost, přehlednost, velké čitelné písmo.
   ===================================================================== */

:root {
    --red: #C42A2A;
    --red-dark: #A31F22;
    --orange: #E87511;
    --orange-light: #F5A623;
    --ink: #2B2A2E;
    --muted: #63615E;
    --paper: #FFFFFF;
    --bg: #F7F5F2;
    --line: #E6E2DC;
    --card-shadow: 0 2px 14px rgba(43, 42, 46, .07);
    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 22px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 300;
    background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- tlačítka */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 700; font-size: 17px;
    padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; text-decoration: none; transition: background .18s, color .18s, border-color .18s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #D2670C; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #F4E9E9; color: var(--red-dark); }
.btn-sm { font-size: 15.5px; padding: 9px 20px; }
.btn-block { display: flex; width: 100%; }
.btn-plain { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; text-decoration: underline; }

/* -------------------------------------------------------------- infobar */
.infobar { background: var(--orange); color: #fff; font-size: 16px; }
.infobar .wrap { display: flex; gap: 14px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.infobar a { color: #fff; font-weight: 700; }

/* ------------------------------------------------------------- hlavička */
.site-header {
    background: var(--paper); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.header-in { display: flex; align-items: center; gap: 26px; padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 96px; width: auto; display: block; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a {
    display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16.5px;
}
.main-nav a:hover { background: var(--bg); color: var(--red); }
.main-nav .caret { transition: transform .18s; }
.has-mega:hover > a .caret, .has-mega:focus-within > a .caret { transform: rotate(180deg); }

/* Zvýrazněná položka menu (css_class „nav-highlight" v Admin → Menu) */
.main-nav .nav-highlight > a {
    background: var(--orange); color: #fff; border-radius: 999px; padding: 10px 18px;
}
.main-nav .nav-highlight > a:hover { background: #D2670C; color: #fff; }
.main-nav .nav-highlight > a .caret { color: rgba(255, 255, 255, .85); }

/* Megamenu — panel se objeví najetím i klávesnicí (focus-within) */
.mega {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
    min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(30, 28, 32, .16); padding: 10px;
    display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s;
    z-index: 120;
}
.mega::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.mega-item:hover { background: var(--bg); }
.mega-t { font-weight: 700; font-size: 16px; color: var(--ink); }
.mega-item:hover .mega-t { color: var(--red); }
.mega-d { font-size: 14px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 6px; }

/* ----------------------------------------------------------------- hero */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--ink);
}
.hero-img { position: absolute; inset: 0; }
/* Rotující fotky domu — vrstvené přes sebe, prolínají se změnou průhlednosti.
   Výřez (object-position) si nese každá fotka svůj, ať je dům vždy v záběru. */
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}
.hero-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(24, 22, 26, .78) 0%, rgba(24, 22, 26, .45) 55%, rgba(24, 22, 26, .18) 100%);
}
.hero-in { position: relative; z-index: 2; padding: clamp(60px, 9vw, 120px) 0; max-width: 640px; }
.hero-kicker {
    display: inline-block; background: var(--orange); color: #fff;
    font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 6px; margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p { font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, .92); margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pruh s nejbližší odstávkou pod herem */
.outage-strip { background: var(--red); color: #fff; }
.outage-strip .wrap { display: flex; align-items: center; gap: 14px; padding-top: 13px; padding-bottom: 13px; flex-wrap: wrap; font-size: 17px; }
.outage-strip strong { font-family: var(--font-head); font-size: 19px; letter-spacing: .4px; text-transform: uppercase; }
.outage-strip a { color: #fff; font-weight: 700; margin-left: auto; white-space: nowrap; }

/* --------------------------------------------------------------- sekce */
.section { padding: clamp(44px, 7vw, 76px) 0; }
.section--white { background: var(--paper); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { position: relative; padding-left: 16px; }
.section-head h2::before {
    content: ''; position: absolute; left: 0; top: 8%; bottom: 8%; width: 5px;
    border-radius: 3px; background: linear-gradient(180deg, var(--red), var(--orange));
}
.section-link { font-weight: 700; white-space: nowrap; }

/* Rychlé odkazy (dlaždice) — 3 + 3 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile-icon img { width: 34px; height: 34px; object-fit: contain; display: block; }
.tile {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-decoration: none; color: var(--ink);
    box-shadow: var(--card-shadow); transition: transform .15s, border-color .15s;
    display: flex; flex-direction: column; gap: 10px;
}
.tile:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--ink); }
.tile-icon {
    width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FBEFE2, #F8E3E3); color: var(--red);
}
.tile h3 { font-size: 21px; }
.tile p { font-size: 16px; color: var(--muted); line-height: 1.5; }

/* Karty aktualit */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card-post {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column;
}
.card-post-img { aspect-ratio: 16/9; background: var(--bg); }
.card-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-post time { font-size: 15px; color: var(--muted); }
.card-post h3 a { color: var(--ink); text-decoration: none; }
.card-post h3 a:hover { color: var(--red); }
.card-post p { font-size: 16.5px; color: var(--muted); }
.card-post .more { margin-top: auto; font-weight: 700; font-size: 16px; }

/* ---------------------------------------------------- vnitřní stránky */
.page-hero { background: linear-gradient(120deg, #2E2B30 0%, #413A3C 70%); border-bottom: 4px solid var(--orange); color: #fff; }
.page-hero .wrap { padding-top: clamp(38px, 6vw, 64px); padding-bottom: clamp(30px, 5vw, 52px); }
.page-hero h1 { color: #fff; }
.page-hero p { margin-top: 10px; font-size: 19px; color: rgba(255, 255, 255, .85); max-width: 46em; }
.breadcrumb { font-size: 15px; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }

.content-narrow { max-width: 860px; }
.page-content { font-size: 18px; }
.page-content h2 { margin: 38px 0 14px; color: var(--red-dark); }
.page-content h3 { margin: 28px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 26px; margin-bottom: 18px; }
.page-content li { margin-bottom: 8px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 16.5px; }
.page-content th { background: var(--bg); font-weight: 700; }
.page-content img { border-radius: var(--radius); }

/* ------------------------------------------------------------ formuláře */
.form-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--card-shadow); padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field select, .field textarea {
    width: 100%; font-family: var(--font-body); font-size: 17px; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 15px; color: var(--muted); margin-top: 14px; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* Kroky formuláře */
.form-step {
    display: flex; align-items: center; gap: 12px;
    font-size: 24px; margin: 30px 0 16px;
}
.form-step:first-of-type { margin-top: 0; }
.form-step span {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700;
}
.field-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }

/* Banner s předvyplněním z účtu */
.prefill-note {
    display: flex; align-items: flex-start; gap: 10px;
    background: #E9F2E9; border: 1px solid #C4DcC4; color: #2F5D33;
    border-radius: 10px; padding: 13px 16px; font-size: 16px; margin-bottom: 22px;
}
.prefill-note svg { flex: none; margin-top: 3px; }
.prefill-note--tip { background: #FBF4E4; border-color: #EAD9A8; color: #6B5A22; }
.prefill-note--tip a { color: inherit; font-weight: 700; }

/* Výběr druhu závady — klikací karty s ikonami */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 10px 13px; background: #fff; border: 2px solid var(--line); border-radius: 12px;
    cursor: pointer; text-align: center; font-weight: 600; font-size: 15.5px; line-height: 1.3;
    transition: border-color .15s, background .15s, transform .12s;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.cat-card input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card img { width: 44px; height: 44px; object-fit: contain; }
.cat-card:has(input:checked) { border-color: var(--red); background: #FBEBEB; }
.cat-card:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Přepínač vchodů */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-item { position: relative; cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item span {
    display: flex; align-items: center; justify-content: center; min-width: 52px; padding: 10px 12px;
    background: #fff; border: 2px solid var(--line); border-radius: 10px;
    font-weight: 700; font-size: 17px; transition: border-color .15s, background .15s;
}
.seg-item:hover span { border-color: var(--orange); }
.seg-item input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.seg-item input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

/* --------------------------------------------------------------- výpisy */
.list-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--card-shadow); overflow: hidden;
}
.doc-row {
    display: flex; align-items: center; gap: 16px; padding: 15px 22px;
    border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: #FCFAF7; }
.doc-ext {
    flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #F8E3E3; color: var(--red);
    font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
}
.doc-main { flex: 1; min-width: 0; }
.doc-title { display: block; font-weight: 700; font-size: 17.5px; }
.doc-meta { display: block; font-size: 15px; color: var(--muted); }
.doc-lock { flex: none; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.doc-dl { flex: none; color: var(--red); font-weight: 700; font-size: 16px; white-space: nowrap; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.filter-chip {
    display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none;
}
.filter-chip:hover { border-color: var(--orange); color: var(--ink); }
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Odstávky */
.outage-item {
    display: flex; gap: 20px; padding: 20px 24px; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow);
    margin-bottom: 16px; align-items: flex-start;
}
.outage-date {
    flex: none; text-align: center; min-width: 86px; background: var(--bg);
    border-radius: 10px; padding: 10px 12px;
}
.outage-date .d { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--red); line-height: 1; }
.outage-date .m { font-size: 15px; color: var(--muted); }
.outage-body h3 { margin-bottom: 4px; }
.outage-body .meta { font-size: 15.5px; color: var(--muted); margin-bottom: 6px; }
.badge {
    display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .4px;
    padding: 3px 11px; border-radius: 999px; text-transform: uppercase;
}
.badge--voda { background: #E1EEF7; color: #1666A0; }
.badge--teplo { background: #FBE9DB; color: #C05A0C; }
.badge--elektrina { background: #FAF0CE; color: #9C7A0B; }
.badge--vytah { background: #E8E4F4; color: #5B4A9E; }
.badge--deratizace { background: #E4F1E4; color: #2F7D33; }
.badge--revize { background: #E9E9EC; color: #4A4A52; }
.badge--udrzba { background: #E7EDF6; color: #3A5E8C; }
.badge--shromazdeni { background: #F6E7F0; color: #8C3A6B; }
.badge--jine { background: #EDEAE6; color: #6B665F; }
.badge--open { background: #E4F1E4; color: #2F7D33; }
.badge--closed { background: #EDEAE6; color: #6B665F; }

/* Hlasování */
.vote-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--card-shadow); padding: 24px 26px; margin-bottom: 18px;
}
.vote-card h3 { margin-bottom: 6px; }
.vote-card h3 a { color: var(--ink); text-decoration: none; }
.vote-card h3 a:hover { color: var(--red); }
.vote-meta { font-size: 16px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.vote-question {
    background: var(--bg); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px;
}
.vote-question .q { font-weight: 700; font-size: 17.5px; margin-bottom: 12px; }
.vote-options { display: flex; gap: 10px; flex-wrap: wrap; }
.vote-options label {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
    cursor: pointer; font-size: 16.5px; font-weight: 600;
}
.vote-options label:has(input:checked) { border-color: var(--red); background: #FBEBEB; color: var(--red-dark); }
.vote-options input { accent-color: var(--red); width: 17px; height: 17px; }
.result-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); margin: 8px 0 4px; }
.result-bar .ano { background: #3F9743; }
.result-bar .ne { background: var(--red); }
.result-bar .zdrzel { background: #B9B4AC; }
.result-legend { font-size: 15.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.legal-note {
    background: #FBF4E4; border: 1px solid #EAD9A8; border-radius: 10px;
    padding: 14px 18px; font-size: 15.5px; color: #6B5A22; margin: 16px 0;
}

/* Kalendář odstávek */
.view-toggle { display: flex; gap: 10px; margin-bottom: 26px; }
.view-toggle .filter-chip { display: inline-flex; align-items: center; gap: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; }
.cal-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.cal { width: 100%; min-width: 860px; border-collapse: collapse; background: #fff; table-layout: fixed; }
.cal th {
    font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted); background: var(--bg);
    padding: 10px 8px; border: 1px solid var(--line);
}
.cal td { vertical-align: top; border: 1px solid var(--line); padding: 6px; height: 96px; }
.cal-daynum { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cal-out { background: #FBFAF8; }
.cal-out .cal-daynum { color: #C6C1B9; }
.cal-today { background: #FFF7EC; box-shadow: inset 0 0 0 2px var(--orange); }
.cal-today .cal-daynum { color: var(--orange); }
.cal-event {
    font-size: 13px; line-height: 1.35; padding: 4px 7px; margin-bottom: 4px;
    border-radius: 6px; border-left: 3px solid transparent; overflow: hidden; cursor: help;
}
.cal-event.is-start { border-top-left-radius: 6px; }
.cal-event:not(.is-start) { border-left-style: dotted; }
.cal-until { color: inherit; opacity: .75; font-size: 12px; }
.cal-event--voda { background: #E1EEF7; color: #1666A0; border-left-color: #1666A0; }
.cal-event--teplo { background: #FBE9DB; color: #C05A0C; border-left-color: #C05A0C; }
.cal-event--elektrina { background: #FAF0CE; color: #8A6C0A; border-left-color: #8A6C0A; }
.cal-event--vytah { background: #E8E4F4; color: #5B4A9E; border-left-color: #5B4A9E; }
.cal-event--deratizace { background: #E4F1E4; color: #2F7D33; border-left-color: #2F7D33; }
.cal-event--revize { background: #E9E9EC; color: #4A4A52; border-left-color: #4A4A52; }
.cal-event--udrzba { background: #E7EDF6; color: #3A5E8C; border-left-color: #3A5E8C; }
.cal-event--shromazdeni { background: #F6E7F0; color: #8C3A6B; border-left-color: #8C3A6B; }
.cal-event--jine { background: #EDEAE6; color: #6B665F; border-left-color: #6B665F; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border-left: none !important; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .2s; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* Kontaktní boxy */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-box {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--card-shadow); padding: 24px;
}
.contact-box h3 { margin-bottom: 8px; }
.contact-box .role { color: var(--orange); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; }
.contact-box ul { list-style: none; margin-top: 8px; }
.contact-box li { padding: 3px 0; font-size: 17px; }

/* --------------------------------------------------------------- toasty */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 250; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
    border-radius: 12px; box-shadow: 0 8px 30px rgba(30, 28, 32, .18);
    background: #fff; font-size: 16px; animation: toast-in .25s ease;
}
.toast svg { flex: none; margin-top: 2px; }
.toast--ok { border-left: 4px solid #3F9743; } .toast--ok svg { color: #3F9743; }
.toast--err { border-left: 4px solid var(--red); } .toast--err svg { color: var(--red); }
.toast--info { border-left: 4px solid var(--orange); } .toast--info svg { color: var(--orange); }
.toast-x { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; margin-left: auto; }
.toast.leaving { opacity: 0; transform: translateX(12px); transition: all .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* -------------------------------------------------------------- patička */
.site-footer { background: #29272B; color: #CFCBC6; margin-top: 0; }
.footer-cols {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
    padding-top: 52px; padding-bottom: 40px;
}
.footer-logo { height: 92px; width: auto; margin-bottom: 18px; }
.footer-about { font-size: 16px; line-height: 1.6; }
.footer-h {
    font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.footer-list { list-style: none; }
.footer-list li { padding: 4px 0; font-size: 16.5px; }
.footer-list a { color: #E4E0DA; text-decoration: none; }
.footer-list a:hover { color: var(--orange-light); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 26px; font-size: 15px;
}
.footer-bottom a { color: #E4E0DA; }
.footer-bottom .dot { margin: 0 8px; color: #6E6A66; }

/* -------------------------------------------------------- mobilní menu */
.mm-overlay {
    position: fixed; inset: 0; background: rgba(25, 23, 27, .5); z-index: 190;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mm-overlay.open { opacity: 1; pointer-events: auto; }
.mm-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 200;
    background: #fff; transform: translateX(105%); transition: transform .22s ease;
    display: flex; flex-direction: column;
}
.mm-drawer.open { transform: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mm-close { background: none; border: none; color: var(--ink); cursor: pointer; padding: 6px; }
.mm-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.mm-body a {
    display: block; padding: 13px 24px; color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: 18px; border-bottom: 1px solid #F1EEE9;
}
.mm-body a:hover { background: var(--bg); color: var(--red); }
.mm-group {
    padding: 16px 24px 6px; font-family: var(--font-head); font-size: 15px; font-weight: 600;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange);
}
.mm-body a.mm-sub { padding-left: 38px; font-weight: 500; font-size: 17px; }
.mm-foot { padding: 18px 20px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------- cookie lišta */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 240; padding: 14px; }
.cookie-box {
    max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: 0 10px 44px rgba(30, 28, 32, .2);
    padding: 20px 24px; display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text p { font-size: 15.5px; color: var(--muted); margin-top: 4px; }
.cookie-text label { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; margin: 8px 12px 0 0; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }

/* ------------------------------------------------------------ pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-block; min-width: 42px; text-align: center; padding: 9px 12px;
    border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
    color: var(--ink); text-decoration: none; font-weight: 600;
}
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ------------------------------------------------------------ responzivita */
@media (max-width: 1120px) {
    .main-nav { display: none; }
    .burger { display: block; }
    .header-in { justify-content: space-between; }
}
@media (max-width: 1020px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 17px; }
    .brand img { height: 64px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .header-actions .btn { display: none; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
    .form-grid { grid-template-columns: 1fr; }
    .outage-strip a { margin-left: 0; }
    .doc-row { flex-wrap: wrap; }
    .doc-dl { width: 100%; padding-left: 62px; }
    .hero-btns .btn { width: 100%; }
}

/* Nejbližší události na úvodní stránce */
.events-mini { display: grid; gap: 12px; }
.event-mini {
    display: flex; gap: 18px; align-items: center; padding: 14px 18px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--card-shadow); text-decoration: none; color: var(--ink);
    transition: border-color .15s, transform .12s;
}
.event-mini:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--ink); }
.event-mini .outage-date { flex: none; min-width: 74px; padding: 8px 10px; }
.event-mini .outage-date .d { font-size: 26px; }
.event-mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.event-mini-body .badge { align-self: flex-start; }
.event-mini-body strong { font-size: 17.5px; }
.event-mini-meta { font-size: 15px; color: var(--muted); }

/* Kontakt — tabulka výboru a klikací boxy „na koho se obrátit" */
.vybor-tab { width: 100%; border-collapse: collapse; }
.vybor-tab th {
    text-align: left; padding: 12px 22px; background: var(--bg);
    font-family: var(--font-head); font-size: 15px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.vybor-tab td { padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 17px; vertical-align: top; }
.vybor-tab tr:last-child td { border-bottom: none; }
.contact-box--link { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .12s; }
.contact-box--link:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--ink); }
.contact-box--link h3 { color: var(--red-dark); margin-bottom: 6px; }
.contact-box--link p { font-size: 16px; color: var(--muted); }


/* Lišta přihlášeného vlastníka — drží se na všech stránkách */
.owner-bar { background: #2E2B30; color: #E8E4DE; font-size: 15px; }
.owner-bar .wrap { display: flex; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.owner-bar-who { display: inline-flex; align-items: center; gap: 7px; }
.owner-bar-who svg { color: var(--orange-light); }
.owner-bar-who strong { color: #fff; }
.owner-bar-links { margin-left: auto; display: flex; gap: 18px; }
.owner-bar-links a { color: var(--orange-light); text-decoration: none; font-weight: 600; }
.owner-bar-links a:hover { color: #fff; }


/* Potvrzovací modal uprostřed obrazovky (úspěšné akce) */
.ok-modal-overlay {
    position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center;
    background: rgba(30, 27, 32, .55); padding: 20px;
    opacity: 0; transition: opacity .24s ease;
}
.ok-modal-overlay.show { opacity: 1; }
.ok-modal-overlay.leaving { opacity: 0; }
.ok-modal {
    position: relative; max-width: 440px; width: 100%; background: #fff; border-radius: 16px;
    border-top: 5px solid var(--red); box-shadow: 0 24px 70px rgba(20, 18, 22, .35);
    padding: 34px 30px 30px; text-align: center;
    transform: translateY(10px); transition: transform .24s ease;
}
.ok-modal-overlay.show .ok-modal { transform: none; }
.ok-modal-icon {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
    background: #E4F1E4; color: #2F7D33; display: flex; align-items: center; justify-content: center;
}
.ok-modal h2 { font-size: 28px; margin-bottom: 8px; }
.ok-modal p { font-size: 17px; color: var(--muted); margin-bottom: 22px; }
.ok-modal-x {
    position: absolute; top: 10px; right: 14px; background: none; border: none;
    font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
    .ok-modal-overlay, .ok-modal { transition: none; }
}

/* ===== Page builder — bloky (Stránky se skládají v editoru bloků) ===== */
.pb-text { font-size: 18px; }
.pb-text h2 { margin: 38px 0 14px; color: var(--red-dark); }
.pb-text h2:first-child, .pb-text h3:first-child { margin-top: 0; }
.pb-text h3 { margin: 28px 0 10px; }
.pb-text p { margin-bottom: 16px; }
.pb-text ul, .pb-text ol { padding-left: 26px; margin-bottom: 18px; }
.pb-text li { margin-bottom: 6px; }
.pb-text a { color: var(--red); }
.pb-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.pb-text hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

.faq-wrap { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 17.5px; color: var(--ink); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 24px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { color: var(--red-dark); }
.faq-body { padding: 0 20px 16px; color: var(--muted); }
.faq-body p { margin: 0; }

.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .proc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--card-shadow); }
.proc-ic { position: relative; width: 54px; height: 54px; border-radius: 14px; background: #FBEADB; color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.proc-n { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.proc-step h3 { font-size: 21px; margin-bottom: 6px; }
.proc-step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Tabulky v textových blocích builderu — kontakty, linky, přehledy.
   První sloupec je „štítek" (číslo linky, název poruchy) na světlém podkladu. */
.pb-text table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.pb-text table td, .pb-text table th { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 17px; line-height: 1.5; }
.pb-text table tr:last-child td { border-bottom: none; }
.pb-text table td:first-child { font-weight: 700; white-space: nowrap; width: 1%; min-width: 130px; color: var(--red-dark); background: #FBF6EF; border-right: 1px solid var(--line); }
.pb-text table td:first-child strong { color: var(--red-dark); font-size: 20px; letter-spacing: .3px; }
.pb-text table th { background: var(--ink); color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
@media (max-width: 620px) {
    .pb-text table td { display: block; width: auto !important; min-width: 0 !important; white-space: normal; }
    .pb-text table td:first-child { border-right: none; padding-bottom: 6px; }
    .pb-text table td:last-child { padding-top: 6px; }
    .pb-text table td:not(:last-child) { border-bottom: none; }
}

/* Přihlášený vlastník v hlavičce — tlačítko Můj účet + drobné jméno a odhlášení */
.owner-mini { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.owner-mini-sub { font-size: 12.5px; color: var(--muted); line-height: 1.2; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.owner-mini-sub a { color: var(--red); font-weight: 700; }
@media (max-width: 980px) { .owner-mini-sub { display: none; } }
