/* ===========================================================
   Branch-vertex — Agentura digitální analytiky
   Archetyp: SPLIT-SCREEN MODERN
   Layout: Flexbox only
   =========================================================== */

:root {
  --ink: #0b1220;
  --ink-soft: #1b2435;
  --paper: #f6f8fc;
  --paper-2: #eef2fa;
  --white: #ffffff;
  --indigo: #4f46e5;
  --indigo-dark: #3a30c4;
  --teal: #10b8a6;
  --amber: #f0b429;
  --line: #d9e0ee;
  --muted: #5a6681;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
  --shadow-soft: 0 12px 30px -18px rgba(15, 23, 42, 0.35);
  --maxw: 1200px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--indigo); text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(79, 70, 229, .08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ===================== AD DISCLOSURE STRIP ===================== */
.ad-strip {
  background: var(--ink);
  color: #c7d0e4;
  font-size: .8rem;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px 16px;
}
.ad-strip strong { color: var(--amber); font-weight: 700; }

/* ===================== NAVIGATION ===================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 14px;
  border-radius: 9px;
  transition: background .18s, color .18s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(79,70,229,.1); color: var(--indigo); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
}
.nav-cta:hover { background: var(--indigo) !important; color:#fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-light { background: #fff; color: var(--ink); }
.text-link {
  font-weight: 700;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, gap .18s;
}
.text-link:hover { border-color: var(--indigo); gap: 10px; }

/* ===================== SPLIT SECTIONS ===================== */
.split {
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(56px, 8vw, 110px) 0;
}
.split.reverse { flex-direction: row-reverse; }
.split-text { flex: 1 1 45%; min-width: 300px; }
.split-media { flex: 1 1 50%; min-width: 300px; }

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(11,18,32,.82);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  max-width: 70%;
}
.media-badge b { color: var(--teal); display:block; font-size: 1.3rem; }

/* ===================== HERO ===================== */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(79,70,229,.14), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(16,184,166,.12), transparent 55%);
}
.hero .split { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 90px); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 44ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.stat {
  flex: 1 1 140px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.stat b { display: block; font-size: 1.7rem; color: var(--indigo); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

.hero-media-stack { position: relative; }
.hero-media-stack .float-card {
  position: absolute;
  right: -14px; top: -22px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  font-weight: 600;
}
.hero-media-stack .float-card .dot { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg,var(--teal),var(--indigo)); }

/* ===================== GENERIC SECTION ===================== */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--white); }
.section.dark {
  background: var(--ink);
  color: #d7deee;
}
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #a5b4fc; background: rgba(165,180,252,.12); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); }
.section.dark .lead { color: #aab6d0; }

/* ===================== CARD ROWS (flex) ===================== */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.card {
  flex: 1 1 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(79,70,229,.4); }
.card .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(79,70,229,.1);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin-bottom: 16px;
}
.card p { color: var(--muted); font-size: .96rem; }

/* ===================== SERVICES / PRICING ===================== */
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.price-card {
  flex: 1 1 320px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .pc-media { height: 158px; background: var(--paper-2); overflow: hidden; }
.price-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.price-card .pc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.price-card h3 { margin-bottom: 8px; }
.price-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.pc-price .from { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pc-price .amt { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pc-price .unit { font-size: .85rem; color: var(--muted); }
.feat-list { list-style: none; margin: 0 0 20px; padding: 0; }
.feat-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.feat-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal);
  font-weight: 800;
}

/* ===================== STEPS ===================== */
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step {
  flex: 1 1 220px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 26px;
}
.section:not(.dark) .step { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-soft); }
.step .num {
  font-size: .85rem; font-weight: 800; letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 12px;
}

/* ===================== TESTIMONIALS ===================== */
.quote-row { display: flex; flex-wrap: wrap; gap: 22px; }
.quote {
  flex: 1 1 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.quote p { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,var(--indigo),var(--teal));
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800;
}
.quote .who b { display: block; font-size: .95rem; }
.quote .who span { font-size: .82rem; color: var(--muted); }

/* ===================== LOGO / TRUST BAR ===================== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 40px;
  padding: 30px 0;
  opacity: .8;
}
.trust-bar span { font-weight: 800; font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(130deg, var(--indigo), #6d28d9 70%, var(--teal));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; }
.cta-banner .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===================== FORM ===================== */
.form-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}
.form-aside { flex: 1 1 320px; }
.form-aside ul { list-style: none; padding: 0; margin: 20px 0 0; }
.form-aside ul li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 16px;
}
.form-aside ul li .fi {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 10px; background: rgba(16,184,166,.14); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.form-card {
  flex: 1 1 380px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-step-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 6px; display: block;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check-line input { width: auto; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-error {
  display: none;
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  border: 1px solid rgba(220,38,38,.25);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 16px;
}
.form-error.show { display: block; }

/* ===================== FAQ ===================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .chev { transition: transform .22s; color: var(--indigo); font-size: 1.3rem; flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
  color: var(--muted);
}
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 20px; }

/* ===================== PAGE HEADER ===================== */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(79,70,229,.14), transparent 60%),
    var(--paper);
  padding: clamp(50px, 7vw, 92px) 0 clamp(30px, 5vw, 50px);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--indigo); }

/* ===================== CONTENT / LEGAL ===================== */
.content { max-width: 820px; margin: 0 auto; }
.content h2 { margin-top: 42px; }
.content h3 { margin-top: 28px; }
.content ul { padding-left: 20px; color: var(--ink-soft); }
.content li { margin-bottom: 8px; }
.content .meta-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--indigo);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}

/* ===================== CONTACT ===================== */
.contact-grid { display: flex; flex-wrap: wrap; gap: 26px; }
.contact-card {
  flex: 1 1 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.contact-card .ci {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(79,70,229,.1); color: var(--indigo);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; font-weight:800;
  margin-bottom: 14px;
}
.contact-card .val { font-weight: 700; color: var(--ink); }
.email-plain { font-weight: 700; color: var(--indigo); user-select: all; }

/* ===================== THANKS ===================== */
.thanks-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}
.thanks-card {
  max-width: 600px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.thanks-badge {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #fff; font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.thanks-service {
  display: inline-block;
  background: rgba(79,70,229,.1);
  color: var(--indigo);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 6px 0 20px;
}

/* ===================== FOOTER ===================== */
.site-foot {
  background: var(--ink);
  color: #9fabc6;
  padding: 60px 0 28px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-col { flex: 1 1 200px; min-width: 180px; }
.foot-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.foot-col.brand-col { flex: 1 1 280px; }
.foot-col.brand-col p { font-size: .92rem; max-width: 34ch; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul a { color: #9fabc6; font-size: .92rem; }
.foot-col ul a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .85rem;
}
.foot-bottom .email-plain { color: #c7d0e4; }

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 90;
  background: var(--ink);
  color: #d7deee;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
.cookie-banner a { color: #a5b4fc; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: .9rem; }

/* ===================== UTILITIES ===================== */
.pad-tight { padding-top: 34px; padding-bottom: 34px; }
.no-top-pad { padding-top: 0; }
.text-center { text-align: center; }
.mt-6 { margin-top: 6px; }
.mt-24 { margin-top: 28px; }
.trust-note { text-align: center; margin-bottom: 10px; font-size: .95rem; }
.feat-list.tight { margin-top: 6px; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .split, .split.reverse { flex-direction: column; }
  .split-text, .split-media { flex: 1 1 100%; width: 100%; }
  .hero-media-stack .float-card { right: 10px; }
}
