@charset "utf-8";

.p-side {
  position: fixed;
  top: 0;
  left: 0;
  width: 249px;
  height: 100vh;
  border-right: 1px solid #d3d3d3;
  z-index: 3;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;

  @media (width < 1120px) {
    width: 180px;
  }

  @media (width < 768px) {
    width: 300px;
    left: auto;
    right: -300px;
    z-index: 40;
    background: #fafaf2;
  }
}

.p-side.is-show {
  right: 0;
}

.p-side__inner {
  flex: 1 1 auto;
  padding: 20px 16px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  @media (width < 768px) {
    flex: 0 1 auto;
    justify-content: start;
    gap: 60px;
  }
}

.p-side__menu {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-left: 16px;
}

.p-side__link a {
  line-height: 1.429;
  letter-spacing: 0.05em;
}

.p-side__link a:hover {
  opacity: 0.7;
}

.p-side__contact {
  display: block;
  width: 100%;
  height: 70px;
  background: transparent linear-gradient(90deg, #9bc168 0%, #65b6b7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  @media (width < 768px) {
    margin: 0 20px;
    border-radius: 8px;
    width: calc(100% - 40px);
  }

  img {
    width: 20px;
    margin-left: -10px;
  }

  p {
    font-size: 15px;
    letter-spacing: 0.05em;
    color: #ffffff;
  }
}

.p-side__contact:hover {
  filter: hue-rotate(20deg);
}

.p-side-btn {
  position: fixed;
  display: block;
  width: 40px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid var(--color-green);
  top: 20px;
  right: 16px;
  z-index: 4;
  background: #fff;
  cursor: pointer;

  @media (width < 768px) {
    z-index: 50;
  }
}

.p-side-btn.is-open {
  .p-side-btn__bar:first-of-type {
    top: 65%;
    transform: rotate(30deg) translateX(-60%);
  }

  .p-side-btn__bar:last-of-type {
    top: 36%;
    transform: rotate(-30deg) translateX(-60%);
  }
}

.p-side-btn__bar {
  position: absolute;
  width: 14px;
  height: 1px;
  background: var(--color-green);
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.p-side-btn__bar:first-of-type {
  top: 44%;
}

.p-side-btn__bar:last-of-type {
  top: 56%;
}
