.site-footer.footer {
  max-width: none;
  margin: 48px 0 0;
  padding: 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.footer-inner { max-width: 1440px; margin: 0 auto; padding: 48px 70px 28px; }
.footer-brand-line { margin-bottom: 24px; }
.site-footer .brand { width: 232px; }
.footer-project-address { margin-top: 12px; color: var(--muted); font-size: 13px; }
.footer-up { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; }
.footer-up svg { width: 36px; height: 36px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; }

.footer-grid { display: grid; grid-template-columns: 232px minmax(0, .9fr) minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 1.05fr); gap: 24px; }
.footer-block, .footer-identity { min-width: 0; }
.site-footer .footer-heading { margin: 0 0 18px; color: var(--teal); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.site-footer nav.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: 13px; font-weight: 500; }
.footer-links a, .footer-project-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 0; line-height: 1.6; }
.footer-links svg, .footer-project-links svg { width: 13px; height: 13px; flex: none; }
.footer-other-projects { min-width: 0; width: 100%; max-width: 232px; }
.site-footer .footer-other-projects .footer-heading { margin-bottom: 6px; }
.footer-project-links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 12px; }
.footer-project-links.footer-project-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; max-width: none; }
.footer-project-links .footer-project-logo { display: flex; justify-content: center; min-width: 0; min-height: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.footer-project-logo img { width: 100%; max-width: 130px; height: 52px; object-fit: contain; object-position: left center; }
.footer-project-links .footer-project-logo-voshod { grid-column: 1 / -1; min-height: 48px; padding: 0; }
.footer-project-logo-voshod img { max-width: 220px; height: 42px; filter: brightness(.7); }
.footer-phone { display: block; width: fit-content; min-height: 38px; padding: 4px 0; font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: lining-nums; }
.footer-phone-secondary { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.footer-email { display: inline-block; min-height: 38px; padding: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; min-height: 46px; padding: 8px; border: 0; border-radius: 50%; background: transparent; }
.footer-socials img { width: 28px; height: 28px; object-fit: contain; }
.footer-office address { font-size: 16px; font-style: normal; font-weight: 500; line-height: 1.6; }
.footer-hours { margin: 14px 0 22px; font-size: 13px; color: var(--muted); }
.site-footer .footer-choose { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; font-size: 12px; }
.footer-choose svg { width: 18px; height: 18px; flex: none; }

.footer-legal { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 30px; font-size: 11px; }
.footer-legal-links a { display: flex; align-items: center; min-height: 36px; padding: 6px 0; text-decoration: underline; text-decoration-color: #b9c9c7; text-underline-offset: 4px; }
.footer-legal-links .footer-up { margin-left: auto; gap: 10px; text-decoration: none; }
.footer-legal-bottom { display: flex; justify-content: space-between; gap: 40px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-legal-bottom p { max-width: 860px; }
.footer-legal-bottom > span { flex: none; }
.site-footer a { transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }

@media (hover: hover) {
  .site-footer a:not(.button):hover { color: var(--teal); }
  .footer-socials a:hover, .footer-project-links .footer-project-logo:hover { opacity: .75; }
  .footer-up:hover svg { border-color: var(--teal); background: #fff; }
}

@media (max-width: 1200px) {
  .footer-inner { padding-left: 45px; padding-right: 45px; }
  .footer-grid { gap: 24px; }
  .footer-phone { font-size: 19px; }
  .footer-phone-secondary { font-size: 16px; }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-identity { grid-row: 1 / 3; }
}

@media (max-width: 980px) {
  .footer-inner { padding: 40px 35px 26px; }
  .footer-grid { gap: 32px 24px; }
  .footer-phone { font-size: 23px; }
  .footer-phone-secondary { font-size: 18px; }
  .site-footer .footer-choose { min-width: 220px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .site-footer.footer { margin-top: 30px; }
  .footer-inner { position: relative; padding: 32px 23px 24px; }
  .footer-brand-line { margin-bottom: 24px; padding-right: 76px; }
  .site-footer .brand { width: clamp(165px, 48vw, 210px); }
  .footer-project-address { margin-top: 10px; font-size: 11px; }
  .footer-legal-links .footer-up { position: absolute; top: 32px; right: 23px; margin-left: 0; gap: 7px; font-size: 11px; }
  .footer-up svg { width: 30px; height: 30px; padding: 7px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-identity { grid-row: auto; }
  .footer-other-projects { max-width: 410px; }
  .footer-project-links.footer-project-logos { grid-template-columns: minmax(0, .95fr) minmax(0, .8fr) minmax(0, 1.45fr); gap: 10px; }
  .footer-project-links .footer-project-logo-voshod { grid-column: auto; min-height: 56px; }
  .footer-project-logo-voshod img { height: 52px; }
  .site-footer .footer-heading { margin-bottom: 12px; }
  .site-footer nav.footer-nav { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0 16px; }
  .footer-links a, .footer-project-links a { min-height: 44px; }
  .site-footer nav.footer-links { font-size: 13px; }
  .footer-project-links { gap: 0 24px; font-size: 13px; }
  .footer-phone { min-height: 44px; font-size: 25px; }
  .footer-phone-secondary { font-size: 20px; }
  .footer-email { min-height: 44px; font-size: 14px; }
  .footer-socials { margin-top: 12px; }
  .footer-socials a { width: 48px; height: 48px; min-height: 48px; padding: 9px; }
  .footer-hours { margin-bottom: 18px; }
  .site-footer .footer-choose { width: 100%; min-height: 50px; font-size: 13px; }
  .footer-legal { margin-top: 30px; padding-top: 18px; }
  .footer-legal-links { display: flex; flex-direction: column; gap: 0; font-size: 12px; }
  .footer-legal-links a { min-height: 44px; }
  .footer-legal-bottom { flex-direction: column; gap: 18px; font-size: 11px; }
}

@media (max-width: 350px) {
  .footer-inner { padding-left: 20px; padding-right: 20px; }
  .footer-legal-links .footer-up { right: 20px; flex-direction: column-reverse; gap: 2px; }
  .site-footer nav.footer-nav { gap: 0 10px; font-size: 12px; }
  .footer-phone { font-size: 23px; }
  .footer-phone-secondary { font-size: 19px; }
}
