/* Block: hero (home). Markup: templates/modular/hero.html.twig */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--white) 3%, #f6fafb 75%, #e9f5f7);
  border-bottom: 1px solid var(--line);

  /* decorative rings, top left */
  &::before {
    content: '';
    position: absolute;
    left: -340px;
    top: -320px;
    width: 600px;
    height: 600px;
    border: 1px solid rgb(6 125 151 / .1);
    border-radius: 50%;
    box-shadow: 0 0 0 100px rgb(6 125 151 / .022), 0 0 0 220px rgb(6 125 151 / .018);
    pointer-events: none;
  }

  & .hero__wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: 65px;
    align-items: center;
    min-height: 685px;
    padding-block: 60px 70px;
  }

  & .hero__title {
    max-width: 710px;
    margin: 0 0 26px;
    font-size: clamp(54px, 5.5vw, 84px);
    font-weight: 850;
    letter-spacing: -.069em;
    line-height: 1.035;
  }

  & .hero__lead {
    max-width: 510px;
    margin: 0 0 34px;
    font-size: 18px;
    line-height: 1.75;
    color: #526b78;
  }

  & .hero__cta { display: flex; flex-wrap: wrap; gap: 13px; }

  & .hero__side {
    position: relative;
    min-width: 0;
    padding-block: 32px 40px;
  }

  & .hero__index {
    position: absolute;
    top: 4px;
    right: -18px;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: .2em;
    color: #8ba6b0;
  }

  & .hero__image {
    position: relative;
    height: 492px;
    overflow: hidden;
    border-radius: 170px 8px 8px 8px;
    background: #d1e1e4;
    box-shadow: var(--shadow);

    & img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(170deg, transparent 50%, rgb(9 43 58 / .39));
    }
  }

  & .hero__image-label {
    position: absolute;
    z-index: 2;
    bottom: 24px;
    left: 32px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    color: var(--white);
  }

  & .hero__card {
    position: absolute;
    z-index: 3;
    right: -22px;
    bottom: 0;
    max-width: 265px;
    min-height: 120px;
    padding: 22px 26px;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 16px 40px rgb(10 43 57 / .22);
  }

  & .hero__card-label { margin: 0; font-size: 10px; letter-spacing: .15em; color: #9dccd5; }
  & .hero__card-text { margin: 7px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; }

  & .hero__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: #6ad6b3;
    box-shadow: 0 0 0 5px #6ad6b31f;
  }

  @media (max-width: 1240px) {
    & .hero__wrap { gap: 35px; }
    & .hero__title { font-size: clamp(54px, 5.4vw, 76px); }
  }

  @media (max-width: 1050px) {
    & .hero__wrap { grid-template-columns: 1fr 1fr; }
    & .hero__title { font-size: clamp(50px, 5.7vw, 67px); }
    & .hero__image { height: 400px; }
    & .hero__card { right: -5px; }
  }

  @media (max-width: 800px) {
    & .hero__wrap { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding-block: 58px 90px; }
    & .hero__title { font-size: clamp(52px, 8vw, 75px); }
    & .hero__side { padding-top: 8px; }
    & .hero__image { height: 340px; border-top-left-radius: 125px; }
    & .hero__index { display: none; }
    & .hero__card { bottom: -15px; }
  }

  @media (max-width: 520px) {
    & .hero__wrap { padding-top: 52px; }
    & .hero__title { font-size: clamp(51px, 12.5vw, 68px); }
    & .hero__lead { font-size: 15px; }
    & .hero__cta .button { width: 100%; justify-content: space-between; }
    & .hero__image { height: 280px; border-top-left-radius: 90px; }
    & .hero__image-label { left: 14px; font-size: 9px; }
    & .hero__card { max-width: 190px; min-height: 0; padding: 15px; }
    & .hero__card-text { font-size: 12px; }
  }
}
