.site-main {
  display: block;
  min-height: 60vh;
}

.site-main:focus {
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #171A20;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  pointer-events: none;
}

.has-hero .site-header {
  position: absolute;
  inset: 0 0 auto 0;
}

.has-hero .site-header::before {
  display: none;
}

.has-hero .site-header.site-header--float {
  position: fixed;
}

.has-hero .site-header--float::before {
  display: block;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.has-hero .site-header--float.is-scrolled::before {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
  padding-inline: clamp(16px, 3.4vw, 48px);
}

.site-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}

.site-brand:hover {
  color: inherit;
}

.site-brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.site-brand__name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 16px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 3;
}

.site-nav__toggle-close,
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-open {
  display: none;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-close {
  display: inline;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: calc(var(--header-h) + 16px) clamp(16px, 3.4vw, 48px) 32px;
  background: #FFFFFF;
  color: #171A20;
  overflow-y: auto;
  animation: site-nav-in 0.33s var(--ease);
}

@keyframes site-nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-nav__list,
.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__actions {
  padding-top: var(--s-4);
  border-top: 1px solid #EEEEEE;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 12px;
  border-radius: 4px;
  color: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: inherit;
  background: rgba(0, 0, 0, 0.05);
}

.site-nav__link[aria-current="page"] {
  background: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1000px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav__toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: contents;
    animation: none;
  }

  .site-nav__list,
  .site-nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
  }

  .site-nav__actions {
    justify-self: end;
  }

  .site-nav__link {
    min-height: 32px;
    padding: 4px 16px;
    font-size: 0.875rem;
  }
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: var(--s-4) auto 0;
  padding-inline: var(--gutter);
}

.has-hero .flash-stack {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  z-index: 5;
  margin: 0;
  transform: translateX(-50%);
}

.section {
  position: relative;
  padding-block: var(--s-8);
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding-block: var(--s-6);
}

.section-lead {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.site-footer {
  background: #FFFFFF;
  color: #5C5E62;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.site-footer__inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 40px var(--gutter) 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.site-footer__brand {
  grid-column: 1 / -1;
  max-width: 420px;
}

.site-footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: #171A20;
  text-decoration: none;
}

.site-footer__mark svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.site-footer__mark span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  white-space: nowrap;
}

.site-footer__title {
  margin: 8px 0 0;
  color: #393C41;
  font-weight: 500;
}

.site-footer__about {
  max-width: 44ch;
  margin: 4px 0 0;
  color: #5C5E62;
}

.site-footer__head {
  margin: 0 0 12px;
  color: #171A20;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__address {
  max-width: 32ch;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.site-footer__list a,
.site-footer__legal a {
  display: inline-block;
  padding-block: 2px;
}

.site-footer a:hover {
  color: #171A20;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer .site-footer__mark,
.site-footer .site-footer__mark:hover {
  color: #171A20;
  text-decoration: none;
}

.site-footer a:focus-visible {
  border-radius: 4px;
  outline: 2px solid #3E6AE1;
  outline-offset: 2px;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #EEEEEE;
  font-size: 0.75rem;
}

.site-footer__crisis {
  max-width: 72ch;
  margin: 0;
  color: #5C5E62;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  color: #5C5E62;
  font-weight: 500;
  list-style: none;
}

@media (min-width: 760px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 48px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
  }

  .site-footer__legal {
    flex: none;
  }
}

.site-error {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 60vh, 600px);
  padding: 88px 0 56px;
  background: #0B1422;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

.site-error--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 14, 30, 0.86) 0%, rgba(6, 14, 30, 0.6) 42%, rgba(6, 14, 30, 0.16) 100%),
    linear-gradient(180deg, rgba(6, 14, 30, 0.4) 0%, rgba(6, 14, 30, 0) 34%, rgba(6, 14, 30, 0.72) 100%);
  pointer-events: none;
}

.site-error__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.site-error__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: calc(1200px + 48px);
  margin-inline: auto;
  padding-inline: 24px;
  text-align: left;
}

.site-error__code {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-error__code::before {
  content: "";
  width: 32px;
  height: 2px;
  background: #3E6AE1;
}

.site-error__title {
  max-width: 15ch;
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.site-error__dot {
  color: #6E97FF;
  font-style: normal;
}

.site-error__lead {
  max-width: 50ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.site-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.site-error__actions .px-btn {
  min-width: 200px;
}

.site-error__actions .px-btn:not(.px-btn--primary) {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bg-hover: rgba(255, 255, 255, 0.22);
  --btn-ink: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
  .site-error__photo {
    animation: site-error-photo 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .site-error__inner > * {
    animation: site-error-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .site-error__title {
    animation-delay: 0.08s;
  }

  .site-error__lead {
    animation-delay: 0.16s;
  }

  .site-error__actions {
    animation-delay: 0.24s;
  }
}

@keyframes site-error-photo {
  from {
    transform: scale(1.05);
  }
}

@keyframes site-error-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 599px) {
  .site-error {
    min-height: max(60vh, 400px);
    padding: 64px 0 40px;
  }

  .site-error__inner {
    padding-inline: 16px;
  }

  .site-error__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .site-error__actions .px-btn {
    width: 100%;
    min-width: 0;
  }
}

.site-error__debug {
  margin-top: 24px;
  max-width: 100%;
  max-height: 360px;
  overflow: auto;
  padding: var(--s-4);
  border-radius: var(--radius);
  background: #171A20;
  color: #EEEEEE;
  font-size: var(--fs-xs);
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
}

@media (max-width: 999px) {
  body:has(.site-nav.is-open) {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav.is-open,
  .has-hero .site-header--float::before {
    animation: none;
    transition: none;
  }
}

@media (min-width: 1000px) {
  .site-nav__actions {
    gap: 6px;
  }

  .site-nav__actions .site-nav__link {
    position: relative;
  }

  .site-nav__actions .site-nav__link::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 1px;
    left: 16px;
    height: 2px;
    background: #3E6AE1;
    transform: scaleX(0.42);
    transform-origin: 0 50%;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-nav__actions .site-nav__link:hover::after,
  .site-nav__actions .site-nav__link:focus-visible::after,
  .site-nav__actions .site-nav__link[aria-current="page"]::after {
    transform: none;
  }

  .has-hero .site-header:not(.is-scrolled) .site-nav__actions .site-nav__link::after {
    background: #6E97FF;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__actions .site-nav__link::after {
    transition: none;
  }
}

.site-header::before {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(62, 106, 225, 0) 0%, rgba(62, 106, 225, 0.55) 22%, rgba(23, 26, 32, 0.12) 60%, rgba(23, 26, 32, 0) 100%) 1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 255, 0.86) 52%, rgba(226, 236, 255, 0.8) 100%);
  -webkit-backdrop-filter: saturate(1.7) blur(20px);
  backdrop-filter: saturate(1.7) blur(20px);
}

.has-hero .site-header--float::before {
  transition: opacity 0.5s var(--ease);
}

.has-hero .site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.9) 0%, rgba(6, 14, 30, 0.62) 50%, rgba(6, 14, 30, 0) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000 44%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 44%, rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.has-hero .site-header.is-scrolled::after,
.has-hero .site-header:has(.site-nav.is-open)::after {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .has-hero .site-header::after {
    transition: none;
  }
}
