.portal-site-footer{
  margin-top: 40px;
  background: linear-gradient(180deg, #2f4a7e 0%, #263f6d 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -10px 24px rgba(18,34,58,0.10);
}

.portal-site-footer__inner{
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-site-footer__links{
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.portal-site-footer__link{
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portal-site-footer__link:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.portal-site-footer__link:focus-visible{
  outline: 2px solid rgba(255,255,255,0.88);
  outline-offset: 6px;
  border-radius: 12px;
}

.portal-site-footer__copyright{
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.portal-footer-modal{
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.portal-footer-modal[hidden]{
  display: none !important;
}

.portal-footer-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 44, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portal-footer-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  border-radius: 28px;
  border: 1px solid rgba(42, 77, 129, 0.16);
  box-shadow: 0 26px 80px rgba(18, 36, 62, 0.24);
  background:
    linear-gradient(180deg, rgba(66, 114, 186, 0.12) 0%, rgba(255, 255, 255, 0) 34%),
    #ffffff;
  padding: 26px 26px 22px;
  color: #233754;
}

.portal-footer-modal__body{
  display: grid;
  gap: 14px;
}

.portal-footer-modal__eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47, 93, 168, 0.10);
  color: #315d9f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-footer-modal__title{
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  color: #274b80;
  letter-spacing: -0.02em;
}

.portal-footer-modal__lead,
.portal-footer-modal__note{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #3b526f;
}

.portal-footer-modal__list{
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #2c4462;
  font-size: 15px;
  line-height: 1.65;
}

.portal-footer-modal__actions{
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.portal-footer-modal__back{
  min-width: 120px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f5fa8 0%, #21467d 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(35, 72, 124, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.portal-footer-modal__back:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(35, 72, 124, 0.30);
}

.portal-footer-modal__back:focus-visible{
  outline: 3px solid rgba(49, 97, 168, 0.24);
  outline-offset: 3px;
}

.portal-footer-modal-open{
  overflow: hidden;
}

@media (max-width: 900px){
  .portal-site-footer__inner{
    padding: 18px 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-site-footer__links{
    gap: 18px 24px;
  }

  .portal-site-footer__copyright{
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 640px){
  .portal-footer-modal{
    padding: 16px;
    align-items: flex-end;
  }

  .portal-footer-modal__dialog{
    width: min(100%, 480px);
    border-radius: 24px;
    padding: 22px 18px 18px;
  }

  .portal-footer-modal__title{
    font-size: 24px;
  }

  .portal-footer-modal__lead,
  .portal-footer-modal__note,
  .portal-footer-modal__list{
    font-size: 14px;
  }

  .portal-footer-modal__actions{
    justify-content: stretch;
  }

  .portal-footer-modal__back{
    width: 100%;
  }
}
