* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*font-size: 16px;*/
  font-family: "Poppins", sans-serif;
}
:root {
  --hero-height: 100vh;
  /* --page-width: 97vw; */
  --body-shadow-clr: rgba(0, 0, 0, 0.2);
  --side-margin: 4em;
  --menu-height: 1em;
  --carousel-width: 80vw;
  --carousel-height: calc(var(--carousel-width) * var(--golden));
  --carousel-item-count: 10;

  /*colors*/
  --clr-primary: hsl(196, 88%, 66%);
  --clr-secondary: hsl(217, 60%, 47%);
  --clr-tertiary: #e5e2ee;
  --clr-dark: rgb(27, 29, 27);
  --clr-accent: #e7209e;
  --glass-background: rgb(153, 202, 235);
  /*background opacity*/
  --clr-dark-background: rgba(27, 29, 27, 0.2);
  /*image ration*/
  --golden: 1.6180339887498948482;

  --s: clamp(113px, 65px + 10vw, 280px); /* size  */
  --m: 4px; /* margin */
  --f: calc(1.732 * var(--s) + 4 * var(--m) - 1px);
}
@media screen and (min-width: 1921px) {
  :root{
    --hero-height: 1080;
  }  
}

/*extra small screens*/
@media screen and (max-width: 300px) {
  nav li:nth-child(4) {
    display: none;
  }
}
/*mobile first*/
header {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100vw;
  height: max-content;
  /* background-color: rgba(var(--glass-background), 0.1); */
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(6px);
  z-index: 10000;
  box-shadow: 0px 3px 11px -8px black;
}
@media screen and (min-width: 1025px) {
  header {
    inset: 0 0 auto 0;
    max-width: 100%;
  }
}
/* header::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(1em);
  z-index: 9;
  -webkit-backdrop-filter: blur(1em);
} */

nav {
  position: relative;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: max-content;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-block: 1rem;
  /* margin-bottom: 2rem; */
  /* top: 0.5em; */
  gap: 0.5em;
  font-size: clamp(0.8rem, calc(12px + 0.1vw), 1.125rem);
  /* color: var(--clr-tertiary); */
  color: black;
  font-weight: 600;
  padding-inline: calc((100vw - var(--page-width)) / 2) 1rem;
  /* padding-block: 0 0.4em; */
  overflow-y: visible;
  z-index: 11;
}
@media screen and (min-width: 1025px) {
  nav {
    margin-bottom: 0;
    align-items: center;
    font-size: clamp(1.1rem, 12px + 0.7vw, 4rem);
    padding-block: max(1rem, calc(var(--hero-height) / 6 - 4vw) / 2);
  }
}
@media screen and (min-width: 1920px) {
  nav {
    padding-inline: 2rem;
    padding-block: max(1rem, calc(var(--hero-height) / 6 - 77px) / 2);
  }
}
nav li {
  flex-grow: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  /* padding: 0.15em; */
  line-height: 4rem;
}
@media screen and (max-width: 1024px) {
  nav li {
    line-height: 1rem;
  }
}
nav li:first-child {
  min-width: 2em;
}
nav li:first-child a:not(.mobile-menu a) {
  display: flex;
}
nav a {
  text-decoration: none;
  /* padding: 0.5em; */
  border-radius: 0.75em;
  /* color: var(--clr-tertiary); */
  color: black;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main-logo {
  position: relative;
  display: inline;
  height: 100%;
  max-height: 4vw;
  z-index: 1000 !important;
}
@media screen and (max-width: 1024px) {
  .main-logo {
    height: 2rem;
    width: 2rem;
  }
}
@media screen and (min-width: 1920px) {
  .main-logo {
    max-height: 77px !important;
  }
}
.main-logo:focus-visible {
  outline: none;
}
.menu-svg img {
  height: 2em;
  display: inline-flex;
}
@media screen and (max-width: 399px){
  .menu-svg img {
    height: 1.6em;
  }
}
.menu-text {
  font-size: 0.6em;
  text-align: center;
}
/*menu for mobile devices*/
.mobile-menu {
  position: absolute;
  top: auto;
  /*hodnota pro pokus rozbalovátek*/
  /* top:-20rem; */
  /**/
  width: 100%;
  left: 0;
  bottom: var(--menu-height);
  /* backdrop-filter: blur(1em); */
  background-color: white;
  font-size: 1.125em;
  padding-block: 1em;
  padding-inline: 0.5em;
  /* overflow: scroll; */
  display: none;
  /* grid-template-columns: 1fr 5fr 1fr;
  grid-template-rows: repeat(13, 1fr); */
  transition: display 500ms ease-in-out;
  /* -webkit-backdrop-filter: blur(1em); */
}
/* .mobile-menu p:nth-child(1) {
  grid-column: 1/3;
  grid-row: 1/2;
}
.mobile-menu p:nth-child(2) {
  grid-column: 1/3;
  grid-row: 2/3;
}
.mobile-menu p:nth-child(3) {
  grid-column: 1/3;
  grid-row: 3/4;
}
.mobile-menu p:nth-child(4) {
  grid-column: 2/4;
  grid-row: 4/5;
}
.mobile-menu p:nth-child(5) {
  grid-column: 2/4;
  grid-row: 5/6;
}
.mobile-menu p:nth-child(6) {
  grid-column: 2/4;
  grid-row: 6/7;
}
.mobile-menu p:nth-child(7) {
  grid-column: 2/4;
  grid-row: 7/8;
}
.mobile-menu p:nth-child(8) {
  grid-column: 2/4;
  grid-row: 8/9;
}
.mobile-menu p:nth-child(9) {
  grid-column: 2/4;
  grid-row: 9/10;
}
.mobile-menu p:nth-child(10) {
  grid-column: 2/4;
  grid-row: 10/11;
}
.mobile-menu p:nth-child(11) {
  grid-column: 2/4;
  grid-row: 11/12;
}
.mobile-menu p:nth-child(12) {
  grid-column: 2/4;
  grid-row: 12/13;
}
.mobile-menu p:nth-child(13) {
  grid-column: 2/4;
  grid-row: 13/14;
}
.mobile-menu p:nth-child(14) {
  grid-column: 1/3;
  grid-row: 14/15;
} */
.mobile-menu .lang-choice-mobile {
  flex-direction: row;
  width: 100%;
  margin-top: 2rem;
  gap: 2rem;
  height: max-content;
}
.mobile-menu a {
  padding-inline-start: 0;
  display: block;
}
.mobile-menu .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60vw;
  gap: 3rem;
  margin: auto;
  padding-top: 0;
}
.mobile-menu .social-links > * i {
  scale: 2;
}


/* ////////////////////////////// */
.lang-choice {
  /* position: absolute; */
  /* top: 0;
  right: 0; */
  height: var(--menu-height);
  width: 3em;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-basis: 0%;
  justify-content: center;
  align-items: center;
}
.lang-choice img {
  height: 1em;
  aspect-ratio: 3/2;
  object-fit: cover;
  box-shadow: 0px 0px 10px -5px black;
}
/* .lang-choice-desktop {
  display: none;
} */
.lang-choice-desktop {
  padding-block: 0rem;
  height: fit-content;
  gap: 1.5rem;
}
@media screen and (max-height: 480px) and (orientation: landscape) {
  nav {
    max-width: 98vw;
  }
  nav li:nth-child(5) {
    /* flex-grow: 0; */
    display: flex;
    -webkit-box-pack: start;-ms-flex-pack: start;justify-content: flex-start;
  }
  nav li:nth-child(6) {
    display: none;
  }
  /* .mobile-menu {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(6, 1fr);
    top: 0;
  }
  .mobile-menu p {
    justify-self: center;
    align-self: center;
  }
  .mobile-menu p:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .mobile-menu p:nth-child(2) {
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .mobile-menu p:nth-child(3) {
    grid-column: 2/3;
    grid-row: 1/2;
  }
  .mobile-menu p:nth-child(4) {
    grid-column: 2/3;
    grid-row: 2/3;
  }
  .mobile-menu p:nth-child(5) {
    grid-column: 3/4;
    grid-row: 2/3;
  }
  .mobile-menu p:nth-child(6) {
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .mobile-menu p:nth-child(7) {
    grid-column: 3/4;
    grid-row: 3/4;
  }
  .mobile-menu p:nth-child(8) {
    grid-column: 2/3;
    grid-row: 4/5;
  }
  .mobile-menu p:nth-child(9) {
    grid-column: 3/4;
    grid-row: 4/5;
  }
  .mobile-menu p:nth-child(10) {
    grid-column: 2/3;
    grid-row: 5/6;
  }
  .mobile-menu p:nth-child(11) {
    grid-column: 3/4;
    grid-row: 5/6;
  }
  .mobile-menu p:nth-child(12) {
    grid-column: 2/3;
    grid-row: 6/7;
  }
  .mobile-menu p:nth-child(13) {
    grid-column: 3/4;
    grid-row: 6/7;
  }
  .mobile-menu p:nth-child(14) {
    grid-column: 3/4;
    grid-row: 1/2;
  } */
  .mobile-menu .lang-choice-mobile {
    grid-column: 1/2;
    grid-row: 4/7;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .lang-choice-mobile img {
    height: 2em;
  }
  nav {
    margin-inline: calc((100vw - var(--page-width)) / 2);
  }
  nav a {
    flex-direction: row;
  }
  .menu-text {
    margin-inline-start: 1em;
  }
  .main-logo {
    width: 2em;
  }
}
/*tablet header - menu*/
@media screen and (min-width: 481px) and (max-width: 768px) {
  :root {
    --page-width: 98vw;
  }
  /* header {
    inset: auto 0 0 0;
    padding-bottom: 0.5em;
  } */
  nav {
    align-items: center;
    top: 0.5em;
  }
  /* nav a {
    padding-top: 1em;
  } */
  nav li {
    flex-direction: column;
    gap: 1em;
    /* display: block; */
  }
  nav li:first-child {
    top: 0;
  }
  nav li:nth-child(6) {
    flex-grow: 10;
    display: flex;
    justify-content: flex-end;
  }
  .main-logo {
    height: max-content;
    max-height: clamp(2em, 12px + 1.35vw, 6em);
    width: 3em;
  }
  .menu-svg img {
    height: 2em;
    display: inline-flex;
  }
  .menu-text {
    display: inline-flex;
  }
  /* .mobile-menu {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(6, 1fr);
    top: 0;
  }
  .mobile-menu p {
    justify-self: center;
    align-self: center;
  }
  .mobile-menu p:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .mobile-menu p:nth-child(2) {
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .mobile-menu p:nth-child(3) {
    grid-column: 2/3;
    grid-row: 1/2;
  }
  .mobile-menu p:nth-child(4) {
    grid-column: 2/3;
    grid-row: 2/3;
  }
  .mobile-menu p:nth-child(5) {
    grid-column: 3/4;
    grid-row: 2/3;
  }
  .mobile-menu p:nth-child(6) {
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .mobile-menu p:nth-child(7) {
    grid-column: 3/4;
    grid-row: 3/4;
  }
  .mobile-menu p:nth-child(8) {
    grid-column: 2/3;
    grid-row: 4/5;
  }
  .mobile-menu p:nth-child(9) {
    grid-column: 3/4;
    grid-row: 4/5;
  }
  .mobile-menu p:nth-child(10) {
    grid-column: 2/3;
    grid-row: 5/6;
  }
  .mobile-menu p:nth-child(11) {
    grid-column: 3/4;
    grid-row: 5/6;
  }
  .mobile-menu p:nth-child(12) {
    grid-column: 2/3;
    grid-row: 6/7;
  }
  .mobile-menu p:nth-child(13) {
    grid-column: 3/4;
    grid-row: 6/7;
  }
  .mobile-menu p:nth-child(14) {
    grid-column: 3/4;
    grid-row: 1/2;
  } */
  .mobile-menu .lang-choice-mobile {
    grid-column: 1/2;
    grid-row: 4/7;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
}

/*desktop header - menu*/
@media screen and (min-width: 1025px) {
  /* :root {
    --page-width: 90vw;
  } */
  /* header {
    inset: 0 0 auto 0;
  } */

  nav li {
    display: block;
  }
  nav li:first-child {
    min-width: none;
    position: relative;
    /* top: 1em; */
  }
  /* nav li:nth-child(5) {
    flex-grow: 10;
    text-align: left;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
            justify-content: flex-start;
  } */
  nav li:nth-child(5) {
    flex-grow: 15;
    display: flex;
    -webkit-box-pack: end;-ms-flex-pack: end;justify-content: flex-end;
  }
  nav a {
    /* padding-top: 0.5em; */
    flex-direction: row;
    height: 100%;
  }
  nav a:hover :not(:first-child),
  nav a:focus-visible :not(:first-child) {
    color: #1d8f88;
  }
  .main-logo {
    max-height: 4vw;
  }

  .menu-svg {
    display: none;
  }
  .menu-text {
    display: inline;
  }

  .main-logo:hover,
  .main-logo:focus-visible {
    border: var(--clr-secondary);
  }
  .menu-item-about {
    position: relative;
  }
  .mobile-menu {
    display: none;
  }
  .menu-roll {
    position: absolute;
    height: 9em;
    width: min-content;
    font-size: clamp(1.1rem, 12px + 0.5vw, 3rem);
    font-weight: 400;
    /* top: calc(-1 * var(--menu-height)); */
    top: -2em;
    left: 1.5em;
    width: 30em;
    padding: 0.5em;
    border-radius: 0.4em;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(auto-fit, 1fr);
    /* background-color: rgba(155, 203, 235, 0.1); */
    background-color: white;
    backdrop-filter: blur(1em);
    transition: transform 126ms cubic-bezier(1, -0.01, 1, 0),
      display 126ms 63ms cubic-bezier(0, 1, 0.01, 1);
    -webkit-backdrop-filter: blur(1em);
  }

  .menu-roll-short {
    grid-template-columns: 1fr !important;
    width: 15em !important;
    height: 5em !important;
    top: 0 !important;
  }
  nav > li:not(:nth-child(5)):hover {
    transform: scale(1.05);
  }
  nav > li:nth-child(6):hover {
    transform: scale(1);
  }

  .menu-item-about:hover .menu-roll,
  .menu-item-about:focus-visible .menu-roll {
    transform: translateY(50%);
    display: grid;
    transition: opacity 126ms cubic-bezier(1, -0.01, 1, 0),
      transform 126ms 63ms cubic-bezier(0, 1, 0.01, 1);
  }
  .menu-roll > * {
    line-height: 2rem;
  }
  .menu-roll a {
    padding: 0;
    display: block;
  }
  .menu-roll a:hover {
    color: #1d8f88;
  }
  .social-links {
    display: flex;
    /* height: 1em; */
    max-width: 50%;
    align-items: center;
    /* justify-content: center; */
    gap: 0.75rem;
    /*justify-content: center;*/
    /* overflow: hidden; */
  }
  .social-links a {
    /* margin-inline: 1em; */
    display: flex;
    align-items: center;
  }
  .social-links i {
    font-size: 24px;
  }
  .menu-roll .social-links i{
    transform: translateY(-3.5px);
  }
  .apply-btn,
  .click-btn {
    display: block;
  }

  .lang-choice-desktop {
    display: flex;
  }
  .lang-choice-desktop > * {
    cursor: pointer;
  }
}



/*checkbox menu stuff*/
/* Label */
.ac-container {
  max-width: 400px;
  /* border: 1px solid #ccc; */
  border-top: none;
}
.ac-container label {
  height: 30px;
  line-height: 1.8;
  font-size: 20px;
  display: block;
  cursor: pointer;
  color: black;
  /* background: #eee; */
  /* border-top: 1px solid #ccc; */
  text-align: center;
}
.ac-container label a{
  padding-top: 0 !important;
}
.ac-container {
  width: 100%;
  margin: 10px auto;
}
.ac-container label:hover {
  background: #b6ede5;
}
.ac-container input {
  display: none;
}

/* Contents */
.ac-container article {
  overflow: hidden;
  height: 0;
  transition: 0.6s;
}
.ac-container article p {
  padding: 20px;
  font-size: 12px;
  color: black;
  line-height: 1.5;
}
.ac-container article ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1rem;
}
.ac-container input:checked ~ article {
  height: max-content;
  border-top: 1px solid #ccc;
}
@media screen and (max-width: 1024px) {
  .show-desktop {
    display: none;
  }
  .show-mobile {
    display: block;
  }
}
@media screen and (min-width: 1025px) {
  .show-desktop {
    display: block;
  }
  .show-mobile {
    display: none;
  }
}