[data-site-header],
[data-site-footer] {
  display: block;
}

[data-site-header] {
  min-height: 68px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid rgba(220, 229, 240, 0.86);
  backdrop-filter: blur(20px) saturate(150%);
}

.site-header .shell,
.site-footer .shell {
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-logo {
  width: 106px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-login {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: #2563eb;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-login:hover {
  background: #1d4ed8;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 0;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  background: #172033;
  border-radius: 2px;
  transition: transform 160ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

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

.mobile-nav:not([hidden]) {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  display: grid;
  padding: 8px 16px 18px;
  background: rgba(247, 249, 252, 0.99);
  border-bottom: 1px solid #dce5f0;
  box-shadow: 0 14px 44px rgba(23, 32, 51, 0.08);
}

.mobile-nav a {
  padding: 14px 8px;
  color: #52617a;
  border-bottom: 1px solid #dce5f0;
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-nav a[aria-current="page"] {
  color: #172033;
}

.mobile-nav a:last-child {
  margin-top: 10px;
  color: #fff;
  text-align: center;
  background: #2563eb;
  border: 0;
  border-radius: 12px;
}

.site-footer {
  padding: 42px 0 28px;
  color: #a9b4c6;
  background: #0f1728;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer-brand .brand-logo {
  width: 126px;
}

.footer-identity p {
  max-width: 25rem;
  margin: 14px 0 0;
  color: #8795aa;
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-nav strong,
.footer-business strong {
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.footer-nav a {
  width: fit-content;
  color: #a9b4c6;
  font-size: 0.83rem;
}

.footer-nav a:hover,
.footer-policy a:hover,
.footer-business a:hover {
  color: #fff;
}

.footer-business address {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  color: #8795aa;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.55;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #d7deea;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-bottom > span {
  color: #738198;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

@media (min-width: 760px) {
  [data-site-header] {
    min-height: 78px;
  }

  .site-header .shell,
  .site-footer .shell {
    width: min(calc(100% - 64px), 1180px);
  }

  .header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
  }

  .brand-logo {
    width: 120px;
  }

  .desktop-nav {
    display: flex;
    align-self: stretch;
    gap: 32px;
  }

  .desktop-nav a {
    position: relative;
    display: flex;
    align-items: center;
    color: #52617a;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] {
    color: #172033;
  }

  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: #2563eb;
    transform: scaleX(0);
    transition: transform 160ms ease;
  }

  .desktop-nav a:hover::after,
  .desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .header-actions {
    justify-self: end;
  }

  .menu-button,
  .mobile-nav {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: minmax(240px, 1.15fr) minmax(120px, 0.55fr) minmax(360px, 1.3fr);
    align-items: start;
    gap: 54px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-footer * {
    transition: none !important;
  }
}
