/* d-pricing: секции «Стоимость и тарифы» (#pricing) и финальный блок с формой демо (#start).
   Макет: десктоп 139:26581 и 151:1126 (верх), мобильный 180:4604 и 180:4761. */

/* ---------- Тарифы ---------- */
.rs-pricing .rs-head { max-width: 996px; margin-bottom: 51px; }
.rs-pricing .rs-head .rs-lead { max-width: 820px; font-size: 20px; }

.rs-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.rs-plan {
  display: flex;
  flex-direction: column;
  min-height: 549px;
  padding: 20px;
  border-color: var(--light);
  border-radius: 30px;
}

.rs-plan-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.rs-plan-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--yellow);
}
.rs-plan-icon img { display: block; width: 20px; height: 20px; }
.rs-plan h3 { font-size: 25px; line-height: 1.2; letter-spacing: 0; }
/* Лимит компаний — главное отличие тарифов, поэтому плашкой (решение владельца 22.10.2026) */
.rs-plan-limit {
  justify-self: start; margin-top: 8px; padding: 6px 12px; border-radius: 60px;
  background: var(--yellow-soft); color: var(--black); font-size: 16px; font-weight: 600; line-height: 1.3;
}

.rs-plan-price { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--light); white-space: nowrap; }
.rs-plan-sum {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 39px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.rs-plan-per { color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.4; }

.rs-plan-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 40px;
  padding: 0;
  list-style: none;
}
.rs-plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}
.rs-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url("../../assets/intent/pricing/check.svg") center / 18px 18px no-repeat;
}

.rs-plan-cta { min-height: 48px; margin-top: auto; padding: 0 20px; font-size: 16px; }
.rs-plan-cta-muted { background: var(--light); color: var(--black); }
.rs-plan-cta-muted:hover { background: var(--line); }

/* Enterprise — тёмная плашка во всю ширину с линиями на фоне */
.rs-plan-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 40px;
  padding: 30px 30px;
  border-radius: 40px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.rs-plan-strip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 1200px;
  height: 513px;
  transform: translate(-50%, -50%);
  background: url("../../assets/intent/pricing/enterprise-lines.svg") center / 1200px 513px no-repeat;
  pointer-events: none;
}
.rs-plan-strip-head { display: flex; flex-direction: column; align-items: center; }
.rs-plan-strip h3 {
  color: var(--white);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 39px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.rs-plan-strip-price {
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}
.rs-plan-strip-limit { margin-top: 10px; color: var(--yellow); font-size: 18px; font-weight: 600; line-height: 1.4; }
.rs-plan-strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.rs-plan-strip-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}
.rs-plan-strip-list li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: url("../../assets/intent/pricing/check-yellow.svg") center / 20px 20px no-repeat;
}
.rs-plan-strip-cta { width: 347px; max-width: 100%; min-height: 48px; margin-top: 30px; font-size: 16px; }
.rs-plan-strip :focus-visible { outline-color: var(--yellow); }

.rs-pricing-note { margin-top: 40px; font-size: 20px; line-height: 1.4; text-align: center; }

/* ---------- Финальный блок и форма демо ---------- */
.rs-final { padding-bottom: 60px; }
.rs-final-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(0, 488px);
  justify-content: space-between;
  align-items: start;
}
/* Линии на фоне левой колонки (декор из макета) */
.rs-final-grid::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 0;
  z-index: -1;
  width: 794px;
  height: 499px;
  background: url("../../assets/intent/pricing/final-lines.webp") left top / 794px 499px no-repeat;
  pointer-events: none;
}
.rs-final { position: relative; isolation: isolate; overflow-x: clip; }

.rs-final-copy { padding-top: 23px; }
.rs-final-copy h2 { font-size: clamp(30px, 3.4vw, 49px); }
.rs-final-lead { margin-top: 16px; color: var(--muted); font-size: 20px; line-height: 1.4; }
/* Что будет на встрече (22.10.2026): три пункта вместо самостоятельной регистрации */
.rs-final-points { display: grid; gap: 16px; margin-top: 36px; list-style: none; }
.rs-final-points li { display: flex; align-items: center; gap: 16px; font: 600 22px/1.25 var(--sans); }
.rs-final-num {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--yellow); font: 600 20px/1 var(--sans);
}


.rs-demo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: 40px;
  background: var(--black);
  color: var(--white);
}
.rs-demo-title {
  display: block;
  margin-bottom: 16px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.rs-demo-title em { font-style: normal; }

.rs-field { display: block; }
.rs-field input {
  display: block;
  width: 100%;
  height: 62px;
  padding: 0 30px;
  border: 1px solid var(--light);
  border-radius: 50px;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.rs-field input::placeholder { color: var(--muted); opacity: 1; }
.rs-field input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(249 205 69 / 55%); }
.rs-field input.invalid { border-color: #ff7a5f; box-shadow: 0 0 0 3px rgb(255 122 95 / 45%); }

/* Ловушка для ботов: убрана за край экрана, у самого поля display не трогаем */
.rs-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Согласия под кнопкой, поля — белые квадраты, чтобы их было видно на тёмном (22.10.2026) */
.rs-consents { display: grid; gap: 10px; margin-top: 4px; }
.rs-consents label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  cursor: pointer;
}
.rs-consents input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--white);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}
.rs-consents input:checked {
  border-color: var(--yellow);
  background: var(--yellow) url("../../assets/intent/pricing/checkbox-check.svg") center / 12px 12px no-repeat;
}
.rs-consents input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.rs-consents input.invalid { border-color: #ff7a5f; box-shadow: 0 0 0 2px rgb(255 122 95 / 45%); }
.rs-consents a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rs-consents a:hover { color: var(--white); }

.rs-demo-form button[type="submit"] { margin-top: 6px; }
.rs-demo-form :focus-visible { outline-color: var(--yellow); }
.rs-demo-form .form-status:empty { display: none; }
.rs-demo-form .form-status { text-align: center; }
.rs-demo-form .form-status.error { color: #ff8a73; }
.rs-demo-form .form-status.success { color: #8fd6a5; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .rs-pricing-grid { gap: 16px; }
  .rs-plan-sum { font-size: 32px; }
  .rs-final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; }
}

@media (max-width: 960px) {
  .rs-pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .rs-plan { min-height: 0; }
  .rs-plan-sum { font-size: 39px; }
  .rs-plan-strip { max-width: 560px; margin-inline: auto; }
  .rs-final-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 560px; margin-inline: auto; }
  .rs-final-grid::before { left: -80px; }
  .rs-final-copy { padding-top: 0; }
}

@media (max-width: 640px) {
  .rs-pricing .rs-head { margin-bottom: 32px; }
  .rs-pricing .rs-head .rs-lead { font-size: 16px; }
  .rs-plan { padding: 20px 16px; border-radius: 24px; }
  .rs-plan h3 { font-size: 22px; }
  .rs-plan-sum { font-size: 32px; }
  .rs-plan-list { margin-bottom: 30px; }
  .rs-plan-list li { font-size: 15px; }

  .rs-plan-strip { margin-top: 20px; padding: 30px 16px; border-radius: 24px; }
  .rs-plan-strip h3 { font-size: 32px; }
  .rs-plan-strip-list { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
  .rs-plan-strip-list li { align-items: flex-start; font-size: 15px; }
  .rs-plan-strip-cta { width: 100%; }
  .rs-pricing-note { margin-top: 24px; font-size: 16px; }

  .rs-final { padding-bottom: 40px; }
  .rs-final-lead { font-size: 16px; }
  .rs-final-points { margin-top: 24px; gap: 12px; }
  .rs-final-points li { font-size: 18px; }
  .rs-final-num { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
          
  .rs-demo-form { padding: 24px 16px; border-radius: 24px; gap: 12px; }
  .rs-demo-title { margin-bottom: 8px; font-size: 22px; }
  .rs-field input { height: 56px; padding: 0 22px; }
}
