.contacts_modern_page {
  color: #1f2823;
  padding-bottom: 80px;
}

.contacts_hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
  margin-bottom: 28px;
  padding: 0 !important;
}

.contacts_hero_content,
.contacts_hero_panel,
.contacts_modern_page .contact_subtitle,
.contacts_modern_page .contact_row,
.contacts_modern_page .map_container {
  border: 1px solid rgba(37, 51, 43, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 50px rgba(28, 35, 31, 0.08);
}

.contacts_hero_content {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(120deg, rgba(65, 67, 85, 0.82), rgba(65, 67, 85, 0.40)),
    url("/local/templates/.default/img/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.contacts_eyebrow,
.contacts_hero_panel span,
.contacts_modern_page .contact_row .row_title h3,
.contacts_modern_page .contact_row > h3 {
  font-family: "Manrope", sans-serif;
}

.contacts_eyebrow,
.contacts_hero_panel span {
  display: inline-flex;
  width: fit-content;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts_hero_content .contacts_eyebrow {
  color: #f3d2a5;
  margin-bottom: 16px;
}

.contacts_hero_content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.contacts_hero_content p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.contacts_hero_panel {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #414355;
  color: #fff;
}

.contacts_hero_panel span {
  color: rgba(255, 255, 255, 0.72);
}

.contacts_hero_panel a {
  margin-top: 16px;
  color: #f3d2a5;
  font: 800 28px/1.05 "Manrope", sans-serif;
  text-decoration: none;
}

.contacts_hero_panel a:hover {
  color: #fff;
}

.contacts_hero_panel p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.contacts_modern_page .contact_subtitle {
  margin: 0 0 24px;
  padding: 22px 24px;
  color: rgba(31, 40, 35, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.contacts_modern_page .contacts_page {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contacts_modern_page .contacts_info {
  display: grid;
  gap: 16px;
}

.contacts_modern_page .contact_row {
  margin: 0;
  padding: 22px;
}

.contacts_modern_page .contact_row .row_title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.contacts_modern_page .contact_row .row_title h3,
.contacts_modern_page .contact_row > h3 {
  margin: 0;
  color: #1f2823;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.contacts_modern_page .contact_row .row_title svg,
.contacts_modern_page .contact_row .row_title img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #971520;
  fill: #971520;
  object-fit: contain;
}

.contacts_modern_page .contacts_info p {
  margin: 0 0 10px;
  color: rgba(31, 40, 35, 0.74);
  font-size: 15px;
  line-height: 1.5;
}

.contacts_modern_page .contacts_info p:last-child {
  margin-bottom: 0;
}

.contacts_modern_page .contacts_info a:not(.social_item) {
  color: #971520;
  font-weight: 700;
  text-decoration: none;
}

.contacts_modern_page .contacts_info a:not(.social_item):hover {
  color: #414355;
}

.contacts_modern_page .contact_row.contact_row_max a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.contacts_modern_page .contact_row.contact_row_max img {
  width: 32px;
  height: 32px;
}

.contacts_modern_page .contacts_info .socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contacts_modern_page .social_item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contacts_modern_page .social_item:hover {
  opacity: 0.7;
}

.contacts_modern_page .social_item svg,
.contacts_modern_page .social_item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.contacts_modern_page .map_container {
  width: 100%;
  height: min(760px, calc(100vh - 120px));
  min-height: 560px;
  max-width: 100%;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.contacts_modern_page .map_container #contact_map {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 1100px) {
  .contacts_modern_page .contacts_page {
    grid-template-columns: 1fr;
  }

  .contacts_modern_page .map_container {
    position: static;
    height: 560px;
  }
}

@media screen and (max-width: 900px) {
  .contacts_hero {
    grid-template-columns: 1fr;
  }

  .contacts_hero_panel {
    min-height: 180px;
  }
}

@media screen and (max-width: 680px) {
  .contacts_modern_page {
    padding-bottom: 48px;
  }

  .contacts_hero {
    margin-top: 22px;
    gap: 16px;
  }

  .contacts_hero_content,
  .contacts_hero_panel,
  .contacts_modern_page .contact_subtitle,
  .contacts_modern_page .contact_row {
    padding: 20px;
  }

  .contacts_hero_content,
  .contacts_hero_panel {
    min-height: auto;
  }

  .contacts_hero_content h1 {
    font-size: 44px;
  }

  .contacts_hero_content p,
  .contacts_modern_page .contact_subtitle {
    font-size: 16px;
  }

  .contacts_hero_panel a {
    font-size: 24px;
  }

  .contacts_modern_page .contact_row .row_title h3,
  .contacts_modern_page .contact_row > h3 {
    font-size: 21px;
  }

  .contacts_modern_page .map_container {
    height: 420px;
    min-height: 420px;
  }
}
