.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--c-surface-dark);
  color: var(--c-text-inverse);
  padding: var(--sp-6) 0 calc(var(--sp-5) + var(--safe-bottom));
}

.site-footer__inner {
  position: relative;
  padding-left: calc(var(--sp-5) + 3px);
}

.site-footer__inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--sp-2);
  bottom: var(--sp-2);
  width: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    180deg,
    rgba(255, 201, 60, 0.15) 0%,
    var(--yellow) 35%,
    var(--yellow) 65%,
    rgba(255, 201, 60, 0.15) 100%
  );
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.1fr repeat(3, 1fr);
    gap: var(--sp-4) var(--sp-6);
  }
}

.site-footer__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--c-accent-light);
  line-height: 1;
}

.site-footer__heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  margin-bottom: var(--sp-3);
}

.site-footer__links {
  display: grid;
  gap: var(--sp-2);
  justify-items: start;
}

.site-footer__links a {
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: rgba(207, 210, 224, 0.72);
  transition: color var(--t-fast);
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
}

.site-footer__links a:hover { color: var(--c-accent-light); }

.site-footer__social-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.site-footer__social-col .site-footer__heading {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--c-accent-light);
  background: rgba(255, 201, 60, 0.08);
  border: 1px solid rgba(255, 201, 60, 0.28);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.site-footer__social-btn .social-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.site-footer__social-btn:hover {
  color: var(--navy);
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
}

.site-footer__social-btn:active {
  transform: scale(0.96);
}

.site-footer__social-btn--static {
  opacity: 0.55;
  cursor: default;
}

.site-footer__social-btn--static:hover {
  color: var(--c-accent-light);
  background: rgba(255, 201, 60, 0.08);
  border-color: rgba(255, 201, 60, 0.28);
}

.site-footer__social-empty {
  font-size: var(--fs-sm);
  color: rgba(207, 210, 224, 0.55);
}

.site-footer__contacts {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(207, 210, 224, 0.72);
}

.site-footer__address {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer__phone,
.site-footer__email {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.45;
  color: rgba(207, 210, 224, 0.72);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-footer__contacts a:hover { color: var(--c-accent-light); }

.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 201, 60, 0.22);
}

.newsletter__copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.newsletter__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  line-height: 1.3;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 16rem;
  max-width: 26rem;
  min-width: 0;
  margin-left: auto;
}

.newsletter__form .field__input {
  flex: 1 1 10rem;
  min-width: 0;
  min-height: 44px;
}

.newsletter__form .btn {
  flex: 0 0 auto;
  border-radius: var(--r-md);
  min-height: 44px;
  padding: 0 var(--sp-4);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  color: rgba(207, 210, 224, 0.45);
}

@media (max-width: 1023px) {
  .site-footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-1) var(--sp-3);
  }
}

.site-footer__bottom a {
  color: rgba(207, 210, 224, 0.55);
  transition: color var(--t-fast), text-shadow var(--t-fast);
}

.site-footer__bottom a:hover { color: var(--c-accent-light); }

.site-footer__credit-link:hover {
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 16px rgba(255, 255, 255, 0.18);
}

@media (max-width: 767px) {
  .site-footer {
    padding: var(--sp-5) 0 calc(var(--sp-4) + var(--bottom-nav-h) + var(--safe-bottom));
  }

  .site-footer__inner {
    padding-left: calc(var(--sp-4) + 3px);
  }

  .site-footer__grid > div:nth-child(2),
  .site-footer__grid > div:nth-child(3) {
    display: none;
  }

  .site-footer__social-btn {
    width: 2.125rem;
    height: 2.125rem;
  }

  .site-footer__title {
    font-size: var(--fs-lg);
  }

  .newsletter {
    display: grid;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    padding: var(--sp-3);
  }

  .newsletter__title {
    font-size: var(--fs-md);
    line-height: 1.25;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    max-width: none;
    margin-left: 0;
  }

  .newsletter__form .field__input {
    flex: 0 0 auto;
    width: 100%;
    min-height: 2.75rem;
    height: 2.75rem;
    padding-block: 0;
    box-sizing: border-box;
  }

  .newsletter__form .btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .site-footer__bottom {
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
  }
}
