@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-cyan: #00C0F7;
  --primary-blue: #2F80ED;
  --primary-purple: #7B61FF;
  --gradient-brand: linear-gradient(135deg, #00C0F7 0%, #2F80ED 50%, #7B61FF 100%);
  
  /* Světlý režim */
  --bg-page: #EAEFF5;
  --bg-surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-color: #CBD5E1;
  --border-hover: #94A3B8;
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #0F172A;
  --footer-text: #94A3B8;
}

/* Tmavý režim (manuální i systémový) */
body.dark-theme {
  --bg-page: #0B0F17;
  --bg-surface: #141C2E;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --border-hover: #334155;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 20px 35px -5px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(11, 15, 23, 0.95);
  --footer-bg: #070A0F;
  --footer-text: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigace */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s, border-color 0.3s;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo img {
  height: 36px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* Tlačítko přepínače témat */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.theme-toggle-btn:hover {
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

/* Mobilní Hamburger tlačítko */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-main);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero sekce & Hlavičky stránek */
.hero-section, .page-header {
  padding: 80px 0 45px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(47, 128, 237, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(47, 128, 237, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 2.85rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* 2 a 3 sloupce na PC */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 40px 0 70px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}

/* Karty */
.card {
  background: var(--bg-surface);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 16px 16px 0 0;
  opacity: 0.9;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Tlačítka */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF !important;
  border: none;
  align-self: flex-start;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: scale(0.99);
}

/* Obsahové bloky */
.content-block {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  position: relative;
}

.content-block h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  font-weight: 700;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.quote-box {
  background: rgba(47, 128, 237, 0.06);
  border-left: 4px solid var(--primary-blue);
  padding: 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-main);
}

/* Kontakt a Mapa */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
}

.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
}

.billing-box {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  position: relative;
}

.consultation-badge {
  display: inline-block;
  background: rgba(47, 128, 237, 0.08);
  color: var(--primary-blue);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 18px 0;
  border-left: 3px solid var(--primary-blue);
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-frame {
  width: 100%;
  height: 230px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.map-btn {
  font-size: 0.9rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.map-btn:hover {
  text-decoration: underline;
}

/* Patička */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  margin-top: 90px;
  font-size: 0.9rem;
}

.footer-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.site-footer p {
  margin-bottom: 10px;
}

/* Mobilní pravidla (platí výhradně pod 860px) */
@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .grid-2, .grid-3, .contact-grid, .billing-box {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.15rem;
  }

  .content-block, .card, .billing-box {
    padding: 28px;
  }
}

/* CSR Nadační banner */
.csr-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 18px 28px;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}

.csr-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.csr-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0; /* sjednoceno s vnitřkem karty */
}

.csr-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.csr-logo:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.csr-logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.csr-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.csr-content p {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

.csr-content a.csr-web-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
  transition: opacity 0.2s;
}

.csr-content a.csr-web-link:hover {
  opacity: 0.8;
}

@media (max-width: 860px) {
  .csr-banner {
    margin-top: 16px;
    padding: 20px;
  }
  .csr-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .csr-logo img {
    height: 42px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 760px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
  z-index: 9999;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  border-color: var(--text-muted);
}

body.dark-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}