/* Homepage text links, matching the general massage page.
 * The original hero, buttons, typography and section dimensions are inherited.
 */
body.home .home-hero-title-mobile-break {
  display: none;
}
body.home .home-hero-links {
  display: grid;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 28px;
  justify-items: center;
  text-align: center;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
body.home .home-hero-links a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(255, 255, 255, .94);
  font-size: 17px;
  line-height: 1.35;
  text-align: inherit;
  text-decoration: none;
  box-shadow: none;
}
body.home .home-hero-links__tail {
  display: inline-block;
  white-space: nowrap;
}
body.home .home-hero-links svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 7px;
  vertical-align: -.15em;
}
body.home .home-hero-links a:hover,
body.home .home-hero-links a:focus-visible,
body.home .home-hero-links a:hover .home-hero-links__tail,
body.home .home-hero-links a:focus-visible .home-hero-links__tail {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.home .home-hero-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 4px;
}
.glavnaya-page #home-team,
.glavnaya-page #home-studios {
  scroll-margin-top: 96px;
}
@media (max-width: 767px) {
  .glavnaya-page .glavnaya_content {
    container-type: inline-size;
  }
  .glavnaya-page .glavnaya .h1 {
    font-size: min(2em, calc(100cqi / 13.75));
  }
  body.home .home-hero-title-mobile-break {
    display: initial;
  }
  body.home .home-hero-title-desktop-break {
    display: none;
  }
  body.home .home-hero-title-service,
  body.home .home-hero-title-location {
    white-space: nowrap;
  }
  body.home .home-hero-links {
    margin-top: 18px;
    margin-bottom: 23px;
  }
  body.home .home-hero-links a {
    font-size: 15px;
  }
}
/* Keep the existing heading size whenever the full service line fits. */
@media (max-width: 480px) {
  .glavnaya-page .glavnaya .h1 {
    font-size: min(clamp(20px, 6.5vw, 32px), calc(100cqi / 13.75));
  }
}
/* Keep the reviews source inside tablet widths without changing the heading. */
@media (min-width: 768px) and (max-width: 1023px) {
  .glavnaya-page .site-reviews__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
/* Keep the existing catalog link available on narrow phones, in its native style. */
@media (max-width: 340px) {
  .glavnaya-page #home-team .flex_h2 {
    flex-wrap: wrap;
    gap: 12px;
  }
  .glavnaya-page #home-team .view_all {
    display: inline-block;
  }
}
