/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  color: var(--color-dark);
  position: relative;
  padding-top: 0;
  padding-bottom: 42px;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: start;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Логотип */
.footer-logo img {
  width: clamp(124px, 5vw, 200px);
  height: clamp(124px, 5vw, 200px);
}

.footer-nav {
  display: none;

  @media screen and (min-width: 1024px) {
    display: block;
  }
}

/* Навігація */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Контакти */
.footer-contacts__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  text-allign: left;
}

.footer-contacts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: clamp(16px, 15.03px + 0.26vw, 20px);
  color: var(--color-dark);
}

.footer-contacts__list a {
  transition: color var(--transition);
}

.footer-contacts__list a:hover {
  color: var(--color-accent);
}

.footer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Соцмережі */
.footer-social {
  display: flex;
  height: 48px;
  width: auto;
  gap: 16px;
  justify-content: center;
  align-items: center;

  @media screen and (max-width: 767px) {
    margin: 0 auto;
  }

  @media screen and (min-width: 1024px) {
    width: 48px;
    height: auto;
    flex-direction: column;
    justify-content: space-between;
  }
}

.social-link {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform var(--transition);
}

.social-link:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.social-link--telegram {
  border-radius: 50%;
}

/* Нижній рядок */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin-top: 32px;

  @media screen and (min-width: 1024px) {
    gap: 8px;
    margin-top: 0px;
  }
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    gap: 32px;
  }
}

.footer-legal a {
  font-size: clamp(12px, 8.12px + 1.04vw, 28px);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-legal__sep {
  display: none;
  @media screen and (min-width: 1024px) {
    display: block;
  }
}

.footer-legal__line {
  width: 0px;
  height: 100;
  opacity: 1;
  border: 1px solid #6969694d;

  @media screen and (min-width: 1024px) {
    display: none;
  }
}

.footer-copy {
  font-size: clamp(12px, 8.12px + 1.04vw, 28px);
  /* color: rgba(255, 255, 255, 0.5); */
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    scale 0.3s ease;
  z-index: 200;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  scale: 1.1;
}

.scroll-top img {
  width: 24px;
  height: 24px;
}

.blue-footer__decor--mob,
.orange-footer__decor--mob,
.blue-footer__decor--desktop,
.orange-footer__decor--desktop {
  display: none;
}

.page-template-page-energy .blue-footer__decor--mob {
  display: block;

  position: absolute !important;

  left: 50%;
  transform: translateX(-50%);
  bottom: 0;

  z-index: 0;

  opacity: 0.35;

  @media (min-width: 1020px) {
    display: none;
  }
}

.page-template-page-energy .blue-footer__decor--desktop {
  display: none;

  @media (min-width: 1020px) {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    opacity: 0.35;
  }
}

.page-template-page-fuel .orange-footer__decor--mob {
  display: block;

  position: absolute !important;

  left: 50%;
  transform: translateX(-50%);
  bottom: 50px;

  z-index: 0;

  opacity: 0.35;

  @media (min-width: 1020px) {
    display: none;
  }
}

.page-template-page-fuel .orange-footer__decor--desktop {
  display: none;

  @media (min-width: 1020px) {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    opacity: 0.35;
  }
}
