body {
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: #0f172a;
  color: white;
}

/* LIŠTA */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ff0000;
  color: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-content {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  flex-wrap: wrap;
}

.navbar-content a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 0;
  transition: color 0.3s ease;
  font-size: 0.9em;
}

.navbar-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5%;
  width: 0;
  background-color: #1e293b;
  transition: width 0.3s ease;
}

.navbar-content a:hover::after {
  width: 100%;
  height: 5%;
}

/* Odsazení od horní části obsahu */
.main_body {
  background: linear-gradient(to right, #0f172a 55%, #88211e 100%);
  box-sizing: border-box;
}

/* KARTY */
.text_uprosdred {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  color: whitesmoke;
}

.text_uprosdred-spodni {
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  color: rgb(228, 228, 228);
  padding-bottom: 20px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

.card {
  background: #1e293b;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
  padding: 15px;
  max-width: 70%; 
  height: 470px;
  width: 350px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
}

.card h2 {
  font-size: 0.5em;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.underline {
  height: 4px;
  width: 50px;
  margin: 8px auto 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f80202 15%, #f8d302 50%, #5eff00c4 100%);
  background-size: 200% 100%;
  background-position: left;
  transition: background-position 0.4s ease;
}

.card:hover .underline {
  background-position: right;
}

.card p {
  font-size: 0.9em;
  padding: 0 5px 15px;
}

.card-wrapper {
  position: relative;
}

.card-wrapper:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 5%;
  right: -10px;
  height: 85%;
  width: 2px;
  background: linear-gradient(to bottom, red, blue);
  transform: rotate(5deg);
  z-index: 0;
}

/* O NÁS */
.onas-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(to right, #0f172a 55%, #88211e 100%);
  gap: 20px;
  flex-wrap: wrap;
}

.onas-text {
  max-width: 100%;
  text-align: center;
}

.onas-text h2 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #facc15;
}

.onas-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px 0;
}

.onas-text li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  font-size: 0.95em;
  line-height: 1.5;
  color: #e2e8f0;
}

.onas-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22ee33;
}

.onas-bottom {
  margin-top: 10px;
  font-style: italic;
  color: #94a3b8;
}

.onas-image {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 20px auto 0 auto;
}

.onas-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* KONTAKT */
.contact-section {
  padding: 30px 15px;
  background: #f8f9fa;
  font-family: sans-serif;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.8em;
  color: black;
}

.contact-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.contact-map {
  flex: 1 1 100%;
  min-height: 250px;
}

.contact-info {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95em;
  line-height: 1.6;
  color: black;
}

.contact-info a {
  color: #0056b3;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  background-color: #1a1a1a;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
  font-size: 0.85em;
  text-align: center;
  gap: 10px;
}

.footer a {
  color: #00b4d8;
  text-decoration: none;
  margin-left: 5px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p1 {
  color: #3a3939;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 100%;
  text-align: center;
}

/* VIDEO */
.video-sekce {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: linear-gradient(to right, #0f172a 55%, #88211e 100%);
}

.video-kontejner {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-kontejner video {
  display: block;
  width: 100%;
  height: 30%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2em;
  text-align: center;
}

.video-napis {
  color: black;
  background-color: white;
  border-radius: 15px;
}

/* =============================================================== MOBILNÍ REZPONZIVITA (do 575px) ================================================ */
@media only screen and (max-width: 575px) {
  body {
    padding-top: 50px;
  }

  .navbar-content {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px;
    background-color: #ff0000;
  }

  .hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger-button span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-button.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-button.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-button.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    color: white;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid #555;
    font-size: 0.9em;
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .main_body {
    padding-top: 50px;
  }

  .text_uprosdred {
    font-size: 1.6em;
    padding: 15px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }

  .card {
    max-width: 95%;
  }

  .card-wrapper:not(:last-child)::after {
    display: none;
  }

  .card img {
    max-height: 140px;
    margin-bottom: 10px;
  }

  .card h2 {
    font-size: 1.1em;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 0.85em;
    padding: 0 5px 10px;
  }

  .onas-section {
    flex-direction: column;
    padding: 20px 15px;
    text-align: center;
  }

  .onas-text h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .onas-text li {
    font-size: 0.9em;
    padding-left: 15px;
  }

  .onas-text li::before {
    font-size: 0.8em;
    left: -2px;
  }

  .onas-image {
    max-width: 100%;
    margin-top: 20px;
  }

  .contact-section h2 {
    font-size: 1.6em;
    margin-bottom: 10px;
  }

  .contact-container {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .contact-info {
    font-size: 0.9em;
  }

  .footer {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    font-size: 0.8em;
  }

  .video-sekce {
    height: auto;
  }

  .video-overlay {
    font-size: 1em;
  }
}

/* =============================================================== TABLET STYLY (576px - 991px) ================================================ */
@media only screen and (min-width: 576px) and (max-width: 991px) {
  body {
    padding-top: 30px;
  }

  .navbar-content {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background-color: #ff0000;
  }

  .hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger-button span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-button.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-button.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-button.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    color: white;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid #555;
    font-size: 0.9em;
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }
  .main_body {
    padding-top: 60px;
  }

  .text_uprosdred {
    font-size: 2.2em;
    padding: 25px;
  }

  .cards {
    gap: 30px;
    padding: 25px;
  }

  .card {
    max-width: 45%;
  }

  .card-wrapper:not(:last-child)::after {
    right: -15px;
  }

  .card img {
    max-height: 150px;
    margin-bottom: 15px;
  }

  .card h2 {
    font-size: 1.2em;
  }

  .card p {
    font-size: 0.9em;
    padding: 0 10px;
  }

  .onas-section {
    padding: 30px 20px;
  }

  .onas-text h2 {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .onas-text li {
    font-size: 1em;
  }

  .onas-image {
    max-width: 100%;
  }

  .contact-container {
    gap: 30px;
  }

  .contact-map {
    flex: 1 1 100%;
    min-height: 300px;
  }

  .contact-info {
    font-size: 0.95em;
  }

  .footer {
    padding: 15px 20px;
    font-size: 0.85em;
  }

  .video-sekce {
    height: auto;
  }

  .video-overlay {
    font-size: 1.2em;
  }

  .mobile-nav {
    display: flex;
  }

  .navbar-content {
    display: none;
  }
}

/* =============================================================== DESKTOP STYLY (992px a více) ================================================ */
@media only screen and (min-width: 992px) {
  body {
    padding-top: 20px;
  }

  .navbar-content {
    display: flex;
  }

  .navbar-content a {
    font-size: 0.9em;
    padding: 6px 0;
  }

  .text_uprosdred {
    font-size: 2.5em;
    padding: 30px;
    margin-top: 0;
  }
   /*---------------------------------------------------------------KARTY-------------------------------------------------------*/
  .cards {
    gap: 20px;
    padding: 40px;
    height: auto;
    width: 95%;
    display: flex; /* Enable flexbox for centering */
    justify-content: center; /* Center the cards horizontally */
    align-items: center; /* Vertically align items if needed */
    flex-wrap: wrap;
  }

  .card {
     max-width: 32%;
  }

  .card-wrapper:not(:last-child)::after {
    right: -20px;
  }

  .card img {
    max-height: 180px;
    margin-bottom: 20px;
  }

  .card h2 {
    font-size: 1.15em;
  }

  .card p {
    font-size: 0.95em;
    padding: 0 15px 20px;
  }

  .onas-section {
    flex-direction: row;
    padding: 50px 30px;
    gap: 40px;
    text-align: left;
  }

  .onas-text {
    max-width: 45%;
  }

  .onas-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
  }

  .onas-text ul {
    margin-bottom: 0;
  }

  .onas-text li {
    font-size: 1em;
    padding-left: 20px;
  }

  .onas-image {
    max-width: 45%;
  }

  .contact-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 30px;
    gap: 30px;
  }

  .contact-map {
    flex: 1;
    min-height: 350px;
    order: 1; /* Mapa vpravo na desktopu */
  }

  .contact-info {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    max-width: 250px;
    align-items: flex-start; /* Zarovnání textu doleva na desktopu */
    order: 2; /* Text vlevo na desktopu */
    text-align: left; /* Obnovení zarovnání textu na desktopu */
  }

  .contact-info h3 {
    font-size: 1.5em; /* Větší písmo pro nadpis na desktopu */
    margin-bottom: 0.5em;
  }

  .contact-info p {
    margin-bottom: 0.5em;
  }

  .contact-info a {
    color: #0056b3;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 30px;
    text-align: left;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1 1 auto;
    text-align: center;
  }

  .video-sekce {
    height: 200px;
    width: 500px;
  }

  .video-overlay {
    font-size: 1.5em;
    padding-bottom: -5px;
  }

  .mobile-nav {
    display: none;
  }
}
