/* ==========================================================================
   PoveComp — hlavní styl
   Barvy vychází z loga: modrá #035399, oranžová #FE5702
   ========================================================================== */

:root {
  --blue:        #035399;
  --blue-dark:   #023a6c;
  --blue-light:  #e8f1fa;
  --orange:      #fe5702;
  --orange-dark: #d94800;
  --orange-light:#fff1e9;

  --ink:      #14202c;
  --body:     #4a5a6a;
  --muted:    #74838f;
  --line:     #e2e8ee;
  --bg:       #ffffff;
  --bg-soft:  #f6f9fc;

  --radius:   14px;
  --radius-sm: 9px;
  --shadow:   0 1px 2px rgba(20,32,44,.05), 0 8px 24px -12px rgba(20,32,44,.14);
  --shadow-lg:0 2px 4px rgba(20,32,44,.05), 0 24px 48px -20px rgba(20,32,44,.22);

  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

/* --- layout --------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--blue {
  background: linear-gradient(160deg, var(--blue-dark), var(--blue));
  color: #cfe0ef;
}
.section--blue h2, .section--blue h3 { color: #fff; }

.lead { font-size: 1.15rem; color: var(--body); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .8em;
}
.section--blue .eyebrow { color: #ff9a5e; }

.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); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--onblue { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.35); }
.btn--onblue:hover { background: #fff; color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .97rem;
  font-weight: 550;
}
.nav a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-light); }
.nav .btn { margin-left: 10px; padding: 10px 20px; font-size: .95rem; }
.nav .btn:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(6px); }
.nav-toggle span { position: relative; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(254,87,2,.10), transparent 62%),
    radial-gradient(760px 460px at 6% 6%, rgba(3,83,153,.10), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.2rem; max-width: 34em; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 550;
  color: var(--ink);
  margin: 0;
}
.hero-points svg { flex: none; margin-top: 4px; color: var(--orange); }

.page-hero {
  background:
    radial-gradient(700px 340px at 85% -20%, rgba(254,87,2,.09), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 5vw, 72px);
}
.page-hero .lead { max-width: 44em; margin-bottom: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* --- cards ---------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-link { display: block; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cbd8e4; }
.card-link .more { color: var(--blue); font-weight: 600; font-size: .95rem; }

.icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 16px;
}
.icon--orange { background: var(--orange-light); color: var(--orange); }

/* --- stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: .95rem; }

/* --- služby: detail ------------------------------------------------------- */
.service {
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.service-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.service-head .icon { margin-bottom: 0; flex: none; }
.service-head h2 { font-size: 1.55rem; margin-bottom: .2em; }
.service-head p { margin: 0; color: var(--muted); }
.service-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
.service-body ul { list-style: none; padding: 0; margin: 0; }
.service-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .55em;
}
.service-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.service-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: .96rem;
}
.service-aside h4 { margin: 0 0 .5em; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.service-aside p:last-child { margin-bottom: 0; }

/* --- balíčky (přepínač) --------------------------------------------------- */
.switch {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  color: var(--body);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.switch button:hover { color: var(--ink); }
.switch button[aria-selected="true"] { background: var(--blue); color: #fff; }

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.plan--featured { border-color: var(--orange); box-shadow: var(--shadow-lg); position: relative; }
.plan--featured::after {
  content: "Nejčastější volba";
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .15em; }
.plan .plan-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.plan .price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.plan .price small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; font-size: .97rem; }
.plan ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.plan ul li::before {
  content: "";
  position: absolute; left: 3px; top: .38em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: inset 0 0 0 2px var(--blue);
}
.plan .btn { margin-top: auto; justify-content: center; }

.placeholder {
  color: var(--orange-dark);
  background: var(--orange-light);
  border-radius: 5px;
  padding: 0 5px;
  font-weight: 600;
  overflow-wrap: break-word;
}

/* --- tým ------------------------------------------------------------------ */
.person {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.person-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  color: var(--blue);
  text-align: center;
  font-size: .85rem;
}
/* rámeček a odsazení jen dokud tam je zástupný text (placeholder) — jakmile
   je uvnitř skutečná fotka <img>, zmizí a fotka vyplní celý rámeček */
.person-photo:not(:has(img)) {
  padding: 16px;
  border: 1px dashed rgba(3,83,153,.35);
}
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person .role { color: var(--orange); font-weight: 600; margin-bottom: .8em; }
.person h2 { font-size: 1.6rem; margin-bottom: .1em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: .85rem;
  font-weight: 550;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--body);
}
.person-contact { margin-top: 20px; font-size: .95rem; display: grid; gap: 4px; }

/* --- formulář ------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3,83,153,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: auto; margin-top: 3px; flex: none; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.ok { background: var(--blue-light); color: var(--blue-dark); }

.info-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.info-box h3 { font-size: 1.1rem; }
.info-list { list-style: none; padding: 0; margin: 0; font-size: .97rem; }
.info-list li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; overflow-wrap: anywhere; }
.info-list li:last-child { border-bottom: 0; }
.info-list dt, .info-list .k { color: var(--muted); }

/* --- CTA pruh ------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band p { max-width: 40em; margin-inline: auto; margin-bottom: 28px; }
.cta-band .btn-row { justify-content: center; }

/* --- footer --------------------------------------------------------------- */
.site-footer {
  background: #0d1a26;
  color: #93a4b3;
  font-size: .95rem;
  padding-block: 56px 28px;
}
.site-footer a { color: #cddae6; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55em; }
.site-footer .brand img { height: 26px; filter: none; }
.footer-about p { margin-top: 16px; max-width: 30em; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .88rem;
  color: #74879a;
}

/* --- utility -------------------------------------------------------------- */
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.skip-link {
  position: absolute; left: -9999px;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-body { grid-template-columns: 1fr; gap: 22px; }
  .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .person { grid-template-columns: 1fr; gap: 22px; }
  .person-photo { max-width: 260px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .switch { display: flex; width: 100%; }
  .switch button { flex: 1; padding: 10px 8px; font-size: .9rem; }
  .plan--featured { margin-top: 14px; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .info-list .k { font-size: .85rem; }
}

/* --- právní texty (zásady zpracování osobních údajů apod.) ---------------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: .7em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.25em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); font-weight: 600; }
.legal table + p { margin-top: -0.6em; }

.editorial-note {
  background: var(--orange-light);
  border: 1px dashed rgba(254, 87, 2, .4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 1.4em 0;
  font-size: .93rem;
}
.editorial-note p, .editorial-note ul { margin-bottom: .6em; }
.editorial-note p:last-child, .editorial-note ul:last-child { margin-bottom: 0; }
.editorial-note .label { display: block; color: var(--orange-dark); font-weight: 700; margin-bottom: .4em; }

@media (max-width: 700px) {
  .legal table, .legal thead, .legal tbody, .legal th, .legal td, .legal tr { display: block; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 8px 0; }
  .legal td { border: 0; padding: 4px 12px; }
  .legal td::before { content: attr(data-th); display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
}

/* --- cookie lišta ----------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: #d7e0e8;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-inner {
  padding-block: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-bar-inner p { font-size: .92rem; flex: 1 1 320px; }
.cookie-bar-inner a { color: #fff; text-decoration: underline; }
.cookie-bar-inner .btn { flex: none; }
@media (max-width: 560px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-bar-inner .btn { width: 100%; justify-content: center; }
}
