/* === NOVINKY LAYOUT === */
.novinky-box .container.gallery {
  display: grid;
  grid-template-areas:
    "title title"
    "links image"
    "footer footer";
  gap: 24px 32px;
  align-items: start;

}

.novinky-box .container.gallery h2 {
  grid-area: title;
  margin-bottom: 10px;
}

.tabulka {
  grid-area: links;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
}

.novinky-image {
  grid-area: image;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.novinky-image img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-main);
}

.facebook {
  width: 50px;
}

.novinky-zaver {
  grid-area: footer;
  margin-top: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.4;
}

/* === BOXÍKY S ODKAZY === */
.partners-logos {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 0;
  border: none; /* smaž testovací modrý rámeček */
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  flex: 1 1 220px;
  max-width: 260px;
  min-height: 140px;
  box-sizing: border-box;

  text-decoration: none;
  color: inherit;

  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-logo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.partner-title {
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  font-size: 1.05rem;
}

.partner-logo img {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.1));
  display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .novinky-box .container.gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "links"
      "image"
      "footer";
  }

  .novinky-image {
    justify-content: center;
  }

  .novinky-image img {
    max-width: 420px;
  }

  .partners-logos {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .partner-logo {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: auto;
  }

  .partner-title {
    font-size: 1rem;
  }

  .novinky-image img {
    max-width: 100%;
  }
}

/* jedna "karta" = název + logo */
.partner-logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: inherit;

  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);

  transition: transform 0.25s ease;
}

.partner-logo:hover{
  transform: scale(1.03);
}

.partner-title{
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  font-size: 1.05rem;
}

/* logo */
.partner-logo img{
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.1));
}
/* ===== Kontakt modal layout ===== */
.cm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 10px;
  line-height: 1.55;
}

.cm-contact-block {
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
}

.cm-contact-block a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cm-contact-block--full {
  grid-column: 1 / -1;
}

/* mobil: jeden sloupec */
@media (max-width: 520px) {
  .cm-contact-grid {
    grid-template-columns: 1fr;
  }

  .cm-contact-block--full {
    grid-column: auto;
  }
}

.cenik-info {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* zakáže označování textu (desktop i mobil) */
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ale povolíme označení tam, kde to dává smysl */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ===== Chadimův mlýn: modal ===== */
.cm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.cm-modal.is-open {
  display: block;
}

.cm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cm-modal__dialog {
  position: relative;
  width: min(92vw, 520px);
  margin: 10vh auto 0 auto;
  padding: 20px 18px;
  border-radius: 16px;

  /* Pokud máš design tokeny, klidně nahraď */
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);

  outline: none;
}

.cm-modal__title {
  margin: 0 34px 6px 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.cm-modal__desc {
  margin: 0 0 14px 0;
  opacity: 0.85;
  font-size: 0.98rem;
}

.cm-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;
  border-radius: 10px;

  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  cursor: pointer;

  display: grid;
  place-items: center;
}

.cm-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;

  border: 1px solid rgba(0,0,0,0.14);
  transition: transform 120ms ease, opacity 120ms ease;
}

.cm-btn:active {
  transform: translateY(1px);
}

.cm-btn:hover {
  transform: scale(1.05);
}

.cm-btn--primary {
  background: #111;
  color: #fff;
  border-color: rgba(0,0,0,0.15);
}

.cm-btn--ghost {
  background: transparent;
  color: #111;
}

.cm-modal__note {
  margin: 14px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (min-width: 520px) {
  .cm-modal__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.novinky-content p {
  font-size: 150%;
}


/* === Globální informace stránce === */
:root {
  /* === Stíny === */
  --shadow-main: 0 6px 12px rgba(0,0,0,0.2);
  --shadow-large: 0 10px 20px rgba(0,0,0,0.15);

  /* === Barvy === */
  --color-primary: #5a3e2b;
  --color-secondary: #e8d9c1;
  --color-accent: #edc946;
  --color-text: #333333;
  --color-background: #f8f5f2;
  --color-section: #fef6e4;
  --color-text-light: #f8f5f2;
}
.novinky-content a {
  color: var(--color-text);
  display: inline-block;
  transition: transform 0.2s ease;
}

.novinky-content a:hover {
  transform: scale(1.005);
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden; 
  background-color: var(--color-background);
  color: var(--color-text);
}

h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  text-align: center;
}

 a {
  text-decoration: none;
 }

/* === Animace  === */
@keyframes flyIn {
  from {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes highlight-flash {
0% {
    box-shadow: none;
    border: none;
  }
  20% {
    box-shadow: 0 0 0 1px black, 0 0 5px black;
  }
  50% {
    box-shadow: 0 0 0 3px black, 0 0 10px black;
  }
  80% {
    box-shadow: 0 0 0 1px black, 0 0 5px black;
  }
  100% {
    box-shadow: none;
    border: none;
  }
}

.highlighted {
  animation: highlight-flash 2.5s ease-in-out;
  border-radius: 6px;
}

.reveal-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }
.fade-delay-6 { transition-delay: 0.6s; }

/* === Navigace === */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent; /* Původně průhledná */
  z-index: 999; /* Nad ostatními prvky */
}

/* Efekt po scrollnutí – změna barvy pozadí a stín */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-main);
}

#navbar.scrolled a { 
  color: var(--color-text); 
}

/* === NAVIGACE === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 10px 40px; 
}

nav ul {
  display: flex;
  gap: 40px; 
  padding: 0;
  margin-right: 50px;
  list-style: none; 
}
nav ul li a {
  position: relative;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  color: var(--color-text-light);
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-text-light);
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

nav ul li a:hover {
  transform: scale(1.1); 
}

nav ul li a:hover::after {
  width: 100%; 
}

/* scrollovaný navbar */
#navbar.scrolled ul li a {
  color: var(--color-text); 
}

#navbar.scrolled ul li a::after {
  background-color: var(--color-primary); 
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  max-width: 100%;
  height: auto;
   margin: 10px;

}

/* Mobilní tlačítko menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 10px;
}

/* === HERO SEKCE === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; 
  overflow: hidden;
}

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

/* Textová vrstva uvnitř hero sekce */
.hero-text {
  position: absolute;
  top: 40%; 
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2; 
  animation: flyIn 1s ease-out;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Nadpisy v hero sekci */
.hero-text h1 {
  font-size: 5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.hero-text h2 {
  font-size: 3rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

/* === SEKCE S KARTIČKAMI (SLUŽBY) === */
.cards {
  display: flex;
  justify-content: center;
  gap: 40px 80px; 
  padding: 40px 10px;
  flex-wrap: wrap; 
  margin-top: -14%; 
  position: relative;
  z-index: 5; 
}

/* Jednotlivá karta */
.card {
  flex: 1 1 calc(40% - 20px);  
  max-width: 400px;            
  height: 450px;              
  background-color: var(--color-secondary); 
  border: 2px solid var(--color-primary); 
  border-radius: 20px;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-main); 
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
/* Wrapper pro flip efekt */
.card-wrapper {
  perspective: 1500px; 
}

/* Vlastní otočná karta */
.card-flip {
  width: 300px;
  height: 450px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  box-shadow: var(--shadow-large);
  border-radius: 20px;
}

.card-wrapper:hover .card-flip {
  transform: rotateY(180deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
}

/* Přední a zadní strana karty */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  box-shadow: var(--shadow-main);
  background-color: var(--color-secondary);
  padding: 15px;
  box-sizing: border-box;
}

/* Přední strana */
.card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  
}

.card-front h3,
.card-front p {
  color: var(--color-text);
}

.card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #aaa;
}

/* Zadní strana */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  background-color: var(--color-primary);
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.7),
    -1px -1px 0 rgba(255, 255, 255, 0.2);
}

/* Kliknutelná zadní strana */
.card-back.clickable {
  cursor: pointer;
}

.card-back.clickable p {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  padding: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.card h3 {
  margin: 10px 0 5px;
}

/* === NOVINKY BOX === */
.novinky-box {
  background-color: var(--color-section);
  transform: rotate(-2deg); 
  margin: 60px auto;
  padding: 40px;
  max-width: 80%;
  border-radius: 20px;
  display: flex;
  justify-content: space-between; 
  flex-wrap: wrap; 
  position: relative;
  box-shadow: var(--shadow-large); 
}

.novinky-content {
  flex: 1 1 60%;
  font-size: 1rem;
  line-height: 1.6;
}

.novinky-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.novinky-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.novinky-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-main); 
}

.novinky-zaver {
  margin-top: 2em;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.4;
}

/* === nasPribeh SEKCE === */
.nasPribeh {
  position: relative;
  padding: 60px 20px;
  background-color: var(--color-background);
  text-align: center;
}

/* Svislá osa uprostřed  */
.nasPribeh::before {
  content: '';
  position: absolute;
  top: 100px;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-primary);
  transform: translateX(-50%);
  z-index: 0;
}

/* Bubliny s příběhy */
.bubble {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 25px;
  background-color: var(--color-section);
  box-shadow: var(--shadow-main);
  transform: rotate(-1.5deg); 
  transition: transform 0.3s;
}

/* Střídání pozice a barvy bublin */
.bubble:nth-child(even) {
  flex-direction: row-reverse;
  background-color: var(--color-background);
  transform: rotate(1.5deg);
  margin-right: 80px;
  margin-left: auto;
}
.bubble:nth-child(odd) {
  margin-left: 80px;
}

.bubble:hover {
  transform: scale(1.02) rotate(0deg);
}

.bubble::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 3px solid white;
  z-index: 2;
}

.bubble:nth-child(odd)::before {
  left: calc(100% - 210px);
}
.bubble:nth-child(even)::before {
  right: calc(100% - 210px);
}

/* Obsah bublin */
.bubble-content {
  flex: 1;
  text-align: left;
}
.bubble-content h4 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0;
}
.bubble-content h3 {
  font-size: 1.6rem;
  margin: 8px 0 12px;
}
.bubble-content p {
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Obrázek – pouze u některých bublin */
.bubble img {
  width: 180px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0
}

/* === PATIČKA === */
.footer-content {
  background-color: var(--color-section);
  color: var(--color-text);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 30px 20px;
  border-top: 1px solid #999;

}

/* Jednotlivé sloupce v patičce */
.footer-column {
  flex: 1 1 200px;
  margin: 10px;
  line-height: 1.7;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Odrážky u seznamů služeb */
.footer-column ul {
  line-height: 1.4;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 5px 0;
}

/* Odkazy ve sloupcích */
.footer-column a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--color-accent); /* hnědý odstín při najetí */
}

/* Logo ve sloupci */
.footer-column.logo img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* Styl mapy (sloupec s iframe) */
.footer-column.mapa iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 10px;
}

.footer-column.mapa p {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Spodní lišta s rokem a copyrightem */
.footer-bottom {
  background-color: var(--color-primary);
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  color: white;
}

#MENU {display: none;}

@media (max-width: 1000px) {
  .menu-toggle {
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .menu-toggle.is-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  /* === NAVIGACE === */
  .menu-toggle {
    display: block;
    align-self: flex-start;
    margin-left: 10px;
  }

  #MENU {
    display: block;
  }
  #logo-img {
    display: none;
  }

  nav {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    background-color: white;
    padding: 10px 0;
    margin-right: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 10px 0;
  }

  nav li a {
    color: black;
    font-size: 1.1rem;
  }

  nav ul li a::after {
    background-color: black;
  }

  /* === HERO SEKCE === */
  .hero-text {
    width: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero img {
    object-position: center top;
  }
  /* === NOVINKY === */
  .novinky-box {
    flex-direction: column;
    transform: none;
    padding: 20px;
  }

  .novinky-content {
    flex: 1 1 100%;
  }

  .novinky-image {
    flex: 1 1 100%;
    margin-top: 20px;
  }

  /* === ČASOVÁ OSA === */
  .bubble {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
    padding: 20px;
    transform: none;
  }

  .bubble::before,
  .nasPribeh::before {
    display: none;
  }

  .bubble img {
    width: 100%;
    max-width: 300px;
  }

  .bubble-content {
    text-align: center;
  }

  /* === PATIČKA === */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
    margin: 20px 0;
  }

  .footer-column.mapa iframe {
    height: 250px;
  }

  .logo img {
    width: 120px;
    margin-bottom: 10px;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }

  /* === KARTIČKY === */
  .cards {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
  }

  .card-wrapper,
  .card-flip {
    width: 90% !important;
    height: auto;
    margin: 0 auto;
  }

  .card {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .card-front img {
    height: auto;
  }

  .card-flip {
    perspective: none;
    transform: none !important;
    height: auto;
  }

  .card-front, .card-back {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-main);
    border-radius: 15px;
    background-color: var(--color-secondary);
    padding: 20px;
    text-align: center;
  }

  .card-front img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    object-fit: cover;
  }

  .card-front h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-primary);
  }

  .card-front .flip-hint {
    font-size: 1rem;
    color: var(--color-text);
  }

  .card-back {
    display: none;
  }

  .card-front::after {
    content: attr(data-text);;
    display: block;
    margin-top: 15px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1rem;
  }

  nav ul li a::after {
    background-color: black;
  }

  nav ul li a {
    color: black;
  }

  #logo-img {
    display: none;
  }

  .novinky-box,
  .bubble {
    transform: none ;
  }

  .card-wrapper {
  margin-bottom: 30px;
  }

  .hero-text {
    width: 100%;
    top: 50%;
  transform: translate(-50%, -50%);
  }

  .hero-text h1 {
     font-size: 4rem ;              
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero img {
    object-position: center top;
  }

  .menu-toggle {
    display: block;
    align-self: flex-start;
    margin-left: 10px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: white;
    width: 100%;
    padding: 10px 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 10px 0;
  }
}
@media (max-width: 360px) {
  .hero-text h1{
    font-size: 3.4rem;
  }
  .hero-text h2{
    font-size: 150%;
  }
   .nasPribeh {
    width: 100%;
    padding: 0 12px;          /* ať to nedře o okraj */
    box-sizing: border-box;
  }

  .nasPribeh .bubble {
    width: min(100%, 520px);  /* klidně jen 100%, tohle je “bezpečný” */
    margin: 0 auto 18px;      /* centrování + mezera mezi bublinama */
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    position: relative;       /* kdyby byl absolute */
    box-sizing: border-box;
  }
  nav ul {
  display: none;
  position: absolute;
  top: 60px;        /* výška navbaru */
  left: 0;
  width: 100vw;     /* celá šířka obrazovky */
  background-color: white;
  padding: 20px 0;
  margin: 0;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

}