/* 
стилі для футера
*/

footer {
  width: 100%;
  background-color: var(--dark_brown);
  display: flex;
  flex-direction: column;
  padding: 0 var(--padding-x);
}
.footer__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 96px 0;
}
.footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer__logo {
  height: 64px;
}
.footer__contacts {
  display: flex;
  gap: 16px;
}
/* ── Custom Language Switcher — Footer ── */
.footer__buttons .cleanon-lang-switcher {
  position: relative;
}
.footer__nav {
  display: flex;
  gap: 120px;
  color: white;
}
.footer__navigation, .footer__services, .footer__policies {
  display: flex;
  flex-direction: column;
}
.footer__navigation h5, .footer__services h5, .footer__policies h5 {
  margin-bottom: 16px;
}
.footer__link {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
}
.footer__link:hover, .footer__link:active {
  color: white;
}
.footer__nav .footer__services .button {
  padding: 0;
  margin-top: 16px;
}
.footer__copyrights {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--light);
  color: var(--light);
}
.footer__payment-methods {
  display: flex;
  gap: 25px;
}

.footer__creatory {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__creatory a {
  transition: opacity 0.3s ease;
}
.footer__creatory a:hover {
  opacity: 0.8;
}
.footer__creatory img {
  height: 32px;
}

@media screen and (max-width: 1440px) {
  .footer__nav {
    gap: 80px;
  }
}

@media screen and (max-width: 1200px) {
  .footer__content {
    flex-direction: column;
    align-items: center;
    padding: 64px 0;
    gap: 32px;
  }
}

/* ── Mobile footer (≤768px) ── */
@media (max-width: 768px) {

  footer {
    padding: 0 16px;
  }

  

  .footer__buttons {
    width: 100%;
    align-items: center;
    gap: 24px;
  }

  .footer__logo {
    height: 64px;
    width: 288px;
    object-fit: contain;
  }

  /* Olive social circles: 48px (12px padding + 24px icon) */
  .footer__contacts .button.icon {
    width: 48px;
    height: 48px;
    padding: 12px;
  }
  .footer__contacts .button.icon img {
    width: 24px;
    height: 24px;
  }

  /* Full-width language switcher button on mobile */
  .footer__buttons .cleanon-lang-switcher {
    width: 100%;
  }
  .footer__buttons .cleanon-lang-switcher__btn {
    width: 100%;
    border-radius: 8px;
    padding: 8px 16px;
    justify-content: center;
    gap: 12px;
  }
  .footer__buttons .cleanon-lang-switcher__name {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: var(--dark);
  }
  .footer__buttons .cleanon-lang-switcher__dropdown {
    min-width: 0;
    width: 100%;
    left: 0;
    right: 0;
  }

  /* Stacked nav columns */
  .footer__nav {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  /* Bottom bar */
  .footer__copyrights {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0 24px;
  }

  .footer__payment-methods {
    opacity: 0.7;
  }

  .footer__payment-methods img {
    height: 36px;
    width: 53px;
    object-fit: contain;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 4px 8px;
    box-sizing: border-box;
  }
}