* {
  box-sizing: border-box;
}

.bold {
  font-weight: bold;
}

.container {
  max-width: 1920px;
  line-height: 1.5;
  margin: auto;
  font-size: 1.25em;
  scroll-behavior: smooth;
  background-color: rgba(254, 249, 225, 1);
  background-image: url("../bg-img/barbershop-seamless-pattern_7450-454.avif");
  font-family: "Montserrat", serif;
}

.bg {
  background-color: rgba(229, 208, 172, 0.98);
  padding: 4vw;
  border-radius: 2em;
  margin: 2em 4vw;
}

.header {
  display: grid;
  gap: 3em;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 1fr;
  grid-template-areas: "header-leva-strana header-prava-strana";
}

.header-leva-strana {
  grid-area: header-leva-strana;
}

.header-prava-strana {
  grid-area: header-prava-strana;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-prava-strana .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5em;
  font-family: "Roboto Condensed", sans-serif;
}

.header-prava-strana .nav li a {
  text-decoration: none;
  font-size: 1.5em;
  color: black;
  font-weight: bold;
  border-bottom: 2px solid black;
}

.nav-logo {
  width: 500px;
  height: auto;
  margin: 2em;
  /* fígl na logo, nejlepší by bylo udělat z něho svg*/
  filter: invert(1) brightness(0) saturate(100%) hue-rotate(180deg);
}

/*POPIS POD NAVIGACI*/

section,
.footer {
  margin: 2em 0;
}

.popis .popis-text {
  display: flex;
  gap: 2em;
  align-items: center;
  padding: 5em 0;
}

.popis .popis-text .popis-text-leva-strana {
  flex: 1;
  font-size: 1.25em;
}

.popis .popis-text .popis-text-prava-strana {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.popis .popis-text .popis-text-prava-strana img {
  width: 100%;
  border-radius: 1em;
}

.nadpis-h1 {
  font-size: 2.5em;
  font-weight: bold;
  font-family: "Roboto Condensed", sans-serif;
}

.nadpis-h2 {
  font-size: 1.5em;
  font-weight: bold;
  font-family: "Roboto Condensed", sans-serif;
}

/*CENIK*/

.cenik {
  border: 2px solid black;
  border-radius: 2em;
  padding: 1em;
  box-shadow: 2px 1px 50px 0px rgba(0, 0, 0, 0.75);
  background-color: rgba(249, 226, 186, 0.98);
  margin-bottom: 5em;
}

.cenik a:nth-child(1) {
  text-align: right;
}

.nadpis-barber,
.nadpis-damske-kadernictvi,
.nadpis-kontakt {
  font-size: 2em;
  font-weight: bold;
  font-family: "Roboto Condensed", sans-serif;
  padding-bottom: 0.5em;
}

.cenik .cenik-barber,
.cenik .cenik-damske-kadernictvi {
  width: 100%;
}

.cenik .cenik-barber tr th,
.cenik .cenik-damske-kadernictvi tr th {
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid black;
}

.cenik .cenik-barber tr th:nth-child(2),
.cenik .cenik-damske-kadernictvi tr th:nth-child(2) {
  text-align: center;
}

.cenik .cenik-barber tr td:first-child,
.cenik .cenik-damske-kadernictvi tr td:first-child {
  width: 75%;
  text-align: left;
  padding: 1em;
}

.cenik .cenik-barber tr td:nth-child(2),
.cenik .cenik-damske-kadernictvi tr td:nth-child(2) {
  width: 25%;
  text-align: center;
  padding: 1em;
}

.cenik .cenik-barber tr,
.cenik .cenik-damske-kadernictvi tr {
  border-bottom: 1px solid black;
}

.cenik a {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 1em 0;
  text-decoration: none;
  color: black;
  border: 2px solid black;
  border-radius: 1em;
  font-weight: bold;
}

.button-align {
  text-align: right;
  padding-right: 2em;
}

/*KONTAKT*/

.footer {
  display: flex;
}

.footer .footer-leva-cast {
  flex: 1;
}

.footer .footer-prava-cast {
  flex: 1.5;
}

.nadpis-mensi {
  font-size: 1.5em;
  font-weight: bold;
  font-family: "Roboto Condensed", sans-serif;
}

.mapa {
  width: 100%;
  height: 100%;
  border-radius: 1em;
}

.icon {
  width: 50px;
  height: 50px;
}

.kontakt-icons-flex {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em 0;
  width: fit-content;
}

.icons-flexbox {
  display: flex;
  gap: 1em;
  flex-direction: row;
  align-items: center;
}

.kontakt-icons-flex a {
  text-decoration: none;
  color: black;
  font-size: 1em;
}

.nadpis-icon-flex {
  display: flex;
  gap: 1em;
  align-items: center;
}

.oteviraci-doba-hodiny p {
  padding: 0.25em 0;
}


.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;
}


.lightbox-img {
  max-width: 40vw;
  height: auto;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

.prev { left: 8%; }
.next { right: 8%; }

/*RESPONSIVE*/

@media (max-width: 1550px) {
  .header-prava-strana .nav {
    flex-direction: column;
    gap: 1em;
    align-items: end;
  }
  .header-prava-strana .nav li {
    text-align: right;
  }
  .nadpis-kontakt {
    padding-right: 1em;
  }
  .popis-text {
    flex-direction: column;
  }
  .nadpis-mensi {
    width: min-content;
  }
  .footer {
    flex-direction: column;
    gap: 5em;
  }
  .obsah-kontakt {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: space-between;
  }
  .kontakt-icons-flex {
    gap: 1em;
    justify-content: center;
  }
  .kontakt-barber,
  .kontakt-damske-kadernictvi,
  .oteviraci-doba {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: end;
  }
  .mapa {
    width: 100%;
    height: 50vh;
  }
  .popisek-img {
    width: 100%;
  }
}


@media (max-width: 1000px) {
  .header {
    display: flex;
    flex-direction: column;
  }
  .nav-logo {
    width: 400px;
    align-self: center;
  }
  .header-prava-strana {
    gap: 1em;
    justify-content: end;
    align-items: end;
  }
  .lightbox-img {
    max-width: 60vw;
  }
}
@media (max-width: 850px) {
  .kontakt-oteviraci-hodiny {
    display: none;
  }
}
@media (max-width: 525px) {
  .obsah-kontakt {
    flex-direction: column;
  }
  .nadpis-h2 {
    padding: 2em 0;
  }
  .bg {
    margin: 0;
    border-radius: 0;
    overflow-x: hidden;
  }
}

.warning-text{
  color:red;
  font-size: 0.75em;
}