/* ==========================================================================
   Сайт услуг Антона Болдырева
   Тёмная тема. Всё оформление здесь, никаких внешних файлов и шрифтов.

   Как искать нужное:
     1. ПЕРЕМЕННЫЕ   — цвета и размеры, меняются в одном месте
     2. ОСНОВА       — сброс, типографика, контейнер
     3. КНОПКИ
     4. ШАПКА
     5. ПЕРВЫЙ ЭКРАН
     6. БОЛИ
     7. УСЛУГИ
     8. ПОДВАЛ И ПЛАВАЮЩАЯ КНОПКА
     9. ТЕЛЕФОНЫ И ПЛАНШЕТЫ
   ========================================================================== */


/* ============================ 1. ПЕРЕМЕННЫЕ ============================= */

:root {
  /* Фоны: от самого тёмного к более светлому */
  --bg:          #0A0B0E;
  --bg-alt:      #0D0F14;
  --surface:     #14161E;
  --surface-2:   #1A1D27;
  --line:        #242835;
  --line-soft:   #1C2029;

  /* Текст */
  --text:        #E9EBF1;
  --text-dim:    #A8AFC0;
  --text-mute:   #757D91;

  /* Акцент — единственный яркий цвет на сайте */
  --accent:      #5B8CFF;
  --accent-soft: #3D6BE0;
  --accent-glow: rgba(91, 140, 255, .18);
  --accent-2:    #9B7BFF;   /* только для градиента в заголовке */
  --ok:          #34D399;

  /* Размеры */
  --radius:      16px;
  --radius-sm:   10px;
  --container:   1140px;

  /* Шрифты — системные, ничего не грузим */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
          "Liberation Mono", monospace;
}


/* ============================== 2. ОСНОВА =============================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }

/* Иконки в кнопках */
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.h2 {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 20ch;
  margin-bottom: 18px;
}

.section__lead {
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 44px;
}

/* Подзаголовок внутри раздела */
.h3-sub {
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 56px 0 16px;
  padding-top: 44px;
  border-top: 1px solid var(--line-soft);
}

.nowrap { white-space: nowrap; }

/* Заглушки на месте будущих блоков — уберутся сами, когда блоки появятся */
.stub {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 14px;
}

/* Плавное появление блоков при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ============================== 3. КНОПКИ =============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -8px var(--accent);
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px var(--accent);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(91, 140, 255, .06);
}

.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }


/* ============================== 4. ШАПКА ================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line-soft); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

/* Логотип — просто имя. Точка в акцентном цвете вместо значка:
   ничего не изображает, но делает подпись законченной. */
.logo {
  display: flex;
  align-items: baseline;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo__dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-dim);
}
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); font-weight: 600; }

.burger { display: none; }


/* ========================== 5. ПЕРВЫЙ ЭКРАН ============================= */

.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

/* Мягкое свечение за заголовком */
.hero__glow {
  position: absolute;
  top: -280px; left: 50%;
  width: 900px; height: 620px;
  margin-left: -450px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text-dim);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .16);
}

.hero__title {
  font-size: clamp(34px, 6vw, 60px);
  max-width: 17ch;
  margin-bottom: 24px;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__note { font-size: 15px; color: var(--text-mute); }

/* Три цифры доверия */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}
.stats__num {
  display: block;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  background: linear-gradient(160deg, var(--text), var(--text-mute));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats__cap { font-size: 15px; color: var(--text-mute); }


/* =============================== 6. БОЛИ ================================ */

.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.pain {
  padding: 26px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .22s ease, transform .22s ease;
}
.pain:hover { border-color: var(--line); transform: translateY(-2px); }

.pain__i {
  width: 24px; height: 24px;
  margin-bottom: 16px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.pain h3 { font-size: 18px; margin-bottom: 9px; }
.pain p  { font-size: 15px; color: var(--text-dim); line-height: 1.55; }


/* ============================== 7. УСЛУГИ =============================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px var(--accent);
}

/* Выделенная карточка — главная услуга */
.card--hot {
  border-color: rgba(91, 140, 255, .38);
  background: linear-gradient(180deg, rgba(91, 140, 255, .07), var(--surface) 55%);
}

.card__tag {
  position: absolute;
  top: -11px; left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

.card__title { font-size: 21px; margin-bottom: 12px; }

.card__desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 18px;
}

.card__list {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.card__list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}
/* Галочка перед пунктом */
.card__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.price { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.term  { font-family: var(--mono); font-size: 13.5px; color: var(--text-mute); }

.services__extra {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-mute);
}


/* =================== 8. ПОДВАЛ И ПЛАВАЮЩАЯ КНОПКА ======================= */

.footer {
  padding: 44px 0 120px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__name  { font-weight: 600; margin-bottom: 4px; }
.footer__muted { font-size: 14.5px; color: var(--text-mute); }

.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; color: var(--text-dim); }
.footer__links a:hover { color: var(--accent); }

.fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 30px -10px rgba(91, 140, 255, .8);
  /* Появляется не сразу, а когда человек начал читать */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.fab.is-shown { opacity: 1; visibility: visible; transform: none; }
.fab:hover { background: var(--accent-soft); }
.fab svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}


/* ====================== 9. ТЕЛЕФОНЫ И ПЛАНШЕТЫ ========================== */

@media (max-width: 900px) {
  .header__cta { display: none; }

  /* Меню прячется под кнопку-бургер */
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .28s ease;
  }
  .nav.is-open { transform: none; }
  .nav a {
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: 0; }

  .burger {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
  }
  .burger span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .22s ease, opacity .22s ease;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .section { padding: 68px 0; }
  .hero    { padding: 60px 0 64px; }

  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .stats {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 46px;
    padding-top: 32px;
  }
  .stats__item { display: flex; align-items: baseline; gap: 14px; }
  .stats__num  { font-size: 32px; margin-bottom: 0; }

  .pains, .cards { grid-template-columns: 1fr; }

  .card { padding: 26px 20px; }
  .card__foot { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* На телефоне плавающая кнопка — только иконка, чтобы не мешала читать */
  .fab { right: 16px; bottom: 16px; padding: 15px; }
  .fab span { display: none; }

  .footer { padding-bottom: 100px; }
}


/* ========================================================================
   10. БЛОКИ ГЛАВНОЙ СТРАНИЦЫ
   ======================================================================== */

/* ── Плитки услуг: карточки-ссылки на страницы разделов ────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px var(--accent);
}
.tile:hover .arr { transform: translateX(4px); }

.tile--hot {
  border-color: rgba(91, 140, 255, .38);
  background: linear-gradient(180deg, rgba(91, 140, 255, .07), var(--surface) 55%);
}

.tile__tag {
  position: absolute;
  top: -11px; left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.tile__i {
  width: 26px; height: 26px;
  margin-bottom: 18px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.tile__title { font-size: 22px; margin-bottom: 12px; }

.tile__desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 24px;
}

.tile__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.tile__more { font-size: 14.5px; font-weight: 600; color: var(--accent); }

.arr {
  display: inline-block;
  transition: transform .22s ease;
}


/* ── Приманка на демки ботов ───────────────────────────────────────────── */

.promo {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 240px at 88% 20%, rgba(91, 140, 255, .10), transparent 70%),
    var(--surface);
}

.promo__title { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 14px; }
.promo__desc  { color: var(--text-dim); margin-bottom: 26px; max-width: 46ch; }

/* Декоративная переписка справа */
.promo__art { display: grid; gap: 10px; justify-items: start; }

.promo__bubble {
  max-width: 84%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}
.promo__bubble--in {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 5px;
  color: var(--text-dim);
}
.promo__bubble--out {
  justify-self: end;
  background: var(--accent);
  border-bottom-right-radius: 5px;
  color: #fff;
}

.promo__keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.promo__keys span {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  color: var(--text-dim);
}


/* ── Макет таблицы: показываем, как выглядит автоматизация листа ──────── */

.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  font-size: 13px;
}
.sheet__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-mute);
}
.sheet__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sheet__scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; min-width: 460px; }
.sheet th, .sheet td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.sheet th {
  background: var(--surface);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.sheet td { color: var(--text-dim); }
.sheet tr:last-child td { border-bottom: 0; }

/* Строки, которые таблица подсветила сама */
.sheet .is-late td  { background: rgba(248, 113, 113, .09); color: #FCA5A5; }
.sheet .is-ready td { background: rgba(52, 211, 153, .08);  color: #6EE7B7; }

.sheet__note {
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-mute);
}
.sheet__note b { color: var(--text-dim); font-weight: 600; }


/* ── Метка вида работы на карточке кейса ──────────────────────────────── */

.card__kind {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-mute);
}

/* Подробности кейса: задача, что сделал, результат */
.case__meta {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.case__meta b { color: var(--text); font-weight: 600; }

.mono { font-family: var(--mono); font-size: .95em; color: var(--text-mute); }

.more-link { margin-top: 32px; font-size: 16px; font-weight: 600; }
.more-link a { color: var(--accent); }
.more-link a:hover .arr { transform: translateX(4px); }


/* ── Четыре шага работы ───────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 44px;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.step__num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(91, 140, 255, .12);
  border: 1px solid rgba(91, 140, 255, .3);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p  { font-size: 15px; color: var(--text-dim); line-height: 1.55; }


/* ── Блок «официально» ────────────────────────────────────────────────── */

.official {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 44px;
  align-items: center;
}
.official .h2 { margin-bottom: 16px; }
.official__desc { color: var(--text-dim); max-width: 52ch; }

.official__list { display: grid; gap: 12px; }
.official__list li {
  position: relative;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
}
.official__list li::before {
  content: "";
  position: absolute;
  left: 20px; top: 21px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}


/* ── Призыв в конце страницы ──────────────────────────────────────────── */

.cta {
  padding: 56px 44px;
  border: 1px solid rgba(91, 140, 255, .3);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(91, 140, 255, .14), transparent 70%),
    var(--surface);
  text-align: center;
}
.cta__title { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 14px; }
.cta__desc {
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 auto 30px;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}


/* ── Подвал: добавочные части ─────────────────────────────────────────── */

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  color: var(--text-dim);
}
.footer__nav a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--text-mute);
}
.footer__bottom a:hover { color: var(--accent); }


/* ========================================================================
   11. ВНУТРЕННИЕ СТРАНИЦЫ
   ======================================================================== */

/* Шапка страницы раздела — компактнее, чем первый экран главной */
.page-hero {
  position: relative;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero__glow {
  position: absolute;
  top: -240px; left: 18%;
  width: 760px; height: 520px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}
.page-hero .container { position: relative; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-mute);
}
.crumbs a:hover { color: var(--accent); }

.page-hero__title {
  font-size: clamp(30px, 5vw, 46px);
  max-width: 20ch;
  margin-bottom: 18px;
}
.page-hero__lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 28px;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* ── Демка бота ───────────────────────────────────────────────────────── */

.demo {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.demo__side { position: sticky; top: 96px; }

.demo__pick { display: grid; gap: 10px; margin-bottom: 26px; }

.demo__btn {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.demo__btn b { display: block; color: var(--text); font-size: 16px; margin-bottom: 3px; }
.demo__btn:hover { border-color: var(--line); }
.demo__btn.is-active {
  border-color: var(--accent);
  background: rgba(91, 140, 255, .08);
  color: var(--text);
}

.demo__hint {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.55;
}

/* ── Окно мессенджера ──────────────────────────────────────────────────
   Сделано под MAX: кнопки живут внутри переписки, прямо под сообщением
   бота (инлайн-клавиатура), а не отдельной панелью снизу. Снизу — поле
   ввода, как в настоящем мессенджере.
   -------------------------------------------------------------------- */

.phone {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0F1116;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px #000;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.phone__ava {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.phone__name { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.phone__badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--line);
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.phone__status { font-size: 13px; color: var(--text-mute); }
.phone__restart {
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-mute);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.phone__restart:hover { color: var(--text); border-color: var(--accent); }

.phone__feed {
  height: 460px;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  /* Едва заметный «фон переписки» */
  background:
    radial-gradient(340px 240px at 12% 8%, rgba(91, 140, 255, .05), transparent 70%),
    radial-gradient(300px 200px at 88% 72%, rgba(155, 123, 255, .04), transparent 70%);
}
.phone__feed::-webkit-scrollbar { width: 8px; }
.phone__feed::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* ── Сообщения ── */

.msg {
  position: relative;
  max-width: 84%;
  padding: 10px 14px 8px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  animation: msg-in .26s ease both;
}
.msg--bot {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 5px;
}
.msg--user {
  align-self: flex-end;
  background: var(--accent);
  border-bottom-right-radius: 5px;
  color: #fff;
}
.msg__time {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
  text-align: right;
  opacity: .5;
}

/* Строка, «уехавшая» в таблицу */
.msg--sheet {
  align-self: stretch;
  max-width: 100%;
  padding: 12px 14px;
  background: rgba(52, 211, 153, .07);
  border: 1px dashed rgba(52, 211, 153, .4);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.msg--sheet b { color: var(--ok); }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Три точки «печатает» */
.typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  animation: typing 1.1s infinite;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }

@keyframes typing {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* ── Инлайн-клавиатура: кнопки под сообщением бота ── */

.kb {
  align-self: flex-start;
  display: grid;
  gap: 5px;
  width: 84%;
  margin: -3px 0 6px;
  animation: msg-in .26s ease both;
}
.kb__row { display: flex; gap: 5px; }

.kb__btn {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(91, 140, 255, .07);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease,
              opacity .22s ease, color .22s ease, transform .1s ease;
}
.kb__btn:hover { background: rgba(91, 140, 255, .16); border-color: var(--accent); }
.kb__btn:active { transform: scale(.98); }

/* Клавиатура отработала: кнопки гаснут, выбранная остаётся подсвеченной */
.kb.is-done .kb__btn {
  cursor: default;
  opacity: .45;
  background: transparent;
  border-color: var(--line-soft);
  color: var(--text-mute);
}
.kb.is-done .kb__btn.is-chosen {
  opacity: 1;
  background: rgba(91, 140, 255, .14);
  border-color: var(--accent);
  color: var(--text);
}
.kb.is-done .kb__btn:hover { background: transparent; border-color: var(--line-soft); }
.kb.is-done .kb__btn.is-chosen:hover { background: rgba(91, 140, 255, .14); border-color: var(--accent); }

/* ── Поле ввода снизу: для вида, печатать в него не нужно ── */

/* Подсказки над полем ввода — только у AI-бота */
.phone__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
  background: var(--surface);
}
.phone__hints button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.phone__hints button:hover { border-color: var(--accent); color: var(--text); }

.phone__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.phone__input input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
}
.phone__input input::placeholder { color: var(--text-mute); }
.phone__input input:focus { outline: none; }
.phone__input input:disabled { cursor: default; }

.phone__clip {
  width: 20px; height: 20px;
  flex: none;
  fill: none; stroke: var(--text-mute); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.phone__send {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;          /* иначе кнопка растягивается на всю ширину */
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: background .16s ease, opacity .16s ease;
}
.phone__send:hover { background: var(--accent-soft); }
.phone__send:disabled { opacity: .45; cursor: default; background: var(--accent); }
.phone__send svg {
  width: 17px; height: 17px;
  fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}


/* ── Статичные макеты: показываем, как выглядит бот, без анимации ────── */

/* Окно фиксированной высоты: переписка прокручивается внутри него,
   поэтому длинный сценарий не растягивает страницу.
   Прокрутка здесь мгновенная: плавная не успевает за сообщениями,
   и низ переписки уезжает из виду. */
.phone--static .phone__feed { height: 400px; scroll-behavior: auto; }

/* Пока сообщение не «пришло», его нет в переписке.
   Класс ставит только JS — без него всё видно сразу. */
.play-hidden { display: none !important; }
.phone--static .kb__btn { cursor: default; }
.phone--static .kb__btn:hover { background: rgba(91, 140, 255, .07); border-color: var(--line); }


/* ── Макет экрана приложения ──────────────────────────────────────────── */

.appmock {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0F1116;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px #000;
}
.appmock__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.appmock__title { font-size: 16px; font-weight: 700; }
.appmock__count { font-size: 13px; color: var(--text-mute); }

.appmock__list { display: grid; gap: 10px; padding: 16px; }

.appmock__card {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.appmock__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.appmock__addr { font-size: 15px; font-weight: 600; }
.appmock__time { font-size: 13px; color: var(--text-mute); white-space: nowrap; }
.appmock__chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.appmock__chip--new  { background: rgba(91, 140, 255, .16); color: #A8C0FF; }
.appmock__chip--done { background: rgba(52, 211, 153, .14); color: #6EE7B7; }
.appmock__chip--late { background: rgba(248, 113, 113, .14); color: #FCA5A5; }

.appmock__actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.appmock__actions span {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(91, 140, 255, .07);
  font-size: 14px;
  text-align: center;
}
.appmock__offline {
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-mute);
}


/* ── Вопросы и ответы ─────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; margin-top: 40px; max-width: 860px; }

.faq__item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .22s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq__a p {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
}


/* ── Прайс-таблица на страницах услуг ─────────────────────────────────── */

.pricelist {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}
.priceline {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.priceline__name { font-size: 16.5px; font-weight: 600; }
.priceline__note { font-size: 14px; color: var(--text-mute); margin-top: 3px; }
.priceline .price { font-size: 19px; white-space: nowrap; }
.priceline .term  { white-space: nowrap; }


/* ── Длинный текст (политика конфиденциальности) ──────────────────────── */

.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.prose p { margin-bottom: 14px; }
.prose ul { display: grid; gap: 8px; margin-bottom: 14px; padding-left: 22px; list-style: disc; }


/* ── Форма заявки ─────────────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; color: var(--text-dim); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .18s ease;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; }

.form__note { font-size: 14px; color: var(--text-mute); }


/* ── Карточка контакта ────────────────────────────────────────────────── */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card--main { border-color: rgba(91, 140, 255, .38); }

.contact-card__i {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(91, 140, 255, .12);
}
.contact-card__i svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Правая часть карточки: подпись сверху, значение снизу.
   min-width: 0 обязателен — иначе длинная почта распирает карточку. */
.contact-card > span:last-child { min-width: 0; }
.contact-card__kind {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--text-mute);
}
.contact-card__val {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}


/* ── Фото и текст «обо мне» ───────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}
.about__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  font-size: 62px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-mute);
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { color: var(--text-dim); margin-bottom: 16px; }
.about__text p:last-child { margin-bottom: 0; }


/* ========================================================================
   12. ТЕЛЕФОНЫ И ПЛАНШЕТЫ — НОВЫЕ БЛОКИ
   ======================================================================== */

@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; gap: 28px; }
  .demo__side { position: static; }
  .promo    { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
  .official { grid-template-columns: 1fr; gap: 28px; }
  .about    { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { max-width: 260px; }
}

@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; }
  .tile  { padding: 28px 22px; }
  .tile__foot { flex-direction: column; align-items: flex-start; gap: 8px; }

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

  .cta { padding: 40px 22px; }
  .cta__actions .btn { flex: 1 1 100%; }

  .page-hero { padding: 52px 0 44px; }
  .page-hero__actions .btn { flex: 1 1 100%; }

  .phone__feed { height: 360px; }

  .priceline {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .priceline .term { font-size: 13px; }

  .form { padding: 24px 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
