/* Approach — Почему нас выбирают */

.approach {
  position: relative;
  width: 100%;
  background-color: #051133;
  overflow: hidden;
}

.approach__inner {
  position: relative;
  width: 100%;
  max-width: 1425px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.approach__figures {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.approach__figure {
  position: absolute;
  top: 50%;
  width: 630px;
  height: 960px;
  object-fit: contain;
  pointer-events: none;
  transform: translateY(-50%);
}

.approach__figure--left {
  left: -420px;
}

.approach__figure--right {
  right: -420px;
}

.approach__content {
  position: relative;
  z-index: 1;
}

.approach__header {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.approach__tagline {
  margin: 0 0 30px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #ffffff;
}

.approach__title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 89px;
  line-height: 1.1;
  letter-spacing: 0;
  color: #ffffff;
}

.approach__lead {
  margin: 50px auto 0;
  max-width: 930px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #ffffff;
}

.approach__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1280px;
  margin: 50px auto 60px;
}

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

.approach__btn--primary {
  background-color: #0040bf;
  color: #ffffff;
}

.approach__btn--primary:hover {
  background-color: #ff840b;
}

.approach__btn--link {
  background-color: transparent;
  color: #ffffff;
}

.approach__btn--link:hover {
  color: #ff840b;
}

.approach__btn--link::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-left: 0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 45px;
  row-gap: 45px;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.approach__item {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.approach__item-trigger {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  padding: 0 0 30px;
  border: none;
  border-bottom: 2px solid #ffffff;
  background: transparent;
  text-align: left;
  cursor: default;
  user-select: auto;
  -webkit-tap-highlight-color: transparent;
}

.approach__item-trigger::after {
  display: none;
}

.approach__item-title {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  color: #ffffff;
  width: 100%;
  margin: 0;
  text-align: left;
}

.approach__item-body {
  overflow: visible;
  min-height: 0;
}

.approach__item-body p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #ffffff;
  width: 100%;
  margin: 0;
  padding-top: 0;
}

@media screen and (min-width: 768px) {
  .approach__content {
    padding: 80px 72.5px;
  }
}

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

@media screen and (max-width: 1424px) {
  .approach__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .approach__content {
    padding: 4rem var(--page-gutter);
  }

  .approach__figures {
    display: none;
  }

  .approach__tagline {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .approach__title {
    font-size: 2rem;
  }

  .approach__lead {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .approach__actions {
    gap: 0.625rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .approach__grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .approach__item {
    display: grid;
    grid-template-rows: auto 0fr;
    padding: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .approach__item.is-open {
    grid-template-rows: auto 1fr;
  }

  .approach__item-title {
    font-size: 1.5rem;
  }

  .approach__item-body {
    overflow: hidden;
    min-height: 0;
  }

  .approach__item-body p {
    font-size: 1rem;
    padding-bottom: 1.25rem;
  }

  .approach__item-trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    padding: 1.25rem 0;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
  }

  .approach__item-trigger::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.35rem;
    background:
      linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) center / 2px 18px no-repeat;
    transition: transform 0.25s ease;
  }

  .approach__item.is-open .approach__item-trigger::after {
    background: linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat;
  }

  .approach__item-title {
    flex: 1;
    min-width: 0;
  }
}

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

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