.contactsIntro {
  padding: clamp(44px, 4vw, 56px) 0 clamp(48px, 4.5vw, 64px);
  border-top: 1px solid #e7e5df;
  background: var(--paper);
}

.contactsIntro .breadcrumbs {
  margin-bottom: 28px;
}

.contactsIntro h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(43px, 4vw, 61px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.045;
  text-wrap: balance;
}

.contactDetails {
  display: grid;
  margin: 36px 0 0;
  border-top: 1px solid #d5d2cc;
  border-bottom: 1px solid #d5d2cc;
  grid-template-columns: 0.75fr 1fr 1.65fr;
}

.contactDetails > div {
  min-width: 0;
  padding: 20px clamp(20px, 2.25vw, 30px) 22px;
  border-left: 1px solid #d5d2cc;
}

.contactDetails > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.contactDetails dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.contactDetails dd {
  margin: 0;
  color: var(--black);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.5;
}

.contactDetails a {
  border-bottom: 1px solid rgba(32, 33, 36, 0.25);
  transition: border-color 180ms ease, color 180ms ease;
}

.contactDetails a:hover {
  border-color: var(--red);
  color: var(--red);
}

.contactDetails address {
  font-style: normal;
}

.contactsMainSection {
  padding: clamp(56px, 5vw, 72px) 0;
  border-top: 1px solid #dedcd7;
  background: var(--white);
}

.contactsMainGrid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px);
}

.mapBlock {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
}

.requisitesLayout > h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.mapFrame {
  min-height: 500px;
  flex: 1;
  border: 1px solid #dedcd7;
  background: #e8e6e1;
}

.mapFrame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  filter: grayscale(0.15) contrast(0.96);
}

.mapGate {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 500px;
  padding: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    linear-gradient(rgba(32, 33, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 36, 0.045) 1px, transparent 1px),
    #e8e6e1;
  background-size: 34px 34px;
  text-align: center;
}

.mapMark {
  position: relative;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  border: 6px solid var(--red);
  border-radius: 50% 50% 50% 0;
  background: var(--paper);
  transform: rotate(-45deg);
}

.mapMark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--graphite);
  content: "";
  transform: translate(-50%, -50%);
}

.mapGate > span:not(.mapMark) {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mapGate button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  gap: 18px;
}

.mapGate button:hover,
.mapGate button:focus-visible {
  background: var(--red);
}

.mapGate button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.formCard {
  padding: clamp(28px, 3vw, 36px);
  border-top: 3px solid var(--red);
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(32, 33, 36, 0.08);
}

.formCardHeader {
  margin-bottom: 22px;
}

.formCardHeader h2 {
  margin: 0;
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.formCard .request-fields input,
.formCard .request-fields textarea {
  background: var(--white);
}

.formCard .request-fields textarea {
  min-height: 104px;
}

.formCard .request-submit {
  min-height: 52px;
}

.formCard .request-success-inline {
  min-height: clamp(430px, 38vw, 540px);
  padding-right: 0;
  padding-left: 0;
}

.requisitesSection {
  padding: clamp(52px, 5vw, 68px) 0;
  border-top: 1px solid #dedcd7;
  background: var(--paper);
}

.requisitesLayout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(40px, 6vw, 88px);
}

.requisitesList {
  display: grid;
  margin: 0;
  border-top: 1px solid #d5d2cc;
  border-bottom: 1px solid #d5d2cc;
  grid-template-columns: 1.45fr 0.65fr 0.85fr;
}

.requisitesList > div {
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 18px 22px;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid #d5d2cc;
}

.requisitesList > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.requisitesList dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.requisitesList dd {
  margin: 0;
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 1060px) {
  .contactsMainGrid {
    gap: 28px;
  }

  .requisitesLayout {
    gap: 40px;
  }
}

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

  .contactDetails > div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid #d5d2cc;
    border-left: 0;
    grid-column: 1 / -1;
  }

  .contactsMainGrid,
  .requisitesLayout {
    grid-template-columns: 1fr;
  }

  .contactsMainGrid {
    gap: 40px;
  }

  .requisitesLayout {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .contactsIntro {
    padding: 36px 0 52px;
  }

  .contactsIntro .breadcrumbs {
    margin-bottom: 26px;
  }

  .contactsIntro h1 {
    font-size: clamp(36px, 11vw, 47px);
  }

  .contactDetails {
    margin-top: 30px;
    grid-template-columns: 1fr;
  }

  .contactDetails > div,
  .contactDetails > div:first-child,
  .contactDetails > div:nth-child(3) {
    padding: 20px 0 22px;
    border-top: 1px solid #d5d2cc;
    border-left: 0;
    grid-column: auto;
  }

  .contactDetails > div:first-child {
    border-top: 0;
  }

  .contactDetails dd {
    font-size: 17px;
  }

  .contactsMainSection {
    padding: 52px 0 60px;
  }

  .requisitesLayout > h2 {
    font-size: clamp(34px, 10vw, 43px);
  }

  .mapFrame,
  .mapFrame iframe,
  .mapGate {
    min-height: 330px;
  }

  .mapGate {
    padding: 30px 22px;
  }

  .formCard {
    padding: 24px 20px;
  }

  .formCardHeader {
    margin-bottom: 22px;
  }

  .formCardHeader h2 {
    font-size: 29px;
  }

  .formCard .request-fields textarea {
    min-height: 86px;
  }

  .requisitesSection {
    padding: 52px 0 60px;
  }

  .requisitesLayout {
    gap: 26px;
  }

  .requisitesList {
    border-bottom: 0;
    grid-template-columns: 1fr;
  }

  .requisitesList > div {
    min-height: 0;
    padding: 17px 0 18px;
    border-bottom: 1px solid #d5d2cc;
    border-left: 0;
  }

  .requisitesList > div:first-child {
    padding-left: 0;
  }

  .requisitesList dd {
    font-size: 16px;
  }
}
