* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: DiplomaScript;
  src: url("../static/fonts/DiplomaScript.otf") format("opentype");
}

html {
  min-height: 100%;
  position: relative;
}

body {
  color: white;
  font-family: Montserrat;
  background-color: #2d2928;
  overflow-x: hidden;
  width: 100vw;
  height: 100%;
}
input,
textarea {
  font-family: Montserrat;
  font-size: 15px;
}

a {
  color: white;
  text-decoration: none;
}

#error404 {
  text-align: center;
  height: 60vh;
  width: 90vw;
  margin-left: auto;
  margin-right: auto;
  h1 {
    margin-top: 100px;
    margin-bottom: 10px;
  }
  p {
    margin-bottom: 30px;
  }
  a {
    padding: 7px 16px;
    border: solid 1px #bf9045;
    border-radius: 20px;
  }
  a:hover {
    background-color: #bf9045;
  }
}

header {
  background-color: rgb(17, 17, 17);
  top: 0;
  position: sticky;
  z-index: 100000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 90px;
  #head-logo {
    margin: 20px;
    margin-left: 2.5%;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    img {
      width: 90px;
    }
    #head-lang {
      display: flex;
      flex-direction: column;
      align-items: center;
      img {
        display: none;
      }
      p {
        cursor: pointer;
        padding: 2px;
      }
      div {
        width: 20px;
        height: 1px;
        background-color: #878787;
      }
    }
  }
  nav {
    margin-left: 10px;
    width: min(100%, 1200px);
    display: flex;
    flex-direction: row;
    align-items: center;
    a {
      font-size: 16px;
      font-weight: bold;
      margin-left: auto;
      margin-right: auto;
      padding: 7px 14px;
      border-radius: 20px;
      cursor: pointer;
      white-space: nowrap;
    }
    a:hover {
      background-color: #bf9045;
    }
    #head-bron {
      display: absolute;
      z-index: 5;
      height: 37px;
      width: fit-content;
      min-width: 130px;
      margin-left: auto;
      margin-right: auto;
      cursor: default;
      border-radius: 20px;
      a {
        display: none;
        font-weight: normal;
        white-space: wrap;
        padding: 7px 7px;
        border-radius: 10px;
        cursor: pointer;
      }
      div {
        width: calc(100% - 14px);
        padding: 7px 7px;
        border-radius: 20px;
        padding-bottom: 10px;
      }
      h3 {
        font-size: 16px;
        width: fit-content;
        padding: 1px 7px;
        padding-bottom: 10px;
        cursor: default;
        margin-left: auto;
        margin-right: auto;
      }
      div:hover {
        background-color: #bf9045;
        a {
          display: flex;
          flex-direction: column;
        }
        a:hover {
          background-color: #aa7d3c;
        }
      }
    }
  }
  #head-numb {
    margin-left: auto;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    h2 {
      font-size: 18px;
      white-space: nowrap;
      margin-right: -3px;
    }
    img {
      width: 30px;
      cursor: pointer;
    }
    a:nth-child(1) img:hover {
      content: url("/wp-content/themes/wp_rest/static/header/is-h.svg");
    }
    a:nth-child(2) img:hover {
      content: url("/wp-content/themes/wp_rest/static/header/ph-h.svg");
    }
    a:nth-child(3) img:hover {
      content: url("/wp-content/themes/wp_rest/static/header/ws-h.svg");
    }
    a:nth-child(4) img:hover {
      content: url("/wp-content/themes/wp_rest/static/header/tg-h.svg");
    }
    a:nth-child(3) img {
      margin-bottom: -3px;
    }
    #head-numb-arrow {
      display: none;
    }
    div {
      a {
        margin-left: 3px;
      }
      width: fit-content;
      margin-left: auto;
    }
  }
  #order {
    margin-left: 15px;
    margin-right: 2.5%;
    position: relative;
    cursor: pointer;
    img {
      width: 55px;
    }
    h2 {
      color: #bf9045;
      position: absolute;
      top: 9px;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
    }
  }
  .head-burger {
    position: relative;
    cursor: pointer;
    z-index: 11;
    margin-right: 2.5%;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    div {
      margin-top: 3px;
      margin-bottom: 3px;
      width: 100%;
      height: 6px;
      border-radius: 8px;
      background-color: #bf9045;
      transition: 0.5s;
    }
    transition: 0.5s;
  }
  .head-burger-act {
    margin-top: 8px;
    div:nth-child(1) {
      margin: 0;
      width: 70%;
      margin-left: -16px;
      rotate: -45deg;
    }
    div:nth-child(2) {
      margin: 0;
      margin-top: -6px;
      width: 70%;
      margin-right: -16px;
      rotate: 45deg;
    }
    div:nth-child(3) {
      opacity: 0;
    }
  }
  .head-phone {
    position: absolute;
    z-index: 10;
    width: calc(100% - 80px);
    background-color: rgba(17, 17, 17, 0.9);
    display: flex;
    padding: 20px 40px;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - 180px);
    top: 85px;
    transition: 0.3s;
    overflow-y: scroll;
    a {
      width: fit-content;
    }
    h2 {
      cursor: pointer;
      padding: 10px 20px;
      border-radius: 20px;
    }
    h2:hover {
      background-color: #bf9045;
    }
    .adap-menu {
      display: flex;
      border-radius: 20px;
      cursor: pointer;
      img {
        filter: invert(1);
        width: 50px;
      }
    }
    .adap-menu:hover {
      background-color: #bf9045;
    }
    .adap-menu-return {
      img {
        rotate: 180deg;
      }
    }
    .head-phone-bron {
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      height: 30px;
      gap: 5px;
      padding: 10px 20px;
      border-radius: 20px;
      width: 260px;
      h2 {
        padding: 0;
        margin-bottom: 5px;
        cursor: default;
      }
      h2:hover {
        cursor: pointer;
        background-color: transparent;
      }
      p {
        margin-top: -200px;
        transition: 0.3s;
        cursor: pointer;
        padding: 10px 10px;
        border-radius: 10px;
        margin-left: -10px;
      }
      img {
        filter: invert(1);
        position: absolute;
        top: 0;
        left: 240px;
        width: 50px;
        rotate: 90deg;
        transition: 0.3s;
      }
      transition: 0.3s;
    }
    .head-phone-bron:hover {
      cursor: pointer;
      background-color: #bf9045;
    }
    .head-phone-bron-act {
      height: 160px;
      a p {
        margin-top: 0;
      }
      img {
        rotate: -90deg;
      }
      p:hover {
        background-color: #aa7d3c;
      }
    }
    #head-phone-menu {
      display: none;
    }
  }
  .opened-head-phone-menu {
    a,
    .head-phone-bron,
    #adap-menu-1 {
      display: none;
    }
    #head-phone-menu {
      display: block;
      a {
        display: block;
        margin-bottom: 10px;
      }
      #last {
        margin-bottom: 100px;
      }
      .adap-menu {
        display: flex;
      }
    }
    #phone-lang {
      display: flex;
      a {
        display: block;
      }
    }
  }
  #phone-lang {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #4c3b36;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    top: 20px;
    right: 20px;
  }
  .head-burger {
    display: none;
  }
  #head-phone {
    opacity: 0;
    display: none;
  }
}
.scrolled {
  background-color: rgba(17, 17, 17, 1);
}

@keyframes waves {
  0%,
  40% {
    opacity: 1;
    transform: scale(0);
  }
  60% {
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}
#phone,
#call {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 100%;
  background-color: #ce1659;
  z-index: 10;
  scale: 1.2;
  img {
    filter: invert(1);
    width: 40px;
    margin-top: 7px;
  }
  div {
    position: absolute;
    z-index: -3;
    animation: waves 6s linear infinite;
    background-color: #ce1659;
    width: 40px;
    margin-top: 5px;
    height: 40px;
    border-radius: 100%;
    transform: scale(1);
  }
}
#phone {
  background-color: #008f46;
  div {
    background-color: #008f46;
  }
}

header::after {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -1;
  content: url("/wp-content/themes/wp_rest/static/header/is-h.svg");
  content: url("/wp-content/themes/wp_rest/static/header/ph-h.svg");
  content: url("/wp-content/themes/wp_rest/static/header/ws-h.svg");
  content: url("/wp-content/themes/wp_rest/static/header/tg-h.svg");
}

@media only screen and (min-width: 800px) {
  header {
    #head-logo {
      margin-top: 20px;
      margin-bottom: 20px;
      gap: 10px;
      img {
        width: 80px;
      }
      #head-lang {
        font-size: 15px;
      }
    }
    nav {
      margin-left: auto;
      margin-right: auto;
      width: 60%;
      max-width: 900px;
      min-width: 740px;
      #head-bron {
        min-width: 150px;
        h3 {
          margin-top: 1px;
          font-size: 15px;
        }
        a {
          font-size: 15px;
        }
      }
    }
    #head-numb {
      h2 {
        font-size: 15px;
        margin-right: -2px;
      }
      img {
        width: 25px;
      }
    }
  }
}

@media only screen and (max-width: 1100px) {
  header {
    width: 100vw;
    nav {
      display: none;
    }
    #head-logo {
      margin-left: 10px;
      margin-right: 10px;
      #head-lang {
        display: none;
      }
      img {
        width: 70px;
        margin-left: auto;
        margin-right: auto;
      }
    }
    #head-numb {
      margin: 0;
      margin-right: 10px;
      flex-direction: row;
      background-color: #f4f4f6;
      color: black;
      padding: 4px 14px;
      border-radius: 14px;
      cursor: pointer;
      h2 {
        font-size: 14px;
        margin-top: 4px;
        color: black;
      }
      img {
        display: none;
      }
      #head-numb-arrow {
        display: block;
        margin-right: -10px;
        width: 25px;
      }
    }
    #order {
      margin-left: auto;
      margin-right: 0;
    }
    .head-burger {
      display: flex;
      margin-left: 10px;
      margin-right: 10px;
    }
  }
  #phone,
  #call {
    display: none;
  }
}

@media only screen and (max-width: 412px) {
  header {
    #order {
        margin-left: 0px;
        h2 {
            font-size: 18px;
            top:9px;
        }
        img {
            width: 46px;
        }
    }
    #head-logo {
      img {
        width: 50px;
      }
    }
    #head-numb {
      h2 {
        font-size: 12px;
      }
      div {
        width: 0px;
      }

    }
  }
}
