/* Футер: базовые стили, адаптивные состояния и интерактивные элементы. */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 64px 0 0;
  padding: 0;
  color: var(--color-text-main);
  background: var(--color-surface);
  box-shadow: var(--shadow2);
  box-sizing: border-box;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition:
    color .1s ease,
    background-color .1s ease,
    border-color .1s ease,
    transform .1s ease;
  transition: none;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* Основная сетка футера. */
.site-footer__inner {
  padding-top: 42px;
  padding-bottom: 0;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(170px, .8fr) minmax(260px, 1fr);
  column-gap: clamp(32px, 5vw, 76px);
  align-items: start;
  padding-bottom: 38px;
}

/* Логотип и контактная информация. */
.site-footer__brand {
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
}

.site-footer__logo img {
  display: block;
  width: auto;
  max-width: 215px;
  height: 48px;
  object-fit: contain;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 17px;
}

.site-footer__eyebrow {
  line-height: 1.4;
  font-size: var(--fs07);
  font-weight: 500;
  color: var(--color-text-muted);
}

.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs03);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .01em;
}

.site-footer__phone .ic_phone_2,
.site-footer__address .ic_map_2 {
  background: var(--color-primary);
}


.site-footer__address a {
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: fit-content;
  max-width: 300px;
  margin: 0;
  color: var(--color-text-main);
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.site-footer__address a:hover {
  color: var(--color-primary);
}

.site-footer__address a .ic_map_2 {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.site-footer__pin {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: var(--color-primary);
}

/* Навигация по страницам сайта. */
.footer_heading {
  margin: 25px 0 14px;
  line-height: 1.3;
  font-weight: 700;
}
.pages_title {
  margin-bottom: 0;
}

.site-footer__navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.site-footer__navigation a {
  color: var(--color-text-main);
  font-size: var(--fs06);
  line-height: 1.4;
}

.site-footer__navigation a:hover {
  color: var(--color-primary);
}


/* Социальные сети. */
.site-footer__channels {
  min-width: 0;
}

.site-footer .social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  text-align: left;
}

.site-footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--color-text-muted);
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(31, 41, 55, .045);
  color: var(--color-text-inverse);
}
.site-footer .social a:hover {
  color: var(--color-text-inverse) !important;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  
}
.site-footer .social a:hover i {
  background: #fff;
}

.site-footer .social a i {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  background: var(--color-text-main);
}



/* Ссылки на приложения. */
.site-footer .app_download {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.site-footer .app_download .download_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  background: ;
  border: 1px solid var(--color-text-muted);
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(31, 41, 55, .04);
  color: var(--color-text-main);
}
.site-footer .app_download .download_icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.site-footer .app_download .download_icon i {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0 7px 0 0;
  background: var(--color-text-main);
}
.site-footer .app_download .download_icon:hover i {
  background: var(--color-text-inverse);
}

.site-footer .app_download .download_icon span {
  position: static;
  color: inherit;
  font-size: var(--fs07);
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
}


/* Категории меню. */
.site-footer__categories {
  padding: 22px 0;
  border-top: 1px solid #ccc;
}

.site-footer__categories-title {
  margin: 0 0 13px;
  font-size: var(--fs03);
  line-height: 1.3;
  font-weight: 700;
}

.site-footer__categories-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.site-footer__categories-list a {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  background: ;
  border: 1px solid var(--color-text-muted);
  border-radius: 8px;
  padding: 3px 12px;
  font-size: var(--fs06);
  font-weight: 500;
  color: var(--color-text-main);
}

.site-footer__categories-list a::before {

}

.site-footer__categories-list a:hover {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-text-inverse);
}


/* Юридические ссылки и копирайт. */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 17px 0;
  border-top: 1px solid #ccc;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.site-footer__legal a {
  white-space: nowrap;
  line-height: 1.6;
  font-size: var(--fs07);
  color: var(--color-text-muted);
}
.site-footer__legal a:hover {
  color: var(--color-primary);
}

.site-footer__legal a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 11px;
  color: #a3aab4;
}

.site-footer__copyright {
  flex: 0 0 auto;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs07);
  line-height: 1.5;
  text-align: right;
}





/* Планшеты: контакты занимают верхнюю строку, навигация и соцсети — нижнюю. */
@media screen and (max-width: 1100px) {
  .site-footer {

  }

  .site-footer__logo {
    padding-top: 2em;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 34px;
    row-gap: 34px;
  }

  .site-footer__brand {
    grid-column: 1;
  }

  .site-footer__navigation {
    grid-column: 1;
  }

  .site-footer__channels {
    grid-column: 2;
  }

  /* Юридические ссылки и копирайт. */
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 16px 0 18px;
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
    width: 100%;
    row-gap: 0;
    text-align: center;
  }

  .site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 5px 0;
    line-height: 1.4;
    white-space: normal;
  }

  .site-footer__legal a + a::before {
    margin: 0 10px;
  }

  .site-footer__copyright {
    flex: 0 1 auto;
    max-width: 100%;
    line-height: 1.5;
    text-align: center;
  }

}

/* Мобильные устройства: все секции располагаются вертикально. */
@media screen and (max-width: 600px) {
  .site-footer {
    margin-top: 32px;
  }

  .site-footer__inner {
    padding-top: 28px;
  }

  .site-footer__main {
    display: flex;
    flex-direction: column;
    gap: 29px;
    padding-bottom: 26px;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .site-footer__logo {
    margin: 0em 0 1em;
  }

  .site-footer__logo img {
    height: 42px;
    max-width: 205px;
  }

  .site-footer__contact,
  .site-footer__address {
    align-items: center;
    margin-top: 12px;
    text-align: center;
  }

  .site-footer__contact + .site-footer__contact {
    margin-top: 13px;
  }

  .site-footer__phone {

  }

  .site-footer__address a {
    display: block;
    text-align: center;
  }
    .site-footer__address a i {
      position: relative;
      top: 4px;
      display: inline-block !important;
    }

  .site-footer__navigation,
  .site-footer__channels {
    width: 100%;
    text-align: center;
  }


  .site-footer__navigation {
    align-items: center;
    gap: 12px;
  }

  .site-footer__navigation a {

  }

  .site-footer .social {
    justify-content: center;
    gap: 9px;
  }

  .site-footer .app_download {
    justify-content: center;
    gap: 9px;
  }


  /* Категории меню. */
  .site-footer__categories {
    padding: 18px 0;
  }

  .site-footer__categories-title {
    text-align: center;
  }

  .site-footer__categories-list {
    justify-content: center;
    column-gap: 16px;
    row-gap: 9px;
  }

  /* Юридические ссылки и копирайт. */
  .site-footer__bottom {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 17px 0 20px;
  }

  .site-footer__legal {
    justify-content: center;
    row-gap: 2px;
    text-align: center;
  }

  .site-footer__legal a {
    min-height: 38px;
    padding: 6px 0;
  }

  .site-footer__legal a + a::before {
    margin: 0 7px;
  }

  .site-footer__copyright {
    max-width: 100%;
    text-align: center;
  }
}

/* Учитываем системную настройку уменьшения анимации. */
@media (prefers-reduced-motion: reduce) {
  .site-footer a {
    transition: none;
  }
}
