/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-header); }
.nav-shell {
  width: min(1180px, calc(100% - 36px));
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 1rem; font-weight: 760; letter-spacing: -.03em; }
.brand-product {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-600);
  font-size: .78rem;
  font-weight: 650;
}
.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav > a {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--ink-700);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.site-nav > a:hover { background: var(--canvas-soft); color: var(--ink-950); }
.site-nav > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.site-nav > .emergency-link { color: var(--danger); }
.site-nav > .emergency-link:hover,
.site-nav > .emergency-link[aria-current="page"] { background: var(--danger-soft); color: var(--danger); }
.site-nav > .main-site-link {
  margin-left: 7px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-600);
}
.site-nav > .main-site-link span { margin-left: 5px; }
.menu-button, .drawer-head, .nav-backdrop { display: none; }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

/* Controls */
.field { min-width: 0; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-700);
  font-size: .78rem;
  font-weight: 700;
}
input, select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-950);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder { color: #98a4ac; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 93, 134, .11); }
.button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .87rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { border-color: var(--line-strong); background: #fff; color: var(--ink-800); }
.button.secondary:hover { background: var(--canvas-soft); }
.button.emergency { background: var(--danger); color: #fff; }
.button.emergency:hover { background: #8d312b; }
.button.compact { min-height: 38px; padding-inline: 13px; font-size: .8rem; }
.text-button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.check-row {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: .82rem;
  cursor: pointer;
}
.check-row input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }

/* Footer */
.site-footer { margin-top: 44px; border-top: 1px solid var(--line); background: #fff; }
.footer-shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  padding: 22px 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-shell > div strong,
.footer-shell > div span { display: block; }
.footer-shell > div strong { font-size: .86rem; }
.footer-shell > div span { margin-top: 4px; color: var(--ink-600); font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { color: var(--ink-600); font-size: .76rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink-950); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  padding: 13px 0 18px;
  border-top: 1px solid #eef2f4;
  color: var(--ink-500);
  font-size: .72rem;
}
