/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #50C878;
  --dark:    #1a1a2e;
  --gray:    #f8f9fa;
  --text:    #333;
  --muted:   #666;
  --radius:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
header {
  background: #fff;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.header-brand h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.header-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.header-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
  transition: color .2s;
}

.header-contact a:hover { color: var(--green); }

.header-contact svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  flex-shrink: 0;
}

/* ===== TRVALÝ INFO BAR ===== */
#info-bar {
  background: var(--green);
  color: rgba(0,0,0,.8);
}

#info-bar .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px;
}

#info-bar p {
  font-size: 0.88rem;
  line-height: 1.6;
}

#info-bar a {
  color: var(--dark);
  font-weight: 700;
  text-decoration: underline;
}

#info-bar strong { color: #000; }

#info-bar .sms-note {
  display: inline-block;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.6);
  color: #000;
  border-radius: 4px;
  padding: 1px 8px;
  margin: 0 4px;
  font-size: 0.85rem;
}

/* ===== AKTUALITA BANNER ===== */
#aktualita-section {
  background: #edfbf2;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid #c3edd4;
  display: none;
}

#aktualita-section.visible { display: block; }

#aktualita-section .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
}

#aktualita-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#aktualita-section .perex {
  font-size: 0.95rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 16px;
}

.zastup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: rgba(255,255,255,.7);
  border-radius: var(--radius);
  overflow: hidden;
}

.zastup-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(80,200,120,.15);
  color: #166534;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.zastup-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(80,200,120,.2);
  color: #1a3a27;
}

.zastup-table tr:last-child td { border-bottom: none; }

.zastup-table td:nth-child(2) {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.zastup-table td.poznamka {
  font-size: 0.82rem;
  color: #15803d;
  font-style: italic;
}

#aktualita-section .datum {
  font-size: 0.8rem;
  color: #4ade80;
  margin-top: 12px;
}

/* ===== SEKCE ===== */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

section + section { padding-top: 0; }

.section-alt {
  background: var(--gray);
  max-width: 100%;
  padding: 0;
}

.section-alt > .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

h2.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

/* ===== ORDINAČNÍ HODINY ===== */
.hodiny-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hodiny-table tr { border-bottom: 1px solid #e5e7eb; }
.hodiny-table tr:last-child { border-bottom: none; }

.hodiny-table td {
  padding: 12px 8px;
}

.hodiny-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 140px;
}

.hodiny-table td:last-child { color: var(--text); }

/* ===== SLUŽBY ===== */
.sluzby-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.sluzby-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sluzby-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== KONTAKT ===== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.kontakt-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.kontakt-info svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.kontakt-info a:hover { color: var(--green); }

.mapa-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.mapa-wrapper iframe {
  width: 100%;
  height: 280px;
  display: block;
  border: none;
}

/* ===== POJIŠŤOVNY ===== */
.pojistovny-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pojistovna-tag {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
}

footer strong { color: #fff; }

footer .footer-staff {
  margin-top: 12px;
  font-size: 0.72rem;
  opacity: .35;
}

footer .footer-staff a {
  color: inherit;
  text-decoration: none;
}

footer .footer-staff a:hover { opacity: 1; text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .kontakt-grid { grid-template-columns: 1fr; }
  h2.section-title { font-size: 1.3rem; }
}
