/* =============================================================
   PORWISZ.CZ – vlastní styly (redesign 2026)
   Modro-zelená paleta informačního portálu BOZP.
   ============================================================= */

:root {
  /* modrá / zelená značka */
  --blue:        #1560d4;
  --blue-deep:   #0f52c9;
  --blue-dark:   #0b46a8;
  --cyan:        #29a8e0;
  --green:       #2aa54b;
  --green-dark:  #1f7d38;
  --green-light: #4cd07d;

  /* tmavé plochy */
  --navy:        #0b2350;   /* nadpisy, patička */
  --navy-bar:    #0a2352;   /* horní lišta */
  --navy-nav:    #071c42;   /* pruh s hlavním menu */
  --navy-panel:  #0b1f45;   /* panel na výstavbové úvodce */

  /* světlé plochy a linky */
  --tint:        #f4f8ff;   /* podbarvené sekce a hero */
  --tint-cta:    #eaf3ff;   /* CTA pruhy */
  --chip:        #e4eefc;   /* podklad modré ikony */
  --chip-green:  #e4f4e8;   /* podklad zelené ikony */
  --line:        #dbe6f7;
  --line-soft:   #e3ecf9;
  --line-strong: #b9d1f2;
  --line-cta:    #cfe0f8;
  --white:       #ffffff;

  /* text */
  --ink:         #0b2350;
  --body:        #4a5c7d;
  --gray:        #5a6a86;
  --faint:       #8b9ab4;

  --grad:        linear-gradient(90deg, #0f52c9, #2aa54b);
  --grad-panel:  linear-gradient(150deg, #0f52c9, #0b2350 60%, #1f7d38);

  --shadow:      0 6px 20px rgba(11, 35, 82, .07);
  --shadow-lift: 0 16px 34px rgba(11, 35, 82, .14);
  --shadow-card: 0 14px 40px rgba(11, 35, 82, .10);
  --radius:      12px;

  --font:        "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-head:   var(--font);
  --font-body:   var(--font);
  --font-mono:   ui-monospace, SFMono-Regular, "Consolas", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* barevné zvýraznění slova v nadpisu */
.accent { color: var(--blue); }
.accent--green { color: var(--green); }

/* ---------- horní lišta se sesterskými weby ---------- */

.topbar { background: var(--navy-bar); color: #dce7f8; font-size: 12.5px; font-weight: 600; }
.topbar a { color: inherit; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar ul { display: flex; list-style: none; gap: 20px; flex-wrap: nowrap; }
.topbar li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar li a { display: flex; align-items: center; gap: 7px; }
.topbar li a:hover { text-decoration: none; color: var(--white); }
/* řada sesterských webů se rozprostře po šířce vedle kontaktu */
.topbar__sites { flex: 1 1 auto; min-width: 0; justify-content: space-between; padding-right: 24px; }
.topbar__contact { flex: none; }
.topbar__contact a { color: var(--white); }

/* ---------- hlavička ---------- */

.header { background: linear-gradient(180deg, #ffffff, #f6faff); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 20px; padding-bottom: 20px; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 62px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; max-width: 260px; }
.brand__name { font-weight: 800; font-size: 27px; letter-spacing: .01em; color: var(--navy); line-height: 1.15; }
.brand__claim { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); line-height: 1.6; }
.brand__tagline { font-size: 11.5px; color: var(--gray); line-height: 1.5; }

/* tři boxy vedle loga – co portál nabízí */
.headboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; flex: 1 1 auto; max-width: 800px; }
.headbox {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 16px; box-shadow: 0 2px 10px rgba(11, 35, 82, .05);
}
.headbox__ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; }
.headbox__ico .ico { width: 26px; height: 26px; color: var(--blue); }
.headbox__text { display: block; min-width: 0; }
.headbox__text strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.headbox__text span { display: block; font-size: 11.5px; line-height: 1.5; color: var(--gray); }

/* ---------- tmavý pruh s hlavním menu ---------- */

.navbar { background: var(--navy-nav); position: sticky; top: 0; z-index: 50; }
.navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; }

.nav ul { display: flex; list-style: none; gap: 0; align-items: stretch; }
.nav a {
  display: block; padding: 18px 15px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  border-bottom: 3px solid transparent; transition: color .15s;
}
.nav a:hover { color: var(--white); text-decoration: none; }
.nav a.is-active { color: var(--white); border-bottom-color: var(--cyan); }

/* lupa je zatím jen ikona – hledání na webu není */
.navbar__search { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: rgba(255, 255, 255, .8); }
.navbar__search .ico { width: 21px; height: 21px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 24px; border: 0; border-radius: 8px;
  cursor: pointer; transition: filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.08); color: var(--white); text-decoration: none; box-shadow: 0 8px 20px rgba(11, 35, 82, .18); }
.btn .ico { width: 1.15em; height: 1.15em; }

.btn--outline { background: var(--white); border: 1px solid var(--line-strong); color: var(--blue-dark); }
.btn--outline:hover { background: var(--tint); border-color: var(--blue); color: var(--blue-dark); filter: none; }

.btn--white { background: var(--white); color: var(--blue-dark); }
.btn--white:hover { background: var(--tint); color: var(--blue-dark); filter: none; }

.btn--sm { font-size: 13px; padding: 13px 20px; }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--tint); overflow: hidden; }
.hero__in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  padding-top: 56px; padding-bottom: 66px;
}

/* fotka vytéká k pravému okraji a vlevo se rozpouští do podkladu */
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(1) hue-rotate(178deg) saturate(2.6) brightness(1.12) contrast(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
          mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #f4f8ff 0%, rgba(244, 248, 255, .92) 18%, rgba(244, 248, 255, .3) 40%, rgba(244, 248, 255, 0) 58%);
}

.hero__eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; line-height: 1.14; letter-spacing: -.015em; }
.hero__quote {
  margin: 22px 0 0; padding-left: 16px; border-left: 4px solid var(--green);
  font-size: 18.5px; font-weight: 700; color: var(--blue); line-height: 1.5;
}
.hero__text { margin-top: 20px; max-width: 32em; font-size: 17px; line-height: 1.6; color: var(--body); }
.hero__text strong { color: var(--navy); }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* bílá karta s výhodami vpravo v hero (úvodka) */
.hero__card {
  justify-self: end; width: 100%; max-width: 320px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 44px rgba(11, 35, 82, .2);
  padding: 22px 24px; display: grid; gap: 16px;
}
.hero__card-item { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--gray); }
.hero__card-item .ico { color: var(--blue); width: 22px; height: 22px; flex: none; margin-top: 2px; }
.hero__card-item:last-child .ico { color: var(--green); }
.hero__card-item strong { display: block; font-size: 13.5px; color: var(--navy); }

/* varianty hero podle typu stránky */
.hero--service .hero__in { grid-template-columns: 1.15fr .85fr; padding-top: 48px; padding-bottom: 54px; }
.hero--service .hero__bg { width: 48%; }
.hero--service .hero__bg img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
.hero--service h1 { margin-top: 8px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; }
.hero--service .hero__quote { font-size: 17px; }
.hero--service .hero__text { max-width: 34em; font-size: 16.5px; line-height: 1.65; }

/* ---------- řada karet s ikonami ---------- */

.features { background: var(--tint); padding: 0 0 46px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* karty přesahují nahoru přes patu hero */
.features--overlap .features__grid, .features .features__grid { position: relative; z-index: 3; margin-top: -34px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow);
}
.feature__ico {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--chip); color: var(--blue);
  display: grid; place-items: center;
}
.feature__ico .ico { width: 22px; height: 22px; }
/* poslední kartu ladíme do zelené – stejně jako v návrhu */
.features__grid .feature:last-child .feature__ico { background: var(--chip-green); color: var(--green-dark); }
.feature strong { display: block; font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.feature span { font-size: 13px; line-height: 1.5; color: var(--gray); }

/* ---------- sekce ---------- */

.section { padding: 54px 0; }
.section--tinted { background: var(--tint); }
.section__head { margin-bottom: 30px; }
.section__eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.section__title { font-size: clamp(24px, 3.2vw, 31px); font-weight: 800; margin-top: 6px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }

/* ---------- karty služeb (úvodka) ---------- */

.services--overlap { background: var(--tint); padding: 0 0 52px; }
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.services--overlap .services { position: relative; z-index: 3; margin-top: -38px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s, transform .15s;
}
.service:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); transform: translateY(-3px); text-decoration: none; }
.service__ico { color: var(--blue); }
.service__ico .ico { width: 30px; height: 30px; }
.service strong { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); }
.service p { font-size: 13.5px; line-height: 1.55; color: var(--gray); flex: 1; }
.service span { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); display: inline-flex; align-items: center; gap: 7px; }

/* ---------- tmavý CTA panel ---------- */

.panel {
  background: var(--grad-panel);
  border-radius: var(--radius); color: var(--white);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start; justify-content: center;
}
.panel--center { align-items: center; text-align: center; }
.panel__ico { width: 64px; height: 64px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.panel__ico .ico { width: 30px; height: 30px; }
.panel h2, .panel h3 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; text-transform: uppercase; line-height: 1.2; color: var(--white); }
.panel__mail { font-size: 21px; font-weight: 800; }
.panel__mail a { color: var(--white); }
.panel p { color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.panel a { color: var(--white); }
.panel .btn--white { color: var(--blue-dark); }

/* ---------- číslovaný seznam ---------- */

.numlist { list-style: none; display: grid; gap: 22px; }
.numlist > li { display: flex; gap: 16px; }
.numlist__no {
  flex: none; width: 42px; height: 42px; border-radius: 9px;
  background: var(--chip); color: var(--blue-deep);
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
/* zelený tón: druhý sloupec (druhý seznam) nebo výslovně označený bod */
.numlist + .numlist .numlist__no,
.numlist__no--green { background: var(--chip-green); color: var(--green-dark); }
.numlist strong { color: var(--navy); }
.numlist p { color: var(--body); font-size: 15px; line-height: 1.6; }
.numlist--2col { grid-template-columns: 1fr 1fr; column-gap: 44px; }

/* ---------- odrážky s fajfkou ---------- */

.ticklist { list-style: none; display: grid; gap: 11px; }
.ticklist li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.ticklist li .ico { position: absolute; left: 0; top: .28em; color: var(--blue); width: 19px; height: 19px; }
.ticklist li:nth-child(n+5) .ico { color: var(--green); }

/* ---------- CTA pruh ---------- */

.cta-banner { background: var(--tint-cta); border: 1px solid var(--line-cta); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-banner__ico {
  width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--white);
  color: var(--blue); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(11, 35, 82, .08);
}
.cta-banner__ico .ico { width: 26px; height: 26px; }
.cta-banner__text { flex: 1; min-width: 240px; }
.cta-banner__text strong { display: block; font-size: 17.5px; font-weight: 800; color: var(--navy); }
.cta-banner__text span { color: var(--body); font-size: 14.5px; }

/* ---------- blog ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.blog-grid--listing { grid-template-columns: repeat(3, 1fr); gap: 22px 20px; }

.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.post-card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); transform: translateY(-3px); text-decoration: none; }
.post-card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__cat { color: var(--blue); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-card__title { font-weight: 800; font-size: 16.5px; color: var(--navy); line-height: 1.3; }
.blog-grid--listing .post-card__title { font-size: 18px; }
.post-card__perex { font-size: 13.5px; line-height: 1.55; color: var(--gray); flex: 1; }
.post-card__meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.post-card__meta span { display: flex; align-items: center; gap: 5px; }

/* karta přihlášky k odběru mezi články */
.news-card {
  background: var(--grad-panel); border-radius: var(--radius); padding: 28px;
  color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.news-card__ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.news-card__ico .ico { width: 26px; height: 26px; }
.news-card strong { font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--white); }
.news-card > p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

/* ---------- obsah článku / textové stránky ---------- */

.prose { max-width: 780px; }
.prose > p:first-child { font-size: 18px; line-height: 1.7; color: var(--navy); }
.prose h2 { font-size: 25px; font-weight: 800; margin: 34px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; color: #3d4f6e; font-size: 16px; line-height: 1.75; }
.prose ol { padding-left: 24px; }
.prose ol li { margin-bottom: 6px; }
/* seznamy s odrážkou „fajfka v kolečku“ – ikona je v pozadí, žádné <svg> v HTML */
.prose ul { list-style: none; padding-left: 0; display: grid; gap: 11px; }
.prose ul li {
  padding-left: 30px; font-size: 14.5px; line-height: 1.6; color: var(--body);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231560d4'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 13.8-3.6-3.6 1.4-1.4 2.2 2.2 4.6-4.6 1.4 1.4-6 6Z'/%3E%3C/svg%3E") no-repeat 0 .28em / 19px 19px;
}
/* druhý sloupec dvousloupcového textu je v návrhu zelený */
.split > .prose + .prose ul li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232aa54b'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 13.8-3.6-3.6 1.4-1.4 2.2 2.2 4.6-4.6 1.4 1.4-6 6Z'/%3E%3C/svg%3E");
}
.prose li strong, .prose p strong { color: var(--navy); }
.prose img { border-radius: var(--radius); margin: 22px 0; }
.prose figure { margin: 22px 0; }
.prose figure img { margin: 0; }
.prose a { color: var(--blue); }

/* zvýrazněný odstavec v článku */
.prose__note, .note {
  background: var(--tint); border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 26px 0;
}
.prose__note p, .note p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--navy); }

/* hlavička článku / podstránky – světlý pruh */
.article-head { background: var(--tint); border-bottom: 1px solid var(--line-soft); padding: 40px 0 36px; }
.article-head h1 { margin-top: 8px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; line-height: 1.14; max-width: 24ch; }
.article-head__lead { margin-top: 14px; max-width: 62ch; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.article-head__meta { display: flex; gap: 20px; margin-top: 16px; color: var(--gray); font-size: 14px; flex-wrap: wrap; }
.article-head__meta span { display: flex; align-items: center; gap: 7px; }
.article-head--wide h1 { max-width: 30ch; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray); flex-wrap: wrap; }
.crumbs a { color: var(--blue); }

.article-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.article-gallery img { border-radius: 10px; margin: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* postranní panel článku */
.aside { display: grid; gap: 20px; position: sticky; top: 76px; }
.aside__box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside__box--tinted { background: var(--tint); }
.aside__box h3 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.aside__toc { display: grid; gap: 9px; font-size: 14px; list-style: none; }
.aside__toc a { color: var(--body); }
.aside__toc a:hover { color: var(--blue); }
.aside__rel { display: grid; gap: 14px; list-style: none; }
.aside__rel a { display: flex; gap: 12px; align-items: center; }
.aside__rel a:hover { text-decoration: none; }
.aside__rel img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.aside__rel span { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.aside__rel a:hover span { color: var(--blue); }

/* ---------- dvousloupcové rozvržení ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split--panel-left { grid-template-columns: 380px 1fr; }
.split--sidebar { grid-template-columns: 1fr 330px; gap: 56px; }
.split--form { gap: 48px; }

/* trojsloupec: panel + dva texty (stránky služeb) */
.triple { display: grid; grid-template-columns: 320px 1fr 1fr; gap: 34px; align-items: stretch; }
.triple h2 { font-size: 24px; font-weight: 800; }
.triple p { color: var(--body); font-size: 15px; line-height: 1.7; }
/* tmavý panel ve sloupci si nesmí vzít barvu ani velikost textu od okolí */
.triple .panel h2, .triple .panel h3 { font-size: clamp(21px, 2.6vw, 26px); color: var(--white); }
.triple .panel p { color: rgba(255, 255, 255, .85); font-size: 14.5px; line-height: 1.6; }

/* ---------- pruh s USP nad patičkou ---------- */

.usp-strip { background: var(--white); border-top: 1px solid var(--line-soft); padding: 28px 0; }
.usp-strip__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp-strip__item { display: flex; gap: 14px; align-items: center; }
.usp-strip__ico {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--tint); color: var(--blue); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.usp-strip__ico .ico { width: 22px; height: 22px; }
.usp-strip__item:last-child .usp-strip__ico { color: var(--green); }
.usp-strip__item strong { display: block; font-size: 14.5px; color: var(--navy); }
.usp-strip__item span { font-size: 12.5px; color: var(--gray); }

/* ---------- patička ---------- */

.footer { background: var(--navy); color: #c8d8f0; font-size: 13.5px; }
.footer a { color: #c8d8f0; }
.footer a:hover { color: #7ec2f5; text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 44px 24px; }
.footer h3 { color: var(--white); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer__contact a { display: flex; align-items: center; gap: 8px; }
.brand--footer { align-items: center; gap: 12px; }
.brand--footer .brand__logo { height: 46px; width: auto; }
.brand--footer .brand__name { color: var(--white); font-size: 20px; }
.brand--footer .brand__claim { color: #7ec2f5; font-size: 10px; }
.brand--footer .brand__tagline { display: none; }
.footer__about p { margin-top: 16px; font-size: 13.5px; line-height: 1.65; }
.footer__partners { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__partners img { background: var(--white); border-radius: 6px; padding: 6px; height: 44px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; flex-wrap: wrap; }
.footer__bottom-in a { color: #7ec2f5; }

/* ---------- formuláře ---------- */

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 700; font-size: 14px; color: var(--navy); display: grid; gap: 7px; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fbfdff; width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: #a9b6cc; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 96, 212, .18);
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form label.form__consent { font-size: 13.5px; font-weight: 400; line-height: 1.55; color: var(--body); display: flex; gap: 11px; align-items: flex-start; }
.form label.form__consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert--ok { background: #e8f6ee; color: #1a6b3a; border: 1px solid #bfe4cd; }
.alert--err { background: #fdecec; color: #9c1c1c; border: 1px solid #f2c6c6; }

/* ---------- kontakt ---------- */

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-cards--two { grid-template-columns: 1fr 1fr; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.contact-card p { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.contact-card ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: var(--body); }
.contact-card li { display: flex; gap: 9px; align-items: center; overflow-wrap: anywhere; }
.contact-card li strong { color: var(--navy); }
.contact-card .ico { color: var(--blue); width: 18px; height: 18px; }

.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); }

.cert { border-left: 3px solid var(--blue); padding: 4px 0 4px 16px; margin-bottom: 14px; }
.cert:nth-child(n+3) { border-left-color: var(--green); }
.cert strong { display: block; font-size: 15px; color: var(--navy); }
.cert span { font-size: 13px; color: var(--gray); }

.partners { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partners img { height: 56px; width: auto; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }

.portrait { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; }
.portrait__name { margin-top: 16px; text-align: center; font-size: 16px; font-weight: 800; color: var(--navy); }
.portrait__role { margin-top: 2px; text-align: center; font-size: 14px; color: var(--gray); }

/* ---------- karty školení ---------- */

.training-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.training {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; padding-bottom: 18px; box-shadow: var(--shadow);
}
.training__ico {
  width: 52px; height: 52px; margin: 18px auto 10px; border-radius: 50%;
  background: var(--chip); color: var(--blue);
  display: grid; place-items: center;
}
.training__ico .ico { width: 24px; height: 24px; }
.training strong { display: block; font-size: 14px; font-weight: 800; text-transform: uppercase; color: var(--navy); padding: 0 12px 6px; }
.training p { font-size: 13px; line-height: 1.55; color: var(--gray); padding: 0 14px; }

.training-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.training-box { border-radius: var(--radius); padding: 30px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.training-box--tint { background: var(--tint); }
.training-box h3 { font-size: 20px; text-transform: uppercase; font-weight: 800; margin-bottom: 4px; }
.training-box .training-box__quote { color: var(--blue); font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.training-box ul { list-style: none; display: grid; gap: 9px; margin-bottom: 20px; }
.training-box li { position: relative; padding-left: 29px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.training-box li .ico { position: absolute; left: 0; top: .28em; color: var(--blue); width: 19px; height: 19px; }
.training-box--tint li .ico { color: var(--green); }
.training-box__head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.training-box__head .panel__ico { background: var(--chip); color: var(--blue); }
.training-box--tint .training-box__head .panel__ico { background: var(--chip-green); color: var(--green-dark); }

/* ---------- pomocné ---------- */

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.muted { color: var(--gray); }

/* =============================================================
   Responzivita
   ============================================================= */

@media (max-width: 1420px) {
  .topbar__sites li:nth-child(6) { display: none; }
}

@media (max-width: 1240px) {
  .topbar__sites li:nth-child(5) { display: none; }
}

/* menu se pod 1280 px do řádku pohodlně nevejde -> hamburger */
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-nav); box-shadow: var(--shadow-card);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav a { padding: 13px 24px; border-bottom: 0; border-left: 3px solid transparent; }
  .nav a.is-active { border-left-color: var(--cyan); }

  /* boxy z hlavičky se vedle loga nevejdou -> celá šířka pod ním */
  .header__in { flex-wrap: wrap; gap: 16px; }
  .headboxes { max-width: none; flex-basis: 100%; }
}

@media (max-width: 1180px) {
  .services, .training-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--listing { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .triple { grid-template-columns: 1fr; }
  .split--sidebar { grid-template-columns: 1fr 300px; gap: 36px; }
  .hero__in { gap: 32px; }
}

@media (max-width: 960px) {
  .topbar ul.topbar__sites { display: none; }
  .topbar__in { justify-content: center; }

  /* na telefonu má přednost hlavní sdělení, ne tři boxy nad ním */
  .headboxes { display: none; }

  .hero__in, .hero--service .hero__in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .hero__bg,
  .hero--home .hero__bg, .hero--service .hero__bg, .hero--build .hero__bg {
    position: static; width: 100%; height: 220px; margin-bottom: -8px;
  }
  .hero__bg img,
  .hero--service .hero__bg img, .hero--build .hero__bg img {
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__bg::after { display: none; }
  .hero__card { justify-self: stretch; max-width: none; }
  .features .features__grid, .services--overlap .services { margin-top: 0; }
  .features { padding-top: 32px; }
  .services--overlap { padding-top: 32px; }

  .split, .split--panel-left, .split--sidebar, .split--form, .training-split,
  .numlist--2col { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .usp-strip__in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .features__grid, .services, .blog-grid, .blog-grid--listing,
  .training-grid, .footer__grid, .usp-strip__in { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .article-gallery { grid-template-columns: 1fr; }
  .contact-cards--two { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .panel { padding: 28px 22px; }
  .cta-banner { padding: 22px 20px; }
  .footer__bottom-in { justify-content: center; text-align: center; }
  .btn { width: 100%; justify-content: center; }
  .cta-banner .btn, .hero__actions .btn { width: auto; }
}

@media (max-width: 440px) {
  .topbar ul.topbar__contact { flex-wrap: wrap; justify-content: center; row-gap: 0; }
  .topbar { font-size: 11.5px; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* =============================================================
   Úvodní stránka v režimu výstavby
   ============================================================= */

/* menu je tu jen seznam chystaných sekcí – nikam se neproklikáte */
.navbar--dead { position: static; }
.nav--dead ul { flex-wrap: wrap; }
.nav--dead span {
  display: block; padding: 18px 15px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  border-bottom: 3px solid transparent;
}
.nav--dead span.is-active { color: var(--white); border-bottom-color: var(--cyan); }

.hero--build .hero__in { grid-template-columns: 1.32fr .78fr; padding-top: 54px; padding-bottom: 60px; }
.hero--build .hero__bg { width: 62%; }
.hero--build h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; }
.hero--build .hero__text { margin-top: 22px; max-width: 30em; font-size: 19px; line-height: 1.55; color: #33456b; }

/* čtveřice drobných benefitů pod textem */
.buildfeats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; max-width: 820px; }
.buildfeat { display: flex; gap: 10px; align-items: flex-start; padding: 0 18px; border-left: 1px solid #cfdff5; }
.buildfeat:first-child { padding-left: 0; border-left: 0; }
.buildfeat:last-child { padding-right: 0; }
.buildfeat .ico { color: var(--blue); width: 22px; height: 22px; flex: none; margin-top: 1px; }
.buildfeat:last-child .ico { color: var(--green); }
.buildfeat span { font-size: 12.5px; line-height: 1.5; color: var(--gray); }
.buildfeat strong { display: block; font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }

/* tmavý panel s oznámením a přihláškou */
.buildpanel {
  justify-self: end; width: 100%; max-width: 390px;
  background: var(--navy-panel); color: var(--white);
  border-radius: 14px; box-shadow: 0 22px 50px rgba(4, 18, 46, .42);
  padding: 34px 30px 32px; text-align: center;
}
.buildpanel__sign { display: block; width: 70px; height: 70px; margin: 2px auto 18px; }
.buildpanel__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.16; letter-spacing: .01em; text-transform: uppercase; }
.buildpanel__text { margin-top: 16px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.buildpanel__ask { margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--green-light); }
.buildpanel__thanks { display: block; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--green-light); }

.subscribe { display: block; margin-top: 16px; text-align: left; }
.subscribe__form { display: grid; gap: 12px; }
.subscribe__row { display: grid; gap: 12px; }
.subscribe__row input[type="email"] {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid transparent; border-radius: 8px; background: var(--white);
}
.subscribe__row input[type="email"]::placeholder { color: var(--faint); }
.subscribe__row input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41, 168, 224, .35); }
.subscribe__row .btn { width: 100%; justify-content: center; padding: 15px; }
.subscribe__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.subscribe__consent input { margin-top: 2px; accent-color: var(--cyan); flex: none; }
.subscribe__consent a { color: #9fd4f8; }
.subscribe__msg { font-size: 13px; font-weight: 700; }
.subscribe__msg--ok { color: var(--green-light); }
.subscribe__msg--err { color: #ffb4b4; }
.subscribe__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* přihláška uvnitř světlé karty (výpis blogu) */
.news-card .subscribe { margin-top: 0; }
.news-card .subscribe__consent { color: rgba(255, 255, 255, .78); }

/* bílá karta s obsahem portálu – přesahuje nahoru přes hero */
.portal { background: var(--tint); padding: 0 0 46px; }
.portal__card {
  position: relative; z-index: 3; margin-top: -40px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-card); padding: 32px 36px 36px;
}
.portal__title {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; text-align: center;
}
.portal__title::before,
.portal__title::after { content: ""; width: 58px; height: 3px; border-radius: 2px; flex: none; }
.portal__title::before { background: linear-gradient(90deg, #1560d4, #29a8e0); }
.portal__title::after { background: linear-gradient(90deg, #29a8e0, #2aa54b); }
.portal__lead { max-width: 64ch; margin: 10px auto 0; text-align: center; font-size: 14.5px; line-height: 1.55; color: var(--gray); }
.portal__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 28px; }
.portal__item { padding: 0 20px; text-align: center; border-left: 1px solid var(--line-soft); }
.portal__item:first-child { border-left: 0; }
.portal__item .ico { width: 30px; height: 30px; color: var(--blue); margin: 0 auto; }
.portal__item strong { display: block; margin: 12px 0 6px; font-size: 15px; font-weight: 800; color: var(--navy); }
.portal__item span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--gray); }

/* modrý pruh s upozorněním na výstavbu */
.buildnote {
  background: var(--tint-cta); border: 1px solid var(--line-cta); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.buildnote__ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; border: 2px solid var(--blue);
}
.buildnote__ico .ico { width: 24px; height: 24px; color: var(--blue); }
.buildnote__text { flex: 1 1 320px; min-width: 0; }
.buildnote__text strong { display: block; font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.buildnote__text span { font-size: 13.5px; line-height: 1.55; color: var(--body); }
.buildnote .btn { flex: none; }

/* patička výstavbové stránky – bez odkazů dál, jen kontakt */
.buildfoot { background: var(--navy-bar); color: #c8d8f0; font-size: 13.5px; padding: 24px 0; }
.buildfoot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.buildfoot a { color: #7ec2f5; }
.buildfoot__in span + span { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- lišta přihlášeného správce ---------- */

.adminbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--navy-nav); color: rgba(255, 255, 255, .82);
  font-size: 12.5px; padding: 9px 18px;
  box-shadow: 0 -4px 18px rgba(4, 18, 46, .3);
}
.adminbar a { color: #7ec2f5; }
.adminbar__tag {
  background: #f0a52a; color: #3d2a00; font-weight: 700;
  border-radius: 4px; padding: 3px 9px; text-transform: uppercase; font-size: 11px; letter-spacing: .04em;
}
.adminbar__tag--live { background: var(--green); color: var(--white); }
.adminbar__who { margin-left: auto; font-weight: 600; color: var(--white); }

@media (max-width: 1280px) {
  /* mrtvé menu nemá hamburger – zalomí se uvnitř tmavého pruhu do víc řádků */
  .nav--dead { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .nav--dead ul { flex-direction: row; padding: 0; }
  .nav--dead span { padding: 10px 9px; font-size: 11px; }
  .navbar--dead .navbar__in { flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
  /* lupa je jen dekorace – ať si na mrtvé stránce nebere vlastní řádek */
  .navbar--dead .navbar__search { display: none; }
}

@media (max-width: 1180px) {
  .hero--build .hero__in { grid-template-columns: 1fr .9fr; }
  .portal__grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .portal__item:nth-child(3n+1) { border-left: 0; }
}

@media (max-width: 960px) {
  .hero--build .hero__in { grid-template-columns: 1fr; }
  .hero--build .hero__bg { width: 100%; }
  .buildpanel { justify-self: stretch; max-width: none; }
  .buildfeats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .buildfeat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .portal__card { margin-top: 24px; padding: 26px 22px 28px; }
  .portal__title { gap: 12px; }
  .portal__title::before, .portal__title::after { width: 32px; }
  .adminbar__who { margin-left: 0; }
}

@media (max-width: 760px) {
  .portal__grid { grid-template-columns: repeat(2, 1fr); }
  .portal__item { padding: 0 14px; }
  .portal__item:nth-child(3n+1) { border-left: 1px solid var(--line-soft); }
  .portal__item:nth-child(2n+1) { border-left: 0; }
  .nav--dead span { padding: 9px 8px; font-size: 10.5px; }
}

@media (max-width: 620px) {
  .portal__grid { grid-template-columns: 1fr; row-gap: 24px; }
  /* stejná specifičnost jako pravidla pro dva sloupce výš, jinak by předěl přežil */
  .portal__item, .portal__item:first-child,
  .portal__item:nth-child(2n+1), .portal__item:nth-child(3n+1) { border-left: 0; padding: 0; }
  .buildfeats { grid-template-columns: 1fr; }
  .buildfeat, .buildfeat:nth-child(odd) { padding: 0; border-left: 0; }
  .buildpanel { padding: 30px 22px; }
  .buildnote { padding: 20px; }
  .buildnote .btn { width: 100%; justify-content: center; }
}
