/* ==========================================================================
   Montara.cz – Hypermodern light edition
   Inspirace: Linear, Vercel, Resend, Framer
   ========================================================================== */

/* ====== CSS proměnné ====== */
:root {
  /* Pozadí */
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f5f5f7;
  --surface: #ffffff;

  /* Text */
  --text: #0a0a0a;
  --text-2: #525252;
  --text-3: #a3a3a3;
  --text-4: #d4d4d4;

  /* Borders */
  --border: #eaeaea;
  --border-2: #d4d4d4;

  /* Akcenty */
  --accent: #0070f3;
  --accent-dark: #0051cc;
  --accent-soft: #e6f0fe;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Gradienty */
  --g-text: linear-gradient(120deg, #0a0a0a 0%, #525252 60%, #a3a3a3 100%);
  --g-accent: linear-gradient(120deg, #0070f3 0%, #00d1ff 100%);
  --g-hero-bg: radial-gradient(1200px 600px at 50% -10%, #e6f0fe 0%, transparent 60%);

  /* Fonty */
  --ff-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rozměry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Stíny */
  --sh-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --sh-sm: 0 2px 8px rgba(10, 10, 10, 0.04);
  --sh-md: 0 8px 24px rgba(10, 10, 10, 0.06);
  --sh-lg: 0 24px 64px rgba(10, 10, 10, 0.08);

  /* Layout */
  --container: 1280px;
  --container-narrow: 980px;
  --header-h: 64px;

  /* Timing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 0.2s;
  --t-med: 0.3s;
  --t-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* Lepší výběr textu */
::selection { background: var(--text); color: var(--bg); }

/* Vlastní scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ====== Utility ====== */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  margin: 0 auto;
}
.container--narrow { max-width: var(--container-narrow); }

.mono { font-family: var(--ff-mono); font-feature-settings: 'ss01'; }

.text-grad {
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-2); }

.skip-link {
  position: absolute;
  top: -80px; left: 0;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  z-index: 10000;
  transition: top var(--t-fast);
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 500;
}
.skip-link:focus { top: 0; }

/* ====== Scroll progress bar ====== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ====== Tlačítka ====== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  letter-spacing: -0.011em;
  font-family: var(--ff-sans);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--small { padding: 8px 16px; font-size: 13.5px; }
.btn--large { padding: 14px 24px; font-size: 15.5px; }
.btn--wide { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  background: var(--bg-3);
  border-color: var(--text-3);
}

.btn--icon {
  padding: 12px;
  aspect-ratio: 1;
}

.btn__arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ====== HEADER ====== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo__icon { flex: 0 0 auto; }
.logo__dot { color: var(--text-3); font-weight: 400; }

/* Nav */
.nav { margin-left: 8px; flex: 1; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--text); background: var(--bg-3); }
.nav__link.is-active { color: var(--text); }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header__status {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 18px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 120px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-hero-bg);
  pointer-events: none;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 40px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hero__announce:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
.hero__announce-tag {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--ease-out-quart), opacity 0.9s var(--ease-out-quart);
}
.hero__title.is-ready .word > span {
  transform: translateY(0);
  opacity: 1;
}
.hero__title em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 400;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto 40px;
  letter-spacing: -0.005em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

/* Status widget pod CTA */
.hero__status-card {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font-size: 13px;
  color: var(--text-2);
  max-width: 100%;
}
.hero__status-card .status-dot { width: 8px; height: 8px; }
.hero__status-card strong { color: var(--text); font-weight: 500; }
.hero__status-card span { color: var(--text-3); }
.hero__status-card .mono { font-size: 12px; color: var(--text); }

/* ====== Marquee s technologiemi ====== */
.marquee {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}
.marquee__label {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-4);
  margin-left: 24px;
}
.marquee__item:last-child::after { display: none; }

/* Overlay fade na krajích marquee */
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }

/* ====== Obecné sekce ====== */
.section {
  position: relative;
  padding: 120px 0;
}
.section--alt { background: var(--bg-2); }
.section--divider { border-top: 1px solid var(--border); }

.section__head {
  max-width: 720px;
  margin: 0 0 72px;
}
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
}
.section__eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.section__title {
  font-size: clamp(1.875rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 20ch;
}
.section__head--center .section__title { margin-left: auto; margin-right: auto; }
.section__lead {
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 58ch;
}
.section__head--center .section__lead { margin: 0 auto; }

/* ====== Reveal animace ====== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out-quart), transform var(--t-slow) var(--ease-out-quart);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .status-dot, .hero__canvas { animation: none !important; }
  .hero__title .word > span { transform: none; opacity: 1; }
}

/* ====== KARTY SLUŽEB (bento layout) ====== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.bento__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med);
}
.bento__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 112, 243, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  border-radius: inherit;
}
.bento__item:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.bento__item:hover::before { opacity: 1; }

.bento__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bento__num::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--text-4);
}

.bento__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}
.bento__item:hover .bento__icon {
  background: var(--text);
  color: var(--bg);
}
.bento__icon svg { width: 22px; height: 22px; }

.bento__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
}
.bento__desc {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.bento__list { display: grid; gap: 8px; }
.bento__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.bento__list li:first-child { border-top: 0; padding-top: 4px; }
.bento__list li::before {
  content: '';
  width: 14px; height: 14px;
  flex: 0 0 auto;
  margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070f3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ====== Velké statistiky ====== */
.bigstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bigstats__item {
  padding: 48px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.bigstats__item:last-child { border-bottom: 0; }
.bigstats__num {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
}
.bigstats__suffix { color: var(--text-3); font-weight: 400; }
.bigstats__label {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ====== Segmenty / Tabs ====== */
.tabs {
  display: grid;
  gap: 16px;
}
.tabs__nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  margin: 0 auto 40px;
  max-width: fit-content;
}
.tabs__btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-xs);
}
.tabs__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.tabs__panel.is-active { display: grid; }
.tabs__content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.tabs__content p { color: var(--text-2); margin-bottom: 20px; }
.tabs__content ul { display: grid; gap: 10px; }
.tabs__content li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}
.tabs__content li::before {
  content: '';
  width: 18px; height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070f3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='17 9 11 15 8 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.tabs__preview {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
  min-height: 260px;
}
.tabs__preview .k { color: var(--accent); }
.tabs__preview .c { color: var(--text-3); }
.tabs__preview .s { color: var(--success); }

/* ====== Timeline ====== */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
.timeline__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  position: relative;
}
.timeline__step:last-child { border-bottom: 0; }
.timeline__num {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-3);
  padding-top: 4px;
  min-width: 40px;
}
.timeline__content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.timeline__content p { color: var(--text-2); max-width: 60ch; }

/* ====== Testimonials ====== */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.testimonial {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.testimonial:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: var(--sh-md);
}
.testimonial__quote {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.01em;
}
.testimonial__stars {
  color: var(--text);
  letter-spacing: 2px;
  font-size: 14px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 14px;
}
.testimonial__meta strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
}
.testimonial__meta span {
  color: var(--text-2);
  font-size: 0.8125rem;
}

/* Anonymizace reference — poznámka pod grid */
.testimonials__note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.testimonials__note svg { flex: 0 0 auto; color: var(--text-3); }

/* ====== FAQ (native details/summary) ====== */
.faq { display: grid; gap: 8px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq__item:hover { border-color: var(--border-2); }
.faq__item[open] { border-color: var(--border-2); }
.faq__q {
  padding: 22px 24px;
  font-size: 1rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  letter-spacing: -0.015em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  width: 18px; height: 18px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  background-size: contain;
  transition: transform var(--t-fast) var(--ease);
}
.faq__item[open] .faq__q::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>");
}
.faq__a {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* ====== Velký CTA blok ====== */
.cta-block {
  position: relative;
  padding: 80px 32px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-xl);
  text-align: center;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(0, 112, 243, 0.25), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(0, 209, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-block__title {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-block__subtitle {
  position: relative;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-block__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cta-block .btn--primary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}
.cta-block .btn--primary:hover {
  background: var(--bg-3);
  border-color: var(--bg-3);
}
.cta-block .btn--ghost {
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}
.cta-block .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ====== Kontakt ====== */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.contact__form {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: 14.5px;
  color: var(--text);
  font-family: var(--ff-sans);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-error {
  color: var(--danger);
  font-size: 0.75rem;
  display: none;
}
.form-field.is-invalid .form-error { display: block; }

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1.5;
}
.form-check input {
  margin-top: 2px;
  accent-color: var(--text);
  width: 16px; height: 16px;
  cursor: pointer;
}
.form-check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  border-radius: var(--r-md);
  font-size: 0.9rem;
}

/* Info panel */
.info-block {
  padding: 40px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.info-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 0%, rgba(0, 112, 243, 0.3), transparent 60%);
  pointer-events: none;
}
.info-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  position: relative;
}
.info-list { display: grid; gap: 20px; position: relative; }
.info-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.info-list a { color: var(--bg); }
.info-list a:hover { color: var(--text-4); }
.info-label {
  color: var(--text-3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.info-block .btn {
  margin-top: 32px;
  position: relative;
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}
.info-block .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-top: 48px;
  margin-top: 48px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 24px 48px;
}
.footer__desc {
  margin: 16px 0 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  color: var(--text-2);
}
.footer__social { display: flex; gap: 8px; }
.footer__sicon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--t-fast);
}
.footer__sicon:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.footer__title {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__list { display: grid; gap: 12px; font-size: 0.875rem; color: var(--text-2); }
.footer__list a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__meta { display: flex; gap: 20px; }
.footer__meta a:hover { color: var(--text); }

/* Obří Montara. v patičce */
.footer__mega {
  text-align: center;
  padding: 24px 24px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  line-height: 0.9;
}
.footer__mega-text {
  font-size: clamp(5rem, 16vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.88;
  background: linear-gradient(180deg, var(--text-4) 0%, var(--bg) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  user-select: none;
}

/* ====== LEGAL STRÁNKY (GDPR, OP, Cookies) ====== */
.legal {
  padding: calc(var(--header-h) + 80px) 0 120px;
  background: var(--bg);
  position: relative;
}
.legal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 340px;
  background: radial-gradient(800px 300px at 50% 0%, #e6f0fe 0%, transparent 70%);
  pointer-events: none;
}
.legal__inner { position: relative; }
.legal__meta {
  color: var(--text-3);
  font-family: var(--ff-mono);
  font-size: 13px;
  margin-top: 20px;
  margin-bottom: 48px;
}
.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-top: 20px;
  margin-bottom: 12px;
  max-width: 20ch;
}
.legal__toc {
  margin: 48px 0 64px;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.legal__toc-title {
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.legal__toc ol {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  list-style: decimal;
  padding-left: 20px;
}
.legal__toc li { color: var(--text-2); font-size: 14px; padding-left: 4px; }
.legal__toc a { color: var(--text); }
.legal__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 56px 0 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 28px 0 10px;
  color: var(--text);
}
.legal p {
  color: var(--text-2);
  font-size: 0.9875rem;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 70ch;
}
.legal ul, .legal ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 0.9875rem;
  line-height: 1.65;
}
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 8px; max-width: 70ch; }
.legal a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:not(.btn):hover { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 500; }
.legal__box {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 0.9rem;
}
.legal__box strong { display: block; margin-bottom: 6px; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none !important;
}
.legal__back:hover { color: var(--text); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.legal table th, .legal table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.legal table th {
  font-weight: 500;
  color: var(--text);
  background: var(--bg-2);
}
.legal table td { color: var(--text-2); vertical-align: top; }

/* ====== To-top ====== */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid; place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: #1a1a1a; }

/* ====== RESPONZIVITA ====== */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bigstats__item {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .bigstats__item:last-child { border-right: 0; }
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .header__status { display: inline-flex; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__item--wide { grid-column: span 2; }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1.6fr 1fr; gap: 32px; }
  .tabs__panel { grid-template-columns: 1fr 1fr; gap: 48px; }

  .hero { padding: calc(var(--header-h) + 120px) 0 140px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 32px; }
}

/* Mobilní nav */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 12px; right: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    transform: translateY(-140%);
    transition: transform var(--t-med) var(--ease);
    margin: 0;
    padding: 8px;
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 15px;
  }
  .hamburger { display: flex; }
  .header__status { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 80px; }
  .contact__form, .info-block { padding: 24px; }
  .bento__item { padding: 24px; }
  .cta-block { padding: 56px 24px; }
  .testimonial { padding: 24px; }
  .hero__cta .btn { flex: 1; min-width: 48%; justify-content: center; }
}

/* ====== Honeypot (skryté pole proti spamu) ====== */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
