/* ===================================================================== */
/* ======================  REDESIGN — тема Б: раскладка разделов  ==================== */
/* ===================================================================== */
/* Подключается на главной, отраслевых страницах и аутриче поверх main.css. Палитра и токены — из main.css.
   Принципы: почти чёрный фон, линии вместо карточек, без свечений, частиц, бейджей и нумерации разделов. */

.rd {
  --text-body: var(--text-secondary);
  --line: rgba(236, 234, 228, 0.1);
  --line-strong: rgba(236, 234, 228, 0.22);
  --container: 1200px;
  --section-y: clamp(72px, 9vw, 120px);
}

.rd h1,
.rd .h-title,
.rd .h-deeper-title,
.rd .h-price-amount {
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Служебный декор прежнего дизайна — не показываем */
.rd .h-tag,
.rd .h-corner,
.rd .h-hero-frame,
.rd .h-scroll,
.rd .h-more,
.rd .h-row-icon,
.rd .h-step-icon,
.rd .h-step-top,
.rd .h-why-icon,
.rd .h-contact-icon,
.rd .deeper-wave { display: none; }

/* ----- Общая сетка и ритм ----- */
.rd .h-section {
  min-height: 0;
  display: block;
  padding: var(--section-y) 2rem;
}
.rd .h-container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
/* Разделы на втором тоне фона, чтобы страница не сливалась в одно полотно */
.rd .h-method,
.rd .h-cases-section,
.rd .h-final {
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rd .h-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  line-height: 1.1;
  text-wrap: balance;
}
.rd .h-head { margin-bottom: clamp(2.25rem, 4vw, 3rem); max-width: 760px; }
.rd .h-head-center { margin-left: 0; margin-right: 0; text-align: left; }
.rd .h-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
}
.rd .h-head-lead { margin-top: 1.25rem; }

/* Раскладка «заголовок слева — содержимое справа» */
.rd .h-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.rd .h-sticky { position: -webkit-sticky; position: sticky; top: 110px; }

/* Появление при прокрутке */
.rd .h-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rd .h-reveal.visible { opacity: 1; transform: none; }

/* Фокус с клавиатуры */
.rd a:focus-visible,
.rd button:focus-visible,
.rd input:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 3px;
}

/* ===== HERO: заголовок слева, подзаголовок и кнопки справа ===== */
.rd .h-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  text-align: left;
  min-height: 0;
  padding: 168px max(2rem, calc((100% - var(--container)) / 2)) 72px;
}
.rd .hero h1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: none;
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  text-wrap: balance;
}
.rd .hero-sub {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin-bottom: 1.75rem;
  font-size: 1.15rem;
  color: var(--text-body);
}
.rd .hero-cta-group {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem 1.5rem;
  row-gap: 0.75rem;
  column-gap: 1.5rem;
}
/* Вторая кнопка первого экрана — текстовая ссылка */
.rd .hero-cta-group .btn-secondary {
  padding-left: 0;
  padding-right: 0;
  border: none;
  background: none;
  text-decoration: underline;
  text-decoration-color: rgba(236, 234, 228, 0.4);
  text-underline-offset: 5px;
}
.rd .hero-cta-group .btn-secondary:hover { text-decoration-color: var(--text-primary); }

/* ===== PAIN ===== */
/* Отраслевые страницы: заголовок слева, список справа */
.rd .h-pain-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.rd .h-pain-list li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.rd .h-pain-list .h-row-idx { display: none; }
.rd .h-pain-list p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-body);
}
.rd .h-pain-list strong { color: var(--text-primary); font-weight: 700; }

/* Главная: роли одной строкой сразу под первым экраном */
.rd .h-pain-strip { padding-top: 0; }
.rd .h-pain-strip-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.rd .h-pain-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 1.75rem;
  border-top: 1px solid var(--text-primary);
}
.rd .h-pain-row li {
  padding-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-body);
}
.rd .h-pain-row strong { color: var(--text-primary); font-weight: 700; }

/* ===== METHOD: вкладки + пример выгрузки ===== */
.rd .h-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.rd .h-method-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rd .h-tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.35rem 0 1.35rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.rd .h-tab-idx { display: none; }
.rd .h-tab-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.rd .h-tab-text {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.rd .h-tab:hover .h-tab-title { color: var(--text-primary); }
.rd .h-tab.active { border-left-color: var(--accent-yellow); }
.rd .h-tab.active .h-tab-title { color: var(--text-primary); }
.rd .h-tab.active .h-tab-text { max-height: 520px; opacity: 1; margin-top: 0.75rem; }
.rd .h-tab-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
}
.rd .h-tab-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(236, 234, 228, 0.45);
}

/* Пример выгрузки — фрагмент рабочей таблицы, данные обезличены */
.rd .h-sample {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-deep);
  overflow: hidden;
}
.rd .h-sample-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.rd .h-sample table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
}
.rd .h-sample th {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-align: left;
  color: var(--text-muted);
}
.rd .h-sample td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(236, 234, 228, 0.06);
  vertical-align: top;
}
.rd .h-sample tr:last-child td { border-bottom: none; }
.rd .h-sample th:first-child,
.rd .h-sample td:first-child { padding-left: 1.1rem; }
.rd .h-sample th:last-child,
.rd .h-sample td:last-child { padding-right: 1.1rem; }
.rd .h-sample-role { display: block; color: var(--text-primary); }
.rd .h-sample-name { display: block; font-size: 0.8rem; color: var(--text-muted); }
.rd .h-sample-mono {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.rd .h-sample-hit { color: var(--accent-yellow); }

/* ===== PROCESS ===== */
.rd .h-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  row-gap: 0;
  column-gap: 2rem;
}
.rd .h-step {
  padding-top: 1.1rem;
  border-top: 1px solid var(--text-primary);
}
.rd .h-step-top { margin-bottom: 0.6rem; }
.rd .h-step-line { display: none; }
.rd .h-step-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.rd .h-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.rd .h-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* ===== DEEPER: строка в конце «Как мы работаем» ===== */
.rd .h-deeper-section { padding-top: 0; }
.rd .h-deeper {
  display: flex;
  align-items: center;
  gap: 1.5rem 4rem;
  row-gap: 1.5rem;
  column-gap: 4rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rd .h-deeper-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem 4rem;
  row-gap: 1.5rem;
  column-gap: 4rem;
}
.rd .h-deeper-title {
  flex: 0 1 380px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
.rd .h-deeper-text .h-lead { flex: 1; font-size: 1rem; }
.rd .h-deeper .btn-primary,
.rd .h-deeper .btn-secondary { flex-shrink: 0; }

/* ===== WHY: заголовок слева, пункты в две колонки ===== */
.rd .h-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 3.5fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
}
.rd .h-why-head {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding-right: 1rem;
}
.rd .h-why-item {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.rd .h-why-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.rd .h-why-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* ===== CASES: компактная полоса ===== */
.rd .h-cases-section { padding-top: clamp(56px, 6vw, 80px); padding-bottom: clamp(56px, 6vw, 80px); }
.rd .h-cases {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.rd .h-cases-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  row-gap: 1.25rem;
  column-gap: 2.5rem;
}
.rd .h-cases-text {
  flex: 1 1 340px;
}
.rd .h-cases-text p + p { margin-top: 0.9rem; }
.rd .h-cases-text a { color: var(--accent-blue); }
.rd .h-cases-body p {
  flex: 1 1 340px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* ===== PRICING: один блок из трёх колонок ===== */
.rd .h-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.rd .h-price {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
  border-right: 1px solid var(--line);
}
.rd .h-price:last-child { border-right: none; }
.rd .h-price-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.rd .h-price-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.rd .h-price-desc {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}
.rd .h-price .btn-primary,
.rd .h-price .btn-secondary { width: 100%; }
.rd .h-price-featured {
  background: var(--bg-surface);
  box-shadow: inset 0 3px 0 var(--accent-yellow);
}
.rd .h-price-featured .h-price-label { color: var(--accent-yellow); }

/* ===== Контакты (список ссылок) и карточка формы ===== */
.rd .h-contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.rd .h-contact-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.rd .h-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.rd .h-contact-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.2s ease;
}
.rd .h-contact:hover .h-contact-arrow { stroke: var(--text-primary); }
.rd .h-contact-title { display: block; font-weight: 700; font-size: 1rem; }
.rd .h-contact-desc { display: block; font-size: 0.95rem; color: var(--text-body); }

.rd .h-form-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-deep);
}
.rd .h-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rd .h-form-sub { font-size: 0.98rem; line-height: 1.6; color: var(--text-body); }
.rd .h-form-card .cta-form { margin-top: 1.5rem; }

/* ===== FAQ ===== */
.rd .h-faq-list { border-top: 1px solid var(--line); }
.rd .h-faq-item { border-bottom: 1px solid var(--line); }
.rd .h-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 60px;
  padding: 1.1rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 1.08rem;
  text-align: left;
  cursor: pointer;
}
.rd .h-faq-q i {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.rd .h-faq-q i::before,
.rd .h-faq-q i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--text-muted);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.rd .h-faq-q i::after { transform: rotate(90deg); }
.rd .h-faq-q:hover i::before,
.rd .h-faq-q:hover i::after { background: var(--text-primary); }
.rd .h-faq-item.open .h-faq-q i::after { transform: rotate(0deg); }
.rd .h-faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}
.rd .h-faq-item.open .h-faq-a { max-height: 420px; opacity: 1; }
.rd .h-faq-a-inner {
  padding: 0 3rem 1.4rem 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}
.rd .h-faq-a-inner a { color: var(--accent-blue); }

/* ===== FINAL: текст и контакты слева, форма справа ===== */
.rd .h-final-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.rd .h-final-box > .h-title,
.rd .h-final-box > .h-lead,
.rd .h-final-box > .h-contact-list { grid-column: 1; }
.rd .h-final-box > .h-lead { margin-top: 1.25rem; }
.rd .h-final-box > #formContainer {
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-deep);
}
.rd .h-final-form { margin-top: 0; }

/* ===== УСЛУГИ (отраслевые страницы, аутрич) ===== */
.rd .h-svc-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.rd .h-svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.75rem 2rem;
  row-gap: 0.75rem;
  column-gap: 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.rd .h-svc .h-row-idx { display: none; }
.rd .h-svc h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}
.rd .h-svc p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* Пять шагов в ряд */
.rd .h-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 1.5rem; }

/* ===== АУТРИЧ: цепочка ===== */
.rd .h-chain-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.1rem;
}
.rd .h-chain-text strong { color: var(--text-primary); font-weight: 700; }
.rd .h-chain-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  row-gap: 0.6rem;
  column-gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.rd .h-chain-flow .chain-step {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0;
  border: none;
  background: none;
}
.rd .h-chain-flow .chain-step-final { color: var(--accent-yellow); }
.rd .h-chain-flow .chain-arrow { color: var(--text-muted); }

/* ===== АУТРИЧ: метрики ===== */
.rd .h-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rd .h-metric { padding: 2.25rem 2rem 2.25rem 0; }
.rd .h-metric + .h-metric {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}
.rd .h-metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-yellow);
  margin-bottom: 1.25rem;
}
.rd .h-metric p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}
.rd .h-metrics-note {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== АУТРИЧ: сравнение ===== */
.rd .h-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.rd .h-compare { padding: clamp(1.75rem, 3vw, 2.5rem); }
.rd .h-compare + .h-compare { border-left: 1px solid var(--line); }
.rd .h-compare-good {
  background: var(--bg-surface);
  box-shadow: inset 0 3px 0 var(--accent-yellow);
}
.rd .h-compare-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.rd .h-compare-good .h-compare-label { color: var(--accent-yellow); }
.rd .h-compare-list { list-style: none; }
.rd .h-compare-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}
.rd .h-compare-list li:last-child { border-bottom: none; padding-bottom: 0; }
.rd .h-compare-list svg {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rd .h-compare-bad .h-compare-list svg { stroke: var(--text-muted); }
.rd .h-compare-good .h-compare-list svg { stroke: var(--accent-yellow); }
.rd .h-compare-bad .h-compare-list li { color: var(--text-muted); }
.rd .h-compare-cta { margin-top: 2.5rem; }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .rd .h-steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .rd .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .rd .h-pain-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
  .rd .h-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd .h-why-head { grid-column: 1 / -1; grid-row: auto; padding: 0 0 2rem; }
  .rd .h-deeper-text { flex-direction: column; align-items: flex-start; }
  .rd .h-deeper-title { flex-basis: auto; }
}

@media (max-width: 900px) {
  .rd .h-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    padding-top: 136px;
  }
  .rd .hero h1,
  .rd .hero-sub,
  .rd .hero-cta-group { grid-column: 1; grid-row: auto; }
  .rd .hero h1 { margin-bottom: 1.5rem; }
  .rd .h-split,
  .rd .h-cases,
  .rd .h-contacts-grid,
  .rd .h-method-grid,
  .rd .h-final-box { grid-template-columns: 1fr; row-gap: 2rem; }
  .rd .h-final-box > #formContainer { grid-column: 1; grid-row: auto; }
  .rd .h-sticky { position: static; }
  .rd .h-price-grid { grid-template-columns: 1fr; }
  .rd .h-price { border-right: none; border-bottom: 1px solid var(--line); }
  .rd .h-price:last-child { border-bottom: none; }
  .rd .h-deeper { flex-direction: column; align-items: flex-start; }
  .rd .h-svc { grid-template-columns: 1fr; }
  .rd .h-metric-grid { grid-template-columns: 1fr; }
  .rd .h-metric,
  .rd .h-metric + .h-metric { padding: 1.75rem 0; border-left: none; }
  .rd .h-metric + .h-metric { border-top: 1px solid var(--line); }
  .rd .h-compare-grid { grid-template-columns: 1fr; }
  .rd .h-compare + .h-compare { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .rd .h-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .rd .h-hero { padding: 120px 1.25rem 48px; }
  .rd .hero h1 { font-size: 1.9rem; line-height: 1.12; }
  .rd .hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; }
  .rd .hero-cta-group a { justify-content: center; }
  .rd .h-pain-row { grid-template-columns: 1fr; border-top-color: var(--text-primary); }
  .rd .h-pain-row li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .rd .h-steps,
  .rd .h-steps-5 { grid-template-columns: 1fr; row-gap: 2rem; }
  .rd .h-why-grid { grid-template-columns: 1fr; }
  .rd .h-faq-a-inner { padding-right: 0; }
  .rd .h-deeper .btn-primary,
  .rd .h-deeper .btn-secondary,
  .rd .h-cases-body .btn-secondary { width: 100%; }

  /* Таблица-выгрузка: строки карточками */
  .rd .h-sample thead { display: none; }
  .rd .h-sample table,
  .rd .h-sample tbody,
  .rd .h-sample tr,
  .rd .h-sample td { display: block; }
  .rd .h-sample tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(236, 234, 228, 0.06);
  }
  .rd .h-sample tr:last-child { border-bottom: none; }
  .rd .h-sample td,
  .rd .h-sample td:first-child,
  .rd .h-sample td:last-child { padding: 0; border: none; }
  .rd .h-sample td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 0.8rem; color: var(--text-muted); }
  .rd .h-sample td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .rd .h-sample td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .rd .h-sample td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; align-self: end; }
}

/* ===== Уменьшение движения ===== */
@media (prefers-reduced-motion: reduce) {
  .rd *,
  .rd *::before,
  .rd *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rd .h-reveal { opacity: 1; transform: none; }
}
