@charset "utf-8";

.p-header {
  width: 100%;
  height: 111px;
  background: #fff;
  position: fixed;
  z-index: 10;

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

.p-header__inner {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 10px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  @media (width < 1120px) {
    padding: 0 20px;
  }
}

.p-header__logo {
  width: 100%;
  max-width: 357px;
  flex: 1 1 auto;
  min-width: 0;

  @media (width < 1120px) {
    max-width: 220px;
  }

  img {
    width: 100%;
    height: 100%;
    aspect-ratio: 357 / 31;
    object-fit: contain;
  }
}

.p-header__container {
  margin-right: 73px;
  display: flex;
  align-items: center;
  gap: 33px;
  flex-shrink: 0;

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

.p-header__nav {
  margin-top: 10px;
  display: flex;
  gap: 19px;
}

.p-header__nav-link a {
  color: var(--color-blue);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: clamp(11px, calc(14vw / 13.66), 14px);

  @media (width < 1120px) {
    font-size: 14px;
  }
}

.p-header__nav-link a:hover {
  opacity: 0.7;
}

.p-header__grid {
  display: grid;
  grid-template-columns: 145fr 115fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 4px 5px;
  flex-shrink: 0;
}

.p-header-time,
.p-header-tel,
.p-header-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.p-header-time {
  grid-area: 1 / 1 / 2 / 3;
  border: 1px solid #9dbbdb;
  border-radius: 2px;
  padding: 0px 36px 0 10px;
  justify-content: start;
  gap: 22px;
}

.p-header-time__list {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-blue);
  font-size: 10px;
  line-height: 3.3;
  letter-spacing: 0.05em;
}

.p-header-time__head {
  background: #e1eaf2;
  border-radius: 2px;
  padding: 0 6px;
  line-height: 1.8;
}

.p-header-time__text {
}

.p-header-tel {
  grid-area: 2 / 1 / 3 / 2;
  background: #015fab;
  border-radius: 2px;
  gap: 4px;

  p {
    font-family: var(--font-lato);
    letter-spacing: 0.08em;
    color: #ffffff;
  }

  img {
    width: 16.5px;
    aspect-ratio: 1;
    object-fit: contain;
  }
}

.p-header-tel:hover {
  background: #003e70;
}

.p-header-contact {
  grid-area: 2 / 2 / 3 / 3;
  background: #4badff;
  border-radius: 2px;
  gap: 4px;

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

  img {
    width: 14px;
    height: 11px;
    object-fit: contain;
  }
}

.p-header-contact:hover {
  background: #1c87e1;
}

.p-header-btn {
  position: fixed;
  top: 27px;
  right: 27px;
  width: 68px;
  height: 68px;
  border: 1px solid #9dbbdb;
  border-radius: 2px;
  cursor: pointer;
  z-index: 30;

  @media (width < 1120px) {
    top: 12px;
    right: 20px;
    width: 58px;
    height: 58px;
  }
}

.p-header-btn.is-open {
  .p-header-btn__bar div:first-of-type {
    transform: translateY(5px) rotate(-30deg);
  }

  .p-header-btn__bar div:last-of-type {
    transform: translateY(-6px) rotate(30deg);
  }
}

.p-header-btn__bar {
  width: 30px;
  height: 12px;
  position: relative;
  margin: 21px auto 0;

  @media (width < 1120px) {
    margin: 16px auto 0;
  }

  div {
    position: absolute;
    display: block;
    background: #0060aa;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
}

.p-header-btn__bar div:first-of-type {
  top: 0;
}

.p-header-btn__bar div:last-of-type {
  bottom: 0;
}

.p-header-btn__text {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  line-height: 2.5;
  text-align: center;
  text-transform: uppercase;
}

.p-drawer {
  position: fixed;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  top: 0px;
  right: -400px;
  overflow: auto;
  transition: all 0.3s ease;
  opacity: 0;
  background: #fff;
  z-index: 20;
}

.gjs-dashed *[data-highlightable] .p-drawer {
  right: 0;
  opacity: 1;
  top: 111px;
}

.p-drawer.is-show {
  opacity: 1;
  right: 0;
}

.p-drawer__inner {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
