/* Тема телефония-битрикс24.рф — «инструкция по запуску».
   Сайт про первый день команды с телефонией в Битрикс24: план дня,
   SIP-коннектор, приложение, контрольные звонки. Язык дизайна —
   страница быстрого старта из коробки: бумага тёплая, карточки
   с перфорацией и загнутым уголком, нумерация шагов в виде штамп-бейджа
   «ШАГ N» с жёсткой тенью, чекбоксы-галочки в списках и фактах,
   hero-note как резиновый штамп с двойной рамкой, отрывной купон
   на месте CTA-бокса, финальная секция — тёмная «страница старта»
   с пришитой лентой (сплошная полоса + белый стежок). Ни маршрутных
   схем, ни дашбордов, ни канцелярии-картотеки — только штампы,
   перфорация, чекбоксы и жёсткие офсетные тени.
   Палитра — тёплая «бумага инструкции» с графитом и штамп-красным
   #e2483d (ни у кого нет; у соседей — процессный зелёный, амо-оранжевый,
   коралловый и прочие). Шрифт заголовков — Tahoma / Geneva (плотный
   утилитарный гротеск инструкций; у соседей 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 — Tahoma как основной нигде не занят). */

:root {
  --font-head: "Tahoma", "Geneva", "Verdana", sans-serif;
  --bg: #f1eee6;               /* тёплая бумага инструкции */
  --bg-alt: #e9e5da;           /* второй лист подложки */
  --card: #fffefa;             /* чистая страница */
  --line: #d9d2c0;
  --ink: #262218;              /* тёплый графит */
  --muted: #6e6754;
  --radius: 3px;
  --panel: #2e2820;            /* тёмная «страница старта» */
  --shadow: rgba(38, 34, 24, 0.16);   /* жёсткая офсетная тень */
}

h1, h2, h3, .brand, .footer-brand { font-family: var(--font-head); }
h1 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; }
h2 { font-weight: 700; letter-spacing: -0.008em; 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(--card);
  border-bottom: 2px solid var(--ink);
  box-shadow: none;
}
.topbar::after {
  content: "";
  display: block;
  height: 6px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 16px, rgba(255, 255, 255, 0.6) 16px 24px)
      0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 100% no-repeat;
}
.topbar .wrap { height: 60px; }
.brand {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
/* Глиф бренда: чекбокс с галочкой — «шаг выполнен» */
.brand::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border: 2.5px solid var(--ink);
  border-radius: 2px;
  background:
    linear-gradient(45deg, transparent 42%, var(--accent) 42%, var(--accent) 58%, transparent 58%) 5px 8px / 9px 6px 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: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: background 0.1s ease, transform 0.06s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }

/* Hero: без линейки; заголовок — как крупный пункт инструкции */
.hero { padding: 54px 0 48px; }
.hero .wrap { border-left: none; padding-left: 0; }
.hero h1 { max-width: 24em; }
.lead { color: #57503f; max-width: 37em; }

/* Hero-note: резиновый штамп — двойная рамка, uppercase, лёгкий наклон */
.hero-note {
  display: inline-block;
  border: 2px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-top: 20px;
  position: relative;
  transform: rotate(-1.2deg);
}
.hero-note::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  opacity: 0.65;
}

/* Нумерация секций: штамп-бейдж «ШАГ N» — белая плашка, красная рамка,
   жёсткая тень */
section.sec h2::before {
  counter-increment: sec;
  content: "ШАГ " counter(sec);
  display: inline-block;
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  margin-right: 12px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--shadow);
  vertical-align: 0.24em;
}

/* Карточки: страница с перфорацией сверху и загнутым уголком */
.cards { counter-reset: page; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px 16px;
  box-shadow: 3px 3px 0 var(--shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 14px;
  right: 14px;
  height: 0;
  border-top: 1.5px dashed rgba(38, 34, 24, 0.22);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 14px solid var(--bg-alt);
  border-left: 14px solid transparent;
}
.card > :first-child { margin-top: 12px; }
.card h3 { margin-top: 0; }
/* Номер пункта: типографская «1.» без плашки */
.card h3::before {
  counter-increment: page;
  content: counter(page) ".";
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  margin-right: 8px;
}
.card a { color: var(--ink); text-decoration: none; }
.card a:hover { color: var(--accent); text-decoration: underline; }

/* Отзывы: «проверено на практике» — карточка с красной гранью снизу */
.card.quote { border-bottom: 3px solid var(--accent); box-shadow: 3px 3px 0 var(--shadow); }
.card.quote p:first-child { font-size: 15.5px; margin: 0 0 7px; }

/* Списки-решения: чекбоксы с галочкой */
.checks { padding: 0; list-style: none; }
.checks li { padding: 5px 0 5px 28px; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  background:
    linear-gradient(45deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%) 3px 5px / 7px 5px no-repeat;
}

/* Таблица фактов: спецификация из инструкции, у пунктов — чекбокс */
.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-weight: 700; color: var(--ink); position: relative; padding-left: 20px; }
.facts th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.02em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 2px;
}
.facts td { color: #4c4635; }

/* FAQ: «вопрос из инструкции» — красная Q, плюс/минус справа */
details { border-bottom: 1px solid var(--line); padding: 2px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 13px 30px 13px 24px; list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "Q";
  position: absolute;
  left: 2px;
  top: 0.85em;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}
details summary::after { content: "+"; position: absolute; right: 6px; color: var(--accent); font-size: 19px; 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; }
.crumbs span { color: var(--ink); }
.ctabox {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 34px 0;
  position: relative;
}
.ctabox::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed var(--accent);
  border-radius: 2px;
  pointer-events: none;
}
.ctabox > :first-child { margin-top: 4px; }
.ctabox h2 { margin-top: 0; position: relative; }

/* Финальный CTA: тёмная «страница старта» с пришитой лентой */
section.sec-cta {
  background: var(--panel);
  color: #f0ece2;
  text-align: left;
  padding: 50px 0 54px;
  border-top: none;
  position: relative;
}
section.sec-cta::before {
  content: "";
  display: block;
  height: 7px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 16px, rgba(255, 255, 255, 0.5) 16px 24px)
      0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 100% no-repeat;
}
section.sec-cta h2 { color: #fff; }
section.sec-cta p { color: #cdc5b2; max-width: 36em; }
section.sec-cta .muted { color: #9c927c; }
section.sec-cta .btn { background: var(--accent); color: #fff; margin-top: 12px; }
section.sec-cta .btn:hover { background: #f15b4f; color: #fff; }

/* Футер: двойная графитовая грань — конец инструкции */
.footer { border-top: 3px double var(--ink); 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; }
