/* Hero (soft-launch index) + about: desktop кубы сверху (Figma 2003:2190),
   mobile about — раскладка 2004:2268 (3 сверху, 2 снизу) */

.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;
}

.hero--about {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-end;
  padding: 80px 105px 60px;
  box-sizing: border-box;
}

/* about.html: без горизонтального скролла */
html:has(.hero--about),
body:has(.hero--about) {
  overflow-x: clip;
}

.hero__head-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  width: 1215px;
  max-width: 100%;
  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;
}

.hero__lead {
  margin: 0;
  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;
  padding-left: 60px;
  padding-right: 60px;
}

.hero--about .hero__lead {
  padding-left: 120px;
  padding-right: 120px;
}

.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--about .hero__figure {
  top: -232px;
}

.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: #ccc; }
.hero__box--5 .hero__face--top svg { color: #ff840b; }

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px 16px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  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;
}

.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;
}

@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, 12px) 4rem;
    overflow: visible;
  }

  .hero--about {
    padding-bottom: 4rem;
  }

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

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

  .hero__heading {
    font-size: 2rem;
  }

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

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

  /* About mobile: Figma 2004:2268 — 3 куба сверху, 2 снизу */
  .hero--about .hero__figure {
    top: 0;
    height: 47.67vw;
    max-height: 579px;
    margin: 1.5rem auto 0;
  }

  .hero--about .hero__box--1 { top: 20.08%; bottom: 0; left: 16.67%; right: 50%; z-index: 1; }
  .hero--about .hero__box--2 { top: 0; bottom: 20.08%; left: 0; right: 66.67%; }
  .hero--about .hero__box--3 { top: 20.08%; bottom: 0; left: 50%; right: 16.67%; z-index: 1; }
  .hero--about .hero__box--4 { top: 0; bottom: 20.08%; left: 33.33%; right: 33.33%; }
  .hero--about .hero__box--5 { top: 0; bottom: 20.08%; left: 66.67%; right: 0; }
}

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

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