/* ==========================================================
   RBES – hlavní styly (motiv vizitky, hravá varianta)
   Hlavní barva: #0B5586 (logo, vizitka). Obvodový vzor: assets/img/circuit.svg
   Písma: Barlow + Barlow Condensed (soubory viz README, assets/fonts/)
   ========================================================== */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Barlow Regular"), local("Barlow-Regular"), url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: local("Barlow SemiBold"), local("Barlow-SemiBold"), url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Barlow Bold"), local("Barlow-Bold"), url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Caveat Bold"), local("Caveat-Bold"), url("../fonts/caveat-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Barlow Condensed Bold"), local("BarlowCondensed-Bold"), url("../fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --blue: #0b5586;
  --blue-dark: #083f63;
  --blue-100: #e4eef6;
  --pat: #9ebacf;
  --ink: #0d1b2a;
  --muted: #33475b;
  --muted-2: #4a5d70;
  --line: #cddbe9;
  --bg-soft: #f1f6fa;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(11, 85, 134, .10);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hd: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --circuit: url("../img/circuit.svg");
  --spark: #ffd23f;
  --font-note: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --hard: 6px 6px 0 var(--blue-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-hd); font-weight: 700; line-height: 1.08; color: var(--ink); margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible, .section--blue :focus-visible { outline-color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }
.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.icon--sm { width: 1.1em; height: 1.1em; }

/* ---------- vzor z vizitky ---------- */
.has-pat { position: relative; overflow: hidden; }
.has-pat::before { content: ""; position: absolute; inset: 0; background: var(--circuit) center / cover no-repeat; opacity: var(--pat-o, 1); z-index: 0; pointer-events: none; }
.has-pat--white::before { filter: brightness(0) invert(1); opacity: var(--pat-o, .1); }
.has-pat > * { position: relative; z-index: 1; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.7em; border-radius: 8px; font-family: var(--font); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-100); color: var(--blue-dark); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-100); color: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--light { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--light:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid #dbe6f0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 52px; width: auto; }
.brand__text { font-family: var(--font-hd); font-weight: 700; font-size: 1.6rem; color: var(--blue); }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; padding: .45em .9em; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { background: var(--blue-100); color: var(--blue); }

.nav-toggle { display: none; background: #fff; border: 2px solid var(--blue); width: 48px; height: 48px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2.5px; background: var(--blue); border-radius: 2px; content: ""; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.55) 62%, rgba(255,255,255,.1) 100%); }
.hero__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero h1 span { color: var(--blue); }
.hero__lead { font-size: 1.3rem; color: var(--muted); max-width: 30em; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__phone { margin-top: 24px; color: var(--muted); }
.hero__phone a { font-weight: 700; }
.hero__photo { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 60px rgba(8,63,99,.30); }

/* rozvaděč (interaktivní) */
.panel { background: var(--blue); border: 3px solid var(--blue-dark); border-radius: 14px; padding: 20px 22px 22px; box-shadow: 0 24px 60px rgba(8,63,99,.35); }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel__title, .panel__count { font-family: var(--font-hd); font-weight: 700; font-size: .9rem; letter-spacing: .16em; color: #bcd6ea; text-transform: uppercase; }
.panel__count { text-align: center; margin: 14px 0 0; font-size: .88rem; letter-spacing: .12em; }
.panel__dots { display: flex; gap: 5px; }
.panel__dots i { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: block; }
.panel__dots i + i { background: var(--pat); }
.rail { position: relative; padding: 10px 6px; }
.rail + .rail { margin-top: 10px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; background: linear-gradient(#cfdceb, #8fa9bf); border-radius: 3px; }
.rail__row { position: relative; display: flex; gap: 6px; justify-content: center; }
.breaker { width: 52px; height: 124px; border: 0; border-radius: 6px; background: #f4f8fb; padding: 8px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.breaker__led { width: 8px; height: 8px; border-radius: 50%; background: #b9c9d8; }
.breaker__slot { position: relative; width: 26px; height: 46px; background: var(--ink); border-radius: 5px; display: block; }
.breaker__lever { position: absolute; left: 3px; right: 3px; height: 20px; border-radius: 3px; background: #7d8fa3; bottom: 3px; transition: all .15s; }
.breaker[aria-pressed="true"] .breaker__lever { background: #fff; bottom: auto; top: 3px; }
.breaker__label { width: 30px; height: 5px; border-radius: 2px; background: var(--blue); }
.rail--b .breaker__label { background: var(--pat); }

/* ---------- Modrý pruh (jako na vizitce) ---------- */
.band { background: var(--blue); color: #fff; }
.band__inner { display: flex; flex-wrap: wrap; gap: 12px 48px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-weight: 600; font-size: 1.1rem; }
.band__inner span::before { content: "✓"; margin-right: .5em; }

/* ---------- Sekce ---------- */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--blue); color: #d6e6f2; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section__head { max-width: 46em; margin-bottom: 36px; }
.section__head p { color: var(--muted); font-size: 1.2rem; }
.section--blue .section__head p { color: #d6e6f2; }
.eyebrow { font-family: var(--font-hd); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; color: var(--blue); display: flex; align-items: center; gap: 10px; margin-bottom: .6em; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.section--blue .eyebrow { color: #fff; }

.page-hero { background: #fff; border-bottom: 1px solid #dbe6f0; padding: clamp(40px, 6vw, 72px) 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.93) 45%, rgba(255,255,255,.35) 100%); }
.page-hero h1 { margin: 0 0 .25em; font-size: clamp(2.6rem, 6vw, 4rem); }
.page-hero p { color: var(--muted); font-size: 1.25rem; max-width: 40em; margin: 0; }
.breadcrumb { font-size: .95rem; color: var(--muted-2); margin-bottom: 12px; }
.breadcrumb a { color: var(--blue); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Karty ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.card__icon { width: 52px; height: 52px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); }
.card .btn { margin-top: 8px; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card__top .card__icon { margin: 0; }
.tag { font-family: var(--font-hd); font-weight: 700; font-size: .9rem; letter-spacing: .12em; color: var(--blue); background: var(--blue-100); border-radius: 4px; padding: 2px 9px; text-transform: uppercase; }
.tag--solid { background: var(--blue); color: #fff; }

.audience { display: flex; flex-direction: column; align-items: flex-start; }
.audience--dark { background: var(--blue); border-color: var(--blue); overflow: hidden; }
.audience--dark h3 { color: #fff; }
.audience--dark p { color: #d6e6f2; }
.audience--dark .card__icon { background: #fff; color: var(--blue); }

.service-card { display: flex; flex-direction: column; border-top: 5px solid var(--blue); border-radius: 4px 4px var(--radius) var(--radius); }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 3px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
}
.check-list small { display: block; color: var(--muted-2); font-size: .95rem; margin-top: 2px; }

/* ---------- Postup ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 40px; top: 21px; height: 3px; background: rgba(255,255,255,.55); }
.steps li { position: relative; padding-top: 62px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--blue); font-family: var(--font-hd); font-weight: 700; font-size: 1.5rem; display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--blue);
}
.steps h3 { margin-bottom: .15em; font-size: 1.65rem; }
.steps p { color: #d6e6f2; margin: 0; }

/* ---------- Statistiky / oprávnění ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.stat strong { display: block; font-family: var(--font-hd); font-size: 3rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat span { color: var(--muted); }
.credentials { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.credential { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.credential .icon { color: var(--blue); width: 28px; height: 28px; }
.credential strong { display: block; color: var(--ink); }
.credential span { color: var(--muted); font-size: .95rem; }

/* ---------- Reference ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: .45em 1.1em; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.ref-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ref-card__img { aspect-ratio: 3 / 2; background: var(--blue-100); overflow: hidden; position: relative; }
.ref-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ref-card__img .tag { position: absolute; left: 14px; top: 14px; }
.ref-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ref-card__meta { font-size: .95rem; color: var(--muted-2); margin-bottom: 2px; }
.ref-card h3 { margin-bottom: .25em; font-size: 1.55rem; }
.ref-card h3 a { color: inherit; text-decoration: none; }
.ref-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ref-card p { color: var(--muted); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 22px; background: var(--bg-soft); border-radius: var(--radius); margin-bottom: 32px; }
.facts dt { font-family: var(--font-hd); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 32px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Tým ---------- */
.person { text-align: center; }
.person__photo { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: var(--blue-100); color: var(--blue); display: grid; place-items: center; font-family: var(--font-hd); font-weight: 700; font-size: 2.4rem; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .05em; font-size: 1.35rem; }
.person p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Kontakt a formulář ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--blue); margin-top: 2px; }
.contact-list small { display: block; color: var(--muted-2); font-size: .95rem; }
.contact-list a { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.regions li { background: var(--blue-100); color: var(--blue-dark); padding: .2em .8em; border-radius: 6px; font-size: .95rem; font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: .75em 1em; border: 1.5px solid #b3c3d4; border-radius: 8px; font: inherit; color: var(--ink); background: #fff; margin-bottom: 16px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(11,85,134,.2); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 18px; font-size: 1rem; color: var(--muted); }
.form .consent input { margin-top: .35em; width: 18px; height: 18px; flex: none; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e6f6ea; color: #14532d; border: 1px solid #a7d9b4; }
.notice--err { background: #fdecec; color: #7f1d1d; border: 1px solid #f1b3b3; }

/* ---------- CTA pruh ---------- */
.cta-band { background: var(--blue); color: #fff; border-radius: 12px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .15em; font-size: clamp(2rem, 4vw, 2.7rem); }
.cta-band p { margin: 0; color: #d6e6f2; font-size: 1.2rem; }

.partners { display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: center; color: var(--muted-2); font-family: var(--font-hd); font-weight: 700; font-size: 1.6rem; }

/* ---------- Obsah stránek/příspěvků ---------- */
.entry { max-width: 52em; }
.entry img { border-radius: 10px; }
.entry h2, .entry h3 { margin-top: 1.4em; }

/* ---------- Patička (jako vizitka) ---------- */
.site-footer { background: #fff; }
.footer-top { --pat-o: .8; background: #fff; }
.footer-top::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); z-index: 0; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; align-items: start; }
.footer-logo { height: 56px; width: auto; margin-bottom: 16px; }
.footer-title { font-size: 1.4rem; color: var(--blue); margin-bottom: .5em; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .35em; }
.footer-list a { color: var(--ink); text-decoration: none; }
.footer-list a:hover { color: var(--blue); text-decoration: underline; }
.footer-small { font-size: .95rem; color: var(--muted-2); }
.footer-band { background: var(--blue); color: #fff; }
.footer-band__inner { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.footer-band__links { display: flex; flex-wrap: wrap; gap: 16px 44px; align-items: center; font-size: 1.4rem; letter-spacing: .02em; }
.footer-band a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.footer-band a:hover { text-decoration: underline; color: #fff; }
.footer-band .icon { width: 30px; height: 30px; }
.footer-band small { font-size: .95rem; color: #bcd6ea; }

/* ---------- Mobilní lišta ---------- */
.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,28,45,.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ==========================================================
   Responzivita
   ========================================================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 60%, rgba(255,255,255,.5) 100%); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; display: none; box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .menu { flex-direction: column; }
  .primary-nav .menu a { padding: .9em .6em; font-size: 1.1rem; }
  .primary-nav__cta { margin-top: 10px; }
  .site-header__inner { min-height: 68px; }
  .brand__logo { height: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .grid--2, .grid--3, .grid--4, .steps, .footer-grid, .form__row { grid-template-columns: 1fr; }
  .card, .form { padding: 22px; }
  .hero__grid { padding-top: 40px; padding-bottom: 44px; gap: 32px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .breaker { width: 40px; height: 100px; }
  .panel { padding: 16px; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band .hero__cta { justify-content: center; }
  .steps { gap: 22px; }
  .steps li { padding-top: 0; padding-left: 62px; }
  .steps li::before { top: 0; }
  .band__inner { flex-direction: column; gap: 6px; }
  .footer-band__links { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 1.25rem; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,85,134,.14);
  }
  .mobile-bar .btn { padding: .8em 1em; }
}


/* ==========================================================
   HRAVÁ VRSTVA: tlusté linky, tvrdé stíny, samolepky, ručně psané poznámky.
   Drží se nad základními styly výše, takže jde snadno ubrat (smažte od sem dolů).
   ========================================================== */
.note, .hero__phone.note { font-family: var(--font-note); font-weight: 700; color: var(--blue); font-size: 1.9rem; line-height: 1.1; }
.hero__phone.note a { color: var(--blue-dark); text-decoration: none; }
.bolt { width: 22px; height: 22px; flex: none; fill: var(--spark); stroke: var(--spark); stroke-width: 1.6; stroke-linejoin: round; }

/* tlačítka */
.btn { border-radius: 999px; border: 3px solid var(--blue-dark); box-shadow: 4px 4px 0 var(--blue-dark); font-weight: 700; font-size: 1.1rem; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--blue-dark); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--spark { background: var(--spark); color: var(--blue-dark); }
.btn--spark:hover { background: #ffdb62; color: var(--blue-dark); }
.btn--outline, .btn--white, .btn--light { background: #fff; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }

/* hlavička */
.site-header { border-bottom: 3px solid var(--blue-dark); background: #fff; }
.primary-nav .menu a { border-radius: 999px; font-weight: 700; border: 2px solid transparent; }
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { background: var(--spark); color: var(--blue-dark); border-color: var(--blue-dark); }
.nav-toggle { border: 3px solid var(--blue-dark); box-shadow: 3px 3px 0 var(--blue-dark); }

/* nadpisové štítky */
.eyebrow { display: inline-flex; background: var(--spark); color: var(--blue-dark); padding: 3px 14px; border-radius: 999px; border: 2px solid var(--blue-dark); transform: rotate(-2deg); margin-bottom: 1em; }
.eyebrow::before { display: none; }
.section--blue .eyebrow { color: var(--blue-dark); }

/* hero */
.hero { background: var(--blue-100); border-bottom: 3px solid var(--blue-dark); }
.hero::after { display: none; }
.hero.has-pat::before { opacity: .75; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.25rem); line-height: .98; }
.hero__grid { padding-top: 72px; padding-bottom: 96px; }

/* žárovka s vypínačem */
.bulb { position: relative; width: 380px; max-width: 100%; aspect-ratio: 380 / 440; }
.bulb__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bulb__glow { position: absolute; left: 50%; top: 7%; width: 79%; aspect-ratio: 1; margin-left: -39.5%; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.75) 0%, rgba(255,210,63,0) 68%); opacity: 0; transition: opacity .25s; }
.bulb.is-on .bulb__glow { opacity: 1; }
.bulb__glass { fill: #e4eef6; transition: fill .25s; }
.bulb.is-on .bulb__glass { fill: #ffe27a; }
.bulb__on { display: none; }
.bulb.is-on .bulb__on { display: block; }
.bulb.is-on .bulb__off { display: none; }
.bulb__switch { position: absolute; left: 3%; bottom: 0; width: 27%; aspect-ratio: 104 / 150; border: 4px solid var(--blue-dark); border-radius: 18px; background: #fff; box-shadow: 5px 5px 0 var(--blue-dark); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.bulb__rocker { position: relative; width: 44%; height: 61%; border-radius: 12px; background: var(--blue-dark); display: block; }
.bulb__knob { position: absolute; left: 11%; right: 11%; height: 43%; border-radius: 8px; background: #7d8fa3; bottom: 5%; transition: all .15s; }
.bulb.is-on .bulb__knob { background: var(--spark); bottom: auto; top: 5%; }
.bulb__msg { position: absolute; left: 34%; bottom: 7%; max-width: 62%; margin: 0; font-family: var(--font-note); font-weight: 700; font-size: 1.85rem; line-height: 1.1; color: var(--blue-dark); }

/* běžící pás */
.band { background: var(--blue); border-bottom: 3px solid var(--blue-dark); transform: rotate(-1.2deg); margin: -26px -20px 0; position: relative; z-index: 2; padding: 16px 0; overflow: hidden; }
.band__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; font-family: var(--font-hd); font-weight: 700; font-size: 1.6rem; letter-spacing: .06em; padding: 0 20px; max-width: none; }
.band__inner span::before { content: none; }
.section:first-of-type { padding-top: 104px; }

/* karty */
.card { border: 3px solid var(--blue-dark); border-radius: 22px; box-shadow: var(--hard); }
.card__icon { border: 3px solid var(--blue-dark); border-radius: 18px; width: 60px; height: 60px; box-shadow: 3px 3px 0 var(--blue-dark); }
.audience:nth-child(odd) { transform: rotate(-.8deg); }
.audience:nth-child(even) { transform: rotate(.9deg); }
.audience--dark { background: var(--blue); border-color: var(--blue-dark); overflow: visible; }
.audience--dark .card__icon { background: #fff; color: var(--blue); }
.tag { border: 2px solid var(--blue-dark); border-radius: 999px; background: var(--spark); color: var(--blue-dark); padding: 2px 12px; }
.tag--solid { background: var(--spark); color: var(--blue-dark); }
.card__top .tag { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; letter-spacing: 0; padding: 0; transform: rotate(8deg); }

.service-card { border-top: 3px solid var(--blue-dark); border-radius: 22px; overflow: hidden; padding: 0; }
.service-card .card__top { background: var(--blue); margin: 0; padding: 22px 26px 18px; }
.service-card:nth-child(2) .card__top { background: var(--blue-dark); }
.service-card .card__icon { background: #fff; color: var(--blue); box-shadow: none; }
.service-card h3, .service-card p, .service-card .check-list { margin-left: 26px; margin-right: 26px; }
.service-card h3 { margin-top: 20px; }
.service-card .check-list { margin-bottom: 28px; }
.grid--3 > .service-card:nth-child(1) { transform: rotate(-1.2deg); }
.grid--3 > .service-card:nth-child(2) { transform: rotate(.8deg); }
.grid--3 > .service-card:nth-child(3) { transform: rotate(-.6deg); }
.check-list li::before { border: 2px solid var(--blue-dark); border-radius: 50%; width: 18px; height: 18px; top: .38em;
  background: var(--spark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083f63' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }

/* samolepky */
.sticker { position: absolute; z-index: 3; width: 104px; height: 104px; display: grid; place-items: center; text-align: center; font-family: var(--font-hd); font-weight: 700; font-size: 1.15rem; line-height: 1; color: var(--blue-dark); text-transform: uppercase;
  background: var(--spark); border: 3px solid var(--blue-dark);
  clip-path: polygon(50% 0, 58% 8%, 69% 3%, 74% 14%, 86% 14%, 86% 26%, 97% 31%, 92% 42%, 100% 50%, 92% 58%, 97% 69%, 86% 74%, 86% 86%, 74% 86%, 69% 97%, 58% 92%, 50% 100%, 42% 92%, 31% 97%, 26% 86%, 14% 86%, 14% 74%, 3% 69%, 8% 58%, 0 50%, 8% 42%, 3% 31%, 14% 26%, 14% 14%, 26% 14%, 31% 3%, 42% 8%); }
.sticker--right { right: -14px; top: -30px; transform: rotate(12deg); }
.sticker--left { left: -22px; top: -48px; width: 124px; height: 124px; transform: rotate(-14deg); font-size: 1.3rem; }

/* sekce */
.section--soft { border-top: 3px solid var(--blue-dark); border-bottom: 3px solid var(--blue-dark); background: var(--blue-100); }
.section--blue { border-top: 3px solid var(--blue-dark); border-bottom: 3px solid var(--blue-dark); }
.section__head h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.page-hero { background: var(--blue-100); border-bottom: 3px solid var(--blue-dark); }
.page-hero::after { display: none; }
.page-hero.has-pat::before { opacity: .75; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 4.75rem); line-height: 1; }

/* slovníček */
.glossary .card--sticker { text-align: center; padding: 22px 20px; box-shadow: 5px 5px 0 var(--blue-dark); border-radius: 18px; }
.glossary .card--sticker:nth-child(1) { transform: rotate(-1.5deg); }
.glossary .card--sticker:nth-child(2) { transform: rotate(1deg); }
.glossary .card--sticker:nth-child(3) { transform: rotate(-.8deg); }
.glossary .card--sticker:nth-child(4) { transform: rotate(1.4deg); }
.glossary__abbr { font-family: var(--font-hd); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--blue); }
.glossary p { font-size: 1rem; margin: 6px 0 0; }

/* kroky: zásuvky na tečkovaném kabelu */
.steps::before { height: 0; border-top: 5px dotted var(--spark); background: none; top: 30px; left: 30px; right: 30px; }
.steps li { padding-top: 84px; }
.steps li:nth-child(even) { margin-top: 44px; }
.steps li::before { width: 64px; height: 64px; border: 4px solid var(--blue-dark); box-shadow: 4px 4px 0 var(--blue-dark); font-size: 2.1rem; }
.steps li:nth-child(even)::before { top: 0; }

/* reference jako polaroidy */
.ref-card { background: #fff; padding: 14px 14px 22px; border: 3px solid var(--blue-dark); border-radius: 6px; box-shadow: var(--hard); overflow: visible; }
.ref-card::before { content: ""; position: absolute; left: 50%; top: -16px; width: 96px; height: 30px; margin-left: -48px; background: rgba(255,210,63,.85); border: 2px solid var(--blue-dark); transform: rotate(-3deg); z-index: 2; }
.ref-card__img { border-radius: 0; }
.ref-card__img .tag { left: 10px; top: auto; bottom: 10px; }
.ref-card__body { padding: 12px 4px 0; }
.ref-card__meta { font-family: var(--font-note); font-weight: 700; font-size: 1.65rem; color: var(--blue); line-height: 1.1; }
.ref-card:hover { transform: rotate(0) translateY(-3px); box-shadow: 8px 8px 0 var(--blue-dark); }
.grid--3 > .ref-card:nth-child(3n+1) { transform: rotate(-2deg); }
.grid--3 > .ref-card:nth-child(3n+2) { transform: rotate(1.5deg); }
.grid--3 > .ref-card:nth-child(3n+3) { transform: rotate(-1deg); }
.grid--3 > .ref-card:hover { transform: rotate(0) translateY(-3px); }
.grid { gap: 36px; }
.chip { border: 3px solid var(--blue-dark); border-radius: 999px; font-weight: 700; color: var(--blue-dark); box-shadow: 3px 3px 0 var(--blue-dark); }
.chip:hover { background: var(--spark); color: var(--blue-dark); border-color: var(--blue-dark); }
.chip.is-active { background: var(--spark); color: var(--blue-dark); border-color: var(--blue-dark); }
.pagination a, .pagination span { border: 3px solid var(--blue-dark); border-radius: 999px; box-shadow: 3px 3px 0 var(--blue-dark); color: var(--blue-dark); }
.pagination .current { background: var(--spark); color: var(--blue-dark); border-color: var(--blue-dark); }
.gallery a { border: 3px solid var(--blue-dark); border-radius: 12px; box-shadow: 4px 4px 0 var(--blue-dark); }
.facts { border: 3px solid var(--blue-dark); border-radius: 18px; background: #fff; }

/* tým, kontakt, formulář */
.person__photo { background: var(--spark); color: var(--blue-dark); border: 3px solid var(--blue-dark); box-shadow: 3px 3px 0 var(--blue-dark); }
.person { background: #fff; border: 3px solid var(--blue-dark); border-radius: 18px; box-shadow: 5px 5px 0 var(--blue-dark); padding: 22px 16px; }
.credential { border: 3px solid var(--blue-dark); border-radius: 18px; box-shadow: 4px 4px 0 var(--blue-dark); }
.contact-list li { border-bottom: 0; align-items: center; }
.contact-list .icon { background: var(--blue); color: #fff; width: 52px; height: 52px; padding: 12px; border-radius: 16px; border: 3px solid var(--blue-dark); box-shadow: 3px 3px 0 var(--blue-dark); margin: 0; }
.regions li { background: #fff; border: 2px solid var(--blue-dark); border-radius: 999px; padding: .15em .9em; font-weight: 700; }
.form { border: 3px solid var(--blue-dark); border-radius: 22px; box-shadow: var(--hard); transform: rotate(.5deg); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { border: 3px solid var(--blue-dark); border-radius: 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--spark); }
.notice { border-width: 3px; border-radius: 14px; }

/* výzva */
.cta-band { position: relative; background: var(--blue); border: 3px solid var(--blue-dark); border-radius: 22px; box-shadow: var(--hard); transform: rotate(-.6deg); padding: clamp(36px, 5vw, 64px); }
.cta-band__text { padding-left: 70px; }
.cta-band h2 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); }

/* partneři */
.partners span { background: #fff; color: var(--blue-dark); border: 3px solid var(--blue-dark); border-radius: 18px; padding: 4px 22px; box-shadow: 4px 4px 0 var(--blue-dark); font-size: 1.6rem; }
.partners span:nth-child(odd) { transform: rotate(-1deg); }
.partners span:nth-child(even) { transform: rotate(1deg); }

/* patička */
.footer-top { border-top: 3px solid var(--blue-dark); }
.footer-band { border-top: 3px solid var(--blue-dark); }
.mobile-bar { border-top: 3px solid var(--blue-dark); }

@media (max-width: 980px) {
  .grid--3 > .service-card, .grid--3 > .ref-card { transform: none !important; }
  .steps li:nth-child(even) { margin-top: 0; }
  .band { margin-left: -10px; margin-right: -10px; }
}
@media (max-width: 640px) {
  .bulb { width: 300px; margin: 0 auto; }
  .bulb__msg { font-size: 1.5rem; }
  .cta-band__text { padding-left: 0; padding-top: 48px; }
  .sticker--left { left: 10px; top: -40px; }
  .audience, .glossary .card--sticker, .form { transform: none !important; }
  .steps li { padding-left: 84px; }
  .band__inner { font-size: 1.25rem; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .mobile-bar, .footer-band { display: none; }
}
