/* REGWAY — внедрение и автоматизация amoCRM.
   Подключается после style.css на страницах новой версии сайта (amo_base.html, auth/base.html).
   .amo-page — общие элементы (шапка, подвал), .amo-landing — главная и страницы услуг. */

.amo-page {
  --amo-surface: linear-gradient(165deg, rgba(40, 88, 227, 0.24) 0%, rgba(8, 16, 48, 0.82) 48%, rgba(4, 8, 20, 0.9) 100%);
  --amo-border: rgba(142, 182, 255, 0.2);
  --amo-border-strong: rgba(142, 182, 255, 0.48);
  --amo-icon-bg: rgba(40, 88, 227, 0.32);
  --amo-green: #34d399;
  --amo-green-soft: rgba(52, 211, 153, 0.14);
  --amo-amber: #fcd34d;
  --amo-red-soft: rgba(248, 113, 113, 0.12);
}

.amo-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Шапка ---------- */

.amo-header .header__inner,
.amo-header .mobile-nav {
  width: min(1080px, calc(100vw - 1.25rem));
}

.amo-header .logo__name {
  max-width: none;
}

.amo-header .mobile-nav__cta {
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .amo-header.header--compact .header__inner {
    flex-wrap: nowrap;
  }

  .amo-header.header--compact .header__actions {
    flex: 0 0 auto;
    max-width: none;
    justify-content: flex-end;
  }
}

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

.amo-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--amo-border);
  background: var(--amo-surface);
  box-shadow:
    0 0 0 1px rgba(142, 182, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.48);
}

.amo-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 34%),
    radial-gradient(ellipse 90% 55% at 18% -10%, rgba(142, 182, 255, 0.24), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.amo-surface > * {
  position: relative;
  z-index: 1;
}

.amo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0.42rem 0.95rem 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 182, 255, 0.35);
  background: rgba(40, 88, 227, 0.28);
  box-shadow: 0 0 22px rgba(40, 88, 227, 0.28);
  color: #d7e6ff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.amo-badge:hover {
  border-color: var(--amo-border-strong);
  background: rgba(40, 88, 227, 0.4);
}

.amo-badge .amo-icon {
  color: var(--amo-green);
}

.amo-badge--sm {
  margin: 0;
  padding: 0.32rem 0.8rem 0.32rem 0.6rem;
  font-size: 0.78rem;
}

.amo-service__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  border: 1px solid rgba(142, 182, 255, 0.3);
  background: var(--amo-icon-bg);
  color: #d7e6ff;
}

.amo-checklist {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 1.8rem;
  list-style: none;
}

.amo-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.amo-checklist .amo-icon {
  margin-top: 0.15rem;
  color: var(--amo-green);
}

.amo-checklist--compact {
  gap: 0.55rem;
  margin: 0.9rem 0 1.1rem;
  font-size: 0.92rem;
}

.amo-section-link {
  margin-top: 1.6rem;
}

.amo-section-link a,
.amo-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
}

.amo-section-link a:hover,
.amo-inline-link:hover {
  color: #ffffff;
}

/* ---------- Заголовки секций ---------- */

.amo-landing .section__head {
  max-width: 46rem;
  margin: 0 0 2.6rem;
  text-align: left;
}

.amo-landing .home-band--center .section__head {
  margin-inline: auto;
  text-align: center;
}

.amo-landing .section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  max-width: none;
}

.section__head--split > div {
  max-width: 36rem;
}

.section__head--split .section__desc {
  max-width: 28rem;
  margin: 0;
}

.amo-landing .cases {
  justify-content: flex-start;
}

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

.amo-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-stack-h) + 3.5rem) 0 4.5rem;
}

.amo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.amo-hero__title {
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.amo-hero__lead {
  max-width: 28rem;
  margin-bottom: 1.6rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.amo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.amo-hero__actions .btn {
  min-width: 11rem;
}

.amo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  margin-top: 1.7rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.amo-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.amo-trust .amo-icon {
  color: var(--amo-green);
}

/* Макет воронки amoCRM на первом экране */

.amo-hero__visual {
  position: relative;
  min-width: 0;
}

.amo-board {
  position: relative;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(142, 182, 255, 0.28);
  background: linear-gradient(160deg, rgba(20, 40, 110, 0.78), rgba(6, 12, 32, 0.94));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(40, 88, 227, 0.24);
}

.amo-board__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.35rem 0.85rem;
  border-bottom: 1px solid rgba(142, 182, 255, 0.14);
  font-size: 0.85rem;
}

.amo-board__dots {
  display: inline-flex;
  gap: 6px;
}

.amo-board__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f87171;
}

.amo-board__dots i:nth-child(2) {
  background: #fbbf24;
}

.amo-board__dots i:nth-child(3) {
  background: #34d399;
}

.amo-board__title {
  font-weight: 600;
}

.amo-board__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: var(--amo-green);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.amo-board__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.amo-board__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.amo-board__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.amo-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.38rem 0.4rem;
  border-top: 2px solid var(--col, #8eb6ff);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.25;
}

.amo-board__head span {
  min-width: 0;
}

.amo-board__head b {
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 500;
}

.amo-deal {
  padding: 0.6rem 0.6rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(142, 182, 255, 0.16);
  background: rgba(8, 16, 48, 0.86);
  font-size: 0.74rem;
  line-height: 1.35;
}

.amo-deal strong {
  display: block;
  margin: 0.32rem 0 0.15rem;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amo-deal__src {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(40, 88, 227, 0.36);
  color: #d7e6ff;
  font-size: 0.63rem;
  font-weight: 600;
}

.amo-deal__src--wa,
.amo-deal__src--won {
  background: var(--amo-green-soft);
  color: #6ee7b7;
}

.amo-deal__src--tg {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.amo-deal__src--call {
  background: rgba(251, 191, 36, 0.16);
  color: var(--amo-amber);
}

.amo-deal__meta {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amo-deal--new {
  border-color: rgba(142, 182, 255, 0.55);
  animation: amo-deal-pulse 3.2s ease-in-out infinite;
}

.amo-board__col--won .amo-deal {
  border-color: rgba(52, 211, 153, 0.35);
}

.amo-toast {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(142, 182, 255, 0.3);
  background: rgba(6, 12, 32, 0.95);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.amo-toast .amo-icon {
  color: var(--amo-green);
}

/* Уведомления заходят только на внешний отступ доски и не закрывают колонки */
.amo-toast--1 {
  bottom: -2rem;
  left: -1.2rem;
  animation: amo-float 6s ease-in-out infinite;
}

.amo-toast--2 {
  top: -2rem;
  right: 1.25rem;
  animation: amo-float 6s ease-in-out 3s infinite;
}

@keyframes amo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes amo-deal-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(142, 182, 255, 0.2), 0 0 16px rgba(40, 88, 227, 0.32); }
  50% { box-shadow: 0 0 0 1px rgba(142, 182, 255, 0.45), 0 0 30px rgba(40, 88, 227, 0.6); }
}

/* ---------- Боли ---------- */

.amo-pains__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.amo-pain {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.35rem;
}

.amo-pain__icon,
.amo-pains__answer-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: var(--amo-red-soft);
  color: #fca5a5;
}

.amo-pain p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.amo-pains__answer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.4rem 1.5rem;
  border-color: rgba(52, 211, 153, 0.3);
}

.amo-pains__answer-icon {
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--amo-green-soft);
  color: #6ee7b7;
}

.amo-pains__answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.amo-pains__answer strong {
  color: #ffffff;
}

/* ---------- Услуги ---------- */

.amo-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.amo-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.5rem 1.35rem 1.35rem;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.amo-service:hover,
.amo-service:focus-visible {
  transform: translateY(-4px);
  border-color: var(--amo-border-strong);
  outline: none;
}

.amo-service .amo-service__icon {
  margin-bottom: 0.35rem;
}

.amo-service h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.amo-service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.amo-service__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.amo-service--cta {
  border: 1px dashed rgba(142, 182, 255, 0.4);
  border-radius: 20px;
  background: rgba(40, 88, 227, 0.12);
}

/* ---------- Сценарии автоматизации ---------- */

.amo-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.amo-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
}

.amo-rule__label {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--amo-amber);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amo-rule__label--then {
  background: var(--amo-green-soft);
  color: #6ee7b7;
}

.amo-rule p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.amo-rule__if p {
  font-weight: 600;
}

.amo-rule__then p {
  color: rgba(230, 238, 255, 0.86);
}

.amo-rule__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--amo-icon-bg);
  color: #d7e6ff;
}

/* ---------- Интеграции ---------- */

.amo-integrations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.amo-int {
  padding: 1.35rem 1.35rem 1.45rem;
}

.amo-int h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
  font-size: 1.05rem;
}

.amo-int__icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  background: var(--amo-icon-bg);
  color: #d7e6ff;
}

.amo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.amo-chip {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 182, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e6eeff;
  font-size: 0.82rem;
}

.amo-api-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
}

.amo-api-note > .amo-icon {
  color: var(--accent);
}

.amo-api-note p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.amo-api-note strong {
  color: #ffffff;
}

.amo-api-note .btn {
  flex-shrink: 0;
}

/* ---------- Блоки «текст + иллюстрация» ---------- */

.amo-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.amo-split__text h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.amo-split__visual {
  min-width: 0;
}

/* Карточка сделки с виджетом */

.amo-cardmock {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(142, 182, 255, 0.28);
  background: linear-gradient(160deg, rgba(20, 40, 110, 0.72), rgba(6, 12, 32, 0.95));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(40, 88, 227, 0.2);
}

.amo-cardmock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(142, 182, 255, 0.14);
}

.amo-cardmock__head strong {
  font-size: 1rem;
}

.amo-cardmock__stage {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--amo-amber);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.amo-cardmock__body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.3rem;
}

.amo-cardmock__fields {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.amo-cardmock__fields dt {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amo-cardmock__fields dd {
  font-size: 0.92rem;
  font-weight: 500;
}

.amo-cardmock__widget {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(142, 182, 255, 0.32);
  background: rgba(40, 88, 227, 0.16);
}

.amo-cardmock__widget-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  color: #d7e6ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.amo-cardmock__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(142, 182, 255, 0.18);
  font-size: 0.8rem;
}

.amo-cardmock__row span {
  color: var(--text-muted);
}

.amo-cardmock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.amo-cardmock__btn {
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  background: var(--gradient-btn);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
}

.amo-cardmock__btn--ghost {
  border: 1px solid rgba(142, 182, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Партнёрство ---------- */

.amo-partner-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.amo-partner-facts div {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(142, 182, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.amo-partner-facts dt {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.amo-partner-facts dd {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.amo-certificate {
  max-width: 100%;
  margin: 0;
}

/* ---------- Этапы ---------- */

.amo-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.amo-steps::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  left: 1.5rem;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(142, 182, 255, 0.55), rgba(183, 62, 194, 0.45));
}

.amo-step {
  position: relative;
  z-index: 1;
}

.amo-step__num {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gradient-btn);
  box-shadow:
    0 0 0 6px rgba(4, 8, 20, 0.92),
    0 0 24px rgba(40, 88, 227, 0.55);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.amo-step h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.amo-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Преимущества ---------- */

.amo-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.amo-why__item {
  padding: 1.5rem 1.35rem;
}

.amo-why__item h3 {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.amo-why__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Заявка ---------- */

.amo-contact__alt {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

.amo-contact__alt a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Страницы услуг ---------- */

.amo-page-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-stack-h) + 2.5rem) 0 3.5rem;
}

.amo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.amo-crumbs a:hover,
.amo-crumbs [aria-current="page"] {
  color: #ffffff;
}

.amo-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.amo-page-hero__title {
  margin-bottom: 1.2rem;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.amo-page-hero__aside {
  padding: 1.6rem 1.5rem;
}

.amo-page-hero__aside-title {
  margin: 0.95rem 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.amo-includes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.amo-include {
  padding: 1.45rem 1.35rem;
}

.amo-include__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.amo-include h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.08rem;
}

.amo-include p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Подвал ---------- */

.amo-page .amo-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(142, 182, 255, 0.14);
  background: linear-gradient(180deg, transparent, rgba(4, 8, 20, 0.7));
}

.amo-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.amo-footer .amo-footer__about {
  max-width: 22rem;
  margin: 1rem 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.amo-footer .amo-footer__title {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amo-footer__col ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.amo-footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(230, 238, 255, 0.86);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.amo-footer__col a:hover {
  color: #ffffff;
}

.amo-footer__col .amo-footer__cta {
  margin-top: 1.1rem;
  color: #ffffff;
}

.amo-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(142, 182, 255, 0.12);
}

.amo-footer .footer__legal {
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .amo-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .amo-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.75rem;
  }

  .amo-steps::before {
    display: none;
  }
}

@media (max-width: 960px) {
  .amo-hero {
    padding-top: calc(var(--header-stack-h) + 2rem);
  }

  .amo-hero__grid,
  .amo-split,
  .amo-page-hero__grid {
    grid-template-columns: 1fr;
  }

  .amo-hero__visual {
    max-width: 640px;
  }

  .amo-rules {
    grid-template-columns: 1fr;
  }

  .amo-integrations,
  .amo-includes,
  .amo-services--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .amo-hero__actions .btn {
    width: 100%;
  }

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

  .amo-toast {
    position: static;
    margin-top: 0.6rem;
    white-space: normal;
    animation: none;
  }

  .amo-pains__grid,
  .amo-services,
  .amo-services--3,
  .amo-integrations,
  .amo-includes,
  .amo-why,
  .amo-partner-facts,
  .amo-footer__grid {
    grid-template-columns: 1fr;
  }

  .amo-rule {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .amo-rule__arrow {
    transform: rotate(90deg);
  }

  .amo-api-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .amo-cardmock__body {
    grid-template-columns: 1fr;
  }

  .amo-steps {
    grid-template-columns: 1fr;
  }

  .amo-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
  }

  .amo-step__num {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amo-deal--new,
  .amo-toast,
  .amo-board__live::before {
    animation: none;
  }
}
