/* ══ NAVIGATION — approved THE FIRM implementation: header · dropdowns · Menu · search offset ══ */
.nav-wordmark {
  display: flex; align-items: center;
  font-family: var(--f-disp); font-weight: 700;
  font-size: 20px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ox-purple);
  text-decoration: none; white-space: nowrap;
}
.nav-wordmark-dot {
  width: 0.55em; height: 0.55em; background: var(--ox-orange);
  border-radius: 50%; display: inline-block; margin: 0 0.06em 0 0;
  position: relative; top: 0; align-self: center;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.nav-wordmark-dot.live {
  opacity: 1; transform: scale(1);
  animation: logoBeat 4s cubic-bezier(0.4,0,0.2,1) infinite;
}

.ca-header, .ca-menu { --ca-rule: rgba(30,27,75,0.16); --ca-rule-strong: rgba(30,27,75,0.55); --ca-soft: #F6F6F6; --ca-body: rgba(30,27,75,0.82); }
.ca-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.ca-mono { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
.ca-header { position: sticky; top: 0; z-index: 80; background: #FFFFFF; border-bottom: 1px solid var(--ca-rule); }
.ca-header .ca-wrap { max-width: 1560px; }
.ca-header nav { position: static; background: none; border: 0; z-index: auto; }
.ca-header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.ca-header .nav-wordmark { flex: 0 0 auto; }
.ca-primary { flex: 1 1 auto; display: flex; justify-content: center; }
.ca-primary > ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.ca-primary li { position: relative; display: flex; align-items: center; white-space: nowrap; }
.ca-primary a, .ca-dd-btn { font-family: var(--f-disp); font-size: 15px; font-weight: 400; color: var(--ox-indigo); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; white-space: nowrap; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ca-primary a:hover, .ca-dd-btn:hover, .ca-primary .ca-dd.open > .ca-dd-btn, .ca-primary .ca-dd.open > .ca-dd-link { color: var(--ox-orange); border-bottom-color: var(--ox-orange); }
.ca-dd-caret { display: inline-block; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.ca-dd-toggle { background: none; border: 0; padding: 8px 0 8px 6px; cursor: pointer; color: var(--ox-indigo); }
.ca-dd-toggle:hover { color: var(--ox-orange); }
.ca-dd-panel { position: absolute; top: calc(100% + 18px); left: -24px; min-width: 300px; background: #FFFFFF; border: 1px solid var(--ca-rule); border-top: 2px solid var(--ox-orange); padding: 14px 24px 16px; display: none; z-index: 90; box-shadow: 0 16px 32px rgba(30,27,75,0.08); }
.ca-dd.open .ca-dd-panel { display: block; }
.ca-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.ca-dd-panel a { display: block; font-size: 15px; font-weight: 400; padding: 9px 0; border-bottom: 1px solid var(--ca-rule); white-space: normal; }
.ca-dd-panel a:last-child { border-bottom: 0; }
.ca-dd-panel a:hover { border-bottom-color: var(--ca-rule); }
.ca-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ca-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; color: var(--ox-indigo); cursor: pointer; }
.ca-icon-btn:hover { color: var(--ox-orange); }
.ca-btn { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-disp); font-size: 15px; font-weight: 600; color: var(--ox-indigo); background: #FFFFFF; border: 1px solid var(--ox-indigo); padding: 10px 18px; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.ca-btn:hover { color: var(--ox-orange); border-color: var(--ox-orange); }
.ca-menu-btn { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ox-indigo); background: #FFFFFF; border: 1px solid var(--ox-indigo); padding: 12px 16px; cursor: pointer; display: none; }
.ca-menu-btn:hover { color: var(--ox-orange); border-color: var(--ox-orange); }
.ca-menu { position: fixed; left: 0; right: 0; bottom: 0; top: var(--ca-menu-top, 84px); background: #FFFFFF; z-index: 79; overflow-y: auto; border-top: 1px solid var(--ca-rule); }
.ca-menu[hidden] { display: none; }
.ca-menu-inner { max-width: 1000px; margin: 0 auto; padding: 40px 48px 64px; }
.ca-menu-group { padding: 26px 0 8px; }
.ca-menu-group + .ca-menu-group { border-top: 1px solid var(--ca-rule); }
.ca-menu-label { color: var(--ox-indigo); margin-bottom: 10px; }
.ca-acc-btn, .ca-menu-link { width: 100%; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-disp); font-size: clamp(1.6rem, 2.1vw, 2.05rem); font-weight: 400; color: var(--ox-indigo); background: none; border: 0; padding: 12px 0; text-align: left; cursor: pointer; text-decoration: none; }
.ca-acc-btn:hover, .ca-menu-link:hover { color: var(--ox-orange); }
.ca-acc-sign { font-family: var(--f-mono); font-size: 20px; color: var(--ox-orange); width: 24px; text-align: center; }
.ca-acc-body { border-left: 1px solid var(--ox-orange); margin: 4px 0 14px 2px; padding: 4px 0 4px 22px; }
.ca-acc-body[hidden] { display: none; }
.ca-acc-body a { display: block; font-size: 20px; color: var(--ox-indigo); text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--ca-rule); }
.ca-acc-body a:hover { color: var(--ox-orange); }
.ca-acc-body a.ca-overview { font-size: 15px; color: var(--ca-body); }
.ca-acc-body .ca-sub { border-bottom: 1px solid var(--ca-rule); padding-bottom: 6px; }
.ca-acc-body .ca-sub > a { border-bottom: 0; font-size: 20px; }
.ca-acc-body .ca-sub > div a { font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: 17px; padding: 5px 0 5px 16px; border-bottom: 0; color: var(--ca-body); }
.ca-acc-body .ca-sub > div a:hover { color: var(--ox-orange); }
.ca-menu-foot { margin-top: 34px; }
body.ca-menu-open { overflow: hidden; }
@media (min-width: 0px) {
.ca-primary { display: none; }
.ca-menu-btn { display: inline-block; }
}
@media (max-width: 1100px) {
.ca-wrap { padding: 0 36px; }
}
@media (max-width: 700px) {
.ca-header .ca-btn { display: none; }
}
@media (max-width: 640px) {
.ca-wrap { padding: 0 20px; }
.ca-header-inner { min-height: 72px; gap: 8px; }
.ca-header .nav-wordmark { font-size: 15px; letter-spacing: 0.16em; }
.ca-actions { gap: 4px; }
.ca-menu-inner { padding: 28px 20px 56px; }
.ca-acc-btn, .ca-menu-link { font-size: clamp(1.6rem, 2.1vw, 2.05rem); }
}
.ca-header, .ca-menu { font-variant-numeric: lining-nums; }
.ca-primary a, .ca-dd-btn, .ca-dd-panel a, .ca-acc-btn, .ca-menu-link, .ca-acc-body a { font-family: var(--f-disp); font-weight: 400; }
.ca-mono {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.ca-btn, .ca-menu-btn, .ca-acc-sign {
  font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.ca-btn, .ca-menu-btn { font-size: 12px; }
#mPC .ca-sub > a { font-size: 20px; color: var(--ox-indigo); }
.ca-header ~ .search-panel { top: var(--ca-search-top, var(--nav-h, 90px)); max-height: calc(100vh - var(--ca-search-top, var(--nav-h, 90px))); }

/* ══ STAGE 2 CORRECTIONS (v2) — no cookie-related rules ══ */
html:root { overflow-x: visible; }                                   /* A1: window is the only scroller, so the header sticks and the lock works */
html body .emergency-banner { position: relative; }                  /* A2: the emergency banner scrolls away */
html body .ca-menu { overscroll-behavior: contain; }                 /* A3: Menu scrolling never passes to the page */
html.ca-lock-gutter { scrollbar-gutter: stable; }                    /* A4: no width shift when a panel locks the page */
html body .ca-menu a, html body .ca-menu button { scroll-margin-bottom: 8px; }  /* A7.3: a focused Menu item and its outline stay inside the Menu's visible area */
html body #main-content, html body #main-content *, html body footer, html body footer * {
  scroll-margin-top: calc(var(--ca-header-h, 85px) + 8px);           /* A10: focused content lands below the sticky header */
}
@media (max-width: 600px) {                                          /* A11 (R-1 option a): one compact mobile emergency banner */
  html body .emergency-banner { font-size: 12px; padding: 7px 16px; }   /* T-70 option B (authorised 18 Nov) */
  html body .emergency-banner .banner-main > span:not(:first-child),
  html body .emergency-banner .banner-contacts > span,
  html body .emergency-banner .banner-email { display: none; }
  html body .emergency-banner .banner-contacts { display: flex; }
}
/* T-56 (authorised 18 Nov 2026): at short window heights only, reduce the space above the first Menu control just
   enough for that control and its whole focus outline to be visible below the header. Every value returns to the
   approved one as soon as the window is tall enough, and nothing else in the Menu changes.
   Per width band: K = header bottom at page top + first control height + 29px (border, label, outline, 2px margin).
   Band limits are set so that, near a wrapping point, the larger header height is assumed. */
@media (max-width: 419px) and (max-height: 283px) {   /* band A: header 136px, first control 55px, approved top padding 28px */
  html body .ca-menu-inner { padding-top: clamp(0px, calc(100vh - 256px), 28px); padding-top: clamp(0px, calc(100dvh - 256px), 28px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type { padding-top: clamp(0px, calc(100vh - 230px), 26px); padding-top: clamp(0px, calc(100dvh - 230px), 26px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type > .ca-menu-label { margin-bottom: clamp(6px, calc(100vh - 220px), 10px); margin-bottom: clamp(6px, calc(100dvh - 220px), 10px); }
}
@media (min-width: 420px) and (max-width: 600px) and (max-height: 254px) {   /* band B: header 107px, first control 55px, approved top padding 28px */
  html body .ca-menu-inner { padding-top: clamp(0px, calc(100vh - 227px), 28px); padding-top: clamp(0px, calc(100dvh - 227px), 28px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type { padding-top: clamp(0px, calc(100vh - 201px), 26px); padding-top: clamp(0px, calc(100dvh - 201px), 26px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type > .ca-menu-label { margin-bottom: clamp(6px, calc(100vh - 191px), 10px); margin-bottom: clamp(6px, calc(100dvh - 191px), 10px); }
}
@media (min-width: 601px) and (max-width: 631px) and (max-height: 303px) {   /* band C1: header 156px, first control 55px, approved top padding 28px */
  html body .ca-menu-inner { padding-top: clamp(0px, calc(100vh - 276px), 28px); padding-top: clamp(0px, calc(100dvh - 276px), 28px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type { padding-top: clamp(0px, calc(100vh - 250px), 26px); padding-top: clamp(0px, calc(100dvh - 250px), 26px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type > .ca-menu-label { margin-bottom: clamp(6px, calc(100vh - 240px), 10px); margin-bottom: clamp(6px, calc(100dvh - 240px), 10px); }
}
@media (min-width: 632px) and (max-width: 640px) and (max-height: 315px) {   /* band C1b: header 168px, first control 55px, approved top padding 28px */
  html body .ca-menu-inner { padding-top: clamp(0px, calc(100vh - 288px), 28px); padding-top: clamp(0px, calc(100dvh - 288px), 28px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type { padding-top: clamp(0px, calc(100vh - 262px), 26px); padding-top: clamp(0px, calc(100dvh - 262px), 26px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type > .ca-menu-label { margin-bottom: clamp(6px, calc(100vh - 252px), 10px); margin-bottom: clamp(6px, calc(100dvh - 252px), 10px); }
}
@media (min-width: 641px) and (max-width: 909px) and (max-height: 327px) {   /* band C2: header 168px, first control 55px, approved top padding 40px */
  html body .ca-menu-inner { padding-top: clamp(0px, calc(100vh - 288px), 40px); padding-top: clamp(0px, calc(100dvh - 288px), 40px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type { padding-top: clamp(0px, calc(100vh - 262px), 26px); padding-top: clamp(0px, calc(100dvh - 262px), 26px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type > .ca-menu-label { margin-bottom: clamp(6px, calc(100vh - 252px), 10px); margin-bottom: clamp(6px, calc(100dvh - 252px), 10px); }
}
@media (min-width: 910px) and (max-height: 302px) {   /* band D: header 135px, first control 63px, approved top padding 40px */
  html body .ca-menu-inner { padding-top: clamp(0px, calc(100vh - 263px), 40px); padding-top: clamp(0px, calc(100dvh - 263px), 40px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type { padding-top: clamp(0px, calc(100vh - 237px), 26px); padding-top: clamp(0px, calc(100dvh - 237px), 26px); }
  html body .ca-menu-inner > .ca-menu-group:first-of-type > .ca-menu-label { margin-bottom: clamp(6px, calc(100vh - 227px), 10px); margin-bottom: clamp(6px, calc(100dvh - 227px), 10px); }
}
