/* Тема telefoniya-bitriks24.ru — «маршрутная схема процесса».
   Сайт про то, как телефон встраивается внутрь логики Битрикс24: звонок
   идёт по маршруту «карточка → разговор → дело в CRM → робот/триггер →
   открытая линия». Язык дизайна — схема бизнес-процесса: блоки-этапы
   с подводками-коннекторами (пунктир + стрелка над каждой карточкой),
   номерные чипы-узлы у заголовков и карточек, «цепочка узлов» под шапкой,
   лента-рельса под lead, спецификация-таблица с маркерами, финальный
   тёмный узел со сегментированной лентой. Ни миллиметровки, ни приборных
   шкал, ни линованной бумаги, ни канцелярии — только пунктирные подводки,
   чипы-узлы и стрелки направления.
   Палитра — холодная серо-зелёная «мастерская процесса» с тёмным
   «зелёным процесса» #2e7d32 (ни у кого нет) и графитом с зелёным
   подтоном. Шрифт заголовков — Corbel / Seravek (человеческий гротеск
   технической документации; у соседей Georgia, Palatino, Optima,
   Baskerville, Iowan, моно, Verdana, Trebuchet, Futura, Didot, Gill Sans,
   Franklin Gothic, Clarendon, Avenir, узкий гротеск, American Typewriter/
   Rockwell, Big Caslon, Bahnschrift/Corbel/Seravek, Candara, Charter,
   Century Schoolbook, SF Pro, Helvetica Neue, Lucida Grande, Skia —
   Corbel как основной нигде не занят). */

:root {
  --font-head: "Corbel", "Seravek", "Segoe UI", sans-serif;
  --bg: #eef1ee;               /* холодная светлая «мастерская» */
  --bg-alt: #e4e9e5;           /* второй слой фона */
  --card: #fbfdfb;             /* блок процесса */
  --line: #ccd4cd;
  --ink: #1e2721;              /* графит с зелёным подтоном */
  --muted: #5e6a61;
  --radius: 3px;
  --panel: #232b25;            /* тёмный финальный узел */
  --connector: rgba(46, 125, 50, 0.5);  /* пунктирная подводка */
}

h1, h2, h3, .brand, .footer-brand { font-family: var(--font-head); }
h1 { font-weight: 700; letter-spacing: -0.012em; line-height: 1.17; }
h2 { font-weight: 700; letter-spacing: -0.008em; line-height: 1.27; }
h3 { font-weight: 700; font-size: 17px; line-height: 1.34; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Шапка: светлая планка с тёмной границей и «цепочкой узлов» под ней */
.topbar {
  position: relative;
  background: var(--card);
  border-bottom: 3px solid var(--ink);
  box-shadow: none;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 8px;
  background:
    radial-gradient(circle, var(--accent) 1.8px, transparent 2.4px) 8px 50% / 20px 8px repeat-x,
    linear-gradient(var(--connector), var(--connector)) 0 50% / 100% 2px no-repeat;
}
.topbar .wrap { height: 58px; }
.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
/* Глиф бренда: цепочка «узел — узел — узел» на общей направляющей */
.brand::before {
  content: "";
  width: 22px;
  height: 10px;
  margin-right: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) left / 5px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 5px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right / 5px 10px no-repeat;
}
.brand:hover { color: #000; text-decoration: none; }
.nav a { color: var(--muted); font-size: 13.5px; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--accent); text-decoration: none; }

/* Кнопка: прямоугольный «узел действия» с тёмной нижней гранью */
.btn {
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--accent-dark);
  box-shadow: none;
  transition: background 0.1s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn:active { box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25); }
.btn-lg::after { content: " \2192"; font-weight: 700; }

/* Hero: без левой линейки — вместо неё «рельса маршрута» под lead */
.hero { padding: 52px 0 46px; }
.hero .wrap { border-left: none; padding-left: 0; }
.hero h1 { max-width: 23em; }
.lead { color: #46524a; max-width: 37em; }
.hero .lead::after {
  content: "";
  display: block;
  height: 10px;
  margin-top: 24px;
  background:
    linear-gradient(var(--ink), var(--ink)) left / 8px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right / 8px 10px no-repeat,
    repeating-linear-gradient(90deg, var(--connector) 0 16px, transparent 16px 27px)
      12px 50% / calc(100% - 32px) 2px no-repeat;
}

/* Hero-note: «точка входа» — чип с квадратным маркером */
.hero-note {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 7px 14px 7px 26px;
  margin-top: 18px;
  position: relative;
}
.hero-note::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* Нумерация секций: чип-узел вместо цифры с точкой */
section.sec h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  margin-right: 12px;
  border-radius: 2px;
  vertical-align: 0.28em;
}

/* Карточки: блоки этапа с подводкой-коннектором сверху и стрелкой входа */
.cards { counter-reset: stage; }
.card {
  position: relative;
  margin-top: 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px 16px;
}
.card::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 22px;
  right: 30px;
  height: 0;
  border-top: 2px dashed var(--connector);
}
.card::after {
  content: "";
  position: absolute;
  top: -19px;
  left: calc(100% - 30px);
  width: 0;
  height: 0;
  border-left: 6px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.card h3 { margin-top: 2px; }
/* Номерной чип-узел у карточек, где есть заголовок */
.card h3::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 9px;
  padding: 1px 6px;
  border: 1px solid var(--connector);
  border-radius: 2px;
  vertical-align: 0.12em;
}
.card a { color: var(--ink); text-decoration: none; }
.card a:hover { color: var(--accent); text-decoration: underline; }

/* Отзывы: «точки контроля» — карточка с чек-засечкой и зелёной гранью */
.card.quote {
  border-left: 3px solid var(--accent);
  border-style: solid;
  background: var(--card);
}
.card.quote::before { border-top-style: solid; border-top-color: var(--connector); }
.card.quote p:first-child { font-size: 15.5px; margin: 2px 0 7px; }

/* Списки-решения: стрелки направления */
.checks { padding: 0; list-style: none; }
.checks li { padding: 5px 0 5px 26px; position: relative; }
.checks li::before {
  content: "\25B8";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* Таблица фактов: спецификация маршрута с квадратными маркерами */
.facts { width: 100%; border-collapse: collapse; margin: 16px 0; }
.facts th, .facts td { text-align: left; padding: 11px 4px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 700; color: var(--ink); position: relative; padding-left: 17px; }
.facts th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.facts td { color: #3d4740; }

/* FAQ: пунктирные разделители, квадратный маркер у вопроса */
details { border-bottom: 1px dashed var(--line); padding: 2px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 13px 30px 13px 20px; list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.1em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
details summary::after { content: "+"; position: absolute; right: 6px; color: var(--accent); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--muted); }

/* Статьи: боковой CTA — «узел перехода» с верхней зелёной гранью */
.article h1 { margin-top: 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 6px; letter-spacing: 0.01em; }
.crumbs span { color: var(--ink); }
.ctabox {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 34px 0;
  position: relative;
}
.ctabox::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 24px;
  right: 34px;
  height: 0;
  border-top: 2px dashed var(--connector);
}
.ctabox::after {
  content: "";
  position: absolute;
  top: -19px;
  left: calc(100% - 34px);
  width: 0;
  height: 0;
  border-left: 6px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.ctabox h2 { margin-top: 0; }

/* Финальный CTA: тёмный «конечный узел» с сегментированной лентой сверху */
section.sec-cta {
  background: var(--panel);
  color: #eef2ee;
  text-align: left;
  padding: 48px 0 52px;
  border-top: none;
  position: relative;
}
section.sec-cta::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 42px);
  opacity: 0.9;
}
section.sec-cta h2 { color: #fff; }
section.sec-cta p { color: #c3cdc4; max-width: 36em; }
section.sec-cta .muted { color: #9aa89e; }
section.sec-cta .btn { background: var(--accent); color: #fff; margin-top: 12px; border-bottom-color: rgba(0, 0, 0, 0.45); }
section.sec-cta .btn:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); color: #fff; }

/* Футер: пунктирная граница как окончание схемы */
.footer { border-top: 2px dashed var(--line); background: var(--bg-alt); padding: 30px 0; margin-top: 36px; font-size: 14px; color: var(--muted); }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.footer .muted { margin-top: 12px; }
