/* ==========================================================================
   paulpoint.cz – Main Stylesheet (Futuristic Glassmorphic UI/UX)
   ========================================================================== */

:root {
  --bg: #1e293b;
  --bg2: #101726;
  --card: rgba(51, 65, 85, 0.45);
  --line: rgba(148, 163, 184, 0.22);
  --tx: #e2e8f0;
  --mut: #a8b5c9;
  --em: #10b981;
  --emd: rgba(16, 185, 129, 0.14);
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  box-sizing: border-box;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}

/* --- Animovaný efekt polární záře (Aurora na pozadí) --- */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  animation: auroraGlow 12s ease-in-out infinite alternate;
}

body::before {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--em) 0%, transparent 70%);
}

body::after {
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes auroraGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(60px, 40px) scale(1.15); opacity: 0.25; }
  100% { transform: translate(-40px, 80px) scale(0.95); opacity: 0.18; }
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 3px;
  border-radius: 6px;
}

a, button, summary, label, input, select, textarea, .btn {
  touch-action: manipulation;
}

/* --- Layout --- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 2;
}

section {
  padding: 56px 0;
}

/* --- Canvas pro particles na pozadí --- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  z-index: 1;
}

#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--em), #67e8f9, var(--em));
  z-index: 999;
  pointer-events: none;
}

/* --- Preloader (Vortex) --- */
#vortex-preloader {
  position: fixed;
  inset: 0;
  background: #0b0f17;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#vortex-preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#vortex-canvas {
  position: absolute;
  inset: 0;
}

.vortex-hud {
  position: relative;
  z-index: 2;
  text-align: center;
}

.vortex-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.vortex-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vortex-ring circle.bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 4;
}

.vortex-ring circle.meter {
  fill: none;
  stroke: var(--em);
  stroke-width: 4;
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
  transition: stroke-dashoffset 0.1s linear;
}

.vortex-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vortex-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.vortex-logo .mono { font-family: var(--mono); color: var(--mut); }
.vortex-logo .cursor { font-family: var(--mono); color: var(--em); animation: blink 1s infinite; }

.vortex-pct {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--em);
  margin-top: 4px;
}

.vortex-skip {
  position: absolute;
  bottom: 30px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
}

.vortex-skip:hover {
  color: var(--tx);
  border-color: var(--em);
}

/* --- Typography & Buttons --- */
h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 18px 0;
  max-width: 16ch;
  background: linear-gradient(100deg, var(--tx) 30%, #6ee7b7 50%, var(--tx) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.15;
}

p.lead {
  color: var(--mut);
  max-width: 52ch;
  font-size: 17px;
  margin: 0 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.6);
  color: var(--tx);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, border-color 0.25s, filter 0.25s;
}

.btn:hover {
  border-color: var(--em);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn.p {
  background: var(--em);
  color: #04231a;
  border-color: var(--em);
}

.btn.p:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 12px 32px rgba(16, 185, 129, 0.4);
}

/* --- Glassmorphism & Micro-Interactions --- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card-pop:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.12);
}

.card-pop:hover .card-icon-wrap {
  background: rgba(16, 185, 129, 0.25);
  transform: scale(1.08);
  border-color: var(--em);
}

.badge {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.6);
  color: var(--mut);
  display: inline-block;
  letter-spacing: 0.02em;
}

.badge.em {
  color: var(--em);
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--emd);
}

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 0 4px var(--emd);
}

/* --- Header & Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  color: var(--tx);
  display: inline-flex;
  align-items: center;
}

.logo .logo-dot,
.vortex-logo .logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--em);
  border-radius: 50%;
  margin: 0 4px 2px 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  vertical-align: middle;
}

.logo .mono { font-family: var(--mono); font-weight: 500; color: var(--mut); }
.logo .cursor { font-family: var(--mono); color: var(--em); animation: blink 1s infinite; }

nav .links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--mut);
}

nav .links a:hover { color: var(--tx); }

.burger {
  display: none;
  position: relative;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(8px);
}

.burger i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--tx);
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.2s, top 0.35s;
}

.burger i:nth-child(1) { top: 14px; }
.burger i:nth-child(2) { top: 21px; right: 20px; }
.burger i:nth-child(3) { top: 28px; }

.burger[aria-expanded="true"] i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger[aria-expanded="true"] i:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* --- Mobile Navigation Drawer --- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px;
  background: rgba(16, 23, 38, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  clip-path: circle(0% at calc(100% - 44px) 42px);
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.6s;
}

.mnav.open {
  clip-path: circle(150% at calc(100% - 44px) 42px);
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}

.mnav-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mnav.open .mnav-head,
.mnav.open .mnav-footer {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.mnav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto 0;
}

.mnav-links a {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}

.mnav.open .mnav-links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.15s + var(--i) * 0.06s);
}

.mnav-links a small {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--em);
  margin-right: 12px;
}

.mnav-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
}

body.lock { overflow: hidden; }

/* --- Hero Section & Grid --- */
.hero { padding: 30px 0 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 28px;
  align-items: center;
}

.hero-stats-clean {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.hero-stat-item b {
  font-size: 28px;
  font-family: var(--mono);
  color: var(--em);
  display: block;
  line-height: 1.1;
}

.hero-stat-item span {
  font-size: 13.5px;
  color: var(--mut);
}

/* ==========================================================================
   DUÁLNÍ MOCKUP: NOTEBOOK + TELEFON (CAROUSEL)
   Poměry: telefon ≈ 26 % šířky notebooku, překrývá jeho levý okraj, spodek zarovnaný
   ========================================================================== */

.hero-mockup-duo {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 11%;            /* místo pro telefon vlevo od notebooku */
  box-sizing: border-box;
}

/* 1. NOTEBOOK */
.laptop-png-container {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65));
}

.laptop-png-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Displej přesně v průhledném okně rámečku (změřeno z laptop-frame.png), černý okraj zůstává.
   Okno rámečku: top 4.5 % / left 9.9 % / width 80.3 % / height 82.4 %; hodnoty níže jsou o chlup větší, aby nevznikla štěrbina. */
.laptop-png-screen {
  position: absolute;
  top: 4.4%;
  left: 9.8%;
  width: 80.4%;
  height: 82.7%;
  background: #000;
  border-radius: 0;
  z-index: 1;
  overflow: hidden;
}

/* 2. TELEFON (22 % z celku ≈ 25 % šířky notebooku) */
.phone-png-container.duo-overlay {
  position: absolute;
  left: 2%;
  bottom: 0;
  width: 22%;
  z-index: 20;
  background: transparent;
  filter: drop-shadow(10px 10px 25px rgba(0, 0, 0, 0.8));
}

.phone-png-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.phone-png-screen {
  position: absolute;
  top: 1.8%;
  left: 3.5%;
  width: 93%;
  height: 96.4%;
  background: #000;
  border-radius: 28px;
  z-index: 5;
  overflow: hidden;
}

/* 3. CAROUSEL */
.mockup-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.01);
  image-rendering: auto;        /* plynulé zmenšení = čitelnější text */
}

.mockup-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* 4. MOBIL: stejné poměry, jen menší zaoblení displeje */
@media (max-width: 640px) {
  .hero-mockup-duo {
    max-width: 100%;
    margin: 15px auto 0 auto;
  }

  .phone-png-screen {
    border-radius: 14px;
  }
}

/* 5. MOCKUP V KARTÁCH PROJEKTŮ (stejné rámečky jako v hero) */
.project-preview-wrap.card-mockup {
  padding: 10px var(--card-inset, 20px) 0;
  background: transparent;
  border-radius: 16px 16px 0 0;
}

.card-mockup .hero-mockup-duo {
  max-width: 100%;
  margin: 0;
}

.card-mockup .mockup-slide { transition: none; }

/* zaoblení displeje telefonu v procentech, aby sedělo i při malé velikosti */
.card-mockup .phone-png-screen { border-radius: 18% / 8.6%; }

.card-mockup .phone-png-container.duo-overlay {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-pop:hover .card-mockup .phone-png-container.duo-overlay {
  transform: translateY(-6px) scale(1.04);
}

/* Pozdější pravidla .glass/.card { padding: 32px 28px !important } přebíjela padding: 0 u karet projektů
   => mockup i text byly odsazené o 28 px (na mobilu 20 px) navíc. Vyšší specificita to vrací. */
.glass.card-with-preview,
.card.card-with-preview {
  padding: 0 !important;
}

.card-with-preview {
  --card-inset: 20px;   /* stejné boční odsazení pro mockup i text */
}

.card-with-preview .card-body-inner {
  padding: 20px var(--card-inset, 20px) 24px;
}


/* --- ČASOVÁ OSA (PROCESS TIMELINE) --- */
.process-timeline {
  position: relative;
  margin-top: 40px;
}

.timeline-line {
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), var(--em), rgba(16, 185, 129, 0.2));
  z-index: 1;
  box-shadow: 0 0 12px var(--em);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 0 6px var(--bg);
}

.step-node-num {
  position: absolute;
  top: -10px;
  background: var(--em);
  color: #04231a;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.node-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--mut);
  transition: stroke 0.3s;
}

.step-content {
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.step-content h3 { font-size: 17px; margin: 0 0 8px 0; font-weight: 700; }
.step-content p { font-size: 13.5px; color: var(--mut); line-height: 1.5; margin: 0; }

.process-step:hover .step-node {
  border-color: var(--em);
  background: rgba(16, 185, 129, 0.15);
  transform: scale(1.12);
  box-shadow: 0 0 0 8px var(--bg), 0 0 25px rgba(16, 185, 129, 0.4);
}

.process-step:hover .node-icon svg { stroke: var(--em); }

/* --- PROJEKTY CAROUSEL & PREVIEWS --- */
.case-head-carousel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.carousel-nav {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--line);
  color: var(--tx);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s;
}

.carousel-btn:hover {
  background: var(--em);
  color: #04231a;
  border-color: var(--em);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.carousel-wrapper {
  overflow: visible;
  position: relative;
  margin: 0 -22px;
  padding: 10px 22px 45px 22px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;              /* žádný vnitřní svislý posuv – na telefonu by se karusel „třásl“ */
  overscroll-behavior-x: contain;  /* swipe na konci karuselu neposouvá stránku ani nevrací zpět */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 0 22px;            /* místo pro zvednutí karty a stín, ať se neořízne */
  margin: -12px 0 -2px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 320px;
  scroll-snap-align: start;
}

.card-with-preview {
  padding: 0 !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dual-preview {
  position: relative;
  overflow: visible;
  height: 210px;
  background: #0f172a;
  border-radius: 16px 16px 0 0;
}

.desktop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid var(--line);
  image-rendering: -webkit-optimize-contrast;
}

.phone-mockup {
  position: absolute;
  right: 12px;
  bottom: -35px;
  width: 95px;
  height: 185px;
  background: #090d16;
  border: 5px solid #334155;
  border-radius: 18px;
  box-shadow: 
    -8px 10px 30px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(16, 185, 129, 0.25);
  z-index: 10;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  image-rendering: -webkit-optimize-contrast;
}

.card-pop:hover .phone-mockup {
  transform: translateY(-8px) scale(1.06);
  border-color: var(--em);
  box-shadow: -10px 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.4);
}

.card-body-inner {
  padding: 38px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-footer-aligned {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-footer-aligned .res-pill { margin-top: 0; }

.res-pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--em);
  background: var(--emd);
  padding: 6px 12px;
  border-radius: 6px;
}

/* --- Cards Grid & Generic --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.card h3 { margin: 12px 0 8px; font-size: 19px; font-weight: 700; }
.card p { color: var(--mut); margin: 0; font-size: 14.5px; line-height: 1.55; }

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--emd);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.card-icon-wrap svg { width: 24px; height: 24px; stroke: var(--em); }

/* --- Detached Footer --- */
.ft-detached {
  margin-top: 90px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  padding: 50px 0 30px;
}

.ft-beam {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
}

.ft-detached p {
  color: var(--mut);
  font-size: 14px;
  max-width: 32ch;
  margin: 12px 0 18px;
}

.ft-detached h5, .ft-detached .ft-h {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--tx);
}

.ft-detached a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--mut);
  transition: color 0.2s, transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .ft-detached a:hover {
    color: var(--em);
    transform: translateX(4px);
  }
}

.ft-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--em);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 8px var(--em);
  animation: pulse 2s infinite;
}

/* ==========================================================================
   CENÍK & ANIMOVANÁ INTERAKTIVNÍ KALKULAČKA
   ========================================================================== */

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.pricing-card h3 {
  font-size: 22px;
  margin: 14px 0 8px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0;
}

.price-from {
  color: var(--mut);
  font-size: 15px;
}

.price-num {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--em);
  line-height: 1;
}

.price-currency {
  font-weight: 700;
  color: var(--tx);
  font-size: 18px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--tx);
}

.calc-container {
  padding: 32px;
  margin-top: 20px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}

.calc-group {
  margin-bottom: 28px;
}

.calc-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--tx);
}

.calc-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calc-radio-item input {
  display: none;
}

.calc-radio-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calc-radio-box b {
  font-size: 13.5px;
  color: var(--tx);
}

.calc-radio-box span {
  font-size: 11.5px;
  color: var(--mut);
  line-height: 1.3;
}

.calc-radio-item:hover .calc-radio-box {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.75);
}

.calc-radio-item input:checked + .calc-radio-box {
  border-color: var(--em);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25), inset 0 0 10px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

/* RANGE SLIDER BEZ HRANATÝCH ROHŮ */
input[type="range"].calc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

input[type="range"].calc-range-slider:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

input[type="range"].calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--em);
  border: 2px solid #04231a;
  box-shadow: 0 0 15px var(--em);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
  margin-top: 0;
}

input[type="range"].calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 22px var(--em);
}

input[type="range"].calc-range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--em);
  border: 2px solid #04231a;
  box-shadow: 0 0 15px var(--em);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
}

input[type="range"].calc-range-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 22px var(--em);
}

input[type="range"].calc-range-slider::-moz-range-progress {
  background: var(--em);
  height: 6px;
  border-radius: 99px;
}

.calc-chk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calc-chk-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calc-chk-card input {
  display: none;
}

.calc-chk-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.75);
}

.calc-chk-card input:checked + .calc-chk-custom {
  background: var(--em);
  border-color: var(--em);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.calc-chk-card input:checked ~ div b {
  color: #fff;
}

.calc-chk-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.calc-chk-custom::after {
  content: '✓';
  position: absolute;
  top: -4px;
  left: 3px;
  color: #04231a;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s;
}

.calc-chk-card input:checked + .calc-chk-custom::after {
  opacity: 1;
}

.calc-chk-card b {
  display: block;
  font-size: 13px;
  color: var(--tx);
}

.calc-chk-card small {
  color: var(--em);
  font-family: var(--mono);
  font-size: 11px;
}

/* ==========================================================================
   GLASSMORPHIC VÝSLEDKOVÝ PANEL KALKULAČKY
   ========================================================================== */

.calc-summary-box {
  background: radial-gradient(120% 120% at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(30, 41, 59, 0.45) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(16, 185, 129, 0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calc-summary-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
}

.calc-summary-inner h4 {
  font-size: 18px;
  margin: 0 0 4px 0;
  color: var(--tx);
  letter-spacing: -0.01em;
}

.calc-summary-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 14px 0;
  min-height: 80px;
}

.calc-sum-item.animated {
  animation: calcItemFade 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes calcItemFade {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.calc-sum-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.calc-sum-item span {
  color: var(--mut);
}

.calc-sum-item b {
  font-family: var(--mono);
  color: var(--tx);
  font-size: 13px;
}

.calc-total-wrap {
  text-align: center;
  padding-top: 6px;
}

.calc-total-wrap span {
  font-size: 11px;
  color: var(--mut);
  text-transform: uppercase;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.calc-total-price {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--em);
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.calc-total-price #calc-total-num {
  font-size: 38px;
  letter-spacing: -0.02em;
}

.calc-total-currency {
  font-size: 26px;
  font-weight: 800;
  color: var(--em);
}

#calc-send-btn {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

#calc-send-btn:hover {
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.7) !important;
  transform: translateY(-3px) scale(1.01) !important;
}

/* ==========================================================================
   ČISTÝ NATIVNÍ KURZOR V ZELENÉ BARVĚ WEBU (#10b981)
   ========================================================================== */

@media (pointer: fine) {
  body, html {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10.07 19.97L13.58 12.58L20.97 9.07L3 3Z' fill='%2310b981' stroke='%2304231a' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto !important;
  }

  a, button, input, label, select, textarea, .btn, .card-pop, .calc-radio-box, .calc-chk-card, [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0v5M14 10V4a2 2 0 0 0-4 0v6M10 10.5V2a2 2 0 0 0-4 0v11M18 11a2 2 0 0 1 4 0v5a7 7 0 0 1-7 7h-2a7 7 0 0 1-5-2.05L3 12.1a1.5 1.5 0 0 1 2.25-1.95L8 12.5V13' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='%2304231a'/%3E%3C/svg%3E") 6 0, pointer !important;
  }
}

/* Keyframes & Responsiveness */
@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .carousel-slide { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 860px) {
  nav .links,
  .main-nav,
  .nav-cta { 
    display: none !important; 
  }
  
  .burger { 
    display: block !important; 
  }

  .grid, .ft-grid, .calc-grid { grid-template-columns: 1fr; }
  .calc-radio-grid, .calc-chk-grid { grid-template-columns: 1fr; }
  
  .timeline-line {
    top: 0; bottom: 0; left: 36px; right: auto;
    width: 2px; height: 100%;
  }

  .process-grid { grid-template-columns: 1fr; gap: 28px; }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .step-node { margin-bottom: 0; flex-shrink: 0; }
  .step-content { text-align: left; }
}

/* ==========================================================================
   ANIMOVANÝ CTA BANNER S LASER BEAM EFEKTEM
   ========================================================================== */

.cta-banner {
  padding: 48px 40px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(16, 185, 129, 0.18) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.2);
  border-radius: 20px !important;
  position: relative;
  overflow: hidden;
  animation: ctaBgPulse 6s ease-in-out infinite alternate;
}

@keyframes ctaBgPulse {
  0% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15); }
  100% { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(16, 185, 129, 0.35); }
}

.cta-laser-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.cta-laser-line {
  fill: none;
  stroke: var(--em);
  stroke-width: 2px;
  stroke-dasharray: 80 300;
  stroke-dashoffset: 0;
  animation: ctaLaserOrbit 4s linear infinite;
  filter: drop-shadow(0 0 8px var(--em));
}

@keyframes ctaLaserOrbit {
  from { stroke-dashoffset: 380; }
  to { stroke-dashoffset: 0; }
}

.cta-content, .cta-action { position: relative; z-index: 2; }

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.cta-btn-glow {
  padding: 16px 32px !important;
  font-size: 16px !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  animation: btnPulseGlow 2.5s infinite;
}

@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.75); }
}

.cta-btn-glow:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.9) !important;
}

.cta-subtext {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--em);
  box-shadow: 0 0 10px var(--em);
  display: inline-block;
  animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

@media (max-width: 860px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px !important;
  }

  .cta-action {
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
  }

  .cta-btn-glow {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   ANIMOVANÉ ZVÝRAZNĚNÍ KARTY VÍCESTRÁNKOVÉHO WEBU
   ========================================================================== */

.pricing-featured {
  background: radial-gradient(120% 120% at 50% 0%, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.2) !important;
  position: relative;
  overflow: hidden;
  animation: featuredGlow 5s ease-in-out infinite alternate;
}

@keyframes featuredGlow {
  0% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.15); }
  100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(16, 185, 129, 0.35); }
}

.pricing-featured-btn {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
  animation: featuredBtnPulse 2.5s infinite;
  position: relative;
  z-index: 2;
}

@keyframes featuredBtnPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.65); }
}

.pricing-featured-btn:hover {
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.85) !important;
  transform: translateY(-3px) scale(1.02) !important;
}

.ft-detached {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 90px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  padding: 50px 0 30px;
}

/* ==========================================================================
   ULTRA-FAST HARDWARE ACCELERATED GALERIE
   ========================================================================== */

.travel-carousel-viewport {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  contain: layout paint;
}

.travel-carousel-viewport::before,
.travel-carousel-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 5;
  pointer-events: none;
}

.travel-carousel-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.travel-carousel-viewport::after { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }

.travel-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  animation: infiniteScroll 35s linear infinite;
}

.travel-carousel-viewport:hover .travel-carousel-track {
  animation-play-state: paused;
}

.travel-card {
  width: 190px;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transform: translateZ(0);
  transition: transform 0.25s ease, border-color 0.25s;
}

.travel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
}

.travel-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: var(--em);
}

@keyframes infiniteScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-50% - 8px), 0, 0); }
}

/* ==========================================
   HLAVIČKA A NAVIGACE
   ========================================== */
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--tx);
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
    transition: all 0.25s ease;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.main-nav a.active {
    color: var(--em);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--em);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--em);
}

.nav-cta {
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--em);
    color: #0f172a !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    background: #10b981;
}

/* ==========================================================================
   RESPONSIVITA PRO STRÁNKU KONTAKT (MOBILY A TABLETY)
   ========================================================================== */

@media (max-width: 860px) {
  section.wrap > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  section.wrap > div[style*="align-items: stretch"] {
    align-items: initial !important;
  }

  .glass { padding: 22px 18px !important; }

  .hero h1 {
    font-size: 32px !important;
    gap: 10px !important;
  }

  .hero h1 > span:last-child:not(#typed-text) {
    width: 42px !important;
    height: 42px !important;
  }

  .hero h1 > span:last-child:not(#typed-text) svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 480px) {
  form input, form select, form textarea {
    font-size: 15px !important;
  }

  .btn-magnet { width: 100% !important; }
}

/* ==========================================================================
   OPRAVA DVOU-SLOUPCOVÉHO GRIDU A VYROVNÁNÍ KARET (DESKTOP)
   ========================================================================== */

.grid-2, .grid.grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
}

#zivot-a-kreativita .grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  align-items: stretch !important;
}

#zivot-a-kreativita .card { height: 100% !important; }

@media (max-width: 860px) {
  .grid-2, #zivot-a-kreativita .grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   STYLIZOVANÝ 2x2 GRID PRO SEKCI "JAK PRACUJI"
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.value-card {
  padding: 32px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.value-card:hover::before { opacity: 1; }

.value-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.value-card .card-icon-wrap { margin-bottom: 0; }

.value-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.25);
  transition: color 0.3s, transform 0.3s;
}

.value-card:hover .value-num {
  color: var(--em);
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 8px 0;
}

.value-card p {
  color: var(--mut);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

.travel-card {
  width: 190px;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transform: translateZ(0);
  transition: transform 0.25s ease, border-color 0.25s;
}

.travel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.travel-card img[src] { opacity: 1; }

/* ==========================================================================
   SJEDNOCENÍ KARET KONTAKTU S CENÍKEM
   ========================================================================== */

.contact-card-glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px !important;
  padding: 28px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact-card-glass input[type="text"],
.contact-card-glass input[type="email"],
.contact-card-glass select,
.contact-card-glass textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14.5px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-card-glass input:focus,
.contact-card-glass select:focus,
.contact-card-glass textarea:focus {
  border-color: var(--em);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  outline: none;
}

section.wrap > div[style*="grid-template-columns"] {
  width: 100% !important;
}

.glass, .card, .pricing-card, .contact-card-glass {
  box-sizing: border-box !important;
  border-radius: 16px !important;
}

@media (max-width: 860px) {
  .glass, .card, .pricing-card, .contact-card-glass {
    padding: 24px 20px !important;
  }
}

@media (min-width: 861px) {
  .glass, .card, .pricing-card, .contact-card-glass {
    padding: 32px 28px !important;
  }
}

/* ==========================================================================
   OPTIMALIZACE BLOGU A KATEGORIÍ PRO MOBILY
   ========================================================================== */

.blog-filters, .filter-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  margin: 20px 0 32px 0 !important;
}

.blog-filter-btn, .filter-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.5);
  color: var(--mut);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.blog-filter-btn:hover, .blog-filter-btn.active {
  color: var(--tx);
  border-color: var(--em);
  background: rgba(16, 185, 129, 0.12);
}

.blog-card, .article-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 860px) {
  .blog-card, .article-card {
    padding: 24px 20px !important;
  }
}

.stat-number {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--em);
  display: inline-block;
  transition: color 0.3s ease;
}

.stat-label {
  display: block;
  color: var(--mut);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ==========================================================================
   KOMPAKTNÍ HERO PRO MOBILNÍ TELEFONY
   ========================================================================== */

@media (max-width: 768px) {
  .hero-stats-mobile-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px dashed var(--line);
  }

  .hero-stats-mobile-row .hero-stat-item { margin-bottom: 0 !important; }
  .hero-stats-mobile-row .stat-number { font-size: 28px !important; }
  .hero-stats-mobile-row span { font-size: 12px !important; }

  .hero .badge.status {
    white-space: nowrap;
    font-size: 11.5px;
    padding: 5px 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hero-btns-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.hero-btn-m {
  flex: 1;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  padding: 12px 14px !important;
  font-size: 13.5px !important;
}

.hero-stats-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.stat-box-m .stat-number {
  display: block;
  font-size: 24px !important;
  font-weight: 800;
  color: var(--em);
  font-family: var(--mono);
  line-height: 1.1;
}

.stat-box-m span {
  display: block;
  font-size: 11.5px;
  color: var(--mut);
  margin-top: 2px;
  line-height: 1.3;
}

@media (max-width: 540px) {
  .hero { padding-top: 10px !important; }
}

/* ==========================================================================
   ELEGANTNÍ ZAKONČENÍ ČASOVÉ OSY (PROCESU)
   ========================================================================== */

@media (max-width: 860px) {
  .process-timeline { position: relative; }

  .timeline-line {
    top: 36px !important;
    bottom: 80px !important;
    height: auto !important;
    left: 36px !important;
    background: linear-gradient(to bottom, var(--em) 0%, var(--em) 80%, transparent 100%) !important;
  }

  .process-step:last-child .step-node {
    box-shadow: 0 0 0 6px var(--bg), 0 0 20px var(--em) !important;
    border-color: var(--em) !important;
  }
}
/* =====================================================================
   VÝKON ANIMACÍ (přidáno): hezké efekty bez zpomalení webu
   - animuje se jen transform/opacity (běží na grafické kartě, bez překreslování)
   - pulzující záře přes pseudo-prvky místo animace box-shadow
   - nekonečné animace se mimo obrazovku pozastaví (.anim-off z JS)
   ===================================================================== */

/* Částice na pozadí se plynule objeví až po načtení stránky */
#bg-canvas { opacity: 0; transition: opacity 1.2s ease; }
#bg-canvas.on { opacity: 1; }
body::before, body::after { will-change: transform, opacity; }

/* Objevování obsahu při posouvání (jen prvky pod první obrazovkou) */
.motion-ready .rv {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rv-delay, 0ms),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rv-delay, 0ms);
}
.motion-ready .rv.rv-in { opacity: 1; transform: none; }

/* Úvodní animace hero sekce – jen drobné prvky a posun (ne průhlednost) u velkých,
   takže se nezdrží měření rychlosti načtení (LCP) */
@keyframes heroUp { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroRise { from { transform: translate3d(0, 22px, 0) scale(0.985); } to { transform: none; } }
.hero .badge { animation: heroUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s backwards; }
.hero .stat-number { animation: heroUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s backwards; }
.hero .btn { animation: heroUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s backwards; }
.hero > .hero-grid > .hero-mockup-duo { animation: heroRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }

/* Pozastavení animací, které nejsou vidět */
.anim-off, .anim-off *, .anim-off::before, .anim-off::after { animation-play-state: paused !important; }

/* Záře CTA banneru a doporučeného balíčku: opacity místo box-shadow */
@keyframes glowFade { from { opacity: 0.35; } to { opacity: 1; } }
.cta-banner, .pricing-featured { isolation: isolate; animation: none !important; }
.cta-banner::before, .pricing-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(90% 70% at 20% 0%, rgba(16, 185, 129, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: glowFade 5s ease-in-out infinite alternate;
  will-change: opacity;
}
.pricing-featured::before { background: radial-gradient(90% 60% at 50% 0%, rgba(16, 185, 129, 0.22), transparent 70%); }

/* Pulzující tlačítka: záře v pseudo-prvku, animuje se jen jeho průhlednost */
@keyframes btnGlowFade { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.cta-btn-glow, .pricing-featured-btn { position: relative; animation: none !important; }
.cta-btn-glow::after, .pricing-featured-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.75);
  opacity: 0.35;
  pointer-events: none;
  animation: btnGlowFade 2.5s ease-in-out infinite;
  will-change: opacity;
}

/* Laserová linka kolem CTA: bez drahého rozmazání (drop-shadow) při každém snímku */
.cta-laser-line { filter: none !important; will-change: stroke-dashoffset; }

/* Mobily: „skleněné“ rozmazání pozadí je náročné na výkon – nahrazeno sytějším pozadím */
@media (max-width: 860px) {
  .glass, .calc-summary-box, .contact-card-glass, .burger {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .glass { background: rgba(30, 41, 59, 0.78); }
  body::before, body::after { animation: none; }
}

/* Respekt k nastavení „omezit pohyb“ v systému (přístupnost) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .motion-ready .rv { opacity: 1; transform: none; }
}


/* Dotyková zařízení: karty v karuselu se při dotyku/swipu nezvedají a nehýbou (hover tam „zůstává“ viset) */
@media (hover: none) {
  .carousel-slide .card-pop:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
  }
  .carousel-slide .card-pop:hover .card-mockup .phone-png-container.duo-overlay,
  .carousel-slide .card-pop:hover .phone-mockup {
    transform: none;
  }
}


/* Blikající kurzor při psaní v nadpisu: pseudo-element a animace jen průhlednosti
   (dřív se animovala barva ohraničení, kterou prohlížeč nezvládá na grafické kartě) */
#typed-text::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: top;
  background: var(--em);
  animation: blink 0.8s steps(1) infinite;
}
