/* Hero — первый экран главной */

.hero {
  width: 100%;
  max-width: 1425px;
  background-color: #051133;
  position: relative;
  min-height: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 105px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.hero__head-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  width: 1215px;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  flex-shrink: 0;
}

.hero__heading {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 89px;
  line-height: 1.1;
  text-align: center;
  color: #ffffff;
  width: 100%;
  word-break: break-word;
  flex-shrink: 0;
}

.hero__lead {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  width: 100%;
  word-break: break-word;
  flex-shrink: 0;
  padding-left: 60px;
  padding-right: 60px;
}

.hero__buttons {
  display: flex;
  gap: 31px;
  align-items: center;
  flex-shrink: 0;
}

.hero__figure {
  position: absolute;
  width: 1215px;
  height: 578.571px;
  left: 50%;
  top: 375.43px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.hero__box {
  position: absolute;
}

.hero__box--1 { top: 0; bottom: 20%; left: 16.67%; right: 50%; }
.hero__box--2 { top: 20%; bottom: 0; left: 0; right: 66.67%; }
.hero__box--3 { top: 0; bottom: 20%; left: 50%; right: 16.67%; }
.hero__box--4 { top: 20%; bottom: 0; left: 33.33%; right: 33.33%; }
.hero__box--5 { top: 20%; bottom: 0; left: 66.67%; right: 0; }

.hero__face {
  position: absolute;
}

.hero__face--top { inset: 0 0 0.01% 0; }
.hero__face--right { top: 24.99%; bottom: 0; left: 50%; right: 0; }
.hero__face--left { top: 24.99%; bottom: 0; left: 0; right: 50%; }

.hero__face svg {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__box--1 .hero__face--top svg { color: #FF840B; }
.hero__box--2 .hero__face--top svg { color: #0040BF; }
.hero__box--3 .hero__face--top svg { color: #0040BF; }
.hero__box--4 .hero__face--top svg { color: #CCCCCC; }
.hero__box--5 .hero__face--top svg { color: #FF840B; }

.hero__h1-line {
  display: inline;
  overflow-wrap: break-word;
}

/* typo-keep в h1 даёт nowrap глобально — на узкой ширине слово вылезает за край */
.hero__heading .typo-keep {
  white-space: normal;
  overflow-wrap: break-word;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px 16px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.42px;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
  box-sizing: border-box;
}

.hero__btn--primary {
  background-color: #ffffff;
  border: 2px solid #ffffff;
  color: #051133;
}

.hero__btn--secondary {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.hero__btn--secondary:hover {
  opacity: 0.75;
}

.hero__btn--primary:hover {
  color: #ff840b;
  opacity: 1;
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    height: auto;
    min-height: unset;
    padding: 48px var(--page-gutter) 4rem;
    overflow: visible;
  }

  .hero__head-block {
    width: 100%;
    gap: 1.5rem;
  }

  .hero__lead {
    padding-left: 0;
    padding-right: 0;
    font-size: 1rem;
  }

  .hero__heading {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.625rem;
  }

  .hero__figure {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 45vw;
    margin: 1.5rem auto 0;
  }

  .hero__btn {
    padding: 10px 14px;
    border-radius: 6px;
    border-style: solid;
    border-width: 1.5px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.2px;
  }

  .hero__btn--primary,
  .hero__btn--secondary {
    border-color: #ffffff;
  }
}

@media screen and (max-width: 479px) {
  .hero__buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero__btn {
    min-width: 11.5rem;
  }
}
