:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-soft: #efe7dc;
  --text: #1f1a17;
  --muted: #6d635c;
  --line: rgba(31, 26, 23, 0.12);
  --accent: #8d6b4f;
  --accent-dark: #3c2b1d;
  --dark: #1c1714;
  --dark-soft: #2a221d;
  --light: #fffaf5;
  --shadow: 0 20px 50px rgba(31, 26, 23, 0.08);
  --shadow-soft: 0 12px 30px rgba(31, 26, 23, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f4ee 0%, #f5f1ea 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  padding: 84px 0 40px;
}

.hero-grid,
.two-col,
.career-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-kicker.light { color: rgba(255,255,255,0.7); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 14ch;
}

h3 { font-size: 1.35rem; }

.lead,
.text-stack p,
.service-card p,
.step-card p,
.career-box li,
.contact-card p,
.section p,
.hero-floating-card p {
  color: var(--muted);
}

.hero-copy {
  padding-top: 20px;
}

.hero-copy .lead {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent-dark);
  color: white;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}

.btn-light {
  background: white;
  color: var(--dark);
  margin-top: 18px;
}

.btn:hover { transform: translateY(-1px); }

.hero-contact-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 580px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-contact-line span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-contact-line strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.hero-visual-wrap {
  position: relative;
}

.hero-portrait-shell {
  position: relative;
  min-height: 700px;
  padding: 34px 28px 34px 86px;
}

.hero-portrait-shell::before {
  content: "";
  position: absolute;
  inset: 48px 18px 48px 64px;
  border-radius: 40px;
  background: linear-gradient(160deg, #e8ddcf 0%, #d5c1ab 55%, #c2a88f 100%);
  box-shadow: var(--shadow);
}

.hero-portrait-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 632px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(31, 26, 23, 0.18);
}

.hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,23,20,0.08) 0%, rgba(28,23,20,0.02) 28%, rgba(28,23,20,0.28) 100%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.22), rgba(255,255,255,0) 28%);
  pointer-events: none;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  min-height: 632px;
  object-fit: cover;
  object-position: center top;
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  max-width: 290px;
  padding: 20px 22px;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.hero-floating-top {
  left: 0;
  top: 0;
}

.hero-floating-bottom {
  right: 0;
  bottom: 0;
}

.card-label {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-floating-card h2 {
  max-width: none;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31,26,23,0.08);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 0.96rem;
}

.section { padding: 96px 0; }
.section-alt { background: #f0e7db; }
.text-stack { display: grid; gap: 20px; }

.cards-grid,
.steps-grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.cards-grid { grid-template-columns: repeat(2, 1fr); }
.steps-grid { grid-template-columns: repeat(3, 1fr); }

.service-card,
.step-card,
.contact-card,
.career-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.service-card,
.step-card { padding: 28px; }

.step-card span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 18px;
}

.section-dark {
  background: var(--dark);
  color: var(--light);
}

.section-dark p,
.section-dark li { color: rgba(255,255,255,0.72); }

.career-box {
  background: var(--dark-soft);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
  padding: 30px;
}

.career-box ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.contact-card {
  padding: 28px;
}

.contact-card a {
  color: var(--accent-dark);
  font-weight: 600;
}

.site-footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-col,
  .career-grid,
  .contact-grid,
  .cards-grid,
  .steps-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-portrait-shell {
    min-height: auto;
    padding: 24px 0 120px;
  }

  .hero-portrait-shell::before {
    inset: 34px 0 76px 0;
  }

  .hero-portrait-frame,
  .hero-portrait {
    min-height: 620px;
  }

  .hero-floating-top {
    left: 18px;
    top: 0;
  }

  .hero-floating-bottom {
    right: 18px;
    bottom: 0;
  }

  .nav { display: none; }
  h1, h2 { max-width: 100%; }
}

@media (max-width: 720px) {
  .hero { padding-top: 52px; }
  .section { padding: 74px 0; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-contact-line { grid-template-columns: 1fr; }

  .hero-portrait-shell {
    padding: 14px 0 0;
  }

  .hero-portrait-shell::before {
    inset: 22px 0 22px 0;
    border-radius: 28px;
  }

  .hero-portrait-frame,
  .hero-portrait {
    min-height: 500px;
    border-radius: 26px;
  }

  .hero-floating-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }
}



/* mobile tuning for Honza portrait */
.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .career-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 44px 0 28px;
  }

  .hero-copy {
    order: 1;
    padding-top: 0;
  }

  .hero-visual-wrap {
    order: 2;
  }

  .hero-portrait-shell {
    min-height: auto;
    padding: 0 0 88px 0;
  }

  .hero-portrait-shell::before {
    inset: 12px 0 64px 0;
    border-radius: 28px;
  }

  .hero-portrait-frame {
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .hero-portrait {
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.06);
    background: #f4f4f4;
  }

  .hero-floating-bottom {
    left: 12px;
    right: 12px;
    bottom: 0;
    max-width: none;
  }

  .hero-contact-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }
}
