.p-header {
  position: fixed;
  top: 30px;
  left: 31px;
  right: 20px;
  height: 48px;
  background: transparent;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.p-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.p-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0;
}

.p-header__logo {
  flex: 0 0 auto;
  display: block;
  width: 233px;
  height: 48px;
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.p-header__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.35));
  transition: filter 0.3s ease;
}

.p-header.is-scrolled .p-header__logo img {
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.35));
}

.p-header__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 920px;
  height: 45px;
  margin-left: auto;
  padding: 0 24px;
  background: #ffffff;
  border-radius: 6px;
  transition: background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.p-header.is-scrolled .p-header__nav {
  background: #ffffff;
}

.p-header__navItem {
  flex: 0 0 auto;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.p-header__navItem p {
  position: relative;
  padding: 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.p-header__navItem p::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.p-header__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 42px;
  padding: 0 18px;
  background: linear-gradient(90deg, #53acdf 0%, #0083ce 100%);
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-header__logo:hover {
    transform: scale(1.03);
  }
  .p-header__navItem:hover {
    transform: scale(1.03);
  }
  .p-header__navItem:hover p::after {
    transform: translateX(-50%) scaleX(1);
  }
  .p-header__cta:hover {
    opacity: 0.85;
    transform: scale(1.02);
  }
}
.p-header__cta::before {
  content: "";
  width: 16px;
  height: 12px;
  display: block;
  flex: 0 0 auto;
  background: #fff;
  -webkit-mask-image: url("../images/icon_com-mail.svg");
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../images/icon_com-mail.svg");
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.p-header__toggle {
  display: none;
  width: 36px;
  height: 28px;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.p-header__toggleBar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, background 0.3s ease;
}

.p-header.is-scrolled .p-header__toggleBar,
.p-header.is-menu-open .p-header__toggleBar {
  background: var(--color-text-sub);
}

.p-header__toggleBar:nth-child(1) {
  top: 4px;
}

.p-header__toggleBar:nth-child(2) {
  top: 13px;
}

.p-header__toggleBar:nth-child(3) {
  top: 22px;
}

.p-header.is-menu-open .p-header__toggleBar:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
}

.p-header.is-menu-open .p-header__toggleBar:nth-child(2) {
  opacity: 0;
}

.p-header.is-menu-open .p-header__toggleBar:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
}

.p-header__drawer {
  display: none;
}

@media (max-width: 1420px) {
  .p-header {
    top: 24px;
    left: 20px;
    right: 20px;
  }
  .p-header__inner {
    padding: 0 16px;
    gap: 12px;
  }
  .p-header__nav,
  .p-header__inner > .p-header__cta {
    display: none;
  }
  .p-header__toggle {
    display: block;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(7, 39, 96, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 24px rgba(7, 39, 96, 0.18);
    backdrop-filter: blur(10px);
  }
  .p-header__toggleBar {
    left: 10px;
    width: calc(100% - 20px);
    background: #ffffff;
  }
  .p-header__toggleBar:nth-child(1) {
    top: 12px;
  }
  .p-header__toggleBar:nth-child(2) {
    top: 21px;
  }
  .p-header__toggleBar:nth-child(3) {
    top: 30px;
  }
  .p-header.is-scrolled .p-header__toggle,
  .p-header.is-menu-open .p-header__toggle {
    background: rgba(7, 39, 96, 0.56);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 24px rgba(7, 39, 96, 0.24);
  }
  .p-header.is-scrolled .p-header__toggleBar,
  .p-header.is-menu-open .p-header__toggleBar {
    background: #ffffff;
  }
  .p-header.is-menu-open .p-header__toggleBar:nth-child(1) {
    top: 21px;
  }
  .p-header.is-menu-open .p-header__toggleBar:nth-child(3) {
    top: 21px;
  }
  .p-header__drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(7, 20, 47, 0.26);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .p-header__drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease;
  }
  .p-header__drawerBody {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 78vw);
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 104px 28px 40px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(101%);
    transition: transform 0.35s ease;
  }
  .p-header__drawer.is-open .p-header__drawerBody {
    transform: translateX(0);
  }
  .p-header__drawerList {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
  }
  .p-header__drawerLink {
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .p-header__drawerLink p {
    position: relative;
    display: inline-block;
    color: inherit;
  }
  .p-header__drawerLink p::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
  }
  .p-header__drawerBody .p-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 264px);
    min-width: 0;
    height: 48px;
    padding: 20px;
    background: linear-gradient(90deg, #53acdf 0%, #0083ce 100%);
    border-radius: 999px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .p-header__drawerBody .p-header__cta::before {
    content: "";
    width: 16px;
    height: 12px;
    display: block;
    flex: 0 0 auto;
    background: #fff;
    -webkit-mask-image: url("../images/icon_com-mail.svg");
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("../images/icon_com-mail.svg");
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
  }
}
@media (max-width: 1420px) and (hover: hover) and (pointer: fine) {
  .p-header__drawerLink:hover {
    transform: scale(1.05);
  }
  .p-header__drawerLink:hover p::after {
    transform: translateX(-50%) scaleX(1);
  }
  .p-header__drawerBody .p-header__cta:hover {
    opacity: 0.88;
    transform: scale(1.02);
  }
}
@media (max-width: 1420px) and (max-height: 680px) {
  .p-header__drawerBody {
    justify-content: flex-start;
    gap: 28px;
    padding-top: 80px;
    padding-bottom: 32px;
  }
  .p-header__drawerList {
    gap: 20px;
  }
}
@media screen and (max-width: 600px) {
  .p-header__inner {
    padding: 0;
  }
}
