.site-footer {
  background: #17141b;
  color: rgba(255, 255, 255, .6);
  letter-spacing: -.03em;
}

.site-footer__container {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 358px;
  gap: 34px;
  min-height: 464px;
  padding-block: 32px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9.66px;
  width: 180px;
  height: 54px;
  letter-spacing: 0;
}

.footer-brand__mark {
  flex: 0 0 48.32px;
  height: 54px;
  background: url('../images/logo-perfect.png') left center / 183px 54px no-repeat;
}

.footer-brand__text { display: flex; flex-direction: column; }
.footer-brand__name { color: #dc4999; font-size: 24.1611px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.footer-brand__caption { font-size: 12.0805px; font-weight: 600; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }

.site-footer__description {
  max-width: 340px;
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  line-height: 1.4;
}

.footer-contacts { display: flex; flex-direction: column; gap: 12px; font-style: normal; }
.footer-contacts__link { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-size: 18px; font-weight: 500; line-height: 24px; }
.footer-contacts__link img { flex: 0 0 20px; width: 20px; height: 20px; opacity: .8; }

.site-footer__estimate { width: 240px; min-height: 62px; margin-top: 24px; font-size: 18px; }
.footer-socials { display: flex; gap: 16px; margin-top: 24px; }
.footer-socials__link { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 50%; color: #fff; }
.footer-socials__link svg { width: 20px; height: 20px; }
.footer-socials__link_instagram { background: radial-gradient(230.93% 230.93% at 102.01% 2.03%, #f9ed32 0%, #ee2a7b 36%, #d22a8a 44%, #8b2ab2 60%, #1b2af0 83%, #002aff 88%); }
.footer-socials__link_telegram { background: #27a6e5; }
.footer-socials__link_telegram svg { width: 20px; height: 20px; }
.footer-socials__link_whatsapp { background: #48c95f; }
.footer-socials__link_whatsapp svg { width: 24px; height: 24px; }

.site-footer__heading { margin: 8px 0 28px; color: rgba(200, 53, 133, .8); font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 0; text-transform: uppercase; }
.site-footer__links { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 500; line-height: 22px; }
.footer-payment .site-footer__heading { margin-bottom: 12px; }
.footer-payment__logos { display: flex; gap: 8px; }
/* Temporary crops from the supplied reference; replace with original logo exports. */
.footer-payment__logo { display: block; width: 151px; height: 72px; border-radius: 12px; background-image: url('../images/footer/reference-desktop.png'); background-size: 1920px 520px; }
.footer-payment__logo_erip { background-position: -1342px -72px; }
.footer-payment__logo_epos { width: 148px; background-position: -1501px -72px; }
.footer-payment__details { max-width: 307px; margin-top: 16px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.footer-payment__details p { margin: 0 0 8px; }
.footer-payment__details p:last-child { margin-top: 12px; margin-bottom: 0; }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 55px; }
.site-footer__copyright { margin: 0; color: rgba(255, 255, 255, .2); font-size: 14px; line-height: 17px; letter-spacing: 0; }
.site-footer__developer { display: flex; align-items: center; gap: 7px; }
.site-footer__developer-caption { color: rgba(255, 255, 255, .2); font-size: 14px; line-height: 17px; letter-spacing: 0; }
.site-footer__developer-logo { display: block; width: 100px; height: 41px; background: url('../images/footer/reference-desktop.png') -1600px -471px / 1920px 520px no-repeat; }

@media (hover: hover) {
  .site-footer__links a:hover, .footer-contacts__link:hover { color: #dc4999; }
  .footer-socials__link:hover { opacity: .8; }
  .site-footer__developer:hover { opacity: .7; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 767px) {
  .site-footer__container { width: calc(100% - 16px); }
  .site-footer__main { display: block; min-height: 444px; padding-block: 24px 48px; }
  .footer-brand { gap: 8px; width: 149px; height: 44px; }
  .footer-brand__mark { flex-basis: 40px; height: 44px; background-size: 149px 44px; }
  .footer-brand__name { font-size: 20px; }
  .footer-brand__caption { font-size: 10px; }
  .site-footer__description { max-width: none; min-height: 60px; margin: 8px 0 20px; }
  .site-footer__estimate { width: 100%; min-height: 56px; margin-top: 24px; font-size: 16px; }
  .site-footer__nav, .footer-payment { display: none; }
  .site-footer__bottom-inner { gap: 12px; }
  .site-footer__copyright { max-width: 144px; font-size: 12px; line-height: 14px; }
  .site-footer__developer-caption { display: none; }
}
