/* ========== ФУТЕР ========== */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: var(--space-xxl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

.footer__logo img {
  width: 180px;
  height: auto;
  margin-bottom: var(--space-lg);
  filter: brightness(0) invert(1);
}

.footer__about {
  opacity: 0.7;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  font-size: 1.5rem;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
  color: var(--light-color);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer__menu {
  list-style: none;
}

.footer__link {
  display: block;
  padding: var(--space-xs) 0;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  font-size: 1.5rem;
}

.footer__link:hover,
.footer__link:focus {
  opacity: 1;
  color: var(--primary-color);
  padding-left: var(--space-xs);
  outline: none;
}

.footer__contacts {
  list-style: none;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
  opacity: 0.7;
  font-size: 1.5rem;
}

.footer__contacts li i {
  margin-right: var(--space-md);
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  font-size: 1.6rem;
}

.footer__contacts li a {
  transition: color 0.2s ease;
}

.footer__contacts li a:hover,
.footer__contacts li a:focus {
  color: var(--primary-color);
  outline: none;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.footer__social .social-link {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  margin: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer__copyright {
  margin-bottom: var(--space-md);
  opacity: 0.7;
  font-size: 1.4rem;
}

.footer__payment-methods {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer__payment-methods img {
  height: 25px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer__payment-methods img:hover {
  opacity: 1;
}

.footer__download {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.download-btn {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.download-btn img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.download-btn:hover img {
  opacity: 1;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__links a {
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  font-size: 1.4rem;
}

.footer__links a:hover,
.footer__links a:focus {
  opacity: 1;
  color: var(--primary-color);
  outline: none;
}

.footer__to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: var(--z-to-top);
  box-shadow: var(--box-shadow);
  border: none;
  cursor: pointer;
}

.footer__to-top.active {
  opacity: 1;
  visibility: visible;
}

.footer__to-top:hover,
.footer__to-top:focus {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  outline: none;
}

.footer__copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.copyright-line,
.copyright-years {
  font-size: 1.4rem;
  opacity: 0.7;
  line-height: 1.5;
  text-align: center;
}