.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 76px;
  display: flex; align-items: center; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled { background: rgba(6, 10, 20, .72); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(20px) saturate(140%); }
.site-header .header-inner { width: min(100% - 32px, 1720px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 850; letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; }
.brand span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav button {
  border: 0; background: transparent; color: rgba(255,255,255,.78); cursor: pointer;
  padding: 10px 13px; border-radius: 999px; font-size: 14px; font-weight: 650;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover, .nav button:hover { color: #fff; background: rgba(255,255,255,.09); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  background: rgba(255,255,255,.06); display: grid; place-items: center; cursor: pointer;
  color: #fff; transition: transform .2s ease, background .2s ease;
}
.icon-button:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.icon-button svg { width: 19px; height: 19px; }
.menu-button { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 780; cursor: pointer; transition: transform .24s var(--ease-spring), box-shadow .24s ease, background .24s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: linear-gradient(110deg, var(--sunset-coral), var(--sunset-pink) 48%, var(--signal-violet)); box-shadow: 0 14px 44px rgba(255, 95, 114, .28); }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.button-dark { color: #fff; background: var(--ink-950); }
.button-light { color: var(--text-dark); background: var(--paper); }
.button-ghost { color: inherit; border-color: var(--app-line); background: transparent; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--app-line); border-radius: 999px; font-size: 12px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(84,209,155,.13); }

.site-footer { background: #040812; color: #fff; padding: 88px 0 34px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 48px; }
.footer-brand { max-width: 460px; }
.footer-brand img { width: 180px; margin-bottom: 24px; }
.footer-brand p { color: var(--muted-light); line-height: 1.7; }
.footer-col h3 { margin: 0 0 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-col a { display: block; width: fit-content; margin: 11px 0; color: var(--muted-light); font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: var(--muted-light); font-size: 13px; }

.search-dialog { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; background: rgba(2,5,12,.72); backdrop-filter: blur(18px); }
.search-dialog.is-open { display: flex; }
.search-panel { width: min(760px, 100%); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: #0b1322; box-shadow: var(--shadow-deep); overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font-size: 18px; }
.search-input-wrap input::placeholder { color: #77849b; }
.search-results { max-height: 58vh; overflow: auto; padding: 10px; }
.search-result { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 13px; border-radius: 14px; color: #fff; }
.search-result:hover, .search-result[aria-selected="true"] { background: rgba(255,255,255,.08); }
.search-result-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, rgba(255,95,114,.22), rgba(139,103,255,.22)); }
.search-result strong { display: block; }
.search-result span { display: block; margin-top: 3px; color: #99a5b8; font-size: 13px; }
.search-result kbd { color: #8d99ac; font-size: 11px; }
.search-empty { padding: 42px 20px; text-align: center; color: #8d99ac; }

.mobile-drawer { position: fixed; inset: 0; z-index: 220; display: none; }
.mobile-drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2,5,12,.62); backdrop-filter: blur(6px); }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(86vw, 420px); height: 100%; padding: 24px; background: #08101f; color: #fff; box-shadow: -30px 0 90px rgba(0,0,0,.35); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-links { display: grid; gap: 8px; margin-top: 46px; }
.drawer-links a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 24px; font-weight: 760; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-button { display: grid; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
}
@media (max-width: 700px) {
  .brand span { display: none; }
  .site-header { height: 68px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
