/* ----------- ZÁKLAD ----------- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f4f4f4;
  color: #333;
  font-size: 15px;
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* ----------- HLAVIČKA ----------- */
header {
  text-align: center;
  background: #0a1723;
  color: white;
  padding: 30px 0;
}

header img {
  max-width: 280px;
  height: auto;
}

/* ----------- SEKCIÁ ----------- */
section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ----------- NAVIGÁCIA ----------- */
.menu-container {
  width: 100%;
  background: #294868;
}

.menu-container nav {
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px;
}

.menu-container nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.menu-container nav ul li a {
  display: block;
  background: #162a3f;
  padding: 10px 16px;
  color: #fff;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.3s;
}

.menu-container nav ul li a:hover {
  background: #448cd7;
}

#order {
  background: #ba2f2f;
}

#order:hover {
  background: #1aaf58;
}

/* ----------- JAZYKOVÉ MENU ----------- */
/* --- ĽAVÁ ČASŤ (jazykové menu) --- */
.menu-left {
  flex: 0;
}
.language-dropdown {
  position: relative;
  display: inline-block;
}
.lang-btn {
  background-color: #34495e;
  color: white;
  font-weight: bold;
  border: none;
  padding: 3px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.lang-btn:hover {
  background-color: #22313f;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2c3e50;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 10;
}
.dropdown-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}
.dropdown-content a:hover {
  background-color: #34495e;
}
.language-dropdown:hover .dropdown-content {
  display: block;
}

/* ----------- SLUŽBY ----------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.service-card img {
  width: 100%;
  border-radius: 8px;
}

.service-card h3 {
  margin: 15px 0 10px;
  color: #34495e;
}

.service-card .desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.3s;
  font-size: 0.95rem;
  color: #555;
}

.service-card.active .desc {
  max-height: 200px;
  margin-top: 10px;
}

/* ----------- FORMULÁR ----------- */
form {
  background: white;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

button:hover {
  background: #c0392b;
}

.gdpr-suhlas label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
}

.gdpr-suhlas input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2c3e50;
}

.success-message {
  display: none; /* dôležité! */
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  font-weight: bold;
  animation: fadeIn 0.6s ease-in-out;
}

/* ----------- FOOTER ----------- */
footer {
  text-align: center;
  background: #2c3e50;
  color: white;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: white;
}

footer a:hover {
  text-decoration: underline;
}

/* ----------- RESPONSIVE DIZAJN ----------- */

/* TABLETY */
@media (max-width: 992px) {
  section {
    margin: 20px;
    padding: 15px;
  }

  header img {
    max-width: 150px;
  }

  .menu-container nav {
    flex-direction: row;
    gap: 10px;
  }

  .menu-container nav ul {
    flex-direction: row;
  }
}

/* MOBILY */
@media (max-width: 600px) {
  header {
    padding: 15px 10px;
  }

  header img {
    max-width: 130px;
  }

  .menu-container nav ul li a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  form {
    padding: 20px;
  }

  h2 {
    font-size: 1.3rem;
  }

  button {
    font-size: 1rem;
  }
}


/* ----------- HAMBURGER MENU ----------- */

.hamburger {
  display: none;
  font-size: 28px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* ŠTANDARDNÉ MENU (desktop) */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

/* --- MOBILE MENU --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin: 10px auto;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    width: 100%;
    background: #294868;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none; /* zablokuje kliky, keď je zatvorené */
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* aktivuje kliky, keď je otvorené */
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #162a3f;
    border-bottom: 1px solid #1e2f45;
    transition: background 0.3s;
  }

  .nav-links li a:hover {
    background: #448cd7;
  }
}


/* ----------- TLAČIDLO SCROLL NAHOR ----------- */
#scrollTopBtn {
  display: none; /* skryté na začiatku */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;

  width: 50px;
  height: 50px;
  background-color: rgba(44, 62, 80, 0.3); /* priehľadné pozadie */
  color: white;
  font-size: 24px;

  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;

  display: flex;
  align-items: center;   /* vertikálne centrovanie */
  justify-content: center; /* horizontálne centrovanie */
}

#scrollTopBtn:hover {
  background-color: rgba(44, 62, 80, 0.6);
  transform: translateY(-3px);
}

#scrollTopBtn:active {
  transform: translateY(0);
}

/* plynulé zobrazovanie */
#scrollTopBtn {
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}