.site-end { scroll-margin-top: var(--nav); }

.contact-band {
  border-block-start: 1px solid var(--line);
  background: #eeece7;
  padding-block: clamp(42px, 5vw, 74px);
}

.contact-band__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: var(--gutter);
  row-gap: 26px;
}

.contact-band__text h2 {
  max-width: 17ch;
  font-size: clamp(32px, 3.8vw, 55px);
  line-height: 1.05;
  text-wrap: balance;
}

.contact-band__text p {
  max-width: 35ch;
  margin-block: 15px 25px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
}

.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-band__photo {
  display: block;
  aspect-ratio: 1.95;
  overflow: clip;
  border-radius: var(--r-lg);
}

.contact-band__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 8%;
}

.site-footer {
  --footer-muted: #c9cdd0;
  --footer-line: #494e52;
  --footer-emphasis: #ffad70;
  background: #1b2024;
  color: #f8f7f4;
  padding-block: clamp(36px, 4.3vw, 62px) 12px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--footer-emphasis);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 24px;
}

.footer-workshop {
  min-width: 0;
}

.footer-workshop__place {
  color: var(--footer-muted);
  font-size: 14px;
  margin-block: 14px 0;
}

.site-footer .footer-workshop__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(23px, 2.6vw, 34px);
  font-weight: 525;
  line-height: 1.14;
  letter-spacing: -.035em;
  color: var(--footer-emphasis);
}

.site-footer :is(.footer-workshop__address, .footer-workshop__contacts) {
  display: flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: var(--footer-muted);
}

.footer-routes h2 {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: 0;
  margin-block: 9px 10px;
}

.footer-routes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-routes a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-block: 7px;
  min-height: 34px;
  width: fit-content;
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.32;
}

.footer-routes a > span { color: var(--footer-emphasis); }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--footer-line);
  margin-top: clamp(22px, 3vw, 42px);
  color: var(--footer-muted);
  font-size: 13px;
}

.site-footer__legal > div {
  display: flex;
  gap: 22px;
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 767px) {
  .contact-band__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-band__photo { aspect-ratio: 1.66; }
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
  .footer-workshop {
    grid-column: 1 / -1;
    border-block-end: 1px solid var(--footer-line);
    padding: 0 0 16px;
  }
  .footer-routes h2 { margin-block: 0 6px; }
  .footer-routes a,
  .site-footer :is(.footer-workshop__address, .footer-workshop__contacts) { min-height: 44px; }
}

@media (max-width: 479px) {
  .contact-band__actions > .btn { width: 100%; }
  .site-footer__legal > span { padding-bottom: 9px; }
}
