/* Тема sip-nomer24.ru — «вокзальное табло с лепестками» (split-flap board).
   Сайт про номер как отдельный продукт — как раз то, что висит на табло:
   строка с цифрами, которую видно до оплаты. Язык дизайна — перрон:
   графитовые лепестки табло со светлой надписью, сигнальный жёлтый
   разметки платформы, светлая тёплая штукатурка вокзала, пунктирные
   разделители расписания, номерные таблички-штапики у заголовков секций,
   кнопки-вывески с жёсткой тенью-подложкой.
   Палитра — сигнальный жёлтый #e3ac00 (ни у кого нет) на графите и
   тёплом светлом бетоне.
   Шрифт заголовков — Avenir Next Condensed / Arial Narrow (у соседей
   Georgia/Palatino/Optima/Baskerville/Iowan/моно/Verdana/Trebuchet/
   Futura/Didot/Gill Sans/Franklin Gothic/Clarendon/системный гротеск —
   узкого концевого гротеска нет).
   Никаких мотивов соседей (шильдик, протокол, коммутатор, календарь,
   картотека, топокарта, софтфон-плитки) — только перрон: лепестки,
   разметка, расписание, номерные таблички. */

:root {
  --font-head: "Avenir Next Condensed", "AvenirNextCondensed-DemiBold",
    "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --bg: #eeebe3;              /* тёплый светлый бетон вокзала */
  --bg-alt: #e6e2d8;          /* другой слой штукатурки */
  --card: #fbfaf5;            /* светлая грань лепестка */
  --line: #d8d2c2;
  --ink: #23262d;             /* графит рамы табло */
  --plate: #2a2d35;           /* тёмная грань лепестка */
  --plate-soft: #353944;
  --on-plate: #f3f0e7;        /* надпись на лепестке */
  --on-plate-muted: #b7bac3;
  --radius: 6px;
  --shadow: none;
}

/* Заголовки: узкий концевой гротеск — буквы с табло */
h1, h2, h3, .brand, .footer-brand {
  font-family: var(--font-head);
  letter-spacing: 0.015em;
}
h1 { font-weight: 600; line-height: 1.14; }
h2 { font-weight: 600; line-height: 1.22; }
h3 { font-weight: 600; font-size: 17.5px; letter-spacing: 0.03em; }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }

/* Шапка: тёмная рама табло, внизу жёлтая линия разметки платформы */
.topbar {
  background: var(--plate);
  border-bottom: 4px solid var(--accent);
  box-shadow: none;
}
.topbar .wrap { height: 58px; }
.brand {
  color: var(--on-plate);
  font-size: 19px;
  display: inline-flex;
  align-items: center;
}
.brand::before {
  content: "№";
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 4px 7px 3px;
  border-radius: 3px;
  margin-right: 9px;
}
.nav a { color: var(--on-plate-muted); font-size: 14px; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* Кнопки-вывески: жёлтый знак с тёмным контуром и жёсткой тенью */
.btn {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  color: var(--ink);
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn::after { content: " \2192"; }
.btn-sm::after { content: ""; }
.btn-sm { box-shadow: 2px 2px 0 var(--ink); }

/* Hero: ночное табло — тёмная панель с рядами лепестков */
.hero {
  padding: 58px 0 52px;
  background:
    radial-gradient(620px 300px at 12% 0%,
      color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    repeating-linear-gradient(0deg,
      transparent 0 42px,
      rgba(255, 255, 255, 0.045) 42px 43px),
    var(--plate);
}
.hero .wrap {
  border-left: 6px solid var(--accent);
  padding-left: 26px;
}
.hero h1 { color: var(--on-plate); max-width: 21em; }
.hero .lead { color: var(--on-plate-muted); max-width: 35em; }
.hero .btn { margin-top: 4px; }

/* Примечание героя: строка на лепестках — тёмная плашка с жёлтым штапиком */
.hero .hero-note {
  display: inline-block;
  margin-top: 24px;
  padding: 9px 16px 9px 13px;
  background: var(--plate-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--on-plate);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* Секции: у каждой заголовка — жёлтая номерная табличка (counter из базы) */
section.sec h2::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.58em;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px 4px;
  border-radius: 3px;
  vertical-align: 0.22em;
  margin-right: 12px;
}
section.sec-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Карточки-лепестки: светлая грань, тёмная планка заголовка, нижний кант */
.card {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(35, 38, 45, 0.12);
}
.card h3 {
  background: var(--plate);
  color: var(--on-plate);
  margin: 0 -19px 12px;
  padding: 11px 18px 10px 22px;
  border-radius: 5px 5px 0 0;
  font-size: 16px;
}
.card h3 a { color: var(--on-plate); }
.card h3 a:hover { color: var(--accent); }
.card::after {
  /* нижняя кромка лепестка */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--plate);
}
.card p { margin-bottom: 0; }

/* Отзывы: цитата на лепестке с жёлтым кантом слева */
.card.quote { border-left: 4px solid var(--accent); }
.card.quote p:first-child { font-size: 15.5px; }
.card.quote p:last-child { padding-bottom: 4px; }

/* Список-проверки: жёлтые номерные штапики */
.checks li { padding: 6px 0 6px 26px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 2px;
}

/* Цифры фактов: таблица расписания — пунктирные строки, гротеск в левой колонке */
.facts th, .facts td { border-bottom: 1px dashed var(--line); padding: 12px 6px; }
.facts th {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  width: 34%;
}
.facts th::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 2px;
  margin-right: 9px;
  vertical-align: 0.08em;
}

/* FAQ: строки расписания с жёлтым плюсом */
details { border-bottom: 1px dashed var(--line); }
details summary {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 30px 14px 0;
}
details summary::after { color: var(--accent); font-weight: 700; }
details p { color: var(--muted); }

/* Финальный CTA: ночь на перроне — тёмная панель и жёлтая разметка сверху */
section.sec-cta {
  background:
    repeating-linear-gradient(0deg,
      transparent 0 46px,
      rgba(255, 255, 255, 0.04) 46px 47px),
    var(--plate);
  border-top: 4px solid var(--accent);
  padding: 52px 0;
}
section.sec-cta h2 { color: var(--on-plate); }
section.sec-cta p { color: var(--on-plate-muted); }
section.sec-cta .btn {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--on-plate);
  box-shadow: 3px 3px 0 var(--on-plate);
}
section.sec-cta .btn:hover {
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--on-plate);
}

/* Футер: тёмная рама, светлая надпись */
.footer {
  background: var(--plate);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
  padding: 34px 0;
  color: var(--on-plate-muted);
}
.footer-brand { color: var(--on-plate); font-size: 17px; }
.footer a { color: var(--on-plate-muted); text-decoration: underline; }
.footer .muted { color: #8e929c; margin-top: 12px; }

/* Cookie-бар: светлая вывеска с жёлтым кантом */
.cookiebar {
  background: var(--card);
  border-top: 3px solid var(--accent);
  color: var(--ink);
}
.cookiebar .btn { box-shadow: none; }

/* Статьи: хлебные крошки и блок CTA в языке табло */
.crumbs { letter-spacing: 0.02em; }
.ctabox {
  border: 1px solid var(--ink);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(35, 38, 45, 0.12);
}
.article h1 { letter-spacing: 0.01em; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 40px; }
  .hero .wrap { border-left-width: 4px; padding-left: 18px; }
  .card h3 { margin: 0 -19px 10px; }
  section.sec-cta { padding: 42px 0; }
}
