/* Shared GhostLink components. Tokens and the local Cyrillic font live in styles.css.
   Page styles own their composition; this file owns repeated interface roles. */
:root { --site-header-height: 77px; --anchor-gap: 20px; }
:root, body[data-mode="light"] {
  --page-bg: #f7f9f7;
  --background: var(--page-bg);
  --surface: #ffffff;
  --surface-secondary: #edf2ef;
  --surface-dark: #142729;
  --text-primary: #18332b;
  --text-secondary: #486057;
  --text-muted: #5c6e66;
  --border: #d1ddd2;
  --brand: #176440;
  --brand-hover: #115233;
  --brand-signal: #c8ff34;
  --dark-cta-surface: #d4ecd8;
}

body { font-family: var(--font-body); color: var(--text-primary); }
[hidden] { display: none !important; }
.sr-only:not(:focus):not(:active) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button, input, textarea, select { font: inherit; }
button, a, summary, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 5px var(--surface); }

/* One navigation geometry on every page, including the private account. */
.topbar, .site-balance .topbar {
  position: sticky; top: 0; z-index: var(--layer-nav); padding: 0;
  border-bottom: 1px solid var(--border); background: rgba(247, 250, 246, .97);
  box-shadow: none; backdrop-filter: blur(12px);
}
.topbar .nav, .site-balance .topbar .nav {
  position: relative; display: flex; align-items: center; gap: 28px;
  width: min(var(--container-wide), calc(100% - 2 * var(--gutter)));
  max-width: none; min-height: 76px; margin: 0 auto; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
.topbar .brand {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  min-height: 44px; color: var(--text-primary); font-family: var(--font-body);
  font-size: 22px; font-weight: 700; letter-spacing: -.035em; text-decoration: none;
}
.topbar .brand-mark, .site-balance .topbar .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px;
  background: var(--brand-signal); color: var(--brand-signal-ink);
  font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: 0; box-shadow: none;
}
.topbar .nav-links {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.topbar .nav-links a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 8px; border-radius: var(--radius-small);
  color: var(--text-secondary); font-family: var(--font-body); font-size: 14px;
  font-weight: 500; line-height: 1.35; text-decoration: none; white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-ui), background-color var(--duration-fast) var(--ease-ui);
}
.topbar .nav-links a::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px;
  height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-ui);
}
.topbar .nav-links a:hover { color: var(--brand); background: var(--surface-secondary); }
.topbar .nav-links a[href='/download'] { color: var(--brand); font-weight: 600; }
.topbar .nav-links a.active, .topbar .nav-links a[aria-current='page'] {
  color: var(--brand); background: transparent; font-weight: 600;
}
.topbar .nav-links :is(a.active, a[aria-current='page'], a:focus-visible)::after { transform: scaleX(1); }
.topbar .nav-tools { display: none; }
.topbar .menu-button {
  display: none; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; min-height: 44px; margin-left: auto; padding: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-medium);
  background: var(--surface); color: var(--text-primary); cursor: pointer;
}
.topbar .menu-button:hover, .topbar .menu-button[aria-expanded='true'] { background: var(--surface-secondary); }
.topbar .menu-lines { display: grid; gap: 4px; width: 18px; margin: 0; }
.topbar .menu-lines i {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-ui), opacity var(--duration-fast) var(--ease-ui);
}
.topbar .menu-button[aria-expanded='true'] .menu-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar .menu-button[aria-expanded='true'] .menu-lines i:nth-child(2) { opacity: 0; }
.topbar .menu-button[aria-expanded='true'] .menu-lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The screenshot stays still; its border communicates the zoom link. */
.home-v5 .hero-screenshot-link { transition: border-color var(--duration-fast) var(--ease-ui); }
.home-v5 .hero-screenshot-link:is(:hover, :focus-visible) { border-color: var(--brand); }

/* Buttons communicate availability through their surface, not reduced opacity. */
.button, .nav-cta, .site-balance .button, .site-balance .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; max-width: 100%; padding: 11px 22px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-medium);
  background: var(--surface); color: var(--text-primary); font-family: var(--font-body);
  font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-ui), border-color var(--duration-fast) var(--ease-ui), color var(--duration-fast) var(--ease-ui);
}
.button.primary, .nav-cta { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.button.primary:hover:not(:disabled):not([aria-disabled='true']), .nav-cta:hover:not([aria-disabled='true']) {
  background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink);
}
.button.dark { background: var(--text-primary); border-color: var(--text-primary); color: var(--text-inverse); }
.button.dark:hover:not(:disabled):not([aria-disabled='true']) { background: var(--surface-dark); border-color: var(--surface-dark); }
.button.secondary, .site-balance .button.secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text-primary); }
.button.secondary:hover:not(:disabled):not([aria-disabled='true']) { background: var(--surface-secondary); border-color: var(--brand); }
.button.quiet, .site-balance .button.quiet { border-color: transparent; background: transparent; color: var(--brand); text-decoration: underline; }
.button.quiet:hover:not(:disabled):not([aria-disabled='true']) { background: var(--surface-secondary); }
.button:active:not(:disabled):not([aria-disabled='true']), .nav-cta:active:not([aria-disabled='true']) { transform: translateY(1px); }
.button:is(:disabled, [aria-disabled='true']), .button:is(:disabled, [aria-disabled='true']):is(:hover, :active),
.site-balance .button:is(:disabled, [aria-disabled='true']), .nav-cta[aria-disabled='true'] {
  background: var(--surface-secondary); border-color: var(--border); color: var(--text-muted);
  opacity: 1; box-shadow: none; transform: none; cursor: not-allowed;
}
.button .button-arrow { display: inline-block; transition: transform var(--motion-ui) var(--ease-ui); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover:not(:disabled):not([aria-disabled='true']) .button-arrow { transform: translateX(3px); }
}

/* Shared document language, without adding a panel around every section. */
.wrap { width: min(var(--container-main), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -.035em; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--text-muted); }
.breadcrumbs { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: underline; }
.site-balance main [id], .account-app main [id] { scroll-margin-top: 0; }
.site-balance a:not(.button):not(.brand) { text-underline-offset: .22em; }
.how-it-works-page .how-scenario { background: transparent; border-radius: 0; box-shadow: none; }
.how-it-works-page .how-scenario-copy > .how-result,
.how-it-works-page .how-ready a, .how-it-works-page .how-beta-note a { color: var(--brand); }
.how-it-works-page .how-scenario-number { background: var(--surface-secondary); border: 1px solid var(--border); color: var(--brand); }

/* Forms and footer share the same type, controls and legal-link targets. */
.footer, .site-balance .footer, .footer.footer-shared {
  padding: 44px 0 calc(32px + var(--analytics-consent-reserve, 0px));
  border-top: 1px solid var(--border); background: var(--surface-secondary);
  color: var(--text-secondary); font-family: var(--font-body); font-size: 14px; line-height: 1.6;
}
.footer.footer-shared {
  --surface: inherit; --surface-secondary: inherit; --text-primary: inherit;
  --text-secondary: inherit; --text-muted: inherit; --border: inherit;
  --border-strong: inherit; --focus: inherit;
}
.footer.footer-shared .wrap { width: min(var(--container-main), calc(100% - 2 * var(--gutter))); }
.footer :is(a, .footer-link-button) { color: var(--text-secondary); text-decoration: underline; text-underline-offset: .22em; }
.footer :is(a, .footer-link-button):hover { color: var(--brand); }
:is(.footer, .footer.footer-shared) .footer-feedback, .footer.footer-shared .footer-feedback {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 64px);
  min-width: 0; margin-bottom: 32px; padding: 0 0 32px; border-bottom: 1px solid var(--border); font-family: var(--font-body);
}
:is(.footer, .footer.footer-shared) .footer-feedback-copy h2, .footer.footer-shared .footer-feedback-copy h2 {
  margin: 8px 0 12px; font-family: var(--font-heading); font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 600; line-height: 1.2; color: var(--text-primary);
}
:is(.footer, .footer.footer-shared) .footer-feedback-copy p { max-width: 29rem; margin: 0; font-size: 16px; line-height: 1.6; }
:is(.footer, .footer.footer-shared) .feedback-form { display: grid; min-width: 0; gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; }
:is(.footer, .footer.footer-shared) .feedback-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:is(.footer, .footer.footer-shared) .feedback-form label { display: grid; gap: 8px; color: var(--text-primary); font-size: 14px; font-weight: 500; line-height: 1.5; }
:is(.footer, .footer.footer-shared) .feedback-form input:not([type='checkbox']):not([type='hidden']), :is(.footer, .footer.footer-shared) .feedback-form textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium); background: var(--surface); color: var(--text-primary);
  font: 400 16px/1.5 var(--font-body);
}
:is(.footer, .footer.footer-shared) .feedback-form textarea { min-height: 128px; resize: vertical; }
:is(.footer, .footer.footer-shared) .feedback-form :is(input, textarea):focus { outline: 3px solid var(--focus); outline-offset: 3px; border-color: var(--focus); }
:is(.footer, .footer.footer-shared) .feedback-form :is(input, textarea)::placeholder { color: var(--text-muted); opacity: 1; }
:is(.footer, .footer.footer-shared) .feedback-form :is(input, textarea):disabled { background: var(--surface-secondary); color: var(--text-muted); cursor: not-allowed; }
:is(.footer, .footer.footer-shared) .feedback-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
:is(.footer, .footer.footer-shared) .feedback-submit { min-height: 48px; padding: 11px 22px; border-radius: var(--radius-medium); font-family: var(--font-body); font-size: 15px; }
:is(.footer, .footer.footer-shared) .feedback-status { min-height: 24px; margin: 0; font-size: 14px; line-height: 1.6; }
:is(.footer, .footer.footer-shared) .feedback-status.success { padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--surface); color: var(--brand); }
:is(.footer, .footer.footer-shared) .feedback-status.error { color: var(--error); }
:is(.footer, .footer.footer-shared) .feedback-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 400; line-height: 1.6; }
:is(.footer, .footer.footer-shared) .feedback-consent input[type='checkbox'] { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; padding: 0; accent-color: var(--brand); cursor: pointer; }
:is(.footer, .footer.footer-shared) .feedback-consent label { display: inline; color: inherit; font: inherit; }
.footer.footer-shared .feedback-consent-stacked { display: grid; gap: 0; min-width: 0; }
.footer.footer-shared .feedback-consent .feedback-consent-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin: 0; padding: 9px 0; color: inherit; font: 400 14px/1.6 var(--font-body); cursor: pointer; }
:is(.footer, .footer.footer-shared) .feedback-consent-choice > span { min-width: 0; }
.footer.footer-shared .feedback-consent-documents { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; margin: 0 0 0 30px; padding: 0; font-size: 13px; line-height: 1.6; }
.footer.footer-shared .feedback-consent-documents a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 400; overflow-wrap: anywhere; }
:is(.footer, .footer.footer-shared) .footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 0; }
:is(.footer, .footer.footer-shared) .footer-brand { display: grid; gap: 6px; max-width: 27rem; font-size: 14px; }
.footer strong { color: var(--text-primary); font-size: inherit; font-weight: 600; }
:is(.footer, .footer.footer-shared) .footer-links, :is(.footer, .footer.footer-shared) .footer-meta { display: grid; justify-items: end; gap: 8px; }
:is(.footer, .footer.footer-shared) .footer-meta { max-width: 44rem; text-align: right; font-size: 14px; }
:is(.footer, .footer.footer-shared) .footer-link-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 12px; }
:is(.footer, .footer.footer-shared) .footer-link-row > :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 7px 0; font-size: 14px; line-height: 1.5; }
:is(.footer, .footer.footer-shared) .footer-link-button { border: 0; margin: 0; background: transparent; font: inherit; cursor: pointer; }
.footer :is(.footer-details, .footer-alpha) { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
:is(.footer, .footer.footer-shared) .footer-email { color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.feedback-disclosure { width: min(var(--container-main), calc(100% - 2 * var(--gutter))); margin: 0 auto 28px; border-bottom: 1px solid var(--border); }
.feedback-disclosure > summary { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 12px 0; list-style: none; color: var(--text-primary); font-size: 24px; font-weight: 600; cursor: pointer; }
.feedback-disclosure > summary::-webkit-details-marker { display: none; }
.feedback-disclosure > summary::after { content: '+'; margin-left: auto; color: var(--brand); font-size: 26px; font-weight: 400; }
.feedback-disclosure[open] > summary::after { content: '\2212'; }
.feedback-disclosure > summary small { margin-left: auto; color: var(--text-secondary); font-size: 14px; font-weight: 400; }
:is(.footer, .footer.footer-shared) .feedback-disclosure .footer-feedback { width: 100%; margin: 16px 0 0; border-bottom: 0; }
.feedback-request-hint, .download-access-notice { margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Legal HTML and wording are unchanged. Document templates retain reading density. */
.site-balance.shared-legal-page .legal-document { border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--surface); box-shadow: none; }
.site-balance.shared-legal-page .legal-document h2 { font-size: clamp(24px, 2.5vw, 30px); font-weight: 600; line-height: 1.3; }
.site-balance.shared-legal-page .legal-document h3 { font-size: 20px; font-weight: 600; }
.site-balance.shared-legal-page .legal-document :is(p, li) { line-height: 1.65; }
.site-balance.shared-legal-page .legal-document .legal-lead { font-size: 17px; }

/* Installation actions stay above independent technical disclosures. */
.download-page .download-grid { align-items: start; }
.download-page .download-card { align-self: start; }
.download-page .download-card .download-app-purpose { flex-grow: 0; min-height: 3.4em; }
.download-page .license-download { width: 100%; margin-top: 0; }
.download-license-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-medium); background: var(--surface-secondary); color: var(--text-primary); font-size: 14px; line-height: 1.6; }
.download-license-step { flex-basis: 100%; font-weight: 500; }
.download-license-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.download-license-choice :is(label, .license-link) { display: inline-flex; align-items: center; min-height: 44px; }
.download-license-choice label { cursor: pointer; }
.download-license-choice .license-link { color: var(--brand); font-size: 13px; overflow-wrap: anywhere; }
.license-status, .download-license-note { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.license-status:empty { display: none; }
.license-status.error { color: var(--error); font-weight: 600; }
.license-download.license-missing .download-license-choice { outline: 2px solid var(--error); outline-offset: 3px; }
.download-checksum { margin-top: 10px; min-width: 0; font-size: 14px; }
.download-checksum summary { display: list-item; min-height: 44px; padding: 9px 0; cursor: pointer; color: var(--brand); }
.download-checksum code { display: block; overflow-wrap: anywhere; white-space: normal; font: 13px/1.7 var(--font-code); }
.download-checksum p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.download-access-steps a, .download-access-note a { display: inline-flex; align-items: center; min-height: 44px; }
.download-intro-action { display: inline-flex; align-items: center; min-height: 48px; margin-top: 16px; padding: 11px 22px; border: 1px solid var(--brand); border-radius: var(--radius-medium); background: var(--brand); color: var(--brand-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.download-intro-action:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Comparison tables scroll inside their region, never the whole document. */
.guide-modes-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius-medium); }
.guide-modes-table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); font-size: 15px; line-height: 1.65; }
.guide-modes-table caption { padding: 16px; text-align: left; font-weight: 600; background: var(--surface-secondary); }
.guide-modes-table th, .guide-modes-table td { padding: 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.guide-modes-table thead th { background: var(--surface-secondary); }
.guide-modes-table th:first-child { width: 22%; }
.guide-modes-table td { width: 39%; }
.table-scroll-hint { display: none; }
.nw { white-space: nowrap; }

@media (max-width: 1080px) and (min-width: 861px) {
  .topbar .nav { gap: 20px; }
  .topbar .nav-links { gap: 2px; }
  .topbar .nav-links a { padding-inline: 7px; font-size: 13px; }
}
@media (max-width: 860px) {
  :root { --site-header-height: 65px; }
  .topbar .nav, .site-balance .topbar .nav { min-height: 64px; gap: 16px; }
  .topbar .menu-button { display: inline-flex; }
  .topbar .nav-links {
    position: absolute; left: 0; right: 0; top: calc(100% + 1px);
    display: none; flex-direction: column; align-items: stretch; gap: 4px; margin-left: 0;
    max-height: calc(100dvh - var(--site-header-height) - 16px); overflow-y: auto;
    padding: 8px; border: 1px solid var(--border); border-radius: 0 0 var(--radius-large) var(--radius-large);
    background: var(--surface); box-shadow: var(--shadow-overlay);
  }
  .topbar .nav-links:is(.open, .is-open) { display: flex; }
  .topbar .nav-links a { justify-content: flex-start; width: 100%; min-height: 44px; padding: 11px 12px; font-size: 15px; white-space: normal; }
  .topbar .nav-links a::after { display: none; }
  .topbar .nav-links :is(a.active, a[aria-current='page']) { background: var(--surface-secondary); }
  :is(.footer, .footer.footer-shared) .footer-feedback, .footer.footer-shared .footer-feedback { grid-template-columns: 1fr; gap: 24px; }
  :is(.footer, .footer.footer-shared) .footer-inner, .footer.footer-shared .footer-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  :is(.footer, .footer.footer-shared) .footer-meta, :is(.footer, .footer.footer-shared) .footer-links, .footer.footer-shared :is(.footer-links, .footer-meta) { justify-items: start; text-align: left; max-width: none; }
  :is(.footer, .footer.footer-shared) .footer-link-row, .footer.footer-shared .footer-link-row { justify-content: flex-start; gap: 0 16px; }
  :is(.footer, .footer.footer-shared) .footer-link-separator, .footer.footer-shared .footer-link-separator { display: none; }
  .feedback-disclosure > summary small { display: none; }
}
@media (max-width: 640px) {
  .footer, .site-balance .footer, .footer.footer-shared { padding-top: 32px; }
  :is(.footer, .footer.footer-shared) .feedback-fields, .footer.footer-shared .feedback-fields { grid-template-columns: 1fr; }
  :is(.footer, .footer.footer-shared) .feedback-actions { align-items: stretch; flex-direction: column; }
  :is(.footer, .footer.footer-shared) .feedback-submit { width: 100%; }
  :is(.footer, .footer.footer-shared) .footer-link-row, .footer.footer-shared .footer-link-row { flex-direction: column; align-items: flex-start; }
  .footer.footer-shared .feedback-consent-documents { margin-left: 30px; gap: 0 12px; }
  .table-scroll-hint { display: block; color: var(--text-secondary); font-size: 14px; }
  .guide-modes-table :is(th, td) { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .button:is(:hover, :active), .nav-cta:active, .button .button-arrow { transform: none; }
}

/* Public footer: navigation first, an optional form, then corporate details. */
.footer.footer-final { padding-top: 56px; background: var(--surface-secondary); }
.footer-final .footer-navigation { display: grid; grid-template-columns: .85fr 1fr 1.45fr 1.1fr; gap: 32px; padding-bottom: 40px; }
.footer-final .footer-group { min-width: 0; }
.footer-final .footer-group h2 { margin: 0 0 16px; color: var(--text-primary); font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.footer-final .footer-group > a, .footer-final .footer-group > button { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; padding-block: 8px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; text-decoration: none; text-align: left; overflow-wrap: anywhere; }
.footer-final .footer-group > a:hover, .footer-final .footer-group > button:hover { color: var(--brand); text-decoration: underline; }
.footer-final .footer-group > .footer-email { color: var(--brand); font-weight: 500; }
.footer-final .footer-developer > span { display: block; margin-block: 6px 8px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer-final .feedback-disclosure { margin-bottom: 28px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-final .feedback-disclosure > summary { min-height: 72px; padding-block: 16px; font-size: 20px; line-height: 1.4; font-weight: 500; }
.footer-final .feedback-summary-note { margin-left: auto; color: var(--text-muted); font-size: 13px; font-weight: 400; }
.footer-final .feedback-disclosure > summary::after { margin-left: 12px; }
.footer-final .feedback-disclosure > summary::-webkit-details-marker { display: none; }
.footer-final .feedback-disclosure[open] .footer-feedback { padding-block: 12px 28px; }
.footer-final .footer-feedback-link { padding-block: 20px; margin-bottom: 28px; border-block: 1px solid var(--border); }
.footer-final .footer-feedback-link a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--text-primary); font-size: 20px; font-weight: 500; text-decoration: none; }
.footer-final .footer-bottom { display: flex; align-items: start; justify-content: space-between; gap: 28px; }
.footer-final .footer-bottom .footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; max-width: 53rem; font-size: 13px; }
.footer-final .footer-bottom .footer-details { flex-basis: 100%; }
.footer-final .footer-bottom .footer-alpha { flex: 0 1 280px; margin: 0; font-size: 13px; line-height: 1.6; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .footer-final .feedback-disclosure::details-content { opacity: 0; transition: opacity 200ms var(--ease-ui), content-visibility 220ms allow-discrete; }
  .footer-final .feedback-disclosure[open]::details-content { opacity: 1; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .topbar .nav-links:is(.open, .is-open) { animation: ghostlink-menu-enter 180ms var(--ease-ui); }
}
@keyframes ghostlink-menu-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .footer-final .footer-navigation { grid-template-columns: 1fr 1fr; gap: 28px 48px; }
}
@media (max-width: 600px) {
  .footer.footer-final { padding-top: 40px; }
  .footer-final .footer-navigation { gap: 26px 22px; padding-bottom: 28px; }
  .footer-final .footer-group h2 { margin-bottom: 8px; }
  .footer-final .footer-group > a, .footer-final .footer-group > button { font-size: 13px; }
  .footer-final .footer-group:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .footer-final .footer-group:nth-child(3) h2 { grid-column: 1 / -1; }
  .footer-final .footer-developer { grid-column: 1 / -1; }
  .footer-final .footer-developer > span { display: none; }
  .footer-final .footer-group.footer-developer > .footer-email { font-size: 15px; }
  .footer-final .feedback-disclosure > summary { gap: 12px; min-height: 68px; font-size: 18px; }
  .footer-final .feedback-disclosure > summary::after { margin-left: auto; }
  .footer-final .feedback-summary-note { display: none; }
  .footer-final .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-final .footer-bottom .footer-brand { display: grid; gap: 8px; }
  .footer-final .footer-bottom .footer-alpha { flex-basis: auto; text-align: left; }
}
