/* ==========================================================
   Главная: первый экран с выбором направления
   ========================================================== */

.neo-choice,
.neo-choice * {
  box-sizing: border-box;
}

.neo-choice {
  --neo-header-overlap: 0px;

  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 620px;
  padding: calc(82px + var(--neo-header-overlap)) 24px 70px;
  overflow: hidden;

  color: #212121;
  background-color: #ffffff;
  background-image: url("/images/white_background_with_confetti.jpg");
  /* Подгоняем масштаб конфетти под следующий Tilda-блок.
     На десктопе его фон фактически имеет ширину около 960px
     и повторяется по горизонтали. */
  background-position: left top;
  background-repeat: repeat;
  background-size: 960px auto;
}

.neo-choice__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  text-align: center;
}

.neo-choice__title {
  max-width: 940px;
  margin: 0 auto;
  color: #212121;
  font-family: "TildaSans", Arial, sans-serif;
  font-size: clamp(38px, 4.25vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

.neo-choice__title-main,
.neo-choice__title-sub {
  display: block;
}

.neo-choice__title-main {
  text-transform: uppercase;
}

.neo-choice__title-sub {
  margin-top: 0.06em;
  font-size: 0.8em;
  line-height: 1.12;
  text-transform: uppercase;
}

.neo-choice__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: clamp(38px, 5vw, 62px);
}

.neo-choice__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 310px);
  min-height: 58px;
  padding: 14px 24px;

  color: #000000 !important;
  border: 1px solid #f8eb90;
  background: linear-gradient(90deg, #e2b663 0%, #fffc9f 100%);
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.neo-choice__button:hover,
.neo-choice__button:focus-visible {
  color: #212121 !important;
  border-color: #e2b663;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(33, 33, 33, 0.1);
  transform: translateY(-2px);
}

.neo-choice__button:focus-visible,
.neo-choice__secondary:focus-visible {
  outline: 2px solid #09a3ff;
  outline-offset: 4px;
}

.neo-choice__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  max-width: 100%;
  margin-top: 30px;
  padding: 6px 0;

  color: #212121 !important;
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none !important;
  cursor: pointer;
}

.neo-choice__secondary > span:first-child {
  border-bottom: 1px dashed rgba(33, 33, 33, 0.6);
  transition: border-color 0.2s ease;
}

.neo-choice__arrow {
  flex: 0 0 auto;
  font-size: 27px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.neo-choice__secondary:hover > span:first-child,
.neo-choice__secondary:focus-visible > span:first-child {
  border-color: #e2b663;
}

.neo-choice__secondary:hover .neo-choice__arrow,
.neo-choice__secondary:focus-visible .neo-choice__arrow {
  transform: translateX(5px);
}


@media screen and (max-width: 1199px) {
  .neo-choice {
    /* У следующего блока на этих брейкпоинтах background-size: contain
       упирается уже в ширину экрана. */
    background-size: 100% auto;
  }
}

@media screen and (max-width: 639px) {
  .neo-choice {
    min-height: max(500px, calc(100svh - 170px));
    padding-right: 20px;
    padding-bottom: 64px;
    padding-left: 20px;
  }


  .neo-choice__title {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.12;
  }
  .neo-choice__actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
  }

  .neo-choice__button {
    width: min(100%, 340px);
    min-height: 54px;
    font-size: 15px;
  }

  .neo-choice__secondary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 340px);
    min-height: 52px;
    margin: 25px auto 0;
    padding: 10px 42px 10px 16px;

    border: 1px solid rgba(33, 33, 33, 0.22);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
  }

  .neo-choice__secondary > span:first-child {
    max-width: 255px;
    border-bottom: 0;
    text-wrap: balance;
  }

  .neo-choice__arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    font-size: 22px;
    transform: translateY(-50%);
  }

  .neo-choice__secondary:hover .neo-choice__arrow,
  .neo-choice__secondary:focus-visible .neo-choice__arrow {
    transform: translate(4px, -50%);
  }

  .neo-choice__secondary:focus-visible {
    outline-color: #e2b663;
    outline-width: 1px;
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-choice__button,
  .neo-choice__secondary > span:first-child,
  .neo-choice__arrow {
    transition: none;
  }
}


/* ==========================================================
   LPR 16.09.2026 — только большой десктоп
   ========================================================== */
@media screen and (min-width: 1200px) {
  .neo-choice {
    /* Убираем большой пустой участок между шапкой и заголовком,
       а также между CTA и следующим блоком. */
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .neo-choice__secondary {
    font-size: 28px;
  }
}
