/* Тема gorodskoy-nomer.ru — «дисковый аппарат».
   Мотив набора номера: круглые «дырки диска» с номерами секций и вопросов,
   концентрические кольца в hero и финальном CTA (repeating-radial — у
   коммутатора полосы прямые), двойные кольцевые рамки карточек, точечные
   линейки в таблицах и FAQ. Палитра — кремовая бумага с оливковой эмалью
   (#5f7d33): тёплый ретро-офис со стационарным телефоном на столе. Шрифт
   заголовков — Gill Sans (у соседей Georgia/Palatino/Optima/Baskerville/
   моно/Verdana/Trebuchet/Futura/Didot — такой гарнитуры нет). Отличия от тем:
   у markirovka-zvonkov тёмный сайт, у витрины центрованный hero с водяным
   знаком, у коммутатора прямые полосы и «клавиши» — здесь только кольца,
   круги и оливково-кремовая эмаль. */

:root {
  --font-head: "Gill Sans", "Gill Sans MT", "Seravek", "Segoe UI", sans-serif;
  --bg: #f6f5ea;             /* крем с оливковым намёком */
  --bg-alt: #edefdf;
  --card: #fffef8;
  --line: #d9d7c1;
  --ink: #2a2820;            /* тёплые чернила */
  --radius: 6px;
  --tint: #eff2dd;           /* оливковая подсветка */
  --deep: #292620;           /* бакелит — тёмные плиты */
}

/* Заголовки: человекоподобный гротеск, спокойный вес */
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
h1 { color: var(--ink); }
h2 { line-height: 1.3; }

/* Шапка: кремовая, тонкая линия снизу, у бренда — «дырка диска» */
.topbar { background: #fbfaf2; border-bottom: 1px solid var(--line); box-shadow: none; }
.topbar .brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.topbar .brand::before {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  margin-right: 10px;
}
.topbar .nav a { color: var(--muted); }
.topbar .nav a:hover { color: var(--accent); }

/* Кнопки: спокойные «наборные», лёгкий рельеф снизу */
.btn { border-radius: 4px; box-shadow: 0 2px 0 rgba(42, 40, 32, 0.3); }
.btn:hover { filter: brightness(1.07); }
.btn-sm, .btn-lg { border-radius: 4px; }

/* Hero: концентрические кольца диска из правого верхнего угла */
.hero {
  padding: 58px 0 50px;
  background:
    repeating-radial-gradient(circle at 92% 8%, transparent 0 46px, var(--tint) 46px 48px),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { border-left: none; padding-left: 0; }
.hero h1 { max-width: 22em; }
.hero .lead { color: #6a675a; }
.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;
  width: 1.85em; height: 1.85em; line-height: 1.85em;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.3em;
  margin-right: 13px;
  color: var(--accent);
}

/* Карточки: двойное кольцо, у заголовка — дырка диска */
.cards { gap: 18px; margin: 22px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin-right: 9px;
}
.card a { color: var(--ink); }
.card.quote { border-left: 1px solid var(--line); background: var(--tint); }
.card.quote p:first-child { font-family: var(--font-head); font-size: 16px; }

/* Списки: маркер — маленькое кольцо */
.checks li { padding-left: 28px; }
.checks li::before {
  content: "";
  left: 4px; top: 13px;
  width: 7px; height: 7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* Таблица фактов: точечные линейки набора */
.facts th, .facts td { border-bottom: 1px dotted var(--line); padding: 12px 4px; }
.facts tbody tr:first-child th, .facts tbody tr:first-child td { border-top: 1px solid var(--line); }
.facts th { color: var(--ink); font-weight: 600; }
.facts td { color: #55523f; }

/* FAQ: без боксов, вопросы пронумерованы «дырками диска», разделитель точечный */
#faq { counter-reset: faq; }
details { border: none; border-bottom: 1px dotted var(--line); padding: 6px 0; counter-increment: faq; }
details summary { padding: 13px 34px 13px 0; font-weight: 600; }
details summary::before {
  content: counter(faq);
  display: inline-block;
  width: 25px; height: 25px; line-height: 25px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  vertical-align: -5px;
  margin-right: 12px;
}
details[open] { background: transparent; }
details p { color: #55523f; padding-left: 37px; }

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

/* CTA-блок в статьях: двойное кольцо вместо левой полосы */
.ctabox {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  border-radius: var(--radius);
  padding: 26px 28px;
}

/* Финальный CTA: бакелитовая плита с широкими кольцами снизу */
section.sec-cta {
  background:
    repeating-radial-gradient(circle at 50% 150%, transparent 0 58px, rgba(255, 255, 255, 0.05) 58px 61px),
    var(--deep);
  border-top: none;
}
section.sec-cta h2 { color: #f3f1e6; }
section.sec-cta p { color: #b9b6a4; }
section.sec-cta .btn { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
section.sec-cta .btn:hover { filter: brightness(1.07); }

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

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