/* Component rules and breakpoint overrides; legacy selectors are retained. */
.contacts__layout {
  height: calc(100svh - 169px);
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 20px;
  margin: 41px var(--gutter) 80px;
}
.contacts__title-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #151515;
}
.contacts__title-card img,
.contact-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contacts__title-card:after,
.contact-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}
.contacts__title-card {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacts__title-card h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}
.contacts__content {
  display: grid;
  grid-template-rows: 58px 1fr 58px;
  gap: 20px;
  min-width: 0;
}
.contacts__intro,
.contacts__details {
  background: var(--red-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contacts__locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 0;
}
.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-card__content {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.contact-card h2 {
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.contact-card p {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
}
.contacts__details {
  gap: 22px;
  padding: 10px 15px;
}
.contacts__details span {
  white-space: nowrap;
}
.contacts__details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.contacts__intro {
  gap: 22px;
  justify-content: space-between;
  padding: 8px 15px 8px 24px;
}
.contacts__intro .pill {
  min-height: 36px;
}
.contact-card .pill {
  margin-top: 25px;
}
@media (min-width: 901px) {
  .contacts__title-card {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 42px;
  }
  .contacts__title-card:after {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.28) 65%
    );
  }
}
.contacts__intro {
  justify-content: center;
}
@media (max-width: 900px) {
  .contacts__layout {
    min-height: 740px;
    grid-template-columns: 1fr;
  }
  .contacts__title-card {
    min-height: 180px;
  }
  .contacts__content {
    grid-template-rows: 80px 400px auto;
  }
}
@media (max-width: 600px) {
  .contacts__layout {
    min-height: 850px;
    margin: 40px 20px 70px;
    gap: 20px;
  }
  .contacts__title-card {
    height: 112px;
    min-height: 0;
  }
  .contacts__title-card h1 {
    font-size: 35px;
  }
  .contacts__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .contacts__intro {
    min-height: 100px;
  }
  .contacts__locations {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card {
    height: 260px;
  }
  .contacts__details {
    min-height: 100px;
    flex-direction: column;
    gap: 8px;
  }
  .contacts__intro {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  .contact-card h2 {
    font-size: 36px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .contacts__title-card h1 {
    font-size: 48px;
    line-height: 1;
  }
  .contacts__intro {
    min-height: 58px;
  }
}

@media (min-width: 901px) {
  .contacts__layout {
    margin-inline: calc(max(0px, (100% - var(--content-max)) / 2) + var(--gutter));
  }
}
