/* Футер «Сообщество 768» — media="(min-width: 688px) and (max-width: 943px)" */

/* —— Низ и br (как на 1024) —— */
.site-footer__br--1024 {
  display: inline;
}

.site-footer__bottom-bar--wide {
  display: none;
}

/* —— Разделители на всю ширину футера —— */
.site-footer__nav-grid::after {
  display: none;
}

.site-footer__nav {
  position: relative;
  padding-bottom: 48px;
}

.site-footer__nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #33457e;
  pointer-events: none;
}

/* —— Нижний блок Figma 768: 765×205, 2 ряда × 3 колонки —— */
.site-footer__contacts {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 205px;
  margin-inline: 0;
  padding: 28px var(--container-padding) 24px;
  border-top: none;
}

.site-footer__contacts::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  height: 1px;
  background-color: #33457e;
  pointer-events: none;
}

.site-footer__contacts-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 28px;
  width: 100%;
  max-width: 765px;
  margin-inline: auto;
  padding-bottom: 0;
  border-bottom: none;
  align-items: start;
}

.site-footer__logo {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  line-height: 0;
}

.site-footer__logo-img {
  display: block;
  width: 189px;
  max-width: 100%;
  height: auto;
}

.site-footer__contact-list,
.site-footer__contacts-end {
  display: contents;
}

.site-footer__contact-list .site-footer__contact-item:nth-child(1) {
  grid-column: 1;
  grid-row: 2;
}

.site-footer__contact-list .site-footer__contact-item:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.site-footer__contacts-end .site-footer__contact-item--address {
  grid-column: 2;
  grid-row: 1;
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.site-footer__contact-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 110%;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__contact-value {
  margin: 0;
  font-family: "Roboto Condensed", var(--font-heading), sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

a.site-footer__contact-value {
  font-family: "Roboto Condensed", var(--font-heading), sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-footer__contact-value--address {
  max-width: none;
  width: 160px;
  font-family: "Roboto Condensed", var(--font-heading), sans-serif;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0;
  min-height: 36px;
  white-space: normal;
}

.site-footer__address-variant--tablet {
  display: block;
}

.site-footer__address-variant--wide {
  display: none;
}

.site-footer__contact-value--address .site-footer__br--1024 {
  display: none;
}

.site-footer__contacts-policies--768 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  align-items: flex-start;
  align-self: start;
  margin: 0;
  padding: 0;
  text-align: left;
}

.site-footer__contacts-policy-link {
  display: block;
  max-width: 208.33px;
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.site-footer__contacts-policy-link:first-child {
  line-height: 100%;
}

.site-footer__contacts-policy-link:last-child {
  line-height: 120%;
}

.site-footer__contacts-policy-link:hover,
.site-footer__contacts-policy-link:focus-visible {
  color: #ffffff;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  align-self: start;
}

.site-footer__social-link {
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  line-height: 0;
}

.site-footer__social-icon {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
}

/* 0.5px обводка Figma при отображении 40×40 (viewBox 50) */
.site-footer__social-icon rect {
  stroke-width: 0.625;
}

/* —— Второй ряд: копирайт | разработка | реестр —— */
.site-footer__bottom {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 20px var(--container-padding) 28px;
  border-bottom: none;
}

.site-footer__bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #33457e;
  pointer-events: none;
}

.site-footer__bottom-inner {
  width: 100%;
  max-width: 765px;
  padding: 0;
  margin-inline: auto;
}

.site-footer__bottom-bar--1024 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 16px;
  width: 100%;
}

.site-footer__bottom-bar--1024 .site-footer__copyright {
  grid-column: 1;
  justify-self: start;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  color: #ffffff;
}

.site-footer__bottom-bar--1024 .site-footer__legal--1024 {
  grid-column: 2;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.site-footer__bottom-bar--1024 .site-footer__legal-col--policies {
  display: none;
}

.site-footer__bottom-bar--1024 .site-footer__legal-link--dev {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__bottom-bar--1024 .site-footer__legal-link--dev:hover {
  color: #ffffff;
}

.site-footer__bottom-bar--1024 .site-footer__registry {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: none;
}

.site-footer__bottom-bar--1024 .site-footer__registry-icon {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 40px;
}

.site-footer__bottom-bar--1024 .site-footer__registry-text {
  margin: 0;
  max-width: 150px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  line-height: 110%;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Навигация Figma 768: 3+2 колонки —— */
.site-footer__nav {
  max-width: 100%;
  padding-inline: var(--container-padding);
  box-sizing: border-box;
}

.site-footer__nav-grid {
  display: grid;
  grid-template-columns: 229px 230px 229px;
  grid-template-rows: auto auto;
  width: 100%;
  max-width: 688px;
  margin-inline: 0;
}

.site-footer__col {
  box-sizing: border-box;
  gap: 20px;
  min-height: 0;
  padding: 40px 0 0;
  border-left: none !important;
}

.site-footer__col:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  width: 229px;
  min-height: 246px;
}

.site-footer__col:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  width: 230px;
  min-height: 246px;
}

.site-footer__col:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  width: 229px;
  min-height: 244px;
}

.site-footer__col:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
  width: 229px;
  min-height: 149px;
  padding-bottom: 16px;
}

.site-footer__col--featured {
  grid-column: 2 / 4;
  grid-row: 2;
  width: auto;
  min-height: 149px;
  max-width: 459px;
}

.site-footer__col-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 110%;
  letter-spacing: 0;
  color: #ffffff;
}

.site-footer__links {
  gap: 20px;
}

.site-footer__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__col--featured .site-footer__links {
  gap: 20px;
}

.site-footer__col:nth-child(2) .site-footer__br--1024 {
  display: inline;
}

.site-footer__col--featured .site-footer__link--featured {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 110%;
  letter-spacing: 0;
  color: #ffffff;
}

.site-footer__col--featured .site-footer__br--1024 {
  display: none;
}

.site-footer__col--featured .site-footer__links > li:last-child .site-footer__link--featured {
  white-space: nowrap;
}
