.site-footer {
  background: #cc0000;
  color: #fff;
  min-width: 1078px;
  padding: 47px 0 125px;
  overflow: hidden;
}

.site-footer a {
  color: inherit;
}

.site-footer__inner {
  width: min(1078px, calc(100% - 32px));
  max-width: 1078px;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 213px 281px 325px;
  justify-content: space-between;
  align-items: start;
}

.site-footer__brand {
  width: 213px;
}

.site-footer__logo {
  width: 123px;
  display: block;
  line-height: 0;
  margin-bottom: 28px;
}

.site-footer__logo img {
  width: 123px;
  height: 45px;
  object-fit: cover;
  display: block;
}

.site-footer__address {
  width: 213px;
  font-style: normal;
}

.site-footer__address p,
.site-footer__copyright,
.site-footer__links-column a {
  font-family: montserrat, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}

.site-footer__address p {
  line-height: 1.3;
  margin: 0;
}

.site-footer__spacer {
  height: 15.6px;
  display: block;
}

.site-footer__address a,
.site-footer__links-column a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__center {
  width: 281px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.site-footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.site-footer__social a:hover,
.site-footer__links-column a:hover,
.site-footer__address a:hover {
  opacity: 0.82;
}

.site-footer__social img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: cover;
}

.site-footer__copyright {
  line-height: 18.8px;
  margin: 0 0 16px;
}

.site-footer__badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 70px;
}

.site-footer__badges a {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.site-footer__badges a:hover {
  opacity: 0.82;
}

.site-footer__badges img {
  display: block;
}

.site-footer__badges .img_eidas {
  width: 41px;
  height: 60px;
  object-fit: cover;
  object-position: left center;
}

.site-footer__badges .img_aenor {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.site-footer__legal {
  width: 325px;
  margin-top: 0;
  display: grid;
  grid-template-columns: 163px 163px;
  align-items: start;
  justify-self: end;
}

.site-footer__links-column {
  width: 163px;
}

.site-footer__links-column a {
  display: block;
  line-height: 1.75;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .site-footer {
    padding: 47px 0 25px;
  }

  .site-footer__inner {
    width: min(1078px, calc(100% - 32px));
    grid-template-columns: 213px 281px 325px;
    column-gap: 0;
    row-gap: 0;
    align-items: start;
    justify-content: space-between;
  }

  .site-footer__brand {
    width: 213px;
  }

  .site-footer__legal {
    width: 325px;
    margin-top: 27px;
    justify-self: end;
    justify-items: stretch;
    grid-template-columns: 163px 163px;
  }

  .site-footer__links-column {
    width: 163px;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    width: min(1078px, calc(100% - 32px));
    grid-template-columns: 213px 281px 325px;
    gap: 0;
  }

  .site-footer__center {
    align-items: center;
    width: 281px;
  }

  .site-footer__legal {
    width: 325px;
    justify-self: end;
    grid-template-columns: 163px 163px;
  }

  .site-footer__links-column {
    width: 163px;
    margin-bottom: 0;
  }

  .site-footer__links-column a {
    white-space: nowrap;
  }
}

@media (max-width: 1080px) {
  .site-footer {
    width: 100%;
    min-width: 0;
  }

  .site-footer__inner {
    width: min(100% - 40px, 920px);
    max-width: 920px;
    min-height: 0;
    margin: 0 auto;
    grid-template-columns: minmax(190px, 1fr) minmax(240px, 1fr) minmax(280px, 1.2fr);
    gap: 28px;
  }

  .site-footer__legal {
    width: 100%;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }

  .site-footer__links-column {
    width: auto;
  }

  .site-footer__links-column a {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 30px 0 34px;
  }

  .site-footer__inner {
    width: min(100% - 32px, 520px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__brand,
  .site-footer__address,
  .site-footer__center,
  .site-footer__legal {
    width: 100%;
  }

  .site-footer__brand {
    display: grid;
    gap: 14px;
  }

  .site-footer__logo {
    margin-bottom: 8px;
  }

  .site-footer__center {
    align-items: flex-start;
    min-height: 0;
  }

  .site-footer__social {
    margin-bottom: 14px;
  }

  .site-footer__badges {
    gap: 12px;
  }

  .site-footer__legal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer__links-column a {
    line-height: 1.85;
    white-space: normal;
  }
}

@media (min-width: 1025px) {
  .site-footer__center {
    transform: translateX(56px);
  }

  .site-footer__address {
    transform: translateY(7px);
  }

  .site-footer__social {
    gap: 8px;
    transform: translateY(7px);
  }

  .site-footer__badges {
    gap: 31px;
    transform: translateY(55px);
  }

  .site-footer__legal {
    transform: translate(40px, 43px);
  }

  .site-footer__links-column {
    gap: 7px;
  }

  .site-footer__links-column a {
    width: fit-content;
    line-height: 15px;
  }
}

@media (max-width: 760px) {
  .site-footer__address {
    transform: translateY(26px);
  }
}

@media (min-width: 1025px) {
  .site-footer__copyright {
    transform: translateY(23px);
  }

  .site-footer__links-column {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 1024px) {
  .site-footer__copyright {
    transform: translateY(42px);
  }

  .site-footer__links-column {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 40px 0 32px;
  }

  .site-footer__inner {
    row-gap: 32px;
    justify-items: center;
    text-align: center;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__logo {
    margin: 0 0 16px;
  }

  .site-footer__address {
    transform: none;
  }

  .site-footer__address p {
    text-align: center;
  }

  .site-footer__spacer {
    height: 8px;
  }

  .site-footer__center {
    align-items: center;
  }

  .site-footer__copyright {
    margin: 0 0 18px;
    transform: none;
  }

  .site-footer__social {
    margin: 0 0 18px;
  }

  .site-footer__badges {
    margin-top: 0;
    gap: 20px;
  }

  .site-footer__legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center;
    column-gap: 32px;
    row-gap: 18px;
  }

  .site-footer__links-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
  }

  .site-footer__links-column a {
    line-height: 1.4;
    white-space: normal;
  }
}

