/* =========================
   ZS | Energie – styles v2.0
   Tmavý, moderní, "app" vzhled
   ========================= */

:root {
  --bg: #020617;
  --bg-alt: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
  --bg-section-alt: radial-gradient(circle at top left, #020617 0, #020617 30%, #020617 45%, #030712 100%);
  --card-bg: #020617;

  --accent: #338a3a;
  --accent-soft: rgba(51, 138, 58, 0.18);
  --accent-border: rgba(51, 138, 58, 0.5);
  --accent-glow: rgba(51, 138, 58, 0.35);

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;

  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(55, 65, 81, 0.95);

  --radius-lg: 1.2rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.9);
}

/* =========================
   RESET + ZÁKLAD
   ========================= */

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

html,
body { height: 100%; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-alt);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* =========================
   LAYOUT
   ========================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }

.section-alt {
  padding: 4.5rem 0;
  background: var(--bg-section-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.1rem);
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 4.1rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 25% 25%, #bbf7d0 0, #4ade80 35%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #022c22;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px var(--accent-glow);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Navigace */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.nav a { text-decoration: none; }

.nav-link {
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

.nav-cta {
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--accent), #4ade80);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.7);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.85);
}

/* =========================
   HERO
   ========================= */

.hero {
  padding: 0rem 0 4.0rem; /* bylo 5rem 0 4rem */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(52, 211, 153, 0.17), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.75rem;
  align-items: center;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr);
    align-items: end;
  }
}

.hero-text { max-width: 640px; }

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.9rem);
  margin: 0.9rem 0 0.7rem 0;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Badge (obecný) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #bbf7d0;
  border: 1px solid var(--accent-border);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

/* Hero card – pravý panel */
.hero-card {
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-radius: 1.6rem;
  padding: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.25), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.hero-card ul {
  list-style: none;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-card li {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.45rem;
}

.card-link {
  font-size: 0.9rem;
  color: #bbf7d0;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.card-link:hover { text-decoration: underline; }

/* =========================
   BUTTONS
   ========================= */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-space-top { margin-top: 1.2rem; }

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent), #4ade80);
  color: #022c22;
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.7);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.85);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.9);
  transform: translateY(-1px);
}

/* =========================
   GRID
   ========================= */

.grid { display: grid; gap: 1.5rem; }

.grid-2,
.grid-3,
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================
   CARDS
   ========================= */

.card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), #020617);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.card h3 { margin-bottom: 0.55rem; font-size: 1.05rem; }

.card p { font-size: 0.9rem; color: var(--text-muted); }

.card.card-supplier {
  display: block;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.card-supplier:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.8);
  box-shadow: 0 0 35px rgba(74, 222, 128, 0.35);
}

.card-pill {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Služby – klikací karty */
.service-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  border-top: 3px solid rgba(148, 163, 184, 0.4);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  border-color: var(--accent-border);
  background: radial-gradient(circle at top, rgba(51, 138, 58, 0.23), #020617);
}

/* Pill (sjednoceno včetně CLS fixu) */
.pill {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  color: #c4f1ff;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);

  /* CLS fix */
  min-height: 26px;
  line-height: 1.2;
  align-items: center;
}

.service-card .pill { display: inline-flex; }

/* =========================
   DODAVATELÉ – seznam
   ========================= */

.logos-grid { margin-top: 1.5rem; }

.logo-card { text-align: left; }

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, rgba(15, 118, 110, 0.5), rgba(8, 47, 73, 0.9));
  font-size: 0.8rem;
  letter-spacing: 0.09em;
}

/* =========================
   OBSAHOVÉ BLOKY
   ========================= */

.text-content {
  max-width: 720px;
  font-size: 0.95rem;
  color: #d1d5db;
}

/* H1/H2 spacing v content */
.text-content h1,
.text-content h2 { margin-bottom: 1rem; }

.text-content h2 {
  font-size: 1.3rem;
  margin-top: 1.9rem;
}

.text-content p { margin-bottom: 0.8rem; }

.text-content ul,
.text-content ol { margin: 0.5rem 0 0.8rem 1.2rem; }

.text-content li { margin-bottom: 0.45rem; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.7rem;
}

.breadcrumbs a { color: var(--text-muted); text-decoration: none; }

.breadcrumbs a:hover { text-decoration: underline; }

/* =========================
   FORMULÁŘE
   ========================= */

.contact-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.85rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(148, 163, 184, 0.7); }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(51, 138, 58, 0.7);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  padding: 1.1rem 0;
  background: #020617;
  margin-top: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* =========================
   DODAVATELÉ – detail (logo + 2 sloupce)
   ========================= */

.supplier-detail {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.supplier-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}

.supplier-head h1 { margin: 0; }

.supplier-intro { max-width: 840px; }

/* GRID detail */
.supplier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px; /* finální */
  align-items: start;
}

.supplier-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supplier-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.supplier-grid h2 { margin: 0; line-height: 1.25; }

.supplier-grid ul { margin: 0; padding-left: 1.1rem; }

.supplier-grid li { margin-bottom: 10px; }

.supplier-list li { margin-bottom: 8px; }

/* tlačítko zpět */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  text-decoration: none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn-back:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}

.btn-back:active { transform: translateY(0); }

.supplier-actions { margin-top: 10px; }

/* === SUPPLIER LOGO PILL (sjednocení velikosti log) === */
.supplier-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  width: 220px;
  height: 120px;
}

.supplier-logo-pill img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 160px;
  height: 70px;
  object-fit: contain;
  border: 0;
  outline: none;
  box-shadow: none;
  filter: none;
}

/* fallback, kdyby byl uvnitř span */
.supplier-logo-pill span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 70px;
}

/* =========================
   KONTAKT – levá karta
   ========================= */

#kontakt .grid.grid-2 > .card:not(.contact-form) h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: 0.2px;
}

#kontakt .grid.grid-2 > .card:not(.contact-form) p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #e5e7eb;
  margin: 0 0 0.55rem 0;
}

#kontakt .grid.grid-2 > .card:not(.contact-form) p:first-of-type { margin-bottom: 0.25rem; }
#kontakt .grid.grid-2 > .card:not(.contact-form) p:nth-of-type(2) { margin-bottom: 0.8rem; }

#kontakt .grid.grid-2 > .card:not(.contact-form) p:nth-last-of-type(2),
#kontakt .grid.grid-2 > .card:not(.contact-form) p:last-of-type {
  margin-bottom: 0.35rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

#kontakt .grid.grid-2 > .card:not(.contact-form) a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

#kontakt .grid.grid-2 > .card:not(.contact-form) a:hover { text-decoration: underline; }

/* =========================
   ADR MODAL (popup)
   ========================= */

.nav .nav-link,
.nav button.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  line-height: 1;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav .nav-link:hover,
.nav button.nav-link:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.nav .nav-link.is-active {
  background: rgba(255,255,255,0.10);
  color: var(--accent);
}

.nav button.nav-link {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
}

.modal-overlay.is-open { display: flex; }

.modal {
  width: min(720px, 100%);
  background: rgba(10, 16, 28, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.modal-header h3 { margin: 0; font-size: 1.05rem; color: #fff; }

.modal-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.modal-close:hover { opacity: 1; }

/* Modal – typografie a rozestupy */
.modal-body {
  padding: 1.25rem 1.35rem 1.4rem;
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.75;
}

.modal-body p {
  margin: 0 0 1rem 0;
  max-width: 62ch;
}

.modal-body p:last-child { margin-bottom: 0; }

.modal-body strong {
  color: #ffffff;
  font-weight: 650;
}

.modal-body .adr-box {
  margin: 1.2rem 0 1.1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(51,138,58,0.4);
  background: rgba(51,138,58,0.08);
  max-width: 62ch;
}

.modal-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.modal-body a:hover { text-decoration: underline; }

.adr-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* =========================
   COOKIE BAR
   ========================= */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none;
  padding: 1rem;
  background: rgba(10,16,28,0.95);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.cookie-bar.is-visible { display: block; }

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-link {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

/* =========================
   Kalkulace – badge "Ušetříte / Proděláte"
   ========================= */

.calc-badge-wrap {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  user-select: none;
}

.calc-badge--save {
  background: linear-gradient(to right, var(--accent), #4ade80);
  color: #022c22;
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.7);
}

.calc-badge--lose {
  background: linear-gradient(to right, #ef4444, #fb7185);
  color: #1f2937;
  box-shadow: 0 14px 35px rgba(239, 68, 68, 0.55);
}

/* =========================
   HERO – osobní fotka + CLS fix
   ========================= */

.hero-photo {
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  display: block;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.65));
  transform-origin: bottom center;
}

/* Animace příjezdu zprava (nevadí, i když se nemusí používat) */
@keyframes heroPhotoIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =========================
   FINÁLNÍ OVERRIDE (typografie + a11y + spacing)
   ========================= */

/* VŠECHNA H1 */
h1,
.hero-text h1,
.text-content h1,
.supplier-head h1 {
  text-align: center !important;
  font-size: clamp(2.5rem, 4.1vw, 3.5rem) !important;
  line-height: 1.12 !important;
}

/* VŠECHNA H2 */
h2,
.section-header h2,
.text-content h2,
.hero-card h2,
.supplier-grid h2,
.supplier-detail h2 {
  font-size: clamp(2.05rem, 2.9vw, 2.6rem) !important;
  line-height: 1.22 !important;
  text-align: center !important;
}

/* aby zůstal střed i u linky pod H2 v sekcích */
.section-header h2::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* focus visible – jednotně */
:focus-visible {
  outline: 2px solid #7CFF9B;
  outline-offset: 3px;
}

/* A11Y: kontrast textů (kalkulace + footer + cookies) */
h2 { color: #f1f5f9; }
p  { color: rgba(255,255,255,.88); }

.site-footer,
.site-footer span,
.site-footer p {
  color: rgba(255,255,255,.85);
}

.footer-link,
.cookie-link {
  color: #b7ffbf;
  text-decoration: underline;
}

.footer-link:hover,
.cookie-link:hover { color: #d8ffdd; }

/* Odsazení pod horním menu (hero spacing) */
.hero,
.hero-section,
section.hero { padding-top: 32px; }

@media (min-width: 900px) {
  .hero,
  .hero-section,
  section.hero { padding-top: 48px; }
}

/* === Detail dodavatele: menší H1 než globální === */
.supplier-detail .supplier-head h1 {
  font-size: clamp(1.9rem, 2.2vw, 2.6rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 0.35rem 0 !important;
  text-align: left !important;
}

/* === Detail dodavatele: menší H2 === */
.supplier-detail h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem) !important;
  line-height: 1.25 !important;
  margin-top: 1.2rem !important;
  margin-bottom: 0.4rem !important;
  text-align: left !important;
}

/* Jemnější odstavec pod H1 */
.supplier-detail .supplier-head p {
  margin-top: 0.35rem !important;
}

.kalkulace-section h2 {
  color: #e9f5ee;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.kalkulace-section p {
  color: #cfe6d8;
}

/* =========================
   BLOG – detail článku (čistě, bez duplicit)
   ========================= */

.blog-article { padding: 1.8rem; }

.blog-article-header {
  margin-bottom: 1.2rem;
  text-align: center;
}

.blog-article-header h1{
  margin-left: auto;
  margin-right: auto;
}

.blog-perex{
  margin-top: 0.65rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: rgba(255,255,255,.88);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 70ch;
}

.blog-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-meta span{
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

.blog-tags{
  margin-top: 0.9rem;
  display:flex;
  flex-wrap:wrap;
  justify-content: center;
  gap: 0.55rem;
}

/* Tělo článku – užší blok uprostřed, text vlevo */
.blog-content{
  margin-top: 1.4rem;
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Nadpisy v článku na střed, text pod nimi vlevo */
.blog-content h2{
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content li{
  text-align: left;
}

.blog-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.blog-sep{
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin: 1.6rem 0 1.1rem;
}

.blog-note{
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================
   BLOG – listing (blog.html) – bez duplicit
   ========================= */

/* Blog detail – H1 menší než homepage hero */
.blog-article-header h1{
  font-size: clamp(1.9rem, 2.6vw, 2.6rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.8rem;
}


.blog-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin: 1rem 0 1.25rem;
}

.blog-card{
  display:block;
  transition: transform .15s ease, box-shadow .15s ease;
}

.blog-card:hover{
  transform: translateY(-2px);
}

.blog-card-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:.75rem;
}

.blog-card-date{
  color: var(--text-muted);
  font-size: .85rem;
}

/* Nadpis karty – přebití globálního H2 */
.blog-card-title{
  margin-top: .9rem;
  text-align: left !important;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem) !important;
  line-height: 1.35 !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc{
  margin-top: .65rem;
  color: rgba(255,255,255,.86);
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-bottom{
  margin-top: 1rem;
  color: #bbf7d0;
  font-weight: 600;
}

.blog-card-read{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}

/* =========================
   BLOG – CTA na konci článku
   ========================= */

.blog-cta{
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.blog-cta-text{
  font-size: 1.05rem;
  color: var(--text-muted);
}


/* =========================
   MOBILE MENU
   ========================= */

/* MUSÍ BÝT MIMO @media */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #020617;
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.2rem;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a,
.mobile-menu button {
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  background: none;
  border: 0;
  text-align: left;
  padding: 0.4rem 0;
}

.mobile-cta {
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #4ade80);
  color: #022c22;
  font-weight: 600;
  text-align: center;
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 34px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* =========================
   MOBIL
   ========================= */

@media (max-width: 640px) {

  .nav { display: none; }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .hero { padding: 64px 16px 44px; }

  .container { padding-left: 16px; padding-right: 16px; }

  .supplier-logo-pill { width: 220px; height: 110px; }

  .supplier-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
