/* Shared chrome. Higher specificity keeps cabinet and public pages consistent. */
:root { --bg: #17191e; --bg-alt: #1e2128; --text: #f4f2ee; --muted: #b8bbc5; --line: #343740; --accent: #f07b60; --accent-ink: #17191e; --surface: #22252d; --surface-raised: #2a2e38; --surface-quiet: #1b1e24; --line-strong: #575c68; --max: 1240px; }
html body { background-color: var(--bg); background-image: none; }
html .container { width: min(var(--max), 100%); padding-inline: max(36px, env(safe-area-inset-left, 0px)) max(36px, env(safe-area-inset-right, 0px)); margin-inline: auto; }
html .topbar { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transform: none; opacity: 1; visibility: visible; border-bottom: 0; background: #17191ef5; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: none; }
html .topbar__inner { display: flex; align-items: center; gap: 32px; min-height: 86px; padding-block: 14px; }
html .brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; min-width: 0; min-height: 44px; text-decoration: none; }
html .brand__logo { display: block; width: 30px; height: 30px; border-radius: 6px; box-shadow: none; filter: none; }
html .brand__text { font-family: var(--font-sans); color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
html .nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
html .nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 400; border: 0; border-radius: 0; background: transparent; }
html .nav__link:hover, html .nav__link.is-active { color: var(--text); background: transparent; box-shadow: none; }
html .nav__link.is-active { color: var(--accent); }
html .topbar__cabinet, html .topbar__tg { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; margin: 0; }
html .topbar__cabinet svg { width: 18px; height: 18px; }
html .topbar__cabinet:hover { color: var(--text); background: transparent; }
html .topbar__tg { display: none; }
html .topbar__cta { display: inline-flex; gap: 16px; min-height: 44px; padding: 10px 17px; color: var(--text); border: 0; border-radius: 4px; background: var(--surface); box-shadow: none; font: 400 16px/1.5 var(--font-sans); text-decoration: none; white-space: nowrap; }
html .topbar__cta:hover { background: var(--surface-raised); color: var(--text); transform: none; box-shadow: none; }
html .topbar__menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-width: 44px; height: 44px; padding: 10px; background: transparent; color: var(--text); border: 0; cursor: pointer; }
html .topbar__menu-toggle span { width: 18px; height: 1px; background: currentColor; }
html .topbar__mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
html .topbar__mobile-menu[hidden] { display: none; }
html .topbar__mobile-menu-inner { display: flex; flex-direction: column; align-items: end; padding: 16px 22px 24px; }
html .topbar__mobile-link { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 16px; text-decoration: none; }
html .topbar__mobile-link.is-active { color: var(--text); }
html .footer { border-top: 1px solid var(--line); background: var(--bg); }
html .footer__inner { display: flex; justify-content: space-between; align-items: start; gap: 60px; padding-block: 64px; }
html .footer__left { flex: 0 1 300px; }
html .footer__title { font-family: var(--font-serif); font-size: 27px; font-weight: 400; color: var(--text); }
html .footer__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 16px; color: var(--muted); margin-top: 12px; }
html .footer__note { color: var(--muted); }
html .footer__tagline { font-size: 16px; color: var(--muted); margin-top: 22px; }
html .footer__right { display: flex; gap: clamp(25px, 5vw, 70px); }
html .footer__group { display: flex; flex-direction: column; gap: 0; min-width: 110px; }
html .footer__group-title { color: var(--text); text-transform: none; font: 500 16px/1.5 var(--font-sans); letter-spacing: 0; margin-bottom: 14px; opacity: 1; }
html .footer__link { display: flex; align-items: center; min-height: 36px; color: var(--muted); font: 400 16px/1.6 var(--font-sans); text-decoration: none; border: 0; background: transparent; padding: 5px 0; text-align: left; cursor: pointer; }
html .footer__link:hover { color: var(--text); }
html .cabinet-subnav { margin-top: calc(86px + env(safe-area-inset-top, 0px)); }
@media (max-width: 950px) {
  html .topbar__inner { gap: 20px; }
  html .footer__inner { gap: 35px; }
  html .footer__right { gap: 24px; }
}
@media (max-width: 759px) {
  html .container { padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px)); }
  html .topbar__inner { min-height: 72px; padding-block: 10px; gap: 4px; }
  html .cabinet-subnav { margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
  html .brand__text { font-size: 16px; }
  html .brand__logo { width: 28px; height: 28px; }
  html .nav { display: none; }
  html .topbar__menu-toggle { display: flex; margin-left: auto; }
  html .topbar__cta { display: none; }
  html .topbar__cabinet { width: 40px; }
  html .topbar__tg { display: none; }
  html .footer__inner { flex-direction: column; padding-block: 44px; gap: 36px; }
  html .footer__left { flex: initial; }
  html .footer__right { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  html .footer__group { min-width: 0; }
  html .footer__link { min-height: 44px; font-size: 16px; }
}
@media (min-width: 760px) and (max-width: 950px) {
 html .nav { display: none; }
 html .topbar__menu-toggle { display: flex; margin-left: auto; }
}
