/* Тема virt-nomer.ru — «пульт настройки / контроллер».
   Мотив регулировки: светло-серый «корпус прибора», графитовая перфорация,
   шкала-сетка с засечками в hero и финальном CTA, номер секции — в
   «модуле»-квадрате как на рейке, у карточек — верхняя кромка-«слот»
   и светодиод-квадратик, буллеты-«тумблеры», вопросы FAQ — «клавиши»
   с индикатором +/−. Палитра — приборный тёплый серый со сливовым
   бакелитом (#6b3074). Шрифт заголовков — Corbel/Franklin Gothic
   (у соседей Gill Sans/Georgia/Palatino/Optima/Baskerville/моно/Verdana/
   Trebuchet/Futura/Didot — такой гарнитуры нет). Отличия от соседних тем:
   у дискового аппарата кольца и крем-олива, у коммутатора прямые полосы
   и клавиши, у витрины центрованный hero, у горчицы ценник — здесь сетка
   засечек, слоты-кромки и «кнопочная» пластика пульта. */

:root {
  --font-head: "Corbel", "Franklin Gothic Medium", "Avenir Next", "Segoe UI", sans-serif;
  --bg: #f1efe9;             /* корпус прибора */
  --bg-alt: #e8e5dd;
  --card: #fbfaf7;
  --line: #d2cec3;
  --ink: #29252e;            /* графит со сливовым намёком */
  --radius: 9px;
  --tint: #ece5ee;           /* сливовая подсветка */
  --deep: #2a2530;           /* тёмная лицевая панель */
}

/* Заголовки: техничный гротеск пульта */
h1, h2, h3 { font-weight: 650; letter-spacing: -0.005em; }
h1 { color: var(--ink); }

/* Шапка: лицевая панель с нижней «щелью» шкалы */
.topbar {
  background: linear-gradient(#f8f7f3, #f1efe9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset;
}
.topbar .brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.topbar .brand::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--tint), 0 0 6px var(--accent);
  margin-right: 10px;
}
.topbar .nav a { color: var(--muted); }
.topbar .nav a:hover { color: var(--accent); }

/* Кнопки: «кнопки пульта» — капсулы с ходом вниз */
.btn {
  border-radius: 7px;
  box-shadow: 0 3px 0 rgba(42, 37, 48, 0.32);
}
.btn:hover {
  filter: brightness(1.06);
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(42, 37, 48, 0.32);
}
.btn-sm, .btn-lg { border-radius: 7px; }

/* Hero: шкала-сетка с вертикальными засечками */
.hero {
  padding: 58px 0 52px;
  background:
    repeating-linear-gradient(to right, transparent 0 46px, rgba(42, 37, 48, 0.05) 46px 47px),
    repeating-linear-gradient(to bottom, transparent 0 60px, rgba(42, 37, 48, 0.04) 60px 61px),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { border-left: 3px solid var(--accent); padding-left: 22px; }
.hero h1 { max-width: 23em; }
.hero .lead { color: #6d6875; }
.hero-note { letter-spacing: 0.02em; }

/* Секции: номер — в «модуле» на рейке */
section.sec { padding: 46px 0 42px; }
section.sec-alt { background: var(--bg-alt); }
section.sec h2::before {
  counter-increment: sec;
  content: counter(sec);
  display: inline-block;
  min-width: 1.9em;
  padding: 0.22em 0.3em;
  background: var(--accent);
  border-radius: 6px;
  text-align: center;
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.35em;
  margin-right: 13px;
  color: #f6f2f7;
  box-shadow: 0 2px 0 rgba(42, 37, 48, 0.28);
}

/* Карточки: модуль с верхней кромкой-слотом и светодиодом */
.cards { gap: 18px; margin: 22px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 15px 18px 17px;
  box-shadow: 0 1px 2px rgba(42, 37, 48, 0.05);
}
.card h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  margin-right: 9px;
}
.card a { color: var(--ink); }
.card.quote { border-top-width: 1px; border-left: 3px solid var(--accent); background: var(--tint); }
.card.quote p:first-child { font-family: var(--font-head); font-size: 16px; }

/* Списки: буллеты-«тумблеры» */
.checks li { padding-left: 30px; }
.checks li::before {
  content: "";
  left: 3px; top: 12px;
  width: 14px; height: 8px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat 2px center / 4px 4px;
}

/* Таблица фактов: спецификация прибора — зебра и тонкие линии */
.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { border-bottom: 1px solid var(--line); padding: 11px 14px; }
.facts tbody tr:last-child th, .facts tbody tr:last-child td { border-bottom: none; }
.facts tbody tr:nth-child(even) { background: var(--tint); }
.facts th { color: var(--ink); font-weight: 650; }
.facts td { color: #56515c; }

/* FAQ: «клавиши» с индикатором числа и +/− */
#faq { counter-reset: faq; }
details {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  margin-bottom: 8px;
  counter-increment: faq;
}
details summary { padding: 12px 44px 12px 12px; font-weight: 650; position: relative; }
details summary::before {
  content: counter(faq);
  display: inline-block;
  min-width: 24px;
  padding: 2px 5px;
  background: var(--accent);
  border-radius: 5px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #f6f2f7;
  vertical-align: -3px;
  margin-right: 11px;
}
details summary::after {
  content: "+";
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-54%);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
}
details[open] { background: var(--tint); }
details[open] summary::after { content: "−"; }
details p { color: #56515c; padding: 0 44px 14px 51px; }

/* Статьи: крошки, таблицы с сливовой шапкой */
.crumbs a { color: var(--accent); }
.article table th { background: var(--tint); color: var(--ink); }
.article table td { color: #4b4651; }
.related li::marker { color: var(--accent); }

/* CTA-блок в статьях: «регулятор» с ползунковой полосой слева */
.ctabox {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
}

/* Финальный CTA: тёмная панель с диагональной перфорацией */
section.sec-cta {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.035) 14px 15px),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.035) 14px 15px),
    var(--deep);
  border-top: none;
}
section.sec-cta h2 { color: #f3eff4; }
section.sec-cta p { color: #b7b0bc; }
section.sec-cta .btn { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
section.sec-cta .btn:hover { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }

/* Футер и cookie-бар */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-brand { color: var(--ink); }
.cookiebar { background: var(--deep); }

::selection { background: var(--tint); }
