:root {
  --bg: #ffffff;
  --ink: #1b3a7a;
  --muted: #4a6496;
  --light: #8299b8;
  --hairline: #ddd;
  --soft: #f4f4f2;
  --max: 920px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand strong {
  font-family: var(--serif);
  font-weight: 750;
  letter-spacing: -0.3px;
}

h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.08;
  margin: 0 0 14px;
}

h2 {
  font-size: 21px;
  margin: 0 0 4px;
  line-height: 1.15;
}

h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 4px;
}

p { margin: 0 0 8px; }

.text-secondary {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { opacity: .8; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.brand strong {
  font-size: 17px;
  color: var(--ink);
}

nav {
  font-size: 12.5px;
  font-weight: 500;
}
nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
nav a:hover { color: var(--ink); }

/* ── Language switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.lang-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--light);
  cursor: pointer;
  letter-spacing: .03em;
  transition: color .15s;
}
.lang-btn:hover { color: var(--ink); }
a.lang-btn { text-decoration: none; color: inherit; }
.lang-btn.active {
  font-weight: 700;
  color: var(--ink);
}
.lang-sep {
  color: var(--hairline);
  font-size: 11px;
  user-select: none;
}

/* ── Hamburger menu ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Section CTA ── */
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.section-cta-text {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  margin: 0;
}

/* ── Sections ── */
section {
  padding: 26px 0 22px;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0 0 20px;
}
.section-rule.thick {
  border-top: 2.5px solid var(--ink);
}

/* ── Newspaper columns ── */
.cols-2 {
  column-count: 2;
  column-gap: 28px;
}
.cols-2 > * {
  break-inside: avoid;
}

.cols-mixed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.cols-mixed .full {
  grid-column: 1 / -1;
}
.col-divider {
  border-right: 1px solid var(--hairline);
  padding-right: 14px;
}

/* ── Hero ── */
.hero {
  padding: 32px 0 24px;
}

.kicker {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--light);
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker::before {
  content: "";
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.hero-lead {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.stat-row {
  display: flex;
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--sans);
  transition: all .2s;
  padding: 9px 20px;
  border: none;
  transform: skewX(-8deg);
}
.btn span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: skewX(4deg);
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { filter: brightness(1.4); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.secondary:hover { background: var(--soft); }
.btn svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Highlight items (bullet list) ── */
.highlight-item {
  padding: 5px 0 5px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
}
.highlight-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 1.5px;
  background: var(--muted);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 6px;
}

/* ── Cards grid ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.card {
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color .2s;
}
.card:hover { border-color: #bbb; }
.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.card ul {
  list-style: none;
  margin: 4px 0 0;
}
.card li {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 0 2px 12px;
  position: relative;
  line-height: 1.45;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1.5px;
  background: var(--muted);
}

/* ── Borderless cards for "Co dělám" ── */
#co .card {
  border: none;
  border-radius: 0;
  padding: 0 0 12px;
  background: none;
}
#co .card:hover {
  border-color: transparent;
}
#co .full .card {
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}

/* ── Use cases ── */
.case {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.case:last-child { border-bottom: none; }
.case-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--light);
  margin-bottom: 4px;
}
.case h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.case p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.case-result {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding: 3px 10px;
  background: var(--soft);
  border-radius: 999px;
}

/* ── Process steps ── */
.process {
  margin-top: 10px;
  counter-reset: step;
}
.process-step {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  align-items: baseline;
  font-size: 13.5px;
}
.step-num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 750;
  color: var(--hairline);
  line-height: 1;
  min-width: 22px;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step-content { color: var(--muted); line-height: 1.45; }
.step-content strong { color: var(--ink); font-weight: 600; }

/* ── About tags ── */
.about-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* ── Contact card ── */
.contact-card {
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 16px;
  margin-top: 12px;
  background: var(--soft);
}
.contact-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-card p {
  font-size: 13.5px;
  margin: 0 0 3px;
}
.contact-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--light);
}

/* ── Role label (CEO/CIO) ── */
.role-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--light);
  margin: 12px 0 4px;
}
.role-label:first-child {
  margin-top: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 14px 0;
  font-size: 12px;
  color: var(--light);
  margin-top: 6px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer a { color: var(--light); font-size: 12px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeUp .45s ease forwards;
}
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .cols-2 { column-count: 1; }
  .cols-mixed { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .col-divider { border-right: none; padding-right: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; margin-bottom: 16px; }
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 150;
  }
  nav.open { display: flex; }
  nav a {
    margin: 0;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
  }
  .hero { padding: 20px 0 16px; }
  section { padding: 20px 0 16px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .highlight-grid { grid-template-columns: 1fr; }
  .lang-switch { order: 0; margin-left: auto; }
  .contact-header { flex-direction: column; align-items: center; text-align: center; }
  .section-cta { flex-direction: column; text-align: center; }
}
