header {
  position: fixed;
  width: 100%;
  height: 6.75rem;
  top: 0;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  -webkit-box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  z-index: 4;
}

header .logo {
  /* ODCHYLKA OD DE: tam je box 15.75 × 4.6rem.
     Logo je anglická varianta z logomanuálu DZD 2026 (sekce 1.6, "PART OF
     NIBE GROUP"). Manuál předepisuje ochrannou zónu ve výšce písmene D,
     což je 140 z 300 px výšky lockupu, tedy 0.467 × výška.
     Hlavička má 6.75rem, takže musí platit H + 2 × 0.467H ≤ 6.75 → H ≤ 3.49rem.
     Německá verze má logo větší a zónu tím porušuje.
     Poměr stran 3.790 odpovídá souboru, aby ho `contain` nezmenšil. */
  width: 12.89rem;
  height: 3.4rem;
  background-image: url("../images/dzd-logo.png?v=20260923");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

.nav > * {
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 110%;
  height: 3.25rem;
  margin-left: 3.4rem;
  position: relative;
  padding-top: 1rem;
}

.nav > *:hover {
  color: var(--black);
  text-decoration: none;
}

.nav > *:hover::after {
  content: "";
  position: absolute;
  width: 2.25em;
  height: 0.5rem;
  left: 0;
  bottom: 0;
  background-color: var(--red);
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
}

.hamburger {
  width: 2rem;
  height: 1.45rem;
  position: relative;
  display: none;
  /* reset <button> */
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu.mobile {
  position: fixed;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  left: 0;
  top: -100%;
  -webkit-transition: 0.75s ease-in-out;
  transition: 0.75s ease-in-out;
  background-color: var(--light);
  -webkit-box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.menu.mobile > * {
  display: block;
  font-size: 1.25rem;
  line-height: 1.5rem;
  padding-left: calc(50% - 12.5rem);
  padding-right: calc(50% - 12.5rem);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  position: relative;
  text-transform: uppercase;
}

.menu.mobile > *::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  left: 0;
  bottom: 0;
  background-color: var(--white);
}

.showmenu .menu.mobile {
  bottom: auto;
  top: 6.75rem;
}

footer {
  background-color: var(--red);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

footer .middle p {
  text-align: center;
  font-size: 1.15rem;
  line-height: 145%;
}
@media screen and (max-width: 768px) {
  footer .middle p {
    font-size: 0.9rem;
  }
}

footer .middle > p:nth-of-type(2) {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

footer .middle p.legal {
  margin-top: 1.75rem;
  font-size: 1rem;
  opacity: 0.85;
}
footer .legal a {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hamburger > div {
    width: 100%;
    height: 2px;
    background-color: var(--black);
    position: absolute;
    left: 0;
    -webkit-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
  }
  .hamburger > div:nth-of-type(1) {
    top: 0;
  }
  .hamburger > div:nth-of-type(2),
  .hamburger > div:nth-of-type(3) {
    top: calc(50% - 1px);
  }
  .hamburger > div:nth-of-type(4) {
    bottom: 0;
  }
  .showmenu .hamburger > div:nth-of-type(1),
  .showmenu .hamburger > div:nth-of-type(4) {
    width: 0;
    left: 50%;
  }
  .showmenu .hamburger > div:nth-of-type(2) {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .showmenu .hamburger > div:nth-of-type(3) {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  header .logo {
    /* stejný poměr 3.790 jako v desktopové verzi, ať se box rovná obrázku */
    width: 12rem;
    height: 3.17rem;
  }
}
