.hr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 30px 50px 20px;
  border-bottom: 1px solid var(--hr-line, #dadada);
  background: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hr-header.is-over-hero {
  border-bottom-color: transparent;
  background: transparent;
}

.hr-header.is-over-hero .hr-wordmark,
.hr-header.is-over-hero .hr-wordmark__mark {
  color: #fff;
}

.hr-header.is-over-hero .hr-header__menu span {
  background: #fff;
}

.hr-header__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hr-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hr-ink, #232121);
  font-family: var(--hr-font);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.hr-wordmark__mark {
  color: var(--hr-pink, #f54a63);
  font-size: 38px;
  line-height: 0.8;
  letter-spacing: -0.15em;
}

.hr-wordmark__img,
.hr-wordmark img {
  width: auto;
  height: 36px;
  max-width: none;
}

/* Sticky / solid header: dark logo only */
.hr-wordmark__img--dark {
  display: block;
}

.hr-wordmark__img--light {
  display: none;
}

/* Transparent over hero: light logo only */
.hr-header.is-over-hero .hr-wordmark__img--dark {
  display: none;
}

.hr-header.is-over-hero .hr-wordmark__img--light {
  display: block;
}

.hr-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hr-header__menu {
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hr-header__menu span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 7px auto;
  background: var(--hr-ink, #232121);
  border-radius: 1px;
}

.hr-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.hr-nav[hidden] {
  display: none;
}

.hr-nav__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hr-nav__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 640px;
  max-width: calc(100vw - 40px);
  height: 95vh;
  max-height: 95vh;
  margin: 0 40px 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--hr-pink, #f54a63);
  color: var(--hr-ink, #232121);
  box-sizing: border-box;
  transform: translateX(48px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hr-nav.is-open .hr-nav__panel {
  transform: translateX(0);
  opacity: 1;
}

.hr-nav__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 20px 0;
  flex-shrink: 0;
}

.hr-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--hr-ink, #232121);
  cursor: pointer;
  box-sizing: border-box;
}

.hr-nav__close:hover,
.hr-nav__close:focus {
  background: #fff;
  outline: none;
}

.hr-nav__close svg {
  display: block;
  width: 13px;
  height: 13px;
}

.hr-nav__links {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 60px 40px 0;
  min-height: 0;
}

.hr-nav__bottom {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0;
  padding: 0 40px 30px;
}

.hr-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--hr-ink, #232121);
  font-family: var(--hr-font);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 40px;
  text-decoration: none;
  box-sizing: border-box;
}

.hr-nav__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: #ca2828;
  border: 0;
  padding: 0;
}

.hr-nav__link-icon {
  position: absolute;
  left: 25px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  width: 110px;
  margin-top: 0;
  opacity: 0;
  transform: translate(-30px, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.hr-nav__link-icon svg {
  display: block;
  width: 18px;
  height: 12px;
}

.hr-nav__link-text {
  display: inline-block;
  transition: transform 0.25s ease;
}

.hr-nav__link:hover,
.hr-nav__link:focus {
  background: var(--hr-ink, #232121);
  color: #fff;
  outline: none;
}

.hr-nav__link:hover .hr-nav__link-icon,
.hr-nav__link:focus .hr-nav__link-icon {
  opacity: 1;
  transform: translate(0, -50%);
}

.hr-nav__link:hover .hr-nav__link-text,
.hr-nav__link:focus .hr-nav__link-text {
  transform: translateX(90px);
}

.hr-nav__register {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 20px 0;
  border-radius: 6px;
  background: #fff;
  color: var(--hr-ink, #232121);
  font-family: var(--hr-font);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.hr-nav__register:hover,
.hr-nav__register:focus {
  background: var(--hr-ink, #232121);
  color: #fff;
  outline: none;
}

body.hr-nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hr-header {
    padding: 30px 40px 20px;
  }

  .hr-wordmark__img,
  .hr-wordmark img {
    height: 24px;
  }
}

@media (max-width: 767px) {
  .hr-header {
    padding: 10px;
  }

  .hr-wordmark {
    font-size: 17px;
  }

  .hr-wordmark__mark {
    font-size: 25px;
  }

  .hr-wordmark__img,
  .hr-wordmark img {
    height: 22.3px;
  }

  .hr-header__menu {
    width: 44px;
    height: 44px;
  }

  .hr-header__menu span {
    width: 22px;
    height: 1.5px;
    margin: 5px auto;
  }

  .hr-nav {
    justify-content: center;
    align-items: stretch;
  }

  .hr-nav__panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    transform: translateX(24px);
  }

  .hr-nav.is-open .hr-nav__panel {
    transform: translateX(0);
  }

  .hr-nav__top {
    padding: 14px 14px 0 10px;
  }

  .hr-nav__links,
  .hr-nav__bottom {
    padding-left: 10px;
    padding-right: 20px;
  }

  .hr-nav__links {
    padding-top: 10px;
  }

  .hr-nav__bottom {
    padding-bottom: 20px;
  }

  .hr-nav__link,
  .hr-nav__register {
    font-size: 28px;
    line-height: 28px;
  }

  .hr-nav__register {
    border-radius: 200px;
  }

  .hr-nav__link:hover .hr-nav__link-text,
  .hr-nav__link:focus .hr-nav__link-text {
    transform: translateX(48px);
  }
}
