body {
  background-color: #f8f9fa;
  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 {
  background-color: #ddd;
  overflow: hidden;
  max-width: 910px;
  margin: 0 auto 20px auto;
  padding: 0px; /* upraveno */
  border-radius: 10%;
}
.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === 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;
  height: auto;
}
.text-section h2 {
  margin: 0 0 1rem;
  padding-top: 5px;
  font-weight: bold; /* nově tučně */
}
.text-section p { font-weight: normal; }

/* === DEKORACE (ponechány jen spodní) === */
.icon-deco {
  position: absolute;
  height: 75px;
  width: auto;
  z-index: 3;
  opacity: 0.75; /* nově */
}
.icon-bottom-right {
  bottom: 45px;
  right: 40px;
}

/* === 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;
  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;
  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;
}

/* === LIGHTBOX OBECNÝ === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  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; /* nově tučně */
}
.text-slide p { margin: 0 0 1rem; }
.text-slide img {
  width: 70%;
  margin: 10px auto;
  display: block;
  border-radius: 3%;
}

/* === 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; /* zachová 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%;
}

/* === 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; }

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

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

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

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

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

/* === MOBIL (≤585px) === */
@media (max-width: 585px) {
  .section-row { flex-direction: column; height: auto; }
  .text-section, .kukatko-section, .foto-ukazka-vlozene {
    width: 100%; min-height: 260px;
  }
  .first-row .text-section { order: 1; }
  .first-row .kukatko-section { order: 2; }
  .second-row .text-section { order: 3; }
  .second-row .foto-ukazka-vlozene { order: 4; }
  .third-row .text-section { order: 5; }
  .third-row .kukatko-section { order: 6; }
}

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