/* Обновлённый стиль основных CTA-кнопок. Служебная кнопка cookie не затрагивается. */
.btn.btn-primary:not([data-cookie-ok]) {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: auto;
  max-width: 300px;
  min-width: 220px;
  border: 0;
  border-bottom: 0 solid #beb038;
  border-radius: 12px;
  padding: 2px 20px 0;
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(90deg, #8826bd 0%, #e31e50 100%);
  box-shadow: none;
  font-family: "Russo One", "IBM Plex Sans", Arial, sans-serif;
  font-size: 18.75px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  -webkit-transition: ease .3s;
  transition: ease .3s;
}

.btn.btn-primary:not([data-cookie-ok]):visited {
  color: #fff;
}

/* В форме и карточках доступная ширина меньше 300 px: сохраняем рисунок кнопки без обрезки текста. */
.hero-registration-form .btn.btn-primary:not([data-cookie-ok]) {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-inline: 12px;
  font-size: 15.75px;
  letter-spacing: 1.2px;
}

/* Текст «Участвовать» совпадает с основной кнопкой формы. */
.btn.btn-primary[data-goal="promo_registration"] {
  font-size: 15.75px;
  letter-spacing: 1.2px;
}

.hero-registration-form .hero-cta .btn {
  border-radius: 12px;
}

.hero-registration-form .hero-cta--submit-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-registration-form .hero-cta--submit-right .btn {
  grid-column: 2;
}

.catalog-card .btn.btn-primary:not([data-cookie-ok]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 12px;
  font-size: 13.5px;
  letter-spacing: 1px;
}

.btn.btn-primary:not([data-cookie-ok]):hover {
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(90deg, #8826bd 0%, #e31e50 100%);
  border: 0 double #fff;
  -webkit-box-shadow: 0 0 16px 4px rgba(136, 38, 189, .43);
  -moz-box-shadow: 0 0 16px 4px rgba(136, 38, 189, .43);
  box-shadow: 0 0 16px 4px rgba(136, 38, 189, .43);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* Бегущий блик — только на основной кнопке отправки формы. */
#registration-form .btn.btn-primary[type="submit"]::after {
  content: "";
  display: block;
  width: 30px;
  height: 300px;
  margin-left: 60px;
  position: absolute;
  left: -40px;
  top: -150px;
  z-index: 1;
  pointer-events: none;
  background: #fff;
  background: -moz-linear-gradient(top, rgba(255, 255, 255, .7) 0%, #fff 50%, rgba(255, 255, 255, .7) 100%);
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, .7) 0%, #fff 50%, rgba(255, 255, 255, .7) 100%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7) 0%, #fff 50%, rgba(255, 255, 255, .7) 100%);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transition: all .1s;
  transition: all .1s;
  -webkit-animation: form-button-shine 20s 0s ease-in-out infinite;
  animation: form-button-shine 20s 0s ease-in-out infinite;
}

@-webkit-keyframes form-button-shine {
  0% { left: -30px; margin-left: 0; }
  5%, 100% { left: 110%; margin-left: 80px; }
}

@keyframes form-button-shine {
  0% { left: -30px; margin-left: 0; }
  5%, 100% { left: 110%; margin-left: 80px; }
}

/* Сохраняем адаптивность существующего макета на планшетах и телефонах. */
@media (max-width: 860px) {
  .btn.btn-primary:not([data-cookie-ok]) {
    max-width: 300px;
    min-width: 0;
    font-size: 13.5px;
    letter-spacing: 1.4px;
  }

  .hero-cta .btn.btn-primary:not([data-cookie-ok]),
  .mobile-cta .btn.btn-primary:not([data-cookie-ok]) {
    width: 100%;
    max-width: none;
  }

  .catalog-card .btn.btn-primary:not([data-cookie-ok]) {
    width: 100%;
    max-width: 100%;
    font-size: 10.5px;
    letter-spacing: .8px;
  }
}

@media (max-width: 480px) {
  .header-register.btn.btn-primary:not([data-cookie-ok]) {
    width: auto;
    min-width: 96px;
    max-width: 112px;
    min-height: 36px;
    height: 36px;
    padding: 2px 8px 0;
    border-radius: 12px;
    font-size: 7.5px;
    line-height: 12px;
    letter-spacing: .7px;
  }

  .hero-cta .btn.btn-primary:not([data-cookie-ok]),
  .mobile-cta .btn.btn-primary:not([data-cookie-ok]),
  .btn.btn-primary[data-goal="promo_registration"] {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .catalog-card .btn.btn-primary:not([data-cookie-ok]) {
    font-size: 7.5px;
    line-height: 13px;
    letter-spacing: .35px;
  }
}

@media (max-width: 600px) {
  .hero-registration-form .hero-cta--submit-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-registration-form .hero-cta--submit-right .btn {
    grid-column: 1;
  }
}

/* Один непрерывный градиент на всём блоке наставника, включая область фотографии. */
.mentor-card {
  background: linear-gradient(90deg, #8826bd 0%, #e31e50 100%);
}

.mentor-intro {
  background: transparent;
}
