body {
  margin: 0;
  padding: 0;
  background-color: #0b0a1d;
  color: #e0dede;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 200vh;

}



header {
  text-align: center;
  padding: 2rem 1rem;
}

.main-h1 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #ffffff;
  /* nebo jakákoliv barva, kterou používáš */
  line-height: 1.2;
}


img {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

section {
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

h2,
.content-block h2,
.features-container h2,
.offer-wrapper h2,
.offer-text h2,
.why-text h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

h3 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: bold;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Horní pruh */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0b0a1d;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid #222;
}

.logo {
  position: relative;
  /* kvůli bublině */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  /* mezera mezi logo-top a zprávou, nepovinné */

}

.logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-style: normal;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #AD49B9;
}


/* Navigace */
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 3rem);
  /* přirozené rozestupy */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;

}

.main-nav li {
  padding: 0.3rem 0;
}

.main-nav a {
  font-size: clamp(0.6rem, 1vw, 1rem);
  font-weight: bold;
  padding: 0.6rem clamp(0.8rem, 2vw, 1.2rem);
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

.main-nav li a:hover {
  color: #AD49B9;
}

.centered-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1rem auto;
  text-align: center;
}

/* Navigační menu – na mobilu úplně zmizí */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .centered-nav {
    position: static;
    transform: none;
    margin: 1rem auto;
    text-align: center;
  }
}


/* Mobil: menu pod sebou Řeší rozpad obrázkových sloupců (např. "Ekrany aplikacji") na mobilu */
@media (max-width: 768px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-columns>.wp-block-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Footer */
.footer-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  background-color: #0b0a1d;
  color: #d3d3d3;
  padding: 1rem 2rem 2rem 2rem;
  /* top | right | bottom | left */
  text-align: left;
}

.footer-column {
  flex: 1 1 30%;
  min-width: 240px;
  max-width: 360px;
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-column h3 {
  color: #e8cceb;
  margin-bottom: 12px;
  border-bottom: 2px solid #780F66;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 20px;
}

.footer-logo {
  margin-top: 15px;
  max-width: 110px;
}

.footer-bottom {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: #780F66;
  color: #d3d3d3;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
  border-top: 1px solid #625f5f;
}


html {
  scroll-behavior: smooth;
}

.hero {
  background-image: url('bg_hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 3rem 1.5rem;
  max-width: 100%;
  min-height: 50vh; /* nebo i 70vh pro moderní dojem */

  
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 30, 184, 0.5);
  /* tmavší filtr pro lepší čitelnost */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: #e0dede;
}

.hero-subtitle {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  opacity: 0.95;
  color: #e0dede;
}

.hero-tagline {
  font-size: 1rem;
  color: #e0dede;
  padding-bottom: 2rem;
}

.about-section {
  background-color: #0b0a1d;
  color: #e0dede;
  padding: 60px 20px;
  margin-top: -60px;
}

.features-section {
  background-color: #0b0a1d;
  color: #e0dede;
  padding: 20px 0 40px 0;
  /* sníženo z 40 na 20 nahoře */
  margin-top: -40px;
}

.features-container {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  /* stejně jako .about-text má padding */
  padding-right: 20px;
  text-align: left;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 500px;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
  padding: 20px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.cosmic-list {
  flex: 1 1 auto;
  max-width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cosmic-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  font-size: 1rem;
  color: #e0dede;
}

.cosmic-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 2px;
  color: #e5cff4;
  text-shadow: 0 0 8px #AD49B9, 0 0 15px #780F66;
  font-size: 1rem;
}

.list-intro {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #d8d8f0;
}

.content-block {

  max-width: 1100px;
  margin: 0 auto;
  padding: 0px;
  color: #e0dede;
  text-align: left;
  scroll-margin-top: 80px;
  /* výška top-baru, uprav dle potřeby */
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.features-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.features-image {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.features-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /* zmenší horizontální mezery */
  margin-bottom: 1.5em;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.wp-block-column {
  flex: 1;
  padding: 0.25rem;
  /* zmenší vnitřní mezery */
  box-sizing: border-box;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.wp-block-heading {
  margin-bottom: 0.25em;
}

img {
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.custom-separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 80%;
  margin: 2rem auto;
}

.why-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 5rem;
  padding-bottom: 1rem;
  scroll-margin-top: 80px;
}

.why-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
  color: #e0dede;
  padding-left: 0rem;
  /* dorovnání k ostatním sekcím */
  padding-right: 1rem;
}

.why-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.why-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  max-height: 400px;
}

.why-image a:hover {
  color: #AD49B9;
}

.why-horoscope {

  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.offer-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0rem;
  max-width: 1100px;
  margin: 0 auto;
}

.offer-text {
  flex: 1;
  min-width: 280px;
  padding: 0;
  margin: 0;
  color: #e0dede;

}

#co-oferuje .offer-text h2 {
  text-align: left;
}

.offer-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.offer-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  object-fit: cover;
  /* pokud chceš, aby se oříznul, když je moc velký */
  max-height: none;
}


/* Styl pro miniaturu */
.zoomable-img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Pozadie a vrstva */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  /* ⬅ toto pridaj, aby sa nedeformoval */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Zavrieť */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

#o-aplikacji {
  padding-top: 0;
}


.text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* místo auto-fit */
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .text-grid {
    grid-template-columns: 1fr;
  }
}


.text-box {
  background-color: #191829;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  color: #e0dede;
  transition: transform 0.3s ease;
}

.text-box:hover {
  transform: translateY(-5px);
}

.intro-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2.5rem;
}

.intro-text {
  flex: 2;
  min-width: 300px;
  color: #e0dede;
}

.intro-qr {
  flex: 1;
  min-width: 150px;
  text-align: center;
  align-items: center;
  margin-top: 3rem;
  /* přidáme odsazení dolů */
  padding: 2rem 1rem;
  margin: 40px auto;
}


.qr-img:hover {
  transform: scale(1.05);
}

.intro-qr img.qr-img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}


.play-btn {
  display: inline-block;
  background-color: #780F66;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(76, 76, 221, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.play-btn:hover {
  background-color: #44306c;
  transform: translateY(-2px);
}

/* QR kód */
.qr-img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

/* Google badge */
.google-badge {
  display: block;
  max-width: none;
  width: auto;
  height: 80px;
  margin: 10px auto 0 auto;
  transition: transform 0.3s ease;
}

/* Hover efekt pro badge */
.google-badge:hover {
  transform: scale(1.05);
}

/* Popisek pod QR */
.qr-caption {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 15px;
  margin-top: 10px;
}

/* Responsivní úprava */
@media (max-width: 480px) {
  .qr-img {
    width: 100px;
  }

  .google-badge {
    height: 60px;
  }

  .qr-caption {
    font-size: 0.9rem;
  }
}




.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo-icon {
  height: 40px;
  /* finální velikost loga */
  width: auto;
  display: block;
  position: relative;
  top: 4px;
  /* nebo 3px, 4px – podle potřeby */
  opacity: 0.9;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-icon:hover {
  transform: scale(1.1);
}



/* animace hvezdy */
@keyframes starPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logo-icon.animate-star {
  animation: starPulse 0.8s ease-in-out;
}

/* styl bubliny */
/* Bublina */
.star-message {
  position: absolute;
  top: 100%;
  /* pod logem */
  left: 0;
  transform: translateY(8px);
  background-color: rgba(91, 62, 91, 0.08);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-style: italic;
  white-space: normal;
  box-shadow: 0 0 8px rgba(228, 226, 226, 0.2);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 20;
  max-width: 280px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .star-message {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

.logo-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;

}



.star-message.show {
  opacity: 1;
}

.star-message.hidden {
  display: none;
}



.logo:hover .star-message {
  opacity: 1;
  pointer-events: auto;
}



#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c;
  color: #ccc;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  z-index: 9999;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  font-family: inherit;
  display: none;
}

#cookie-banner .lang {
  margin-bottom: 0.6rem;
}

#cookie-banner button {
  background-color: #6f44bd;
  color: white;
  border: none;
  padding: 0.4em 1.1em;
  font-size: 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
  margin: 0;
}

#cookie-banner button:hover {
  background-color: #56339d;
}

html {
  scroll-behavior: smooth;
}

:focus {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

a:focus img,
img:focus {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

.google-badge:focus {
  outline: none;
  outline-offset: 4px;
  border-radius: 8px;
}

body.mouse-mode .lang-btn:focus,
body.mouse-mode a:focus,
body.mouse-mode button:focus,
body.mouse-mode .zoomable-img:focus {
  outline: none;
}



/* Výchozí outline jen pro klávesnici */
:focus-visible {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Skryj outline při ovládání myší */
body.mouse-mode :focus {
  outline: none !important;
}

/* Výjimka – specificky pro Google badge uvnitř odkazu */
a:focus-visible img.google-badge {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Pokud chceš zvýšit jistotu – můžeš přidat i samostatně pro obrázek */
img.google-badge:focus-visible {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

/* zvyraznene pismo v textu */
.highlight {
  color: #c499e3;
  font-weight: bold;
}

@media (min-width: 769px) and (max-width: 1130px) {
  .content-block {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }
}


@media (max-width: 768px) {
  .why-wrapper {
    flex-direction: column;
    align-items: flex-start;
    /* nechává text vlevo, ale nedeformuje obraz */
  }

  .why-text,
  .why-text p,
  .why-text h2 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .why-image {
    width: auto;
    max-width: 100%;
    margin-top: 1.5rem;
  }

  .why-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
  }
}


/* Zmenšíme texty v .hero na menších obrazovkách*/
@media (max-width: 768px) {
  .hero-title {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-tagline {
    font-size: 15px;
    line-height: 1.4;
  }

  .hero-content {
    padding: 1.5rem 1rem;
    text-align: center;
  }
}


@media (max-width: 768px) {

  .hero,
  .intro-wrapper,
  .intro-section,
  .content-block,
  .offer-image {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* === MOBILNÍ ZAROVNÁNÍ A ROZTAŽENÍ NA CELOU ŠÍŘKU === */
@media (max-width: 768px) {

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  section,
  .content-block,
  .hero,
  .intro-wrapper,
  .intro-section,
  .offer-wrapper,
  .why-wrapper,
  .main-wrapper,
  .wp-block-group,
  .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* Oprava roztaženého Google Play tlačítka na menších obrazovkách */
@media (max-width: 1024px) {
  .intro-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }

  .intro-qr .qr-img {
    max-width: 180px;
    height: auto;
  }

  .google-badge {
    max-width: 180px;
    width: 100%;
    height: auto;
  }
}

/* Zarovnání loga vlevo ve footeru na mobilu */
@media (max-width: 768px) {
  .footer-logo {
    display: block;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    max-width: 150px;
    height: auto;
  }
}


/* butonky jazykove mutace */
#langBtn {
  background-color: #e1def9;
  color: #2d2250;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#langMenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: #1c1c2d;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
}

#langMenu li {
  padding: 8px 16px;
}

#langMenu li a {
  color: #fff;
  text-decoration: none;
  display: block;
}

#langMenu li:hover {
  background-color: #2f2f44;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .offer-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .offer-text,
  .offer-image {
    width: 100%;
  }

  .offer-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* pro male mobily */
@media (max-width: 400px) {
  .top-bar {
    padding: 1rem 1rem;
  }
}

/* === DESKTOP (výchozí styl) === */
.language-selector {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  max-height: 40px;
}

#langBtn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

/* === TABLETY A MOBILY do 768px === */
@media (max-width: 768px) {
  .top-bar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    ;
    justify-content: space-between;
    padding: 1rem;
  }


  .logo {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
  }

  .language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    white-space: nowrap;
    margin-left: auto;
  }

  #langBtn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
  }
}

/* === MALE MOBILY do 380px === */

@media (max-width: 380px) {
  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    margin-left: 0 !important;
    /* přepíše auto z větších media */
    background: none;
  }

  #langBtn {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
    transform: translateY(-2.3px);
  }
}

#langBtn img {
  vertical-align: middle;
  height: 1em;
}

@media (max-width: 1130px) and (min-width: 769px) {

  .top-bar {
    display: flex;
    flex-wrap: wrap;
    /* 👉 povolíme zalomení */
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: 1rem;
    font-size: 0.9rem;
  }

  .main-nav a {
    padding: 0.2rem 0.4rem;
  }

  .main-nav li {
    margin: 0 0.5rem;
  }

  .language-selector {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
    transform: translateY(0);
  }

  #langBtn {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }
}


@media (max-width: 768px) {

  h2,
  .content-block h2,
  .features-container h2,
  .offer-wrapper h2,
  .offer-text h2 {
    font-size: 1.2rem;
  }
}

/* === video === */
.thumb-button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 0;
  font-size: 0.9rem;
  color: #bbb;
  transition: transform 0.2s ease;
}

.thumb-button img {
  width: 60px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  transition: transform 0.3s ease;
}

.thumb-button:hover img {
  transform: scale(1.05);
}

.thumb-button span {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: #aaaaaa;
}


.video-container {
  max-width: 640px;
  margin-bottom: 20px;
}



.logo a {
  font-size: clamp(18px, 2.2vw, 24px);
}

#langBtn {
  font-size: clamp(13px, 1.5vw, 16px);
}

/* === HEADER CLEANUP === */






.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}



/* Střední obrazovky – zmenšení písma */
@media (max-width: 1024px) {
  .logo a {
    font-size: 21px;
  }

  #langBtn {
    font-size: 14px;
  }
}

@media (max-width: 850px) {
  .logo a {
    font-size: 18px;
  }

  #langBtn {
    font-size: 13px;
  }
}

/* Mobil: zachovat vedle sebe */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .logo a {
    font-size: 16px;
  }

  #langBtn {
    font-size: 12px;
    padding: 0.3rem 0.5rem;
  }
}

/* pridani Digestu */
.digest-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(to bottom, #780F66, #9b1d86);
  border-radius: 7.7px; /* 7 * 1.1 */
  padding: 6.6px 11px; /* 6 * 1.1 | 10 * 1.1 */
  font-size: 17.2px; /* 12 * 1.1 */
  font-weight: 400;
  color: #e2e2e2;
  box-shadow: inset 0 0 0 1.1px rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.digest-pill:hover {
  transform: scale(1.05);
  background: linear-gradient(to bottom, #9d30a9, #c357cf);
}

.digest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.digest-section {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 5rem;
}



.digest-heading {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 3rem;
}

.digest-sub {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 3rem;
}


#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}


.hero-title, .hero-subtitle, .hero-tagline {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards;
}

.hero-subtitle {
  animation-delay: 0.5s;
}

.hero-tagline {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
