/* ═══════════════════════════════════════════════
   Elektro Tulis s.r.o. — Sdílené styly
   style.css
═══════════════════════════════════════════════ */

/* Fonty načítány přes <link> v HTML s display=swap pro rychlejší render */

/* ── RESET & PROMĚNNÉ ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2d5a;
  --navy3:  #0e1e3d;
  --blue:   #2e7fd4;
  --blue2:  #3a9be0;
  --gold:   #f0b429;
  --gold2:  #f5c842;
  --gold3:  #c98a00;
  --gray2:  #8a9ab0;
  --gray3:  #c0cad6;
  --bg:     #0c1524;
  --bg2:    #111d2e;
  --bg3:    #0a1020;
  --bg4:    #0d1828;
  --white:  #e8eef5;
  --border: rgba(46, 127, 212, 0.15);
  --borderg: rgba(240, 180, 41, 0.18);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── TOP BAR ── */
.topbar {
  height: 28px;
  background: var(--navy3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.tb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--gray3);
  white-space: nowrap;
}
.tb i, .tb .et-ico { font-size: 12px; color: var(--gold); }
.tb-right { margin-left: auto; display: flex; gap: 1.5rem; }

/* ── NAVIGACE ── */
nav {
  height: 70px;
  background: rgba(10, 16, 32, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nlogo {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nlogo-img {
  height: 54px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(240, 180, 41, 0.35));
  transition: filter 0.3s;
}
.nlogo:hover .nlogo-img {
  filter: drop-shadow(0 0 12px rgba(240, 180, 41, 0.55));
}

.nav-list {
  display: flex;
  height: 100%;
  list-style: none;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.78rem;
  height: 70px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--gray3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-list li a i, .nav-list li a .et-ico { font-size: 14px; }
.nav-list li a:hover { color: var(--white); }
.nav-list li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy3);
  border: none;
  padding: 0.46rem 1rem;
  border-radius: 6px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-cta:hover { background: var(--gold2); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  /* zvětšený touch target – min 44×44 px */
  padding: 11px 8px;
  margin-left: 0.75rem;
  flex-shrink: 0;
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobilní menu — top = výška nav (70px), topbar je na mobilu skrytý */
.mob-menu {
  display: none;
  flex-direction: column;
  background: rgba(8, 14, 28, 0.99);
  border-bottom: 0.5px solid var(--border);
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  z-index: 199;
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  /* min. 48px touch target */
  padding: 0.9rem 1.5rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--gray3);
  text-decoration: none;
  border-bottom: 0.5px solid var(--border);
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
}
.mob-menu a:hover,
.mob-menu a.active {
  color: var(--gold);
  background: rgba(240, 180, 41, 0.05);
}

/* ── HLAVNÍ OBSAH ── */
.main {
  flex: 1;
  padding: 2.5rem 2.5rem 4rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.main-wide {
  flex: 1;
  padding: 0;
}

/* ── STATUS BAR ── */
.statusbar {
  height: 26px;
  background: var(--navy3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 2rem;
  flex-shrink: 0;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray3);
}
.sb-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.sb-dot.green { background: #4caf50; }

/* ── KONTAKTNÍ ODKAZY (tel: / mailto:) ──
   Dědí barvu i velikost rodiče (.tb, .sb-item, .cdet),
   bez podtržení; zlatý hover sjednocený s patičkou. */
.ct-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.ct-link:hover,
.ct-link:focus-visible { color: var(--gold); }

/* ── POHOTOVOST 24/7 — topbar prvek ──
   Vizuálně oddělený od běžných .tb kontaktů. Pevná výška dědí
   z .topbar (28px) → nulový dopad na CLS. Pulzace přes opacity =
   compositor-only (bez layout/paint), šetří CPU mobilu. */
.tb-emergency {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 4px;
  background: rgba(214, 40, 40, 0.12);
  border: 0.5px solid rgba(214, 40, 40, 0.45);
  color: #ff6b6b;
}
.tb-emergency .ct-link { color: #ff8585; font-weight: 700; }
.tb-emergency .ct-link:hover,
.tb-emergency .ct-link:focus-visible { color: var(--gold); }

/* Pulzující štítek "POHOTOVOST" — jen opacity, GPU-friendly */
.badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: pulseEmergency 2s ease-in-out infinite;
  will-change: opacity;
}
.badge-emergency i,
.badge-emergency .ti {
  font-size: 12px;
  color: #ff4d4d;
  flex-shrink: 0;
}

/* ── POHOTOVOST 24/7 — karta na kontaktní stránce ── */
.emergency-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(214,40,40,0.14), rgba(214,40,40,0.05));
  border: 1px solid rgba(214, 40, 40, 0.5);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.emergency-card .ec-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(214, 40, 40, 0.18);
  border: 1px solid rgba(214, 40, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #ff6b6b;
}
.emergency-card .ec-body { flex: 1; min-width: 0; }
.emergency-card .ec-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 0.3rem;
}
.emergency-card .ec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.emergency-card .ec-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray3);
  line-height: 1.65;
}
.emergency-card .ec-call {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d62828;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s;
}
.emergency-card .ec-call:hover,
.emergency-card .ec-call:focus-visible { background: #e63946; }
.emergency-card .ec-call i { font-size: 1.15rem; }

/* ── POHOTOVOST — hero pruh (pouze mobil, na desktopu skrytý) ── */
.hero-emergency { display: none; }

/* ── POHOTOVOST — plovoucí tlačítko (pouze mobil) ── */
.fab-emergency { display: none; }

/* ── ANIMACE ── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes pulseEmergency { 0%,100%{opacity:1} 50%{opacity:0.45} }
/* gs: pohyb gridové mřížky — compositor-only transform místo background-position (= žádný layout/paint) */
@keyframes gs {
  to { transform: translate(64px, 64px); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sa {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── TYPOGRAFIE ── */
.stag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
h1, h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.divider {
  width: 36px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.6rem 0 1.4rem;
}
.sdesc {
  font-size: 0.87rem;
  color: var(--gray3);
  max-width: 580px;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.75rem;
}

/* ── TLAČÍTKA ── */
.btn-gold {
  background: var(--gold);
  color: var(--navy3);
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 7px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  min-height: 44px;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(232, 238, 245, 0.18);
  color: rgba(232, 238, 245, 0.65);
  padding: 0.75rem 1.6rem;
  border-radius: 7px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  min-height: 44px;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--white); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray3);
  cursor: pointer;
  margin-bottom: 1.4rem;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0.5rem 0;
  text-decoration: none;
  min-height: 44px;
}
.btn-back:hover { color: var(--gold); }

/* ── KARTY SLUŽEB ── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.sc {
  background: var(--bg2);
  padding: 1.4rem;
  transition: background 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.sc::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.sc:hover { background: #162030; }
.sc:hover::after { opacity: 1; }
.sc-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(240, 180, 41, 0.18);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 19px;
  transition: background 0.25s;
}
.sc:hover .sc-icon { background: rgba(240, 180, 41, 0.1); }
.sc h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.sc p { font-size: 0.75rem; color: var(--gray2); line-height: 1.6; font-weight: 300; }
.sc-norm {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue2);
  background: rgba(46, 127, 212, 0.1);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}
.sc-arr {
  position: absolute; top: 1.1rem; right: 1.1rem;
  color: rgba(232, 238, 245, 0.08);
  font-size: 13px;
  transition: all 0.2s;
}
.sc:hover .sc-arr { color: var(--gold); transform: translate(2px, -2px); }

/* ── Pohotovostní karta v mřížce služeb ── */
.sc-emergency { background: linear-gradient(160deg, rgba(214,40,40,0.1), var(--bg2) 60%); }
.sc-emergency::after { background: linear-gradient(90deg, transparent, #ff4d4d, transparent); opacity: 1; }
.sc-emergency:hover { background: linear-gradient(160deg, rgba(214,40,40,0.16), #162030 60%); }
.sc-emergency .sc-icon { border-color: rgba(214,40,40,0.4); color: #ff6b6b; }
.sc-emergency:hover .sc-icon { background: rgba(214,40,40,0.14); }
.sc-emergency:hover .sc-arr { color: #ff6b6b; }
.sc-norm-emergency { color: #ff8585; background: rgba(214,40,40,0.14); }

/* ── DETAIL SLUŽBY ── */
.srv-detail-hero {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: pageIn 0.35s ease both;
}
.srv-detail-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.srv-detail-hero .big-icon {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.srv-detail-hero h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.srv-detail-hero p { font-size: 0.9rem; color: var(--gray3); line-height: 1.85; max-width: 700px; font-weight: 300; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.detail-box {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}
.detail-box h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--gold);
  display: flex; align-items: center; gap: 7px;
}
.detail-box h4 i, .detail-box h4 .et-ico { font-size: 16px; }
.detail-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dl-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray3);
  font-weight: 300;
  line-height: 1.55;
}
.dl-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

.norm-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.norm-chip {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue2);
  background: rgba(46, 127, 212, 0.1);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
}

.brands-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.brand-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray3);
  letter-spacing: 0.03em;
  transition: all 0.2s;
  cursor: default;
}
.brand-chip:hover { border-color: var(--gold); color: var(--gold); }

/* ── Brand-chip jako externí odkaz na výrobce ── */
a.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
}
a.brand-chip i {
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
a.brand-chip:hover i { opacity: 0.85; }
a.brand-chip:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
  color: var(--gold);
}

/* ── PARTNEŘI ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.partner-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.partner-card:hover { border-color: var(--borderg); transform: translateY(-2px); }
.partner-logo {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid var(--borderg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
  font-size: 26px;
  color: var(--gold);
}
.partner-card h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.partner-card p { font-size: 0.76rem; color: var(--gray2); line-height: 1.6; font-weight: 300; }
.partner-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 180, 41, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ── CERTIFIKÁTY ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.cert-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--borderg); }
.cert-icon { font-size: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.cert-card h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--white); }
.cert-card p { font-size: 0.72rem; color: var(--gray2); font-weight: 300; line-height: 1.5; }

/* ── REFERENCE ── */
.ref-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.rf {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gray3);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.rf.active, .rf:hover {
  background: rgba(240, 180, 41, 0.1);
  border-color: var(--borderg);
  color: var(--gold);
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.rc {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.rc:hover { border-color: rgba(240, 180, 41, 0.28); transform: translateY(-2px); }
.rc.hidden { display: none; }
.rc-img {
  height: 130px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.rc-img-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.rc-img-bg::before {
  content: '';
  position: absolute;
  inset: -64px;
  background:
    linear-gradient(rgba(46,127,212,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(46,127,212,0.04) 1px, transparent 1px) 0 0 / 28px 28px;
  animation: gs 14s linear infinite;
  will-change: transform;
}
.rc-type {
  position: absolute; top: 0.55rem; left: 0.55rem;
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: rgba(240,180,41,0.1);
  padding: 0.18rem 0.5rem; border-radius: 4px;
}
.rc-lbl {
  position: relative; z-index: 1;
  font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gray2); border: 0.5px solid var(--border);
  padding: 0.22rem 0.6rem; border-radius: 20px;
}
.rc-body { padding: 1rem; }
.rc-body h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.88rem; font-weight: 700; margin-bottom: 0.28rem; color: var(--white);
}
.rc-body p { font-size: 0.74rem; color: var(--gray2); line-height: 1.55; font-weight: 300; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.rc-tag {
  font-size: 0.58rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--blue2); background: rgba(46,127,212,0.08);
  padding: 0.18rem 0.45rem; border-radius: 3px;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(240,180,41,0.3); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  gap: 1rem;
  min-height: 52px;
}
.faq-q i, .faq-q .et-ico { font-size: 16px; color: var(--gold); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q i, .faq-item.open .faq-q .et-ico { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.82rem;
  color: var(--gray3);
  line-height: 1.8;
  font-weight: 300;
}
.faq-item.open .faq-a { display: block; }

/* ── KONTAKTNÍ FORMULÁŘ ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}
.ci-desc { font-size: 0.86rem; color: var(--gray3); line-height: 1.85; font-weight: 300; margin-bottom: 1.4rem; }
.cdetails { display: flex; flex-direction: column; gap: 0.8rem; }
.cdet { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; }
.cdet-icon {
  width: 34px; height: 34px;
  border: 0.5px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; font-size: 15px;
}
.cdet strong {
  display: block; font-size: 0.62rem; font-weight: 600;
  color: var(--gray2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.1rem;
}
.cdet span { color: rgba(232,238,245,0.78); font-size: 0.84rem; }
.cf {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
}
.cf-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--white);
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.7rem; }
.ff { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.7rem; }
.ff label { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray2); font-weight: 600; }
.ff input, .ff textarea, .ff select {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(46,127,212,0.18);
  border-radius: 7px;
  color: var(--white);
  /* min 44px pro touch */
  padding: 0.75rem 0.82rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem; /* 16px — zabraňuje iOS zoom při focus */
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.ff input:focus, .ff textarea:focus, .ff select:focus { border-color: var(--gold); }
.ff input::placeholder, .ff textarea::placeholder { color: rgba(107,122,141,0.5); }
.ff textarea { resize: vertical; min-height: 78px; }
.ff select option { background: #111d2e; }
.fgdpr { display: flex; align-items: flex-start; gap: 8px; font-size: 0.73rem; color: var(--gray2); margin: 0.5rem 0; }
.fgdpr input { margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); width: 18px; height: 18px; }
.fsend {
  width: 100%; background: var(--gold); color: var(--navy3); border: none;
  padding: 0.9rem; border-radius: 7px;
  font-family: 'Exo 2', sans-serif; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px;
}
.fsend:hover { background: var(--gold2); }
.form-ok { display: none; text-align: center; padding: 2.2rem 1rem; }
.form-ok svg { width: 42px; height: 42px; margin: 0 auto 0.65rem; display: block; }
.form-ok p { color: var(--gold); font-family: 'Roboto Condensed',sans-serif; font-size:1rem; font-weight:700; }
.form-ok small { font-size:0.78rem; color:var(--gray2); font-weight:300; }

/* ── WIZARD ── */
.wizard-wrap { max-width: 620px; margin: 0 auto; }
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.ws { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray2); white-space: nowrap; }
.ws-num { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.ws.active .ws-num { background: var(--gold); border-color: var(--gold); color: var(--navy3); }
.ws.done .ws-num { background: rgba(240,180,41,0.2); border-color: var(--gold); color: var(--gold); }
.ws-line { flex: 1; height: 1px; background: var(--border); margin: 0 0.5rem; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wiz-q { font-family: 'Roboto Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.wiz-hint { font-size: 0.82rem; color: var(--gray3); margin-bottom: 1.5rem; font-weight: 300; }
.wiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.wopt { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 10px; padding: 1.1rem; cursor: pointer; transition: all 0.2s; text-align: center; }
.wopt:hover, .wopt.sel { background: rgba(240,180,41,0.06); border-color: var(--borderg); }
.wopt.sel { border-color: var(--gold); }
.wopt i, .wopt .et-ico { font-size: 24px; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.wopt span { font-size: 0.8rem; font-weight: 500; color: var(--white); }
.wopt small { display: block; font-size: 0.7rem; color: var(--gray2); margin-top: 0.2rem; font-weight: 300; }
.wiz-nav { display: flex; gap: 0.75rem; justify-content: flex-end; }
.wiz-result { background: var(--bg2); border: 0.5px solid var(--borderg); border-radius: 14px; padding: 1.75rem; }
.wiz-result h3 { font-family: 'Roboto Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.4rem; }
.wiz-result p { font-size: 0.86rem; color: var(--gray3); line-height: 1.8; margin-bottom: 1rem; font-weight: 300; }
.wiz-rec { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.wr-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--white); }
.wr-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
.about-visual {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 14px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.av-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.av-bg::before {
  content: '';
  position: absolute;
  inset: -64px;
  background:
    linear-gradient(rgba(46,127,212,0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(46,127,212,0.04) 1px, transparent 1px) 0 0 / 40px 40px;
  animation: gs 15s linear infinite;
  will-change: transform;
}
.av-center { position: relative; z-index: 1; text-align: center; }
.av-center svg { opacity: 0.13; width: 52px; height: 52px; margin-bottom: 0.65rem; }
.av-ph { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray2); border: 0.5px solid var(--border); padding: 0.28rem 0.7rem; border-radius: 20px; }
.about-txt p { font-size: 0.86rem; color: var(--gray3); line-height: 1.85; font-weight: 300; margin-bottom: 0.8rem; }
.about-txt strong { color: var(--white); font-weight: 500; }
.about-vals { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.2rem; }
.av-item { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: rgba(232,238,245,0.72); }
.av-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── SYSTÉMY / EXPLAIN ── */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ec {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 1.4rem;
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer; text-decoration: none; display: block;
}
.ec:hover { border-color: rgba(240,180,41,0.35); transform: translateY(-2px); }
.ec-abbr { font-family: 'Roboto Condensed', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--gold); margin-bottom: 0.35rem; }
.ec-full { font-size: 0.72rem; font-weight: 600; color: rgba(232,238,245,0.55); margin-bottom: 0.55rem; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.04em; }
.ec-desc { font-size: 0.78rem; color: var(--gray2); line-height: 1.65; font-weight: 300; }

/* ── SEKCE NADPIS (s tlačítkem) ── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — mobile-first opravy
═══════════════════════════════════════════════ */

/* ── tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .main { padding: 2rem 2rem 4rem; }
}

/* ── mobil (≤ 768px) ── */
@media (max-width: 768px) {
  /* topbar & navigace */
  .topbar { display: none; }
  .nav-list, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nlogo-img { height: 46px; max-width: 160px; }
  nav { padding: 0 0.75rem; height: 60px; }
  /* mob-menu: nav je 60px, topbar skrytý → top: 60px */
  .mob-menu { top: 60px; max-height: calc(100dvh - 60px); }

  /* layout */
  .main { padding: 1.25rem 1rem 3rem; }
  .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  /* pohotovostní karta — sloupcové uspořádání, tlačítko na plnou šířku */
  .emergency-card { flex-direction: column; align-items: stretch; text-align: center; gap: 1rem; padding: 1.5rem 1.25rem; }
  .emergency-card .ec-icon { margin: 0 auto; }
  .emergency-card .ec-call { justify-content: center; }

  /* status bar — skryjeme na mobilu, je nečitelný a zbytečně zabírá místo */
  .statusbar { display: none; }

  /* hero stats — na indexu se přepisuje in-page stylem, zde fallback */
  .hero-stats { display: none; }

  /* srv-detail hero — menší padding */
  .srv-detail-hero { padding: 1.25rem; }
  .srv-detail-hero .big-icon { font-size: 2rem; }

  /* detail grid — 1 sloupec */
  .detail-grid { grid-template-columns: 1fr; }

  /* section-head — wrap na 2 řádky */
  .section-head { flex-direction: column; align-items: flex-start; }

  /* formulář — větší fonty pro iOS (zabraňuje zoom) */
  .ff input, .ff textarea, .ff select { font-size: 1rem; }

  /* tlačítka — full width na nejmenších displejích */
  .btn-gold, .btn-ghost { width: 100%; justify-content: center; }

  /* ── POHOTOVOST — hero pruh (mobil) ── */
  .hero-emergency {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(214,40,40,0.18), rgba(214,40,40,0.06));
    border: 1px solid rgba(214,40,40,0.5);
  }
  .hero-emergency .he-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(214,40,40,0.2);
    border: 1px solid rgba(214,40,40,0.4);
    display: flex; align-items: center; justify-content: center;
    color: #ff6b6b;
    font-size: 1.2rem;
  }
  .hero-emergency .he-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .hero-emergency .he-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #ff6b6b;
  }
  .hero-emergency .he-num {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
  }
  .hero-emergency .he-call {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #d62828;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
  }

  /* ── POHOTOVOST — plovoucí tlačítko (mobil) ──
     Vlevo dole — cookie bar (#et-consent) je vpravo dole. */
  .fab-emergency {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: fixed;
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    padding: 0.7rem 1.05rem;
    border-radius: 30px;
    background: #d62828;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(214,40,40,0.45), 0 2px 6px rgba(0,0,0,0.3);
    animation: pulseEmergency 2.4s ease-in-out infinite;
    will-change: opacity;
  }
  .fab-emergency i { font-size: 1.05rem; }
}

/* ── mini mobil (≤ 480px) ── */
@media (max-width: 480px) {
  .main { padding: 1rem 0.875rem 2.5rem; }
  h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .srv-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .wiz-opts { grid-template-columns: 1fr 1fr; }
  .faq-q { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════════
   HERO BACKGROUND — připraveno pro obrázky
   Nahrajte soubory do složky assets/ dle seznamu
═══════════════════════════════════════════════ */

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.13;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.hero-bg-photo    { background-image: url('assets/hero-bg.jpg'); }
.srv-bg-montaz    { background-image: url('assets/srv-montaz.jpg'); }
.srv-bg-eps       { background-image: url('assets/srv-eps.jpg'); }
.srv-bg-pzts      { background-image: url('assets/srv-pzts.jpg'); }
.srv-bg-vss       { background-image: url('assets/srv-vss.jpg'); }
.srv-bg-pristup   { background-image: url('assets/srv-pristup.jpg'); }
.srv-bg-lps       { background-image: url('assets/srv-lps.jpg'); }
.srv-bg-revize    { background-image: url('assets/srv-revize.jpg'); }
.srv-bg-smart     { background-image: url('assets/srv-smart.jpg'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 12, 20, 0.92) 0%,
    rgba(10, 16, 32, 0.85) 50%,
    rgba(8, 12, 20, 0.95) 100%
  );
  z-index: 1;
}

.hero-wrap > *:not(.hero-bg-img):not(.hero-overlay),
.hero-page > *:not(.hbg-grid):not(.hbg-gl):not(.hbg-gr):not(.hbg-circuit):not(.hero-bg-img):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(5, 8, 16, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── FOOTER / COPYRIGHT ── */
.site-footer {
  background: #060d18;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  width: 100%;
}
.footer-copy {
  font-size: 0.65rem;
  color: var(--gray2);
  letter-spacing: 0.05em;
}
.footer-copy a {
  color: var(--gray3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-copy a:hover { color: var(--gold); }
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.62rem;
  color: var(--gray2);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* Desktop: bezpečná zóna vpravo dole pro fixní cookie widget
   (#et-consent-widget z analytics.js) — odkazy zůstávají klikatelné */
@media (min-width: 601px) {
  .site-footer { padding-right: 9.5rem; }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 1rem;
    /* spodní rezerva pro widget plovoucí nad sloupcovou patičkou */
    padding-bottom: 3.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-links { gap: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   IKONY — inline SVG sprite (nahrazuje Tabler webfont 788 KiB)
   ───────────────────────────────────────────────────────────────
   nav.js přepíše každé <i class="ti ti-xxx"> na <svg class="et-ico">.
   .et-ico se chová JAKO ikonový glyph: dědí font-size i color
   rodiče (width/height = 1em, fill/stroke = currentColor), takže
   všechna stávající pravidla typu `.tb i { font-size:12px }` nebo
   `.srv-icon { font-size:1.3rem; color:var(--gold) }` fungují
   beze změny napříč celým webem.
═══════════════════════════════════════════════════════════════ */

/* Cílíme i .ti pro krátký okamžik před doběhnutím JS adaptéru
   (FOUC-free fallback). Po přepisu platí .et-ico. */
.et-ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;   /* optické zarovnání na účaří textu */
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
  color: inherit;
}

/* Před doběhnutím JS: <i class="ti"> nemá obsah — rezervujeme
   prostor 1em, aby nedošlo k layout shiftu (CLS) po přepisu. */
i.ti {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
