/* Компоненты страниц-подробностей (features/*.html). Подключается вместе со styles.css.
   Базовые токены, кнопки, шапка, футер, .why, .cta берутся из styles.css. */

/* Акцент конкретной фича-страницы (переопределяем только внутри контента, шапка остаётся синей).
   Цвета из палитры групп модулей дизайн-системы. */
.feature-accent--antivirus {
  --accent: #e07070; /* module-moderate на тёмном фоне */
  --accent-soft: rgba(197, 58, 58, 0.16);
}

.feature-accent--analytics {
  --accent: #4fc7bd; /* module-channels/бирюза */
  --accent-soft: rgba(22, 139, 130, 0.16);
}

/* Секция-полоса: выделяет «главу» на странице */
.section--band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* Хлебные крошки */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--text);
}

/* Редакторский герой: текст слева, изображение в рамке справа */
.feature-hero {
  padding-block: 40px 48px;
  border-bottom: 1px solid var(--border);
}

.feature-hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature-hero__title {
  font-size: 34px;
}

.feature-hero__lead {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 18px;
}

.feature-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}

.feature-tags li {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.feature-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* «Телеграм-фрейм» вокруг изображения: шапка чата бота + картинка */
.tg-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-solid);
  box-shadow: var(--shadow-card);
}

.tg-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.tg-frame__ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
}

.tg-frame__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tg-frame__meta b {
  font-size: 14px;
}

.tg-frame__meta small {
  font-size: 12px;
  color: var(--success);
}

.feature-hero__media img {
  width: 100%;
  display: block;
}

/* Ряд ключевых пунктов (что делает) */
.points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.points li:hover {
  border-color: var(--border-strong);
}

.points svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 1px;
}

/* Шаги «как работает» с номерным бейджем */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.step:hover {
  border-color: var(--border-strong);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 16px;
}

.step__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.step__text {
  color: var(--text-muted);
  font-size: 15px;
}

/* FAQ на нативных <details> */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: border-color 0.2s ease;
}

.faq__item:hover {
  border-color: var(--border-strong);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-weight: 600;
}

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

.faq__item summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__answer {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Нижняя навигация «назад к возможностям» */
.feature-nav {
  border-top: 1px solid var(--border);
}

.feature-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
}

.feature-nav__back:hover {
  color: var(--text);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-hero {
    padding-block: 56px 72px;
  }

  .feature-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .feature-hero__title {
    font-size: 44px;
  }

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

  /* Таймлайн: тонкая линия соединяет номера шагов в один ряд */
  .step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 44px;
    left: -18px;
    width: 18px;
    height: 1px;
    background: var(--border-strong);
  }
}
