.p-header {
  --header-height-scrolled: 88px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 133px;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.p-header.is-scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.p-header.is-scrolled .p-header__inner {
  padding-top: 12px;
}

.p-header.is-scrolled .p-header__logo {
  width: 64px;
}

.p-header.is-scrolled .p-header__cta {
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}

.p-header.is-scrolled .p-header__button {
  height: 40px;
}

.p-header__inner {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-top: 20px;
  padding-right: 21px;
  padding-left: 20px;
}

.p-header__logo {
  flex-shrink: 0;
  width: 81px;
}
@media (hover: hover) and (pointer: fine) {
  .p-header__logo:hover {
    transform: scale(1.05);
  }
}

.p-header__nav {
  display: flex;
  align-items: center;
  column-gap: 40px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: -68px;
  padding-top: 23px;
}

.p-header__navItem {
  display: inline-block;
  transform-origin: center;
  position: relative;
}
.p-header__navItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  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);
  }
}
@media (hover: hover) and (pointer: fine) {
  .p-header__navItem:hover {
    transform: scale(1.05);
  }
}

.p-header__cta {
  display: grid;
  gap: 10px;
  margin-left: auto;
  padding-top: 9px;
}

.p-header__toggle {
  position: relative;
  display: none;
  width: 47px;
  height: 47px;
  margin-left: auto;
  border-radius: 5px;
  background: #009142;
  cursor: pointer;
}

.p-header__toggleBar,
.p-header__toggleBar::before,
.p-header__toggleBar::after {
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.p-header__toggleBar {
  top: 50%;
  left: 50%;
  margin-top: -1px;
  margin-left: -11px;
}

.p-header__toggleBar::before,
.p-header__toggleBar::after {
  content: "";
  left: 0;
}

.p-header__toggleBar::before {
  top: -7px;
}

.p-header__toggleBar::after {
  top: 7px;
}

.p-header__toggle.is-open .p-header__toggleBar {
  background: transparent;
}
.p-header__toggle.is-open .p-header__toggleBar::before {
  top: 0;
  transform: rotate(45deg);
}
.p-header__toggle.is-open .p-header__toggleBar::after {
  top: 0;
  transform: rotate(-45deg);
}

.c-ctaButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 47px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.c-ctaButton::before {
  content: "";
  flex-shrink: 0;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.c-ctaButton--mail {
  background: #00a468;
}
.c-ctaButton--mail::before {
  width: 13px;
  height: 10px;
  -webkit-mask-image: url("../images/icon_com-mail-small.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../images/icon_com-mail-small.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
@media (hover: hover) and (pointer: fine) {
  .c-ctaButton--mail:hover {
    background: #fff;
    border-color: #00a468;
  }
  .c-ctaButton--mail:hover::before {
    background-color: #00a468;
  }
}

.c-ctaButton--entry {
  background: #6cb92b;
}
.c-ctaButton--entry::before {
  width: 13.39px;
  height: 20px;
  -webkit-mask-image: url("../images/icon_com-entry-small.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../images/icon_com-entry-small.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
@media (hover: hover) and (pointer: fine) {
  .c-ctaButton--entry:hover {
    background: #fff;
    border-color: #6cb92b;
  }
  .c-ctaButton--entry:hover::before {
    background-color: #6cb92b;
  }
}

.p-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 48px;
  overflow-y: auto;
  background: #ecf8f6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.p-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.p-drawer__inner {
  display: grid;
  gap: 22px;
  text-align: center;
}

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

.p-drawer__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

@media screen and (max-width: 1240px) {
  .p-header {
    height: 105px;
  }
  .p-header__nav,
  .p-header__cta {
    display: none;
  }
  .p-header__toggle {
    display: block;
    margin-top: 19px;
  }
}
@media screen and (max-width: 768px) {
  .p-header__inner {
    align-items: center;
    padding: 0 16px;
  }
  .p-header__logo {
    width: 58px;
  }
  .p-header__toggle {
    margin-top: 0;
  }
}
