.page-contacts .site-footer {
  background: var(--bg-soft);
}

.contacts-main {
  padding: 39px 0 80px;
}

.contacts-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.1504px;
  color: #1a1a1a;
}

.contacts-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.contacts-breadcrumbs a:hover,
.contacts-breadcrumbs a:focus-visible {
  color: var(--accent);
}

.contacts-breadcrumbs-sep {
  color: #1a1a1a;
}

.contacts-breadcrumbs-current {
  color: var(--accent);
}

.contacts-page-title {
  margin: 0 0 64px;
  max-width: 677px;
  font-size: 45px;
  line-height: 52.8px;
  font-weight: 700;
  letter-spacing: -0.9px;
  color: #2b2727;
}

.contacts-columns {
  display: grid;
  grid-template-columns: 552px 552px;
  gap: 96px;
  align-items: start;
  justify-content: space-between;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 552px;
}

.contacts-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-section__title {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.36px;
  color: #2b2727;
}

.contacts-section__body {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.32px;
  color: var(--text-soft);
}

.contacts-section__body--tight {
  line-height: 24px;
}

.contacts-section__phone {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: #2b2727;
  text-decoration: none;
}

.contacts-section__phone:hover,
.contacts-section__phone:focus-visible {
  color: var(--accent);
}

.contacts-email-link {
  color: inherit;
  text-decoration: none;
}

.contacts-email-link:hover,
.contacts-email-link:focus-visible {
  color: var(--accent);
}

.contacts-section--requisites {
  gap: 16px;
  padding-top: 17px;
  border-top: 1px solid #bac0cc;
}

.contacts-section--requisites .contacts-section__title {
  color: #1a1a1a;
}

.contacts-req-name {
  margin: 0;
  font-size: 16px;
  line-height: 22.75px;
  font-weight: 600;
  letter-spacing: -0.1504px;
  color: #1a1a1a;
}

.contacts-req-line {
  margin: 0;
  font-size: 14px;
  line-height: 22.75px;
  font-weight: 500;
  letter-spacing: -0.1504px;
  color: #4a5568;
}

.contacts-req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-map {
  position: relative;
  width: 552px;
  max-width: 100%;
  height: 600px;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #eee;
  box-sizing: border-box;
}

.contacts-map::before,
.contacts-map::after {
  position: absolute;
  left: 50%;
  z-index: 2;
  pointer-events: none;
  transform: translateX(-50%);
}

.contacts-map.is-loading::before {
  content: "";
  top: 224px;
  width: 99px;
  height: 99px;
  background: url("assets/images/map-loading.svg") center / contain no-repeat;
}

.contacts-map.is-loading::after {
  content: "Загрузка карты...";
  top: 341px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #4b5563;
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.contacts-map.is-ready iframe {
  opacity: 1;
}

@media (max-width: 1240px) {
  .contacts-columns {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .contacts-info {
    max-width: none;
  }

  .contacts-map {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .contacts-columns {
    grid-template-columns: 1fr;
  }

  .contacts-map {
    height: 420px;
    order: 1;
  }

  .contacts-map.is-loading::before {
    top: 136px;
  }

  .contacts-map.is-loading::after {
    top: 252px;
    font-size: 20px;
  }

  .contacts-info {
    order: 2;
  }

  .contacts-page-title {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .page-contacts {
    background: #fbfbfb;
  }

  .page-contacts .site-header {
    border-bottom: 2px solid #e9e9e9;
    background: #fefefe;
    backdrop-filter: none;
  }

  .page-contacts .header-inner {
    min-height: 74px;
    padding: 12px 0;
    align-items: center;
  }

  .page-contacts .brand {
    gap: 6.236px;
    margin-left: 0;
  }

  .page-contacts .brand-logo {
    width: 40.091px;
    height: 40.091px;
    flex: 0 0 40.091px;
  }

  .page-contacts .brand-copy {
    gap: 0;
  }

  .page-contacts .brand-copy strong {
    font-size: 15.145px;
    letter-spacing: -0.7573px;
  }

  .page-contacts .brand-copy small {
    font-size: 9.8px;
    line-height: 1.25;
    letter-spacing: -0.098px;
  }

  .contacts-main {
    padding: 14px 0 62px;
  }

  .contacts-breadcrumbs {
    max-width: 269px;
    margin-bottom: 23px;
  }

  .contacts-page-title {
    max-width: 357px;
    margin-bottom: 18px;
    font-size: 25px;
    line-height: normal;
    letter-spacing: -0.5px;
  }

  .contacts-columns {
    gap: 24px;
  }

  .contacts-map {
    width: 357px;
    max-width: 100%;
    height: 377px;
    border-radius: 32px;
  }

  .contacts-map.is-loading::before {
    top: 139px;
    width: 84px;
    height: 84px;
  }

  .contacts-map.is-loading::after {
    top: 236px;
    font-size: 18px;
    line-height: 1.25;
  }

  .contacts-info {
    gap: 18px;
    max-width: 357px;
  }

  .contacts-section {
    gap: 8px;
  }

  .contacts-section__title {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.36px;
  }

  .contacts-section__body {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.32px;
    white-space: normal;
  }

  .contacts-section__body--tight {
    line-height: 24px;
  }

  .contacts-section__phone {
    font-size: 18px;
    line-height: 28px;
  }

  .contacts-section--requisites {
    gap: 16px;
    padding-top: 17px;
  }

  .contacts-req-list {
    gap: 8px;
  }

  .contacts-req-name {
    font-size: 16px;
    line-height: 22.75px;
  }

  .contacts-req-line {
    font-size: 14px;
    line-height: 22.75px;
  }

  .page-contacts .site-footer {
    padding: 30px 0 23px;
    background: #f8f9fa;
  }

  .page-contacts .footer-grid {
    grid-template-columns: 136px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 20px;
  }

  .page-contacts .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    row-gap: 13px;
  }

  .page-contacts .footer-brand-text {
    max-width: 357px;
    line-height: 18px;
  }

  .page-contacts .footer-column[aria-label="Продукция"] {
    display: none;
  }

  .page-contacts .footer-heading {
    font-size: 12px;
    line-height: 16px;
  }

  .page-contacts .footer-column {
    gap: 12px;
  }

  .page-contacts .footer-links {
    gap: 9px;
  }

  .page-contacts .footer-contacts-stack {
    gap: 14px;
  }

  .page-contacts .footer-contact {
    gap: 16px;
  }

  .page-contacts .footer-column-contacts {
    min-width: 0;
  }

  .page-contacts .footer-links a,
  .page-contacts .footer-contact-primary,
  .page-contacts .footer-contact:not(:has(.footer-contact-body)) strong {
    font-size: 14px;
    line-height: 20px;
  }

  .page-contacts .footer-contact-meta,
  .page-contacts .footer-contact:not(:has(.footer-contact-body)) small {
    font-size: 12px;
    line-height: 14.286px;
  }

  .page-contacts .site-footer .socials-contacts {
    display: grid;
    grid-template-columns: repeat(4, 38.737px);
    justify-content: start;
    gap: 9.684px;
    width: max-content;
    max-width: 100%;
  }
}
