/* Тема telefoniya-crm.ru — «универсальный адаптер / стыковочная панель».
   Сайт про телефонию, которая подключается к ЛЮБОЙ CRM: язык дизайна —
   модульный стенд, где каждый блок — съёмный модуль с разъёмом. Карточки —
   модули с индиговым «стыковочным язычком» сверху (ручка-коннектор),
   маркеры списков — круглые «гнёзда» с контактом в центре, нумерация
   секций — моноширинные шильдики «M·01» (номер модуля), таблица фактов —
   спецификация модуля с моноширинными ключами, под шапкой — «гребёнка
   контактов» (ряд вертикальных штырьков), финальный CTA — тёмный «блок
   стойки» с рядом гнёзд. Ни пунктирных подводок со стрелками (маршрутная
   схема соседа), ни всплывающих панелей, ни приборных шкал, ни корпуса
   прибора, ни коммутаторных клавиш — только язычки-коннекторы, гнёзда
   и моноширинные шильдики модулей.
   Палитра — холодная светлая «инженерная стендовая» сталь с графитом
   с синим подтоном и электрик-индиго #5157c9 (ни у кого нет) как цветом
   контактов. Шрифт заголовков — Arial Rounded MT Bold / Segoe UI (округлый
   гротеск «посадочного гнезда»; у соседей Georgia, Palatino, Optima,
   Baskerville, Iowan, моно Menlo, 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, Century Gothic, Geneva — округлый Arial Rounded как основной
   нигде не занят). Мелкие технические подписи — Monaco/Consolas. */

:root {
  --font-head: "Arial Rounded MT Bold", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --mono: "Monaco", "Consolas", "Menlo", "Courier New", monospace;
  --bg: #eef0f4;               /* светлая сталь стенда */
  --bg-alt: #e4e8ef;           /* второй слой стенда */
  --card: #fbfcfe;             /* корпус модуля */
  --line: #ccd3e0;
  --ink: #232631;              /* графит с синим подтоном */
  --muted: #5d6472;
  --radius: 10px;
  --panel: #232633;            /* тёмный блок стойки */
  --pin: rgba(81, 87, 201, 0.55);  /* контакты гребёнки */
}

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

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

/* Шапка: светлая планка модуля с «гребёнкой контактов» по нижней кромке */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background:
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--pin) 0 3px, transparent 3px 22px) 11px 20% / calc(100% - 22px) 5px 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: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 3px, transparent 3.6px) 50% 50% / 100% 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 14px 14px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 4.6px, transparent 5.2px) 50% 50% / 100% 100% no-repeat;
}
.brand:hover { color: #000; text-decoration: none; }
.nav a { color: var(--muted); font-size: 13.5px; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* Кнопка: «контактная площадка» — капсула с точкой-контактом слева */
.btn {
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  transition: background 0.1s ease;
}
.btn::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
  vertical-align: 0.06em;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn:active { box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3); }
.btn-lg::after { content: " \2192"; font-weight: 700; }

/* Hero: без левой линейки — вместо неё «стыковочный рельс» сверху
   с тремя гнёздами и подпись-шильдик */
.hero { padding: 52px 0 46px; }
.hero .wrap {
  border-left: none;
  padding-left: 0;
  position: relative;
  padding-top: 26px;
}
.hero .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 178px;
  height: 12px;
  background:
    radial-gradient(circle at 9px 50%, var(--accent) 4px, transparent 4.7px),
    radial-gradient(circle at 50px 50%, var(--accent) 4px, transparent 4.7px),
    radial-gradient(circle at 91px 50%, var(--accent) 4px, transparent 4.7px),
    linear-gradient(var(--line), var(--line)) 110px 50% / 68px 2px no-repeat;
}
.hero h1 { max-width: 22em; }
.lead { color: #464d5c; max-width: 38em; }

/* Hero-note: шильдик модуля — моноширинная техническая подпись в рамке */
.hero-note {
  display: inline-block;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: 4px;
  padding: 8px 14px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Нумерация секций: шильдик модуля «M·01» моноширинным кеглем */
section.sec h2::before {
  counter-increment: sec;
  content: "M\00B7" counter(sec, decimal-leading-zero);
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.52em;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  margin-right: 13px;
  vertical-align: 0.34em;
}

/* Карточки: съёмные модули со стыковочным язычком сверху по центру */
.cards { counter-reset: module; }
.card {
  position: relative;
  margin-top: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 19px 16px;
}
.card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -14px;
  width: 28px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.card h3 { margin-top: 2px; }
/* Индекс модуля у заголовка карточки: моноширинный номер контакта */
.card h3::before {
  counter-increment: module;
  content: counter(module, decimal-leading-zero);
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--pin);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 9px;
  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: 1px solid var(--line); }
.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 28px; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 2.4px, transparent 3px);
}

/* Таблица фактов: спецификация модуля — моноширинные ключи, вертикальные штырьки */
.facts { width: 100%; border-collapse: collapse; margin: 16px 0; }
.facts th, .facts td { text-align: left; padding: 11px 6px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th {
  width: 34%;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-left: 15px;
}
.facts th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.02em;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.facts td { color: #3f4552; }

/* FAQ: разделители-кромки, у вопроса — гнездо, открывается залитием */
details { border-bottom: 1px solid var(--line); padding: 2px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 13px 32px 13px 24px; list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.12em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 2.2px, transparent 2.8px);
  transition: background 0.12s ease;
}
details[open] summary::before {
  background: radial-gradient(circle, var(--accent) 4.4px, transparent 5px);
}
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; font-family: var(--mono); letter-spacing: 0.02em; }
.crumbs span { color: var(--ink); }
.ctabox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  margin: 40px 0 34px;
  position: relative;
}
.ctabox::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -14px;
  width: 28px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.ctabox::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 10px;
  width: 74px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--pin) 0 3px, transparent 3px 10px);
}
.ctabox h2 { margin-top: 0; }

/* Похожие статьи: «слоты стойки» */
.related { margin-top: 34px; }
.related h2 { font-size: 20px; }
.related .card { margin-top: 13px; }

/* Финальный CTA: тёмный «блок стойки» с рядом гнёзд по верхней кромке */
section.sec-cta {
  background: var(--panel);
  color: #eef0f6;
  text-align: left;
  padding: 50px 0 52px;
  border-top: none;
  position: relative;
}
section.sec-cta::before {
  content: "";
  display: block;
  height: 10px;
  margin: 0 0 22px;
  background:
    radial-gradient(circle at 11px 50%, var(--accent) 4.2px, transparent 5px),
    radial-gradient(circle at 45px 50%, var(--accent) 4.2px, transparent 5px),
    radial-gradient(circle at 79px 50%, var(--accent) 4.2px, transparent 5px),
    radial-gradient(circle at 113px 50%, var(--accent) 4.2px, transparent 5px),
    linear-gradient(var(--line), var(--line)) 128px 50% / calc(100% - 128px) 1px no-repeat;
  opacity: 0.95;
}
section.sec-cta h2 { color: #fff; }
section.sec-cta p { color: #c2c7d4; max-width: 36em; }
section.sec-cta .muted { color: #9aa1b2; }
section.sec-cta .btn { background: var(--accent); color: #fff; margin-top: 12px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4); }
section.sec-cta .btn:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); color: #fff; }

/* Футер: тонкая кромка со «спилом контактов» */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 30px 0; margin-top: 36px; font-size: 14px; color: var(--muted); position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--pin) 0 3px, transparent 3px 22px) 11px 50% / calc(100% - 22px) 2px no-repeat;
  opacity: 0.6;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.footer .muted { margin-top: 12px; }
