/* ===========================================================================
   TSBPH – veřejný web
   Barvy vychází z loga: modrá #037bae, zelená #71ba2a, břidlicová #445867
   =========================================================================== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/vendor/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/vendor/fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #037bae;
  --blue-dark: #02648d;
  --blue-soft: #e4f2f8;
  --green: #71ba2a;
  --green-dark: #5c9c1f;
  --green-soft: #ecf6e2;
  --navy: #2b3948;
  --navy-2: #34435a;
  --ink: #26333f;
  --slate: #445867;
  --text: #4c5b68;
  --muted: #7d8a96;
  --bg: #f4f7f9;
  --bg-2: #eef3f6;
  --line: #e2e8ed;
  --white: #fff;
  --red: #c9302c;
  --red-dark: #a92723;
  --rose-soft: #fbe9e8;
  --amber: #d68a06;
  --amber-soft: #fff3dc;
  --violet-soft: #ece8f7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(43, 57, 72, 0.09);
  --shadow-sm: 0 4px 14px rgba(43, 57, 72, 0.07);
  --container: 1200px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }
.hl-blue { color: var(--blue); }
.hl-green { color: var(--green); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.05em; height: 1.05em; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-sm { padding: 9px 14px; font-size: 0.92rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(3, 123, 174, 0.28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 12px 24px rgba(3, 123, 174, 0.34); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(113, 186, 42, 0.3); }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.section-dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(43, 57, 72, 0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand img { height: 68px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--slate); font-weight: 500; font-size: 1.02rem;
}
.site-nav > ul > li > a:hover, .site-nav li.is-active > a { color: var(--blue); background: var(--blue-soft); }
.site-nav .has-sub { display: flex; align-items: center; }
.site-nav .has-sub > a { padding-right: 6px; border-radius: 10px 0 0 10px; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 40px;
  border: 0; background: none; color: var(--slate); cursor: pointer; border-radius: 0 10px 10px 0;
}
.sub-toggle .ic { width: 16px; height: 16px; transition: transform 0.2s; }
.has-sub:hover > .sub-toggle, .has-sub:hover > a { color: var(--blue); background: var(--blue-soft); }
.site-nav .sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; display: none; flex-direction: column; align-items: stretch; gap: 0;
}
.site-nav .sub a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--slate); font-weight: 500; }
.site-nav .sub a:hover, .site-nav .sub a[aria-current] { background: var(--bg); color: var(--blue); }
.site-nav .sub .sub-head a { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub, .site-nav .has-sub.is-open .sub { display: flex; }
.site-nav .has-sub.is-open .sub-toggle .ic { transform: rotate(180deg); }
.nav-cta { margin-left: 10px; }
.site-nav > ul > li.nav-cta > a { color: #fff; background: var(--blue); }
.site-nav > ul > li.nav-cta > a:hover { color: #fff; background: var(--blue-dark); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
body.nav-open .nav-toggle .ic-open { display: none; }
body.nav-open .nav-toggle .ic-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 130px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; opacity: 0.7; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.blob-a { width: 520px; height: 520px; left: -160px; top: -120px; background: radial-gradient(circle, rgba(3, 123, 174, 0.28), transparent 70%); }
.blob-b { width: 460px; height: 460px; right: -120px; top: 20%; background: radial-gradient(circle, rgba(113, 186, 42, 0.26), transparent 70%); animation-delay: -6s; }
.blob-c { width: 380px; height: 380px; left: 40%; bottom: -160px; background: radial-gradient(circle, rgba(3, 123, 174, 0.14), transparent 70%); animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin: 18px 0 22px; font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-copy .lead { font-size: 1.15rem; color: var(--text); max-width: 34rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.92rem; font-weight: 500; color: var(--slate);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(113, 186, 42, 0.6); animation: pulse 2s infinite; }
.status-pill.is-closed .dot { background: var(--red); box-shadow: 0 0 0 0 rgba(201, 48, 44, 0.5); animation-name: pulse-red; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(113, 186, 42, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(113, 186, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(113, 186, 42, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(201, 48, 44, 0.45); } 70% { box-shadow: 0 0 0 9px rgba(201, 48, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 48, 44, 0); } }

.hero-visual { position: relative; min-height: 520px; }
.hero-photo {
  position: absolute; inset: 0 0 0 6%;
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(43, 57, 72, 0.22);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, 1.5%, 0); } }
.hero-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(43, 57, 72, 0.18);
  will-change: transform;
}
.hero-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); pointer-events: none; }
.hero-card-1 { top: 8%; left: -4%; }
.hero-card-2 { top: 44%; right: -6%; }
.hero-card-3 { bottom: 6%; left: 4%; }
.hero-card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; }
.hero-card-icon .ic { width: 22px; height: 22px; }
.hero-card-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-card-text strong { color: var(--ink); font-size: 1rem; }
.hero-card-text small { color: var(--muted); font-size: 0.85rem; }
.hero-card .float { animation: float 6s ease-in-out infinite; }

/* Plovoucí animace karet (vrstva uvnitř, aby nekolidovala s parallaxem) */
.hero-card-1 { animation: float 7s ease-in-out infinite; }
.hero-card-2 { animation: float 8.5s ease-in-out -2s infinite; }
.hero-card-3 { animation: float 6.5s ease-in-out -4s infinite; }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }

/* Barevné tóny ikon */
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-green { background: var(--green-soft); color: var(--green-dark); }
.tone-slate { background: #eaf0f4; color: var(--slate); }
.tone-rose { background: rgba(232, 108, 105, 0.22); color: #ffb3b0; }
.tone-violet { background: rgba(140, 120, 220, 0.22); color: #cfc4ff; }

/* ---------- Reveal (postupné objevení) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay='1'] { transition-delay: 0.1s; }
html.js .reveal[data-delay='2'] { transition-delay: 0.2s; }
html.js .reveal[data-delay='3'] { transition-delay: 0.3s; }
html.js .reveal[data-delay='4'] { transition-delay: 0.42s; }
html.js .reveal[data-delay='5'] { transition-delay: 0.54s; }
html.js .hero-card.reveal { transform: translateY(30px) scale(0.92); }
html.js .hero-card.reveal.in { transform: none; }

/* ---------- Infolišta ---------- */
.infobar-wrap { position: relative; z-index: 3; margin-top: -78px; }
.infobar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 26px 34px;
  box-shadow: 0 24px 50px rgba(43, 57, 72, 0.28);
}
.infobar-item { display: flex; align-items: center; gap: 14px; color: #fff; border-radius: 12px; padding: 6px; transition: background 0.2s; }
a.infobar-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.infobar-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; }
.infobar-icon .ic { width: 20px; height: 20px; }
.infobar-icon.tone-green { background: rgba(113, 186, 42, 0.25); color: #b7e58a; }
.infobar-icon.tone-slate { background: rgba(255, 255, 255, 0.12); color: #dbe4ec; }
.infobar-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.infobar-text small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.infobar-text strong { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Upozornění ---------- */
.notice-wrap { margin-top: 32px; }
.notice {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; border-radius: 16px;
  border: 1px solid; box-shadow: var(--shadow-sm);
}
.notice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; }
.notice-icon .ic { width: 22px; height: 22px; }
.notice-body { flex: 1; }
.notice-body strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 2px; }
.notice-body p { margin: 0; }
.notice-link { align-self: center; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.notice-warning { background: var(--amber-soft); border-color: #f5d9a3; }
.notice-warning .notice-icon { background: #fde7bd; color: var(--amber); }
.notice-danger { background: var(--rose-soft); border-color: #f2bcb9; }
.notice-danger .notice-icon { background: #f7d0ce; color: var(--red); }
.notice-danger .notice-link { color: var(--red); }
.notice-info { background: var(--blue-soft); border-color: #bfdfec; }
.notice-info .notice-icon { background: #cfe8f3; color: var(--blue); }
.notice-success { background: var(--green-soft); border-color: #cde8b3; }
.notice-success .notice-icon { background: #dcf0c6; color: var(--green-dark); }
.notice-success .notice-link { color: var(--green-dark); }

/* ---------- Sekce ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { font-size: 1.08rem; color: var(--text); }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, 0.85); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #9bd7f0; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.75); }
.section-dark::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 42%;
  background: rgba(255, 255, 255, 0.035); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
.card-icon .ic { width: 24px; height: 24px; }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: auto; }
.card-more .ic { transition: transform 0.2s; }
.card-more:hover .ic { transform: translateX(4px); }

/* ---------- Co děláme ---------- */
.services { background: #fff; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 30px 28px; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card h3 a { color: var(--ink); }
.service-card h3 a:hover { color: var(--blue); }
.service-card p { color: var(--text); font-size: 0.98rem; }
.dot-list { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; font-size: 0.96rem; color: var(--slate); }
.dot-list li a { color: var(--slate); }
.dot-list li a:hover { color: var(--blue); }
.dot-list li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.dot-green li::before { background: var(--green); }
.dot-slate li::before { background: var(--slate); }

/* ---------- Otevírací doba ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; position: relative; }
.hours-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.hours-copy p { font-size: 1.05rem; margin-bottom: 28px; }
.hours-card { background: #fff; color: var(--text); border-radius: 20px; padding: 26px 28px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
.hours-card h3 { color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.hours-card h3 .ic { color: var(--blue); }
.hours-card-light { box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 28px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours-table th, .hours-table td { padding: 11px 6px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; padding-top: 0; }
.hours-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.hours-table tbody tr:last-child th, .hours-table tbody tr:last-child td { border-bottom: 0; }
.hours-table .closed { color: var(--red); font-weight: 500; }
.hours-table .muted { color: #b3bcc4; }
.hours-table--compact { font-size: 0.92rem; }
.hours-table--compact th, .hours-table--compact td { padding: 7px 4px; }
.hours-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.hours-embed { margin: 1.5em 0; }

/* ---------- Aktuality ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
.news-card { padding: 26px 28px; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.85rem; color: var(--muted); }
.news-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { font-size: 0.96rem; color: var(--text); margin-bottom: 16px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tag-provoz { background: var(--green-soft); color: var(--green-dark); }
.tag-upozorneni { background: var(--rose-soft); color: var(--red); }
.tag-projekt { background: var(--blue-soft); color: var(--blue); }
.tag-akce { background: var(--violet-soft); color: #6a53c2; }
.tag-nabidka { background: var(--amber-soft); color: var(--amber); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.contact-card { padding: 32px 34px; }
.contact-card h3, .contact-card h2 { font-size: 1.35rem; margin-bottom: 20px; }
.contact-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-rows li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-rows li:last-child { border-bottom: 0; }
.contact-rows small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-rows strong, .contact-rows a { font-weight: 600; color: var(--ink); }
.contact-rows a:hover { color: var(--blue); }
.contact-rows-2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.row-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); flex: 0 0 auto; }
.row-icon .ic { width: 18px; height: 18px; }
.emergency-card {
  padding: 32px 34px; border: 0; color: #fff;
  background: linear-gradient(135deg, #cf3733 0%, #b12a27 100%);
  box-shadow: 0 24px 50px rgba(177, 42, 39, 0.35);
  display: flex; flex-direction: column; align-items: flex-start;
}
.emergency-card h3 { color: #fff; font-size: 1.6rem; margin: 18px 0 10px; }
.emergency-card p { color: rgba(255, 255, 255, 0.9); }
.emergency-card small { color: rgba(255, 255, 255, 0.75); }
.emergency-phone { display: inline-block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -0.01em; margin: 10px 0 6px; }
.emergency-phone:hover { color: #ffe1df; }
.pill-dark { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

/* ---------- Formulář ---------- */
.form-card { padding: 32px 34px; }
.form-card h3 { margin-bottom: 4px; }
.contact-form { display: grid; gap: 16px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fbfcfd; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(3, 123, 174, 0.12); }
.contact-form .req { color: var(--red); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok, .form-err { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 12px; font-weight: 500; margin-top: 12px; }
.form-ok { background: var(--green-soft); color: var(--green-dark); }
.form-err { background: var(--rose-soft); color: var(--red); }

/* ---------- Vlastní dlaždice ---------- */
.tiles { display: grid; gap: 24px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile { display: flex; flex-direction: column; overflow: hidden; }
.tile-body { padding: 30px 28px; display: flex; flex-direction: column; flex: 1; }
.tile-image img { width: 100%; height: 220px; object-fit: cover; }
.tiles-1 .tile.has-image { flex-direction: row; }
.tiles-1 .tile.has-image .tile-image { flex: 0 0 42%; }
.tiles-1 .tile.has-image .tile-image img { height: 100%; min-height: 300px; }
.tiles-1 .tile-body { padding: 40px; }
.style-plain .tile { box-shadow: none; }
.section-dark .tile { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.section-dark .tile h3 { color: #fff; }
.section-dark .tile .rich { color: rgba(255, 255, 255, 0.85); }
.section-dark .tile .card-more { color: #9bd7f0; }

/* ---------- Podstránky ---------- */
.page-head { padding: 56px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.page-head.has-cover .page-head-grid { grid-template-columns: 1.3fr 1fr; }
.page-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.page-cover img { width: 100%; height: 100%; object-fit: cover; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { font-size: 1.12rem; max-width: 42rem; margin: 0; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.content-card { padding: 40px 44px; overflow-x: auto; }
.content-card:empty { display: none; }
.sidebar { display: grid; gap: 20px; position: sticky; top: 116px; }
.side-card { padding: 24px 26px; }
.side-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.side-card h3 .ic { color: var(--blue); }
.side-list, .side-nav { list-style: none; margin: 0 0 14px; padding: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--ink); font-weight: 500; }
.side-list a:hover { color: var(--blue); }
.side-list small { color: var(--muted); }
.side-nav li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--slate); font-weight: 500; }
.side-nav li a:hover { background: var(--bg); color: var(--blue); }
.side-contact { display: grid; gap: 10px; }
.side-contact p { margin: 0; }
.side-phone, .side-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.side-phone { font-size: 1.25rem; }
.side-contact .btn { justify-self: start; margin-top: 6px; }
.company-card { margin-bottom: 28px; }

.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sub-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.sub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0ea; color: var(--ink); }
.sub-thumb { flex: 0 0 84px; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; }
.sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.sub-body strong { font-size: 1.05rem; }
.sub-body small { color: var(--muted); font-size: 0.9rem; }
.sub-arrow { color: var(--blue); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); flex: 0 0 auto; transition: transform 0.2s; }
.sub-card:hover .sub-arrow { transform: translateX(4px); }

/* ---------- Obsah z editoru ---------- */
.rich { color: var(--text); font-size: 1.04rem; }
.rich > :first-child { margin-top: 0; }
.rich h2 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
.rich h3 { font-size: 1.3rem; margin: 1.5em 0 0.5em; }
.rich h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; color: var(--slate); }
.rich p { margin: 0 0 1.1em; }
.rich ul, .rich ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.rich li { margin-bottom: 0.4em; }
.rich li::marker { color: var(--blue); }
.rich a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(3, 123, 174, 0.35); text-underline-offset: 3px; }
.rich a[href$='.pdf']::before, .rich a[href*='/uploads/']:not([href$='.jpg']):not([href$='.png'])::before { content: '⤓ '; color: var(--green-dark); }
.rich img { border-radius: 14px; margin: 0.5em 0 1.2em; }
.rich figure { margin: 0 0 1.4em; }
.rich figcaption { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: -0.6em; }
.rich table { width: 100%; border-collapse: collapse; margin: 0.5em 0 1.6em; font-size: 0.96rem; }
.rich th, .rich td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich thead th, .rich tr:first-child th { background: var(--bg); color: var(--ink); font-weight: 600; }
.rich tbody tr:nth-child(even) td { background: #fafcfd; }
.rich caption { caption-side: top; text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 8px; }
.rich blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 12px 12px 0; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.rich .callout { padding: 16px 20px; border-radius: 12px; margin: 1.2em 0; background: var(--blue-soft); }
.rich .callout-warning { background: var(--amber-soft); }
.rich .callout-danger { background: var(--rose-soft); }

.notfound { padding: 40px 0; }

/* ---------- Patička ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; max-width: 30rem; }
.site-footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Responzivita ---------- */
@media (max-width: 1280px) {
  .nav-cta { display: none; }
  .site-nav > ul > li > a { padding: 10px 11px; font-size: 0.98rem; }
}
@media (max-width: 1100px) {
  .hero-grid { gap: 40px; }
  .hero-card-1 { left: -2%; }
  .hero-card-2 { right: -2%; }
  .hours-grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; max-width: 640px; }
  .hero-photo { inset: 0 4%; }
  .cards-3 { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .hours-card { max-width: 560px; }
  .infobar { grid-template-columns: repeat(2, 1fr); padding: 22px 26px; }
  .news-grid, .news-grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .page-head.has-cover .page-head-grid { grid-template-columns: 1fr; }
  .page-cover { max-width: 520px; }
  .tiles-3 { grid-template-columns: 1fr 1fr; }
  .contact-rows-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .header-inner { min-height: 80px; }
  .brand img { height: 56px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; max-height: calc(100vh - 80px); overflow: auto; }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav .has-sub { flex-wrap: wrap; }
  .site-nav .has-sub > a { flex: 1; }
  .site-nav > ul > li > a { display: flex; padding: 12px 14px; font-size: 1.08rem; }
  .sub-toggle { width: 48px; height: 48px; }
  .site-nav .sub { position: static; display: none; box-shadow: none; border: 0; background: var(--bg); width: 100%; margin: 4px 0 8px; }
  .site-nav .has-sub:hover .sub { display: none; }
  .site-nav .has-sub.is-open .sub { display: flex; }
  .nav-cta { display: block; margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(var(--container), 100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 110px; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-visual { min-height: 360px; }
  .hero-card { padding: 10px 14px 10px 10px; gap: 10px; }
  .hero-card-icon { width: 38px; height: 38px; }
  .hero-card-text strong { font-size: 0.9rem; }
  .hero-card-text small { font-size: 0.76rem; }
  .hero-card-1 { top: 4%; left: 0; }
  .hero-card-2 { top: 42%; right: 0; }
  .hero-card-3 { bottom: 4%; left: 2%; }
  .infobar-wrap { margin-top: -70px; }
  .infobar { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .news-grid, .news-grid-3, .tiles-2, .tiles-3, .sub-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .content-card, .contact-card, .emergency-card, .form-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tiles-1 .tile.has-image { flex-direction: column; }
  .notice { flex-wrap: wrap; }
  .notice-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
