/* ===== ZÁKLAD STRÁNKY ===== */

:root {
  --maxw: 75rem;
  --brand-blue: #1499db;
  --brand-blue-dark: #0d6aad;
}

body {
  margin: 0;
  background-color: #ffcc00;
  font-family: Arial, sans-serif;
}

.content {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
  background-color: white;
}

main {
  margin: 0 auto;
  padding: 0;
}

.gContent {
  width: 100%;
  margin: 0 auto;
}

.obsah {
  max-width: 1200px;
  margin: 0 auto;
}

.blok {
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.obsah ul {
  list-style: disc;
  text-align: left;
  max-width: 600px;
}

/* ===== HLAVNÍ 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Í OBRÁZEK ===== */

.uvod {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image: url("uvod.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: white;
  margin: 0 auto;
}

.uvodText {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffcc00;
  padding: 20px;
  border-radius: 20px;
  font-size: 36px;
  font-weight: bold;
  color: white;
}

/* ===== KONTAKTY V ÚVODU ===== */

.kontaktni-udaje {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.radek {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 6px 12px;
  width: 270px;
  max-width: 270px;
}

.radek input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
  background: transparent;
}

.radek .material-icons {
  cursor: pointer;
  margin-left: 8px;
  color: black;
  font-size: 20px;
}

/* ===== SLUŽBY ===== */

#sluzby {
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 0;
}

.sluzby-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #0d1b2a;
}

.sluzby-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.sluzby-text {
  text-align: left;
}

/* ===== TEXTOVÉ ODKAZY ===== */

.sluzby-link,
.sluzby-linka {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  text-align: right;
}

.sluzby-link a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
}

.sluzby-linka a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

.sluzby-sipka-sluzby {
  font-size: 28px;
  color: #1499db;
  transition: transform 0.3s ease;
}

.sluzby-link:hover .sluzby-sipka-sluzby,
.sluzby-linka:hover .sluzby-sipka-sluzby {
  transform: translateX(8px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  color: #004aad;
}

.text-link .arrow {
  transition: transform 0.2s ease;
}

.text-link:hover .arrow {
  transform: translateX(4px);
}

/* ===== AKTUÁLNĚ / NOVINKY ===== */

.aktualne-box {
  width: min(100% - 2rem, 1100px);
  margin: 34px auto;
  padding: 0;
}

.aktualne-inner {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 8px solid #ffcc00;
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.aktualne-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #111827;
  color: #ffcc00;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aktualne-inner h2 {
  margin: 0 0 12px;
  color: #0d1b2a;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.aktualne-text {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.65;
}

.aktualne-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.aktualne-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1499db;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.aktualne-buttons a:hover {
  background: #0d6aad;
  transform: translateY(-2px);
}

/* ===== KDE NÁS NAJDETE ===== */

.mapa-blok {
  background: url("mapa_pozadi.png") center / cover no-repeat;
  padding: 2rem;
  border-radius: 0;
  position: relative;
  color: white;
}

.mapa-blok::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mapa-blok * {
  position: relative;
  z-index: 1;
}

/* ===== GALERIE NA HLAVNÍ STRÁNCE ===== */

.galerie-index {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  overflow: hidden;
}

.galerie-index img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.galerie-index img:hover {
  transform: scale(1.05);
}

.galerie-index-arrow {
  display: none;
}

/* ===== ZVĚTŠENÍ FOTOGRAFIÍ ===== */

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.lightbox-slide {
  display: none;
  max-width: 80%;
  max-height: 80%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
  background-color: rgba(0, 0, 0, 0.3);
  user-select: none;
}

.prev {
  left: 5%;
}

.next {
  right: 5%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
  z-index: 1002;
}

/* ===== RECENZE ===== */

.recenze {
  text-align: center;
  padding: 60px 20px;
}

.recenze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.recenze-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.recenze-hvezdy {
  color: #f7b500;
  font-size: 22px;
  margin-bottom: 10px;
}

/* ===== SPOLUPRACUJÍCÍ FIRMY ===== */

.certifikaty-blok {
  background: #fff;
  padding: 64px 24px;
  text-align: center;
}

.certifikaty-blok h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b0b0c;
}

.certifikaty-blok::after {
  content: "Značky, kterým věříme a se kterými pracujeme.";
  display: block;
  margin: 0 auto 28px;
  max-width: 760px;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.5;
}

.certifikaty-grid {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.certifikat-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  height: 132px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.certifikat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.22);
  background: #f8fafc;
}

.certifikat-box img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) opacity(0.9);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.certifikat-box:hover img {
  filter: grayscale(0) contrast(1.05) opacity(1);
  transform: scale(1.02);
}

/* ===== 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;
}

/* ===== OZNÁMENÍ O ZKOPÍROVÁNÍ ===== */

.kopirovani-zprava {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

.kopirovani-zprava.show {
  opacity: 1;
}

/* ===== MOBILY A TABLETY ===== */

@media (max-width: 768px) {
  /* Menu */

  .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;
  }

  /* Úvod */

  .uvod {
    background-image: url("uvod-mobil.webp");
    aspect-ratio: auto;
    min-height: 420px;
    padding: 0;
    background-size: cover;
    background-position: center;
  }

  .uvodText {
    top: 7%;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    max-width: 78%;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .kontaktni-udaje {
    bottom: 8%;
    gap: 6px;
  }

  .radek {
    width: 230px !important;
    max-width: 220px !important;
    padding: 4px 8px !important;
  }

  .radek input {
    font-size: 0.82rem !important;
  }

  /* Galerie */

  .galerie-index {
    display: block;
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    margin: 18px auto 22px;
    box-sizing: border-box;
    touch-action: pan-y;
    user-select: none;
  }

  .galerie-index img {
    display: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .galerie-index img.active {
    display: block;
  }

  .galerie-index-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
  }

  .galerie-index-arrow-left {
    left: 10px;
  }

  .galerie-index-arrow-right {
    right: 10px;
  }

  .galerie-index-arrow:active {
    transform: translateY(-50%) scale(0.96);
  }

  .mapa-blok {
    margin-bottom: 18px;
  }

  /* Zvětšené fotografie */

  .lightbox-slide {
    max-width: 94%;
    max-height: 72vh;
  }

  .prev,
  .next {
    font-size: 2rem;
    padding: 8px;
  }

  .close {
    top: 14px;
    right: 18px;
    font-size: 30px;
  }
}

/* ===== NOVINKY NA MOBILU ===== */

@media (max-width: 640px) {
  .aktualne-inner {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .aktualne-buttons {
    flex-direction: column;
  }

  .aktualne-buttons a {
    width: 82%;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ===== 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;
  }

  .galerie-index-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .galerie-index-arrow-left {
    left: 8px;
  }

  .galerie-index-arrow-right {
    right: 8px;
  }
}