/* ==========================================================================
   Cloud Partner — hlavní styl webu
   Tokeny a komponenty vycházejí ze schváleného mockupu
   (docs/zadani/mockup-homepage.html) a z 03-design-manual.md.
   Breakpointy: 400 / 640 / 900 / 1024 / 1200 px, mobile-first doplňky.
   ========================================================================== */

:root {
  --brand: #359af2;
  --brand-dark: #0339a6;
  --brand-darker: #022b80;      /* hover primárních tlačítek (ztmavení 8 %) */
  --ink: #0b1e3f;
  --ink-soft: #4a5872;
  --bg: #ffffff;
  --bg-alt: #f2f7fd;
  --bg-dark: #062659;
  --line: #dbe4f0;
  --ok: #1a9c6b;
  --warn: #c8401a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;   /* pojistka proti horizontálnímu scrollu */
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(32px, 4.6vw, 40px); }
h2 { font-size: clamp(26px, 3.2vw, 32px); margin-bottom: 12px; }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
strong, b { font-weight: 600; }

/* přístupnost: viditelný focus všude */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-dark); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skiplink:focus { left: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-sm { padding: 64px 0; }

.kicker {
  color: var(--brand-dark); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.lead { color: var(--ink-soft); font-size: 19px; max-width: 68ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }

/* --- tlačítka ------------------------------------------------------------ */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 16px; font-family: inherit; cursor: pointer;
  border: 0; text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-darker); color: #fff; }
.btn-outline { border: 2px solid var(--brand-dark); color: var(--brand-dark); background: none; }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* --- Microsoft badge ------------------------------------------------------
   Nativní poměr stran, žádný vlastní rámeček ani radius (PNG má vlastní
   bílou kartu). Rozměry vždy z rozměrů souboru — 03-design-manual.md kap. 3. */
.msbadge-img { margin-bottom: 18px; }
.msbadges { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.msbadges img { flex: none; }

/* --- horní lišta ---------------------------------------------------------- */
.topbar { background: var(--bg-dark); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--brand); }
.topbar .left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar .left svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.topbar .right { display: flex; gap: 18px; align-items: center; }
.topbar .lang a { padding: 0 3px; }
.topbar .lang a.active { color: #fff; font-weight: 700; }

/* --- hlavička ------------------------------------------------------------- */
header.site {
  position: sticky; top: 0; background: #fff; z-index: 50;
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgb(3 57 166 / 5%);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo img { height: 38px; width: auto; }

nav.main { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 16px; }
nav.main a { color: var(--ink); }
nav.main a:hover { color: var(--brand-dark); text-decoration: none; }
nav.main a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }
nav.main .cta { background: var(--brand-dark); color: #fff; padding: 10px 22px; border-radius: 8px; }
nav.main .cta:hover { background: var(--brand-darker); color: #fff; }

/* rozbalovací menu Služby — hover i focus-within, na dotyku klik (JS) */
.dd { position: relative; }
.dd > .has-sub { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: 0; }
.dd > .has-sub::after { content: "▾"; font-size: 11px; color: var(--brand); }
.ddm { position: absolute; top: 100%; left: -16px; padding-top: 14px; display: none; z-index: 60; }
.ddm .inner {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgb(3 57 166 / 12%); padding: 10px; min-width: 280px;
}
.ddm a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.ddm a:hover { background: var(--bg-alt); color: var(--brand-dark); text-decoration: none; }
.dd:hover .ddm, .dd:focus-within .ddm, .dd.open .ddm { display: block; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 4px; }
.burger svg { width: 28px; height: 28px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }

/* --- mobilní menu --------------------------------------------------------- */
.mmenu { position: fixed; inset: 0; background: #fff; z-index: 90; display: none; overflow-y: auto; padding: 24px; }
.mmenu.open { display: block; }
.mmenu .mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mmenu .mhead img { height: 34px; width: auto; }
.mmenu .close { background: none; border: 0; cursor: pointer; padding: 8px; }
.mmenu .close svg { width: 26px; height: 26px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }
.mmenu nav a { display: block; padding: 13px 4px; font-size: 19px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mmenu nav a:hover { text-decoration: none; }
.mmenu nav a.sub { font-size: 16px; font-weight: 400; padding-left: 20px; color: var(--ink-soft); }
.mmenu .mcta { display: block; text-align: center; background: var(--brand-dark); color: #fff; border-radius: 8px; padding: 14px; font-weight: 600; margin-top: 22px; }
.mmenu .mport { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.mmenu .mport a { color: var(--brand-dark); font-weight: 500; }
body.menu-open { overflow: hidden; }

/* --- jazyková nabídková lišta (Accept-Language) --------------------------- */
.langbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 14px; }
.langbar .container { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.langbar .close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-soft); font: inherit; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7fbff 0%, #fff 100%); }
.hero .container { padding-top: 88px; padding-bottom: 96px; position: relative; }
.hero h1 { font-size: clamp(32px, 4.6vw, 44px); max-width: 640px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero p { max-width: 560px; margin-bottom: 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-decor { position: absolute; right: 20px; top: 50%; transform: translateY(-52%); width: 480px; pointer-events: none; }
.hero-art { width: 100%; height: auto; animation: ha-float 9s ease-in-out infinite; }
.ha-cloud { fill: var(--brand); opacity: .15; }
.ha-chev { fill: var(--brand-dark); transform-box: fill-box; transform-origin: center; }
.ha-c1 { opacity: .25; animation: ha-go 3.6s ease-in-out infinite; }
.ha-c2 { opacity: 0; animation: ha-trail 3.6s ease-in-out infinite; }
@keyframes ha-go   { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(16px); } }
@keyframes ha-trail{ 0% { transform: translateX(-46px); opacity: 0; } 45% { opacity: .16; } 55% { opacity: .16; } 100% { transform: translateX(-18px); opacity: 0; } }
@keyframes ha-float{ 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* hero na podstránkách */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .container { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { max-width: 26ch; margin-bottom: 14px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.breadcrumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }

/* --- trust bar ------------------------------------------------------------ */
.trust { border-top: 1px solid var(--line); background: #fff; }
.trust .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.trust .item { text-align: center; }
.trust .num { font-size: 32px; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.trust .lbl { color: var(--ink-soft); font-size: 15px; }

/* --- karty ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px;
  transition: border-color .18s ease, box-shadow .18s ease; min-width: 0;
}
.card:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgb(3 57 166 / 8%); }
.card .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .ico svg { width: 26px; height: 26px; stroke: var(--brand-dark); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.card .more { font-weight: 600; font-size: 15px; }
.card .more::after { content: " »"; color: var(--brand); }

/* --- pilíře --------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pillar h3 span {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.pillar p { color: var(--ink-soft); font-size: 16px; }

/* --- certifikační box ----------------------------------------------------- */
.certbox { margin-top: 64px; border: 1px solid var(--line); border-radius: 16px; padding: 40px; background: var(--bg-alt); }
.certbox .head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; justify-content: space-between; }
.certbox h3 { font-size: 22px; }
.certbox .head p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.chip svg { width: 15px; height: 15px; stroke: var(--brand-dark); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.partners { margin-top: 20px; color: var(--ink-soft); font-size: 14px; }
.partners b { color: var(--ink); font-weight: 600; }

/* --- reference ------------------------------------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; min-width: 0; }
.quote p { font-size: 16px; margin-bottom: 16px; }
.quote p::before { content: "„"; }
.quote p::after { content: "“"; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none;
}
.quote .who b { display: block; font-size: 15px; }
.quote .who small { color: var(--ink-soft); }
.empty-note {
  margin-top: 32px; padding: 28px; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--ink-soft); background: #fff;
}

/* --- blog ----------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.post {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease; min-width: 0; display: block; color: inherit;
}
.post:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgb(3 57 166 / 8%); text-decoration: none; }
.post .thumb { height: 150px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); position: relative; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .thumb svg { position: absolute; right: 16px; bottom: 12px; width: 64px; height: 64px; opacity: .35; fill: #fff; stroke: none; }
.post .body { padding: 22px 24px 26px; }
.post .tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-dark);
  background: var(--bg-alt); border-radius: 99px; padding: 2px 12px; margin-bottom: 10px;
}
.post h3 { font-size: 18px; margin-bottom: 8px; }
.post small { color: var(--ink-soft); }

.blogfilter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.blogfilter a {
  display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.blogfilter a:hover { border-color: var(--brand); text-decoration: none; }
.blogfilter a.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 42px; text-align: center; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; background: #fff;
}
.pagination .current { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; font-weight: 600; }

/* --- článek --------------------------------------------------------------- */
.article-meta { color: var(--ink-soft); font-size: 15px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 96px; }

/* --- textový obsah (WYSIWYG) --------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 28px); margin-top: 44px; margin-bottom: 4px; }
.prose h3 { font-size: 20px; margin-top: 32px; margin-bottom: 4px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; color: var(--ink-soft); font-size: 19px;
}
.prose img, .prose picture { border-radius: 12px; }
.prose figure figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.prose code {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 15px;
}
.prose pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 600; }
.prose-wide { max-width: none; }
.table-scroll { overflow-x: auto; }

/* --- kroky spolupráce ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; counter-reset: step; }
.step { min-width: 0; }
.step .n {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 16px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 800px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer > * + * { margin-top: 14px; }

/* --- CTA pás -------------------------------------------------------------- */
.ctaband { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; }
.ctaband .container { padding: 72px 24px; text-align: center; position: relative; }
.ctaband h2 { color: #fff; margin-bottom: 10px; }
.ctaband p { color: rgba(255, 255, 255, .75); max-width: 60ch; margin: 0 auto 30px; }
.ctaband .btn { background: #fff; color: var(--brand-dark); }
.ctaband .btn:hover { background: var(--brand); color: #fff; }
.ctaband .decor {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  width: 280px; height: 192px; color: #fff; opacity: .08;
}

/* --- formuláře ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 0;
}
.field .err { color: var(--warn); font-size: 14px; }
.field .hint { color: var(--ink-soft); font-size: 14px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--warn); }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--brand-dark); }

/* honeypot — pro člověka neviditelný, pro robota lákavý */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; font-size: 16px; }
.alert-ok { background: rgb(26 156 107 / 10%); border: 1px solid var(--ok); color: #0f6647; }
.alert-err { background: rgb(200 64 26 / 8%); border: 1px solid var(--warn); color: var(--warn); }

.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.aside-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.aside-card h3 { font-size: 20px; margin-bottom: 18px; }
.aside-steps { list-style: none; counter-reset: s; }
.aside-steps li { position: relative; padding-left: 42px; margin-bottom: 20px; }
.aside-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.aside-steps b { display: block; }
.aside-steps span { color: var(--ink-soft); font-size: 15px; }

/* --- kontakt -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #fff; min-width: 0; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact-card .ico svg { width: 22px; height: 22px; stroke: var(--brand-dark); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 16px; }
.map-link { display: block; margin-top: 40px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }

/* --- kariéra -------------------------------------------------------------- */
.joblist { display: grid; gap: 16px; margin-top: 40px; }
.job {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.job:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgb(3 57 166 / 8%); }
.job h3 { font-size: 19px; margin-bottom: 4px; }
.job .meta { color: var(--ink-soft); font-size: 15px; }

/* --- newsletter (grid minmax kvůli overflow na mobilu) -------------------- */
.nl {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: 34px 40px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 56px; align-items: center;
}
.nl > * { min-width: 0; }
.nl h4 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.nl p { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 0; }
.nl .nlrow { display: flex; width: 100%; }
.nl input {
  flex: 1; min-width: 0; background: #fff; border: 0; border-radius: 8px 0 0 8px;
  padding: 14px 18px; color: var(--ink); font-size: 15px; font-family: inherit;
}
.nl input::placeholder { color: var(--ink-soft); }
.nl input:focus { outline: 2px solid var(--brand); }
.nl button {
  background: var(--brand-dark); color: #fff; border: 0; border-radius: 0 8px 8px 0;
  padding: 14px 26px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.nl button:hover { background: var(--brand-darker); }
.nl small { display: block; margin-top: 10px; color: rgba(255, 255, 255, .5); font-size: 12.5px; }
.nl small a { color: rgba(255, 255, 255, .6); text-decoration: underline; }
.nl .ok { color: #7fd8ab; font-weight: 600; font-size: 16px; }
.nl .err { color: #ffb4a0; font-weight: 600; font-size: 15px; }

/* --- patička -------------------------------------------------------------- */
footer {
  background: var(--bg-dark); color: rgba(255, 255, 255, .8); font-size: 15px;
  padding-top: 64px; border-top: 1px solid rgba(255, 255, 255, .10);
}
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
footer .cols > div { min-width: 0; }
footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
footer a { color: rgba(255, 255, 255, .8); }
footer a:hover { color: var(--brand); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.flogo img { height: 46px; width: auto; margin-bottom: 14px; }
.ftagline { margin-bottom: 18px; }
.fsoc { display: flex; gap: 12px; margin-top: 16px; }
.fsoc a { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.fsoc a:hover { border-color: var(--brand); }
.fsoc svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, .85); stroke: none; }
.fbottom {
  border-top: 1px solid rgba(255, 255, 255, .15); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255, 255, 255, .55);
}
.fbottom a { color: rgba(255, 255, 255, .55); }
.fbottom button {
  background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .55);
  text-decoration: underline; cursor: pointer;
}

/* --- cookie lišta --------------------------------------------------------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 40px rgb(11 30 63 / 18%); padding: 18px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.cookiebar[hidden] { display: none; }
.cookiebar p { font-size: 14px; color: var(--ink-soft); flex: 1; min-width: 260px; margin: 0; }
.cookiebar p a { text-decoration: underline; }
.cookiebar .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cookiebar .b { border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; font-family: inherit; }
.cookiebar .accept { background: var(--brand-dark); color: #fff; }
.cookiebar .accept:hover { background: var(--brand-darker); }
.cookiebar .decline { background: var(--bg-alt); color: var(--ink); }
.cookiebar .settings { background: none; border: 1px solid var(--line); color: var(--ink); }
.cookiebar .prefs {
  width: 100%; display: none; gap: 22px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; align-items: center;
}
.cookiebar .prefs label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.cookiebar.open .prefs { display: flex; }

/* --- chybová stránka ------------------------------------------------------ */
.errorpage { text-align: center; padding: 96px 0; }
.errorpage .code { font-size: 96px; font-weight: 800; color: var(--brand); line-height: 1; }
.errorpage h1 { margin: 12px 0 14px; }
.errorpage .lead { margin: 0 auto 32px; }

/* ==========================================================================
   Responzivita
   ========================================================================== */
@media (max-width: 1200px) {
  .ctaband .decor { display: none; }
}

@media (max-width: 1024px) {
  .cards, .quotes, .posts, .pillars, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav.main { display: none; }
  .burger { display: block; }
  .hero-decor { display: none; }
  .article-layout, .inquiry-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-aside { position: static; }
}

@media (max-width: 900px) {
  .nl { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; gap: 18px; }
  .certbox .head { justify-content: flex-start; }
  .msbadges { margin-left: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cards, .quotes, .posts, .pillars, .steps, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .trust .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .checks { grid-template-columns: minmax(0, 1fr); }
  .topbar .portals, .topbar .left { display: none; }
  .topbar .container { justify-content: flex-end; }
  .hero .container { padding-top: 56px; padding-bottom: 64px; }
  .certbox { padding: 28px 20px; }
  .aside-card { padding: 24px 20px; }
  .cookiebar { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookiebar .acts { width: 100%; }
  .cookiebar .acts .b { flex: 1; }
}

@media (max-width: 400px) {
  .nl .nlrow { flex-wrap: wrap; gap: 8px; }
  .nl input, .nl button { border-radius: 8px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-art, .ha-c1, .ha-c2 { animation: none; }
  .ha-c2 { opacity: .14; transform: translateX(-40px); }
}

@media print {
  .topbar, header.site, .mmenu, .cookiebar, .ctaband, footer, .burger { display: none !important; }
  body { font-size: 12pt; }
}
