/* ============================================================
   Pages: /notion-alternative + /trello-alternative — редизайн 2026.
   Лендинги таск-трекера Глабикс.Летучка. Контент на компонентах кита
   (hero-2026, features-2026, tagline-2026, meet-promo-2026) + page-блоки
   (фичи-сплит, Поток, тарифы, мобильное, светлый FAQ). data-tabs/swiper
   из исходника не используем — вкладки развёрнуты в features-ряды.
   Один файл шарят обе страницы (структура ~идентична). Токены кита.
   ============================================================ */

/* --- Hero blob (фиолетовый, для альтернатив) --- */
.page-alternative .hero-2026 {
  --hero-bg-image: url("/images/contacts/v2/hero-bg.svg");
  --hero-bg-image-sm: url("/images/contacts/v2/hero-bg.svg");
  --hero-bg-image-lg: url("/images/contacts/v2/hero-bg.svg");
}
.page-alternative .hero-2026-gradient {
  left: 35.76%;
  top: 18.71%;
  width: 84.03%;
  height: 87.14%;
  background: linear-gradient(71.76deg, #7359bf 20%, #4191f5 90%);
  opacity: 0.4;
  filter: blur(150px);
}
/* /letuchka — зелёный blob (фирменный цвет Летучки). */
.page-letuchka-home .hero-2026-gradient {
  background: linear-gradient(71.76deg, #4191f5 20%, #5fd47f 90%);
}
/* Hero с typewriter — ограничиваем колонку, чтобы строка не «прыгала». */
.page-letuchka-home .hero-2026--no-media .hero-2026-content {
  @media (min-width: 1024px) {
    max-width: 75%;
  }
}

/* Секция «Счётчик» — gradient-карточка (по образцу promo-gradient-2026). */
.page-letuchka-home .lh-counter {
  position: relative;
  overflow: hidden;
  background: var(--gradient-secondary);
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
  color: var(--brand-white);
}
@media (min-width: 768px) {
  .page-letuchka-home .lh-counter {
    border-radius: 32px;
    padding: 64px 48px;
  }
}
.page-letuchka-home .lh-counter-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("/images/index/v2/hero-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
}
.page-letuchka-home .lh-counter-title {
  position: relative;
  z-index: 1;
  margin: 0 auto 24px;
  max-width: 760px;
  color: var(--brand-white);
}
.page-letuchka-home .lh-counter .btn-2026 {
  position: relative;
  z-index: 1;
}

.alt-section {
  margin: 56px 0;
}
@media (min-width: 768px) {
  .alt-section {
    margin: 72px 0;
  }
}
@media (min-width: 1280px) {
  .alt-section {
    margin: 120px 0;
  }
}
/* Заголовок секции — по центру, отступ снизу как у .features-2026-title. */
.alt-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}
@media (min-width: 768px) {
  .alt-title {
    margin-bottom: 40px;
  }
}
/* Когда дальше идёт подзаголовок — title→subtitle gap сжимается. */
.alt-title:has(+ .alt-subtitle) {
  margin-bottom: 16px;
}
.alt-subtitle {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 760px;
}
@media (min-width: 1024px) {
  .alt-subtitle {
    margin-bottom: 48px;
  }
}
.alt-feature-title {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 4px;
}
.alt-feature-text {
  margin: 0;
  color: var(--text-muted);
}

/* ============================================================
   Letuchka task-blocks (partial _letuchka-task-blocks.html) —
   «задача = база данных». ≥1200px: фичи спозиционированы вокруг
   центральной картинки task-page-arrows.png, стрелки ведут к блокам;
   <1200px — список + картинка без стрелок (task-page.png).
   ============================================================ */
.ltb-stage {
  display: none;
}
.ltb-stack {
  display: block;
}
@media (min-width: 1200px) {
  .ltb-stage {
    display: block;
  }
  .ltb-stack {
    display: none;
  }
}

/* --- Stage (≥1200) --- */
.ltb-stage {
  position: relative;
}
.ltb-figure {
  width: 50%;
  margin: 0 auto;
}
.ltb-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.ltb-block {
  position: absolute;
  width: 25%;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-muted);
}
@media (min-width: 1280px) {
  .ltb-block {
    font-size: 17px;
  }
}
.ltb-block-title {
  margin: 0 0 8px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  color: var(--text-default);
}
.ltb-block-text {
  margin: 0;
}
.ltb-block--1 {
  left: 0;
  top: 13%;
}
.ltb-block--2 {
  left: 0;
  bottom: 13%;
}
.ltb-block--3 {
  right: 0;
  top: 0;
}
.ltb-block--4 {
  right: 0;
  bottom: 42%;
}
.ltb-block--5 {
  right: 0;
  bottom: 13%;
}
/* Action-меню внутри блоков «Конвертация» и «Групповые операции». */
.ltb-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.ltb-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--brand-blue-subdued, #cfe2fb);
  background: var(--surface-card-soft, #f3f3f4);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-default);
  white-space: nowrap;
}
.ltb-action .i {
  flex: 0 0 auto;
  color: var(--brand-blue-strong, #4191f5);
}

/* --- Stack (<1200): список + картинка без стрелок --- */
.ltb-stack-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (min-width: 576px) {
  .ltb-stack-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }
}
.ltb-stack-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
@media (min-width: 768px) {
  .ltb-stack-figure img {
    border-radius: 24px;
  }
}

/* ============================================================
   Letuchka stream-blocks (partial _letuchka-stream-blocks.html) —
   секция «Общайтесь в «Потоке»». ≥1024px: 7 фич спозиционированы
   вокруг центральной ленты stream-1.jpg, цветные полосы выровнены
   по соответствующим частям ленты; <1024px — список + картинка.
   ============================================================ */
.lsb-stage {
  display: none;
}
.lsb-stack {
  display: block;
}
@media (min-width: 1024px) {
  .lsb-stage {
    display: block;
  }
  .lsb-stack {
    display: none;
  }
}

/* --- Stage (≥1024) --- */
.lsb-stage {
  position: relative;
}
.lsb-figure {
  width: 50%;
  margin: 0 auto;
}
.lsb-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.lsb-block {
  position: absolute;
  width: 25%;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-muted);
}
@media (min-width: 1280px) {
  .lsb-block {
    font-size: 17px;
  }
}
.lsb-block-title {
  margin: 0 0 6px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  color: var(--text-default);
}
.lsb-block-text {
  margin: 0;
}
/* Цветная вертикальная полоса у внутреннего края блока. */
.lsb-block::before {
  content: "";
  display: block;
  position: absolute;
  width: 4px;
  top: 0;
  bottom: 0;
}
/* Правая сторона (бар слева, текст с отступом слева). */
.lsb-block--1,
.lsb-block--3,
.lsb-block--5,
.lsb-block--7 {
  right: 0;
  padding-left: 20px;
}
/* Левая сторона (бар справа, текст с отступом справа). */
.lsb-block--2,
.lsb-block--4,
.lsb-block--6 {
  left: 0;
  padding-right: 20px;
}
.lsb-block--1 {
  top: 4%;
}
.lsb-block--1::before {
  left: 2px;
  background-color: var(--palette-common-3);
}
.lsb-block--2 {
  top: 18%;
}
.lsb-block--2::before {
  right: 2px;
  top: -50%;
  bottom: -50%;
  background-color: var(--palette-common-6);
}
.lsb-block--3 {
  top: 37%;
}
.lsb-block--3::before {
  left: 2px;
  top: -50%;
  bottom: -50%;
  background-color: var(--palette-common-9);
}
.lsb-block--4 {
  top: 51%;
}
.lsb-block--4::before {
  right: 2px;
  top: -40%;
  bottom: -40%;
  background-color: var(--palette-common-2);
}
.lsb-block--5 {
  top: 65%;
}
.lsb-block--5::before {
  left: 2px;
  top: -50%;
  bottom: -50%;
  background-color: var(--palette-common-18);
}
.lsb-block--6 {
  bottom: 13%;
}
.lsb-block--6::before {
  right: 2px;
  top: -50%;
  bottom: -50%;
  background-color: var(--palette-common-16);
}
.lsb-block--7 {
  bottom: 0;
}
.lsb-block--7::before {
  left: 2px;
  top: 31%;
  bottom: 5%;
  background-color: var(--palette-common-1);
}

/* --- Stack (<1024): список + картинка --- */
.lsb-stack-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (min-width: 576px) {
  .lsb-stack-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }
}
.lsb-stack-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
@media (min-width: 768px) {
  .lsb-stack-figure img {
    border-radius: 24px;
  }
}

/* --- 4-кол сетка преимуществ + иллюстрация (А ещё Летучка) --- */
.alt-quad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 576px) {
  .alt-quad-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .alt-quad-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
.alt-quad-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
@media (min-width: 768px) {
  .alt-quad-figure img {
    border-radius: 24px;
  }
}

/* /letuchka, секция 2 — карточки преимуществ как .partner-card на
   /partners/amocrm (белые, с границей и тенью). Scoped к letuchka,
   чтобы не задеть .alt-quad-grid внутри results-band на notion/trello. */
.page-letuchka-home .alt-quad-grid > div {
  height: 100%;
  padding: 28px;
  background: var(--brand-white, #fff);
  border: 1px solid var(--surface-card-soft, #f3f3f4);
  border-radius: 16px;
  box-shadow: var(--shadow-xsm);
}
@media (min-width: 1024px) {
  .page-letuchka-home .alt-quad-grid > div {
    padding: 32px;
  }
}

/* «Бесплатно» — общий компонент cta-banner-2026 (--center).
   Telegram-промо — общий компонент promo-gradient-2026. */
/* Иллюстрация Telegram — небольшая иконка, не растягиваем во всю колонку.
   (Карточка «Миграция» (--wide) использует обычную ширину компонента.) */
.page-alternative .promo-gradient-2026-card:not(.promo-gradient-2026-card--wide) .promo-gradient-2026-illust {
  max-width: 180px;
}
@media (max-width: 767px) {
  .page-alternative .promo-gradient-2026-card:not(.promo-gradient-2026-card--wide) .promo-gradient-2026-illust {
    max-width: 140px;
    margin-left: 0;
  }
}
/* «Миграция из Trello» (--wide) — сплошной фон вместо градиента. */
.page-alternative .promo-gradient-2026-card--wide {
  background: var(--palette-common-15);
}

/* --- Мобильное приложение (тёмный блок) --- */
.alt-mobile-card {
  background: var(--gradient-primary);
  color: var(--brand-white, #fff);
  border-radius: 24px;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  overflow: hidden;
}
@media (min-width: 768px) {
  .alt-mobile-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    border-radius: 32px;
    padding: 56px;
  }
}
/* Текстовая колонка остаётся по центру, картинка — к нижнему краю. */
.alt-mobile-card > div {
  align-self: center;
}
.alt-mobile-title {
  margin: 0 0 16px;
  color: var(--brand-white, #fff);
}
.alt-mobile-text {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.85);
}
.alt-mobile-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.alt-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--brand-white, #fff);
  color: var(--brand-black, #111);
}
.alt-store-btn .i {
  font-size: 28px;
}
.alt-store-btn-label {
  text-align: left;
  line-height: 1.1;
}
.alt-store-btn-label small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.alt-store-btn-label strong {
  font-size: 16px;
  font-weight: 700;
}
.alt-mobile-figure {
  align-self: end;
}
.alt-mobile-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -40px;
}
@media (min-width: 768px) {
  .alt-mobile-figure img {
    margin-bottom: -56px;
  }
}

/* FAQ — общий компонент components/faq-2026.css (.faq-2026). */
