/* ===== ZÁKLAD STRÁNKY ===== */

:root {
  --maxw: 75rem;
}

body {
  margin: 0;
  background-color: #171513;
  font-family: Arial, sans-serif;
}

.content {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
  background-color: white;
}

main {
  margin: 0 auto;
  padding: 0;
}

/* ===== MENU ===== */

.menu-header {
  background-color: #fff;
  border-bottom: 6px solid #1499db;
  padding: 10px 0;
}

.menu-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu-logo {
  display: none;
}

.menu-list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

.menu-item {
  text-align: center;
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-link {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 10px;
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #e74c3c;
}

.menu-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon {
  transform: scale(1.2);
}

.menu-label {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ===== ÚVODNÍ BANNER ===== */

.uvodni-banner {
  position: relative;
  aspect-ratio: 16 / 6;
  background-image: url("sluzby_hlavni2_mensi.jpg");
  background-size: cover;
  background-position: center;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uvodni-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: 0;
}

.uvodni-banner-obsah {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.uvodni-banner-obsah h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.uvodni-banner-obsah p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.uvodni-banner-obsah h1,
.uvodni-banner-obsah p {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.uvodni-banner .sipka {
  font-size: 40px;
  color: #555;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ===== VYHLEDÁVÁNÍ SLUŽEB ===== */

.search-bar {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

.search-bar input:focus {
  border-color: #1499db;
  box-shadow: 0 0 8px rgba(20, 153, 219, 0.4);
}

.search-bar button {
  padding: 10px 15px;
  background: #1499db;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.search-bar button:hover {
  background: #0d6aad;
}

/* ===== TEXTOVÉ KARTY SLUŽEB ===== */

.service-box-text {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
}

.service-card-inner {
  padding: 30px 24px;
  text-align: center;
  width: 100%;
}

.service-card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}

.service-box-text h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
}

.service-box-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
}

.service-box-other {
  background: linear-gradient(
    135deg,
    #12344d 0%,
    #1a5d87 100%
  );
}

.service-box-addon {
  background: linear-gradient(
    135deg,
    #2a6f97 0%,
    #4da3d9 100%
  );
}

/* ===== VÝPIS SLUŽEB ===== */

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 96%;
  margin: 5px auto;
  gap: 20px;
}

.service-box {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  cursor: pointer;
}

.service-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.service-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.service-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.service-box:hover img {
  opacity: 0.9;
}

.service-box:hover .service-label {
  background: rgba(0, 0, 0, 0.8);
}

/* ===== PATIČKA ===== */

.footer-container {
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #333;
  color: white;
  text-align: center;
  border-radius: 0;
}

.footer-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.footer-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #555;
}

.footer-table td:first-child {
  text-align: right;
  font-weight: bold;
  width: 40%;
  padding-right: 20px;
}

.footer-table td:last-child {
  text-align: left;
  width: 60%;
  padding-left: 20px;
}

/* ===== MOBILNÍ MENU ===== */

@media (max-width: 768px) {
  .menu-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 6px;
  }

  .menu-logo img {
    height: 40px;
    width: auto;
  }

  .menu-header {
    padding: 8px 0;
  }

  .menu-wrapper {
    max-width: 100%;
    padding: 0 8px;
  }

  .menu-list {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    margin: 0;
  }

  .menu-item {
    width: 100%;
    transform: none !important;
  }

  .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .menu-link:hover {
    background: #f3f8ff;
    border-color: #1499db;
  }

  .menu-icon {
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    transform: none !important;
  }

  .menu-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    text-align: left;
    line-height: 1.2;
  }

  .menu-item:hover,
  .menu-item:hover .menu-icon {
    transform: none !important;
  }
}

/* ===== MALÉ MOBILY ===== */

@media (max-width: 430px) {
  .menu-link {
    padding: 10px 12px;
    gap: 10px;
  }

  .menu-icon {
    width: 20px;
    height: 20px;
  }

  .menu-label {
    font-size: 0.82rem;
  }
}