:root {
  --bg1: #0e0c15;
  --bg2: #1a1225;
  --accent: #8b5cf6;
  --accent2: #c084fc;
  --text: #fff;
  --muted: rgba(255, 255, 255, .75);
  --glow: 0 0 25px rgba(139, 92, 246, .3);
  --card: rgba(255, 255, 255, .04);
  --card-border: rgba(255, 255, 255, .10);
  --card-border-hover: rgba(139, 92, 246, .55);
  --faq-accent: var(--accent);
  --section-margin-top: 160px;
  --section-padding-y: 80px;
  --section-padding-b: 140px;
  --logo-h: 18px;
  --container: 1200px;
  --section-x: clamp(24px, (100vw - var(--container))/2, 8vw);
  --nav-h: 64px;
}

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

html, body {
  min-height: 100%;
  width: 100%;
  font-family: "Inter", sans-serif;

  /* sjednocené pozadí – zrušen gradient */
  background: var(--bg1);
  background-image: none;

  color: var(--text);
  scroll-behavior: smooth;
  background-color: #0e0c15;
  transform: none !important;
  scroll-padding-top: 0;
}

/* >>> JEDEN scrollbar: na BODY (původní chování) */
html { overflow-y: visible; }
body { overflow-y: auto; overflow-x: hidden; display: block; position: relative; }

img { max-width: 100%; display: block }

/* WebKit scrollbar (volitelné) */
::-webkit-scrollbar { width: 16px; height: 16px }
::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 12px }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 12px; border: 3px solid rgba(14,12,21,.9)
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#9b6df9,#b58dfd) }
::-webkit-scrollbar-button { display: none }

/* ====== VLNĚNÍ POZADÍ ====== */
.bg-waves {
  position: absolute;
  width: 0;
  height: 0;
}

/* wave-canvas zůstane nad barvou body, ale pod obsahem */
.wave-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;              /* viditelné za obsahem, ale pod vrstvami z-index 2+ */
  pointer-events: none;
  overflow: hidden;
}

/* aby se vše ostatní drželo nad tím */
body > *:not(.wave-canvas):not(.bg-waves):not(.bg-orbs) {
  position: relative;
  z-index: 2;
}
.wave-canvas::before{
  content:"";
  position:absolute; inset:-10%;
  background:
    radial-gradient(120% 120% at 0% 0%, #140f22 0%, transparent 60%),
    radial-gradient(120% 120% at 100% 100%, #23183a 0%, transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  background-size:200% 200%, 200% 200%, 200% 200%;
  background-position:0% 0%, 100% 100%, 0% 0%;
  filter:url(#wavy);
  animation:drift 40s ease-in-out infinite;
  opacity: .25; will-change:transform, filter, background-position;
}
@keyframes drift{
  0%{background-position:0% 0%,100% 100%,0% 0%}
  50%{background-position:100% 100%,0% 0%,100% 100%}
  100%{background-position:0% 0%,100% 100%,0% 0%}
}

/* ===== Orbs ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb { position:absolute; width:420px; height:420px; border-radius:50%; filter:blur(50px); opacity:.18; animation:float 16s ease-in-out infinite; }
.orb--1{ background:radial-gradient(circle at 30% 30%,#8b5cf6,transparent 60%); top:-80px; left:-120px }
.orb--2{ background:radial-gradient(circle at 70% 40%,#c084fc,transparent 60%); bottom:-140px; right:-120px; animation-delay:4s }
.orb--3{ background:radial-gradient(circle at 50% 50%,#9f7aea,transparent 60%); top:40%; left:55%; width:360px; height:360px; animation-delay:8s }
@keyframes float{ 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(10px,-25px) scale(1.02)} 100%{transform:translate(0,0) scale(1)} }

/* ===== NAVBAR ===== */
.topnav{
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  background: var(--nav-bg);
  z-index: 9000;
  transition: transform .28s ease;
  padding-inline: 16px;
}
.topnav.hide { transform: translateY(calc(-1 * var(--nav-h) - 12px)); }

.nav-inner{
  position: relative; width:100%; max-width:none;
  display:flex; align-items:center; justify-content:flex-end; gap:18px;
  padding-left: 88px;
}
.brand{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:flex; align-items:center; }
.brand img{ height: var(--logo-h); width:auto; display:block; }
.nav-links{ display:flex; align-items:center; gap:22px; margin-left:auto; }
.nav-links a{
  color: var(--accent); text-decoration: none; font-weight: 600; letter-spacing: .12em; font-size: .9rem;
  transition: color .18s ease, transform .18s ease;
}
.nav-links a:hover{ color:#fff; transform: translateY(-1px); }
.nav-cta{
  margin-left:8px; background:linear-gradient(90deg,var(--accent),var(--accent2)); color:#fff !important;
  padding:10px 18px; border:none; border-radius:999px; font-weight:700; font-size:.9rem; letter-spacing:.08em; text-transform:uppercase;
  box-shadow:0 0 15px rgba(139,92,246,.35); transition:transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 0 22px rgba(139,92,246,.6); }
.feature {
  padding: 48px 38px;
  border-radius: 20px;
}
/* ===== HERO ===== */
.hero{
  width:100%;
  min-height:clamp(360px,54vh,560px);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  padding-top:calc(clamp(140px,18vh,220px) + var(--nav-h));
  padding-bottom:26px; text-align:center;
}
.hero h1{
  font-size:clamp(2.6rem,6vw,4.6rem); margin-bottom:14px; line-height:1.1;
  background:linear-gradient(90deg,#a78bfa,#c084fc);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.hero p{ max-width:680px; color:var(--muted); font-size:1.06rem; margin-bottom:18px }
.hero .buttons{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center }

a.cta-btn, a.btn-outline, .to-top,
a.cta-btn:link, a.cta-btn:visited, a.cta-btn:hover, a.cta-btn:active,
a.btn-outline:link, a.btn-outline:visited, a.btn-outline:hover, a.btn-outline:active,
.to-top:link, .to-top:visited, .to-top:hover, .to-top:active { text-decoration:none !important; }

.cta-btn{
  background:linear-gradient(90deg,var(--accent),var(--accent2)); color:#fff;
  padding:10px 22px; border:none; border-radius:14px;
  font-weight:500; font-size:.95rem; letter-spacing:.02em; line-height:1;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  transition:all .25s ease; box-shadow:0 0 15px rgba(139,92,246,.3);
  height:40px;
}
.cta-btn:hover{ transform:translateY(-2px); box-shadow:0 0 25px rgba(139,92,246,.6) }
.btn-outline{
  background:transparent; border:1px solid var(--accent); color:var(--accent);
  border-radius:10px; padding:10px 22px; height:40px; line-height:1;
  font-size:.95rem; font-weight:500; transition:.25s; letter-spacing:.02em;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn-outline:hover{ background:var(--accent); color:#fff; box-shadow:var(--glow) }

/* ===== FEATURES ===== */
section.features{ width:100%; padding:80px var(--section-x) 140px; max-width:1400px; margin:0 auto; text-align:center; }
.features-header h2{
  letter-spacing:.18em; color:var(--accent); font-weight:700; margin-bottom:12px; text-transform:uppercase; font-size:clamp(1.3rem,2.8vw,1.6rem);
}
.features-header .section-hint{ max-width:920px; margin:0 auto 26px; color:var(--muted); font-size:1.25rem; }
.features-grid{
  display:grid; gap:24px; max-width:var(--container); margin:0 auto;
  grid-template-columns: repeat(3, minmax(320px, 1fr)); align-items:stretch; grid-auto-rows:1fr;
}
@media (max-width:1100px){ .features-grid{ grid-template-columns: repeat(2, minmax(280px, 1fr)); } }
@media (max-width:768px){ .features-grid{ grid-template-columns:1fr; } }
.feature{
  background:var(--card); border:1px solid var(--card-border);
  border-radius:16px; padding:32px 28px; text-align:center; transition:.3s;
  display:flex; flex-direction:column; height:100%;
}
.feature:hover{ border-color:var(--card-border-hover); box-shadow:var(--glow); transform:translateY(-4px) }
.feature img{ height:70px; margin:0 auto 16px; opacity:.95; display:block }
.feature h3{ margin-bottom:10px; color:var(--accent); font-size:1.1rem }
.feature p{ color:var(--muted); font-size:.95rem; line-height:1.5; margin-top:auto; }

/* ===== PRICING ===== */
section.pricing{ width:100%; padding:80px 8% 140px; display:flex; flex-direction:column; align-items:center; text-align:center }
.pricing h2, .contact h3{
  letter-spacing:.18em; color:var(--accent); font-weight:700; margin-bottom:12px; text-transform:uppercase; font-size:clamp(1.3rem, 2.8vw, 1.6rem);
}
.pricing .hint, .contact p{ max-width:920px; color:var(--muted); font-size:1.25rem; margin-bottom:26px; }

.pricing-cards{
  display:grid;
  grid-template-columns: minmax(200px,.78fr) minmax(280px,1.6fr) minmax(200px,.78fr);
  gap:32px; max-width:1100px; margin:0 auto; width:100%;
}
@media (max-width:1024px){
  .pricing-cards{ grid-template-columns: minmax(200px,.9fr) minmax(260px,1.3fr) minmax(200px,.9fr); }
}
@media (max-width:768px){ .pricing-cards{ grid-template-columns:1fr; } }

.pricing-card{
  background:var(--card); border:1px solid var(--card-border);
  border-radius:18px; padding:28px; display:flex; flex-direction:column; gap:42px; align-items:center; transition:.25s
}
.pricing-card:hover{ border-color:var(--card-border-hover); transform:translateY(-4px); box-shadow:var(--glow) }
.plan-title{ font-weight:600; font-size:1.15rem; color:var(--accent) }
.price{ font-size:2rem; font-weight:700 }
.price small{ opacity:.6; font-weight:500; font-size:.9rem }
.features-list{ list-style:none; display:flex; flex-direction:column; gap:8px; color:var(--muted) }
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: .03em;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
  text-decoration: none;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
  filter: brightness(1.08);
  text-decoration: none !important;
}

.pricing-card.placeholder{ display:grid; place-items:center; border-style:dashed; opacity:.65; gap:0; padding:22px; }
.pricing-card.placeholder .soon{ font-weight:800; font-size:clamp(1.2rem,3.2vw,1.8rem); letter-spacing:.26em; color:var(--muted); text-align:center; user-select:none; }

.pricing-card--featured{
  border:2px solid var(--accent);
  background:linear-gradient(180deg, rgba(139,92,246,.12), rgba(192,132,252,.06));
  box-shadow:0 0 0 2px rgba(139,92,246,.25) inset, 0 12px 40px rgba(139,92,246,.25);
  transform:scale(1.04);
  padding:18px 22px; gap:22px;
}
.pricing-card--featured:hover{ transform:scale(1.06); }
.pricing-card--featured .price{ font-size:1.8rem; }
.pricing-card--featured .features-list{ gap:6px; }
.pricing-card--featured .features-list li{ line-height:1.35; }
.pricing-card--featured .buy-btn{ margin-top:2px; padding:8px 16px; }
@media (max-width:768px){
  .pricing-card--featured{ transform:none; }
  .pricing-card--featured:hover{ transform: translateY(-2px); }
}

/* ===== FAQ ===== */
section.faq{ width:100%; padding:80px 8% 140px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.faq h2{ letter-spacing:.18em; color:var(--accent); font-weight:700; margin-bottom:10px; text-transform:uppercase; font-size:clamp(1.3rem,2.8vw,1.6rem); }
.faq .subtitle{ color:var(--muted); font-size:1.15rem; margin-bottom:36px; }
.faq-box{ max-width:1100px; width:100%; background:transparent; border:none; border-radius:0; padding:0; position:relative; margin:0 auto; }
.faq-stage{
  max-width:1100px; width:100%; padding:12px 6%; min-height:clamp(160px,22vh,280px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; margin:0 auto; user-select:none; cursor:grab;
}
.faq-stage.dragging{ cursor:grabbing; }
.faq-q{ color:var(--faq-accent); letter-spacing:.22em; text-transform:uppercase; font-weight:700; font-size:clamp(.9rem,1.6vw,1rem); margin-bottom:18px; }
.faq-a{ font-size:clamp(1.4rem,3.2vw,2.2rem); line-height:1.3; }
.swipe-right{ animation:faqSwipeRight .38s ease both; }
.swipe-left{ animation:faqSwipeLeft .38s ease both; }
@keyframes faqSwipeRight{
  0%  { opacity:0; transform:translateX(26px) }
  50% { opacity:0; transform:translateX(-26px) }
  100%{ opacity:1; transform:translateX(0) }
}
@keyframes faqSwipeLeft{
  0%  { opacity:0; transform:translateX(-26px) }
  50% { opacity:0; transform:translateX(26px) }
  100%{ opacity:1; transform:translateX(0) }
}
.faq-dots{ display:flex; gap:10px; justify-content:center; align-items:center; margin-top:75px; }
.faq-dot{ width:9px; height:9px; border-radius:50%; background:rgba(139,92,246,.28); border:none; cursor:pointer; transition:transform .18s ease, background .18s ease; }
.faq-dot:hover{ transform:scale(1.12); }
.faq-dot.active{ background:var(--faq-accent); transform:scale(1.2); }

/* ===== CONTACT ===== */
section.contact{ width:100%; padding:70px 8% 60px; display:flex; flex-direction:column; align-items:center; text-align:center }
.socials{ display:flex; gap:16px; align-items:center; justify-content:center; margin-bottom:24px; }
.icon-btn{
  width:48px; aspect-ratio:1/1; border-radius:12px; display:grid; place-items:center; text-decoration:none; color:#fff;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22); transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.icon-btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.35); }
.icon-btn svg, .icon-btn img{ width:24px; height:24px; display:block; }
.icon-btn svg{ stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }

.to-top{
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  background:linear-gradient(90deg,var(--accent),var(--accent2)); color:#fff;
  border:none; border-radius:26px; padding:14px 24px; font-weight:700; letter-spacing:.08em; cursor:pointer; transition:.2s; text-transform:uppercase;
  box-shadow:0 0 14px rgba(139,92,246,.35);
}
.to-top:hover{ transform:translateY(-2px); }

/* ===== FOOTER ===== */
footer{ background:transparent; padding:26px 10% 32px; color:var(--muted); font-size:.9rem; width:100% }
.footer-row{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; align-items:center }
.footer-row a{ color:var(--muted); text-decoration:none; transition:color .2s }
.footer-row a:hover{ color:var(--accent) }
.dot{ opacity:.4 }

/* ===== Jazyková pilulka ===== */
.lang-switch{
  position: fixed !important; top: 14px !important; left: 14px !important; right: auto !important;
  display: flex; gap: 8px; align-items: center; background: rgba(28,21,46,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(139,92,246,.25); padding: 4px 6px; border-radius: 999px; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  z-index: 10000 !important;
}
.lang-switch button {
  height: 30px;
  min-width: 44px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 650;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .2s ease;
}

.lang-switch button.active{ background: rgba(139,92,246,.25); box-shadow: 0 0 0 2px rgba(139,92,246,.35) inset; }
.lang-switch button:hover{ transform: translateY(-1px); }

/* ===== HAMBURGER & OFF-CANVAS ===== */
#btnMenu{
  appearance:none; border:none; background:rgba(42,31,71,.85); color:#fff;
  padding:10px 12px; border-radius:12px; cursor:pointer;
  position:fixed !important; top: calc(12px + env(safe-area-inset-top)) !important; left: 10px !important;
  z-index: 2147483640  !important; box-shadow:0 0 10px rgba(0,0,0,.25);
  width:40px; height:40px; display:none; align-items:center; justify-content:center;
}

/* 3 linky + animace na křížek */
#btnMenu .hamburger{ position:relative; width:22px; height:16px; display:inline-block; }
#btnMenu .hamburger i{
  position:absolute; left:0; right:0; height:2px; border-radius:2px; background:#fff; opacity:.95;
  transition: transform .26s cubic-bezier(.4,0,.2,1), top .26s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
#btnMenu .hamburger i:nth-child(1){ top:0; }
#btnMenu .hamburger i:nth-child(2){ top:7px; }
#btnMenu .hamburger i:nth-child(3){ top:14px; }
#btnMenu.is-open .hamburger i:nth-child(1){ top:7px; transform:rotate(45deg); }
#btnMenu.is-open .hamburger i:nth-child(2){ opacity:0; transform:scaleX(0.6); }
#btnMenu.is-open .hamburger i:nth-child(3){ top:7px; transform:rotate(-45deg); }

/* čtečky */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* === opravena logika wrapperu === */
.sidewrap{
  position: absolute;
  left: 0;
  top: var(--menu-top, 0);
  width: min(84vw, 320px);
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 2147483630 !important;           /* výrazně vyšší než ostatní prvky */
  pointer-events: none;
  opacity: 1 !important;
}
.sidewrap.open{ transform: translateX(0); pointer-events: auto; }

/* tlačítko se přesune doprava až po otevření */
.sidewrap.open #btnMenu{
  position: absolute !important;
  top: calc(12px + env(safe-area-inset-top)) !important;
  right: 10px !important; left: auto !important;
  z-index: 112345232; display: inline-flex !important;
}
.sidewrap .sidebar{
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: none !important;


}

/* panel – celý mimo obrazovku dokud není otevřený */
.sidebar{
  border-radius: 0 18px 18px 0;
  width: min(84vw, 320px);
  position: absolute;
  inset: auto auto auto 0;
  height: 100dvh;                 /* plná výška na mobilech (lepší než 100vh) */
  min-height: 100dvh;
  padding: 14px;
  padding-top: calc(88px + env(safe-area-inset-top));
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;   /* scroll se „drží“ uvnitř panelu */
  z-index: 2147483635;            /* nad obsahem stránky i nad topnav */
  transition: transform .25s ease, box-shadow .25s ease, border .25s ease;
  transform: translateX(-104%);
  box-shadow: none;
  border: none;
   background: #140f24 !important; /* plně neprůhledné pozadí */
  opacity: 1 !important;

  /* skrytí scrollbaru (panel zůstává scrollovatelný) */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge starší jádra */
}
.sidebar.open{
  transform: none;
  box-shadow: 0 0 20px rgba(0,0,0,.35);
  border: 1px solid rgba(139,92,246,.25);
}
.sidebar::-webkit-scrollbar{      /* Chrome/Safari */
  width: 0;
  height: 0;
  display: none;
}



.logo-mini{ display:flex; align-items:center; justify-content:center; padding:18px 20px; border-radius:14px; background:#2a1f47; margin-bottom:8px; }
.logo-mini img{ height:12px; width:auto; opacity:.95; }
.side-nav .nav-link{ display:flex; align-items:center; gap:.9em; padding:10px 12px; border-radius:12px; color:#fff; text-decoration:none; font-size:.8rem; font-weight:500; transition:background .15s ease; margin-left:4px; }
.side-nav .nav-link:hover{ background:#2a1f47; text-decoration:none; }

/* mobilní chování */
@media (max-width:1024px){
  .topnav{ display:none !important; }
  #btnMenu{ display:inline-flex !important; }
  .sidebar{ display:block; }
  .hero{ padding-top: 82px; }
  #langSwitch{ display:none !important; }
  .features-grid{ grid-template-columns: 1fr !important; }
}

/* desktop: skryj */
@media (min-width:1025px){
  .sidewrap{ display:none !important; }
  .sidebar{ display:none !important; }
  #btnMenu{ display:none; }
}

/* iPad / mobil */

/* ===== COOKIE BAR (fixně dole) ===== */
/* ===== COOKIE BAR (fixně dole) ===== */
.cookie-bar{
  position: fixed !important;     /* držet u viewportu za každou cenu */
  inset: auto 0 0 0;              /* left:0; right:0; bottom:0; */
  background: rgba(21,16,34,.92);
  border-top: 1px solid rgba(139,92,246,.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 40px rgba(0,0,0,.35);
  transform: translateY(110%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 1000002;
  pointer-events: none;
  touch-action: pan-y;
}
/* jistota, že animace opravdu vytáhne lištu nahoru */
.cookie-bar.show{ transform: translateY(0) !important; opacity: 1 !important; }

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-settings-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 1000006;
  /* KLÍČOVÉ: povolíme scrollování stránky za overlayem */
  pointer-events: none;
}

.cookie-settings-overlay.active {
  display: flex;
}

.cookie-settings {
  background: rgba(21, 16, 34, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  padding: 30px 40px;
  max-width: 480px;
  width: 90%;
  color: #fff;
  font-family: "Inter", sans-serif;
  text-align: center;
  animation: fadeIn .3s ease;
}

.cookie-settings h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.cookie-settings button {
  margin-top: 20px;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}

.cookie-settings button:hover {
  background: var(--accent2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}



.cookie-inner{
  max-width: 1200px; margin: 0 auto;
  padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  pointer-events: auto;          /* prvky uvnitř klikají */
}
.cookie-text{ display:flex; gap:12px; align-items:center; color:var(--muted); font-size:.95rem; }
.cookie-text strong{ color:#fff; }
.cookie-more{
  background:transparent; border:1px solid var(--accent); color:var(--accent);
  border-radius:10px; padding:8px 12px; cursor:pointer; transition:.2s; font-weight:600; pointer-events:auto;
}
.cookie-more:hover{ background:var(--accent); color:#fff; box-shadow:var(--glow); }
.cookie-actions{ display:flex; gap:10px; align-items:center; pointer-events:auto; }
.cookie-btn{
  padding:10px 16px; border-radius:12px; cursor:pointer; border:none; font-weight:700;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color:#fff;
  box-shadow: 0 6px 16px rgba(139,92,246,.35); transition: transform .05s ease, filter .15s ease; pointer-events:auto;
}
.cookie-btn:hover{ filter:brightness(1.06); }
.cookie-btn.ghost{
  background: rgba(255,255,255,.06); color:#fff; border:1px solid rgba(255,255,255,.15);
  box-shadow: none;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-prefs[hidden]{ display:none; }
.cookie-prefs{
  position: fixed; inset:0; display:grid; place-items:center;
  background: rgba(0,0,0,.55);
  z-index: 1000003;
}
.prefs-card{
  width: clamp(300px, 92vw, 560px);
  background:#151022;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 22px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(139,92,246,.15) inset;
  color:#fff;
}
.prefs-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-bottom:1px solid rgba(255,255,255,.18);
}
.prefs-head h3{ margin:0; font-size:1rem; font-weight:700; }
.prefs-close{
  width:30px; height:30px; border-radius:999px; border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.1); color:#fff; cursor:pointer; display:grid; place-items:center;
}
.prefs-body{ padding: 14px 16px; display:flex; flex-direction:column; gap:10px; }
.pref-row{ display:flex; gap:12px; align-items:flex-start; }
.pref-row input{ margin-top:4px; }
.pref-row strong{ display:block; margin-bottom:2px; }
.pref-row small{ color: var(--muted); }
.prefs-actions{ padding: 0 16px 16px; display:flex; justify-content:flex-end; }

/* Responsivní drobnosti */
@media (max-width:560px){
  .cookie-inner{ gap:12px; }
  .cookie-actions{ width:100%; justify-content:flex-end; }
}

/* Vypnout starý drawer, ať do toho už nezasahuje */
.cookie-prefs{ display: none !important; }

/* Nový modal – overlay vždy přes celý viewport */

.cookie-settings-overlay.open {        /* viditelný stav */
  display: flex;
}

/* Samotné okno */
.cookie-dialog {
  background: rgba(21,16,34,.95);
  border: 1px solid rgba(139,92,246,.4);
  border-radius: 14px;
  width: min(560px, 92vw);
  max-height: min(90vh, 680px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(139,92,246,.15) inset;
  color: #fff;
  /* KLÍČOVÉ: dialog je kliknutelný */
  pointer-events: auto;
}

/* Hlavička + zavírací tlačítko */
.cookie-dialog__head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.cookie-dialog__head h3{ margin:0; font-size:1rem; font-weight:700; }
.cookie-x {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  margin-right: 6px;              /* vizuální dorovnání k pravému okraji */
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cookie-x:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.35);
}

.cookie-x:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.6);
}

/* Zajištění, že zůstane správně zarovnán ve flex containeru hlavičky */
.cookie-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Tělo + řádky přepínačů */
.cookie-dialog__body{ padding: 16px; display:flex; flex-direction:column; gap:12px; }
.cookie-row{ display:flex; gap:12px; align-items:flex-start; }
.cookie-row input{ margin-top:4px; }
.cookie-row strong{ display:block; margin-bottom:2px; }
.cookie-row small{ color: var(--muted); }

.cookie-dialog__actions{
  padding: 0 16px 16px;
  display:flex; justify-content:flex-end;
}
/* ——— SJEDNOCENÍ PILULE JAZYKA (mobil = stejný vzhled jako desktop) ——— */
#langSwitchSide {
  position: absolute !important;
  bottom: 18px !important;
  left: 18px !important;
  right: auto !important;
  top: auto !important;

  /* VZHLED bere z .lang-switch — nic dalšího tu nepřepisuj */
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2147483647 !important;
}

/* tlačítka stejné jako desktop (9px, 44px šířka apod.) */
#langSwitchSide button {
  height: 30px;
  min-width: 44px;
  padding: 0 10px;
  font-size: 9px;       /* stejné jako desktop */
  font-weight: 650;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .2s ease;
}

/* stav active/hover už dědí z .lang-switch button.* pravidel */


#langSwitchSide button.active {
  background: rgba(139,92,246,.25);
  box-shadow: 0 0 0 2px rgba(139,92,246,.35) inset;
}

/* === FOOTER: vedle sebe na mobilu === */
@media (max-width: 600px){
  footer{ padding:16px 6% 22px; }
  .footer-row{
    flex-wrap: nowrap;          /* nic nepřelamovat */
    white-space: nowrap;        /* drž to v jedné řádce */
    justify-content: center;
    gap: 8px;
    font-size: .8rem;           /* drobné zmenšení, ať se vejde */
  }
  .footer-row .dot{ display:inline; }
}
@media (max-width: 380px){
  .footer-row{ font-size:.75rem; gap:6px; }  /* velmi malé telefony */
}

/* === OFF-CANVAS: na všech mobilech fixně k viewportu === */
@media (max-width: 1024px){
  .sidewrap{
    position: fixed !important;    /* místo absolute */
    top: 0 !important;
    left: 0 !important;
    height: 100dvh;                /* plná výška zařízení */
    transform: translateX(-100%);
  }
  .sidewrap.open{ transform: translateX(0); }

  .sidebar{
    height: 100dvh;                /* jistota stejné výšky */
    min-height: 100dvh;
  }
}
.sidewrap,
.sidebar {
  border-radius: 0 !important;   /* žádné zaoblení */
}

.sidebar,
.cookie-settings,              /* tvé modální okno s nastavením cookies */
.cookie-prefs .prefs-card,     /* fallback modal s preferencemi */
.cookie-bar,                   /* lišta cookies dole */
.pricing-card,                 /* karty ceníku */
.feature {                     /* boxy ve FEATURES */
  background: #151022 !important;         /* plně neprůhledné */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;       /* vypnout rozmazání (propouštělo by vlnění) */
  isolation: isolate;  }

/* === 2️⃣ Footer lépe pro velmi malé šířky === */
/* === Footer: lepší rozestupy na mobilech === */
@media (max-width: 600px) {
  footer {
    padding: 28px 0 34px;            /* víc prostoru nad/pod */
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;                       /* větší mezery mezi řádky */
    white-space: normal;
    font-size: 0.85rem;              /* o něco čitelnější */
    line-height: 1.6;                /* vzdušnější text */
  }

  .footer-row .dot {
    display: none;
  }

  .footer-row a,
  .footer-row span {
    display: block;
  }
}

/* Panel přichycený k viewportu na mobilu/tabletu */
@media (max-width: 1024px){
  .sidewrap{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100dvh;
    transform: translateX(-100%);
  }
  .sidewrap.open{ transform: translateX(0); }
  .sidebar{ height: 100dvh; min-height: 100dvh; }
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Na mobilu není sticky topnav, stačí menší mezera */
@media (max-width: 1024px) {
  section[id] { scroll-margin-top: 12px; }
}


html.modal-open, body.modal-open { /* overflow: hidden !important; */ }

/* ===== PRELOADER (subtle) ===== */
#preloader {
  position: fixed; inset: 0;
  background: #0e0c15;
  display: flex; align-items: center; justify-content: center;
  z-index: 999999; transition: opacity .45s ease, visibility .45s ease;
}
#preloader.hide {
  opacity: 0; visibility: hidden;
}
.preloader-inner {
  width: 80px; height: 80px;
  display: grid; place-items: center;
}
.ring {
  width: 54px; height: 54px;
  border: 3px solid rgba(139,92,246,.25);
  border-top-color: #c084fc;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(139,92,246,.2);
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* === FUNKCE: sjednocený container + přesné centrování === */
section.features {
  /* stejná šířka jako .features-grid (= var(--container)) */
  max-width: var(--container) !important;
  /* pevný boční padding, bez závislosti na viewportu, aby osa neutíkala */
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* hlavička sekce drží stejný střed a šířku jako grid */
.features-header {
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.features-header h2,
.features-header .section-hint { text-align: center; }

/* grid explicitně vycentrovat (pojistka) */
.features-grid {
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-items: stretch;
  align-items: stretch;
}

/* Nikdy „2+1“: buď 3 sloupce, nebo 1 sloupec */
@media (min-width: 1120px) {
  .features-grid { grid-template-columns: repeat(3, minmax(320px, 1fr)) !important; }
}
@media (max-width: 1119.98px) {
  .features-grid { grid-template-columns: 1fr !important; }
}

img, svg {
  width: 25%;
  height: auto;
}

@media (max-width: 768px) {
  .wave-background {
    animation: none !important;
    filter: none !important;
  }
}

@media (max-width: 768px) {
  .feature { transition: none !important; transform: none !important; opacity: 1 !important; }
}

@media (max-width: 768px) {
  .orb, .orb-bg { display: none !important; }
  body { background: #0e0c15 !important; }
}

@media (max-width: 600px) {
  footer { padding: 28px 0 34px; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; gap: 10px; white-space: normal; font-size: 0.85rem; line-height: 1.6; }
  .footer-row .dot { display: none; }
  .footer-row a, .footer-row span { display: block; }
}

/* =========================
   ZALANDO-LIKE FLUID LAYOUT
   ========================= */

/* --- proměnné pro konzistenci --- */
:root{
  --grid-gap: 24px;
  --feature-min: 280px;    /* nejmenší šířka karty (bez lámání textu) */
  --feature-max: 560px;    /* maximum, aby karty nebyly „nekonečné“ */
  --page-pad: clamp(12px, 4vw, 28px);
}

/* Obecný „container“ chovající se jako na e-shopu – zužuje se s viewportem */
.section-inner, .container, .cookie-inner{
  width: min(1200px, 100% - 2*var(--page-pad));
  margin-inline: auto;
}

/* ===== FUNKCE – fluidní grid bez skoků ===== */
.features-grid{
  display: grid;
  gap: var(--grid-gap);
  /* magická věta:
     - repeat(auto-fit, minmax(min(var(--feature-max), 100%), 1fr))
     → karty se zmenšují až k min(--feature-min), pak se zalomí
  */
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(var(--feature-min), 33vw, var(--feature-max)), 1fr)
  );
  justify-content: center; /* sloupce centrovat, když jich je méně */
  padding-inline: var(--page-pad);
}

/* karta – ať má slušné maximum a na mobilu není nalepená na krajích */
.feature{
  width: 100%;
  max-width: var(--feature-max);
  margin-inline: auto;           /* když vznikne 1 sloupec, drž ho uprostřed */
  border-radius: 18px;
  padding: clamp(20px, 3.5vw, 32px);
}

/* mikro úprava typografie, aby při zmenšení nelámala brutálně řádky */
.feature h3{ font-size: clamp(18px, 2.4vw, 24px); }
.feature p{  font-size: clamp(14px, 1.9vw, 16px); line-height: 1.45; }

/* ŽÁDNÉ pevné breakpointy pro 2→1!
   Auto-fit to řeší plynule – jakmile se dvě karty nevejdou,
   samy se zalomí na další řádek. */


/* === COOKIE BAR: plná šířka, nízká výška, tlačítka v jedné linii === */

/* === COOKIE BAR: 3 tlačítka v jedné linii; na úzkých pod sebou ========== */

/* nízká lišta přes celou šířku – ponecháme jak máš */
.cookie-bar{
  width: 100%;
  padding: 8px 0;
  background: rgba(12, 9, 18, .92);
  border-top: 1px solid rgba(139,92,246,.25);
  box-shadow: 0 -6px 18px rgba(0,0,0,.25);
}

/* GRID: [text] [Nastavení] [Odmítnout] [Souhlasím] */
.cookie-inner{
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  grid-template-areas: "text more deny accept";
  align-items: center;
  gap: 12px;
}

/* .cookie-more je v HTML uvnitř .cookie-text → zploštíme rodiče,
   aby šlo tlačítko přemístit do vlastní grid oblasti */
.cookie-text{ display: contents; }

/* text (strong + span) držíme v jedné oblasti vlevo */
.cookie-text > strong,
.cookie-text > span{
  grid-area: text;
  align-self: center;
  text-align: left;
  line-height: 1.25;
}

/* Nastavení do 2. sloupce */
.cookie-more{
  grid-area: more;
  justify-self: center;
  min-height: 36px;
  min-width: 140px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* Rozpustíme wrapper akcí a obě tlačítka pošleme do svých oblastí */
.cookie-actions{ display: contents; }
.cookie-actions .cookie-btn:first-child{ /* Odmítnout */
  grid-area: deny;
  min-height: 36px; min-width: 140px; padding: 8px 14px; white-space: nowrap;
}
.cookie-actions .cookie-btn:last-child{  /* Souhlasím */
  grid-area: accept;
  min-height: 36px; min-width: 140px; padding: 8px 14px; white-space: nowrap;
}

/* — Úzké šířky: všechna tři tlačítka pod text a pod sebe, uprostřed — */
@media (max-width: 900px){
  .cookie-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "more"
      "deny"
      "accept";
    justify-items: center;
    row-gap: 10px;
  }
  .cookie-text > strong,
  .cookie-text > span{ text-align: left; width: 100%; }

  .cookie-more,
  .cookie-actions .cookie-btn:first-child,
  .cookie-actions .cookie-btn:last-child{
    width: min(420px, 100%);
  }
}

/* Extra úzké telefony – klidně přes celou šířku lišty */
@media (max-width: 400px){
  .cookie-more,
  .cookie-actions .cookie-btn:first-child,
  .cookie-actions .cookie-btn:last-child{
    width: 100%;
  }
}


/* === COOKIE BAR: klasické uspořádání COOKIES | text | 3 tlačítka === */
.cookie-bar {
  width: 100%;
  padding: 10px 0;
  background: rgba(12, 9, 18, 0.92);
  border-top: 1px solid rgba(139,92,246,.25);
  box-shadow: 0 -6px 18px rgba(0,0,0,.25);
}

/* horizontální řádek */
.cookie-inner {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

/* levá část – COOKIES + text */
.cookie-text {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  flex: 1 1 auto;
  line-height: 1.25;
  min-width: 280px;
}

.cookie-text > strong {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-text > span {
  flex: 1 1 auto;
}

/* pravá část – tlačítka */
.cookie-more {
  flex: 0 0 auto;
}

.cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

/* jednotný vzhled tlačítek */
.cookie-more,
.cookie-actions .cookie-btn {
  min-height: 36px;
  min-width: 130px;
  padding: 8px 14px;
  white-space: nowrap;
  text-align: center;
}

/* === Reflow na menších šířkách: vše pod sebe === */
@media (max-width: 900px) {
  .cookie-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .cookie-text {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .cookie-more,
  .cookie-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-more,
  .cookie-actions .cookie-btn {
    width: min(420px, 100%);
  }

  .cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* extra úzké mobily */
@media (max-width: 400px) {
  .cookie-more,
  .cookie-actions .cookie-btn {
    width: 100%;
  }
}

/* ≤900px: Cookies a text nad sebou, 3 tlačítka v jedné řadě uprostřed */
@media (max-width: 900px){
  .cookie-inner{
    display: grid !important;
    grid-template-columns: auto auto auto;            /* 3 sloupce pro tlačítka */
    grid-template-areas:
      "label label label"
      "text  text  text"
      "more  deny  accept";
    justify-items: center;
    align-items: center;
    gap: 10px 12px;
  }

  /* rozložit .cookie-text na dva samostatné řádky (nadpis + věta) */
  .cookie-text{ display: contents !important; }
  .cookie-text > strong{ grid-area: label; text-align: left; }
  .cookie-text > span{   grid-area: text;  text-align: left; line-height: 1.3; }

  /* „Nastavení“ + dvě akční tlačítka do jedné řady */
  .cookie-more{ 
    grid-area: more; 
    justify-self: center; 
    min-width: 130px; min-height: 36px; padding: 8px 14px; 
    white-space: nowrap; 
  }
  .cookie-actions{ display: contents !important; }
  .cookie-actions .cookie-btn:first-child{ /* Odmítnout */
    grid-area: deny; 
    min-width: 130px; min-height: 36px; padding: 8px 14px; 
    white-space: nowrap;
  }
  .cookie-actions .cookie-btn:last-child{  /* Souhlasím */
    grid-area: accept; 
    min-width: 130px; min-height: 36px; padding: 8px 14px; 
    white-space: nowrap;
  }
}

/* extra úzké telefony – když by se 3 už fakt nevešly, povolíme zalomení */
@media (max-width: 380px){
  .cookie-inner{
    grid-template-columns: 1fr; 
    grid-template-areas:
      "label"
      "text"
      "more"
      "deny"
      "accept";
  }
  .cookie-more,
  .cookie-actions .cookie-btn{ width: 100%; }
}

/* ≤900 px: Cookies a text nad sebou, 3 tlačítka vlevo v jednom řádku */
@media (max-width: 900px){
  .cookie-inner{
    display: grid !important;
    grid-template-columns: auto auto auto;          /* tři sloupce pro tlačítka */
    grid-template-areas:
      "label label label"
      "text  text  text"
      "more  deny  accept";
    justify-items: start;                            /* VLEVO */
    align-items: center;
    column-gap: 8px;                                 /* blízko u sebe */
    row-gap: 10px;
  }

  /* rozložit .cookie-text na 2 řádky (nadpis + věta) */
  .cookie-text{ display: contents !important; }
  .cookie-text > strong{ grid-area: label; text-align: left; }
  .cookie-text > span{   grid-area: text;  text-align: left; line-height: 1.3; }

  /* tlačítka – jeden řádek vlevo */
  .cookie-more{ grid-area: more; justify-self: start; min-width: 130px; min-height: 36px; padding: 8px 14px; white-space: nowrap; }
  .cookie-actions{ display: contents !important; }
  .cookie-actions .cookie-btn:first-child{ grid-area: deny;   min-width: 130px; min-height: 36px; padding: 8px 14px; white-space: nowrap; }
  .cookie-actions .cookie-btn:last-child { grid-area: accept; min-width: 130px; min-height: 36px; padding: 8px 14px; white-space: nowrap; }
}

/* ≤460 px: tlačítka pod sebou, vlevo (na šířku panelu) */
@media (max-width: 480px){
  .cookie-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "text"
      "more"
      "deny"
      "accept";
    row-gap: 8px;
  }
  .cookie-more,
  .cookie-actions .cookie-btn{
    justify-self: stretch;  /* natáhnout na šířku */
    width: 100%;
  }
}
/* === FUNKCE — 3 vedle sebe, pak rovnou 1 sloupec ======================= */
/* ≥1100 px: vždy 3 sloupce, centrovaně */
@media (min-width:1100px){
  .features-grid{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
    gap: 28px !important;
    max-width: 1200px;               /* pomáhá držet 3 vedle sebe */
    margin-inline: auto;
    justify-items: center;
  }
  .feature{
    width: 100%;
    max-width: 360px;                /* karta se může zúžit, aby se 3 vešly */
  }
}

/* 700–1099 px: záměrně JEN 1 sloupec (žádné 2+1) */
@media (max-width:1099px) and (min-width:700px){
  .features-grid{
    display: grid !important;
    grid-template-columns: minmax(300px, 1fr) !important;
    justify-content: center !important;
    justify-items: center;
    gap: 24px !important;
  }
  .feature{ max-width: 520px; }
}

/* <700 px: 1 sloupec, pěkné mezery */
@media (max-width:699px){
  .features-grid{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    justify-items: center;
  }
  .feature{ width: min(520px, 100%); }
}

/* === CENÍK — stejná výška jako dřív, tlačítko dole, vše na střed ======== */
/* Grid pro 2 karty, centrovaně a stretch na stejnou výšku */
.pricing-cards{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(300px, 420px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 36px !important;
}

/* Zrušíme vynucenou výšku — necháme přirozenou (jako předtím) */
.pricing-card{
  height: auto !important;
  min-height: unset !important;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
}

/* CTA vždy k dolní hraně karty */
.pricing-card .buy-btn{ margin-top: auto !important; }

/* Mobil: 1 sloupec, pořád centrovaně */
@media (max-width:720px){
  .pricing-cards{ grid-template-columns: minmax(300px, 520px) !important; }
}

/* === FEATURES: plynulé zmenšování, stálý poměr, celý text se vejde === */

/* 1) Grid – fixní sloupce 280–360 px, centrované; žádné 2+1 */
.features-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px)) !important;
  justify-content: center !important;
  gap: 26px !important;
}

/* 2) Karta – držíme POMĚR stran 360/260 ≈ 1.385 */
.feature{
  width: clamp(280px, 31vw, 360px) !important;
  aspect-ratio: 360 / 260 !important;          /* výška se dopočítá z šířky */
  box-sizing: border-box;
  padding: clamp(20px, 3.2vw, 32px) clamp(16px, 2.6vw, 28px) !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start;
  align-items: center;
  text-align: center;

  overflow: hidden;          /* nic nepřeteče mimo kartu */
}

/* 3) Obsah – škáluj ikonku, nadpis, text, ať se vždy vejde */
.feature img{
  height: clamp(44px, 7vw, 70px) !important;
  margin: 0 auto clamp(10px, 1.6vw, 16px) !important;
  opacity: .95;
  display: block;
}
.feature h3{
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(1.0rem, 1.6vw, 1.25rem) !important;
  margin-bottom: clamp(6px, 1vw, 10px) !important;
  line-height: 1.2;
}
.feature p{
  color: var(--muted);
  font-size: clamp(.9rem, 1.4vw, 1rem) !important;
  line-height: 1.45;
  margin-top: clamp(8px, 1.4vw, 12px) !important;

  /* místo „line-clampu“ necháme text normálně dopsat.
     Karta si výšku drží přes aspect-ratio, takže text nepřetéká. */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4) Breakpointy – standardní 3→2→1; karty stále drží poměr i velikost */
@media (max-width: 1100px){
  .features-grid{
    grid-template-columns: repeat(2, minmax(280px, 360px)) !important;
  }
}
@media (max-width: 768px){
  .features-grid{
    grid-template-columns: minmax(280px, 360px) !important;
  }
}

/* 5) Velmi úzké telefony – povolit zúžení, ale držet poměr */
@media (max-width: 360px){
  .feature{ width: 100% !important; } /* aspect-ratio výšku dopočítá */
}

/* === FEATURES: držet poměr stran, text se vždy vejde, 3→2→1 sloupce === */

/* Kontejner gridu – 3 vedle sebe (centrovaně), žádné „2+1“ rozhození */
.features-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(320px, 360px)) !important; /* 3 sloupce */
  justify-content: center !important;
  align-items: start !important;
  gap: 26px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  grid-auto-rows: auto !important;             /* přebije původní 1fr => žádné natahování */  /* ← přebíjí homesheet.css */
}

/* 2 sloupce (větší tablet) */
@media (max-width: 1100px){
  .features-grid{
    grid-template-columns: repeat(2, minmax(300px, 360px)) !important;
  }
}
/* 1 sloupec (mobil) */
@media (max-width: 760px){
  .features-grid{
    grid-template-columns: minmax(280px, 360px) !important;
    max-width: 560px !important;
  }
}

/* Karta – držíme poměr stran (360/260), ale bez vynucené výšky/100% */
.feature{
  width: clamp(300px, 30vw, 360px) !important;
  aspect-ratio: 360 / 260 !important;          /* výška se dopočítá z šířky = stejný poměr */
  height: auto !important;                      /* zruší původní height:100% */               /* ← přebíjí homesheet.css */
  box-sizing: border-box;
  padding: clamp(18px, 2.6vw, 28px) clamp(16px, 2.2vw, 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

/* Ikona – menší, ať se vždy vejde */
.feature img,
.feature svg{
  width: clamp(44px, 6vw, 64px) !important;
  height: auto !important;
  margin: 0 auto clamp(8px, 1.2vw, 12px) !important;
  display: block;
}

/* Nadpis – jemně menší, kompaktní řádkování */
.feature h3{
  font-size: clamp(18px, 1.8vw, 21px) !important;
  line-height: 1.2 !important;
  margin: 6px 0 8px !important;
}

/* Text – menší písmo, žádné „odskakování“ na spodek */
.feature p{
  font-size: clamp(13px, 1.25vw, 15px) !important;
  line-height: 1.42 !important;
  margin: 6px 0 0 !important;                   /* přebije původní margin-top:auto; */         /* ← přebíjí homesheet.css */
  overflow: hidden;
  text-overflow: clip;
}


/* === FUNKCE: 3 karty vedle sebe i pod 1100px, stále stejný poměr ========= */
:root{
  /* Poměr vychází z cca 360×260 (můžeš změnit na libovolný) */
  --feat-w: 360;
  --feat-h: 260;

  /* Šířky karty – při zmenšování nikdy nejdeme pod min, ideál je cílová. */
  --feat-min: 240px;   /* ↓ sem můžeme jít, aby se 3 karty vešly i na ~980px */
  --feat-ideal: 340px; /* běžná desktopová šířka */
  --feat-max: 360px;   /* maximum */

  --feat-gap: clamp(16px, 2vw, 26px);
}

/* Desktop i „střední“ šířky – drž 3 sloupce, karty se zmenší až na --feat-min */
.features-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(var(--feat-min), var(--feat-ideal))) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: var(--feat-gap) !important;
  /* zrušíme tvrdé max-width kontejenru, ať 3 sloupce drží déle než do 1100px */
  max-width: none !important;
  margin-inline: auto !important;
}

/* Karta: vyplní sloupec, drží poměr stran, obsah škáluje, nic nepřetéká */
.feature{
  width: 100% !important;
  max-width: var(--feat-max) !important;
  aspect-ratio: var(--feat-w) / var(--feat-h) !important;
  box-sizing: border-box;
  padding: clamp(16px, 2.2vw, 24px) clamp(14px, 2vw, 22px) !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  overflow: hidden !important;
}

/* Ikona a typografie – zmenšíme adaptivně, aby se text vždy vešel */
.feature img,
.feature svg{ 
  width: clamp(40px, 5.5vw, 62px) !important; 
  height: auto !important;
  margin-bottom: clamp(8px, 1.2vw, 12px) !important;
  display: block;
}
.feature h3{
  font-size: clamp(17px, 1.7vw, 21px) !important;
  line-height: 1.22 !important;
  margin: 6px 0 8px !important;
}
.feature p{
  font-size: clamp(13px, 1.2vw, 15px) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Když už je viewport opravdu úzký, přepínáme 3→2→1.
   Díky --feat-min vydrží 3 sloupce až cca k ~980px (podle padding/gap). */
@media (max-width: 980px){
  .features-grid{
    grid-template-columns: repeat(2, minmax(var(--feat-min), var(--feat-ideal))) !important;
  }
}
@media (max-width: 640px){
  .features-grid{
    grid-template-columns: minmax(var(--feat-min), var(--feat-ideal)) !important;
  }
}

/* === FUNKCE: menší typografie na menších šířkách + 3 sloupce až do ~850px === */
:root{
  /* poměr vychází z ~360×260 */
  --feat-w: 360;
  --feat-h: 260;

  /* šířky sloupce – zmenšíme víc, aby se 3 vešly až do ~850px */
  --feat-min: 210px;   /* jak nízko může sloupec klesnout */
  --feat-ideal: 340px; /* běžná šířka na desktopu */
  --feat-max: 360px;

  --feat-gap: clamp(14px, 2vw, 26px);
}

/* Výchozí: 3 sloupce, centrovaně, bez pevného max-width kontejneru */
.features-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(var(--feat-min), var(--feat-ideal))) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: var(--feat-gap) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

/* Karta – držíme poměr, obsah škáluje */
.feature{
  width: 100% !important;
  max-width: var(--feat-max) !important;
  aspect-ratio: var(--feat-w) / var(--feat-h) !important;
  box-sizing: border-box;
  padding: clamp(14px, 2.2vw, 24px) clamp(12px, 2vw, 22px) !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  overflow: hidden !important;
}

/* Ikona + typografie – obecně menší minima, aby se text vešel */
.feature img,
.feature svg{
  width: clamp(36px, 5vw, 62px) !important;
  height: auto !important;
  margin-bottom: clamp(6px, 1.1vw, 12px) !important;
  display: block;
}
.feature h3{
  font-size: clamp(16px, 1.5vw, 22px) !important;
  line-height: 1.18 !important;
  margin: 4px 0 6px !important;
}
.feature p{
  font-size: clamp(12px, 1.15vw, 15px) !important;
  line-height: 1.38 !important;
  margin: 0 !important;
  word-break: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: clip;
}

/* Drž 3 sloupce až do ~850px */
@media (max-width: 940px){
  .features-grid{
    grid-template-columns: repeat(2, minmax(var(--feat-min), var(--feat-ideal))) !important;
  }
}

/* 1 sloupec až pod ~600px – žádné 2+1 */
@media (max-width: 600px){
  .features-grid{
    grid-template-columns: minmax(var(--feat-min), var(--feat-ideal)) !important;
  }
}


/* === FUNKCE: 3 sloupce až do 940 px, pak 1 sloupec; obsah se škáluje === */
:root{
  /* poměr vychází z cca 360×260 */
  --feat-rw: 360;
  --feat-rh: 260;

  /* rozsah šířky jedné karty při zmenšování */
  --feat-min: 220px;    /* kam až můžeme jít, aby se 3 stále vešly */
  --feat-ideal: 340px;  /* běžná desktopová šířka */
  --feat-max: 360px;    /* horní strop (větší už ne) */

  --feat-gap: clamp(16px, 2vw, 26px);
}

/* Desktop + „střední“ šířky: 3 sloupce, centrovaně, žádné 2+1 */
.features-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(var(--feat-min), var(--feat-ideal))) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: var(--feat-gap) !important;
  max-width: none !important;   /* nenecháme kontejner, aby nás brzdil */
  margin-inline: auto !important;
}

/* Karta – držíme poměr stran; obsah se plynule zmenšuje */
.feature{
  width: 100% !important;
  max-width: var(--feat-max) !important;
  aspect-ratio: var(--feat-rw) / var(--feat-rh) !important;  /* stálý poměr */
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 1.8vw, 22px) !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  overflow: hidden !important;
}

/* Ikona + typografie – menší minima, aby se text vždy vešel i těsně před 940px */
.feature img,
.feature svg{
  width: clamp(34px, 4.6vw, 62px) !important;
  height: auto !important;
  margin-bottom: clamp(6px, 1vw, 12px) !important;
  display: block;
}
.feature h3{
  font-size: clamp(15px, 1.45vw, 21px) !important;
  line-height: 1.18 !important;
  margin: 4px 0 6px !important;
  word-break: break-word;
}
.feature p{
  font-size: clamp(11.5px, 1.05vw, 15px) !important;
  line-height: clamp(1.28, 1.1vw, 1.42) !important;
  margin: 0 !important;
  hyphens: auto;
  word-break: break-word;
  overflow: hidden;
}

/* ≤ 939 px: všechno POD SEBOU (1 sloupec), stejné rozměry karty, centrované */
@media (max-width: 939px){
  .features-grid{
    grid-template-columns: minmax(var(--feat-min), var(--feat-ideal)) !important;
    justify-content: center !important;
    max-width: 560px !important;
  }
  .feature{ width: 100% !important; }
}

/* === JEDNOSLOUPCOVÝ REŽIM (≤939px) – větší ikony a text, aby to nebylo prázdné === */
/* ≤939px: 1 sloupec – větší, ale vždy se vše vejde */
@media (max-width: 939px){
  .features-grid{
    grid-template-columns: minmax(var(--feat-min), var(--feat-ideal)) !important;
    justify-content: center !important;
    max-width: 560px !important;
  }

  .feature{
    /* necháváme aspect-ratio z tvého základu */
    padding: clamp(18px, 4.8vw, 32px) clamp(16px, 4.2vw, 28px) !important;
  }

  /* Ikona – větší, ale se stropem, aby nepřetékala */
  .feature img,
  .feature svg{
    width: clamp(52px, 10vw, 38px) !important;
    height: auto !important;
    margin-bottom: clamp(10px, 2.2vw, 14px) !important;
    display: block;
  }

  /* Nadpis – čitelný, ale bezpečné maximum */
  .feature h3{
    font-size: clamp(18px, 5.2vw, 18px) !important;
    line-height: 1.22 !important;
    margin: 6px 0 clamp(8px, 2vw, 12px) !important;
    text-wrap: balance;
    word-break: break-word;
  }

  /* Text – trochu větší, ale s limitem; dovolíme dělení slov */
  .feature p{
    font-size: clamp(13px, 4.2vw, 13px) !important;
    line-height: 1.48 !important;
    margin: 0 !important;
    hyphens: auto;
    word-break: break-word;
    overflow: hidden; /* žádné vytečení mimo kartu */
  }

  /* drobná pojistka proti přetečení u extrémních délek textu */
  .feature *{ max-width: 100%; }
}


.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--reveal-delay, 0s); }
.fade-up.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .fade-up { opacity:1; transform:none; transition:none; } }

/* výraznější pohyb a delší trvání jen pro hero */
.fade-up-hero {
  transform: translateY(60px) scale(.985);
  transition-duration: 1s;           /* z .8s → 1s */
}
.fade-up-hero.show {
  transform: translateY(0) scale(1);
}
.fade-up { will-change: transform, opacity; }


/* ===== Mobile LANDSCAPE: kompaktnější hamburger panel ===== */
@media (max-width: 1024px) and (orientation: landscape) {
  /* panel – méně vnitřního prostoru, víc místa dole na jazykový přepínač */
  .sidebar{
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-y: hidden !important;   
  }

  /* menší „čip“ s logem */
  .sidebar .logo-mini{
    padding: 12px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 6px !important;
  }
  .sidebar .logo-mini img{
    height: 10px !important;   /* z 12px → 10px */
    opacity: .95;
  }

  /* navigační položky – menší písmo i vertikální mezery */
  .side-nav .nav-link{
    font-size: .75rem !important;     /* z ~.8 → .75 */
    padding: 8px 10px !important;      /* z 10/12 → 8/10 */
    border-radius: 10px !important;
    gap: .7em !important;
    margin-left: 2px !important;
  }

  .sidebar .lang-switch{
    position: fixed !important;
    left: calc(env(safe-area-inset-left, 0px) + 14px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
    top: auto !important; right: auto !important;
  }


    html, body{ overscroll-behavior: none !important; }

}

/* ===== FAQ: fixní výška slidu + tečky u spodku ===== */
.faq-box{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* text uprostřed výšky boxu */
  min-height: 420px;            /* stejné pro všechny slidy */
  padding-bottom: 72px;         /* rezerva pro tečky */
}

.faq-dots{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100px;                 /* fixní pozice od spodku */
  margin: 0;
}

/* Mobil – drž to stabilní i na malých displejích */
@media (max-width: 430px){
  .faq-box{
    min-height: min(62dvh, 520px);  /* stabilní výška podle viewporu */
    padding-bottom: 68px;
  }

}

.faq-q, .faq-a {
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
  touch-action: pan-y;
  user-select: none;
}
/* Tečky pevně pod textem */
/* Tečky pevně pod textem */
#faqDots{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  pointer-events: auto;
}
.faq-box{ position: relative; padding-bottom: 72px; }

/* Tečky – barevný fade (žádné celkové opacity) */
.faq-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(139,92,246,0.18);  /* světle fialová – výchozí */
  transform: scale(1);
  transition: none;                          /* vše řídí JS (drag i klik) */
  cursor: pointer;
}
.faq-dot.active{
  background-color: rgba(139,92,246,1);      /* plně sytá fialová */
  transform: scale(1.20);
}

/* sekce Contact jako kotevní bod */
#contact, .contact-section{
  position: relative;
  overflow: visible; /* pro jistotu – nic neřeže okraje */
}

/* PŘEPÍŠE původní fixed: tlačítko je u pravého okraje sekce, uprostřed její výšky */
.to-top-fab.contact-aligned{
  position: absolute !important;
  right: 16px;             /* vždy celé viditelné */
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  opacity: 0;              /* ovládá IntersectionObserver */
  transform-origin: center;
}

/* když je sekce Contact v záběru, ukaž tlačítko */
.to-top-fab.contact-aligned.show{
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* jemné doladění pro menší šířky: tlačítko níž, ať nepřekrývá text/ikony */
@media (max-width: 800px){
  .to-top-fab.contact-aligned{
    right: 8px;
    top: auto;
    bottom: 12px;               /* přesun ke spodní hraně sekce */
    transform: none;
  }
  .to-top-fab.contact-aligned.show{
    transform: scale(1);
  }
}

:root{
  --top-side-right: 78px;            /* ← jemně dolaď podle oka (tvůj modrý kruh) */
  --top-side-color: #8b5cf6;
}


/* samotný text TOP */
.to-top-side {
  position: absolute;
  right: 0;                       /* zarovnání k pravému okraji sekce */
  top: 50%;                       /* vertikálně na střed sekce */
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #8b5cf6;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
  margin-right: 40px;             /* ⬅ uprav pro vzdálenost od pravého okraje */
}

/* menší úpravy na mobilu */
@media (max-width: 700px) {
  .to-top-side {
    margin-right: 20px;
  }
}


/* Více prostoru na hodně vysokých obrazovkách – obsah se rozprostře, nezůstane prázdný spodek */
@media (min-height: 1000px) and (min-width: 1280px){
  .hero{ min-height: 66vh; }                       /* bylo ~54vh → víc na výšku */
  section.features{ padding: max(80px,10vh) var(--section-x) max(140px,12vh); }
  section.pricing{  padding: max(80px,10vh) 8%     max(140px,12vh); }
  section.faq{      padding: max(80px,10vh) 8%     max(140px,12vh); }
  section.contact{  padding: max(70px,8vh)  8%     max(80px, 9vh); }
  .faq-stage{ min-height: clamp(220px, 28vh, 360px); }
}

/* 4K+ plochy – ještě o chlup víc, ale stále střídmě */
@media (min-height: 1300px) and (min-width: 1600px){
  .hero{ min-height: 72vh; }
  section.features, section.pricing, section.faq{ padding-top: 12vh; padding-bottom: 13vh; }
  section.contact{ padding-top: 9vh; padding-bottom: 10vh; }
}



/* ============================================
   HERO – MOBILNÍ ÚPRAVA (více místa nahoře + padding textu)
============================================ */
@media (max-width: 768px) {
  .hero {
    padding-top: 140px !important;   /* původně ~82px – nyní více místa */
  }

  .hero h1 {
    margin-top: 20px !important;     /* posune nadpis níže */
  }

  .hero p {
    padding-left: 22px !important;   /* více prostoru po stranách */
    padding-right: 22px !important;
    max-width: 95% !important;       /* aby text nebyl nalepený */
  }
}

