
.footer {
    width: 100%;
    background: #f0f0f1;
    color: #191919;
    margin-top: 60px;
    font-family: 'Montserrat', sans-serif;
  }

  .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-bottom: 2px solid #ffde59;
  }

  .footer-title {
    color: #000000;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .footer-col a {
    display: block;
    color: #191919;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s, transform 0.2s;
  }

  .footer-col a:hover {
    color: #d5ab00;
    transform: translateX(3px);
  }

  .footer-col p {
    font-size: 14px;
    margin: 12px 0;
    line-height: 1.5;
  }

  .footer-services {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 20px;
  }
  .footer-services li {
    margin-bottom: 8px;
  }

  .footer-honest {
    margin-top: 24px;
  }
  .footer-honest img {
    max-width: 130px;
    height: auto;
    transition: opacity 0.2s;
  }
  .footer-honest img:hover {
    opacity: 0.8;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
  }
  .social-btn {
    display: inline-flex;
    transition: transform 0.2s;
  }
  .social-btn img {
    display: block;
    height: 28px;
    width: auto;
  }
  .social-btn.ozon-link img {
    width: 64px;
    height: auto;
  }
  .social-btn:hover {
    transform: translateY(-3px);
  }

  .footer-bottom {
    background: #e4e4e5;
    padding: 20px 40px;
  }
  .footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
  }
  .footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }
  .footer-legal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-legal-links a:hover {
    color: #d5ab00;
  }

  @media (max-width: 1024px) {
    .footer-inner {
      grid-template-columns: repeat(2, 1fr);
      padding: 40px 20px;
    }
  }
  @media (max-width: 768px) {
    .footer-inner {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .footer-social {
      justify-content: center;
    }
    .footer-honest img {
      margin: 0 auto;
    }
    .footer-bottom-inner {
      flex-direction: column;
      text-align: center;
    }
    .footer-legal-links {
      justify-content: center;
    }
    .footer-col a:hover {
      transform: translateY(-2px);
    }
  }

  .footer-col a:focus-visible,
  .social-btn:focus-visible,
  .footer-legal-links a:focus-visible {
    outline: 2px solid #ffde59;
    outline-offset: 3px;
    border-radius: 4px;
  }

  .footer-bottom {
  flex-direction: row !important;
  border-top: none;
  background: #f5f5f6;
  color: black;
  font-weight: bold;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 16.5px;
  position: relative;
  z-index: 1;
}

.footer-bottom-links {
  flex-wrap: wrap;
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #4D4D4D;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #d5ab00;
}

.footer-bottom-links a:focus-visible {
  outline: 2px solid #ffde59;
  outline-offset: 2px;
  border-radius: 4px;
}

.footer {
  max-width: 1400px;   
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px 24px 0 0;  
  overflow: hidden;      
  box-sizing: border-box;
}

.footer-bottom {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
}


@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
    padding: 15px 20px;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }
  .footer-bottom span {
    font-size: 14px;
  }
}

/* 1. Главный внешний контейнер растягиваем во всю ширину */
.footer-trust-badging {
  width: 100%;
  max-width: 1400px; /* Чтобы блок не улетал слишком далеко на огромных мониторах */
  margin: 0 auto;
  box-sizing: border-box;
}

/* 2. Внутренний контейнер выравнивает контент по правому краю */
.footer-trust-inner {
  display: flex;
  justify-content: flex-end; /* 🚀 Смещает всё содержимое блока строго вправо */
  width: 100%;
}

/* 3. Выравниваем подпись и сами QR-коды по правому краю */
.trust-group.trust-qr-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Выравнивает текст-подпись по правому краю */
  gap: 12px; /* Расстояние между текстом "Связаться в..." и самими кодами */
}

/* 4. Настраиваем обертку для самих QR-кодов */
.qr-wrapper {
  display: flex;
  gap: 50px; /* 🚀 УВЕЛИЧЕНО: Расстояние между QR-кодами (было стандартное или отсутствовало, теперь 24px) */
  align-items: center;
  margin-right: 10px !important;
}

/* Гарантируем, что изображения не сожмутся и будут адаптивными */
.qr-wrapper img {
  display: block;
  max-width: 100px;
  height: auto;
  transition: transform 0.2s ease;
}

/* Небольшой интерактивный бонус при наведении на код */
.qr-wrapper img:hover {
  transform: scale(1.05); 
}

/* 📱 Оптимизация для мобильных экранов */
@media (max-width: 768px) {
  .footer-trust-inner {
    justify-content: center; /* На смартфонах центрируем коды, чтобы они не жались к правому краю */
  }
  .trust-group.trust-qr-block {
    align-items: center; /* Центрируем подпись на мобильных */
  }
  .qr-wrapper {
    gap: 16px; /* На мобильных отступы между кодами делаем чуть компактнее, чтобы поместились в экран */
  }
}

/* Размеры колонок с учётом внутренних отступов */
.footer .footer-inner {
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer .footer-col {
  min-width: 0;
}

.footer .footer-col a,
.footer .footer-col p {
  overflow-wrap: anywhere;
}

/* Одинаковое оформление списков */
.footer .footer-links {
  list-style: none;
  margin: 10px 0 20px;
  padding: 0;
}

/* Нижняя линия — зелёная, как в топбаре */
.footer .footer-inner {
  border-bottom: 2px solid #30ba0e;
}

/* Контактные QR-коды */
.footer .footer-trust-badging {
  padding: 24px 40px;
}

.footer .footer-trust-inner,
.footer .trust-group.trust-qr-block {
  min-width: 0;
}

.footer .qr-wrapper {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  margin-right: 0 !important;
}

.footer .qr-wrapper img {
  width: 100px;
  max-width: 100%;
  height: auto;
}

/* Фокус с клавиатуры */
.footer a:focus-visible {
  outline: 2px solid #191919;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer .footer-trust-badging {
    padding: 20px;
  }

  .footer .qr-wrapper {
    justify-content: center;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer a,
  .footer img {
    transition: none !important;
  }

  .footer a:hover,
  .footer img:hover {
    transform: none !important;
  }
}