:root{
  --blue:#004a99;
  --blue2:#0b3c78;
  --orange:#ff762f;
  --orange2:#ff5a00;
  --green:#78de20;

  --bg:#f6f9ff;
  --text:#0b1b2b;
  --muted:rgba(11,27,43,.72);

  --card:#ffffff;
  --stroke:rgba(0,0,0,.10);

  --shadow:0 18px 55px rgba(0,0,0,.12);
  --shadow2:0 14px 40px rgba(0,0,0,.10);

  --radius:18px;
  --radius2:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(255,118,47,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(0,74,153,.16), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 45%, #ffffff 100%);
}

a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted)}
.small{font-size:.92rem}

/* progress */
.sp-progress{
  position:fixed;left:0;top:0;height:4px;width:0%;
  background: linear-gradient(90deg, var(--orange), var(--green));
  z-index:999;
}

/* sticky bar */
.sp-sticky{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.82);
  border-bottom:1px solid rgba(0,0,0,.08);
}
.sp-sticky__inner{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 0;
}
.sp-sticky__left{display:flex;flex-direction:column;gap:2px}
.sp-sticky__right{display:flex;gap:10px;flex-wrap:wrap}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:.55rem;
  padding:12px 16px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  font-weight:800;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-2px)}
.btn-lg{padding:14px 20px;font-size:1.05rem}
.btn-full{width:100%}
.btn-sm{padding:10px 12px;font-size:.92rem}

.btn-primary{
  background: linear-gradient(180deg, var(--orange), var(--orange2));
  color:#0b1b2b;
  box-shadow: 0 14px 28px rgba(255,118,47,.22);
}
.btn-primary:hover{box-shadow: 0 18px 34px rgba(255,118,47,.30)}

.btn-outline{
  border-color: rgba(0,0,0,.14);
  background: rgba(255,255,255,.70);
  color: var(--text);
}
.btn-ghost{
  border-color: rgba(0,0,0,.12);
  background: transparent;
  color: var(--text);
}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  width:fit-content;
  padding:6px 10px;border-radius:999px;
  background: rgba(0,74,153,.08);
  border:1px solid rgba(0,74,153,.16);
  color: var(--blue2);
  font-weight:900;
}
.badge--soft{
  background: rgba(255,118,47,.10);
  border-color: rgba(255,118,47,.22);
  color: var(--orange2);
}

/* sections */
.section{padding:56px 0; scroll-top:25px;}
.sectionLite{padding:22px 0}
.sectionHead{max-width:820px}
.sectionHead h2{margin:0 0 8px;font-size:2rem;letter-spacing:-.01em;color:var(--blue2)}
.sectionHead p{margin:0}

/* hero */
.hero{
  padding:54px 0 14px;
  position:relative;
  overflow:hidden;
}
.hero__bg{
  position:absolute;inset:-10%;
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(255,118,47,.22), transparent 60%),
    radial-gradient(900px 450px at 80% 0%, rgba(0,74,153,.18), transparent 55%),
    radial-gradient(900px 450px at 60% 70%, rgba(120,222,32,.12), transparent 55%);
  pointer-events:none;
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 980px){ .hero__grid{grid-template-columns:1fr} }

.hero__copy h1{
  margin:10px 0 10px;
  font-size:2.7rem;
  line-height:1.1;
  letter-spacing:-.02em;
  color: var(--blue2);
  text-shadow: 0 10px 30px rgba(0,0,0,.06);
}
@media (max-width: 560px){ .hero__copy h1{font-size:2.1rem} }

.hero__lead{
  font-size:1.08rem;
  line-height:1.85;
  color: rgba(11,27,43,.92);
  margin:0 0 14px;
}
.hero__cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.hero__pillbox{display:flex;gap:8px;flex-wrap:wrap;margin: 14px 0 0}
.pill{
  padding:7px 10px;border-radius:999px;
  background: rgba(0,74,153,.06);
  border:1px solid rgba(0,74,153,.14);
  font-weight:800;
  font-size:.92rem;
  color: var(--blue2);
}

/* cards */
.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card.highlight{
  border-color: rgba(255,118,47,.45);
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,118,47,.10) inset;
}
.card p{margin:0 0 10px;line-height:1.75}
.card p:last-child{margin-bottom:0}
.card h3{margin:0 0 10px;color:var(--blue2)}

.bullets{margin:0;padding-left:18px}
.bullets li{margin:10px 0;line-height:1.7}

/* Checkout layout */
.checkout__grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:16px;
  align-items:start;
}
@media (max-width: 980px){
  .checkout__grid{grid-template-columns:1fr}
  .checkout__summary{position:static}
}

.checkout__summary{
  position: sticky;
  top: 86px;
}

/* card header row */
.cardTitleRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.priceTag{
  text-align:right;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,74,153,.05);
  border:1px solid rgba(0,74,153,.14);
}
.priceTag__num{font-weight:900;color:var(--blue2);font-size:1.05rem}
.priceTag__sub{color:var(--muted);font-weight:800;font-size:.82rem}

/* segmented switch */
.segmented{
  display:flex;
  gap:10px;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  margin-top:14px;
}
.segBtn{
  appearance:none;
  border:0;
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  background:transparent;
  font-weight:900;
  color: rgba(11,27,43,.88);
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.segBtn img{
  display:block;             /* odstraní baseline offset */
}
.segBtn:hover{transform: translateY(-1px)}
.segBtn.is-active{
  background: linear-gradient(180deg, rgba(255,118,47,.24), rgba(255,118,47,.14));
  color: var(--orange2);
  border:1px solid rgba(255,118,47,.28);
}

/* options cards */
.optionCard{
  display:flex;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.90);
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.optionCard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(255,118,47,.25);
}
.optionCard input{
  margin-top:3px;
  width:18px;height:18px;
  accent-color: var(--orange2);
}
.optionCard__body{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1.4;
}
.optionCard__body strong{color:var(--blue2)}
.optionCard__body span{color: rgba(11,27,43,.82); font-size:.94rem}

/* bundle header row */
.bundleRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px dashed rgba(255,118,47,.35);
  background: rgba(255,118,47,.08);
}
.bundlePrice{font-weight:900;color:var(--orange2);font-size:1.25rem}

/* chips + divider */
.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  background: rgba(0,74,153,.05);
  border:1px solid rgba(0,74,153,.14);
  color: var(--blue2);
  font-weight:800;
  font-size:.86rem;
}
.divider{
  height:1px;
  background: rgba(0,0,0,.08);
  margin:16px 0;
}
.hint{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,74,153,.05);
  font-weight:800;
  color: rgba(11,27,43,.90);
}

/* radio cards */
.radioGrid{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.radioCard{
  display:flex;
  gap:12px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.radioCard:hover{transform: translateY(-2px); box-shadow: var(--shadow2)}
.radioCard input{
  margin-top:3px;
  width:18px;height:18px;
  accent-color: var(--orange2);
}
.radioCard__body{display:flex;flex-direction:column;gap:8px}
.radioCard__top{display:grid;align-items:baseline;justify-content:space-between;gap:12px}
.priceInline{font-weight:900;color:var(--orange);font-size: 1.3rem;}
.radioCard.is-vip{
  border-color: rgba(0,74,153,.22);
  background: radial-gradient(700px 300px at 10% 10%, rgba(0,74,153,.10), transparent 55%), rgba(255,255,255,.96);
}
.tinyList{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tinyList span{
  font-size:.86rem;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
}

/* Summary */
.summary__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.summary__list{
  margin-top:12px;
  display:grid;
  gap:10px;
}
.summaryItem{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.90);
}
.summaryItem strong{color:var(--blue2)}
.summaryItem .muted{font-size:.9rem}

.summary__total{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-radius:16px;
  background: rgba(255,118,47,.10);
  border:1px solid rgba(255,118,47,.22);
}
.summary__total strong{font-size:1.1rem;color:var(--orange2)}
.summary__actions{margin-top:12px}
#goPay[disabled]{opacity:.55; cursor:not-allowed; transform:none}

/* comparison table */
.tableWrap{
  margin-top:14px;
  overflow:auto;
  border-radius: 18px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow2);
}
.compare{
  width:100%;
  border-collapse: collapse;
  min-width: 900px;
}
.compare th, .compare td{
  padding:14px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
  vertical-align: top;
}
.compare thead th{
  position:sticky; top:0;
  background: rgba(246,249,255,.96);
  z-index:1;
  text-align:left;
  color: var(--blue2);
  font-weight:900;
}
.thSub{display:inline-block;margin-top:6px;color:var(--muted);font-weight:800}
.thPopular{background: rgba(255,118,47,.10) !important;}
.rowHead{
  font-weight:900;
  color: rgba(11,27,43,.88);
  white-space:nowrap;
}

/* final */
.section--final{padding-bottom:70px}
.finalCard{
  border-radius: var(--radius2);
  padding:22px;
  background:
    radial-gradient(700px 340px at 10% 10%, rgba(255,118,47,.18), transparent 60%),
    radial-gradient(700px 340px at 90% 10%, rgba(0,74,153,.16), transparent 55%),
    #ffffff;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
}
.finalCard h2{margin:0 0 10px;font-size:2rem;color:var(--blue2)}
.finalCard p{margin:0 0 16px;line-height:1.75}
.finalCard__actions{display:flex;gap:12px;flex-wrap:wrap}

/* footer */
.footer{
  padding:18px 0;
  border-top:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.footer__link{text-decoration:none;font-weight:900;color: var(--blue2)}
.footer__link:hover{color: var(--orange2)}

/* reveal */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Back to top */
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 14px 30px rgba(0,0,0,.16);

  color: var(--blue2);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
  z-index: 200;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.toTop:hover{
  transform: translateY(6px);
  border-color: rgba(255,118,47,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.toTop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile tweaks */
@media (max-width: 560px){
  .sp-sticky__left{display:none}
  .btn{padding:11px 14px}
  .btn-lg{padding:13px 16px}
}

/* Floating cart bubble (mobile only) */
.cartFab{
  position: fixed;
  right: 16px;
  bottom: 86px;              /* aby nepřekáželo šipce nahoru (ta je na 18px) */
  z-index: 220;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);

  cursor: pointer;

  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cartFab:hover{
  border-color: rgba(255,118,47,.55);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.cartFab.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cartFab__icon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: linear-gradient(180deg, var(--orange), var(--orange2));
  color: #0b1b2b;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(255,118,47,.25);
}

.cartFab__meta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.cartFab__line1{
  font-weight: 900;
  color: var(--blue2);
  font-size: .98rem;
  white-space: nowrap;
}

.cartFab__line2{
  font-size: .78rem;
  color: rgba(11,27,43,.70);
  margin-top: 2px;
}

.cartFab__sep{opacity:.55; margin: 0 6px;}

.cartFab__badge{
  margin-left: 2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(0,74,153,.10);
  border: 1px solid rgba(0,74,153,.20);
  color: var(--blue2);
  font-weight: 900;
  font-size: .78rem;
}

/* show only on mobile */
@media (min-width: 901px){
  .cartFab{ display:none !important; }
}

/* mini bounce efekt */
.cartFab.bounce{
  animation: cartBounce .45s ease;
}

@keyframes cartBounce{
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-6px) scale(1.05); }
  60%  { transform: translateY(0) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}

.optionCard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.moduleDetailBtn {
  font-size: .7rem;
  padding: .25rem .55rem;
  border-radius: .45rem;
  border: 1px solid rgba(0,0,0,.2);
  text-decoration: none;
  font-weight: 600;
  color: #004a99;
  background: #f3f6fb;
  white-space: nowrap;
  transition: all .2s ease;
}

.moduleDetailBtn:hover {
  background: #e7efff;
  border-color: #004a99;
}

.checkoutEmail {
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.checkoutEmail label {
  font-weight: 600;
  font-size: .85rem;
}

.checkoutEmail input {
  padding: .6rem .7rem;
  border-radius: .6rem;
  border: 1px solid rgba(0,0,0,.25);
  font-size: .95rem;
}

.checkoutEmail input:focus {
  outline: none;
  border-color: #004a99;
  box-shadow: 0 0 0 2px rgba(0,74,153,.15);
}

/* --- mobil: sticky bar jako čistý řádek a back button pod ním --- */
:root{ --sp-sticky-h: 58px; }  /* výchozí (desktop/tablet) */

.sp-back-btn{
  top: calc(var(--sp-sticky-h) + 10px);
  z-index: 60; /* nad obsahem, pod případnými overlay */
}

/* sticky bar: když zmizí levý text, ať se pravá část chová hezky */
@media (max-width: 560px){
  :root{ --sp-sticky-h: 54px; }

  .sp-sticky__inner{
    justify-content: center;     /* nepůsobí “divně” doprava */
    padding: 8px 0;
  }

  .sp-sticky__right{
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;           /* ať to nespadne do 2 řádků */
  }

  .sp-sticky__right .btn{
    flex: 1;
    padding: 10px 12px;
    font-size: .9rem;
    width: auto !important;
  }
}
/* --- konec: mobilní sticky bar --- */

@media (max-width: 560px){
  .btn.btn-full{
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.25;
  }
}

/* ===========================
   BACK BUTTON – global
   =========================== */

/* výška sticky lišty (default) */
:root{
  --sp-sticky-h: 64px;
}

.sp-back-btn{
  position: fixed;
  top: calc(var(--sp-sticky-h) + 10px);
  left: 12px;

  z-index: 1100;

  background: white;
  backdrop-filter: blur(6px);

  color: black;
  text-decoration: none;

  padding: .45rem .7rem;
  border-radius: 999px;

  font-size: .85rem;
  font-weight: 600;
  line-height: 1;

  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);

  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.sp-back-btn:hover{
  background: #ff762f;
  color: #07121f;
  transform: translateY(-1px);
}

/* mobil – sticky bývá vyšší */
@media (max-width: 600px){
  :root{
    --sp-sticky-h: 55px;
  }
}

/* extrémně malé displeje */
@media (max-width: 360px){
  .sp-back-btn{
    font-size: .8rem;
    padding: .4rem .6rem;
  }
}

.card.highlight{
  border-color: rgba(255,118,47,.45);
  box-shadow:
    0 18px 55px rgba(0,0,0,.12),
    0 0 0 2px rgba(255,118,47,.10) inset;
}
section,
[id] {
  scroll-margin-top: 90px; /* výška sticky + trochu rezervy */
}
