/* CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Kontejner */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 56px), var(--container));
  }
}

@media (min-width: 1200px) {
  .container {
    width: min(calc(100% - 80px), var(--container));
  }
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h1-hero {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.h1-hero .hero-title-line {
  display: block;
}

.h1-hero .accent-word {
  color: var(--accent);
  position: relative;
  display: inline-block;
  border-bottom: 4px solid var(--accent);
  padding-bottom: 4px;
  border-radius: 2px;
}

h2.section-title {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

h3.card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
}

.lead-perex {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
}

.max-prose {
  max-width: 720px;
}

/* Eyebrow / Trust labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--technical);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow-accent {
  color: var(--accent);
}

.eyebrow-accent::before {
  background: var(--accent);
}

/* Sekce spacing */
.section {
  padding-block: clamp(58px, 7.2vw, 100px);
  position: relative;
}

.section-dark {
  background-color: var(--technical);
  color: #ffffff;
  padding-block: clamp(64px, 8vw, 112px);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: #ffffff;
}

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

.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .eyebrow::before {
  background: #4ade80;
}

.section-alt {
  background-color: var(--surface-alt);
}

/* Accessibility & Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
