/* First screen from the current PHP residential/Mendeleev page. */
/* Section offsets below already account for the shared 46px sticky menu. */
:root { scroll-padding-top: 0; }
body.mendeleev-page .smss-global-header { border-bottom: 0; }
body.mendeleev-page [id] { scroll-margin-top: 62px; }
body.mendeleev-page .main-block {
  height: 74vh;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: url('../images/lobby-22.webp') center / cover no-repeat rgba(0, 0, 0, .45);
  background-blend-mode: multiply;
  color: #fff;
}
body.mendeleev-page .main-block::after { content: none; }
body.mendeleev-page .main-block .mend-hero-inner {
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 15px 52px;
}
body.mendeleev-page .mend-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  height: 100%;
  margin-top: 35px;
}
body.mendeleev-page .main-block .mb__descr_position {
  display: grid;
  gap: 13px;
  margin-left: 45px;
  min-width: 0;
}
body.mendeleev-page .main-block .mb__title {
  margin: 0 0 8px;
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
body.mendeleev-page .main-block .mb__description {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}
body.mendeleev-page .main-block .position_descriptions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: end;
  gap: 8px;
  margin: 0 48px 0 0;
}
body.mendeleev-page .main-block .mn__descr {
  margin: 0 0 16px;
  max-width: max-content;
  padding: 4px 12px;
  border: 1px solid #d6d6d6;
  /* The donor reset uses !important for every border radius. */
  border-radius: 50px !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}
body.mendeleev-page .main-block .mb__button_podbor {
  --mend-cta-color: #ee4237;
  position: relative;
  width: max-content;
  padding: 14px 22px;
  background: var(--mend-cta-color);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-transform: uppercase;
}
body.mendeleev-page .main-block .mb__button_podbor:hover,
body.mendeleev-page .main-block .mb__button_podbor:focus-visible { background: #d7352c; }
body.mendeleev-page .main-block .mb__button_podbor::before,
body.mendeleev-page .main-block .mb__button_podbor::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--mend-cta-color);
  opacity: 0;
  pointer-events: none;
  animation: mend-cta-pulse 3s ease-out infinite;
}
body.mendeleev-page .main-block .mb__button_podbor::after { animation-delay: .6s; }
@keyframes mend-cta-pulse {
  0% { transform: scale(1); opacity: 0; }
  10% { opacity: .8; }
  40%, 100% { transform: scale(1.1, 1.45); opacity: 0; }
}
@media (max-width: 767px) {
  body.mendeleev-page .main-block { height: auto; }
  body.mendeleev-page .main-block .mend-hero-inner { padding: 24px 20px; }
  body.mendeleev-page .mend-hero-row { grid-template-columns: minmax(0, 1fr); }
  body.mendeleev-page .main-block .mb__descr_position { margin-left: 0; gap: 12px; }
  body.mendeleev-page .main-block .mb__title { margin: 64px 0 0; font-size: 40px; }
  body.mendeleev-page .main-block .mb__description { margin: 0; font-size: 16px; }
  body.mendeleev-page .main-block .position_descriptions { justify-content: start; margin: 40px 48px 0 0; }
  body.mendeleev-page .main-block .mb__button_podbor { width: 100%; padding: 14px 24px; font-size: 13px; line-height: 20px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.mendeleev-page .main-block .mb__button_podbor::before,
  body.mendeleev-page .main-block .mb__button_podbor::after { animation: none; }
}
