/* Footer --------------------------------------------------------------------- */
.site-footer { overflow: hidden; }

.site-footer__row { display: flex; justify-content: space-between; align-items: center; }


.site-footer__middle {
  position: relative;
  padding: 100px 0;
  background: #111 var(--img-footer) no-repeat center;
  background-size: cover;
}
.site-footer__middle .site-footer__row { position: relative; z-index: 10; } /* above the branch */
.site-footer__big {
  display: block;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-light);
}

.site-footer__branch {
  position: absolute;
  right: 0;
  bottom: 60px;
  max-width: 838px;
  transform: translateX(150%);
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
.site-footer__branch.is-in { transform: translateX(0); }
.site-footer__branch img { width: 100%; }

.site-footer__bottom { padding: 80px 0 70px; }

/* Three columns: brand · explore · location & social */
.site-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: auto; height: 80px; }
.site-footer__tagline {
  max-width: 320px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.4;
}
.site-footer__contacts {
  margin-top: 44px;
  font: 500 14px/30px var(--f-text);
  letter-spacing: 2px;
}
.site-footer__contacts li { display: flex; flex-wrap: wrap; gap: 0 12px; }
.site-footer__contact-name { font-weight: 600; }

.site-footer__title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}
.site-footer__list {
  font: 500 14px/30px var(--f-text);
  font-style: normal;
  letter-spacing: 2px;
}
.site-footer__link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}
.site-footer__link:hover, .site-footer__link:focus-visible { text-decoration-color: currentColor; }

.site-footer__social { display: flex; gap: 16px; margin-top: 28px; }
.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  color: var(--c-dark);
  transition: background-color 0.3s, color 0.3s;
}
.site-footer__social a:hover, .site-footer__social a:focus-visible { background: var(--c-dark); color: var(--c-light); }

/* Legal bar */
.site-footer__legal { border-top: 1px solid rgba(0, 0, 0, 0.12); padding: 24px 0; }
.site-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 30px;
  font: 500 12px/20px var(--f-text);
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) { .site-footer__middle { padding: 51px 0; } }
@media (min-width: 1024px) {
  .site-footer__middle, .site-footer__bottom, .site-footer__legal { padding-left: 4%; padding-right: 4%; }
}

/* Tablet: brand on its own row, explore + location side by side. */
@media (max-width: 1023px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 40px; }
  .site-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-footer__row { flex-direction: column; justify-content: center; gap: 40px; }
  .site-footer__branch { top: -8%; right: -20%; bottom: auto; width: 100%; }
}

/* Phones: one centred column, legal lines stacked. */
@media (max-width: 767px) {
  .site-footer__bottom { padding: 60px 0 50px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .site-footer__col--brand { display: flex; flex-direction: column; align-items: center; }
  .site-footer__tagline { margin-left: auto; margin-right: auto; font-size: 18px; }
  .site-footer__social { justify-content: center; }
  .site-footer__contacts li { justify-content: center; }
  .site-footer__legal-row { flex-direction: column; align-items: center; text-align: center; }
}
