/* /contacts — паритет ProD Nuxt (hero overlays + plashka). Без блока «Обратиться по задаче». */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sa-contacts-page {
  background: #151516;
  color: #fff;
}

/* На /contacts форма уже на странице — прилипающую «Оставить заявку» не показываем. */
.sa-contacts-page #body.body-application {
  display: none !important;
}

.sa-contacts-lead-section {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-top: 0;
  padding-top: 28px;
  padding-bottom: 76px;
}

/* Блок «Общаться в мессенджере» — выше дна карточки. */
.sa-contacts-page #sa-inline-lead-root .contact-form__messenger[data-v-2ee28934] {
  position: relative;
  top: -35px;
}

/* Контакты и соцсети уже в hero — футер не показываем. */
.sa-contacts-page .footer-modern {
  display: none !important;
}

.sa-contacts-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent !important;
}

.sa-contacts-main {
  flex: 1 0 auto;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* === ProD .title-block === */
.sa-contacts-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 78px;
  overflow: visible;
  display: flex;
  align-items: center;
  background: transparent;
}

/*
 * ProD .title-overlay: overflow:hidden + box-shadow + radial → #191a1b.
 * Без блока «задачи» низ оверлея чуть удлиняем вниз, чтобы не было
 * жёсткого обреза «тёплое фото → чёрный».
 */
.sa-contacts-hero__overlays {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 140px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  box-shadow: rgb(25, 26, 27) -18px 55px 111px 85px;
}

.sa-contacts-hero__overlays-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sa-contacts-hero__bg,
.sa-contacts-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sa-contacts-hero__bg {
  z-index: 0;
  background-image: url("../img/contacts/moscow3.jpg");
  background-size: cover;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  transition: background-image 0.25s ease-in;
}

.sa-contacts-hero__overlay--first {
  z-index: 1;
  background: linear-gradient(
    219.69deg,
    rgba(255, 0, 0, 0.4) 4.13%,
    rgba(30, 0, 114, 0.4) 92.55%
  );
}

/* Как ProD radial, плюс низ дольше идёт в solid #191a1b */
.sa-contacts-hero__overlay--second {
  z-index: 2;
  background: radial-gradient(
    91.54% 91.54% at 50% 8.46%,
    rgba(25, 26, 27, 0) 0px,
    rgba(25, 26, 27, 0.243) 31.25%,
    rgba(25, 26, 27, 0.506) 57.29%,
    rgba(25, 26, 27, 0.69) 68.23%,
    rgb(25, 26, 27) 100%
  );
}

.sa-contacts-hero__overlay--third {
  z-index: 3;
  inset: -20%;
  background-image: url("../img/contacts/overlay-noise.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 0%;
}

/* Поверх noise: длинный сход в тот же #191a1b, что и box-shadow / фон */
.sa-contacts-hero__overlay--bottom-fade {
  z-index: 4;
  top: auto;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    180deg,
    rgba(25, 26, 27, 0) 0%,
    rgba(25, 26, 27, 0.25) 28%,
    rgba(25, 26, 27, 0.65) 58%,
    rgba(25, 26, 27, 0.92) 82%,
    rgb(25, 26, 27) 100%
  );
}

/* === ProD .title-content === */
.sa-contacts-hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1575px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-contacts-tabs {
  display: grid;
  gap: 60px;
  max-width: 536px;
  width: 100%;
}

.sa-contacts-tab {
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sa-contacts-tab.is-active,
.sa-contacts-tab[aria-selected="true"] {
  opacity: 1;
}

.sa-contacts-tab__city {
  margin: 0;
  padding: 0 0 10px;
  font-family: MuseoSansCyrl, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
  color: #fff;
}

.sa-contacts-tab__number,
.sa-contacts-tab__address {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: MuseoSansCyrl, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
}

.sa-contacts-tab__number {
  font-size: 18px;
  line-height: 28.8px;
}

.sa-contacts-tab__address {
  margin-top: 14px;
  font-size: 14px;
  line-height: 22.4px;
}

.sa-contacts-tab__address br {
  display: none;
}

/* === ProD .plashka === */
.sa-contacts-plashka {
  position: relative;
  top: 17px;
  z-index: 2;
  flex: 0 0 auto;
  width: 538px;
  max-width: 538px;
  box-sizing: border-box;
  padding: 51px 88px;
  border-radius: 30px;
  background-color: rgba(29, 29, 31, 0.8);
  color: #777;
  box-shadow: rgba(0, 0, 0, 0.15) 0 0 14px 0;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
}

.sa-contacts-plashka__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: rgba(116, 11, 160, 0.34) 0 0 85px 0;
}

.sa-contacts-plashka__content {
  position: relative;
  z-index: 1;
}

.sa-contacts-plashka__mail-head {
  position: relative;
  top: -5px;
  font-size: 18px;
  font-weight: 300;
  line-height: 160%;
  color: #969696;
}

.sa-contacts-plashka__mail-link {
  position: relative;
  top: -3px;
  display: inline-block;
  margin-top: 0;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 300;
  line-height: 41.6px;
  letter-spacing: 0.002em;
}

.sa-contacts-plashka__mail-link:hover {
  color: #9cc9ff;
}

.sa-contacts-plashka__line {
  margin-top: 30px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgb(0, 240, 255), rgb(255, 0, 181));
}

.sa-contacts-plashka__follow-head {
  margin-top: 30px;
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  line-height: 41.6px;
  letter-spacing: 0.015em;
}

.sa-contacts-plashka__follow-content {
  margin: 7px 0 0;
  color: #777;
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
}

.sa-contacts-plashka__follow-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  column-gap: 28px;
  margin-top: 28px;
}

.sa-contacts-plashka__follow-links a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  overflow: hidden;
  line-height: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.sa-contacts-plashka__follow-links a:hover {
  opacity: 1;
}

.sa-contacts-plashka__follow-links svg {
  width: 48px;
  height: 48px;
}

@media screen and (max-width: 1250px) {
  .sa-contacts-hero {
    padding: 0 36px;
  }

  .sa-contacts-plashka {
    width: min(480px, 100%);
    max-width: 480px;
    padding: 42px 48px;
  }

  .sa-contacts-tab__city {
    font-size: 32px;
    line-height: 44px;
  }
}

@media screen and (max-width: 1024px) {
  .sa-contacts-hero {
    align-items: flex-start;
    padding: 0 36px;
  }

  .sa-contacts-hero__content {
    flex-direction: column;
    align-items: stretch;
    margin: 100px auto 64px;
  }

  .sa-contacts-tabs {
    gap: 40px;
    max-width: none;
  }

  .sa-contacts-plashka {
    top: 0;
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 720px) {
  .sa-contacts-hero {
    padding: 0 36px;
  }

  .sa-contacts-hero__content {
    margin: 100px auto 48px;
  }

  .sa-contacts-tabs {
    gap: 33px;
  }

  .sa-contacts-tab__city {
    font-size: 20px;
    line-height: 28px;
    padding-bottom: 6px;
  }

  .sa-contacts-tab__number {
    font-size: 16px;
    line-height: 24px;
  }

  .sa-contacts-tab__address {
    margin-top: 10px;
    font-size: 13px;
    line-height: 20px;
  }

  .sa-contacts-plashka {
    margin-top: 36px;
    padding: 45px 34px 45px 42px;
    background-color: rgb(29, 29, 31);
  }

  .sa-contacts-plashka__mail-link,
  .sa-contacts-plashka__follow-head {
    font-size: 20px;
    line-height: 28px;
  }

  .sa-contacts-plashka__follow-content {
    font-size: 16px;
    line-height: 24px;
  }

  .sa-contacts-plashka__follow-links {
    margin-top: 20px;
    column-gap: 24px;
  }

  .sa-contacts-plashka__follow-links a,
  .sa-contacts-plashka__follow-links svg {
    width: 44px;
    height: 44px;
  }

  .sa-contacts-lead-section {
    margin-top: 0;
    padding-top: 56px;
    padding-bottom: 64px;
  }
}

@media screen and (max-width: 480px) {
  /* Как --page-gutter-x у .header__top-line: левый край городов = логотип. */
  .sa-contacts-hero {
    padding: 0 36px;
  }

  .sa-contacts-plashka {
    padding: 36px 24px;
  }
}
