/* Подвал ALL BLING — макет Figma (mobile-first) */

.site-footer {
  padding: 28px 16px 32px;
  background: #212529;
  color: rgba(255, 255, 255, 0.88);
  border-top: none;
}

.site-footer__inner {
  max-width: 1880px;
  margin: 0 auto;
}

/* ——— Верх: мобильная сетка (навигация|соцсети → правовая|оплаты) ——— */
.site-footer__upper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.site-footer__upper-left {
  display: contents;
}

.site-footer__menus-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 14px;
}

.site-footer__menus-top .site-footer__menu {
  flex: 1 1 0;
  min-width: 0;
}

.site-footer__menus-top .site-footer__menu:first-child {
  padding-right: 4px;
}

.site-footer__menus-top .site-footer__menu:last-child {
  flex: 0 1 auto;
  text-align: left;
}

.site-footer__menus-top .site-footer__menu:last-child .site-footer__menu-list {
  align-items: flex-start;
}

.site-footer__menus-top .site-footer__menu:last-child .site-footer__menu-list a {
  text-align: left;
}

.site-footer__menu--legal {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.site-footer__menu-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.site-footer__menu--legal .site-footer__menu-title {
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.site-footer__menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__menu-list a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__menus-top .site-footer__menu-list a {
  font-size: 12px;
  letter-spacing: 0.045em;
}

.site-footer__menu--legal .site-footer__menu-list a {
  font-size: 11px;
  line-height: 1.35;
}

.site-footer__menu-list a:hover,
.site-footer__menu-list a:focus-visible {
  color: #fff;
}

.site-footer__upper-right {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  max-width: min(46vw, 168px);
  justify-self: end;
}

.site-footer__pay-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.site-footer__pay-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 8px;
}

.site-footer__pay-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-footer__pay-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer__pay-slot--visa .site-footer__pay-img {
  height: 22px;
}

.site-footer__pay-slot--mc .site-footer__pay-img {
  height: 24px;
}

.site-footer__pay-slot--belcart .site-footer__pay-img {
  height: 18px;
}

.site-footer__pay-slot--bepaid .site-footer__pay-img {
  height: 14px;
}

.site-footer__pay-slot--gpay .site-footer__pay-img {
  height: 18px;
}

/* ——— Низ: логотип → реквизиты → разработка ——— */
.site-footer__lower {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.site-footer__lower-brand {
  width: 100%;
  min-width: 0;
}

.site-footer__big-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 76px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  opacity: 0.4;
}

.site-footer__lower-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.75rem;
}

.site-footer__requisites {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__requisites p {
  margin: 0;
}

.site-footer__dev {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.2rem;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__dev-link {
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__dev-link:hover,
.site-footer__dev-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* Планшет 768px – 1023px */
@media (min-width: 768px) {
  .site-footer {
    padding: 32px 20px 36px;
  }

  .site-footer__upper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .site-footer__upper-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer__menus-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem 3rem;
    width: 100%;
  }

  .site-footer__menus-top .site-footer__menu:last-child {
    text-align: left;
  }

  .site-footer__menus-top .site-footer__menu:last-child .site-footer__menu-list {
    align-items: flex-start;
  }

  .site-footer__menu--legal {
    width: 100%;
  }

  .site-footer__menu-title {
    font-size: 13px;
    margin-bottom: 16px;
    letter-spacing: 0.07em;
  }

  .site-footer__menu--legal .site-footer__menu-title {
    font-size: 13px;
  }

  .site-footer__menu-list {
    gap: 10px;
  }

  .site-footer__menu-list a {
    font-size: 12px;
    letter-spacing: 0.055em;
  }

  .site-footer__menu--legal .site-footer__menu-list a {
    font-size: 12px;
  }

  .site-footer__upper-right {
    width: 100%;
    max-width: none;
    align-self: center;
  }

  .site-footer__pay-rows {
    align-items: center;
    gap: 14px;
  }

  .site-footer__pay-row {
    justify-content: center;
    gap: 16px 20px;
  }

  .site-footer__pay-slot--visa .site-footer__pay-img {
    height: 40px;
  }

  .site-footer__pay-slot--mc .site-footer__pay-img {
    height: 44px;
  }

  .site-footer__pay-slot--belcart .site-footer__pay-img {
    height: 38px;
  }

  .site-footer__pay-slot--bepaid .site-footer__pay-img {
    height: 26px;
  }

  .site-footer__pay-slot--gpay .site-footer__pay-img {
    height: 34px;
  }

  .site-footer__lower {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .site-footer__big-logo {
    max-height: 120px;
    margin: 0 auto;
    object-position: center bottom;
    opacity: 0.42;
  }

  .site-footer__lower-meta {
    align-items: center;
    text-align: center;
  }

  .site-footer__requisites {
    font-size: 11px;
  }

  .site-footer__dev {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    font-size: 11px;
  }

  .site-footer__dev-link {
    font-size: 11px;
  }
}

/* ПК от 1024px */
@media (min-width: 1024px) {
  .site-footer {
    padding: 40px 20px;
  }

  .site-footer__upper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem 3rem;
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .site-footer__upper-left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(3rem, 10vw, 180px);
  }

  .site-footer__menus-top {
    display: contents;
  }

  .site-footer__menus-top .site-footer__menu:first-child {
    padding-right: 0;
  }

  .site-footer__menus-top .site-footer__menu:last-child {
    text-align: left;
  }

  .site-footer__menus-top .site-footer__menu:last-child .site-footer__menu-list {
    align-items: stretch;
  }

  .site-footer__menus-top .site-footer__menu:last-child .site-footer__menu-list a {
    text-align: left;
  }

  .site-footer__menu-title {
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .site-footer__menu--legal .site-footer__menu-title {
    font-size: 14px;
  }

  .site-footer__menu-list a {
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .site-footer__menu--legal .site-footer__menu-list a {
    font-size: 14px;
  }

  .site-footer__upper-right {
    width: auto;
    flex: 0 0 auto;
    align-self: auto;
  }

  .site-footer__pay-rows {
    align-items: flex-end;
    gap: 16px;
  }

  .site-footer__pay-row {
    justify-content: flex-end;
    gap: 20px 24px;
  }

  .site-footer__pay-slot--visa .site-footer__pay-img {
    height: 42px;
  }

  .site-footer__pay-slot--mc .site-footer__pay-img {
    height: 48px;
  }

  .site-footer__pay-slot--belcart .site-footer__pay-img {
    height: 40px;
  }

  .site-footer__pay-slot--bepaid .site-footer__pay-img {
    height: 28px;
  }

  .site-footer__pay-slot--gpay .site-footer__pay-img {
    height: 36px;
  }

  .site-footer__lower {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
  }

  .site-footer__lower-brand {
    flex: 1 1 auto;
    max-width: min(1500px, calc(100% - 340px));
  }

  .site-footer__big-logo {
    width: min(1500px, 100%);
    max-width: 1500px;
    max-height: 190px;
    margin: 0;
    object-position: left bottom;
    opacity: 0.42;
  }

  .site-footer__lower-meta {
    flex: 0 1 320px;
    align-items: flex-end;
    text-align: right;
    gap: 1.25rem;
  }

  .site-footer__requisites {
    font-size: 12px;
  }

  .site-footer__dev {
    justify-content: flex-end;
    font-size: 11px;
  }

  .site-footer__dev-link {
    font-size: 11px;
  }
}

@media (min-width: 1440px) {
  .site-footer__upper-left {
    gap: 300px;
  }
}
