.site-footer.portal-footer {
  --footer-text: #d3ddef;
  --footer-icon: #9eb8f2;
  --footer-line: #394961;
  --footer-accent: #d8fa96;
  color: #f5f7ff;
  background: radial-gradient(ellipse at 92% -60%, #203c69, transparent 72%), #0b1529;
  border-top: 1px solid #263b60;
  padding-block: clamp(10px, 1.9vw, 27px);
}

.portal-footer .footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px clamp(22px, 4vw, 58px);
  padding-block: 14px clamp(16px, 2.3vw, 32px);
}

.portal-footer .footer-brand {
  gap: 14px;
  min-width: 0;
  white-space: normal;
  font-size: clamp(1.17rem, 2.05vw, 1.64rem);
  letter-spacing: -.045em;
}

.portal-footer .footer-brand .footer-mark {
  flex: none;
  width: 59px;
  height: 62px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
}

.portal-footer .footer-brand small {
  display: block;
  margin-top: 5px;
  color: var(--footer-text);
  font-size: .82rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.35;
}

.portal-footer .footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(18px, 3.5vw, 51px);
  margin: 0;
}

.portal-footer a.footer-contact {
  min-height: 48px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #f5f7ff;
  text-decoration: none;
}

.portal-footer .footer-contact-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #4a6388;
  border-radius: 10px;
  background: #223754;
}

.portal-footer .footer-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--footer-icon);
}

.portal-footer .footer-contact strong { display: block; font-size: .99rem; font-weight: 650; }
.portal-footer .footer-contact small {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--footer-text);
  font-size: .77rem;
  line-height: 1.35;
}
.portal-footer .footer-address small { margin-top: 3px; }
.portal-footer .footer-address small svg { width: 13px; height: 13px; }

.portal-footer .footer-call strong {
  margin-top: 2px;
  color: var(--footer-accent);
  font-size: clamp(1.13rem, 1.95vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.portal-footer .footer-call .footer-contact-icon {
  border-color: transparent;
  background: var(--footer-accent);
}
.portal-footer .footer-call .footer-contact-icon svg { color: #1a2c0b; }
.portal-footer .footer-contact:hover strong { text-decoration: underline; text-underline-offset: .18em; }

.portal-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 2px 20px;
  border-top: 1px solid var(--footer-line);
  padding-top: 8px;
}

.portal-footer .footer-nav,
.portal-footer .footer-utilities {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 clamp(10px, 1.65vw, 24px);
}

.portal-footer :is(a.footer-nav-link, a.footer-social, a.footer-top, summary) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 6px;
  color: var(--footer-text);
  font-size: .84rem;
  font-weight: 530;
  line-height: 1.25;
  text-decoration: none;
}

.portal-footer :is(a.footer-nav-link, a.footer-social, a.footer-top, summary):hover,
.portal-footer .footer-nav-link[aria-current="page"],
.portal-footer details[open] summary {
  color: var(--footer-accent);
}

.portal-footer a:focus-visible, .portal-footer summary:focus-visible { outline-color: var(--footer-accent); }
.portal-footer .footer-partners { position: relative; display: block; }
.portal-footer summary { cursor: pointer; list-style: none; }
.portal-footer summary::-webkit-details-marker { display: none; }
.portal-footer details[open] summary svg { transform: rotate(180deg); }

.portal-footer .footer-partner-list {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(100% + 6px);
  width: min(335px, calc(100vw - 50px));
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #14243e;
  border: 1px solid #425a7e;
  border-radius: 12px;
  box-shadow: 0 9px 25px #0006;
}
.portal-footer .footer-partner-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--footer-text);
  text-decoration: none;
}
.portal-footer .footer-partner-list a:hover { color: #fff; background: #263b59; }
.portal-footer .footer-partner-list svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .portal-footer .footer-links { display: grid; grid-template-columns: minmax(0, 1fr); }
  .portal-footer .footer-utilities {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0 10px;
  }
  .portal-footer .footer-nav { gap: 0 13px; }
  .portal-footer .footer-utilities { position: relative; }
  .portal-footer .footer-partners { position: static; }
  .portal-footer .footer-partner-list { width: min(100%, 335px); }
}

@media (max-width: 520px) {
  .portal-footer .footer-main { gap: 13px; padding-block: 12px 14px; }
  .portal-footer .footer-contact-links { width: 100%; gap: 3px 16px; }
  .portal-footer .footer-brand .footer-mark { width: 49px; height: 52px; }
  .portal-footer .footer-contact-icon { width: 34px; height: 34px; }
  .portal-footer .footer-nav a { min-height: 42px; }
}


