/* FairConnect – sdílené styly */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  --ink: #0d1221;
  --ink-muted: #48516a;
  --ink-faint: #8b93a8;
  --surface: #f4f5f8;
  --white: #ffffff;
  --accent: #1a2e5a;
  --accent-light: #e8ecf5;
  --accent-mid: #2a4a8a;
  --highlight: #c0392b;
  --border: rgba(13,18,33,0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,245,248,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-mid); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-mid); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent);
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }

/* TYPOGRAPHY */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* SECTION */
section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* HERO */
.hero {
  padding: 9rem 2rem 5rem;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 480px;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* HERO CARD */
.hero-visual { position: relative; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(14,17,23,0.06);
}

.hero-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.stat-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }

.stat-box {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
  line-height: 1.3;
}

.lead-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.lead-item:last-child { border-bottom: none; }

.lead-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-mid);
  flex-shrink: 0;
}

.lead-sector { flex: 1; color: var(--ink-muted); }

.lead-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}

/* SERVICE CARDS */
.service-card--wide { grid-column: 1 / -1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(14,17,23,0.08); transform: translateY(-2px); }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* WHY SECTION */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-item { padding: 0; }

.why-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: rgba(26,46,90,0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.why-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1080px;
  margin: 0 auto;
}

/* CTA SECTION */
.cta-section {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 4rem;
  max-width: 1080px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.footer-link {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--highlight); }

/* PROSE (zásady) */
.prose-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.prose-page h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.prose-page .page-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.prose-page h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose-page p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.prose-page ul {
  margin: 0.75rem 0 1rem 1.25rem;
}

.prose-page li {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.prose-page a {
  color: var(--highlight);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-page strong {
  color: var(--ink);
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    gap: 2.5rem;
  }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-section {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  nav { padding: 1rem; }
  section { padding: 3rem 1.25rem; }
  .cta-section { margin-left: 1.25rem; margin-right: 1.25rem; }
  .prose-page { padding: 7rem 1.25rem 3rem; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
h1 { animation: fadeUp 0.6s 0.1s ease both; }
.hero-lead { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
.hero-visual { animation: fadeUp 0.7s 0.2s ease both; }
