.siteFooter {
  --footer-bg-top: #121822;
  --footer-bg-bottom: #0d121a;
  --footer-text: #dce4ef;
  --footer-muted: #9aa8be;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-link: #dce4ef;
  --footer-link-strong: #f4f7ff;
  --footer-chip-bg: rgba(255, 255, 255, 0.03);
  --footer-chip-border: rgba(255, 255, 255, 0.16);
  --footer-chip-hover-bg: rgba(255, 255, 255, 0.11);
  --footer-chip-hover-border: rgba(255, 255, 255, 0.34);

  margin-top: 56px;
  border-top: 1px solid var(--footer-border);
  background:
    radial-gradient(900px 260px at 8% -16%, rgba(92, 112, 255, 0.14), transparent 72%),
    linear-gradient(180deg, var(--footer-bg-top) 0%, var(--footer-bg-bottom) 100%);
  color: var(--footer-text);
}

html[data-theme="dark"] .siteFooter {
  --footer-bg-top: #0b1220;
  --footer-bg-bottom: #090f1b;
  --footer-text: #e5e7eb;
  --footer-muted: #cbd5e1;
  --footer-border: rgba(148, 163, 184, 0.35);
  --footer-link: #e5e7eb;
  --footer-link-strong: #f9fafb;
  --footer-chip-bg: rgba(148, 163, 184, 0.10);
  --footer-chip-border: rgba(148, 163, 184, 0.35);
  --footer-chip-hover-bg: rgba(148, 163, 184, 0.16);
  --footer-chip-hover-border: rgba(148, 163, 184, 0.45);
}

html[data-theme="accessible"] .siteFooter {
  --footer-bg-top: #ffffff;
  --footer-bg-bottom: #ffffff;
  --footer-text: #000000;
  --footer-muted: #111111;
  --footer-border: #000000;
  --footer-link: #000000;
  --footer-link-strong: #000000;
  --footer-chip-bg: #ffffff;
  --footer-chip-border: #000000;
  --footer-chip-hover-bg: #e6f1ff;
  --footer-chip-hover-border: #000000;
}

.siteFooterInner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(240px, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.siteFooterBrand h2 {
  margin: 0 0 10px;
  color: var(--footer-link-strong);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.siteFooterBrand p {
  margin: 0;
  max-width: 30ch;
  color: var(--footer-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.siteFooterBrandMail {
  margin-top: 22px;
}

.siteFooterCol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.siteFooterCol h3,
.siteFooterSocialBlock h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8f9db3;
}

.siteFooterCol a,
.siteFooterInlineBtn {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.35;
}

.siteFooterInlineBtn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.siteFooterCol a:hover,
.siteFooterCol a:focus-visible,
.siteFooterInlineBtn:hover,
.siteFooterInlineBtn:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.siteFooterLegalMail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-link-strong);
  font-weight: 600;
}

.siteFooterLegalMail .siteFooterIcon {
  width: 16px;
  height: 16px;
}

.siteFooterSocialMail {
  margin-top: 14px;
  display: inline-flex;
  font-size: 1rem;
  line-height: 1.25;
}

.siteFooterSocialBlock .siteFooterLegalMail:hover,
.siteFooterSocialBlock .siteFooterLegalMail:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.siteFooterSocialBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  text-align: center;
}

.siteFooterSocialBlock h3 {
  margin-bottom: 16px;
  text-align: center;
}

.siteFooterSocial {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.siteFooterSocial a {
  position: relative;
  border: 1px solid var(--footer-chip-border);
  border-radius: 999px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-chip-bg);
  color: var(--footer-link-strong);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.siteFooterSocial a:hover,
.siteFooterSocial a:focus-visible {
  transform: translateY(-1px);
  background: var(--footer-chip-hover-bg);
  border-color: var(--footer-chip-hover-border);
}

.siteFooterIcon,
.siteFooterSocial svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.siteFooterSrOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.siteFooterBottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--footer-border);
  padding: 14px 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--footer-muted);
  font-size: 0.83rem;
  flex-wrap: wrap;
}

.siteFooterLegal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.siteFooterLegal .siteFooterInlineBtn,
.siteFooterLegal a {
  font-size: 0.88rem;
  color: var(--footer-link);
  text-decoration: none;
}

.siteFooterLegal .siteFooterInlineBtn:hover,
.siteFooterLegal .siteFooterInlineBtn:focus-visible,
.siteFooterLegal a:hover,
.siteFooterLegal a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.siteFooterPageCheck {
  color: var(--footer-muted);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.siteFooterRefreshBtn {
  appearance: none;
  border: 1px solid var(--footer-chip-border);
  background: var(--footer-chip-bg);
  color: var(--footer-link);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.siteFooterRefreshBtn:hover,
.siteFooterRefreshBtn:focus-visible {
  background: var(--footer-chip-hover-bg);
  border-color: var(--footer-chip-hover-border);
  color: var(--footer-link-strong);
}

.siteFooterModalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 10, 16, 0.72);
  display: none;
  place-items: center;
  padding: 16px;
}

.siteFooterModalBackdrop.is-open {
  display: grid;
}

.siteFooterModalCard {
  width: min(760px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #ffffff;
  color: #1a2433;
  border: 1px solid #dce4f2;
  border-radius: 14px;
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.32);
}

.siteFooterModalHeader {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  border-bottom: 1px solid #e6ebf4;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.siteFooterModalHeader h3 {
  margin: 0;
  font-size: 1rem;
}

.siteFooterModalClose {
  border: 1px solid #d7deea;
  background: #f5f8fd;
  color: #273246;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.siteFooterModalClose:hover,
.siteFooterModalClose:focus-visible {
  background: #ebf1f9;
}

.siteFooterModalBody {
  padding: 16px;
}

.siteFooterModalBody p {
  margin: 0 0 12px;
  color: #40506a;
  line-height: 1.5;
  font-size: 0.92rem;
}

.siteFooterModalBody h4 {
  margin: 16px 0 8px;
  color: #1f2d41;
  font-size: 0.94rem;
}

.siteFooterModalBody a {
  color: #274ecf;
}

@media (max-width: 980px) {
  .siteFooterInner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .siteFooterSocialBlock {
    grid-column: 1 / -1;
    align-items: flex-start;
    justify-self: start;
    text-align: left;
  }

  .siteFooterSocialBlock h3 {
    text-align: left;
  }

  .siteFooterSocial {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .siteFooterInner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 14px 20px;
  }

  .siteFooterBottom {
    padding: 12px 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .siteFooterLegal {
    display: none;
  }

  .siteFooterModalCard {
    max-height: 86vh;
  }

  .siteFooterModalHeader,
  .siteFooterModalBody {
    padding-left: 14px;
    padding-right: 14px;
  }
}
