/* =========================================================
   Подвал
   ========================================================= */
.site-footer {
  margin-top: 40px;
  border-radius: 16px 16px 0 0;
  background: #33271e;
  color: #fdf8f4;
  font-family: var(--font-base, "Montserrat", sans-serif);
}

.site-footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 32px 16px 28px;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid #fdf8f4; outline-offset: 3px; border-radius: 4px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

/* ---------- Бренд ---------- */
.footer-brand { grid-column: 1 / -1; }

.footer-brand__logo { display: inline-block; }
.footer-brand__img { display: block; width: auto; height: 38px; }
.footer-brand__text { font-size: 1.25rem; font-weight: 600; }

.footer-brand__legal {
  max-width: 34em;
  margin: 18px 0 0;
  color: #c9bcb0;
  font-size: 0.6875rem;
  line-height: 1.15;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.footer-payments img { display: block; width: auto; height: 20px; }

/* ---------- Колонки ---------- */
.footer-col--contacts { grid-column: 1 / -1; }

.footer-col__title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
}

.footer-list { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 1rem; line-height: 1.25; }
.footer-list a { opacity: 0.92; }
.footer-address { font-style: normal; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.footer-socials .social { width: 26px; height: 26px; background: #fdf8f4; }

/* ---------- Нижняя строка ---------- */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 248, 244, 0.7);
  color: #b9aa9d;
  font-size: 0.75rem;
  line-height: 1.3;
}

.site-footer__copy { margin: 0; }
.footer-legal-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-legal-list a { color: inherit; }

/* ---------- Планшет ---------- */
@media (min-width: 700px) {
  .site-footer { border-radius: 24px 24px 0 0; }
  .site-footer__inner { padding: 40px 40px 32px; }
  .footer-brand__img { height: 44px; }
  .footer-brand__legal { font-size: 0.8125rem; }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .footer-legal-list { flex-direction: row; gap: 20px; }
}

/* ---------- Десктоп: 4 колонки ---------- */
@media (min-width: 1000px) {
  .site-footer { margin-top: 60px; }
  .site-footer__inner { padding: 40px 40px 28px; }

  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 24px;
  }

  .footer-brand,
  .footer-col--contacts { grid-column: auto; }

  .footer-brand__legal { margin-top: 28px; font-size: 0.8125rem; }
  .footer-payments { margin-top: 24px; }

  .footer-col__title { margin-bottom: 18px; font-size: 1.125rem; }
  .footer-list { gap: 8px; font-size: 0.9375rem; }
  .footer-socials { margin-top: 22px; }

  .site-footer__bottom { margin-top: 24px; }
}

@media (min-width: 1100px) {
  .site-footer__inner { padding-inline: 40px; }
}
