/* Тема telefoniya-dlya-biznesa.ru — «монтажная схема контура».
   Сайт про телефонию как систему: номер, АТС, CRM и записи разговоров,
   соединённые в один контур. Язык дизайна — лист инженерной схемы
   соединений на тёплой бумаге: карточки-«компоненты» в жёстких контурах
   с клеммами-точками по углам, пунктирные «линии потока» под заголовками,
   hero-note как рамка спецификации, списки — плюсы-узлы соединения,
   таблица фактов — перечень элементов схемы с клеммными точками.
   Палитра — сигнальный оранжевый линии потока #d96415 (ни у кого нет)
   на тёплой бумаге и графитовом контуре.
   Шрифт заголовков — Century Schoolbook / Bookman (кругловатый учебный
   сериф; у соседей Georgia, Palatino, Optima, Baskerville, Iowan, моно,
   Verdana, Trebuchet, Futura, Didot, Gill Sans, Franklin Gothic, Clarendon,
   Avenir, узкий гротеск, American Typewriter/Rockwell, Big Caslon,
   Bahnschrift/Corbel/Seravek — его нет).
   Никаких мотивов соседей (гроссбух с линейками, штабная с миллиметровкой
   и чипами, коммутатор, картотека, табло, софтфон) — только лист схемы:
   контуры компонентов, клеммы, пунктир потока, рамка спецификации. */

:root {
  --font-head: "Century Schoolbook", "Century Schoolbook L", "Bookman Old Style", "Bookman", "ITC Bookman", serif;
  --bg: #f8f4ec;               /* тёплый лист бумаги схемы */
  --bg-alt: #f1ebdf;           /* поле альтернативной секции */
  --card: #fcfaf4;             /* карточка-«компонент» */
  --line: #d9d1bf;
  --ink: #35312a;              /* графитовый контур */
  --wire: #57503f;             /* толстая линия контура на карточках */
  --radius: 6px;
}

h1, h2, h3, .brand, .footer-brand { font-family: var(--font-head); }
h1 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
h2 { font-weight: 700; letter-spacing: -0.005em; line-height: 1.28; }
h3 { font-weight: 700; font-size: 17px; line-height: 1.35; }

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

/* Шапка: светлый лист с толстым графитовым контуром снизу */
.topbar {
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 1px 0 rgba(53, 49, 42, 0.08);
}
.topbar .wrap { height: 60px; }
.brand { color: var(--ink); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; }
.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--accent);
}
.brand:hover { color: #000; text-decoration: none; }
.nav a { color: var(--ink); font-size: 13.5px; opacity: 0.75; }
.nav a:hover { opacity: 1; color: var(--accent); text-decoration: none; }

/* Кнопка: залитая «клемма» контура, при нажатии уходит в лист */
.btn {
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(53, 49, 42, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 1px 0 rgba(53, 49, 42, 0.25); }
.btn:active { transform: translateY(2px); box-shadow: none; }

/* Hero: под заголовком — пунктирная линия потока с клеммой на конце */
.hero { padding: 54px 0 48px; }
.hero .wrap { position: relative; }
.hero .wrap::after {
  content: "";
  display: block;
  margin-top: 26px;
  height: 3px;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0 14px,
    transparent 14px 26px
  );
  position: relative;
}
.hero h1 { max-width: 22em; }
.lead { color: #55503f; max-width: 37em; }

/* Hero-note: рамка спецификации на пунктирном контуре */
.hero-note {
  display: inline-block;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 7px 14px;
  margin-top: 18px;
  letter-spacing: 0.01em;
}

/* Заголовок секции: под ним короткая пунктирная линия потока */
section.sec h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 0;
  margin-top: 12px;
  border-top: 3px dashed var(--accent);
  opacity: 0.85;
}

/* Карточки: «компоненты схемы» в графитовом контуре с клеммами по верхним углам */
.card {
  position: relative;
  border: 1.5px solid var(--wire);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(53, 49, 42, 0.06);
  padding-top: 20px;
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 5px var(--accent);
}
.card::before { left: 14px; }
.card::after { right: 14px; }
.card a:hover { text-decoration: none; color: var(--accent); }

/* Отзывы: показания «прибора» с клеммой слева */
.card.quote { border-left: 4px solid var(--accent); }
.card.quote p:first-child { font-weight: 500; }

/* Списки: плюсы-узлы соединения */
.checks li::before { content: "＋"; color: var(--accent); font-weight: 700; }
.checks li { padding-left: 28px; }

/* Таблица фактов: перечень элементов с клеммными точками и пунктирными линиями */
.facts th, .facts td { border-bottom: 1px dashed var(--line); }
.facts th {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-head);
}
.facts th::before {
  content: "●";
  color: var(--accent);
  font-size: 0.6em;
  vertical-align: 0.22em;
  margin-right: 9px;
}

/* FAQ: вопрос с пунктирным подчёркиванием, открытый — контур загорается */
details summary { border-bottom: 1px dashed var(--line); }
details summary:hover { color: var(--accent); }
details[open] summary {
  color: var(--ink);
  border-bottom: none;
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 12px;
}
details p { padding-left: 15px; border-left: 1.5px dashed var(--accent); }

/* Финальный CTA: тёмная «панель прибора» без сеток — контур и клемма */
section.sec-cta {
  background: #2c2822;
  border-top: 4px solid var(--accent);
}
section.sec-cta h2 { color: #f8f4ec; }
section.sec-cta p { color: rgba(248, 244, 236, 0.78); }
section.sec-cta .btn { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
section.sec-cta .btn:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }

/* Футер: светлый лист с контуром сверху */
.footer { border-top: 3px solid var(--ink); background: var(--bg); }
.footer-brand { font-weight: 700; }

/* Статьи: та же схема на страницах статей */
.article h1 { letter-spacing: -0.01em; }
.article h2::after {
  content: "";
  display: block;
  width: 72px;
  border-top: 3px dashed var(--accent);
  margin-top: 10px;
}
.article table th { font-family: var(--font-head); }
.crumbs { letter-spacing: 0.01em; }

/* Врезка статьи: рамка спецификации с клеммами */
.ctabox {
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
}
.ctabox::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 5px var(--accent);
}
