/* ReutPrint — контент внутренних страниц услуг
   NOTICE / EXTRAS / FAQ / SEO-описание
   Версия 1.1.0
*/

.rp-service-content,
.rp-service-description {
  --rp-sc-purple: var(--rp-color-primary, #6f42c1);
  --rp-sc-purple-dark: #53309a;
  --rp-sc-purple-soft: #f3eefc;
  --rp-sc-text: #222;
  --rp-sc-muted: #666;
  --rp-sc-border: #e5e1ec;
  --rp-sc-radius: 18px;
  --rp-sc-shadow: 0 12px 30px rgba(42, 28, 63, 0.08);

  color: var(--rp-sc-text);
}

.rp-service-content {
  width: min(calc(100% - 40px), 1180px);
  margin: 40px auto 0;
}

.rp-service-content[hidden] {
  display: none !important;
}

.rp-sc-section {
  margin: 0 0 34px;
}

.rp-sc-title,
.rp-service-description__title {
  position: relative;
  margin: 0 0 22px;
  padding: 0 0 12px;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.15;
  font-weight: 750;
  color: var(--rp-sc-text);
}

.rp-sc-title::after,
.rp-service-description__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 99px;
  background: var(--rp-sc-purple);
}

/* NOTICE */

.rp-sc-notice-list {
  display: grid;
  gap: 0;
}

.rp-sc-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--rp-sc-border);
  border-left-width: 5px;
  border-radius: 14px;
  background: #fff;
}

.rp-sc-notice--info {
  border-left-color: #6f42c1;
  background: #faf8fe;
}

.rp-sc-notice--important {
  border-left-color: #d18b00;
  background: #fff9eb;
}

.rp-sc-notice--warning {
  border-left-color: #c94747;
  background: #fff5f5;
}

.rp-sc-notice-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  background: var(--rp-sc-purple);
}

.rp-sc-notice--important .rp-sc-notice-icon {
  background: #d18b00;
}

.rp-sc-notice--warning .rp-sc-notice-icon {
  background: #c94747;
}

.rp-sc-notice-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

/* EXTRAS */

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

.rp-sc-extra-card {
  position: relative;
  isolation: isolate;

  display: block;
  min-width: 0;
  height: 100%;
  padding: 24px;

  overflow: hidden;

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

  color: inherit;
  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #ffffff 66%,
      #faf8ff 100%
    );

  box-shadow: var(--rp-sc-shadow);

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

.rp-sc-extra-card:hover,
.rp-sc-extra-card:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(111, 66, 193, 0.42);
  box-shadow: 0 16px 34px rgba(42, 28, 63, 0.13);
}

.rp-sc-extra-card:focus-visible {
  outline: 3px solid rgba(111, 66, 193, 0.25);
  outline-offset: 3px;
}

.rp-sc-extra-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  min-height: 170px;
}

/* Декоративная иконка услуги — нижний слой карточки. */

.rp-sc-extra-icon {
  position: absolute;
  right: -4px;
  bottom: -6px;
  z-index: 1;

  width: 124px;
  height: 124px;

  color: var(--rp-sc-purple);

  opacity: 0.085;
  pointer-events: none;

  transform:
    translate3d(0, 0, 0)
    rotate(-5deg);

  transform-origin: 70% 75%;

  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-sc-extra-icon svg {
  display: block;
  width: 100%;
  height: 100%;

  overflow: visible;

  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-sc-extra-card:hover .rp-sc-extra-icon,
.rp-sc-extra-card:focus-visible .rp-sc-extra-icon {
  opacity: 0.15;

  transform:
    translate3d(-3px, -3px, 0)
    rotate(-2deg)
    scale(1.055);
}

.rp-sc-extra-title {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
}

.rp-sc-extra-description {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--rp-sc-muted);
}

.rp-sc-extra-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-sc-purple-dark);
}

.rp-sc-extra-link::after {
  content: "→";
  font-size: 20px;
  transition: transform 0.2s ease;
}

.rp-sc-extra-card:hover .rp-sc-extra-link::after {
  transform: translateX(4px);
}

/* FAQ */

.rp-sc-faq-list {
  overflow: hidden;
  border: 1px solid var(--rp-sc-border);
  border-radius: var(--rp-sc-radius);
  background: #fff;
  box-shadow: var(--rp-sc-shadow);
}

.rp-sc-faq-item {
  min-height: 0;
}

.rp-sc-faq-item + .rp-sc-faq-item {
  border-top: 1px solid var(--rp-sc-border);
}

.rp-sc-faq-question {
  position: relative;
  display: block;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.rp-sc-faq-question::-webkit-details-marker {
  display: none;
}

.rp-sc-faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: var(--rp-sc-purple-dark);
  background: var(--rp-sc-purple-soft);
  transition: transform 0.26s ease;
}

.rp-sc-faq-item[open] .rp-sc-faq-question {
  color: var(--rp-sc-purple-dark);
  background: #faf8fe;
}

.rp-sc-faq-item[open] .rp-sc-faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.rp-sc-faq-question:focus-visible {
  outline: 3px solid rgba(111, 66, 193, 0.22);
  outline-offset: -3px;
}

.rp-sc-faq-answer {
  color: var(--rp-sc-muted);
}

.rp-sc-faq-answer-inner {
  padding: 0 22px 20px;
}

.rp-sc-faq-answer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}


/* Показать / скрыть вопросы после первых трёх */

.rp-sc-faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 46px;
  margin: 14px 0 0;
  padding: 11px 18px;

  color: var(--rp-sc-purple-dark);
  background: #ffffff;

  border: 1px solid rgba(111, 62, 216, 0.18);
  border-radius: 13px;

  box-shadow:
    0 8px 22px rgba(42, 28, 91, 0.055);

  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;

  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;
}

.rp-sc-faq-toggle:hover {
  color: var(--rp-sc-purple-dark);
  background: var(--rp-sc-purple-soft);
  border-color: rgba(111, 62, 216, 0.32);

  box-shadow:
    0 11px 26px rgba(42, 28, 91, 0.085);

  transform: translateY(-1px);
}

.rp-sc-faq-toggle:focus-visible {
  outline: 3px solid rgba(111, 62, 216, 0.22);
  outline-offset: 3px;
}

.rp-sc-faq-toggle:disabled {
  cursor: default;
  opacity: 0.68;
}

.rp-sc-faq-toggle__icon {
  position: relative;

  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  transition: transform 0.24s ease;
}

.rp-sc-faq-toggle__icon::before,
.rp-sc-faq-toggle__icon::after {
  position: absolute;
  top: 50%;

  width: 8px;
  height: 2px;

  content: "";

  background: currentColor;
  border-radius: 999px;
}

.rp-sc-faq-toggle__icon::before {
  left: 2px;
  transform: rotate(45deg);
}

.rp-sc-faq-toggle__icon::after {
  right: 2px;
  transform: rotate(-45deg);
}

.rp-sc-faq-toggle[aria-expanded="true"]
.rp-sc-faq-toggle__icon {
  transform: rotate(180deg);
}

/* УНИКАЛЬНОЕ ОПИСАНИЕ УСЛУГИ */

.rp-service-description {
  width: min(calc(100% - 40px), 1180px);
  margin: 38px auto 0;
}

.rp-service-description__panel {
  padding: 32px;
  border: 1px solid var(--rp-sc-border);
  border-radius: var(--rp-sc-radius);
  background: #fff;
  box-shadow: var(--rp-sc-shadow);
}

.rp-service-description__eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rp-sc-purple-dark);
  background: var(--rp-sc-purple-soft);
}

.rp-service-description__lead {
  max-width: 900px;
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.65;
  color: #444;
}

.rp-service-description__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.rp-service-description__fact {
  padding: 16px;
  border: 1px solid var(--rp-sc-border);
  border-radius: 14px;
  background: #faf8fe;
}

.rp-service-description__fact strong,
.rp-service-description__fact span {
  display: block;
}

.rp-service-description__fact strong {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--rp-sc-purple-dark);
}

.rp-service-description__fact span {
  font-size: 16px;
  line-height: 1.4;
}

.rp-service-description__body {
  display: grid;
  gap: 14px;
}

.rp-service-description__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--rp-sc-muted);
}

.rp-service-description a {
  color: var(--rp-sc-purple-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rp-service-description a:hover {
  color: var(--rp-sc-purple);
}

/* Основной мобильный переход */

@media (max-width: 820px) {
  .rp-service-content,
  .rp-service-description {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .rp-service-content {
    margin-top: 30px;
  }

  .rp-service-description {
    margin-top: 28px;
  }

  @supports (width: 100dvw) {
    .rp-service-content,
    .rp-service-description {
      width: 100dvw;
      margin-left: calc(50% - 50dvw);
      margin-right: calc(50% - 50dvw);
    }
  }

  .rp-sc-section {
    margin-bottom: 28px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .rp-sc-title,
  .rp-service-description__title {
    text-align: center;
  }

  .rp-sc-title::after,
  .rp-service-description__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .rp-sc-extra-card,
  .rp-sc-faq-list,
  .rp-service-description__panel {
    border-radius: 0;
    box-shadow: none;
  }

  .rp-sc-extra-content {
    min-height: 0;
  }

  .rp-sc-extra-icon {
    right: 4px;
    bottom: -8px;

    width: 108px;
    height: 108px;
  }

  .rp-service-description__panel {
    padding: 30px 20px;
  }

  .rp-service-description__eyebrow {
    display: table;
    margin-right: auto;
    margin-left: auto;
  }

  .rp-service-description__lead {
    text-align: center;
  }

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

/* Компактная мобильная версия */

@media (max-width: 680px) {
  .rp-sc-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .rp-sc-title,
  .rp-service-description__title {
    margin-bottom: 18px;
    font-size: 25px;
  }

  .rp-sc-notice {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .rp-sc-notice-text {
    font-size: 16px;
  }

  .rp-sc-extra-card {
    padding: 20px;
  }

  .rp-sc-extra-icon {
    right: 0;
    bottom: -5px;

    width: 96px;
    height: 96px;

    opacity: 0.075;
  }

  .rp-sc-extra-title {
    font-size: 21px;
  }

  .rp-sc-extra-description,
  .rp-sc-extra-link {
    font-size: 16px;
  }

  .rp-sc-faq-question {
    padding: 18px 52px 18px 18px;
    font-size: 17px;
  }

  .rp-sc-faq-question::after {
    right: 16px;
  }

  .rp-sc-faq-answer-inner {
    padding: 0 18px 18px;
  }

  .rp-sc-faq-answer p {
    font-size: 16px;
  }


  .rp-sc-faq-toggle {
    width: 100%;
    min-height: 44px;

    margin-top: 12px;
    padding: 10px 15px;

    font-size: 13px;
  }

  .rp-service-description__panel {
    padding: 26px 14px;
  }

  .rp-service-description__lead {
    font-size: 17px;
  }

  .rp-service-description__facts {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .rp-service-description__fact {
    padding: 14px;
  }

  .rp-service-description__body p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-sc-extra-card,
  .rp-sc-extra-icon,
  .rp-sc-extra-link::after,
  .rp-sc-faq-question,
  .rp-sc-faq-question::after,
  .rp-sc-faq-toggle,
  .rp-sc-faq-toggle__icon {
    transition: none;
  }
}
