.p-header {
  position: fixed;
  top: clamp(16px, 1.4641288433vw, 24px);
  left: 0;
  right: 0;
  z-index: 10;
  padding-inline: clamp(16px, 1.4641288433vw, 24px);
}

html {
  scroll-padding-top: clamp(94.4px, 8.6383601757vw, 141.6px);
}

@media screen and (min-width: 1367px) {
  .p-header {
    padding-inline: clamp(20px, 3.61vw - 29.31px, 48px);
  }
}
.p-header__inner {
  display: flex;
  align-items: center;
  height: clamp(62.4px, 5.710102489vw, 93.6px);
  padding: 0 clamp(6.4px, 0.5856515373vw, 9.6px) 0 clamp(12px, 1.0980966325vw, 18px);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.p-header__logo {
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-header__logo:hover {
    transform: scale(1.05);
  }
}

.p-header__logoImage {
  display: block;
  width: 337px;
  max-width: 100%;
  height: auto;
}

.p-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(496.8px, 45.4612005857vw, 745.2px);
}

.p-header__navPanel {
  flex-shrink: 0;
  margin-left: auto;
}

.p-header__navItem {
  position: relative;
}
.p-header__navItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-header__navItem:hover::after {
    transform: scaleX(1);
  }
}

.p-header__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: clamp(6.4px, 0.5856515373vw, 9.6px);
  width: clamp(126.4px, 11.5666178624vw, 189.6px);
  height: clamp(37.6px, 3.4407027818vw, 56.4px);
  margin-left: clamp(32px, 2.9282576867vw, 48px);
  padding-left: clamp(20px, 1.8301610542vw, 30px);
  border-radius: 5px;
  background: #0072be;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-header__cta:hover {
    background: #fff;
    box-shadow: inset 0 0 0 1px #0072be;
  }
  .p-header__cta:hover::before {
    background: #0072be;
  }
}

.p-header__menuButton {
  display: none;
}

.p-header__navPanel .p-header__cta {
  display: none;
}

.p-header__cta::before {
  content: "";
  flex-shrink: 0;
  width: clamp(10.4px, 0.9516837482vw, 15.6px);
  height: clamp(8px, 0.7320644217vw, 12px);
  background: #fff;
  transition: background-color 0.3s ease;
  -webkit-mask-image: url("../images/mail.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../images/mail.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

@media screen and (max-width: 1093px) {
  .p-header {
    top: clamp(8px, 0.7320644217vw, 12px);
    padding-inline: clamp(8px, 0.7320644217vw, 12px);
  }
  html {
    scroll-padding-top: clamp(86.4px, 7.906295754vw, 129.6px);
  }
  .p-header__inner {
    position: relative;
    height: clamp(62.4px, 5.710102489vw, 93.6px);
    padding: 0 clamp(12px, 1.0980966325vw, 18px);
  }
  .p-header__menuButton {
    flex-shrink: 0;
    position: relative;
    display: flex;
    width: clamp(37.6px, 3.4407027818vw, 56.4px);
    height: clamp(37.6px, 3.4407027818vw, 56.4px);
    margin-left: auto;
  }
  .p-header__menuIcon,
  .p-header__menuIcon::before,
  .p-header__menuIcon::after {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    margin-left: -11px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease, top 0.2s ease;
  }
  .p-header__menuIcon {
    top: 50%;
    margin-top: -1px;
  }
  .p-header__menuIcon::before,
  .p-header__menuIcon::after {
    content: "";
  }
  .p-header__menuIcon::before {
    top: -7px;
  }
  .p-header__menuIcon::after {
    top: 7px;
  }
  .p-header__navPanel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 1;
    margin-left: 0;
    padding: clamp(9.6px, 0.878477306vw, 14.4px);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .p-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: clamp(3.2px, 0.2928257687vw, 4.8px);
  }
  .p-header__navItem {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(33.6px, 3.074670571vw, 50.4px);
    padding: clamp(4.8px, 0.439238653vw, 7.2px);
    border-radius: 4px;
    background: #f3f8fb;
    text-align: center;
  }
  .p-header.is-menuReady .p-header__navPanel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }
  .p-header.is-menuOpen .p-header__navPanel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .p-header.is-menuOpen .p-header__menuIcon {
    background: transparent;
  }
  .p-header.is-menuOpen .p-header__menuIcon::before {
    top: 0;
    transform: rotate(45deg);
  }
  .p-header.is-menuOpen .p-header__menuIcon::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .p-header__cta {
    display: none;
  }
  .p-header__navPanel .p-header__cta {
    display: flex;
    width: clamp(126.4px, 11.5666178624vw, 189.6px);
    margin-top: clamp(9.6px, 0.878477306vw, 14.4px);
    margin-inline: auto;
    justify-content: center;
  }
}
@media screen and (max-width: 767px) {
  .p-header__inner {
    display: grid;
    height: auto;
    min-height: clamp(62.4px, 5.710102489vw, 93.6px);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 0.7320644217vw, 12px) clamp(6.4px, 0.5856515373vw, 9.6px);
    padding: clamp(8px, 0.7320644217vw, 12px);
  }
  .p-header__logo {
    grid-column: 1;
    min-width: 0;
  }
  .p-header__logoImage {
    width: 251px;
    max-width: 100%;
    height: auto;
  }
  .p-header__menuButton {
    grid-column: 2;
    margin-left: 0;
  }
  .p-header__nav {
    grid-template-columns: 1fr;
  }
}
