body {
  background-color: white;
  margin: 0;
  overflow-x: hidden;
  padding-top: 35px;
  font-family: 'DM Sans', sans-serif;
}

/* === HORIZONTÁLNÍ MENU === */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  display: flex;
  background: #222;
  color: #fff;
  font-size: 14px;
  z-index: 10000;
}
.top-nav .nav-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-nav .left { justify-content: flex-start; padding-left: 10px; }
.top-nav .right { justify-content: flex-end; padding-right: 10px; }
.menu-icon { cursor: pointer; font-size: 20px; }

/* === SIDE MENU === */
.side-menu {
  position: fixed;
  top: 35px;
  right: -200px;
  width: 200px;
  height: 100%;
  background: #333;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  transition: right 0.3s ease;
  z-index: 9999;
}
.side-menu a {
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
}
.side-menu a:hover { background: #444; }
.side-menu.active { right: 0; }

/* === BANNER === */
.banner{
  position: relative;
  overflow: hidden;
  max-width: 910px;
  margin: 0 auto 20px auto;
  padding-bottom: 120px;
  border-radius: 10%;
  aspect-ratio: 16 / 9;
}

/* video jako pozadí */
.banner-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* textová vrstva */
.banner-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2;
  pointer-events: none; /* neblokuje interakce */
}

/* samotný nadpis */
.banner-overlay h1{
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  max-width: 80%;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
}


/* === HLAVNÍ KONTEJNER === */
.main-content {
  max-width: 910px;
  margin: 0 auto;
  padding: 0 12px;
}

/* === SEKCE === */
.section-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.section-row > div {
  border-radius: 10%;
  overflow: hidden;
}

/* === TEXTOVÉ SEKCE === */
.text-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  box-sizing: border-box;
  aspect-ratio: 1 / 1; /* nad breakpointem chceme čtverec */
  height: auto;
}
.text-section h2 {
  margin: 0 0 1rem;
  padding-top: 5px;
  font-weight: bold;
  font-size: calc(1.25rem + .9vw);
}
.text-section p { font-weight: normal; }

.emotikon_uprostred_p {
    font-size: 1rem;
    text-align: center;
    margin: 0;
}

.w-100 {
    width: 100% !important;
    margin: auto;
}

/* === SEZNAM S CHECKY (nově) === */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.feature-item {
  position: relative;
  padding-left: 34px; /* odsazení pro ikonu */
  margin: 0 0 0.6rem;
  line-height: 1.35;
}
.feature-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2ecc71; /* zelený circle */
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === DEKORACE (ponechány jen spodní) === */
.icon-deco {
  
  height: 120px;
  width: auto;
  z-index: 3;
  opacity: 0.75;
}
.icon-bottom-right {
  margin: 0px auto;
  
}

/* === IKONOVÝ LIST (3 ikony vedle sebe) === */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;            /* když není místo, zalomí se */
}

.icon-list li { margin: 0; padding: 0; }

/* pokud chceš držet stejnou logiku "bottom-right" jako dřív */
.text-section { position: relative; } /* už máš, jen připomínám */

.icon-list.icon-bottom-right {
  margin: 0 auto;
}

/* velikost ikon v listu */
.icon-list .icon-deco {
  height: 75px;               /* odpovídá tvé současné velikosti */
  width: auto;
  opacity: 0.75;
  display: block;
}


/* === FORMULÁŘ === */
.order-form { width: 100%; }
.order-form .form-label { font-weight: bold; margin-bottom: 5px; }
.order-form .form-control {
  margin-bottom: 3px;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px 10px;
}
.order-form button {
  background: #007bff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  margin-top: 35px;
}
.order-form button:hover { background: #0056b3; }
.mb-small { margin-bottom: 3px !important; }

/* === KUKÁTKO === */
.kukatko-section {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1; /* vždy čtverec */
  height: auto;
}
.layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer-top { z-index: 1; }
.layer-bottom {
  z-index: 2;
  transition: clip-path 0.3s ease-out;
  clip-path: circle(0 at 50% 50%);
}

/* === GALERIE 3×3 === */
.foto-ukazka-vlozene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1; /* vždy čtverec */
  height: auto;
  padding: 0 !important;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
}
.galerie-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  padding: 4px;
}

/* === DRAG GRID (3x3) === */
.drag-grid .grid-item {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none; /* důležité pro mobile pointer drag */
  border-radius: 6px;           /* jemné zaoblení pro efekt */
  overflow: hidden;             /* aby ring seděl na okrajích */
}

/* pseudo-rámeček, který umí animaci */
.drag-grid .grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;

  
}

.drag-grid .grid-item:active {
  cursor: grabbing;
}

.drag-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* číslo v levém horním rohu */
.drag-grid .grid-index {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 700;

  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: #1b7f2a; /* zelený "check" vibe */
  z-index: 2;
}

/* drag styling */
.drag-grid .grid-item.dragging {
  opacity: 0.55;
}

.drag-grid .grid-item.drop-target {
  outline: 2px dashed rgba(0,0,0,0.35);
  outline-offset: -4px;
}

/* "tap highlight" pro touch – spustíme přes JS třídou */
.drag-grid .grid-item.is-pressed::after {
  opacity: 1;
  transform: scale(1);
  animation: bwRing 1.2s linear infinite;
}

/* při samotném tažení trošku výraznější feedback */
.drag-grid .grid-item.dragging::after {
  opacity: 1;
  transform: scale(1);
  animation: bwRing 0.8s linear infinite;
}


/* === LIGHTBOX OBECNÝ === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: #e9ecef;
  justify-content:  center;
  align-items: center;
  text-align: center;
}

/* === TEXTOVÝ LIGHTBOX === */
.text-lightbox {
  background: #fff;
  max-width: 460px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 55px;
  border-radius: 3%;
  position: relative;
  text-align: left;
  margin-right: 15px;
  margin-left: 15px;
}
.text-slide { display: none; }
.text-slide.active { display: block; }
.text-slide h2 {
  margin-bottom: 1rem;
  font-weight: bold;
}
.text-slide p { margin: 0 0 1rem; }
.text-slide img {
  width: 70%;
  margin: 10px auto;
  display: block;
  border-radius: 3%;
}

.list_middle_img {
        min-height: 120px;
    }


/* === KALKULAČKA V CENÍKU === */
.calculator {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #ddd;
}
.calc-section { margin-bottom: 1.2rem; }
.calc-section h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.calc-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap; /* default: vedle sebe */
}
.calc-btn {
  flex: 1 1 50%;
  text-align: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.calc-btn:hover { background: #eee; }
.calc-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.calc-result {
  text-align: center;
  margin-top: 1.5rem;
}
.calc-result p {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.3rem 0 0;
}

/* === GALERIE LIGHTBOX === */
.gallery-lightbox {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
}
.gallery-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 3%;
}

/* === ANIMOVANÝ TEXT === */

.animovany-text {
  /* 1. Nastavení přechodu */
  background: linear-gradient(to right, #c477f7, #e62bff, #23b5f9, #fd912b);
  background-size: 200% auto; /* Zvětšení pozadí pro plynulý posun */
  
  /* 2. Oříznutí pozadí na text */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* 3. Zprůhlednění původní barvy textu */
  -webkit-text-fill-color: transparent;
  color: transparent;
  
  /* 4. Animace */
  animation: menicibarevnytext 3s linear infinite;
}

/* Definice animace */
@keyframes menicibarevnytext {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* === OVLÁDACÍ PRVKY LIGHTBOXŮ === */
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #ccc;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}
.lightbox .close { top: 10px; right: 10px; }
.lightbox .prev,
.lightbox .next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox .prev { left: 10px; }
.lightbox .next { right: 10px; }

/* === FOOTER === */
.footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
  font-size: 14px;
}
.footer p { margin: 0; line-height: 1.6; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .insta-icon {
  width: 24px;
  height: 24px;
  margin-top: 8px;
  border-radius: 3%;
}
.footer-left { text-align: left; }
.footer-right { text-align: right; }

/* ================================
   BREAKPOINT: 785 PX (nově)
   ================================ */

/* === GRID OD 785 PX === */
@media (min-width: 785px) {
  .col-custom-6 { flex: 0 0 50%; max-width: 50%; }
  .section-row { flex-direction: row; }

  .first-row .foto-ukazka-vlozene { order: 1; }
  .first-row .text-section    { order: 2; }

  .second-row .text-section        { order: 1; }
  .second-row .kukatko-section { order: 2; }

  .third-row .kukatko-section { order: 1; }
  .third-row .text-section    { order: 2; }

  #icon_zatisi {
        display: none;
    }
}


/* === INTERVAL 992–785 === */
@media (max-width: 991px) and (min-width: 785px) {
  .text-section, .kukatko-section, .foto-ukazka-vlozene {
    min-height: 360px;
    max-height: 480px;
    height: auto;
  }
}

@media (max-width: 935px) and (min-width: 825px) {
  .list_middle_img {
        min-height: 90px;
    }
}

@media (max-width: 824px) and (min-width: 807px) {
  .list_middle_img {
        min-height: 65px;
    }
}

@media (max-width: 806px) and (min-width: 786px) {
  #icon_vaza_blesk {
        display: none;
    }
}

/* === POD 785 PX: textové sekce AUTO výška (wrap podle obsahu),
   ale kukátka + 3×3 galerie zůstávají čtverce === */
@media (max-width: 784px) {
  .section-row {
    flex-direction: column;
    height: auto;
  }

  /* TEXT/FORM: zrušíme čtvercové fixování */
  .text-section {
    aspect-ratio: auto;
    height: auto;
    min-height: unset;
    padding: 3% 7%;
    
  }

  .main-content {
      padding: 0 7%;
}


  /* ČTVERCE ponecháme */
  .kukatko-section,
  .foto-ukazka-vlozene {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    min-height: 260px; /* bezpečnostní minimum */
  }

  /* pořadí ve sloupci (ponecháváme vaše existující) */
  .first-row .text-section { order: 1; }
  .first-row .foto-ukazka-vlozene { order: 2; }
  .second-row .text-section { order: 3; }
  .second-row .kukatko-section { order: 4; }
  .third-row .text-section { order: 5; }
  .third-row .kukatko-section { order: 6; }

  /* kdyby v ceníku začaly buttony přetékat, dovolíme wrap */
  .calc-options {
    flex-wrap: wrap;
  }
  .calc-btn {
    white-space: normal;
  }

  
}


/* hover na desktopu */
@media (hover: hover) and (pointer: fine) {
  .drag-grid .grid-item:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: bwRing 1.2s linear infinite;
  }
}

@keyframes bwRing {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* volitelně: lehké "nadskočení" při hoveru (jen desktop) */
@media (hover: hover) and (pointer: fine) {
  .drag-grid .grid-item:hover {
    transform: translateY(-2px);
    transition: transform 160ms ease;
  }
}

/* === FALLBACK === */
@supports not (aspect-ratio: 1/1) {
  .text-section, .kukatko-section, .foto-ukazka-vlozene { height: 420px; }
}

@supports not (aspect-ratio: 16 / 9) {
  .banner { height: 320px; }
}
