.footer {
  background-color: var(--graphite-deep);
  color: var(--ink-light-muted);
  padding-top: 28px;
  border-top: 1px solid var(--graphite-line);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 1.38fr 0.9fr;
  gap: 28px;
  padding-bottom: 24px;
  align-items: start;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 10px;
}

.footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-light-muted);
  max-width: 290px;
}

.footer__desc strong {
  color: var(--paper);
}

.footer__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--graphite-line);
}

.footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 7px 22px;
}

.footer__nav-link {
  font-size: 12.5px;
  color: var(--ink-light-muted);
  line-height: 1.4;
  white-space: nowrap;
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--brand);
}

.footer__offices-list {
  display: flex;
  flex-direction: column;
}

.footer__office-row {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__office-row:first-child { padding-top: 0; }
.footer__office-row:last-child { border-bottom: 0; padding-bottom: 0; }

.footer__office-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
}

.footer__office-address {
  display: block;
  font-size: 12px;
  color: var(--ink-light-muted);
  line-height: 1.35;
}

.footer__contacts-quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.footer__phone {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.footer__phone:hover {
  color: var(--brand);
}

.footer__email {
  font-size: 13px;
  color: var(--brand);
  width: fit-content;
}

.footer__email:hover {
  color: var(--paper);
}

.footer__messengers {
  display: flex;
  gap: 6px;
}

.footer__social-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--graphite-line);
  background-color: var(--graphite-soft);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.footer__social-link svg {
  display: block;
}

.footer__social-link:hover {
  background-color: var(--brand-deep);
  border-color: var(--brand);
  color: var(--paper);
}

.footer__bottom {
  border-top: 1px solid var(--graphite-line);
  padding: 13px 0;
}

.footer__bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 12px;
  color: var(--ink-light-muted);
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__dev-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity var(--transition);
}

.footer__dev-link:hover {
  opacity: 1;
}

.footer__dev-logo {
  height: 26px;
  width: auto;
  display: block;
}

@media (max-width: 1040px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
}

@media (max-width: 720px) {
  .footer__bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer { padding-top: 24px; }
  .footer__main { grid-template-columns: 1fr; gap: 18px; padding-bottom: 18px; }
  .footer__logo { margin-bottom: 8px; }
  .footer__logo-img { height: 30px; }
  .footer__nav-grid { grid-template-columns: repeat(3, auto); gap: 8px 18px; }
  .footer__phone { font-size: 17px; }
  .footer__bottom { padding: 12px 0; }
}
