/* Shared public navigation, breadcrumbs and footer. No Tailwind dependency.
   Loaded last; application panels and calculator styles are intentionally untouched. */
:root { --ak-accent: #3156c8; --ak-accent-hover: #2544a6; }
[data-site-header], [data-site-footer], .site-breadcrumb {
  box-sizing: border-box; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-align: left;
  color: #203633; text-transform: none; text-shadow: none;
}
[data-site-header] *, [data-site-footer] *, .site-breadcrumb * { box-sizing: border-box; }
body > [data-site-header] { position: sticky; top: 0; z-index: 30; flex: none; width: 100%; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #d5dfd9; background: #fff; }
/* Games already have a sticky HUD; site navigation must not cover its controls. */
body > [data-site-game-header] { position: relative; }
.site-header__inner { position: relative; max-width: 80rem; min-height: 80px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
[data-site-header] a { text-decoration: none; color: #203633; }
[data-site-header] .site-header__brand { display: inline-flex; flex: none; align-items: center; gap: 12px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.site-header__brand img { display: block; width: 82px; height: 40px; object-fit: contain; }
[data-site-header] .site-header__desktop { display: flex; align-items: center; gap: 6px; }
[data-site-header] .site-header__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 11px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
[data-site-header] .site-header__link:hover { color: var(--ak-accent); background: #f1f4fc; }
[data-site-header] .site-header__link[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
[data-site-header] .site-header__education { margin-left: 5px; color: var(--ak-accent); border-color: #c8d3f2; background: #edf1fc; font-weight: 700; }
[data-site-header] .site-header__education:hover { background: #dfe7fb; border-color: var(--ak-accent); }
[data-site-header] .site-header__consultation { margin-left: 5px; color: #fff; background: var(--ak-accent); font-weight: 650; }
[data-site-header] .site-header__consultation:hover { color: #fff; background: var(--ak-accent-hover); }
.site-header__mobile { display: none; }
[data-site-header] .site-header__toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; margin: 0; border: 1px solid #d5dfd9; border-radius: 10px; background: #fff; color: #203633; cursor: pointer; list-style: none; font: inherit; font-weight: 650; }
.site-header__toggle::-webkit-details-marker { display: none; }
.site-header__toggle svg { width: 22px; height: 22px; }
[data-site-header] .site-header__mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 24px; border-bottom: 1px solid #d5dfd9; background: #fff; box-shadow: 0 14px 22px #20363314; max-height: min(75vh, 620px); overflow-y: auto; }
.site-header__mobile[open] .site-header__mobile-nav { display: flex !important; }
.site-header__mobile:not([open]) .site-header__mobile-nav { display: none !important; }
.site-header__mobile-nav .site-header__link { justify-content: flex-start; margin-left: 0; white-space: normal; }
[data-site-header] a:focus-visible, [data-site-header] summary:focus-visible, [data-site-footer] a:focus-visible, .site-breadcrumb a:focus-visible { outline: 3px solid var(--ak-accent); outline-offset: 3px; }
.site-breadcrumb { flex: none; width: 100%; margin: 0; padding: 0; background: #f3f5f8; border-bottom: 1px solid #e0e5ed; }
.site-breadcrumb ol { max-width: 80rem; min-height: 52px; margin: 0 auto; padding: 13px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; }
.site-breadcrumb li { display: inline-flex; align-items: baseline; min-width: 0; margin: 0; padding: 0; overflow-wrap: anywhere; }
.site-breadcrumb li + li::before { content: "›"; flex: none; margin: 0 12px; color: #52647c; }
.site-breadcrumb a { color: var(--ak-accent); text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-breadcrumb [aria-current="page"] { color: #526176; }
body .site-footer[data-site-footer] { flex: none; width: 100%; margin: 64px 0 0; padding: 44px 0 24px; border: 0; border-top: 1px solid #d5dfd9; background: #f0f2ed; color: #52645f; }
[data-site-footer] .site-footer__inner { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 24px; }
[data-site-footer] .site-footer__columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr); align-items: start; gap: 48px; }
[data-site-footer] a, [data-site-footer] p { color: #52645f; text-decoration: none; }
[data-site-footer] a:hover { color: var(--ak-accent); text-decoration: underline; text-underline-offset: 3px; }
[data-site-footer] .site-footer__identity { display: inline-flex; align-items: center; gap: 12px; color: #203633; font-weight: 650; font-size: 16px; }
[data-site-footer] .site-footer__identity img { display: block; width: 82px; height: 40px; object-fit: contain; }
[data-site-footer] .site-footer__brand p { max-width: 35ch; margin: 16px 0 0; font-size: 14px; line-height: 1.7; }
[data-site-footer] .site-footer__brand .site-footer__region { margin-top: 12px; font-size: 12px; }
[data-site-footer] .site-footer__nav, [data-site-footer] .site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
[data-site-footer] :is(.site-footer__nav,.site-footer__contact) h2 { margin: 0 0 12px; padding: 0; font-size: 15px; line-height: 1.5; color: #203633; font-weight: 700; }
[data-site-footer] :is(.site-footer__nav,.site-footer__contact) a { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; overflow-wrap: anywhere; }
[data-site-footer] .site-footer__contact p { margin: 0 0 12px; font-size: 14px; }
[data-site-footer] .site-footer__education { gap: 8px; color: var(--ak-accent); font-weight: 700; }
body .site-footer[data-site-footer] .site-footer__cta { display: inline-flex; justify-content: center; min-height: 44px; margin-top: 12px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--ak-accent); font-weight: 650; text-decoration: none; }
body .site-footer[data-site-footer] .site-footer__cta:hover { color: #fff; background: var(--ak-accent-hover); }
[data-site-footer] .site-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #d5dfd9; font-size: 12px; }
[data-site-footer] .site-footer__bottom p { margin: 0; font-size: 12px; }
[data-site-footer] .site-footer__bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
[data-site-footer] .consent-settings { font: inherit; }
@media (max-width: 1199px) { [data-site-header] .site-header__desktop { display: none; } .site-header__mobile { display: block; } }
@media (max-width: 760px) { [data-site-footer] .site-footer__columns { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 479px) {
  .site-header__inner { padding: 10px 16px; min-height: 72px; gap: 8px; }
  [data-site-header] .site-header__brand { font-size: 14px; gap: 6px; }
  .site-header__brand img { width: 64px; height: 36px; }
  [data-site-header] .site-header__mobile-nav { padding: 12px 16px; }
  .site-breadcrumb ol { padding: 12px 16px; font-size: 13px; }
  .site-breadcrumb li + li::before { margin: 0 8px; }
  [data-site-footer] .site-footer__inner { padding: 0 16px; }
}
