/* ==========================================================
   REUT PRINT — ТРЕБОВАНИЯ К МАКЕТУ · consolidated 2026-11-14
   ========================================================== */

.rp-layout-req {
  width: min(calc(100% - 40px), 1180px);
  margin: 42px auto;
  color: #292735;
  font-family: Montserrat, Arial, sans-serif;
}

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

.rp-layout-req__panel {
  padding: clamp(24px, 4vw, 46px);

  background: #ffffff;
  border: 1px solid rgba(57, 49, 133, 0.09);
  border-radius: 20px;

  box-shadow:
    0 14px 38px rgba(37, 28, 90, 0.07),
    0 2px 8px rgba(37, 28, 90, 0.04);
}


/* ==========================================================
   HEADER
   ========================================================== */

.rp-layout-req__head {
  max-width: 850px;
  margin-bottom: 30px;
}

.rp-layout-req__eyebrow {
  margin: 0 0 8px;

  color: #6f3ed8;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rp-layout-req__title {
  margin: 0 0 14px;

  color: #16131d;

  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rp-layout-req__lead {
  margin: 0;

  color: #666270;

  font-size: 17px;
  line-height: 1.55;
}


/* ==========================================================
   КАРТОЧКИ
   ========================================================== */

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

  margin-bottom: 34px;
}

.rp-layout-req__card {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-height: 104px;
  padding: 18px;

  background: #f7f4ff;
  border: 1px solid rgba(111, 62, 216, 0.10);
  border-radius: 14px;
}

.rp-layout-req__card strong {
  color: #5426b9;

  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.rp-layout-req__card span {
  color: #5f5a68;

  font-size: 14px;
  line-height: 1.4;
}


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

.rp-layout-req__main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.25fr);
  gap: 34px;
  align-items: start;
}

.rp-layout-req__info h3,
.rp-layout-req__diagram h3 {
  margin: 0 0 18px;

  color: #292735;

  font-size: 22px;
  font-weight: 800;
}

.rp-layout-req__rules {
  display: grid;
  gap: 12px;
}

.rp-layout-req__rule {
  padding: 15px 17px;

  background: #faf9fc;
  border: 1px solid #ebe8ef;
  border-radius: 12px;
}

.rp-layout-req__rule strong {
  display: block;
  margin-bottom: 5px;

  color: #292735;

  font-size: 15px;
  font-weight: 800;
}

.rp-layout-req__rule p {
  margin: 0;

  color: #686470;

  font-size: 14px;
  line-height: 1.5;
}


/* ==========================================================
   СХЕМА
   ========================================================== */

.rp-layout-req__diagram {
  min-width: 0;
}

.rp-layout-req__svg {
  display: block;

  width: 100%;
  height: auto;

  background: #fbfafc;
  border: 1px solid #e7e3eb;
  border-radius: 16px;
}

.rp-layout-req__bleed {
  fill: #fff2d6;
  stroke: #f0ad20;
  stroke-width: 3;
  stroke-dasharray: 10 8;
}

.rp-layout-req__cut {
  fill: #ffffff;
  stroke: #de4545;
  stroke-width: 3;
}

.rp-layout-req__safe {
  fill: #f3efff;
  stroke: #6f3ed8;
  stroke-width: 3;
  stroke-dasharray: 9 7;
}

.rp-layout-req__svg-label:not(.rp-layout-req__svg-label--safe-text) text {
  fill: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.rp-layout-req__svg-label-bg--bleed {
  fill: #d89200;
}

.rp-layout-req__svg-label-bg--cut {
  fill: #cf3e45;
}

.rp-layout-req__svg-label-bg--safe {
  fill: #6f3ed8;
}

.rp-layout-req__svg-small {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.rp-layout-req__svg-content {
  fill: #4d4855;

  font-size: 16px;
  font-weight: 600;
}

.rp-layout-req__svg-demo-title {
  fill: #292735;

  font-size: 26px;
  font-weight: 800;
}

.rp-layout-req__svg-demo-line {
  fill: #6f3ed8;
}

.rp-layout-req__dimension line {
  stroke: #77717f;
  stroke-width: 2;
}

.rp-layout-req__dimension text {
  fill: #66616d;

  font-size: 13px;
  font-weight: 700;
}

.rp-layout-req__svg-safe-title {
  fill: #5a35cc;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rp-layout-req__svg-safe-subtitle {
  fill: #5a35cc;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Вылеты */

.rp-layout-req__rule:nth-child(1) {
  background: #fff8e7;
  border-color: rgba(216, 146, 0, 0.22);
  border-left: 4px solid #d89200;
}

.rp-layout-req__rule:nth-child(1) strong {
  color: #a76f00;
}


/* Безопасная зона */

.rp-layout-req__rule:nth-child(2) {
  background: #f7f3ff;
  border-color: rgba(111, 62, 216, 0.18);
  border-left: 4px solid #6f3ed8;
}

.rp-layout-req__rule:nth-child(2) strong {
  color: #5426b9;
}

/* ==========================================================
   ПРИМЕР ВИЗИТКИ
   ========================================================== */

.rp-layout-req__example {
  margin-top: 16px;
  padding: 18px;

  background: #f7f5ff;
  border: 1px solid rgba(111, 62, 216, 0.10);
  border-radius: 14px;
}

.rp-layout-req__example > strong {
  display: block;
  margin-bottom: 12px;

  color: #292735;

  font-size: 16px;
}

.rp-layout-req__example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rp-layout-req__example-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;

  color: #6c6772;

  font-size: 12px;
}

.rp-layout-req__example-grid b {
  color: #5426b9;

  font-size: 17px;
}


/* ==========================================================
   ВИЗИТКИ / ШРИФТ
   ========================================================== */

.rp-layout-req__business-card {
  margin-top: 12px;
  padding: 16px 18px;

  background: #fff8e6;

  border: 1px solid rgba(224, 164, 28, 0.20);
  border-left: 5px solid #e1a11e;
  border-radius: 14px;
}

.rp-layout-req__business-card strong {
  display: block;
  margin-bottom: 6px;

  color: #473814;

  font-size: 16px;
  font-weight: 800;
}

.rp-layout-req__business-card p {
  margin: 0;

  color: #6b6048;

  font-size: 14px;
  line-height: 1.55;
}


/* ==========================================================
   ФИНАЛЬНАЯ ПОДСКАЗКА
   ========================================================== */

.rp-layout-req__note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;

  margin-top: 20px;
  padding: 16px 18px;

  background: #f8f7fb;
  border-radius: 12px;

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

.rp-layout-req__note strong {
  color: #5426b9;
}

.rp-layout-req__note span {
  color: #686470;
}

/* ==========================================================
   КОНСТРУКТОР ВИЗИТОК — СКОРО
   ========================================================== */

.rp-layout-req__constructor {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-top: 12px;
  padding: 16px 18px;

  background:
    linear-gradient(
      rgba(111, 62, 216, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(111, 62, 216, 0.035) 1px,
      transparent 1px
    ),
    #f8f5ff;

  background-size: 18px 18px;

  border: 1px solid rgba(111, 62, 216, 0.16);
  border-radius: 14px;
}


/* лёгкая декоративная метка в углу */

.rp-layout-req__constructor::before {
  content: "";

  position: absolute;
  top: 10px;
  left: 10px;

  width: 18px;
  height: 18px;

  border-top: 2px solid rgba(111, 62, 216, 0.20);
  border-left: 2px solid rgba(111, 62, 216, 0.20);

  pointer-events: none;
}


.rp-layout-req__constructor::after {
  content: "";

  position: absolute;
  right: 10px;
  bottom: 10px;

  width: 18px;
  height: 18px;

  border-right: 2px solid rgba(111, 62, 216, 0.20);
  border-bottom: 2px solid rgba(111, 62, 216, 0.20);

  pointer-events: none;
}


.rp-layout-req__constructor-main {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}


.rp-layout-req__constructor-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  color: #6f3ed8;
  background: #ffffff;

  border: 1px solid rgba(111, 62, 216, 0.14);
  border-radius: 12px;

  box-shadow: 0 5px 14px rgba(72, 42, 148, 0.08);
}


.rp-layout-req__constructor-icon svg {
  width: 24px;
  height: 24px;

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


.rp-layout-req__constructor-text {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 0;
}


.rp-layout-req__constructor-text strong {
  color: #292735;

  font-size: 16px;
  font-weight: 800;
}


.rp-layout-req__constructor-text span {
  color: #686470;

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

/* ==========================================================
   КНОПКА КОНСТРУКТОРА
   ========================================================== */

.rp-layout-req__constructor-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  flex: 0 0 auto;

  min-height: 46px;
  padding: 10px 10px 10px 18px;

  color: #ffffff;
  background: #6f3ed8;

  border: 0;
  border-radius: 999px;

  box-shadow: 0 8px 20px rgba(84, 38, 185, 0.16);

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;

  opacity: 0.78;
  cursor: not-allowed;

  appearance: none;
  -webkit-appearance: none;
}

.rp-layout-req__constructor-btn:disabled {
  color: #ffffff;
  background: #6f3ed8;

  opacity: 0.78;
}

.rp-layout-req__constructor-btn-text {
  white-space: nowrap;
}

.rp-layout-req__constructor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;
  padding: 5px 9px;

  color: #5426b9;
  background: #ffffff;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}


/* ==========================================================
   MOBILE
   ========================================================== */

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1020px) {

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

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

}


/* ==========================================================
   MOBILE — ПОЛНАЯ ШИРИНА
   ========================================================== */

@media (max-width: 820px) {

  .rp-layout-req {
    width: 100vw;
    max-width: none;

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

  @supports (width: 100dvw) {

    .rp-layout-req {
      width: 100dvw;

      margin-right: calc(50% - 50dvw);
      margin-left: calc(50% - 50dvw);
    }

  }

}


/* ==========================================================
   MOBILE — КОМПАКТНАЯ КОМПОНОВКА
   ========================================================== */

@media (max-width: 680px) {

  .rp-layout-req__panel {
    padding: 24px 14px;

    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }


  .rp-layout-req__cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .rp-layout-req__card {
    min-height: 96px;
    padding: 14px;
  }

  .rp-layout-req__card strong {
    font-size: 18px;
  }

  .rp-layout-req__card span {
    font-size: 12px;
  }


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


  /* Конструктор визиток */

  .rp-layout-req__constructor {
    flex-direction: column;
    align-items: stretch;
  }

  .rp-layout-req__constructor-main {
    align-items: flex-start;
  }

  .rp-layout-req__constructor-btn {
    width: 100%;
  }

}