:root {
  --site-font: "Segoe UI", Arial, sans-serif;
  --site-ink: #0a2a57;
  --site-blue: #00376e;
  --site-yellow: #e9b66b;
  --site-line: #dbe6f2;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 164px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--site-ink); background: #fff; font: 17px/1.6 var(--site-font); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1257c4; outline-offset: 4px; }
#main-content:focus { outline: none; }
.site-wrap { width: 100%; max-width: 1200px; padding-inline: 40px; margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 20px; background: var(--site-yellow); color: var(--site-ink); transform: translateY(-160%); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--site-line); }
.site-header__main { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 100px; padding-block: 18px; }
.site-logo { display: block; flex: 0 1 320px; }
.site-logo img { display: block; width: 100%; }
.site-header__region { margin: 0; font-size: 12px; line-height: 1.5; color: #526580; }
.site-phone { display: block; flex-shrink: 0; font-size: 20px; font-weight: 750; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.site-phone span { display: block; color: #526580; font-size: 12px; font-weight: 400; }
.site-phone:hover { color: #1257c4; }
.site-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border-radius: 8px; background: var(--site-yellow); color: var(--site-ink); text-decoration: none; text-align: center; font-size: 14px; font-weight: 750; line-height: 1.3; }
.site-cta:hover { background: #d6a153; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--site-line); }
.site-nav a { padding-block: 13px; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: #1257c4; text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu { display: none; }
.site-footer { background: #012c58; color: #fff; padding-top: 52px; }
.site-footer__grid { display: grid; grid-template-columns: 1.25fr 1fr .7fr 1.2fr; gap: 32px; padding-bottom: 44px; }
.site-footer h2 { margin: 0 0 16px; font-size: 15px; font-weight: 700; }
.site-footer p { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #cfe2f5; }
.site-footer__name { font-size: 23px; line-height: 1.2; font-weight: 800; text-decoration: none; }
.site-footer nav a { display: block; width: fit-content; padding-block: 6px; font-size: 14px; text-decoration: none; color: #cfe2f5; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__phone { font-size: 20px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.site-footer .site-cta { margin-top: 20px; }
.site-footer :focus-visible { outline-color: var(--site-yellow); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #335879; padding-block: 22px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { font-size: 13px; color: #cfe2f5; text-decoration: none; }
@media (max-width: 1100px) { .site-header__region { display: none; } .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 782px) {
  html { scroll-padding-top: 140px; }
  .site-wrap { padding-inline: 20px; }
  .site-header__main { min-height: 76px; padding-block: 14px; gap: 12px; }
  .site-logo { flex-basis: 240px; }
  .site-phone { font-size: 16px; }
  .site-phone span { font-size: 10px; }
  .site-header__main > .site-cta, .site-nav { display: none; }
  .mobile-menu { display: block; border-top: 1px solid var(--site-line); }
  .mobile-menu summary { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 10px 20px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu__icon::before { content: "+"; font-size: 24px; line-height: 1; }
  .mobile-menu[open] .mobile-menu__icon::before { content: "−"; }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 135px); overflow-y: auto; padding: 8px 20px 16px; background: #fff; border-bottom: 1px solid var(--site-line); box-shadow: 0 12px 20px #012c581a; }
  .mobile-menu nav a { display: block; padding: 12px 0; font-size: 16px; text-decoration: none; border-top: 1px solid var(--site-line); }
  .mobile-menu nav a:hover { color: #1257c4; }
  .site-footer { padding-top: 36px; }
  .site-footer__grid { gap: 30px 24px; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .site-header__main { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .site-logo { flex: 0 1 260px; }
  .site-phone { font-size: 16px; }
  .site-phone span { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Compact header: logo left, call and menu controls right at every width. */
html.has-compact-header { scroll-padding-top: 88px; scroll-behavior: smooth; }
.site-header--compact .site-header__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  gap: 8px;
  width: 100%;
  max-width: none;
  min-height: 72px;
  padding: 12px clamp(16px, 3vw, 40px);
}
.site-header--compact .site-logo { display: flex; align-items: center; width: 100%; max-width: 250px; min-width: 0; min-height: 48px; justify-self: start; }
.site-header--compact .site-phone,
.site-header--compact .mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--site-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-header--compact .site-phone { background: var(--site-yellow); }
.site-header--compact .site-phone:hover { background: #d6a153; }
.site-header--compact .mobile-menu { display: block; border: 0; }
.site-header--compact .mobile-menu summary { list-style: none; }
.site-header--compact .mobile-menu summary::-webkit-details-marker { display: none; }
.site-header--compact .mobile-menu summary:hover,
.site-header--compact .mobile-menu[open] summary { background: #eef4fa; }
.site-header--compact .mobile-menu__icon,
.site-header--compact .mobile-menu__icon::before,
.site-header--compact .mobile-menu__icon::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.site-header--compact .mobile-menu__icon { position: relative; }
.site-header--compact .mobile-menu__icon::before,
.site-header--compact .mobile-menu__icon::after { content: ""; position: absolute; left: 0; }
.site-header--compact .mobile-menu__icon::before { top: -7px; }
.site-header--compact .mobile-menu__icon::after { top: 7px; }
.site-header--compact .mobile-menu[open] .mobile-menu__icon { background: transparent; }
.site-header--compact .mobile-menu[open] .mobile-menu__icon::before { content: ""; top: 0; transform: rotate(45deg); }
.site-header--compact .mobile-menu[open] .mobile-menu__icon::after { top: 0; transform: rotate(-45deg); }
.site-header--compact .mobile-menu nav {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  width: min(100%, 420px);
  max-height: calc(100vh - 73px);
  max-height: calc(100dvh - 73px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px 20px;
  background: #fff;
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  box-shadow: 0 12px 20px #012c581a;
}
.site-header--compact .mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 650;
  text-decoration: none;
  border-top: 1px solid var(--site-line);
}
.site-header--compact .mobile-menu nav a:first-child { border-top: 0; }
.site-header--compact .mobile-menu nav a:hover { color: #1257c4; }
.site-header--compact .mobile-menu nav .site-cta { margin-top: 12px; padding: 14px 16px; border: 0; }

@media (prefers-reduced-motion: reduce) { html.has-compact-header { scroll-behavior: auto; } }
