.header {
  position: sticky;
  z-index: 50;
  top: 16px;
}

.header--fixed .header__wrap {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: url("../img/header-bg.webp") center/cover repeat;
  background-color: rgba(28, 26, 46, 0.4);
  backdrop-filter: blur(20px);
  webkit-backdrop-filter: blur(20px);
  border-radius: 600px;
  padding: 12px 28px;
  color: #fff;
  transition: box-shadow 0.3s;
}

.header__logo1 {
  max-width: 268px;
  width: 100%;
}

.header__logo1-img2 {
  display: none;
}

.header__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  gap: 8px;
  margin-right: 32px;
}

.header__tel-icon {
  display: flex;
  flex-shrink: 0;
}

.header__tel-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.header__link {
  font-size: 20px;
  font-weight: 600;
  margin-left: auto;
  margin-right: 32px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration 0.3s;
}

.toggle {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.toggle__line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 4px;
  right: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 300px;
}

.toggle__line::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #fff;
  border-radius: 300px;
}

.toggle__line::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #fff;
  border-radius: 300px;
}

.headerpop {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-left: 15px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.headerpop.active {
  visibility: visible;
  opacity: 1;
  pointer-events: initial;
}

.headerpop__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.headerpop__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 565px;
  width: 100%;
  margin-left: auto;
  background-color: #fff;
  padding: 64px 56px;
  height: 100%;
  overflow: auto;
}

.headerpop__wrap .soc1 {
  margin-top: auto;
  margin-bottom: 32px;
}

.headerpop__close {
  position: absolute;
  top: 64px;
  right: 56px;
  display: flex;
  cursor: pointer;
}

.headerpop__close svg {
  width: 40px;
  height: 40px;
  fill: #1C1A2E;
  transition: fill 0.3s;
}

.headerpop__logo1 {
  display: block;
  max-width: 270px;
  width: 100%;
  margin-bottom: 80px;
}

.headerpop__logo1 img {
  display: block;
}

.headerpop__nav {
  margin-bottom: 30px;
}

.headerpop__menu li {
  margin-bottom: 32px;
}

.headerpop__menu li:last-child {
  margin-bottom: 0;
}

.headerpop__menu li a {
  display: inline-block;
  font-size: 22px;
  font-weight: 600;
  transition: color 0.3s;
}

.headerpop__tel1-wrap {
  margin-bottom: 30px;
}

.headerpop__tel1 {
  font-weight: 600;
  font-size: 28px;
}

.headerpop__link {
  display: inline-block;
  font-weight: 600;
  font-size: 22px;
  color: #a84c24;
  text-decoration: underline;
  text-decoration-color: transparent;
}

@media (max-width: 1200px) {
  .header__tel {
    order: 1;
    margin-right: 28px;
  }

  .header__tel-text {
    display: none;
  }

  .header__tel-icon {
    width: 24px;
    height: 24px;
    background: url("../img/tel3-white.svg") center/contain no-repeat;
  }

  .header__tel-icon svg {
    display: none;
  }

  .header__link {
    margin-left: auto;
    margin-right: auto;
  }

  .toggle {
    order: 2;
  }
}

@media (max-width: 750px) {
  .header {
    top: 0;
    background-color: #f5efe5;
  }

  .header {
    padding: 21px 0;
    top: 0;
  }

  .header--fixed .header__wrap {
    box-shadow: none;
  }

  .header--fixed {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  .header__wrap {
    padding: 0;
    background: none;
    border-radius: 0;
    backdrop-filter: blur(0);
    webkit-backdrop-filter: blur(0);
  }

  .header__logo1 {
    max-width: 150px;
  }

  .header__logo1-img1 {
    display: none;
  }

  .header__logo1-img2 {
    display: block;
  }

  .header__tel {
    margin-left: auto;
    margin-right: 16px;
  }

  .header__tel-icon {
    background-image: url("../img/tel3.svg");
  }

  .header__link {
    display: none;
    background: linear-gradient(98.45deg, #AF361E 25.04%, #7E2716 98.8%);
    box-shadow: 0 4px 44px rgba(0, 0, 0, 0.12);
    border-radius: 300px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
  }

  .toggle {
    width: 24px;
    height: 24px;
  }

  .toggle__line {
    left: 3px;
    right: 3px;
    height: 2px;
    background-color: #000;
  }

  .toggle__line::after {
    top: -5px;
    height: 2px;
    background-color: #000;
  }

  .toggle__line::before {
    bottom: -5px;
    height: 2px;
    background-color: #000;
  }

  .headerpop .soc1-item__link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .headerpop .soc1-item__link svg {
    width: 24px;
    height: 24px;
  }

  .headerpop__wrap {
    max-width: 218px;
    padding: 42px 24px;
    padding-top: 60px;
  }

  .headerpop__wrap .soc1 {
    margin-bottom: 24px;
  }

  .headerpop__close {
    top: 15px;
    right: 24px;
  }

  .headerpop__close svg {
    width: 24px;
    height: 24px;
  }

  .headerpop__logo1 {
    margin-bottom: 82px;
  }

  .headerpop__menu li {
    margin-bottom: 28px;
  }

  .headerpop__menu li a {
    font-size: 16px;
  }

  .headerpop__tel1-wrap {
    margin-bottom: 24px;
  }

  .headerpop__tel1 {
    font-size: 18px;
  }

  .headerpop__link {
    font-size: 16px;
  }
}

@media (hover: hover) {
  .header__link:hover {
    text-decoration-color: #fff;
  }

  .headerpop__close:hover svg {
    fill: #af361e;
  }

  .headerpop__menu li a:hover {
    color: #a84c24;
  }

  .headerpop__link:hover {
    text-decoration-color: #a84c24;
  }
}