/* Тема telefoniya-amocrm.ru — «пульт руководителя / мониторинг отдела».
   Сайт про телефонию для amoCRM с управленческой точки зрения: учёт звонков,
   пропущенные как потери, записи для разбора, планы звонков. Язык дизайна —
   приборный пульт: светлый стальной корпус, тёмная приборная шапка и футер,
   сегментированная сигнальная рейка слева в hero, карточки-блоки с верхней
   ключевой линией, кнопки-клавиши (вдавливаются при нажатии), таблица фактов
   как табло считывания (пунктирные строки, разрядка в подписях), в FAQ у каждого
   вопроса — индикаторная лампа, которая загорается, когда вопрос открыт.
   НЕ дашборд с виджетами, НЕ табло результатов, НЕ интерфейс CRM-приложения
   соседа (#31): углы почти прямые (3px), никаких белых «всплывающих окон»
   и пилюль. Палитра — коралловый тёплый индикатор #e2725b на холодном стали
   #eff2f3; приборный графит #262c31 для шапки, футера и финальной панели.
   Шрифт заголовков — Skia/Candara: технический гуманистический гротеск
   (у соседей Georgia, Palatino, Optima, Baskerville, Iowan, моно, Verdana,
   Trebuchet, Futura, Didot, Gill Sans, Franklin Gothic, Clarendon, Avenir,
   узкий гротеск, American Typewriter/Rockwell, Big Caslon, Bahnschrift/
   Corbel/Seravek, Century Schoolbook/Bookman, Helvetica Neue — его нет). */

:root {
  --font-head: "Skia", "Candara", "Segoe UI", Arial, sans-serif;
  --bg: #eff2f3;               /* стальной корпус пульта */
  --bg-alt: #e6eaec;           /* секция-«отсек» */
  --card: #fbfcfc;
  --line: #d3dade;
  --ink: #252b30;              /* приборный сланец */
  --muted-c: #5d6870;
  --panel: #262c31;            /* графит приборной панели */
  --radius: 3px;
}

h1, h2, h3, .brand, .footer-brand { font-family: var(--font-head); }
h1 { font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
h2 { font-weight: 700; letter-spacing: 0.015em; line-height: 1.27; }
h3 { font-weight: 700; letter-spacing: 0.01em; line-height: 1.35; }

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

/* Шапка: тёмная приборная планка */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid #1a2024;
  box-shadow: inset 0 -3px 0 rgba(226, 114, 91, 0.4);
}
.topbar .wrap { height: 60px; }
.brand { color: #eef1f2; font-size: 16.5px; font-weight: 700; letter-spacing: 0.02em; display: inline-flex; align-items: center; }
/* Индикаторная лампа перед названием */
.brand::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 10px;
  flex: none;
  background: radial-gradient(circle at 35% 35%, #ffb3a1 0 2px, var(--accent) 2.5px 85%, #8c3a28);
  box-shadow: 0 0 0 2px #3a4147, 0 0 7px rgba(226, 114, 91, 0.8);
}
.brand:hover { color: #fff; text-decoration: none; }
.nav a { color: #b9c2c7; font-size: 13.5px; }
.nav a:hover { color: #fff; text-decoration: none; }

/* Кнопка: клавиша пульта — прямоугольная, с разрядкой, вдавливается */
.btn {
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 0 rgba(30, 36, 41, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(30, 36, 41, 0.45), 0 1px 0 rgba(30, 36, 41, 0.3);
  text-decoration: none;
  color: #fff;
}
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 3px rgba(30, 36, 41, 0.5); }

/* Hero: стальной отсек с сигнальной рейкой слева */
.hero { padding: 54px 0 48px; }
.hero .wrap {
  position: relative;
  border-left: 0;
  padding-left: 34px;
}
.hero .wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 12px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--accent) 0 9px,
    #c48272 9px 12px,
    var(--line) 12px 22px
  );
  opacity: 0.85;
}
.hero h1 { max-width: 23em; }
.lead { color: var(--muted-c); max-width: 37em; }

/* Hero-note: строка статуса на тёмной плашке */
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 9px 16px;
  margin-top: 18px;
  color: #cdd5da;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 35% 35%, #ffc4b5 0 1.5px, var(--accent) 2px 85%);
  box-shadow: 0 0 6px rgba(226, 114, 91, 0.9);
}

/* Заголовок секции: сегментированный сигнальный маркер */
section.sec h2::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 12px;
  border-radius: 2px;
  margin-right: 13px;
  vertical-align: 0.06em;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px);
}

/* Карточки: приборные блоки с верхней ключевой линией */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 17px 19px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px -6px rgba(37, 43, 48, 0.35);
}
.card a:hover { text-decoration: none; color: var(--accent); }

/* Отзывы: цитата с лампой у темы */
.card.quote { border-top: 1px solid var(--line); border-left: 3px solid var(--accent); }
.card.quote:hover { transform: translateY(-2px); }
.card.quote p:first-child { font-weight: 600; }
.card.quote .muted {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4d575f;
}
.card.quote .muted::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  vertical-align: 0.05em;
}

/* Списки: точки-индикаторы вместо тире */
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffc4b5 0 1.5px, var(--accent) 2px 85%);
  box-shadow: 0 0 5px rgba(226, 114, 91, 0.55);
}

/* Таблица фактов: табло считывания */
.facts th, .facts td { border-bottom: 1px dashed var(--line); }
.facts th {
  color: #4d575f;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.facts td { color: var(--ink); font-weight: 500; }

/* FAQ: ряды с индикаторной лампой — загорается при открытии */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  margin: 0 0 8px;
}
details summary { padding: 13px 34px 13px 26px; }
details summary::before {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c3ccd1;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
details[open] {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 3px 10px -6px rgba(37, 43, 48, 0.3);
}
details[open] summary::before {
  background: radial-gradient(circle at 35% 35%, #ffc4b5 0 1.5px, var(--accent) 2px 85%);
  box-shadow: 0 0 6px rgba(226, 114, 91, 0.85);
}
details p { padding: 0 10px 12px 8px; margin-top: 0; }

/* Финальный CTA: графитовый отсек с внутренней рамкой считывания */
section.sec-cta {
  background: var(--panel);
  text-align: left;
  padding: 46px 0 42px;
  border-top: 1px solid #1a2024;
}
section.sec-cta .wrap {
  border: 1px solid rgba(238, 241, 242, 0.16);
  border-radius: 4px;
  padding: 26px 28px;
  position: relative;
}
section.sec-cta .wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}
section.sec-cta h2 { color: #fff; letter-spacing: 0.03em; }
section.sec-cta p { color: rgba(205, 213, 218, 0.8); max-width: 36em; }
section.sec-cta .btn { margin-top: 12px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
section.sec-cta .btn:hover { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }

/* Футер: продолжение приборной панели */
.footer { background: var(--panel); border-top: 1px solid #1a2024; padding: 30px 0; margin-top: 0; }
.footer-brand { color: #eef1f2; }
.footer p { color: #9aa4ab; }
.footer a { color: #c4ccd1; }

/* Статьи */
.article h1 { letter-spacing: 0.01em; }
.article h2::before { width: 28px; height: 10px; margin-right: 11px; }
.article table th { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: #4d575f; }
.crumbs { letter-spacing: 0.02em; }

/* Врезка статьи: бланк задания с ключевой линией и лампой */
.ctabox {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 34px 0;
  position: relative;
}
.ctabox h2 { margin-top: 0; }
.ctabox::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffc4b5 0 1.5px, var(--accent) 2px 85%);
  box-shadow: 0 0 6px rgba(226, 114, 91, 0.8);
}
