/* Футер mobile — 376–687px, подключается с media="(max-width: 687px)" */

@media (max-width: 687px) {
  .site-footer {
    display: flex;
    flex-direction: column;
  }

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

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

  /* —— Контакты Figma 375: лого → телефон → email → адрес → соцсети —— */
  .site-footer__contacts {
    order: 1;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 40px var(--container-padding) 40px;
    border-top: none;
  }

  .site-footer__contacts::before,
  .site-footer__contacts::after {
    display: none;
  }

  .site-footer__contacts-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 30px;
    column-gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: start;
  }

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

  .site-footer__logo-img {
    display: block;
    width: 163px;
    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: 1;
    grid-row: 3;
  }

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

  .site-footer__social {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
    align-self: start;
  }

  .site-footer__contacts-policies--768 {
    display: none;
  }

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

  .site-footer__contact-item--address {
    max-width: 241px;
  }

  .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 {
    width: 241px;
    max-width: 241px;
    min-height: 44px;
    font-family: "Roboto Condensed", var(--font-heading), sans-serif;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: normal;
  }

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

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

  .site-footer__social {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    width: 90px;
  }

  .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;
  }

  .site-footer__social-icon rect {
    stroke-width: 0.625;
  }

  /* —— Навигация Figma 375: 2 колонки + featured —— */
  .site-footer__nav {
    order: 2;
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px var(--container-padding) 40px;
    border-top: 1px solid #33457e;
  }

  .site-footer__nav-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 28px;
    row-gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .site-footer__nav-grid::after {
    display: none;
  }

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

  .site-footer__col:not(.site-footer__col--featured) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-left: none;
  }

  .site-footer__col:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

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

  .site-footer__col:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer__col:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer__col--featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 1 / -1;
    grid-row: 3;
    box-sizing: border-box;
    width: 100%;
    max-width: 345px;
    min-width: 0;
    min-height: 0;
    margin-top: -20px;
    margin-left: 0;
    padding: 0;
    border: none !important;
    border-left: none !important;
    box-shadow: none;
  }

  .site-footer__col-title {
    margin: 0;
    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 {
    width: 100%;
    max-width: 345px;
    margin: 0;
    padding: 0;
    gap: 20px;
    border: none !important;
    border-left: none !important;
  }

  .site-footer__link--featured {
    display: inline;
    width: auto;
    max-width: 100%;
    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__links > li:last-child .site-footer__link--featured {
    white-space: normal;
  }

  /* —— Нижний блок Figma 375: реестр → политики → разработка —— */
  .site-footer__bottom {
    order: 3;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px var(--container-padding) 24px;
    border-top: 1px solid #33457e;
  }

  .site-footer__bottom-inner {
    max-width: none;
    width: 100%;
  }

  .site-footer__bottom-bar--1024 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
  }

  .site-footer__bottom-bar--1024 .site-footer__copyright {
    display: block;
    order: 3;
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 130%;
    color: #ffffff;
    white-space: nowrap;
  }

  .site-footer__bottom-bar--1024 .site-footer__registry {
    order: 1;
    position: relative;
    display: block;
    align-self: flex-start;
    width: 200px;
    max-width: 100%;
    height: 67px;
    min-height: 67px;
    margin: 0;
    padding: 0;
  }

  .site-footer__bottom-bar--1024 .site-footer__registry-icon {
    position: absolute;
    top: 7px;
    left: 0;
    display: block;
    width: 47px;
    height: 52px;
  }

  .site-footer__bottom-bar--1024 .site-footer__registry-text {
    position: absolute;
    top: 6px;
    left: 70px;
    box-sizing: border-box;
    width: 136px;
    max-width: 136px;
    height: 54px;
    margin: 0;
    padding: 0;
    font-family: var(--font-registry);
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 18.2px;
    letter-spacing: 0;
    color: #ffffff;
  }

  .site-footer__bottom-bar--1024 .site-footer__registry-text br {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 18.2px;
  }

  .site-footer__bottom-bar--1024 .site-footer__legal--1024 {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 225px;
  }

  .site-footer__bottom-bar--1024 .site-footer__legal-col--policies {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 0;
    padding: 0;
  }

  .site-footer__bottom-bar--1024 .site-footer__legal-col--policies .site-footer__legal-link {
    display: block;
    font-family: "Roboto Flex", var(--font-body), sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    white-space: normal;
  }

  .site-footer__bottom-bar--1024
    .site-footer__legal-col--policies
    .site-footer__legal-link:first-child {
    line-height: 100%;
  }

  .site-footer__bottom-bar--1024
    .site-footer__legal-col--policies
    .site-footer__legal-link:last-child {
    line-height: 120%;
  }

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

  .site-footer__bottom-bar--1024 .site-footer__legal-link--dev {
    font-family: "Roboto Flex", var(--font-body), sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    white-space: normal;
  }
}
