/*
  ReutPrint CTA v1.0
*/



/* ==========================================================
   ОБЁРТКА JOOMLA-МОДУЛЯ
   ========================================================== */

.rp-cta-module,
.rp-cta-module .sp-module-content,
.rp-cta-module .mod-custom {
  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent;
  border: 0;
  box-shadow: none;
}


/* ==========================================================
   СЕКЦИЯ
   ========================================================== */

.rp-cta {
  width: 100%;
  margin: 0;
  padding: clamp(16px, 1vw, 32px) 0;
  background: transparent;
}

.rp-cta,
.rp-cta * {
  box-sizing: border-box;
}


/* ==========================================================
   ОСНОВНОЙ БЛОК
   ========================================================== */

.rp-cta__inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: center;
  
  width: 100%;

  min-height: clamp(250px, 20vw, 310px);
  padding:
    clamp(40px, 4.5vw, 72px)
    clamp(34px, 5vw, 82px);

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #35267f 0%,
      #5632ba 52%,
      #743fd6 100%
    );

  border-radius: clamp(24px, 2vw, 34px);

  box-shadow:
    0 26px 70px rgba(44, 29, 105, 0.20),
    0 5px 16px rgba(44, 29, 105, 0.10);
}


/* ==========================================================
   ДЕКОР
   ========================================================== */

.rp-cta__decor {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.rp-cta__decor--one {
  top: -160px;
  right: -80px;
  width: 410px;
  height: 410px;
  background: rgba(255, 255, 255, 0.055);
}

.rp-cta__decor--two {
  right: 22%;
  bottom: -210px;
  width: 390px;
  height: 390px;
  border: 70px solid rgba(255, 255, 255, 0.035);
}

.rp-cta__decor--three {
  top: 36px;
  left: 48%;
  width: 18px;
  height: 18px;
  background: #f3b72e;
  box-shadow:
    38px 30px 0 rgba(243, 183, 46, 0.35),
    -24px 58px 0 rgba(255, 255, 255, 0.12);
}


/* ==========================================================
   ТЕКСТ
   ========================================================== */

.rp-cta__content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.rp-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 20px;
  padding: 8px 17px;

  color: #342276;
  background: #f3b72e;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;

  box-shadow: 0 8px 22px rgba(26, 16, 70, 0.16);
}

.rp-cta__title {
  max-width: 760px;
  margin: 0;

  color: #ffffff;

  font-size: clamp(37px, 4vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.rp-cta__title span {
  color: #f3b72e;
}

.rp-cta__text {
  max-width: 720px;
  margin: 24px 0 0;

  color: rgba(255, 255, 255, 0.78);

  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
}


/* ==========================================================
   КНОПКИ
   ========================================================== */

.rp-cta__actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 390px;
  justify-self: end;
}

.rp-cta__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  min-height: 58px;
  padding: 15px 21px;

  border-radius: 15px;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;

  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.rp-cta__button span {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.rp-cta__button:hover {
  transform: translateY(-3px);
}

.rp-cta__button:hover span {
  transform: translateX(4px);
}


/* Основная кнопка */

.rp-cta__button--primary {
  color: #30206f !important;
  background: #f3b72e;
  border: 1px solid #f3b72e;

  box-shadow:
    0 14px 30px rgba(24, 13, 72, 0.20),
    0 3px 8px rgba(24, 13, 72, 0.10);
}

.rp-cta__button--primary:hover {
  color: #30206f !important;
  background: #f7c951;
  border-color: #f7c951;

  box-shadow:
    0 20px 38px rgba(24, 13, 72, 0.25),
    0 4px 10px rgba(24, 13, 72, 0.12);
}


/* Вторая кнопка */

.rp-cta__button--secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);

  backdrop-filter: blur(8px);
}

.rp-cta__button--secondary:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.65);
}


/* Подпись */

.rp-cta__note {
  margin: 4px 4px 0;

  color: rgba(255, 255, 255, 0.60);

  font-size: 13px;
  line-height: 1.45;
}

/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

.rp-cta__phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-top: 6px;
  padding: 16px 17px;

  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
}

.rp-cta__phone-text {
  min-width: 0;
}

.rp-cta__phone-text span {
  display: block;
  margin-bottom: 4px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.rp-cta__phone-text a {
  color: #ffffff !important;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
}

.rp-cta__phone-text a:hover {
  color: #f3b72e !important;
}

.rp-cta__phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;

  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;

  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.rp-cta__phone-button svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-cta__phone-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.19);
  border-color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================
   АДАПТИВНОСТЬ
   ========================================================== */


/* ==========================================================
   ПРОМЕЖУТОЧНАЯ НАСТРОЙКА
   ========================================================== */

@media (max-width: 1100px) {

  .rp-cta__inner {
    grid-template-columns: 1fr;
    gap: 34px;

    padding: 46px 38px;
  }

  .rp-cta__content {
    max-width: none;
  }

  .rp-cta__title {
    max-width: 760px;

    font-size: clamp(35px, 5vw, 52px);
  }

  .rp-cta__text {
    max-width: 720px;
  }

  .rp-cta__actions {
    max-width: none;

    justify-self: stretch;
  }

}


/* ==========================================================
   МОБИЛЬНАЯ КОМПОНОВКА
   Единая внешняя граница: 820px
   ========================================================== */

@media (max-width: 820px) {

  /*
    Секция выходит за пределы контейнера Joomla.
  */

  .rp-cta {
    width: 100vw;
    max-width: none;

    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0px;
    margin-left: calc(50% - 50vw);

    padding: 0;

    background: transparent;
  }

  @supports (width: 100dvw) {

    .rp-cta {
      width: 100dvw;
      margin-left: calc(50% - 50dvw);
    }

  }


  /*
    Цветной CTA становится внешним полноширинным блоком.
  */

  .rp-cta__inner {
    grid-template-columns: 1fr;
    gap: 34px;

    width: 100%;
    min-height: 0;

    padding: 40px 20px;

    border-radius: 0 !important;

    box-shadow: none !important;
  }

  .rp-cta__content {
    max-width: none;
  }

  .rp-cta__title {
    max-width: 580px;

    font-size: clamp(34px, 8vw, 48px);
  }

  .rp-cta__text {
    max-width: 600px;
  }

  .rp-cta__actions {
    max-width: none;

    justify-self: stretch;
  }

}


/* ==========================================================
   УЗКИЙ ТЕЛЕФОН
   Только внутренняя компоновка
   ========================================================== */

@media (max-width: 680px) {

  .rp-cta__inner {
    gap: 30px;
    padding: 34px 20px;
  }

  .rp-cta__eyebrow {
    min-height: 32px;
    margin-bottom: 18px;
    padding: 8px 13px;

    font-size: 10px;
  }

  .rp-cta__title {
    font-size: clamp(32px, 10vw, 42px);
  }

  .rp-cta__text {
    margin-top: 20px;

    font-size: 15px;
  }

  .rp-cta__button {
    min-height: 56px;
    padding: 14px 18px;

    font-size: 15px;
  }

  .rp-cta__decor--three {
    display: none;
  }

  .rp-cta__phone {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .rp-cta__phone-button {
    width: 100%;
  }

}


/* ==========================================================
   ОТКЛЮЧЕНИЕ АНИМАЦИЙ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .rp-cta__button,
  .rp-cta__button span,
  .rp-cta__phone-button {
    transition: none;
  }

}