.site-footer {
  background: var(--ul-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ul-white);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  position: relative;
  isolation: isolate;
}
.site-footer .container {
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.site-footer p,
.site-footer li,
.site-footer span {
  color: var(--ul-white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.footer-tagline {
  font-size: clamp(2.4rem, 2.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--ul-white);
}
.footer-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: var(--space-md) 0;
}
.footer-contact-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.footer-logo {
  max-width: 180px;
  height: auto;
  display: block;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ul-white);
  font-size: 1.6rem;
  line-height: 1.5;
}
.contact-item i {
  font-size: 1.6rem;
  width: 20px;
  text-align: center;
  color: var(--ul-white);
  opacity: 0.8;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item:hover {
  color: var(--ul-secondary);
}
.contact-item:hover i {
  color: var(--ul-secondary);
  opacity: 1;
}

.footer-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.footer-col h4 {
  margin: 0 0 var(--space-md) 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ul-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.footer-col h4 i {
  font-size: 1.4rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-links a {
  display: inline-block;
  color: var(--ul-white);
  font-size: 1.6rem;
  line-height: 1.6;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--ul-secondary);
}
.footer-social-links a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer-social-links i {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

.footer-bottom-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: var(--space-lg) 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.copyright {
  margin: 0;
  font-size: 1.4rem;
  opacity: 0.7;
  color: var(--ul-white);
}
.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.legal-list a {
  font-size: 1.4rem;
  opacity: 0.7;
  color: var(--ul-white);
}
.legal-list a:hover {
  opacity: 1;
  color: var(--ul-white);
}

.scroll-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  transform: translateY(100px);
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: var(--ul-cta);
  color: var(--ul-white);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
  cursor: pointer;
}
.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-to-top:hover {
  background: #3f8e97;
}
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-right {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-left {
    align-items: center;
    text-align: center;
  }
  .footer-tagline {
    text-align: center;
  }
  .footer-contact-block {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-md);
    text-align: center;
  }
  .contact-list {
    width: 100%;
  }
  .contact-item {
    justify-content: center;
  }
  .footer-right {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-col {
    text-align: left;
  }
  .footer-col h4 {
    justify-content: flex-start;
    text-align: left;
  }
  .footer-social-links a {
    justify-content: flex-start;
  }
  .footer-links li {
    text-align: left;
  }
  .footer-social-links li {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  .legal-list {
    justify-content: center;
  }
  .scroll-to-top {
    bottom: var(--space-2xl);
  }
}