.site-footer {
  margin-top: auto;
  padding: 24px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(8, 12, 22, 0) 0%, rgba(8, 12, 22, 0.92) 18%, #070b14 100%);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-footer__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}

.site-footer__icon-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer__payment .site-footer__icon {
  width: auto;
  max-width: 72px;
  max-height: 28px;
}

.site-footer__copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__security {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-footer__security-text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  white-space: pre-line;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.site-footer__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 32px;
  }

  .site-footer__inner {
    gap: 28px;
  }

  .site-footer__section--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.site-footer__col-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__col-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__block--help,
.site-footer__block--back_to_top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__icons--payment .site-footer__icon {
  width: auto;
  max-width: 72px;
  max-height: 28px;
}

.site-footer__security-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__copyright-block {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #fff;
}

.site-footer__link--muted {
  cursor: default;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 5, 28, 0.72);
  backdrop-filter: blur(10px);
}

.site-footer-modal.open {
  display: flex;
}

.site-footer-modal__dialog {
  width: min(520px, 100%);
  max-height: min(82vh, 640px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(154, 104, 255, 0.28);
  background: linear-gradient(145deg, rgba(31, 22, 79, 0.98), rgba(18, 12, 52, 0.98));
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.site-footer-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.site-footer-modal__head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #fff;
}

.site-footer-modal__close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.site-footer-modal__body {
  color: #e8e0ff;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.site-footer-modal__body p {
  margin: 0 0 10px;
}

.site-footer-modal__body p:last-child {
  margin-bottom: 0;
}

body.site-footer-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .site-footer__links-grid {
    grid-template-columns: 1fr;
  }
}
