@charset "utf-8";

body.is-checked {
  overflow: hidden;
}

.header__logo {
  position: fixed;
  top: 15px;
  left: 20px;
  aspect-ratio: 93/95;
  width: 93px;
  height: auto;
  transition: opacity 0.3s;
  z-index: 50;
}
.header__logo:hover {
  opacity: 0.8;
}

.header__wrap {
  display: none;
}
@media screen and (min-width: 1000px) {
  .header__wrap {
    display: flex;
    gap: 90px;
    justify-content: center;
    position: absolute;
    right: 62px;
    top: 52px;
    z-index: 90;
  }
  .header__item {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .header__open {
    display: none; 
  }
  .header__logo {
  top: 20px;
  left: 40px;
}
}

.header__link {
  line-height: 1;
  font-size: 15px;
  font-weight: 500;

  letter-spacing: 0;
}
.header__link p {
    color: #F4F4F4;
  transition: color 0.3s;
}
.header__link:hover p{
  color: #A2841F;
}

.header__btn {
  padding: 12px 30px;
  border-radius: 20px;
  width: 165px;
  height: auto;
  background: #C42A1B;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: 33px;
}
.header__btn::before {
  content: "";
  background: url('../images/icon-mail-white.svg') center / contain no-repeat;
  width: 14px;
  height: 10px;
}
.header__btn p{
  color: #F4F4F4;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.header__btn:hover {
  opacity: 0.7;
}

.header__open {
  position: relative;
  width: 60px;
  height: 60px;
  cursor: pointer;
  background: #C42A1B;
  position: fixed;
  top: 9px;
  right: 10px;
  border-radius: 10px;
   z-index: 999999997;
  transition: opacity 0.3s;
}
.header__open.is-checked {
  z-index: 1000000000;
}

.header__bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s linear, top 0.3s linear;
}
.header__bar:nth-of-type(1){
    top: 17px;
}
.header__bar:nth-of-type(2){
    top: 24px;
}
.header__bar:nth-of-type(3){
    top: 31px;
}
.header__open.is-checked > .header__bar:nth-of-type(1) {
    top: 33px;
    transform: rotate(45deg) translateX(-50%);
    left: 43%;
}
.header__open.is-checked > .header__bar:nth-of-type(2) {
    display: none;
}
.header__open.is-checked > .header__bar:nth-of-type(3) {
    top: 16px;
    transform: rotate(-45deg) translateX(-50%);
    left: 43%;
}

.header__open-text {
  position: absolute;
  bottom: 8px;
  left: 52%;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  color: #fff;
  width: max-content;
}

.header__content {
  width: 100%;
  max-width: 400px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  padding: 100px 50px 80px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s linear;
  overflow: auto;
  z-index: 999999999;
}
.header__content.is-checked {
  opacity: 1;
  pointer-events: auto;
}

.header__content-menu {
  display: flex;
  flex-direction: column;
}

.header__content-link {
  font-size: 14px;
  padding-block: 17px;
  border-bottom: 1px dotted #EFF0EF;
  text-align: center;
}
.header__content-link:hover {
  background: #F8F8F8;
}
