/* Страница /amocrm-ai/ — специфика поверх боевой дизайн-системы bitrix24-ai.css.
   Токены только из дизайн-системы; своих цветовых констант не заводим. */

.amo-container {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.amo-section {
  padding: clamp(56px, 7vw, 104px) 0;
  border-top: 1px solid var(--hair);
  background: var(--canvas);
}

.amo-section--surface { background: var(--surface); }
.amo-section--own { background: var(--surface-2); }

.amo-section h2,
.amo-contours h2,
.amo-form-head h2 {
  margin: 14px 0 28px;
  max-width: 26ch;
}

.amo-grid {
  display: grid;
  gap: 16px;
}

.amo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.amo-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- БОЛЬ --- */
.amo-pain { display: grid; gap: 10px; padding: 20px; }
.amo-idx { font-size: 11px; color: var(--faint); }
.amo-pain p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* --- ОПРЕДЕЛЕНИЕ + ТАБЛИЦА --- */
.amo-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.amo-def {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

.amo-table-card { padding: 0; overflow: hidden; }

.amo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.amo-table th,
.amo-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.amo-table thead th {
  background: var(--surface-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.amo-table thead th:last-child { color: var(--brand-ink); }
.amo-table td:first-child { color: var(--muted); white-space: nowrap; }
.amo-table__final td { background: var(--ai-soft); border-bottom: 0; }
.amo-table__final b { color: var(--ai-ink); }

/* --- КАТАЛОГ СЦЕНАРИЕВ --- */
.amo-scn {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.amo-scn:hover {
  border-color: color-mix(in oklch, var(--brand) 38%, var(--hair));
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.amo-scn h3 { margin: 0; font-size: 16.5px; line-height: 1.3; }

.amo-scn__row { display: grid; gap: 3px; font-size: 13px; line-height: 1.5; }

.amo-scn__row b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.amo-scn__row span { color: var(--ink-2); }
.amo-scn__row--result span { color: var(--ok); }

.amo-note { margin-top: 18px; font-size: 11.5px; color: var(--faint); }

/* --- НАШИ РАЗРАБОТКИ --- */
.amo-own {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border-color: color-mix(in oklch, var(--ai) 34%, var(--hair));
  background: linear-gradient(180deg, var(--surface), var(--ai-soft));
}

.amo-own h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.amo-own p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.amo-own__fact {
  padding-top: 9px;
  border-top: 1px solid color-mix(in oklch, var(--ai) 26%, var(--hair));
  font-size: 11px;
  color: var(--ai-ink);
}

/* --- КЕЙС --- */
.amo-case {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.amo-case__copy p { max-width: 56ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.amo-case__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 13.5px;
}

.amo-case__links a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.amo-case__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--hair);
  overflow: hidden;
}

.amo-case__metrics div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface);
}

.amo-case__metrics b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1;
}

.amo-case__metrics span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* --- ПРОЦЕСС --- */
.amo-step { display: grid; gap: 8px; align-content: start; padding: 20px; }
.amo-step .mono { font-size: 11px; color: var(--brand-ink); }
.amo-step h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.amo-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* --- КОНТУРЫ (единственная тёмная секция) --- */
.amo-contours {
  padding: clamp(56px, 7vw, 104px) 0;
  background: linear-gradient(180deg, oklch(0.24 0.03 240), oklch(0.2 0.025 245));
  color: oklch(0.97 0.004 85);
}

.amo-contours .eyebrow { color: oklch(0.78 0.13 78); }
.amo-contours h2 { color: oklch(0.97 0.004 85); }

.amo-contour {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid oklch(0.5 0.02 250 / 0.5);
  border-radius: var(--r-md);
  background: oklch(0.27 0.03 240);
}

.amo-contour--closed {
  border-color: oklch(0.78 0.13 78 / 0.4);
  box-shadow: 0 0 0 1px oklch(0.78 0.13 78 / 0.12);
}

.amo-contour--ru { border-color: oklch(0.55 0.06 240 / 0.55); }

.amo-contour__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.82 0.01 250);
}

.amo-badge {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  white-space: nowrap;
}

.amo-contour--closed .amo-badge { color: oklch(0.8 0.12 78); }
.amo-contour--ru .amo-badge { color: oklch(0.75 0.08 230); }

.amo-contour p { margin: 0; font-size: 14px; line-height: 1.6; color: oklch(0.78 0.012 250); }

.amo-contours__outro {
  max-width: 66ch;
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: oklch(0.82 0.01 250);
}

/* --- FAQ --- */
.amo-faq { width: min(880px, calc(100vw - 48px)); }

.amo-faq details { border-bottom: 1px solid var(--hair); }

.amo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}

.amo-faq summary::-webkit-details-marker { display: none; }

.amo-faq summary::after {
  content: "＋";
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--faint);
}

.amo-faq details[open] summary::after { content: "−"; }

.amo-faq p {
  max-width: 66ch;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* --- ФОРМА --- */
.amo-form-section {
  padding: clamp(56px, 7vw, 104px) 0;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--canvas), var(--surface-2));
  scroll-margin-top: 96px;
}

.amo-form-head { text-align: center; margin-bottom: 26px; }
.amo-form-head h2 { margin-inline: auto; }
.amo-form-head .lead { max-width: 46ch; margin-inline: auto; }

.amo-form,
.amo-form-success {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.amo-form { display: grid; gap: 18px; }

.amo-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.amo-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

.amo-form input[type="text"],
.amo-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hair-dark);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 400;
}

.amo-form input:focus-visible,
.amo-form textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.amo-form__opt { font-weight: 400; color: var(--muted); }

.amo-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
}

.amo-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.amo-req { color: var(--risk); }

.amo-submit {
  min-height: 54px;
  padding: 15px 28px;
  justify-self: start;
  font-size: 15.5px;
}

.amo-form__error {
  margin: 0;
  color: var(--risk);
  font-size: 13.5px;
}

.amo-form-success { display: grid; gap: 10px; justify-items: start; }
.amo-form-success .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.amo-form-success h3 { margin: 0; }

/* --- ФУТЕР --- */
.amo-footer {
  padding: 28px 0;
  border-top: 1px solid var(--hair);
  background: var(--surface-2);
}

.amo-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.amo-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.amo-footer__links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.amo-footer__copy { font-size: 12px; color: var(--faint); }

/* --- АДАПТИВ --- */
@media (max-width: 980px) {
  .amo-hero__grid { grid-template-columns: 1fr; }

  /* сцена складывается в столбец: связи становятся вертикальными */
  .amo-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .amo-flow__col--channels { grid-template-columns: repeat(2, 1fr); }
  .amo-flow__col--channels .amo-flow__label { grid-column: 1 / -1; }

  .amo-flow__link {
    width: 2px;
    height: 20px;
    justify-self: center;
    background-image: linear-gradient(180deg, var(--brand) 0 6px, transparent 6px 13px);
    background-size: 2px 13px;
  }
}

@media (max-width: 640px) {
  .amo-case__metrics { grid-template-columns: 1fr; }
  .amo-submit { justify-self: stretch; }
  .amo-hero__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .amo-scn,
  .amo-scn:hover {
    transform: none;
    transition: none;
  }
}

/* --- КВИЗ --- */
.amo-quiz-wrap { width: min(880px, calc(100vw - 48px)); }
.amo-quiz-lead { max-width: 56ch; margin-bottom: 24px; }

.amo-quiz { padding: 26px; display: grid; gap: 20px; }

.amo-quiz__head { display: grid; gap: 10px; }
.amo-quiz__head .mono { font-size: 11px; color: var(--faint); }

.amo-quiz__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--hair-2);
  overflow: hidden;
}

.amo-quiz__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width .3s ease;
}

.amo-quiz__q { margin: 0 0 16px; font-size: 19px; line-height: 1.3; }

.amo-quiz__opts { display: grid; gap: 9px; }

.amo-quiz__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.amo-quiz__opt:hover { border-color: var(--hair-dark); }

.amo-quiz__opt[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.amo-quiz__opt::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--hair-dark);
  border-radius: 4px;
  background: var(--surface);
}

.amo-quiz__opt[aria-pressed="true"]::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.amo-quiz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.amo-quiz__back {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.amo-quiz__hint { font-size: 11px; color: var(--faint); }

.amo-quiz__next {
  min-height: 46px;
  margin-top: 6px;
  padding: 12px 22px;
  justify-self: start;
}

/* результат */
.amo-quiz__result { display: grid; gap: 14px; }
.amo-quiz__result h3 { margin: 0; font-size: 20px; }

.amo-quiz__picked { display: grid; gap: 9px; }

.amo-quiz__picked article {
  padding: 13px 15px;
  border: 1px solid color-mix(in oklch, var(--brand) 30%, var(--hair));
  border-radius: var(--r-sm);
  background: var(--surface);
}

.amo-quiz__picked strong { display: block; font-size: 15px; margin-bottom: 3px; }
.amo-quiz__picked span { font-size: 13px; color: var(--muted); line-height: 1.45; }

@media (max-width: 640px) {
  .amo-quiz { padding: 18px; }
  .amo-quiz__next { justify-self: stretch; width: 100%; }
}

/* === HERO по хендоффу design_handoff_amocrm_ai === */
.amo-hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(34px, 4vw, 56px);
  background:
    radial-gradient(680px 320px at 12% 0%, color-mix(in oklch, var(--brand) 10%, transparent), transparent 70%),
    radial-gradient(560px 300px at 92% 8%, var(--ai-glow), transparent 68%),
    var(--canvas);
  overflow: hidden;
}

.amo-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 40px;
  align-items: center;
}

.amo-hero h1 {
  margin: 16px 0 18px;
  max-width: 18ch;
}

.amo-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), oklch(0.55 0.14 200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amo-hero .lead { max-width: 48ch; }

.amo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 26px 0 14px;
}

.amo-hero__cta {
  min-height: 50px;
  padding: 14px 22px;
  font-size: 15px;
}

.amo-hero__cta .arr { transition: transform .16s ease; }
.amo-hero__cta:hover .arr { transform: translateX(2px); }

.amo-data-note { font-size: 12px; color: var(--muted); }

/* окно amoCRM */
.amo-scene {
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.amo-scene__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
  font-size: 11px;
  color: var(--faint);
}

.amo-scene__body {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px;
  min-height: 396px; /* фиксируем высоту — без скачка макета */
}

.amo-scene__rail {
  position: absolute;
  left: 30px;
  top: 58px;
  bottom: 96px;
  width: 2px;
  background-image:
    linear-gradient(180deg, transparent, var(--ai) 45%, transparent),
    repeating-linear-gradient(180deg, var(--hair-dark) 0 3px, transparent 3px 8px);
  background-size: 100% 40%, 2px 100%;
  background-repeat: no-repeat, repeat-y;
  background-position: 0 -40%, 0 0;
  animation: amoRail 4.2s linear infinite;
}

@keyframes amoRail {
  to { background-position: 0 140%, 0 0; }
}

.amo-scene__node {
  position: absolute;
  left: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ai);
  box-shadow: 0 0 0 3px var(--ai-glow);
}

.amo-scene__node--brand {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.amo-tier { padding-left: 44px; }

.amo-tier__label {
  display: block;
  margin-bottom: 8px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.amo-tier__label b { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.amo-tier__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.amo-chip {
  padding: 5px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11.5px;
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease;
}

.amo-chip.is-hot {
  border-color: color-mix(in oklch, var(--brand) 45%, var(--hair));
  background: var(--brand-soft);
}

.amo-box {
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
}

.amo-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
  background: var(--surface-2);
  font-size: 10.5px;
  color: var(--muted);
}

.amo-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12px;
}

.amo-box__row--dashed { border-top: 1px dashed var(--hair); }
.amo-box__row b { font-size: 10px; color: var(--faint); font-weight: 500; }
.amo-hot { color: var(--ai-ink) !important; }

.amo-box--deal {
  border-color: color-mix(in oklch, var(--ai) 26%, var(--hair));
  box-shadow: 0 0 0 3px var(--ai-glow);
}

.amo-deal__grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  font-size: 12px;
}

.amo-deal__grid > * { padding: 8px 12px; }
.amo-deal__grid > span { color: var(--faint); font-size: 10px; }
.amo-deal__grid > *:nth-child(n+3) { border-top: 1px dashed var(--hair); }
.amo-deal__grid b { font-weight: 600; }

.amo-deal__filled {
  border-radius: var(--r-xs);
  background: var(--ai-soft);
  transition: background-color .4s ease;
}

.amo-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amo-stages div { display: grid; gap: 5px; }
.amo-stages i { height: 4px; border-radius: 999px; }
.amo-stages span { font-size: 9.5px; color: var(--muted); }

/* полоса ценности */
.amo-trust {
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--surface-2);
}

.amo-trust__inner { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.amo-trust__inner div { display: grid; gap: 3px; }

.amo-trust__inner .mono {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.amo-trust__inner strong { font-size: 14px; font-weight: 650; }

@media (max-width: 640px) {
  .amo-scene__body { min-height: 0; }
  .amo-hero__cta { width: 100%; justify-content: center; }
  .amo-stages { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .amo-scene__rail { animation: none; }
}

/* === КАТАЛОГ по хендоффу === */
.scn-catalog { display: grid; gap: 26px; }

/* входная карточка */
.scn-lead {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px 40px;
  padding: 26px 28px;
  border: 1px solid color-mix(in oklch, var(--brand) 18%, var(--hair));
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.scn-lead__side { display: grid; gap: 10px; align-content: start; }

.scn-lead__top { display: flex; align-items: center; gap: 12px; }
.scn-lead__top .mono { font-size: 11px; color: var(--faint); }
.scn-lead h3 { margin: 0; font-size: 24px; line-height: 1.2; }

.scn-lead p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.scn-lead__res { padding-top: 12px; border-top: 1px dashed var(--hair); }

.scn-lead b.mono,
.scn__open b.mono {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.scn-lead__res b.mono,
.scn__res b.mono { color: var(--ai-ink); }

/* группы */
.scn-group { display: grid; gap: 12px; }

.scn-group__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.scn-group__label i { flex: 1; height: 1px; background: var(--hair); }

.scn-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

/* карточка-раскрытие */
.scn {
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
}

.scn-group--intake .scn { border-top: 2px solid var(--brand); }
.scn-group--deal .scn { border-top: 2px solid var(--ai); }
.scn-group--growth .scn { border-top: 2px solid var(--ink); }

.scn summary {
  display: grid;
  gap: 10px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.scn summary::-webkit-details-marker,
.scn summary::after,
.scn summary::marker { display: none; content: none; }

.scn__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scn__num { font-size: 11px; color: var(--faint); }

.scn h3 { margin: 0; font-size: 18px; font-weight: 680; line-height: 1.25; }
.scn__pain { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.scn__more { font-size: 10.5px; color: var(--brand-ink); }
.scn[open] .scn__more { opacity: 0; }

.scn__open { display: grid; gap: 10px; padding: 0 18px 18px; }
.scn__open p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.scn__res { padding-top: 10px; border-top: 1px dashed var(--hair); }

/* карточка пополняемости — вместо числа сценариев */
.scn-more {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px dashed var(--hair-dark);
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in oklch, var(--surface-2) 70%, transparent) 8px 16px);
}

.scn-more__skeleton { display: grid; gap: 5px; margin-bottom: 4px; }
.scn-more__skeleton i { height: 6px; border-radius: 999px; background: var(--hair-2); }
.scn-more strong { font-size: 13.5px; font-weight: 650; }
.scn-more span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.scn-cross { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.scn-cross a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }

/* === #custom по хендоффу === */
.amo-section--warm {
  background:
    linear-gradient(180deg, var(--ai-soft) 0%, transparent 55%),
    var(--surface-2);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px;
}

.custom {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--hair-dark);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.custom--metric { border-left-color: var(--ai); }

.custom__badge {
  position: absolute;
  top: -9px;
  left: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.custom h3 { margin: 4px 0 0; font-size: 21px; line-height: 1.25; }
.custom p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.custom__fact {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--hair);
}

.custom__num {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.custom__num i {
  margin-left: 4px;
  font-size: 18px;
  font-style: normal;
  color: var(--muted);
}

.custom__note { font-size: 11px; color: var(--faint); }
.custom .small { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* === #case по хендоффу === */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: center;
}

.case-copy h2 { margin: 14px 0 16px; }
.case-copy p { max-width: 54ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.case-links {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--hair);
  font-size: 13.5px;
}

.case-links a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-panel {
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.case-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair);
  background: var(--surface-2);
}

.case-panel__head strong { font-size: 14.5px; }
.case-panel__head .mono { font-size: 10.5px; color: var(--faint); }

.case-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--hair);
}

.case-panel__grid > div {
  display: grid;
  gap: 5px;
  padding: 22px 20px;
  background: var(--surface);
}

.case-num {
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-num i { font-size: 22px; font-style: normal; color: var(--muted); }
.case-num b { color: var(--ai-ink); font-weight: 600; }

.case-cell--ai { background: var(--ai-soft) !important; }
.case-cell--ai .small { color: var(--ai-ink); }

.case-panel__grid .small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }

.case-bars {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-top: 1px solid var(--hair);
}

.case-bars > div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 12px; }
.case-bars .mono { font-size: 10.5px; color: var(--faint); }

.case-bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--hair-2);
  overflow: hidden;
}

.case-bars b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--hair-dark);
}

.case-bars b.is-now { background: var(--ai); }
