/* ============================================================
   style.css — bot-24.ru
   Все стили сайта в одном файле, по блокам.
   Брейкпоинт: 861px (мобайл → десктоп)
   Префикс классов: b24-
   ============================================================ */


/* ============================================================
   СБРОС И БАЗОВЫЕ ПРАВИЛА
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; }

/* отступ под фиксированную шапку при переходе по якорям */
section[id] {
  scroll-margin-top: 66px;
}

@media (min-width: 861px) {
  section[id] {
    scroll-margin-top: 72px;
  }
}


/* ============================================================
   DESIGN TOKENS — цветовые переменные всего сайта
   ============================================================ */

:root {
  --bg:            #0b0f1a;   /* основной тёмный фон */
  --bg-deep:       #05070d;   /* самый тёмный (hero, nav) */
  --text-primary:  #f3f1ea;   /* почти белый — заголовки и светлые секции */
  --text-muted:    #a9b2c3;   /* приглушённый — подписи, вторичный текст */
  --accent:        #4f8cf0;   /* синий акцент — кнопки, иконки, ссылки */
  --lowpower:      #f5c542;   /* жёлтый — CTA-кнопка */
  --bubble-client: #171c29;   /* пузырь клиента (тёмный) */
  --bubble-bot:    #4f8cf0;   /* пузырь бота (синий) */
}


/* ============================================================
   ПЕРЕИСПОЛЬЗУЕМЫЕ КОМПОНЕНТЫ
   ============================================================ */

/* --- CTA-кнопка (жёлтая) --- */
.b24-cta {
  display: inline-flex;
  background: var(--lowpower);
  color: #1a1400;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.68rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

@media (min-width: 861px) {
  .b24-cta {
    font-size: 1.02rem;
    padding: 0.9rem 1.9rem;
  }
}


/* ============================================================
   МОКАП ТЕЛЕФОНА (iPhone-стиль)
   Используется в hero и как декоративный элемент
   ============================================================ */

.b24-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 340px;
}

/* синий ореол свечения позади телефона */
.b24-phone-wrap::before {
  content: "";
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
}

/* корпус телефона */
.b24-phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  flex-shrink: 0;
  background: linear-gradient(155deg, #2c2e33 0%, #17181b 55%, #0c0d0f 100%);
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* кнопка питания (справа) */
.b24-phone-frame::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 110px;
  width: 3px;
  height: 60px;
  background: #1a1b1e;
  border-radius: 2px 0 0 2px;
}

/* кнопки громкости (слева) */
.b24-phone-frame::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 90px;
  width: 3px;
  height: 40px;
  background: #1a1b1e;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 56px 0 #1a1b1e;
}

/* экран */
.b24-phone {
  position: relative;
  width: 100%;
  height: 620px;
  background: #0a0e18;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Golos Text', sans-serif;
}

/* динамический островок */
.b24-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

/* строка статуса */
.b24-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.3rem 0.25rem;
  font-size: 0.72rem;
  color: var(--text-primary);
  font-weight: 500;
  font-family: 'Golos Text', sans-serif;
}

.b24-status-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.b24-signal { letter-spacing: -1px; }
.b24-battery { width: 22px; height: 11px; }

/* шапка чата внутри телефона */
.b24-chat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(243,241,234,0.08);
}

.b24-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600; font-size: 0.72rem; color: #fff;
}

.b24-avatar--drop svg { width: 18px; height: 18px; display: block; }

.b24-chat-header .b24-name   { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--text-primary); }
.b24-chat-header .b24-status { font-size: 0.68rem; color: var(--accent); margin-top: 1px; font-family: 'Golos Text', sans-serif; }

/* область сообщений */
.b24-messages {
  flex: 1;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;    /* автопрокрутка — ручная прокрутка отключена */
}

.b24-messages-track {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  width: 100%;
}

/* Выравнивание сторон — через text-align, без flexbox
   (flexbox justify-content ломался на живом сайте) */
.b24-client { text-align: left !important; }
.b24-bot    { text-align: right !important; }

/* внутренняя обёртка реплики — inline-block, чтобы text-align её позиционировал */
.b24-msg-row > div {
  display: inline-block;
  text-align: left;
  max-width: 84%;
}

/* пузырь реплики */
.b24-bubble {
  padding: 0.52rem 0.75rem;
  border-radius: 14px;
  font-size: 0.75rem;
  line-height: 1.36;
  font-family: 'Golos Text', sans-serif;
}

.b24-msg-row.b24-client .b24-bubble { background: var(--bubble-client); color: var(--text-primary); border-bottom-left-radius: 4px; }
.b24-msg-row.b24-bot    .b24-bubble { background: var(--bubble-bot);    color: #fff;                border-bottom-right-radius: 4px; }

/* плашка прикреплённого файла */
.b24-file-chip {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-family: 'Golos Text', sans-serif;
  color: var(--text-primary);
}

.b24-file-chip .b24-file-icon {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent);
  flex-shrink: 0;
}

/* иконка PDF внутри чипа */
.b24-file-chip .b24-pdf-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.b24-msg-time { font-size: 0.58rem; color: var(--text-muted); margin-top: 2px; display: block; font-family: 'Golos Text', sans-serif; }

/* индикатор "печатает…" */
.b24-typing-bubble {
  background: var(--bubble-bot);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 0.55rem 0.78rem;
  display: inline-flex;
  gap: 4px;
}

.b24-typing-bubble span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: blink 1.1s infinite ease-in-out;
}

.b24-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.b24-typing-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-2px); }
}

/* десктоп: увеличиваем телефон и шрифты */
@media (min-width: 861px) {
  .b24-phone-frame { max-width: 360px; }
  .b24-phone       { height: 640px; }
  .b24-status-bar  { padding: 1rem 1.3rem 0.3rem; font-size: 0.78rem; }
  .b24-chat-header { padding: 0.5rem 1.3rem 0.9rem; gap: 0.65rem; }
  .b24-avatar      { width: 34px; height: 34px; font-size: 0.8rem; }
  .b24-chat-header .b24-name   { font-size: 0.88rem; }
  .b24-chat-header .b24-status { font-size: 0.72rem; }
  .b24-messages    { padding: 0.9rem 1rem; gap: 0.55rem; }
  .b24-bubble      { font-size: 0.82rem; padding: 0.6rem 0.85rem; }
  .b24-file-chip   { font-size: 0.76rem; }
}


/* ============================================================
   BLOCK-00: NAV — фиксированная шапка + мобильное меню
   ============================================================ */

.b24-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
  background: radial-gradient(200% 400% at 18% -120%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
  padding: 1rem 5vw;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

/* точечная текстура зерна поверх градиента */
.b24-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-nav-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
}

.b24-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.b24-nav-logo-img {
  height: 28px;
  width: auto;
}

@media (min-width: 861px) {
  .b24-nav-logo-img { height: 32px; }
}

/* спейсер компенсирует высоту фиксированной шапки */
.b24-nav-spacer {
  height: 62px;
  background: var(--bg);
}

/* десктопные ссылки — скрыты на мобайле */
.b24-nav-links { display: none; }
.b24-nav-cta   { display: none; }
.b24-nav-phone { display: none; }

/* бургер-кнопка (мобайл) */
.b24-nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.b24-nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.b24-nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.b24-nav-burger.open span:nth-child(2) { opacity: 0; }
.b24-nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное выпадающее меню (drawer) */
.b24-nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: 78vw;
  max-width: 320px;
  height: 100vh;
  background: radial-gradient(130% 110% at 18% 25%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
  box-shadow: none;
  padding: 5.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transform: translateX(100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 99;
  overflow: hidden;
}

.b24-nav-mobile.open {
  box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.b24-nav-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-nav-mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.b24-nav-mobile-phone {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  text-decoration: none;
}
.b24-nav-mobile-phone:hover { color: var(--accent) !important; }

.b24-nav-mobile-messengers {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.b24-nav-mobile-messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  flex-shrink: 0;
}

.b24-nav-mobile-messengers a img {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 8px;
}

.b24-nav-mobile.open { transform: translateX(0); }

.b24-nav-mobile a.b24-nav-mobile-phone {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}

.b24-nav-mobile a {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

/* полупрозрачный оверлей позади drawer */
.b24-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.b24-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 861px) {
  .b24-nav         { padding: 1.1rem 5vw; }
  .b24-nav-spacer  { height: 68px; }

  .b24-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .b24-nav-links a {
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
  }
  .b24-nav-links a:hover { color: var(--text-primary); }

  .b24-nav-phone {
    display: inline-block;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
  }
  .b24-nav-phone:hover { color: var(--lowpower); }

  .b24-nav-burger,
  .b24-nav-mobile,
  .b24-nav-overlay { display: none; }
}


/* ============================================================
   BLOCK-01: HERO — первый экран с мокапом телефона
   ============================================================ */

.b24-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.1rem;
  padding: 4.2rem 5vw 2rem;
  overflow: hidden;
  background: radial-gradient(130% 110% at 18% 25%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
}

.b24-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.b24-hero-text { max-width: 100%; font-family: 'Golos Text', sans-serif; }

.b24-hero-text h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.18;
  color: var(--text-primary);
  max-width: 14ch;
}

.b24-hero-text h1 .b24-nowrap        { white-space: nowrap; }
.b24-hero-text h1 .b24-desktop-break { display: none; }

.b24-hero-text p {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.48;
  color: var(--text-muted);
  max-width: 100%;
}

.b24-hero-text .b24-cta { margin-top: 1.1rem; }

/* таймлайн-анимация диалога: JS переключает классы .mounted / .show */
.b24-msg-row, .b24-typing-row { display: none; }

.b24-msg-row.mounted,
.b24-typing-row.mounted {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.b24-msg-row.mounted.show,
.b24-typing-row.mounted.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 861px) {
  .b24-hero {
    min-height: 100vh;
    justify-content: center;
    padding: 3rem 5vw;
  }

  .b24-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
    gap: 4rem;
    flex-wrap: wrap;
  }

  .b24-hero-text {
    max-width: 600px;
    flex: 1 1 480px;
  }

  .b24-hero-text h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.6rem);
    max-width: none;
  }

  .b24-hero-text h1 .b24-desktop-break { display: block; }

  .b24-hero-text p {
    margin-top: 1.6rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    max-width: 42ch;
  }

  .b24-hero-text .b24-cta { margin-top: 2rem; }
}


/* ============================================================
   BLOCK-02: PAIN — светлый блок "бот не спит"
   ============================================================ */

.b24-pain {
  background: var(--text-primary);
  color: var(--bg-deep);
  padding: 3.5rem 5vw;
}

.b24-pain-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.b24-pain-img { order: -1; align-self: center; }

.b24-pain-text {
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
  max-width: 52ch;
}

.b24-pain-text .b24-pain-parabreak {
  content: "";
  display: block;
  margin-top: 0.9em;
}

.b24-pain-text .b24-pain-break { display: none; }

.b24-pain-img {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

@media (min-width: 861px) {
  .b24-pain { padding: 5rem 5vw; }

  .b24-pain-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
  }

  .b24-pain-text {
    font-size: 1.6rem;
    max-width: 48ch;
  }

  .b24-pain-text .b24-pain-break { display: inline; }

  .b24-pain-img { width: 280px; order: -1; }
}


/* ============================================================
   BLOCK-03: FEATURES — что умеет бот (6 пунктов)
   ============================================================ */

.b24-features {
  position: relative;
  background: radial-gradient(130% 110% at 18% 25%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
  padding: 3.5rem 5vw;
  overflow: hidden;
}

.b24-features::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-features-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.b24-features-intro {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.b24-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
}

.b24-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Golos Text', sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* SVG-галочка в синем круге */
.b24-features-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
}

@media (min-width: 861px) {
  .b24-features { padding: 5rem 5vw; }

  .b24-features-intro {
    font-size: 1.45rem;
    margin-bottom: 2.6rem;
  }

  .b24-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 3rem;
  }

  .b24-features-list li { font-size: 1.1rem; }
}


/* ============================================================
   BLOCK-04: CASE — кейс водоочистки
   ============================================================ */

.b24-case {
  background: var(--text-primary);
  color: var(--bg-deep);
  padding: 3.5rem 5vw;
}

.b24-case-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.b24-case-label {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.b24-case-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  max-width: 20ch;
}

.b24-case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2.2rem;
}
.b24-case-link:hover { text-decoration: underline; }
.b24-case-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.b24-case-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.b24-case-item h3 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.b24-case-item p {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: #3a3f4a;
}

@media (min-width: 861px) {
  .b24-case { padding: 5rem 5vw; }

  .b24-case-title {
    font-size: 2.2rem;
    max-width: 28ch;
  }

  .b24-case-grid {
    flex-direction: row;
    gap: 3rem;
  }

  .b24-case-item { flex: 1; }
}


/* ============================================================
   BLOCK-05: POSSIBILITIES — возможности сервиса (8 пунктов)
   ============================================================ */

.b24-poss {
  position: relative;
  background: radial-gradient(130% 110% at 18% 25%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
  padding: 3.5rem 5vw;
  overflow: hidden;
}

.b24-poss::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-poss-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.b24-poss-label {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.b24-poss-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 20ch;
}

.b24-poss-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.b24-poss-item strong {
  display: block;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.b24-poss-item span {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/*
  Стили строки логотипов — отключены, оставлены на будущее.
  .b24-poss-logostrip { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; ... }
  .b24-poss-logostrip img { height: 22px; opacity: 0.9; }
*/

@media (min-width: 861px) {
  .b24-poss { padding: 5rem 5vw; }

  .b24-poss-title {
    font-size: 2rem;
    max-width: 24ch;
  }

  .b24-poss-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 3rem;
  }
}


/* ============================================================
   BLOCK-06: STEPS — этапы работы (таймлайн)
   ============================================================ */

.b24-steps {
  background: var(--text-primary);
  color: var(--bg-deep);
  padding: 3.5rem 5vw;
}

.b24-steps-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.b24-steps-label {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.b24-steps-list {
  display: flex;
  flex-direction: column;
}

.b24-step {
  position: relative;
  padding-left: 3.6rem;
  padding-bottom: 2.6rem;
}

.b24-step:last-child { padding-bottom: 0; }

/* вертикальная линия между шагами (мобайл) */
.b24-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 2.6rem;
  bottom: 0.2rem;
  width: 2px;
  background: rgba(11, 15, 26, 0.15);
}

.b24-step-num {
  position: absolute;
  left: 0; top: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1;
}

.b24-step-title {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.b24-step-text {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #3a3f4a;
  max-width: 46ch;
}

@media (min-width: 861px) {
  .b24-steps { padding: 5rem 5vw; }

  .b24-steps-list {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .b24-step {
    flex: 1;
    padding-left: 0;
    padding-bottom: 0;
    padding-top: 3.2rem;
  }

  .b24-step-num {
    position: static;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  /* горизонтальная линия между колонками */
  .b24-step:not(:last-child)::after {
    position: absolute;
    left: 0;
    top: 1.3rem;
    bottom: auto;
    width: calc(100% + 2.5rem);
    height: 2px;
  }
}


/* ============================================================
   BLOCK-07: ABOUT — раздел "Зачем всё это"
   ============================================================ */

.b24-about {
  position: relative;
  background: radial-gradient(130% 110% at 18% 25%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
  padding: 3.5rem 5vw;
  overflow: hidden;
}

.b24-about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-about-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.b24-about-label {
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
}

.b24-about-text {
  font-family: 'Golos Text', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 100%;
}

.b24-about-text p + p { margin-top: 1.1rem; }

.b24-about-signature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.b24-about-signature img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.b24-about-signature span {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

@media (min-width: 861px) {
  .b24-about { padding: 5rem 5vw; }
  .b24-about-text { font-size: 1.2rem; }
}


/* ============================================================
   BLOCK-08: CONTACT — форма связи + демо-чат
   ============================================================ */

.b24-contact {
  background: var(--text-primary);
  color: var(--bg-deep);
  padding: 3.5rem 5vw;
}

.b24-contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.b24-contact-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.25;
  max-width: 16ch;
}

.b24-contact-legal {
  font-family: 'Golos Text', sans-serif;
  font-size: 0.95rem;
  opacity: 0.75;
  margin-top: 1.6rem;
  line-height: 1.5;
}

.b24-contact-phone {
  display: block;
  margin-top: 1.2rem;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: inherit;
  text-decoration: none;
}
.b24-contact-phone:hover { text-decoration: underline; }

.b24-contact-messengers {
  display: flex;
  gap: 0.9rem;
  margin-top: 1rem;
}

.b24-contact-messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(79, 140, 240, 0.12);
}

.b24-contact-messengers img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

@media (min-width: 861px) {
  .b24-contact-messengers a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .b24-contact-messengers img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
}

/* прямоугольное окно демо-чата (без рамки телефона) */
.b24-contact-chatbox {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -10px rgba(11,15,26,0.35), 0 10px 25px -5px rgba(11,15,26,0.2);
}

/* переопределения под светлый фон чатбокса */
.b24-contact-chatbox .b24-chat-header              { border-bottom-color: rgba(11,15,26,0.08); }
.b24-contact-chatbox .b24-name                     { color: #0b0f1a; }
.b24-contact-chatbox .b24-contact-chat-input       { border-top-color: rgba(11,15,26,0.08); }
.b24-contact-chatbox .b24-contact-chat-input input { background: rgba(11,15,26,0.05); color: #0b0f1a; }
.b24-contact-chatbox .b24-msg-row.b24-client .b24-bubble         { background: rgba(11,15,26,0.07); color: #0b0f1a; }
.b24-contact-chatbox .b24-msg-row.b24-client .b24-msg-time,
.b24-contact-chatbox .b24-msg-row.b24-bot    .b24-msg-time       { color: rgba(11,15,26,0.5); }
.b24-contact-chatbox .b24-contact-chat-welcome p   { color: rgba(11,15,26,0.55); }

.b24-contact-chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
}

.b24-contact-chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
}

.b24-contact-chat-welcome p {
  font-family: 'Golos Text', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 22ch;
}

.b24-contact-chat-welcome .b24-contact-chat-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  width: auto;
}

.b24-contact-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.9rem 0.7rem;
}

.b24-contact-chat-quick button {
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: 'Golos Text', sans-serif;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  cursor: pointer;
  width: fit-content;
}

.b24-contact-chat-quick button:hover { background: #6ba0f4; }

.b24-contact-chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid rgba(243,241,234,0.08);
}

.b24-contact-chat-input input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 20px;
  padding: 0.6rem 0.9rem;
  font-family: 'Golos Text', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
}

.b24-contact-chat-input input::placeholder { color: var(--text-muted); }

.b24-contact-chat-input button {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  min-width: 36px; min-height: 36px;
  box-sizing: border-box;
  padding: 0; margin: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

@media (min-width: 861px) {
  .b24-contact { padding: 5rem 5vw; }

  .b24-contact-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .b24-contact-title {
    font-size: 2.3rem;
    max-width: 14ch;
  }

  .b24-contact-left { flex: 1 1 400px; }
}

.b24-contact-privacy {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: 'Golos Text', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
}
.b24-contact-privacy:hover { color: var(--text-primary); }


/* ── FOOTER ── */
.b24-footer {
  position: relative;
  padding: 2.5rem 5vw;
  overflow: hidden;
  background: radial-gradient(130% 110% at 18% 25%, #1c2740 0%, #10162a 45%, var(--bg-deep) 80%);
}

.b24-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

.b24-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.b24-footer-logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}
.b24-footer-logo span { color: var(--accent); }
.b24-footer-logo:hover { color: var(--accent); }

.b24-footer-slogan {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.b24-footer-copy {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.4rem;
}
