:root {
  --l83-shell-height: 72px;
  --l83-shell-bg: rgba(10, 11, 13, .94);
  --l83-shell-line: rgba(255, 255, 255, .13);
  --l83-shell-text: #f8f4e9;
  --l83-shell-muted: #bcb9b1;
  --l83-shell-accent: #f0bd45;
}

html { scroll-padding-top: calc(var(--l83-shell-height) + 16px); }
body.l83-shell-ready { padding-top: var(--l83-shell-height) !important; }
[data-l83-legacy-shell="true"] { display: none !important; }
.t-rec[data-record-type="815"],
.t-rec[data-record-type="420"],
.t815[id^="nav"] { display: none !important; }

#l83-global-header,
#l83-global-footer {
  box-sizing: border-box;
  color: var(--l83-shell-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

#l83-global-header *,
#l83-global-footer * { box-sizing: border-box; }

#l83-global-header {
  position: fixed;
  z-index: 2147482000;
  inset: 0 0 auto;
  height: var(--l83-shell-height);
  background: var(--l83-shell-bg);
  border-bottom: 1px solid var(--l83-shell-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.l83-shell-inner {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.l83-shell-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--l83-shell-text) !important;
  text-decoration: none !important;
}

.l83-shell-brand img {
  display: block;
  width: 43px;
  height: 52px;
  object-fit: contain;
}

.l83-shell-brand-text { line-height: 1.05; white-space: nowrap; }
.l83-shell-brand-text strong { display: block !important; color: var(--l83-shell-text) !important; font-size: 14px !important; font-weight: 800 !important; line-height: 1.05 !important; opacity: 1 !important; }
.l83-shell-brand-text span { display: block !important; margin-top: 4px !important; color: var(--l83-shell-muted) !important; font-size: 11px !important; line-height: 1.05 !important; opacity: 1 !important; }

.l83-shell-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.l83-shell-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--l83-shell-text) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}

.l83-shell-nav a:hover,
.l83-shell-nav a[aria-current="page"] { background: rgba(240, 189, 69, .14); color: var(--l83-shell-accent) !important; }

.l83-shell-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--l83-shell-line);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: var(--l83-shell-text);
  cursor: pointer;
}

.l83-shell-menu-button i {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.l83-shell-menu-button[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.l83-shell-menu-button[aria-expanded="true"] i:first-child { transform: translateY(6px) rotate(45deg); }
.l83-shell-menu-button[aria-expanded="true"] i:last-child { transform: translateY(-6px) rotate(-45deg); }

#l83-global-footer {
  position: relative;
  z-index: 10;
  margin: 0 !important;
  padding: 52px 0 24px;
  background: #0a0b0d;
  border-top: 1px solid var(--l83-shell-line);
}

.l83-footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 38px;
}

.l83-footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.l83-footer-brand img { width: 60px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.l83-footer-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.2; color: #fff; }
.l83-footer-copy { margin: 0; max-width: 420px; color: var(--l83-shell-muted); font-size: 13px; line-height: 1.6; }
.l83-footer-heading { margin: 0 0 13px; color: var(--l83-shell-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.l83-footer-links { display: grid; gap: 10px; }
.l83-footer-links a { color: #f2efe8 !important; font-size: 14px; line-height: 1.35; text-decoration: none !important; }
.l83-footer-links a:hover { color: var(--l83-shell-accent) !important; }
.l83-footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--l83-shell-line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #8f8d87;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  :root { --l83-shell-height: 64px; }
  .l83-shell-brand img { width: 36px; height: 44px; }
  .l83-shell-brand-text span { display: none !important; }
  .l83-shell-menu-button { display: block; }
  .l83-shell-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 16px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    background: rgba(10, 11, 13, .98) !important;
    border-bottom: 1px solid var(--l83-shell-line);
    box-shadow: 0 18px 32px rgba(0,0,0,.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .2s ease;
  }
  .l83-shell-nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .l83-shell-nav a { padding: 0 13px; background: rgba(255,255,255,.035); }
  .l83-footer-grid { grid-template-columns: 1fr 1fr; }
  .l83-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .l83-shell-inner { width: calc(100% - 20px); }
  .l83-shell-brand-text strong { font-size: 12px !important; }
  .l83-shell-nav { padding-inline: 10px; grid-template-columns: 1fr; max-height: calc(100vh - var(--l83-shell-height)); overflow: auto; }
  .l83-shell-nav a { min-height: 43px; background: rgba(255,255,255,.045) !important; }
  #l83-global-footer { padding-top: 38px; }
  .l83-footer-grid { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 28px; }
  .l83-footer-brand { grid-column: auto; }
  .l83-footer-brand img { width: 48px; height: 58px; }
  .l83-footer-title { font-size: 17px; }
  .l83-footer-bottom { width: calc(100% - 28px); flex-direction: column; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .l83-shell-nav, .l83-shell-menu-button i { transition: none; }
}
