/* Раздел «ПО по подписке» (/subscription). Цвета и шрифты — токены темы из style.css, классы — sub-*.
   Mobile-first: базовые правила для узких экранов, расширения — в media-запросах. */

.sub {
  --sub-line: rgba(10, 12, 0, 0.12);
  --sub-muted: rgba(10, 12, 0, 0.66);
  --sub-dark: var(--title-color);
  --sub-dark-muted: rgba(255, 255, 255, 0.72);
  --sub-dark-line: rgba(255, 255, 255, 0.16);
  --sub-radius: 4px;
  --sub-gap: 20px;
  --sub-space: 64px;
  overflow-x: clip;
}

.sub :focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--title-color);
}

.sub a:not(.btn) {
  text-underline-offset: 3px;
}

/* ---------- Общие элементы ---------- */

.sub-section {
  padding: var(--sub-space) 0;
}

.sub-section--smoke {
  background: var(--smoke-color);
}

.sub-section--dark {
  background: var(--sub-dark);
  color: var(--white-color);
}

.sub-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.sub-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sub-eyebrow {
  margin: 0 0 12px;
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub-muted);
}

.sub-eyebrow--accent {
  display: inline-block;
  padding: 6px 10px;
  background: var(--theme-color);
  color: var(--title-color);
}

.sub-h2 {
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--title-font);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.sub-intro {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sub-muted);
}

.sub-section--dark .sub-intro,
.sub-section--dark .sub-eyebrow {
  color: var(--sub-dark-muted);
}

.sub-outro,
.sub-note {
  margin: 32px 0 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.6;
}

.sub-outro {
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 500;
}

.sub-note {
  font-size: 15px;
  color: var(--sub-muted);
}

.sub-section--dark .sub-note {
  color: var(--sub-dark-muted);
}

.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sub-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-card,
.sub-block,
.sub-step,
.sub-industry {
  position: relative;
  padding: 24px;
  background: var(--white-color);
  border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius);
}

.sub-section--smoke .sub-card,
.sub-section--smoke .sub-step,
.sub-section--smoke .sub-industry,
.sub-section--smoke .sub-block {
  border-color: transparent;
}

.sub-card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sub-dark-line);
  color: var(--white-color);
}

.sub-card--caution {
  border-style: dashed;
  border-color: rgba(10, 12, 0, 0.4);
}

.sub-card__num,
.sub-step__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--sub-muted);
}

.sub-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--theme-color);
  color: var(--title-color);
  border-radius: 50%;
}

.sub-card__title,
.sub-block__title,
.sub-step__title,
.sub-industry__title {
  margin: 0 0 10px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.sub-card__text,
.sub-block__text,
.sub-step__text,
.sub-industry__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub-muted);
}

.sub-block__text + .sub-block__text {
  margin-top: 10px;
}

.sub-card--dark .sub-card__text {
  color: var(--sub-dark-muted);
}

.sub-card__more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: underline;
}

.sub-card__more::after {
  content: " →";
}

.sub-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
  line-height: 1.55;
}

.sub-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--title-color);
}

.sub-section--dark .sub-checklist li::before,
.sub-industry--featured .sub-checklist li::before {
  color: var(--theme-color);
}

.sub-checklist--large li {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sub-line);
}

.sub-checklist--large li::before {
  top: 10px;
}

.sub .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: normal;
}

.sub-btn-ghost {
  background: transparent;
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sub-btn-ghost:hover,
.sub-btn-ghost:focus {
  color: var(--title-color);
}

/* ---------- Первый экран ---------- */

.sub-hero {
  padding: 128px 0 56px;
  background: var(--sub-dark);
  color: var(--white-color);
}

.sub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.sub-hero__title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(30px, 6.4vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white-color);
}

.sub-hero__offer {
  margin: 20px 0 0;
  font-family: var(--title-font);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.35;
  color: var(--theme-color);
}

.sub-hero__lead {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sub-dark-muted);
}

.sub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.sub-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--sub-dark-muted);
}

.sub-hero__badges li::before {
  content: "●";
  margin-right: 8px;
  font-size: 10px;
  color: var(--theme-color);
  vertical-align: middle;
}

.sub-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Хлебные крошки */
.sub-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--sub-dark-muted);
}

.sub-crumbs li + li::before {
  content: "→";
  margin: 0 10px;
}

.sub-crumbs a {
  color: var(--white-color);
}

/* Сравнение «разово / по подписке» */
.sub-paycompare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.sub-paycompare__item {
  padding: 20px;
  border: 1px solid var(--sub-dark-line);
  border-radius: var(--sub-radius);
  color: var(--white-color);
}

.sub-paycompare__item p {
  color: inherit;
}

.sub-paycompare__item--accent {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: var(--title-color);
}

.sub-paycompare__name {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.sub-paycompare__value {
  margin: 0 0 8px;
  font-family: var(--title-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.sub-paycompare__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Макет интерфейса — собственная иллюстрация, без изображений */
.sub-mock {
  margin: 0;
}

.sub-mock__window {
  overflow: hidden;
  background: #16180b;
  border: 1px solid var(--sub-dark-line);
  border-radius: 8px;
}

.sub-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sub-dark-line);
  font-size: 13px;
}

.sub-mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.sub-mock__bar strong {
  margin-left: 10px;
  font-weight: 500;
  color: var(--sub-dark-muted);
}

.sub-mock__board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.sub-mock__col-name {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sub-dark-muted);
}

.sub-mock__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--sub-dark-line);
  border-radius: 3px;
}

.sub-mock__card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white-color);
  overflow-wrap: anywhere;
}

.sub-mock__card-meta {
  font-size: 11px;
  line-height: 1.3;
  color: var(--sub-dark-muted);
  overflow-wrap: anywhere;
}

.sub-mock__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--sub-dark-muted);
}

/* Схема процесса на первом экране — иллюстрация, не интерфейс продукта */
.sub-hero__note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--sub-dark-muted);
}

.sub-flowmock {
  margin: 0;
}

.sub-flowmock__window {
  padding: 20px;
  background: #16180b;
  border: 1px solid var(--sub-dark-line);
  border-radius: 8px;
}

.sub-flowmock__title {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub-dark-muted);
}

.sub-flowmock__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flowmock;
}

.sub-flowmock__step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--sub-dark-line);
  border-radius: 4px;
  counter-increment: flowmock;
}

.sub-flowmock__step::before {
  content: counter(flowmock);
  grid-row: span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--theme-color);
  color: var(--title-color);
  border-radius: 50%;
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 700;
}

.sub-flowmock__dept {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub-dark-muted);
}

.sub-flowmock__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-color);
}

.sub-flowmock__meta {
  font-size: 12px;
  color: var(--sub-dark-muted);
}

.sub-flowmock__objects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sub-flowmock__objects li {
  padding: 4px 10px;
  border: 1px solid var(--sub-dark-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--sub-dark-muted);
}

@media (min-width: 576px) {
  .sub-flowmock__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Навигация раздела ---------- */

.sub-nav {
  position: relative;
  z-index: 1;
  background: var(--white-color);
  border-bottom: 1px solid var(--sub-line);
}

.sub-nav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sub-nav__link {
  display: block;
  padding: 16px 14px;
  white-space: nowrap;
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--title-color);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.sub-nav__link:hover {
  border-bottom-color: var(--sub-line);
}

.sub-nav__link.is-current {
  border-bottom-color: var(--title-color);
}

/* ---------- Таймлайн ---------- */

.sub-timeline__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sub-step;
}

.sub-timeline__step {
  position: relative;
  padding: 24px 24px 24px 28px;
  background: var(--white-color);
  border-top: 4px solid var(--title-color);
}

.sub-timeline__step.is-accent {
  border-top-color: var(--theme-color);
  box-shadow: inset 0 0 0 2px var(--title-color);
}

.sub-timeline__when {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sub-muted);
}

.sub-timeline__title {
  margin: 0 0 8px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 600;
}

.sub-timeline__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub-muted);
}

/* ---------- Отрасли ---------- */

.sub-industries__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sub-gap);
}

.sub-industry--featured {
  background: var(--sub-dark);
  color: var(--white-color);
}

.sub-industry--featured .sub-industry__title {
  font-size: 24px;
}

.sub-industry--featured .sub-industry__text {
  color: var(--sub-dark-muted);
}

.sub-industry--featured .sub-checklist {
  margin: 18px 0 24px;
}

.sub-industries__list {
  display: grid;
  gap: var(--sub-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Состав подписки ---------- */

.sub-includes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.sub-includes__extra {
  align-self: start;
  padding: 24px;
  background: var(--smoke-color);
  border-radius: var(--sub-radius);
}

.sub-includes__extra-title {
  margin: 0 0 10px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 600;
}

.sub-includes__extra p {
  margin: 0;
  line-height: 1.6;
}

/* ---------- Сравнение ---------- */

.sub-table-wrap {
  max-width: 100%;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sub-table,
.sub-table th,
.sub-table td {
  border: 0;
  background: transparent;
}

.sub-table thead {
  display: none;
}

.sub-table tr {
  display: block;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius);
}

.sub .sub-table th {
  text-align: left;
}

.sub-table th[scope="row"] {
  display: block;
  margin-bottom: 10px;
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.sub-table td {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--sub-line);
  line-height: 1.5;
}

.sub-table td::before {
  content: attr(data-label);
  font-weight: 600;
  color: var(--sub-muted);
}

.sub-table td.is-accent {
  font-weight: 600;
}

/* ---------- Стоимость ---------- */

.sub-pricing__factors {
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.sub-pricing__factors .sub-card__num {
  color: inherit;
  opacity: 0.5;
}

.sub-section--dark .sub-pricing__factors .sub-card__num {
  color: var(--theme-color);
  opacity: 1;
}

.sub-section--smoke .sub-includes__extra {
  background: var(--white-color);
}

.sub-pricing__terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sub-gap);
  margin: 0 0 32px;
}

.sub-pricing__term {
  padding: 20px 0;
  border-top: 1px solid var(--sub-dark-line);
}

.sub-pricing__term dt {
  margin-bottom: 8px;
  font-family: var(--title-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--theme-color);
}

.sub-pricing__term dd {
  margin: 0;
  line-height: 1.55;
  color: var(--sub-dark-muted);
}

.sub-section:not(.sub-section--dark) .sub-pricing__term {
  border-top-color: var(--sub-line);
}

.sub-pricing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.sub-pricing__link {
  color: var(--title-color);
  font-weight: 600;
  text-decoration: underline;
}

.sub-section--dark .sub-pricing__link {
  color: var(--white-color);
}

/* ---------- Подтверждения ---------- */

.sub-proof__points {
  margin-bottom: 32px;
  max-width: 820px;
}

.sub-proof__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.sub-proof__stats strong {
  font-family: var(--title-font);
  font-size: 32px;
}

.sub-project {
  overflow: hidden;
  background: var(--smoke-color);
  border-radius: var(--sub-radius);
}

.sub-project__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 19 / 10;
  object-fit: cover;
}

.sub-project__body {
  padding: 20px 22px 24px;
}

.sub-project__kind {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--sub-muted);
}

.sub-project__title {
  margin: 0 0 12px;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 600;
}

.sub-project__title a {
  color: var(--title-color);
}

.sub-project__text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */

.sub-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.sub-faq__item {
  border-bottom: 1px solid var(--sub-line);
}

.sub-faq__q {
  position: relative;
  padding: 20px 40px 20px 0;
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.sub-faq__q::-webkit-details-marker {
  display: none;
}

.sub-faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.sub-faq__item[open] .sub-faq__q::after {
  content: "−";
}

.sub-faq__a {
  padding: 0 0 20px;
  line-height: 1.65;
  color: var(--sub-muted);
}

.sub-faq__a p {
  margin: 0;
}

/* ---------- Сценарий ---------- */

.sub-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-flow__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 18px;
  background: var(--white-color);
  border-radius: var(--sub-radius);
}

.sub-flow__num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--title-color);
  color: var(--theme-color);
  border-radius: 50%;
  font-family: var(--title-font);
  font-weight: 600;
}

.sub-flow__title {
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.sub-flow__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sub-muted);
}

/* ---------- Было / стало ---------- */

.sub-ba {
  margin: 0;
}

.sub-ba__label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--title-color);
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 600;
}

.sub-ba__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sub-gap);
}

.sub-ba__side {
  padding: 24px;
  background: var(--white-color);
  border-top: 4px solid rgba(10, 12, 0, 0.3);
}

.sub-ba__side--after {
  border-top-color: var(--theme-color);
  box-shadow: inset 0 0 0 2px var(--title-color);
}

.sub-ba__title {
  margin: 0 0 14px;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 600;
}

.sub-ba__steps {
  margin: 0;
  padding-left: 22px;
  line-height: 1.6;
}

.sub-ba__steps li + li {
  margin-top: 6px;
}

.sub-ba__summary {
  margin: 16px 0 0;
  font-weight: 600;
}

/* ---------- Примеры автоматизации (список «было → стало») ---------- */

.sub-scenarios__label {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 12px;
  background: var(--title-color);
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 600;
}

.sub-scenarios__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-scenario {
  padding: 22px 24px;
  background: var(--white-color);
}

.sub-scenario__title {
  margin: 0 0 14px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 600;
}

.sub-scenario__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.sub-scenario__side {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sub-muted);
}

.sub-scenario__side--after {
  color: var(--title-color);
}

.sub-scenario__tag {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub-muted);
}

.sub-scenario__side--after .sub-scenario__tag {
  color: var(--title-color);
}

.sub-scenario__arrow {
  display: none;
  font-size: 22px;
  color: var(--sub-muted);
}

/* ---------- Выделенный блок ---------- */

.sub-text-blocks--notice .sub-block {
  border: 2px solid var(--title-color);
}

/* ---------- Перекрёстные ссылки ---------- */

.sub-cross {
  padding-top: 0;
}

.sub-cross__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--smoke-color);
  border-radius: var(--sub-radius);
}

.sub-cross__title {
  margin: 0 0 10px;
  font-family: var(--title-font);
  font-size: 22px;
  font-weight: 600;
}

.sub-cross__text {
  margin: 0;
  line-height: 1.6;
  color: var(--sub-muted);
}

.sub-cross__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-cross__links a {
  font-weight: 600;
  color: var(--title-color);
  text-decoration: underline;
}

.sub-cross__links a::after {
  content: " →";
}

/* ---------- Блок связи (виджет сайта) ---------- */

.sub-contact__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sub-contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.sub-contact__hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sub-dark-muted);
}

/* ---------- Ссылка на заказную разработку ---------- */

.sub-custom-dev {
  padding: 28px 0;
  background: var(--smoke-color);
  border-top: 1px solid var(--sub-line);
}

.sub-custom-dev p {
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

.sub-custom-dev a {
  font-weight: 600;
  color: var(--title-color);
  text-decoration: underline;
}

/* ---------- Планшеты ---------- */

@media (min-width: 768px) {
  .sub {
    --sub-space: 88px;
    --sub-gap: 24px;
  }

  .sub-grid--2,
  .sub-grid--3,
  .sub-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sub-paycompare,
  .sub-ba__grid,
  .sub-timeline__list,
  .sub-pricing__terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  /* Таблица — обычная таблица с прокруткой, если колонки не помещаются */
  .sub-table-wrap {
    overflow-x: auto;
  }

  .sub-table thead {
    display: table-header-group;
  }

  .sub-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .sub-table th,
  .sub-table td {
    display: table-cell;
    padding: 16px 18px;
    border-bottom: 1px solid var(--sub-line);
    border-top: 0;
    text-align: left;
    vertical-align: top;
  }

  .sub-table td::before {
    content: none;
  }

  .sub-table thead th {
    font-family: var(--title-font);
    font-size: 15px;
    font-weight: 600;
    background: var(--smoke-color);
  }

  .sub-table th[scope="row"] {
    display: table-cell;
    margin: 0;
    font-size: 15px;
  }

  .sub-table .is-accent {
    background: rgba(227, 255, 4, 0.22);
  }

  .sub-table thead th.is-accent {
    background: var(--theme-color);
  }

  .sub-scenario__pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .sub-scenario__arrow {
    display: block;
    padding-top: 18px;
  }

  .sub-cross__box {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    padding: 36px;
  }
}

/* ---------- Десктоп ---------- */

@media (min-width: 1024px) {
  .sub {
    --sub-space: 112px;
  }

  .sub-hero {
    padding: 168px 0 88px;
  }

  .sub-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
  }

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

  .sub-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sub-timeline__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .sub-industries__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .sub-includes__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
  }

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

  .sub-faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
  }

  .sub-contact__box {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 56px;
  }

  .sub-flow__step:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub *,
  .sub *::before,
  .sub *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.sub-solutions__outro .sub-card__more {
  display: inline;
  margin-top: 0;
}
