/* =====================================================
   OBSAH:
   1. ZÁKLAD - Base styles, body, containers
   2. TYPOGRAFIE - Text, headings, links
   3. BARVY & PROMĚNNÉ - Colors, CSS variables
   4. NAVBAR - Navigation styles
   5. MEGAMENU - Dropdown menu styles
   6. HERO SEKCE - Hero sections
   7. BUTTONY - Buttons
   8. KARTY - Cards and card effects
   9. SPOTLIGHT EFEKT - Spotlight hover effect
   10. MARKER HIGHLIGHT EFEKT - Text marker/highlighter effect
   11. SWIPER - All swiper configurations
   12. LOGO TICKER - Infinite scroll logos
   13. SERVICES - Service cards
   14. PRICING - Pricing tables and cards
   15. KONTAKT - Contact forms
   16. FOOTER - Footer styles
   17. MOBILE NAVBAR - Mobile navigation
   18. OSTATNÍ / NEPOUŽÍVANÉ - Unused or legacy styles
   ===================================================== */

/* =====================================================
   1. ZÁKLAD
   ===================================================== */
html, body {
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  box-sizing: border-box;
  margin: 0;
  background: #111;
  color: white;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
}

/* Desktop: clip místo hidden, aby position:sticky fungovala v potomcích.
   Na tabletu a mobilu zůstává hidden kvůli animacím. */
@media (min-width: 992px) {
  html, body {
    overflow-x: clip;
  }
}


.container {
  max-width: 1440px;
}


/* Background shift animation */
.bg-shift {
  background: linear-gradient(120deg, #0e0e0e, #121212, #0b0b0b, #0e0e0e);
  background-size: 300% 300%;
  animation: bgShift 14s ease-in-out infinite;
  color: #fff;
}

@keyframes bgShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Noise texture overlay */
.bg-noise {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200vh;
  background: transparent url("/images/brand/noise-transparent.png") repeat 0 0;
  animation: bg-animation 0.2s infinite;
  opacity: 0.35;
  visibility: visible;
  z-index: 0;
  pointer-events: none;
}

@keyframes bg-animation {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
  100% { transform: translate(5%, 0); }
}

/* =====================================================
   2. TYPOGRAFIE
   ===================================================== */
.text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.lh-15 {
  line-height: 1.25em;
}

/* =====================================================
   3. BARVY & PROMĚNNÉ
   ===================================================== */
:root {
  /* Navigation */
  --nav-muted: rgba(255, 255, 255, 0.65);
  --nav-full: #ffffff;
  --nav-h: 72px;

  /* Swiper */
  --container-max-width: 1440px;
  --container-padding: 24px;
  --slide-max-width: calc(var(--container-max-width) - var(--container-padding));

  /* Spotlight effect */
  --spot-r: 260px;
  --spot-alpha: 0.10;
  --spot-mid: 50%;
  --spot-end: 90%;
}

@media (min-width: 992px) {
  :root {
    --nav-h: 84px;
  }
}

.text-teal {
  color: #37bfb5;
}

.bg-primary {
  background-color: #37bfb5 !important;
}

.backdrop-blur {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* =====================================================
   4. NAVBAR
   ===================================================== */
.navbar {
  --bs-navbar-color: rgba(255, 255, 255, 0.65);
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
}

/* Auto-hide navbar on scroll down (desktop only) — beta */
@media (min-width: 992px) {
  .navbar.fixed-top {
    transition: transform 0.35s ease;
    will-change: transform;
  }
  .navbar.fixed-top.navbar-hidden {
    transform: translateY(-110%);
  }
}

a.navbar-brand img {
  width: 150px;
}

.navbar .navbar-container {
  border: 1px solid #1f1f1f;
  background: rgba(26, 26, 26, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: visible;
}

/* Nav links */
.navbar .nav-link {
  color: var(--nav-muted);
  transition: color 0.18s ease;
  text-decoration: none;
}

.navbar .nav-link:visited {
  color: var(--nav-muted);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: var(--nav-full);
  outline: none;
}

.navbar .nav-link:focus {
  color: var(--nav-muted);
  outline: none;
}

.navbar .nav-link:active,
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"],
.navbar .dropdown.show>.nav-link {
  color: var(--nav-full);
}

.navbar .nav-link.disabled,
.navbar .nav-link[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Dropdown items */
.navbar .dropdown-menu .dropdown-item {
  color: var(--nav-muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  color: var(--nav-full);
  background-color: transparent;
}

.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item[aria-current="true"] {
  color: var(--nav-full);
  background-color: transparent;
}

/* Toggler */
.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar .navbar-toggler:hover,
.navbar .navbar-toggler:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: none;
}

/* Caret */
.navbar .dropdown-toggle::after {
  display: none !important;
}

.navbar .dd-caret {
  font-size: .9rem;
  line-height: 1;
  transition: transform .22s ease;
  transform-origin: 50% 50%;
  opacity: .9;
}

.navbar .nav-link:hover .dd-caret {
  opacity: 1;
}

.navbar .dropdown.show>.nav-link .dd-caret,
.navbar .dropdown .dropdown-toggle[aria-expanded="true"] .dd-caret {
  transform: rotate(180deg);
}

.navbar .dropdown {
  position: static;
}

@media (min-width: 992px) {
  .navbar .navbar-nav {
    gap: 1.25rem;
  }
}

/* =====================================================
   5. MEGAMENU
   ===================================================== */
.navbar .dropdown-menu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* Fade animations */
.dropdown-menu.fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility .22s step-end;
}

.dropdown-menu.fade.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s step-start;
}

.dropdown-menu.fade .megamenu {
  transform-origin: top center;
}

/* Navbar megamenus - GSAP controls open/close animation */
.navbar .dropdown-menu.fade,
.navbar .dropdown-menu.fade.show {
  transition: none;
}

/* Megamenu panel */
.megamenu {
  position: relative;
  z-index: 1000;
  overflow: visible;
  background: rgba(26, 26, 26, .9) !important;
  border: 1px solid #1f1f1f !important;
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dropdown-menu.portal-open {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* Megamenu cards */
.megamenu .card,
.megamenu a .card {
  border: 1px solid #1f1f1f;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition: border-color .2s ease, filter .2s ease;
}

.megamenu a .card:hover,
.megamenu .card:hover {
  border-color: #37bfb5;
}

.megamenu .card:hover .fs-6,
.megamenu .card:hover .small {
  filter: brightness(1.03);
}

/* Megamenu spotlight effect */
.megamenu .card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: var(--hover, 0);
  transition: opacity .25s ease;
  background: radial-gradient(var(--spot-r) var(--spot-r) at var(--mx, -200px) var(--my, -200px),
      rgba(55, 191, 181, var(--spot-alpha)) 0%,
      rgba(55, 191, 181, calc(var(--spot-alpha)*.5)) var(--spot-mid),
      rgba(55, 191, 181, 0) var(--spot-end));
  mix-blend-mode: screen;
}

.megamenu .card:hover {
  --hover: 1;
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu.fade,
  .dropdown-menu.fade.show {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* =====================================================
   6. HERO SEKCE
   ===================================================== */
.vh-minus-nav {
  min-height: calc(100dvh - var(--nav-h));
}

.hero-col {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-center-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 0;
}

@media (min-width: 992px) {
  .hero-center-block {
    padding: 0;
  }
}

.hero-pulse {
  animation: heroPulse 3s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.hero-center h1 {
  letter-spacing: -0.02em;
}

.hero-center .lead {
  opacity: 0.9;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== HERO: Ring Particles Background Effect ====== */
/* Fallback gradient when Houdini is not supported */
#hero-particles {
  background: radial-gradient(circle at 50% 50%, rgba(55, 191, 181, 0.08), transparent 55%);
}

/* Ring particles effect when paint() is supported */
@supports (background: paint(something)) {
  #hero-particles {
    /* ---- Worklet settings (these CSS variables are the key) ---- */
    --ring-radius: 150;          /* animated below */
    --ring-thickness: 600;       /* width of the "band" where particles appear */
    --particle-count: 80;        /* number of particles around the ring */
    --particle-rows: 25;         /* number of "rows" of particles in the thickness */
    --particle-size: 2;          /* size of each particle */
    --particle-color: #37bfb5;   /* teal brand color */

    --particle-min-alpha: 0.05;
    --particle-max-alpha: 0.5;

    --seed: 200;                 /* for consistent noise */

    /* center of ring (in %) – used for follow-mouse */
    --ring-x: 50;
    --ring-y: 50;

    background-image: paint(ring-particles);
    background-repeat: no-repeat;
  }

  /* ---- Animations ---- */
  @property --animation-tick {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
  }
  @property --ring-radius {
    syntax: "<number>";
    inherits: false;
    initial-value: 150;
  }
  @property --ring-x {
    syntax: "<number>";
    inherits: false;
    initial-value: 50;
  }
  @property --ring-y {
    syntax: "<number>";
    inherits: false;
    initial-value: 50;
  }

  @keyframes ripple {
    0%   { --animation-tick: 0; }
    100% { --animation-tick: 1; }
  }

  @keyframes ring {
    0%   { --ring-radius: 150; }
    100% { --ring-radius: 250; }
  }

  #hero-particles {
    animation: ripple 15s linear infinite, ring 15s ease-in-out infinite alternate;

    /* smooth transitions when mouse moves */
    transition: --ring-x 1.5s ease, --ring-y 1.5s ease;
  }
}

/* =====================================================
   7. BUTTONY
   ===================================================== */
.btn-brand {
  --bs-btn-color: #0c0c0c;
  --bs-btn-bg: #37bfb5;
  --bs-btn-border-color: #37bfb5;
  --bs-btn-hover-bg: #2ea89f;
  --bs-btn-hover-border-color: #2ea89f;
  --bs-btn-active-bg: #27968e;
  --bs-btn-active-border-color: #27968e;
  box-shadow: 0 0 30px rgba(55, 191, 181, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(55, 191, 181, 0.35);
}

.btn-outline-brand {
  --bs-btn-color: #37bfb5;
  --bs-btn-border-color: #37bfb5;
  --bs-btn-hover-bg: rgba(55, 191, 181, .15);
  --bs-btn-hover-border-color: #37bfb5;
  --bs-btn-active-bg: rgba(55, 191, 181, .22);
  --bs-btn-active-border-color: #37bfb5;
}

.btn-white {
  background: white;
  border: 1px solid white;
}

.btn-white:hover {
  background: #f8f9fa;
  border-color: #f8f9fa;
}

/* =====================================================
   8. KARTY
   ===================================================== */
.card-product {
  position: relative;
  overflow: hidden;
  max-height: 300px;
}

.card-product>img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gradient overlay for product cards */
.card-product::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to top right,
      rgba(26, 26, 26, .9) 0%,
      rgba(26, 26, 26, .6) 35%,
      rgba(26, 26, 26, .25) 65%,
      rgba(26, 26, 26, 0) 100%);
}

.card-product .card-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* =====================================================
   9. SPOTLIGHT EFEKT
   ===================================================== */
.spotlight-effect {
  position: relative;
  overflow: hidden;
}

.spotlight-effect::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: var(--hover, 0);
  transition: opacity .25s ease;
  background: radial-gradient(var(--spot-r) var(--spot-r) at var(--mx, -200px) var(--my, -200px),
      rgba(55, 191, 181, var(--spot-alpha)) 0%,
      rgba(55, 191, 181, calc(var(--spot-alpha)*.5)) var(--spot-mid),
      rgba(55, 191, 181, 0) var(--spot-end));
  mix-blend-mode: screen;
  z-index: 1;
}

.spotlight-effect:hover {
  --hover: 1;
}

/* =====================================================
   10. MARKER HIGHLIGHT EFEKT
   ===================================================== */
.mark-highlight {
  position: relative;
  display: inline;
  padding: 6px 12px;
  isolation: isolate;
}

.mark-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 3px 5px 3px 5px;
  background:
    conic-gradient(at 0 100%, rgb(var(--mark-color) / 100%) 1%, #fff0 3%) no-repeat 0 0 / auto 120%,
    conic-gradient(from 180deg at 100% 0, #fff0, rgb(var(--mark-color) / 100%) 1%, #fff0 4%) no-repeat 100% 100% / auto 120%,
    linear-gradient(var(--mark-bg-angle), rgb(var(--mark-color) / 60%), rgb(var(--mark-color) / 20%) 75%, rgb(var(--mark-color) / 55%));
}

/* Yellow */
.mark-yellow {
  --mark-color: 255 230 0;
  --mark-bg-angle: 175deg;
}

/* Green */
.mark-green {
  --mark-color: 0 200 80;
  --mark-bg-angle: 170deg;
}

/* Red */
.mark-red {
  --mark-color: 255 70 70;
  --mark-bg-angle: 178deg;
}

/* Teal (primary #37bfb5) */
.mark-teal {
  --mark-color: 55 191 181;
  --mark-bg-angle: 172deg;
}

/* =====================================================
   11. SWIPER - Unified configurations
   ===================================================== */

/* Base swiper container with overflow effect */
.swiper-overflow-container {
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

/* Systems Swiper - Integration cards */
.systems-swiper-container {
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

.systems-swiper .swiper-slide {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.systems-swiper .swiper-slide .card {
  height: 280px;
}

.systems-swiper .swiper-slide img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .systems-swiper .swiper-slide {
    width: 240px;
    height: 180px;
  }
  .systems-swiper .swiper-slide .card {
    height: 180px;
  }
}

/* Desktop breakout doprava (match Bootstrap: lg = 992px) */
@media (min-width: 992px) {
  .systems-swiper {
    /* rozšíří "viewport" swiperu doprava až na edge obrazovky */
    width: calc(100% + (100vw - 100%) / 2);
  }

  /* slide = 1/3 vnitřní šířky containeru (pro 3 slidy v containeru) */
  .systems-swiper .swiper-slide {
    width: calc((var(--bs-container-lg) - var(--bs-gutter-x)) / 3 - 15px);
    height: 280px;
  }
}

@media (min-width: 1200px) {
  .systems-swiper .swiper-slide {
    width: calc((var(--bs-container-xl) - var(--bs-gutter-x)) / 3 - 15px);
  }
}

@media (min-width: 1400px) {
  .systems-swiper .swiper-slide {
    width: calc((var(--bs-container-xxl) - var(--bs-gutter-x)) / 3 - 15px);
  }
}

/* FAQ Accordion */
.accordion-flush .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-flush .accordion-item:last-child {
  border-bottom: none;
}

.accordion-flush .accordion-button {
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1.25rem 0;
  box-shadow: none;
  border: none;
}

.accordion-flush .accordion-button:not(.collapsed) {
  background: transparent;
  color: #37bfb5;
  box-shadow: none;
}

.accordion-flush .accordion-button::after {
  filter: invert(1);
  opacity: 0.5;
}

.accordion-flush .accordion-button:not(.collapsed)::after {
  filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(130deg);
  opacity: 1;
}

.accordion-flush .accordion-button:focus {
  box-shadow: none;
}

.accordion-flush .accordion-body {
  color: #9ca3af;
  padding: 0 0 1.25rem 0;
  font-size: 1rem;
  line-height: 1.7;
}

.accordion-flush .accordion-button i {
  flex-shrink: 0;
}

/* Product hero - video/image sizing */
.product-hero video {
  aspect-ratio: 16 / 9;
  background: transparent;
}

@media (min-width: 992px) {
  .product-hero video,
  .product-hero img {
    max-height: 75vh;
  }
}

/* Mobile App Swiper - 450px cards for mobile app page */
/* Mobile App Swiper - Application features cards */
.mobile-app-swiper-container {
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

.mobile-app-swiper .swiper-slide {
  width: 280px;
  height: 450px;
  flex-shrink: 0;
}

.mobile-app-swiper .card-product {
  height: 450px !important;
  max-height: 450px !important;
  position: relative;
  overflow: hidden;
}

.mobile-app-swiper .card-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop breakout doprava (match Bootstrap: lg = 992px) */
@media (min-width: 992px) {
  .mobile-app-swiper {
    /* rozšíří "viewport" swiperu doprava až na edge obrazovky */
    width: calc(100% + (100vw - 100%) / 2);
  }

  /* slide = 1/3 vnitřní šířky containeru (pro 3 slidy v containeru) */
  .mobile-app-swiper .swiper-slide {
    width: calc((var(--bs-container-lg) - var(--bs-gutter-x)) / 3 - 15px);
    height: 450px;
  }
}

@media (min-width: 1200px) {
  .mobile-app-swiper .swiper-slide {
    width: calc((var(--bs-container-xl) - var(--bs-gutter-x)) / 3 - 15px);
  }
}

@media (min-width: 1400px) {
  .mobile-app-swiper .swiper-slide {
    width: calc((var(--bs-container-xxl) - var(--bs-gutter-x)) / 3 - 15px);
  }
}


/* Testimonials Swiper — minimalist centered redesign */
.testimonials-swiper {
  padding: 40px 0;
  position: relative;
}

/* Equal height — všechny slides = výška nejdelší recenze */
.testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}
.testimonials-swiper .swiper-slide {
  height: auto;
}

/* Nová karta: minimalist centered */
.testimonial-card {
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  border-radius: 1.5rem;
  backdrop-filter: blur(4px);
  min-height: 100%;
}

/* Malý avatar pod citací */
.testimonial-avatar-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(55, 191, 181, 0.15);
  border: 2px solid rgba(55, 191, 181, 0.35);
  color: #37bfb5;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pagination */
.testimonials-swiper .swiper-pagination {
  position: relative;
  margin-top: 30px;
}
.testimonials-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}
.testimonials-swiper .swiper-pagination-bullet-active {
  background: #37bfb5;
  width: 30px;
  border-radius: 5px;
}

/* =====================================================
   12. LOGO TICKER (Swiper)
   ===================================================== */
.logo-ticker {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-ticker-swiper .swiper-wrapper {
  transition-timing-function: linear;
}

.logo-item {
  flex-shrink: 0;
  width: auto;
}

.logo-item img {
  height: 80px;
  width: auto;
  opacity: .7;
  filter: grayscale(100%) brightness(1.2);
  transition: all .3s ease;
  display: block;
}

.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .logo-item img { height: 55px; }

  .hero-center h1 {
    font-size: 1.6rem;
  }
}

/* =====================================================
   13. SERVICES
   ===================================================== */
.services .card img {
  max-height: 550px !important;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s ease-in-out, filter .6s ease-in-out;
  will-change: transform;
  backface-visibility: hidden;
}

.services .card {
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.services a .card:hover img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .services .card,
  .services .card img {
    transition: none !important;
  }
}

.reference-card img {
  max-height: 550px;
  object-fit: contain;
  object-position: right bottom;
}

/* Bootstrap container widths as CSS variables */
:root {
  --bs-container-lg: 960px;
  --bs-container-xl: 1140px;
  --bs-container-xxl: 1440px;
}

/* Desktop breakout doprava (match Bootstrap: lg = 992px) */
@media (min-width: 992px) {
  .reference-projects-swiper {
    /* rozšíří “viewport” swiperu doprava až na edge obrazovky */
    width: calc(100% + (100vw - 100%) / 2);
  }

  /* slide = reálná vnitřní šířka .container (tj. max-width minus gutter) */
  .reference-projects-swiper .swiper-slide {
    width: calc(var(--bs-container-lg) - var(--bs-gutter-x));
  }
}

@media (min-width: 1200px) {
  .reference-projects-swiper .swiper-slide {
    width: calc(var(--bs-container-xl) - var(--bs-gutter-x));
  }
}

@media (min-width: 1400px) {
  .reference-projects-swiper .swiper-slide{
    width: calc(var(--bs-container-xxl) - var(--bs-gutter-x));
  }
}

/* Reference card with background image */
.reference-card.has-bg-image {
  position: relative;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}
.reference-card.has-bg-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.55);
  border-radius: 1.25rem;
  pointer-events: none;
  z-index: 0;
}

/* Gradient overlay on reference card background */
.reference-card.has-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to left,
    rgba(26, 26, 26, 0) 0%,
    rgba(26, 26, 26, 0.5) 30%,
    rgba(26, 26, 26, 0.85) 60%,
    rgba(26, 26, 26, 0.98) 100%
  );
  border-radius: 1.25rem;
  pointer-events: none;
  z-index: 1;
}

/* Content above gradient overlay */
.reference-card.has-bg-image .row {
  position: relative;
  z-index: 2;
}

/* Sjednotit výšku slidů v reference carouselu — všechny karty stejně vysoké */
.reference-projects-swiper .swiper-wrapper {
  align-items: stretch;
}
.reference-projects-swiper .swiper-slide {
  height: auto;
}
.reference-projects-swiper .reference-card {
  min-height: 420px;
}
/* Row uvnitř reference-card roztáhnout na celou výšku karty, aby align-self-end
   na image-col umístil obrázek reálně na dno karty (ne jen na dno auto-výšky rowu) */
.reference-projects-swiper .reference-card > .row {
  flex: 1 1 auto;
}

/* =====================================================
   14. PRICING
   ===================================================== */
.bg-gradient-brand {
  background: linear-gradient(135deg, #37bfb5 0%, #2a9d96 100%);
}

.pricing-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(55, 191, 181, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.transform-scale {
  transform: scale(1.05);
  z-index: 2;
}

@media (max-width: 991.98px) {
  .transform-scale {
    transform: none;
  }
}

/* Pricing Toggle - Apple Style */
.pricing-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 4px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 6px;
}

.toggle-option {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.toggle-option:hover {
  color: rgba(255, 255, 255, 0.9);
}

.toggle-option.active {
  background: #37bfb5;
  color: #000;
}

.toggle-option .badge {
  font-size: 10px;
  padding: 2px 6px;
}

/* =====================================================
   15. KONTAKT
   ===================================================== */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #37bfb5;
}

#contactForm .form-control {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

#contactForm .form-control:focus {
  background: rgba(26, 26, 26, 0.8);
  border-color: #37bfb5;
  box-shadow: 0 0 0 3px rgba(55, 191, 181, 0.1);
}

#contactForm .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#contact {
  scroll-margin-top: 100px;
}

/* =====================================================
   16. FOOTER
   ===================================================== */
.footer {
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

#embersCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-logo {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: #37bfb5;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #37bfb5;
}

@media (max-width: 575px) {
  .footer-links {
    text-align: left !important;
  }
  .footer-links .footer-link {
    display: block;
    margin-bottom: 0.5rem !important;
    margin-right: 0 !important;
  }
}

/* =====================================================
   17. MOBILE NAVBAR
   ===================================================== */
#mobileNavbar {
  backdrop-filter: blur(8px);
  border-width: 1px;
  border-style: solid;
  border-color: rgb(31, 31, 31);
  border-image: initial;
  background: rgba(26, 26, 26, 0.7);
  overflow: visible;
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

/* Nav-link hover feedback v offcanvas mobilním navbaru */
#mobileNavbar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
#mobileNavbar .nav-link:hover,
#mobileNavbar .nav-link:focus-visible {
  color: #fff;
  transform: translateX(6px);
  outline: none;
}

/* Podmenu (fs-6) — teal akcent, odliší se od root úrovně */
#mobileNavbar .nav-link.fs-6:hover,
#mobileNavbar .nav-link.fs-6:focus-visible {
  color: #37bfb5;
  transform: translateX(4px);
}

/* Šipka v podmenu klouže doprava na hover pro affordance */
#mobileNavbar .nav-link .fa-arrow-right {
  transition: transform 0.2s ease;
}
#mobileNavbar .nav-link:hover .fa-arrow-right,
#mobileNavbar .nav-link:focus-visible .fa-arrow-right {
  transform: translateX(3px);
}

/* Social linky — teal accent bez posunu (jsou uprostřed) */
#mobileNavbar .navbar-nav .nav-link.d-flex:hover,
#mobileNavbar .navbar-nav .nav-link.d-flex:focus-visible {
  color: #37bfb5;
  transform: none;
}

/* Disabled (Klientský portál) — žádný hover */
#mobileNavbar .nav-link[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
#mobileNavbar .nav-link[aria-disabled="true"]:hover {
  transform: none;
  color: rgba(255, 255, 255, 0.35);
}

/* Hover video in cards */
.hover-video {
  object-fit: cover;
  background: transparent;
}

/* Floating ambient particles */
.ambient-particle {
  position: fixed;
  border-radius: 50%;
  background: #37bfb5;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   18. PAGE LOADER
   ===================================================== */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loader-logo {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(55, 191, 181, 0.4));
}

.loader-text {
  display: flex;
  gap: 0.12em;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: white;
}

.loader-text span {
  display: inline-block;
}

.loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-inner {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #37bfb5, #5ee8de);
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(55, 191, 181, 0.6);
}

.loader-percent {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* Prevent scroll while loader is visible */
body.loader-active {
  overflow: hidden;
}

/* =====================================================
   19. GSAP ANTI-FOUC - Full-page curtain to prevent flash
   ===================================================== */

/* Dark curtain covering entire viewport until GSAP is ready.
   On homepage: #page-loader (z-index:9999) sits on top, so curtain is invisible.
   On subpages: curtain hides everything, then fades out when GSAP initializes. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: #111;
  z-index: 9998;
  transition: opacity 0.4s ease;
}

body.gsap-ready::after {
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   20. SNAKE MODAL BACKDROP
   ===================================================== */
.modal-backdrop {
  --bs-backdrop-opacity: 0.9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =====================================================
   21. PROŽĎUCHOVADLO 3000 MODAL
   ===================================================== */
#prozduchovadloModal .modal-content {
  background: #111;
}

.prozduchovadlo-btn {
  background: #37bfb5;
  color: white;
  border: none;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 6px 20px rgba(55, 191, 181, 0.25);
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.prozduchovadlo-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(55, 191, 181, 0.35);
  background: #2da89f;
}

.prozduchovadlo-btn:active {
  transform: scale(0.96);
}

.prozduchovadlo-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.prozduchovadlo-btn:active::before {
  width: 280px;
  height: 280px;
}

.prozduchovadlo-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.prozduchovadlo-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.08);
  border-top: 5px solid #37bfb5;
  border-radius: 50%;
  animation: prozduchovadloSpin 0.9s linear infinite;
}

@keyframes prozduchovadloSpin {
  to { transform: rotate(360deg); }
}

.prozduchovadlo-progress {
  height: 24px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.prozduchovadlo-progress .progress-bar {
  background: #37bfb5;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 24px;
  transition: width 0.4s ease;
}

.prozduchovadlo-result {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .prozduchovadlo-btn {
    width: 170px;
    height: 170px;
    font-size: 0.95rem;
    padding: 15px;
  }
}

/* =====================================================
   22. STEPPER / TIMELINE
   ===================================================== */
.stepper-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 2rem;
}

.stepper-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(2rem + 28px);
  right: calc(2rem + 28px);
  height: 2px;
  background: #1f1f1f;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.stepper-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #37bfb5;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #37bfb5;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: background .3s, color .3s;
}

.stepper-step:hover .stepper-node {
  background: rgba(55, 191, 181, 0.15);
}

.stepper-step h4 {
  font-size: 1.1rem;
  max-width: 180px;
}

.stepper-step p {
  max-width: 220px;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .stepper-track {
    flex-direction: column;
    padding: 0;
    gap: 1rem;
  }

  .stepper-track::before {
    display: none;
  }

  .stepper-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .stepper-node {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .stepper-step h4 {
    max-width: none;
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
  }

  .stepper-step p {
    max-width: 320px;
    font-size: 0.85rem;
  }
}

/* =====================================================
   23. OSTATNÍ / NEPOUŽÍVANÉ
   ===================================================== */
/* Tyto styly můžete smazat, pokud se nepoužívají */

/* Příklad možná nepoužívaných stylů:
.services a .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
*/

/* Fallback for backdrop-filter - možná nepotřebné
@supports not (backdrop-filter: blur(1px)) {
  .megamenu { background: rgba(26,26,26,.92) !important; }
}
@supports not (-webkit-backdrop-filter: blur(1px)) {
  .megamenu { background: rgba(26,26,26,.92) !important; }
}
*/

/* Vibecoding terminal cursor */
.vibecoding-visual div:last-child div:last-child::after {
  content: "█";
  color: #37bfb5;
  animation: vibecoding-blink 1s step-end infinite;
  margin-left: 4px;
}
@keyframes vibecoding-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =====================================================
   EASTER EGG: Scroll score
   ===================================================== */
.scroll-score {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 191, 181, 0.15);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-score.visible {
  opacity: 1;
}

.scroll-score .scroll-score-pct {
  color: #37bfb5;
  font-weight: 600;
}

.scroll-score-achievement {
  position: fixed;
  bottom: 60px;
  right: 20px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(55, 191, 181, 0.3);
  border-radius: 16px;
  color: #fff;
  font-size: 0.85rem;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.scroll-score-achievement.visible {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .scroll-score {
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .scroll-score-achievement {
    bottom: 45px;
    right: 10px;
    left: 10px;
    font-size: 0.8rem;
  }
}

/* =====================================================
   EASTER EGG: Night message bubble
   ===================================================== */
.night-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 191, 181, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.night-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.6);
}

.night-bubble.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .night-bubble {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}

/* =====================================================
   EASTER EGG: Visit counter toast
   ===================================================== */
.visit-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(55, 191, 181, 0.15);
  border-radius: 16px;
  color: #fff;
  font-size: 0.9rem;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visit-toast.visible {
  transform: translateX(0);
}

.visit-toast-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.visit-toast-text {
  flex: 1;
  line-height: 1.4;
}

.visit-toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.visit-toast-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .visit-toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

/* =====================================================
   EASTER EGG: WiFi tooltip
   ===================================================== */
.wifi-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 191, 181, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.wifi-tooltip.visible { opacity: 1; }

.wifi-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.75);
}

/* =====================================================
   EASTER EGG: Copyright year hover
   ===================================================== */
.copyright-year {
  cursor: default;
  transition: color 0.2s;
}

.copyright-year:hover {
  color: #37bfb5;
}

.copyright-year-msg {
  color: #37bfb5;
  font-style: italic;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.copyright-year-msg.visible { opacity: 1; }

/* =====================================================
   EASTER EGG: Print message
   ===================================================== */
.print-easter-egg {
  display: none;
}

@media print {
  .print-easter-egg {
    display: block;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
  }
}

/* =====================================================
   EASTER EGG: Party mode
   ===================================================== */
.party-mode .text-teal,
.party-mode .btn-brand,
.party-mode .btn-outline-brand {
  animation: party-rainbow 0.5s linear infinite;
}

.party-mode .hero-pulse {
  animation: party-spin 1s linear infinite;
}

@keyframes party-rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes party-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =====================================================
   EASTER EGG: Rage click toast
   ===================================================== */
.rage-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 320px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(55, 191, 181, 0.15);
  border-radius: 16px;
  color: #fff;
  font-size: 0.85rem;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rage-toast.visible {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .rage-toast {
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
  }
}

/* =====================================================
   19. CASE STUDY — editorial layout
   ===================================================== */

/* =====================================================
   PREZ MODE — full-screen firemní prezentace ('prez')
   ===================================================== */
#prez-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(55,191,181,0.08), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(55,191,181,0.05), transparent 55%),
    linear-gradient(160deg, #0c0c0c, #0a0a0a 50%, #060606);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Jemný noise */
#prez-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/brand/noise-transparent.png") repeat 0 0;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.prez-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.prez-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 5.5rem;
  opacity: 1;
}

/* Background image layer (cover, Ken Burns pohyb) */
.prez-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: saturate(0.85);
  will-change: transform;
}
.prez-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,6,6,0.7) 0%, rgba(10,10,10,0.85) 60%, rgba(6,6,6,0.95) 100%);
}

/* Inner container */
.prez-slide-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  text-align: left;
}

.prez-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #37bfb5;
  text-transform: none;
  font-weight: 600;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.prez-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.25rem;
}
.prez-title .teal { color: #37bfb5; }

.prez-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: rgba(255,255,255,0.75);
  max-width: 60ch;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.prez-body {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 65ch;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Stats slide */
.prez-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.prez-stat {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(55,191,181,0.1);
}
.prez-stat__n {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.prez-stat__u {
  font-size: 0.45em;
  color: #37bfb5;
  font-weight: 500;
}
.prez-stat__l {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Service card */
.prez-card {
  background: rgba(0,0,0,0.35);
  border-radius: 1.5rem;
  padding: 2rem 2rem;
  max-width: 720px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.05);
}
.prez-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(55,191,181,0.12);
  border: 1px solid rgba(55,191,181,0.35);
  margin-bottom: 1.25rem;
}
.prez-card__icon i {
  font-size: 2rem;
  color: #37bfb5;
}
.prez-card__body {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.prez-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prez-chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
}

/* Grid (produkty) */
.prez-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.prez-grid-item {
  background: rgba(0,0,0,0.35);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.prez-grid-item:hover {
  border-color: rgba(55,191,181,0.35);
  transform: translateY(-3px);
}
.prez-grid-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(55,191,181,0.1);
  margin-bottom: 0.8rem;
}
.prez-grid-item__icon i { color: #37bfb5; font-size: 1.2rem; }
.prez-grid-item__name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #fff;
}
.prez-grid-item__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* Case cards */
.prez-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.prez-case-card {
  position: relative;
  min-height: 280px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0a0a0a;
}
.prez-case-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.8s ease;
}
.prez-case-card:hover .prez-case-card__img {
  opacity: 0.7;
  transform: scale(1.04);
}
.prez-case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.9) 100%);
}
.prez-case-card__body {
  position: relative;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}
.prez-case-card__sub {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: #37bfb5;
  margin-bottom: 0.35rem;
}
.prez-case-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.prez-case-card__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}

/* Takeaway / důvody */
.prez-takeaway {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
}
.prez-takeaway li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}
.prez-takeaway li i {
  color: #37bfb5;
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Contact */
.prez-contact {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1.15rem;
}
.prez-contact li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
}
.prez-contact li i {
  color: #37bfb5;
  width: 1.5em;
  text-align: center;
  font-size: 1.2rem;
}
.prez-closing {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.prez-closing::after { content: ""; }

/* ========== Služba: Mobilní + Web — split layout ========== */
.prez-slide--service-mobile .prez-slide-inner,
.prez-slide--service-web   .prez-slide-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1180px;
}
.prez-slide--service-web .prez-slide-inner { grid-template-columns: 1fr 1.05fr; }

.prez-split { min-width: 0; }
.prez-split--text  { order: 1; }
.prez-split--media { order: 2; }
.prez-slide--service-web .prez-split--media { order: 1; }
.prez-slide--service-web .prez-split--text  { order: 2; }

/* Title mimo sloupce — v levém, eyebrow nahoře ve full-width */
.prez-slide--service-mobile .prez-eyebrow,
.prez-slide--service-web   .prez-eyebrow,
.prez-slide--service-mobile .prez-title,
.prez-slide--service-web   .prez-title {
  grid-column: 1 / -1;
}

/* Phone image frame (mobile) */
.prez-mobile-shot {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(55, 191, 181, 0.12),
    0 0 60px rgba(55, 191, 181, 0.12);
}
.prez-mobile-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
}

/* Browser mockup (web) */
.prez-browser {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.prez-browser__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.prez-browser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}
.prez-browser__dot.r { background: #ff5f57; }
.prez-browser__dot.y { background: #febc2e; }
.prez-browser__dot.g { background: #28c840; }
.prez-browser__url {
  margin-left: 0.75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}
.prez-browser__body {
  aspect-ratio: 16 / 10;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: top center;
}

/* Bullets (web) */
.prez-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.prez-bullets li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}
.prez-bullets li:last-child { border-bottom: 0; }
.prez-bullets li i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(55, 191, 181, 0.1);
  color: #37bfb5;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ========== Služba: Sync — constellation map ========== */
.prez-slide--service-sync .prez-slide-inner { text-align: center; max-width: 1000px; }
.prez-slide--service-sync .prez-body { margin: 0 auto 1rem; }

.prez-center-text { max-width: 55ch; margin-left: auto; margin-right: auto; }

.prez-sync-map {
  position: relative;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 780px;
  height: 340px;
}

.prez-sync-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(55, 191, 181, 0.15);
  border: 1px solid rgba(55, 191, 181, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 30px rgba(55, 191, 181, 0.25);
}
.prez-sync-center i {
  color: #37bfb5;
  font-size: 1.8rem;
}

.prez-sync-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(55, 191, 181, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  z-index: 3;
}
.prez-sync-node img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}
.prez-sync-node--badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.prez-sync-node--tl { top: 4%;   left: 8%; }
.prez-sync-node--tr { top: 4%;   right: 8%; }
.prez-sync-node--bl { bottom: 4%; left: 8%; }
.prez-sync-node--br { bottom: 4%; right: 8%; }
.prez-sync-node--l  { top: 50%; left: 0;    transform: translateY(-50%); }
.prez-sync-node--r  { top: 50%; right: 0;   transform: translateY(-50%); }

/* SVG connection lines */
.prez-sync-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.prez-sync-lines line {
  stroke: rgba(55, 191, 181, 0.35);
  stroke-width: 0.3;
  stroke-dasharray: 2 1.5;
  stroke-linecap: round;
  animation: prezSyncDash 8s linear infinite;
  vector-effect: non-scaling-stroke;
}
@keyframes prezSyncDash {
  to { stroke-dashoffset: -30; }
}

/* ========== Služba: Infra — tile grid ========== */
.prez-slide--service-infra .prez-slide-inner { text-align: center; max-width: 1000px; }
.prez-slide--service-infra .prez-body { margin: 0 auto 0.5rem; }

.prez-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}
.prez-tile {
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.prez-tile:hover {
  border-color: rgba(55, 191, 181, 0.35);
  transform: translateY(-3px);
}
.prez-tile__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  background: rgba(55, 191, 181, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prez-tile__icon i {
  color: #37bfb5;
  font-size: 1.5rem;
}
.prez-tile__name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}
.prez-tile__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.prez-chips--muted .prez-chip {
  opacity: 0.7;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
}

/* ========== Mobile (<768) ========== */
@media (max-width: 768px) {
  .prez-slide--service-mobile .prez-slide-inner,
  .prez-slide--service-web   .prez-slide-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .prez-split--media { order: 0; }
  .prez-mobile-shot { max-width: 280px; margin: 0 auto; }
  .prez-tiles { grid-template-columns: repeat(2, 1fr); }
  .prez-sync-map { height: 280px; }
  .prez-sync-node { font-size: 0.75rem; padding: 0.35rem 0.65rem; }
  .prez-sync-node img { width: 18px; height: 18px; }
}

/* Cover slide — dramatic center */
.prez-slide--cover .prez-slide-inner {
  text-align: center;
}
.prez-slide--cover .prez-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
}
.prez-slide--cover .prez-sub {
  margin: 0 auto;
}
.prez-slide--cover .prez-eyebrow {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ====== Bottom nav bar ====== */
.prez-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.prez-exit,
.prez-prev,
.prez-next {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.prez-exit:hover,
.prez-prev:not(:disabled):hover,
.prez-next:not(:disabled):hover {
  border-color: rgba(55,191,181,0.6);
  color: #37bfb5;
}
.prez-prev:disabled,
.prez-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.prez-prev,
.prez-next {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
}

.prez-ctrls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.prez-counter {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  min-width: 3.5em;
  text-align: center;
}
.prez-counter .prez-idx { color: #fff; font-weight: 600; }

/* Dots */
.prez-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.prez-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.prez-dot.active {
  background: #37bfb5;
  width: 24px;
  border-radius: 3px;
}

/* Mobile */
@media (max-width: 768px) {
  .prez-slide { padding: 2rem 1rem 5rem; }
  .prez-bottom { padding: 0.75rem 1rem; }
  .prez-exit { font-size: 0.8rem; padding: 0.45rem 0.8rem; }
  .prez-exit span, .prez-counter { display: none; }
  .prez-dots { max-width: 160px; }
  .prez-dot.active { width: 18px; }
}

/* =====================================================
   AI CLI Easter Egg — full-screen terminal takeover
   ===================================================== */

/* Glitch flash na body při spuštění */
body.ai-cli-glitching {
  animation: aiCliGlitch 0.18s steps(4, end);
}
@keyframes aiCliGlitch {
  0%   { transform: translateX(0); filter: hue-rotate(0deg); }
  25%  { transform: translateX(-4px); filter: hue-rotate(18deg); }
  50%  { transform: translateX(3px); filter: hue-rotate(-12deg); }
  75%  { transform: translateX(-2px); filter: hue-rotate(8deg); }
  100% { transform: translateX(0); filter: hue-rotate(0deg); }
}

#ai-cli-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at center, #0e0e0e 0%, #060606 80%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

/* Hex-grid na pozadí (subtilní) */
#ai-cli-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(55, 191, 181, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 191, 181, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Scanline loop — jemný teal pás shora dolů */
#ai-cli-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 25%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(55, 191, 181, 0.035) 50%,
    transparent 100%);
  animation: aiCliScan 5.5s linear infinite;
  pointer-events: none;
}
@keyframes aiCliScan {
  0%   { transform: translateY(0); }
  100% { transform: translateY(500%); }
}

/* Terminal panel */
.ai-cli-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(55, 191, 181, 0.25);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(55, 191, 181, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(55, 191, 181, 0.08);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: aiCliFlicker 2.4s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes aiCliFlicker {
  0%, 100% { opacity: 1; }
  48%      { opacity: 0.985; }
  52%      { opacity: 1; }
  62%      { opacity: 0.99; }
}

/* Hlavička s window dots */
.ai-cli-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(55, 191, 181, 0.12);
  background: rgba(255, 255, 255, 0.02);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.ai-cli-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #444;
}
.ai-cli-dot--r { background: #ff5f57; }
.ai-cli-dot--y { background: #febc2e; }
.ai-cli-dot--g { background: #28c840; }
.ai-cli-title {
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}
.ai-cli-skip {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-cli-skip:hover {
  color: #37bfb5;
  border-color: rgba(55, 191, 181, 0.55);
}

/* Tělo terminálu */
.ai-cli-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem 1.4rem 1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 191, 181, 0.4) transparent;
}
.ai-cli-body::-webkit-scrollbar { width: 8px; }
.ai-cli-body::-webkit-scrollbar-thumb {
  background: rgba(55, 191, 181, 0.4);
  border-radius: 4px;
}

.ai-cli-row {
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-cli-row.blank { height: 0.6em; }

/* Prompt line — teal */
.ai-cli-row.prompt { color: #37bfb5; font-weight: 500; }

/* Header line ("> KDO JSME") */
.ai-cli-row.header {
  color: #37bfb5;
  font-weight: 700;
  margin-top: 0.4em;
  letter-spacing: 0.03em;
}

/* Plain text row */
.ai-cli-row.plain { color: rgba(255, 255, 255, 0.85); }
.ai-cli-row.plain.teal { color: #37bfb5; }
.ai-cli-row.plain.bold { font-weight: 700; }

/* Boot line */
.ai-cli-row.boot { color: rgba(255, 255, 255, 0.7); }
.ai-cli-row.boot .boot-result { color: #28c840; font-weight: 600; }
.ai-cli-row.boot .boot-result.err { color: #ff5f57; }

/* Item row */
.ai-cli-row.item {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 0.4em;
}
.ai-cli-row.item .item-num {
  display: inline-block;
  color: #37bfb5;
  font-weight: 700;
}

/* Divider — hairline teal */
.ai-cli-row.divider {
  height: 1px;
  margin: 0.6em 0;
  background: linear-gradient(90deg, rgba(55,191,181,0.45), rgba(55,191,181,0.05));
  transform-origin: left center;
}

/* Blinking cursor */
.line-cursor {
  display: inline-block;
  color: #37bfb5;
  opacity: 0;
  margin-left: 1px;
  font-weight: 400;
}
.line-cursor.active {
  opacity: 1;
  animation: aiCliCaret 0.9s step-end infinite;
}
@keyframes aiCliCaret {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* END blok */
.end-block {
  margin-top: 0.8em;
  text-align: left;
}
.end-title {
  color: #37bfb5;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
}
.end-msg {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.7em;
}
.end-heart {
  display: inline-block;
  color: #ff5f57;
  margin-left: 0.15em;
}
.end-count {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85em;
}
.end-count .end-n {
  color: #37bfb5;
  font-weight: 700;
}

/* Patička s close buttonem */
.ai-cli-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(55, 191, 181, 0.12);
  background: rgba(255, 255, 255, 0.02);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  flex-shrink: 0;
}
.ai-cli-close {
  background: transparent;
  border: 1px solid rgba(55, 191, 181, 0.5);
  color: #37bfb5;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-cli-close:hover {
  background: rgba(55, 191, 181, 0.15);
  transform: translateX(-2px);
}
.ai-cli-hint {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* Mobile */
@media (max-width: 600px) {
  #ai-cli-overlay { padding: 0.5rem; }
  .ai-cli-panel { border-radius: 10px; }
  .ai-cli-body { font-size: 12.5px; padding: 1rem 1rem 0.75rem; line-height: 1.55; }
  .ai-cli-head { padding: 0.55rem 0.75rem; }
  .ai-cli-title { display: none; }
  .ai-cli-foot { padding: 0.55rem 0.75rem; }
  .ai-cli-hint { display: none; }
}

/* Triple-click easter egg — bublina u kurzoru */
.triple-click-joke {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  max-width: 320px;
  padding: 0.85rem 1.1rem;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(55, 191, 181, 0.45);
  border-radius: 1rem;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(55, 191, 181, 0.08),
              0 0 30px rgba(55, 191, 181, 0.12);
  will-change: transform, opacity;
}
.triple-click-joke .tcj-word {
  display: inline-block;
  white-space: pre;
}

/* Testimonial avatar — kruh s iniciálou místo fotky */
.testimonial-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(55, 191, 181, 0.12);
  border: 1px solid rgba(55, 191, 181, 0.35);
  color: #37bfb5;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  user-select: none;
  line-height: 1;
}

/* Breadcrumb section — globální wrapper pro breadcrumb komponentu */
.breadcrumb-section {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 1.25rem;
  margin: 0;
}
/* Přímý potomek hero sekce — nuluje margin i padding; vnitřní card si dá vlastní air */
.breadcrumb-section + .product-hero,
.breadcrumb-section + .cs-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Card uvnitř product-hero má typicky pt-lg-5 = 3rem — pokud hero jede po breadcrumbu, zmenšíme */
.breadcrumb-section + .product-hero .card {
  padding-top: 3.5rem !important;
}
/* Vnořený row v card má taky pt-lg-5 — taky stáhneme */
.breadcrumb-section + .product-hero .card > .row {
  padding-top: 0 !important;
}
/* .hero-center s inline paddingem (150px) — přepíšeme na příjemný prostor */
.breadcrumb-section + .hero-center {
  margin-top: 0 !important;
  padding-top: 2.5rem !important;
}

/* Breadcrumb */
.cs-breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.cs-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color .2s ease;
}
.cs-breadcrumb a:hover { color: #37bfb5; }
.cs-breadcrumb span.sep { margin: 0 .5rem; color: rgba(255,255,255,0.25); }

/* Meta bar */
.cs-meta {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}
/* Varianta pro spodek hero — jen horní oddělovač, žádný border-bottom */
.cs-meta--bottom {
  border-bottom: none;
  padding-bottom: 0;
}
.cs-meta__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.35rem;
}
.cs-meta__value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

/* Editorial hero */
.cs-hero {
  position: relative;
  padding-top: 2rem;
}
.cs-hero__eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #37bfb5;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(55, 191, 181, 0.35);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.cs-hero__wordmark {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(4rem, 14vw, 11rem);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1rem;
  padding-bottom: 0.1em;
}
.cs-hero__lead {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  max-width: 42ch;
}
.cs-hero__media {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  aspect-ratio: 4 / 5;
}
.cs-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
@media (max-width: 991px) {
  .cs-hero__media { aspect-ratio: 16/10; }
}

/* Chapter header (01, 02, ...) */
.cs-chapter {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 767px) {
  .cs-chapter {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.cs-chapter__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  color: #37bfb5;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.cs-chapter__title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Drop cap intro */
.cs-dropcap::first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 0.9;
  padding: 0.35rem 0.75rem 0 0;
  font-weight: 700;
  color: #37bfb5;
}

/* Body prose */
.cs-prose p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.cs-prose strong { color: #fff; font-weight: 600; }
.cs-prose em { color: #37bfb5; font-style: normal; }

/* Sticky sidebar TOC */
.cs-toc {
  position: sticky;
  top: calc(var(--nav-h, 84px) + 1.5rem);
  align-self: start;
  padding: 1.5rem 0;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 3;
  max-height: calc(100vh - var(--nav-h, 84px) - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.cs-toc__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.cs-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cs-toc;
}
.cs-toc li { counter-increment: cs-toc; }
.cs-toc a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all 0.2s ease;
}
.cs-toc a::before {
  content: counter(cs-toc, decimal-leading-zero) " — ";
  color: rgba(255,255,255,0.3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  margin-right: 0.3rem;
}
.cs-toc a:hover {
  color: #fff;
  border-left-color: rgba(55,191,181,0.5);
}
.cs-toc a.active {
  color: #37bfb5;
  border-left-color: #37bfb5;
}

/* Pull quote */
.cs-pullquote {
  padding: 3rem 0;
  text-align: center;
}
.cs-pullquote__mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.5;
  color: #37bfb5;
  opacity: 0.6;
  display: block;
  margin-bottom: 1rem;
}
.cs-pullquote__text {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  max-width: 24ch;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.01em;
}
.cs-pullquote__author {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
}

/* Process timeline — vertical */
.cs-process {
  position: relative;
  padding-left: 2.5rem;
}
.cs-process::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(55,191,181,0.6), rgba(55,191,181,0.05));
}
.cs-step {
  position: relative;
  margin-bottom: 2.5rem;
}
.cs-step::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #37bfb5;
  box-shadow: 0 0 0 4px rgba(55,191,181,0.15);
}
.cs-step__label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #37bfb5;
  margin-bottom: 0.35rem;
}
.cs-step__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cs-step__body {
  color: rgba(255,255,255,0.65);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* Stat tiles (cs-stats — pro case studies) */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cs-stat { background: rgba(0, 0, 0, 0.25); border-radius: 1.5rem; padding: 2rem 1.5rem; text-align: left; position: relative; }
.cs-stat__num { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.5rem; display: flex; align-items: baseline; gap: 0.35rem; }
.cs-stat__unit { font-size: 0.5em; color: #37bfb5; font-weight: 500; }
.cs-stat__label { font-size: 0.82rem; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; line-height: 1.4; }
.cs-stat__corner { position: absolute; top: 1rem; right: 1rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.7rem; color: rgba(255,255,255,0.25); }
@media (max-width: 767px) { .cs-stats { grid-template-columns: repeat(2, 1fr); } }

/* Tech stack pills */
.cs-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cs-stack__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
}
.cs-stack__pill i { color: #37bfb5; }

/* Demo card — code to live preview (Vibmy) */
.cs-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.cs-demo__panel {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cs-demo__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.cs-demo__dot { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.cs-demo__dot--r { background: #ff5f57; }
.cs-demo__dot--y { background: #febc2e; }
.cs-demo__dot--g { background: #28c840; }
.cs-demo__body { padding: 1.25rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; color: rgba(255,255,255,0.75); line-height: 1.7; white-space: pre-wrap; flex: 1; }
.cs-demo__body .kw { color: #c792ea; }
.cs-demo__body .str { color: #a8e6cf; }
.cs-demo__body .tag { color: #82aaff; }
.cs-demo__body .com { color: rgba(255,255,255,0.35); font-style: italic; }
.cs-demo__preview { padding: 0; background: #fff; min-height: 280px; display: flex; align-items: center; justify-content: center; color: #111; text-align: center; flex: 1; }
.cs-demo__preview-inner { padding: 2rem; }
.cs-demo__preview h4 { color: #111; font-weight: 700; margin-bottom: 0.5rem; }
.cs-demo__preview p { color: #555; margin: 0; font-size: 0.9rem; }
.cs-demo__arrow {
  align-self: center;
  font-size: 1.5rem;
  color: #37bfb5;
  padding: 0 0.5rem;
}
@media (max-width: 991px) {
  .cs-demo { grid-template-columns: 1fr; }
  .cs-demo__arrow { transform: rotate(90deg); padding: 0.5rem 0; }
}

/* Chat bubbles (Janička) */
.cs-chat {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2rem;
  padding: 1.5rem;
  max-width: 460px;
  margin: 0 auto;
}
.cs-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1rem;
}
.cs-chat__title { font-size: 0.85rem; color: rgba(255,255,255,0.55); font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; }
.cs-chat__wave {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.cs-chat__wave span {
  display: block;
  width: 3px;
  background: #37bfb5;
  border-radius: 2px;
  animation: csWave 1.2s ease-in-out infinite;
}
.cs-chat__wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.cs-chat__wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.cs-chat__wave span:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.cs-chat__wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.cs-chat__wave span:nth-child(5) { height: 8px; animation-delay: 0.6s; }
@keyframes csWave {
  0%,100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.cs-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  max-width: 85%;
  animation: csFadeIn .5s ease;
}
.cs-bubble--user {
  background: #37bfb5;
  color: #0a0a0a;
  margin-left: auto;
  border-bottom-right-radius: 0.4rem;
}
.cs-bubble--ai {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-bottom-left-radius: 0.4rem;
}
.cs-bubble__meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  padding: 0 0.5rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.1em;
}
@keyframes csFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Next case study */
.cs-next {
  position: relative;
  display: block;
  border-radius: 2rem;
  overflow: hidden;
  background: #0a0a0a;
  border: none;
  text-decoration: none;
  transition: transform 0.4s ease;
  min-height: 380px;
}
.cs-next:hover {
  transform: translateY(-4px);
}
.cs-next__img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.8s ease;
}
.cs-next:hover .cs-next__img {
  opacity: 0.55;
  transform: scale(1.04);
}
.cs-next__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.4) 100%);
}
.cs-next__content {
  position: relative;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}
.cs-next__label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #37bfb5;
}
.cs-next__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.5rem;
  line-height: 1;
}
.cs-next__sub { color: rgba(255,255,255,0.6); font-size: 1rem; margin: 0; }
.cs-next__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #37bfb5;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-top: 2rem;
}
.cs-next__arrow i { transition: transform 0.3s ease; }
.cs-next:hover .cs-next__arrow i { transform: translateX(6px); }

/* Highlight strip */
.cs-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.cs-marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: csMarquee 30s linear infinite;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}
.cs-marquee__track span { display: inline-flex; align-items: center; gap: 0.75rem; }
.cs-marquee__track i { color: #37bfb5; }
@keyframes csMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Schovat CookieScript floating badge (cookie lišta zůstává funkční) */
#cookiescript_badge {
  display: none !important;
}

/* Klikatelné feature-items v Integrace a automatizace (→ SyncBridge) */
.sync-feature-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sync-feature-link:hover {
  transform: translateY(-2px);
}
.sync-feature-link:hover .contact-icon {
  background: rgba(55, 191, 181, 0.2);
}
.sync-feature-link:hover h5 {
  color: #37bfb5 !important;
}
