/* ==========================================================================
   BOZPdoKapsy.online — redesign uvodni stranky (navrh Uvod.dc.html)
   Modro-zelena paleta, Figtree + Source Sans 3, obsahova sirka 1672 px.
   Uvodka nacita jen tento soubor (ne style.css), takze je tu i reset,
   vyhledavani a lista spravce, kterou do HTML dopisuje _lib/render.php.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900:   #001F4D;
  --navy-800:   #012354;
  --navy-700:   #00337E;
  --blue-600:   #005BD1;
  --blue:       #0B5BE0;
  --blue-bright:#0083F8;
  --blue-accent:#155FF8;
  --green:      #57A946;
  --green-light:#6FCB63;
  --green-deep: #3E9E45;

  /* Text */
  --head:       #062557;
  --head-alt:   #0B2A5B;
  --body:       #3E4C66;
  --body-soft:  #4A5A75;
  --body-mid:   #4F5D77;
  --muted:      #6B7891;

  /* Plochy */
  --surface:    #F2F7FC;
  --card:       #FCFDFF;
  --border:     #E4EBF4;
  --line:       #EAEFF6;
  --line-strong:#D8E2EF;

  /* Typografie */
  --font-display: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1672px;
  --pad: 20px;
  --ring: 0 0 0 3px rgba(11,91,224,.35);
  --ring-dark: 0 0 0 3px rgba(111,203,99,.55);
}

/* ----------------------------------------------------------- Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--font-display); color: var(--head); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, button { font-family: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

.page { min-width: 0; overflow-x: hidden; }
.shell { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ico { flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- Utilbar */
/* Rozcestnik na sesterske domeny + kontaktni e-mail. */
.utilbar {
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-700) 45%, var(--blue-600) 100%);
  color: #fff;
}
.utilbar .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2px 16px; flex-wrap: wrap; min-height: 38px;
}
.utilbar__sites { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.utilbar__sites a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.9); font-size: 14px;
  padding: 9px 18px; white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.utilbar__sites a:hover { color: #fff; background: rgba(255,255,255,.08); }
.utilbar__sites .is-self {
  color: #fff; font-weight: 600;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 -3px 0 var(--blue-bright);
}
.utilbar__mail {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-size: 14px; padding: 9px 6px; white-space: nowrap;
}
.utilbar__mail:hover { color: var(--green-light); }

/* -------------------------------------------------------------- Masthead */
.masthead { background: #fff; }
.masthead .shell {
  padding-top: var(--pad); padding-bottom: var(--pad);
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 20px; flex: none; }
.brand__mark { width: 104px; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: 6px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  line-height: 1; color: var(--head-alt); letter-spacing: -.015em;
}
.brand__tag {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--blue);
}
.brand__note { font-size: 17px; color: var(--body-mid); }

.usps { display: flex; gap: 18px; margin-left: auto; flex: 1 1 640px; min-width: 0; }
.usp {
  flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 22px;
}
.usp__ico { width: 36px; height: 36px; }
.usp__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.usp__title {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--head-alt);
}
.usp__sub { font-size: 15px; color: var(--muted); }

/* ----------------------------------------------------------- Hlavni menu */
.mainnav { background: var(--navy-900); position: sticky; top: 0; z-index: 40; }
.mainnav .shell { display: flex; align-items: center; gap: 8px; }
.mainnav__links { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.mainnav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.88); padding: 19px 22px;
  transition: color .16s ease, box-shadow .16s ease;
}
.mainnav__links a:hover { color: #fff; box-shadow: inset 0 -4px 0 rgba(0,131,248,.55); }
.mainnav__links a[aria-current="page"] {
  font-weight: 700; color: #fff; box-shadow: inset 0 -4px 0 var(--blue-bright);
}
.mainnav__search {
  margin-left: auto; flex: none; display: flex;
  background: none; border: 0; cursor: pointer; color: #fff; padding: 10px;
  transition: color .16s ease;
}
.mainnav__search:hover { color: var(--blue-bright); }
.mainnav__panel {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}
.mainnav__panel .search { max-width: 560px; margin-left: auto; }

/* ------------------------------------------------------------ Vyhledavani */
.search { position: relative; }
.search__field {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.search__ico { width: 20px; height: 20px; color: var(--muted); }
.search__field input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 16px; color: var(--body);
}
.search__field input::placeholder { color: var(--muted); }
.search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__field button {
  flex: none; display: flex; border: 0; background: none; padding: 4px;
  cursor: pointer; color: var(--blue);
}
.search__field button:hover { color: var(--green); }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,31,77,.18); overflow: hidden;
}
.search__results a {
  display: block; padding: 11px 14px; color: var(--head-alt);
  border-bottom: 1px solid var(--line);
}
.search__results a:last-child { border-bottom: 0; }
.search__results a:hover, .search__results a.is-active { background: var(--surface); }
.search__results .r-title { display: block; font-weight: 600; line-height: 1.4; }
.search__results .r-cat { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.search__results .r-note { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.search__results mark { background: #DCEAFB; color: inherit; border-radius: 2px; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero__bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 38%;
  width: 62%; height: 100%; object-fit: cover; object-position: center right; z-index: 0;
}
/* Brandovy podklad misto fotky: barevny zavoj v prave polovine + znacka
   jako vodoznak. Lezi na stejnem miste jako .hero__bg, takze fotku staci
   pridat zpet a nic dalsiho se menit nemusi. */
.hero__wash {
  position: absolute; top: 0; right: 0; bottom: 0; left: 38%; z-index: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(111,203,99,.30) 0%, rgba(111,203,99,0) 62%),
    radial-gradient(130% 110% at 78% 100%, rgba(0,131,248,.34) 0%, rgba(0,131,248,0) 66%),
    linear-gradient(140deg, rgba(0,51,126,.14) 0%, rgba(0,91,209,.10) 48%, rgba(87,169,70,.14) 100%);
}
/* Znacka vybiha z praveho dolniho rohu - pusobi jako zamerny motiv,
   ne jako obrazek, ktery se nevesel. */
.hero__watermark {
  position: absolute; right: -6%; bottom: -14%; z-index: 0;
  width: min(42%, 560px); height: auto;
  opacity: .06; pointer-events: none; user-select: none;
}

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    var(--surface) 0%, var(--surface) 34%,
    rgba(242,247,252,.94) 46%, rgba(242,247,252,.72) 58%,
    rgba(242,247,252,.3) 74%, rgba(242,247,252,0) 96%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 40px 52px; align-items: flex-start;
  padding-top: 52px;
}
.hero__copy { padding-top: 14px; flex: 1 1 560px; min-width: 0; }
.hero__eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-accent); margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(34px, 3.4vw, 47px); font-weight: 700; line-height: 1.16;
  letter-spacing: -.02em; margin-bottom: 26px;
}
.hero__title .grad {
  background: linear-gradient(90deg, var(--blue) 0%, #1667D3 42%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: 19.5px; line-height: 1.62; color: var(--body-soft);
  max-width: 44ch; margin-bottom: 36px;
}

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 26px 0; max-width: 790px;
}
.facts__item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 26px; border-right: 1px solid var(--line-strong);
}
.facts__item:first-child { padding-left: 0; }
.facts__item:last-child { padding-right: 0; border-right: 0; }
.facts__ico { width: 28px; height: 28px; }
.facts__title {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--head-alt);
}
.facts__sub { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------- Panel "ve vystavbe" */
.build {
  background: linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 60%, #002357 100%);
  border-radius: 14px; padding: 32px 34px 34px; text-align: center;
  box-shadow: 0 26px 60px rgba(0,31,77,.30);
  flex: 1 1 340px; max-width: 400px; margin: 0 auto;
}
/* Inline SVG - pomer stran drzime explicitne, at ho nemusi dopocitat prohlizec. */
.build__ico { display: block; width: 80px; height: auto; aspect-ratio: 120 / 160; margin: 0 auto 14px; }
.build__title {
  color: #fff; font-weight: 700; font-size: 31px; line-height: 1.16;
  letter-spacing: .005em; text-transform: uppercase; margin-bottom: 16px;
}
.build__lead { font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.86); margin-bottom: 16px; }
.build__ask {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--green-light); margin-bottom: 18px;
}
.build__note { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.66); margin-top: 16px; }
.build__thanks {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--green-light); margin-top: 12px;
}

/* ------------------------------------------------ Karta "Beta testovani" */
.betacard {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 60%, #002357 100%);
  border-radius: 14px; padding: 36px 34px 40px; text-align: center; color: #fff;
  box-shadow: 0 26px 60px rgba(0,31,77,.30);
  flex: 1 1 340px; max-width: 460px; margin: 0 auto;
}
.betacard__ico { display: block; width: 54px; height: 54px; margin: 0 auto 18px; color: var(--blue-bright); }
.betacard__title { color: #fff; font-weight: 700; font-size: 25px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 12px; }
.betacard__lead { font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.86); margin-bottom: 14px; }
.betacard__ask { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--green-light); margin-bottom: 22px; }
.betacard__btn {
  display: block; width: 100%; padding: 17px 20px; border-radius: 8px; color: #fff;
  background: linear-gradient(90deg, #0052E0 0%, #1B72C8 52%, #66B843 100%);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .05em; text-transform: uppercase;
  transition: filter .16s ease, transform .16s ease;
}
.betacard__btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.betacard__note { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.66); margin-top: 16px; }
.betacard__note a { color: rgba(255,255,255,.9); text-decoration: underline; }
.betacard__stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(135deg, #0083F8 0 14px, #1CA79E 14px 28px, #6FCB63 28px 42px);
}
.mainnav__beta {
  margin-left: auto; flex: none; padding: 10px 18px; border-radius: 8px; background: var(--blue-bright); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase;
  transition: filter .16s ease;
}
.mainnav__beta:hover { filter: brightness(1.1); text-decoration: none; }
.mainnav__beta + .mainnav__search { margin-left: 4px; }

/* -------------------------------------------- Panel "Co na portalu najdete" */
.portal {
  position: relative; z-index: 2;
  background: #fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 40px rgba(0,31,77,.08);
  padding: 44px clamp(20px, 3vw, 60px) 52px;
  margin: 44px clamp(0px, 6vw, 100px) 0;
}
.portal__head { display: flex; align-items: center; justify-content: center; gap: 26px; margin-bottom: 10px; }
.portal__rule { height: 3px; flex: 0 1 130px; }
.portal__rule--l { background: linear-gradient(90deg, rgba(11,91,224,0), var(--blue)); }
.portal__rule--r { background: linear-gradient(90deg, var(--green), rgba(87,169,70,0)); }
.portal__title { font-size: clamp(24px, 2.3vw, 31px); font-weight: 700; text-align: center; white-space: nowrap; }
.portal__lead { text-align: center; font-size: 18px; color: var(--muted); margin-bottom: 38px; }
.portal__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px 0;
}
.portal__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 4px 26px; border-right: 1px solid var(--line); color: inherit;
  transition: transform .16s ease;
}
.portal__item:last-child { border-right: 0; }
.portal__item:hover { transform: translateY(-3px); }
.portal__item:hover .portal__name { color: var(--blue); }
.portal__ico { width: 40px; height: 40px; }
.portal__name {
  font-family: var(--font-display); font-weight: 700; font-size: 18.5px;
  color: var(--head-alt); transition: color .16s ease;
}
.portal__sub { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- Paticka */
.site-footer { background: var(--navy-900); color: #fff; }
.site-footer .shell {
  padding-top: 26px; padding-bottom: 26px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 34px;
}
.footer-brand { flex: none; display: flex; align-items: center; gap: 14px; }
.footer-brand__mark { width: 46px; height: auto; flex: none; opacity: .95; }
.footer-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.footer-brand__name i { font-style: normal; color: var(--green-light); }
.footer-brand__copy { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 auto; }
.footer-nav a { font-size: 14.5px; color: rgba(255,255,255,.82); }
.footer-nav a:hover { color: var(--green-light); }
.footer-mail {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-size: 14.5px;
}
.footer-mail:hover { color: var(--green-light); }

/* ----------------------------------------------------------- Lista spravce */
/* Dopisuje ji _lib/render.php prihlasenemu uzivateli tesne pred </body>. */
.adminbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  background: var(--navy-800); color: rgba(255,255,255,.85);
  font-size: 13px; padding: 9px 18px;
  box-shadow: 0 -4px 18px rgba(0,0,0,.22);
}
.adminbar a { color: var(--green-light); font-weight: 600; }
.adminbar a:hover { color: #fff; }
.adminbar .odhlasit { display: contents; }
.adminbar__odhlasit { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--green-light); cursor: pointer; }
.adminbar__odhlasit:hover { color: #fff; }
.adminbar__tag {
  background: var(--blue-bright); color: #04203F; border-radius: 3px; padding: 3px 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em;
}
.adminbar__tag--live { background: var(--green); color: #fff; }
.adminbar__sp { margin-left: auto; }

/* ------------------------------------------------------------ Responsivita */
/* Navrh sam sebe lame pres flex-wrap, auto-fit gridy a clamp(), takze tady
   zustava jen to, co v inline stylech navrhu vyjadrit nejde. */

@media (max-width: 1400px) {
  .mainnav__links a { padding: 19px 16px; }
}

/* Kdyz se karta zalomi pod text, foto uz neni jen vpravo - zavoj musi
   prekryt celou sirku, jinak text lezi primo na fotce. */
@media (max-width: 1100px) {
  .hero__bg { left: 0; width: 100%; }
  .hero__wash { left: 0; }
  .hero__watermark { display: none; }
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(242,247,252,.95) 0%, rgba(242,247,252,.88) 45%, rgba(242,247,252,.97) 100%);
  }
  .hero__inner { padding-top: 44px; }
  .utilbar__sites a { padding: 8px 14px; }
  .usps { flex: 1 1 100%; margin-left: 0; }
}

@media (max-width: 860px) {
  .masthead .shell { gap: 22px; }
  .brand { gap: 16px; }
  .brand__mark { width: 76px; }
  .brand__name { font-size: 27px; }
  .brand__note { font-size: 15px; }
  .usps { flex-wrap: wrap; gap: 12px; }
  .usp { flex: 1 1 220px; padding: 16px 18px; }
  /* Menu se lame do vice radku, tlacitko hledani zustava vpravo nahore. */
  .mainnav .shell { align-items: flex-start; }
  .mainnav__links a { padding: 15px 14px; font-size: 13.5px; }
  .mainnav__search { padding: 14px 6px; }
  .mainnav__panel .search { max-width: none; }
}

/* Pod 620 px stoji dlazdice v jednom sloupci - svisle cary uz nedelí nic. */
@media (max-width: 620px) {
  .utilbar .shell { justify-content: flex-start; }
  .utilbar__sites a { padding: 8px 12px; font-size: 13.5px; }
  .utilbar__mail { font-size: 13.5px; }
  .usp { flex: 1 1 100%; }
  .hero__eyebrow { font-size: 15px; margin-bottom: 18px; }
  .hero__lead { font-size: 17.5px; margin-bottom: 28px; }
  .facts__item, .portal__item { border-right: 0; padding-left: 0; padding-right: 0; }
  .build { padding: 26px 22px 28px; }
  .build__title { font-size: 26px; }
  .portal__head { gap: 14px; }
  .portal__rule { flex: 0 1 40px; }
  .portal__lead { font-size: 16.5px; margin-bottom: 28px; }
  .footer-nav { margin: 0; gap: 8px 20px; }
}

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