:root {
  /* Hlavní barvy z tvého zadání */
  --accent: #1F49C6;
  --accent-dark: #16348E;
  --accent-light: #EEF2FF;
  
  /* Pozadí a text */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  
  /* Moderní stíny a ohraničení */
  --border: rgba(31, 73, 198, 0.08);
  --border-hover: rgba(31, 73, 198, 0.2);
  --shadow-sm: 0 2px 8px rgba(31, 73, 198, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(31, 73, 198, 0.08), 0 4px 10px -2px rgba(31, 73, 198, 0.04);
  --shadow-hover: 0 20px 40px -5px rgba(31, 73, 198, 0.12), 0 8px 16px -4px rgba(31, 73, 198, 0.06);
  
  /* Rozměry */
  --radius: 20px;     /* Kulatější rohy */
  --radius-sm: 12px;
  --max-width: 1140px;
  --header-height: 70px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  /* Moderní jemný gradient na pozadí */
  background-image: 
    radial-gradient(circle at 10% 0%, rgba(31, 73, 198, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(31, 73, 198, 0.05) 0%, transparent 40%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }

/* --- HEADER (Glassmorphism) --- */
.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark {
  width: 36px; height: 36px; background: var(--accent-light);
  border-radius: 10px; display: grid; place-items: center;
  color: var(--accent);
}
.brand__dot {
  width: 10px; height: 10px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31, 73, 198, 0.15);
}
.brand__hint { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 4px; opacity: 0.8; }

.nav { display: flex; gap: 8px; font-size: 14px; font-weight: 600; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--text-muted); }
.nav a:hover { background: var(--accent-light); color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 10px 20px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 12px rgba(31, 73, 198, 0.25);
  transition: all 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 73, 198, 0.35); filter: brightness(1.05); }
.btn--ghost { background: white; color: var(--text-main); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--big { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.top__cta { display: flex; gap: 10px; }

/* --- HERO SECTION --- */
.hero { padding: 60px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.pillRow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.02em;
  background: var(--accent-light); color: var(--accent); border: 1px solid rgba(31, 73, 198, 0.1);
}

.hero__h1 { font-size: 52px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -1.5px; color: var(--text-main); }
.hero__sub { font-size: 19px; color: var(--text-muted); margin: 0 0 30px; max-width: 480px; }

.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.stat {
  background: white; border: 1px solid var(--border); padding: 16px; border-radius: 16px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.stat__k { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.stat__v { font-size: 16px; font-weight: 700; color: var(--accent); }
.stat__v .muted { font-size: 12px; font-weight: 500; color: var(--text-muted); }

.hero__actions { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }

.hero__media { position: relative; }
.mediaCard {
  background: white; padding: 12px; border-radius: 24px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  transform: rotate(1deg); transition: transform 0.3s ease;
}
.mediaCard:hover { transform: rotate(0deg) scale(1.01); box-shadow: var(--shadow-hover); }

.gallery { display: grid; gap: 10px; border-radius: 16px; overflow: hidden; }
.shot { margin: 0; position: relative; overflow: hidden; border-radius: 16px; height: 240px; background: #eee; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.6); color: white; padding: 4px 10px;
  border-radius: 8px; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.specGrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.spec { background: var(--bg-page); padding: 10px; border-radius: 12px; text-align: center; }
.spec__k { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.spec__v { font-size: 13px; font-weight: 800; color: var(--text-main); margin-top: 2px; }

/* --- SECTIONS GENERAL --- */
.section { padding: 80px 0; }
.section--alt { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sectionHead { margin-bottom: 40px; text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.sectionHead h2 { font-size: 32px; letter-spacing: -1px; margin: 0 0 10px; }
.sectionHead--tight { text-align: left; margin: 0 0 20px; }

/* --- PRICING CARDS --- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.priceCard {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow-card); transition: all 0.3s ease;
  position: relative; display: flex; flex-direction: column;
}
.priceCard:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.priceCard--featured {
  border: 2px solid var(--accent); background: #FDFDFF;
  box-shadow: 0 15px 40px -10px rgba(31, 73, 198, 0.15);
}
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white; font-size: 11px; font-weight: 800;
  padding: 6px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.priceCard__title { font-size: 16px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; }
.priceCard__price { font-size: 36px; font-weight: 800; color: var(--text-main); letter-spacing: -1px; margin-bottom: 20px; }
.priceCard__price span { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.priceCard__row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px dashed var(--border); font-size: 14px;
}
.priceCard__row:last-child { border-bottom: none; }
.priceCard__row strong { color: var(--text-main); }

/* --- CARDS (Parameters) --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: white; border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow-sm); transition: 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__icon {
  font-size: 24px; background: var(--bg-page); width: 48px; height: 48px;
  border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
}
.card__content { flex: 1; }
.card__k { font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.card__v { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* --- ACCORDION --- */
.accordion { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }
.acc {
  background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc__sum {
  padding: 18px 24px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  list-style: none; transition: background 0.2s;
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum:hover { background: var(--bg-page); }
.acc__hint { font-weight: 400; font-size: 13px; color: var(--accent); background: var(--accent-light); padding: 4px 8px; border-radius: 6px; }
.acc__a { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.6; border-top: 1px solid var(--border); margin-top: -1px; padding-top: 16px;}
.acc[open] .acc__sum { background: var(--bg-page); }

/* --- CONTACT --- */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.contact__box {
  background: white; padding: 30px; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.metaLine { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bg-page); }
.metaLine:last-child { border-bottom: none; }
.metaLine__k { font-weight: 700; width: 60px; flex-shrink: 0; }

.asideCard {
  background: var(--accent); color: white; padding: 30px; border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.asideCard__title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.bullets li { margin-bottom: 10px; opacity: 0.9; }
.asideCard .miniBtn {
  background: white; color: var(--accent); margin-top: 20px; display: inline-block; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}

/* --- FOOTER --- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; background: white; text-align: center; color: var(--text-muted); font-size: 13px; }

/* --- UTILS --- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 20px; z-index: 999; background: white; padding: 10px; }

/* --- MOBILE --- */
.stickyBar {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  padding: 10px; border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 90;
  display: none; gap: 10px;
}
.stickyBar__btn { flex: 1; text-align: center; padding: 12px; background: var(--accent); color: white; border-radius: 14px; font-weight: 700; box-shadow: 0 4px 10px rgba(31,73,198,0.3); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero__grid, .contact, .pricing { grid-template-columns: 1fr; }
  .hero__h1 { font-size: 36px; }
  .stickyBar { display: flex; }
  .specGrid { grid-template-columns: repeat(3, 1fr); }
}
/* =========================================================
   FIX: mobilní přetékání (header CTA + sticky bar)
   ========================================================= */

/* 1) Header: dovolíme flexu se "nadechnout" */
@media (max-width: 900px) {
  .top__inner {
    gap: 10px;
  }

  /* Brand nesmí tlačit přes šířku */
  .brand {
    min-width: 0;                /* důležité pro flex */
    max-width: 52vw;             /* ať zbyde místo na tlačítka */
  }

  /* Doména (hint) může na mobilu zmizet */
  .brand__hint {
    display: none;
  }

  /* Když je potřeba, brand se může zkrátit */
  .brand__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* CTA tlačítka: menší padding + žádné roztahování */
  .top__cta {
    flex: 0 0 auto;
    gap: 8px;
  }

  .top__cta .btn {
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* 2) Sticky bar dole: tlačítka nesmí přetékat */
@media (max-width: 900px) {
  .stickyBar {
    gap: 10px;
  }

  .stickyBar__btn {
    min-width: 0;                /* klíčový fix pro flex overflow */
    white-space: nowrap;         /* ať to neláme divně */
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* 3) Pojistka proti 1px "duchům" (Safari/Chrome občas) */
html, body {
  overflow-x: hidden;
}
