/*
  reutprint-why-we v1.1
*/

/* ==========================================================
   ПОЧЕМУ ВЫБИРАЮТ REUTPRINT
   ========================================================== */

   /* Обёртка отдельного Joomla-модуля */

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

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

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

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

/* ==========================================================
   КОРНЕВАЯ СЕКЦИЯ
   ========================================================== */

.rp-why {
  --rp-why-purple: #6f3ed8;
  --rp-why-purple-dark: #5426b9;
  --rp-why-purple-light: #f2edff;

  --rp-why-text: #10172f;
  --rp-why-muted: #596174;
  --rp-why-border: rgba(36, 29, 78, 0.09);

  width: 100%;
  margin: 0;
  padding: clamp(16px, 1vw, 32px) 0;

  background: transparent;
}

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


/* ==========================================================
   ОСНОВНАЯ СЕТКА
   ========================================================== */

.rp-why__inner {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(360px, 0.9fr)
    minmax(0, 2fr);

  gap: 24px;

  width: 100%;
  margin: 0 auto;

  overflow: visible;

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

/* Левая часть */

.rp-why__intro {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 4vw, 64px);
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(247, 244, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    );

  border: 1px solid var(--rp-why-border);
  border-radius: 28px;

  box-shadow:
    0 20px 55px rgba(30, 20, 70, 0.07),
    0 3px 12px rgba(30, 20, 70, 0.035);
}

.rp-why__decor {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.rp-why__decor--one {
  top: -90px;
  right: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(111, 62, 216, 0.055);
}

.rp-why__decor--two {
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(111, 62, 216, 0.045);
  border-radius: 50%;
}

.rp-why__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 18px;
  margin-bottom: 25px;
  color: var(--rp-why-purple-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(111, 62, 216, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(51, 30, 110, 0.05);
}

.rp-why__title {
  max-width: 480px;
  margin: 0;
  color: var(--rp-why-text);
  font-size: clamp(39px, 4vw, 55px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.rp-why__title span {
  display: block;
  margin-top: 8px;
  color: var(--rp-why-purple);
}

.rp-why__line {
  width: 66px;
  height: 4px;
  margin: 30px 0 26px;
  background: var(--rp-why-purple);
  border-radius: 999px;
}

.rp-why__lead {
  max-width: 480px;
  margin: 0;
  color: var(--rp-why-muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
}

.rp-why__summary {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: clamp(34px, 4vw, 52px) 0 0;
  list-style: none;
}

.rp-why__summary-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.rp-why__check {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--rp-why-purple),
      var(--rp-why-purple-dark)
    );
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(111, 62, 216, 0.24);
}

.rp-why__check svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-why__summary-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rp-why-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.rp-why__summary-item p {
  margin: 0;
  color: var(--rp-why-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Карточки */

.rp-why__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  padding: 0;
  background: transparent;
}

.rp-why-card {
  position: relative;
  min-width: 0;
  min-height: 310px;
  padding: 26px 22px;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(253, 252, 255, 0.99)
    );

  border: 1px solid var(--rp-why-border);
  border-radius: 22px;

  box-shadow:
    0 14px 36px rgba(28, 20, 66, 0.055),
    0 2px 8px rgba(28, 20, 66, 0.025);

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

.rp-why-card::after {
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  content: "";
  background: rgba(111, 62, 216, 0.035);
  border-radius: 50%;
  transition: transform 0.35s ease;
}

.rp-why-card:hover {
  z-index: 2;
  transform: translateY(-7px);
  border-color: rgba(111, 62, 216, 0.18);
  box-shadow:
    0 24px 52px rgba(43, 27, 96, 0.12),
    0 5px 14px rgba(43, 27, 96, 0.05);
}

.rp-why-card:hover::after {
  transform: scale(1.2);
}

.rp-why-card__number {
  position: absolute;
  top: 25px;
  right: 24px;
  color: rgba(111, 62, 216, 0.20);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.rp-why-card__icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 26px;
  color: var(--rp-why-purple);
  background:
    linear-gradient(
      145deg,
      rgba(111, 62, 216, 0.12),
      rgba(111, 62, 216, 0.04)
    );
  border-radius: 50%;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease;
}

.rp-why-card:hover .rp-why-card__icon {
  transform: scale(1.06) rotate(-2deg);
}

.rp-why-card__icon svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-why-card__title {
  max-width: none;
  margin: 0;

  color: var(--rp-why-text);
  font-size: clamp(19px, 1.2vw, 23px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;

  overflow-wrap: normal;
  word-break: normal;
}

.rp-why-card__line {
  display: block;
  width: 35px;
  height: 3px;
  margin: 17px 0 18px;
  background: var(--rp-why-purple);
  border-radius: 999px;
  transition: width 0.28s ease;
}

.rp-why-card:hover .rp-why-card__line {
  width: 58px;
}

.rp-why-card__text {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 0;
  color: var(--rp-why-muted);
  font-size: 15px;
  line-height: 1.62;
}
/* ==========================================================
   АДАПТИВНОСТЬ
   ========================================================== */


/* ==========================================================
   ПЛАНШЕТНАЯ СЕТКА
   ========================================================== */

@media (max-width: 1199px) {

  .rp-why__inner {
    grid-template-columns:
      minmax(300px, 0.75fr)
      minmax(0, 1.35fr);
  }

  .rp-why__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* ==========================================================
   УЗКИЙ ПЛАНШЕТ
   Левая часть переходит над карточками
   ========================================================== */

@media (max-width: 1100px) {

  .rp-why__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rp-why__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

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

@media (max-width: 820px) {

  /*
    Внешняя секция выходит за пределы контейнера Joomla.
    У неё нет рамки, радиуса и тени.
  */

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

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

    padding: 0;

    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  @supports (width: 100dvw) {

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

  }


  /*
    Внутреннее содержимое сохраняет безопасные 20px
    от краёв экрана.
  */

  .rp-why__inner {
    grid-template-columns: 1fr;
    gap: 20px;

    width: 100%;
    padding: 28px 20px 30px;
  }


  /*
    Intro и карточки являются внутренними элементами,
    поэтому их скругления сохраняем.
  */

  .rp-why__intro {
    border-radius: 24px;
  }

  .rp-why__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}


/* ==========================================================
   УЗКИЙ ЭКРАН
   Только внутренняя компоновка
   ========================================================== */

@media (max-width: 680px) {

  .rp-why__inner {
    padding: 24px 20px 28px;
  }

  .rp-why__intro {
    padding: 34px 24px;
  }

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

    font-size: 10px;
  }

  .rp-why__title {
    font-size: clamp(32px, 9vw, 39px);
    line-height: 1;
  }

  .rp-why__lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .rp-why__cards {
    grid-template-columns: 1fr;
    gap: 14px;

    padding: 0;
  }

  .rp-why__summary {
    grid-template-columns: 1fr;
  }

  .rp-why-card {
    min-height: 0;
    padding: 25px 23px;
  }

  .rp-why-card__icon {
    width: 72px;
    height: 72px;

    margin-bottom: 22px;
  }

  .rp-why-card__icon svg {
    width: 39px;
    height: 39px;
  }

}


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

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

  .rp-why-card,
  .rp-why-card::after,
  .rp-why-card__icon,
  .rp-why-card__line {
    transition: none;
  }

}