.rc-shared-header, .rc-shared-header *, .rc-shared-footer, .rc-shared-footer * { box-sizing: border-box; }
.rc-shared-header { --rc-shared-blue: #2167a9; --rc-shared-navy: #0e2740; position: sticky; top: 0; z-index: 100; padding: 8px clamp(10px, 2vw, 30px); color: var(--rc-shared-navy); background: transparent; }
body:has(> .rc-shared-header) { overflow-x: clip; }
body > .rc-shared-header { position: sticky; z-index: 100; }
body.admin-bar > .rc-shared-header { top: 32px; }
html:has(.rc-shared-header) { scroll-padding-top: 104px; }
.rc-shared-header__inner { position: relative; display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); min-height: 72px; padding: 0 clamp(18px, 2vw, 32px); border-radius: 26px; background: #fff; box-shadow: 0 8px 24px rgba(14,39,64,.18); }
.rc-shared-header__brand { flex: none; display: inline-flex; align-items: center; }
.rc-shared-header__brand img { display: block; width: auto; height: 34px; max-width: 190px; object-fit: contain; }
.rc-shared-header__nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); margin-left: auto; font-size: 14px; font-weight: 700; }
.rc-shared-header__nav > a, .rc-shared-header__drop > summary { display: flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.rc-shared-header__nav > a:hover, .rc-shared-header__drop > summary:hover { color: var(--rc-shared-blue); }
.rc-shared-header__drop { position: relative; flex: none; }
.rc-shared-header__drop > summary { gap: 7px; list-style: none; cursor: pointer; }
.rc-shared-header__drop > summary::-webkit-details-marker { display: none; }
.rc-shared-header__drop > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.rc-shared-header__drop[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.rc-shared-header__submenu { position: absolute; z-index: 2; top: calc(100% + 16px); left: -20px; width: min(430px, 90vw); max-height: min(70vh, 560px); overflow-y: auto; padding: 12px; border: 1px solid #dbe5ed; border-radius: 14px; background: #fff; box-shadow: 0 16px 28px rgba(14,39,64,.16); }
.rc-shared-header__drop:nth-child(2) .rc-shared-header__submenu, .rc-shared-header__drop--align-right .rc-shared-header__submenu { right: -20px; left: auto; }
.rc-shared-header__submenu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--rc-shared-navy); line-height: 1.5; text-decoration: none; }
.rc-shared-header__submenu a:hover { background: #eaf3f9; }
.rc-shared-header__contact { flex: none; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--rc-shared-blue); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.rc-shared-header__contact:hover { background: #0f467a; color: #fff; }
.rc-shared-header__toggle { display: none; }
.rc-shared-header a:focus-visible, .rc-shared-header button:focus-visible, .rc-shared-header summary:focus-visible, .rc-shared-footer a:focus-visible { outline: 3px solid #2167a9; outline-offset: 3px; }

.rc-shared-footer { padding: 64px 0 28px; background: #0a1d31; color: rgba(255,255,255,.84); font-size: 14px; }
.rc-shared-footer__inner { width: min(100% - 40px, 1140px); margin-inline: auto; }
.rc-shared-footer__main { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.rc-shared-footer__brand img { display: block; width: auto; height: 34px; filter: brightness(0) invert(1); }
.rc-shared-footer__brand p { margin: 12px 0 0; line-height: 1.8; }
.rc-shared-footer__social { display: flex; align-items: center; gap: 8px; }
.rc-shared-footer__social a, .rc-shared-footer__social span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: #fff; }
.rc-shared-footer__social a:hover { background: rgba(255,255,255,.12); }
.rc-shared-footer__social svg { width: 26px; height: 26px; fill: currentColor; }
.rc-shared-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.rc-shared-footer__legal a { color: inherit; line-height: 1.5; text-decoration: none; }
.rc-shared-footer__legal a:hover { color: #fff; text-decoration: underline; }
.rc-shared-footer__copy { margin: 24px 0 0; color: rgba(255,255,255,.65); font-size: 12px; }

@media (max-width: 1279px) {
  .rc-shared-header__inner { min-height: 64px; }
  .rc-shared-header__toggle { order: 3; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: 1px solid #0e2740; border-radius: 10px; background: #fff; color: #0e2740; cursor: pointer; }
  .rc-shared-header__toggle span { width: 18px; height: 2px; background: currentColor; }
  .rc-shared-header__contact { order: 2; margin-left: auto; }
  .rc-shared-header__nav { position: absolute; top: calc(100% + 2px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 180px); overflow-y: auto; margin: 0; padding: 12px 20px 20px; border-radius: 0 0 18px 18px; background: #fff; box-shadow: 0 16px 28px rgba(14,39,64,.16); }
  .rc-shared-header__nav.is-open { display: flex; }
  .rc-shared-header__drop { width: 100%; }
  .rc-shared-header__nav > a, .rc-shared-header__drop > summary { min-height: 48px; border-bottom: 1px solid #dbe5ed; }
  .rc-shared-header__submenu, .rc-shared-header__drop:nth-child(2) .rc-shared-header__submenu, .rc-shared-header__drop--align-right .rc-shared-header__submenu { position: static; right: auto; left: auto; width: 100%; max-height: none; padding: 6px 0 10px 12px; border: 0; box-shadow: none; }
}
@media (max-width: 600px) {
  .rc-shared-header { padding: 6px 8px; }
  .rc-shared-header__inner { min-height: 62px; gap: 8px; padding: 0 12px; border-radius: 20px; }
  .rc-shared-header__brand img { height: 27px; max-width: 120px; }
  .rc-shared-header__contact { padding: 8px 10px; font-size: 12px; }
  .rc-shared-footer { padding-top: 48px; }
  .rc-shared-footer__main { flex-direction: column; }
  .rc-shared-footer__legal { flex-direction: column; gap: 10px; }
}
@media (max-width: 782px) { body.admin-bar:has(> .rc-shared-header) { padding-top: 46px; } body.admin-bar > .rc-shared-header { top: 0; } }
@media (max-width: 600px) { html:has(.rc-shared-header) { scroll-padding-top: 84px; } }
