@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/montserrat-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/montserrat-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/montserrat-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/montserrat-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/montserrat-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/montserrat-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/montserrat-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/montserrat-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* orq.me — базовые стили. Один шрифт без засечек, иерархия размером и весом. */

:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #12161f;
  --ink-2: #4a5364;
  --ink-3: #7c8598;
  --line: #e5e8ee;
  --brand: #2f57e8;
  --brand-dark: #2444c4;
  --brand-soft: #eef2ff;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --safe: #067647;
  --safe-soft: #ecfdf3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--ink);
  flex: none;
}
.top nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: var(--ink-2);
}
.top nav a { color: var(--ink-2); }
@media (max-width: 720px) {
  .top-in { height: auto; padding: 10px 0 0; flex-wrap: wrap; gap: 8px; }
  .top nav {
    order: 3;
    width: 100%;
    margin: 0 -16px;
    padding: 4px 16px 10px;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 14px;
  }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
}

/* ---------- поиск ---------- */
.search { display: flex; gap: 8px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  font-size: 18px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.search button {
  flex: none;
  height: 56px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s;
}
.search button:hover { background: var(--brand-dark); }
.search.sm input { height: 44px; font-size: 16px; border-radius: 11px; }
.search.sm button { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 11px; }

/* ---------- герой ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 750;
}
.hero p.lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 18px;
  color: var(--ink-2);
}
.hero .search { max-width: 620px; margin: 0 auto; }
.hero .hint { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .search { flex-direction: column; }
  .search button { width: 100%; }
}

/* ---------- секции и карточки ---------- */
section { padding: 36px 0; }
section h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -.02em;
  font-weight: 700;
}
section .sub { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feat .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 19px;
  margin-bottom: 12px;
  background: var(--brand-soft);
}
.feat h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- чипы кодов ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.chip b { font-weight: 650; }
.chip span { color: var(--ink-3); font-size: 13px; }

/* ---------- список ссылок ---------- */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; }
.linklist a {
  padding: 7px 0;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.linklist a:hover { color: var(--brand); text-decoration: none; }
.linklist a em { font-style: normal; color: var(--ink-3); font-size: 13px; }
@media (max-width: 860px) { .linklist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .linklist { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- подвал ---------- */
footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-3);
}
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer a { color: var(--ink-2); }
footer .note { margin-top: 20px; max-width: 700px; line-height: 1.6; }

/* ---------- служебное ---------- */
.tabnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------- витрина каталога ---------- */
.cat-cards { margin-top: 22px; }
.catcard {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.catcard:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 24, 40, .06), 0 12px 28px rgba(16, 24, 40, .08);
}
.catcard h3 { margin: 0 0 8px; font-size: 19px; font-weight: 650; }
.catcard p { margin: 0; color: var(--ink-2); font-size: 15px; }
.catcard .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
  background: var(--brand-soft);
}
.catcard-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.catcard-meta b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.catcard-go {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}
.catcard.soon .ico { background: #f1f3f7; }
.catcard.soon .catcard-go { color: var(--ink-3); }

/* ---------- источники данных ---------- */
.sources .srclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.src {
  display: grid;
  grid-template-columns: 200px 150px 1fr 130px;
  gap: 16px;
  align-items: center;
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
}
.src-name { font-weight: 600; }
.src-org, .src-what { color: var(--ink-2); font-size: 14px; }
.src-state {
  justify-self: end;
  font-size: 13px;
  color: var(--ink-3);
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f3f7;
  white-space: nowrap;
}
.src-live .src-state { background: var(--safe-soft); color: var(--safe); }
.srcnote { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); max-width: 760px; }
@media (max-width: 880px) {
  .src { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .src-org { grid-column: 1; }
  .src-what { grid-column: 1 / -1; }
  .src-state { grid-row: 1; grid-column: 2; }
}

/* ---------- подстраница-герой ---------- */
.hero-sub { text-align: left; padding: 28px 0 34px; }
.hero-sub .crumbs { margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.hero-sub .crumbs a { color: var(--ink-3); }
.hero-sub .crumbs span { margin: 0 6px; }
.hero-sub .crumbs b { color: var(--ink-2); font-weight: 500; }
.hero-sub h1 { font-size: 34px; }
.hero-sub p.lead { margin-left: 0; margin-right: 0; max-width: 680px; }
.hero-sub .search { margin: 0; max-width: 560px; }
.hero-sub .hint { text-align: left; }
@media (max-width: 640px) { .hero-sub h1 { font-size: 27px; } }

.linklist-1 { grid-template-columns: 1fr; }

/* поле с ошибкой ввода */
.search input.err {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.center { text-align: center; }
section h2.center + .sub.center { margin-left: auto; margin-right: auto; max-width: 720px; }

/* ---------- 404 ---------- */
.notfound { padding: 70px 0 60px; text-align: center; }
.nf-code {
  font-size: 72px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--line);
  margin-bottom: 8px;
}
.notfound h1 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.025em; }
.notfound .lead { margin: 0 auto 26px; max-width: 520px; color: var(--ink-2); font-size: 17px; }
.notfound .search { max-width: 520px; margin: 0 auto; }
.nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.nf-codes { margin-top: 40px; }
.nf-codes .lbl { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.nf-codes .chips { justify-content: center; }
@media (max-width: 640px) {
  .notfound { padding: 44px 0 40px; }
  .nf-code { font-size: 56px; }
  .notfound h1 { font-size: 25px; }
}

/* ---------- кнопки ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; border: 0; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }


/* ---------- уровни каталога ---------- */
.lvls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lvl {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lvl:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.lvl b { font-size: 15px; font-weight: 650; }
.lvl span { font-size: 12px; color: var(--ink-3); }

.numgridlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 6px; }
.nchip {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--ink-2);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.nchip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.nchip i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.nchip.has-bad { border-color: #fecdca; background: var(--danger-soft); color: var(--danger); }
.nchip.has-bad i { color: var(--danger); font-weight: 600; }
.nchip.has-good { border-color: #abefc6; background: var(--safe-soft); color: var(--safe); }

.rngs { list-style: none; margin: 0; padding: 0; }
.rng {
  display: grid; grid-template-columns: 1fr 150px 190px; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.rng:last-child { border-bottom: 0; }
.rng-num { font-variant-numeric: tabular-nums; }
.rng-op { font-weight: 600; }
.rng-reg { color: var(--ink-2); }
@media (max-width: 720px) { .rng { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- категории ---------- */
.cats { list-style: none; margin: 0; padding: 0; }
.cat-row {
  display: grid;
  grid-template-columns: 190px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
}
.cat-bar { height: 8px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.cat-bar i { display: block; height: 100%; background: var(--ink-3); border-radius: 99px; }
.cat-bad  .cat-bar i { background: var(--danger); }
.cat-good .cat-bar i { background: var(--safe); }
.cat-cnt { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .cat-row { grid-template-columns: 140px 1fr 32px; font-size: 14px; } }


/* соседние номера с отзывами */
.nears { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .nears { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .nears { grid-template-columns: 1fr; } }
.near {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
  color: var(--ink);
}
.near:hover { border-color: var(--brand); text-decoration: none; }
.near-num { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600; }
.near-tag { font-size: 13px; color: var(--ink-3); }
.near-tag.bad { color: var(--danger); }
.near-tag.good { color: var(--safe); }


/* число справа в списках не должно ломаться на строки */
.cat-row { grid-template-columns: minmax(120px, 190px) 1fr auto; }
.cat-cnt { white-space: nowrap; min-width: 64px; }

/* простые списки в текстовых страницах */
.plain { margin: 10px 0 0; padding-left: 20px; }
.plain li { margin-bottom: 7px; color: var(--ink-2); font-size: 15px; }
.card.block p { font-size: 15px; color: var(--ink-2); }
.card.block p + p { margin-top: 10px; }

/* ---------- светофор номера ---------- */
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--ink-3);
}
.dot-bad { background: var(--danger); }
.dot-warn { background: #f79009; }
.dot-safe { background: var(--safe); }
.dot-unknown { background: #cfd5e0; }

.nchip { position: relative; }
.nchip.has-bad { border-color: #fda29b; }
.nchip.has-good { border-color: #75e0a7; }

.near { border-left: 3px solid var(--line); }
.near.tone-bad { border-left-color: var(--danger); background: var(--danger-soft); }
.near.tone-warn { border-left-color: #f79009; background: var(--warn-soft); }
.near.tone-safe { border-left-color: var(--safe); background: var(--safe-soft); }
.near-num { display: flex; align-items: center; gap: 7px; }


/* ---------- мобильная композиция ---------- */
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 640px) {
  section { padding: 26px 0; }
  .hero { padding: 28px 0 22px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { margin-bottom: 20px; }
  section h2, .hero-sub h1 { font-size: 23px; }
  section .sub { font-size: 15px; margin-bottom: 16px; }

  /* кнопки первого экрана на всю ширину */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; }

  /* карточки и списки плотнее */
  .card { padding: 18px; }
  .chip { padding: 7px 12px; font-size: 14px; }
  .linklist a { font-size: 14px; }
  .catcard .ico { width: 38px; height: 38px; font-size: 18px; margin-bottom: 10px; }
  .catcard h3 { font-size: 17px; }

  /* источники данных читаются как карточки, а не как таблица */
  .src { padding: 12px 14px; }
  .src-name { font-size: 15px; }
  .src-org, .src-what { font-size: 13px; }
  .src-state { font-size: 12px; padding: 3px 10px; }

  footer { padding: 24px 0; }
  footer .cols { gap: 20px; }
}

/* тап-цели не меньше 44px по высоте там, где это ссылки-строки */
@media (max-width: 640px) {
  .linklist a { padding: 11px 0; }
  .near { padding: 12px 14px; }
  .nchip { padding: 11px 10px; }
}

/* на узком экране строка списка перестраивается в две линии, полоса не схлопывается */
@media (max-width: 640px) {
  .cat-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name cnt" "bar bar";
    gap: 6px 10px;
    padding: 9px 0;
  }
  .cat-name { grid-area: name; }
  .cat-cnt { grid-area: cnt; }
  .cat-bar { grid-area: bar; height: 6px; }
}

/* ---------- список организаций ---------- */
.orglist { list-style: none; margin: 0; padding: 0; }
.orgrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.orgrow:last-child { border-bottom: 0; }
.or-main { min-width: 0; }
.or-name { font-size: 16px; font-weight: 600; }
.or-addr { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.or-phone {
  flex: none;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.or-phone:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
@media (max-width: 620px) {
  .orgrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .or-phone { width: 100%; text-align: center; }
}

.or-phones { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 620px) { .or-phones { width: 100%; justify-content: flex-start; } }



/* ---------- подсказки поиска ---------- */
.suggest {
  position: absolute;
  z-index: 40;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, .12);
  overflow: hidden auto;
  max-height: 420px;
}
.sg-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.sg-item:last-child { border-bottom: 0; }
.sg-item:hover { background: var(--brand-soft); text-decoration: none; }
.sg-name { font-size: 15px; font-weight: 600; }
.sg-meta { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sg-meta b { color: var(--brand); font-weight: 600; }

.numpage .crumbs { margin-top: 18px; }
.company-full { margin: 0 0 8px; font-size: 14px; color: var(--ink-3); }

/* ---------- сетка карточных страниц ---------- */
.numpage { padding: 20px 0 40px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); }
.crumbs span { margin: 0 6px; }
.crumbs b { color: var(--ink-2); font-weight: 500; }
.numgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.numcol { min-width: 0; }
.numtop-main { padding: 24px; }
.block-first { margin-top: 0; }
.numgrid h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 700;
}
@media (max-width: 900px) {
  .numgrid { grid-template-columns: 1fr; }
  .numgrid h1 { font-size: 24px; }
}
.card.side { padding: 20px; position: sticky; top: 76px; }
.card.side h2 { font-size: 17px; margin: 0 0 14px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.facts dt {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
}
.facts dd {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
}
.facts dd.small, .facts .small { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.side-note { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.5; }
@media (max-width: 900px) { .card.side { position: static; } }
.block { margin-top: 20px; }
.block h2 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.02em; }
.block .sub { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.intro {
  margin: -6px 0 18px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
}
.intro b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.facts dd.withflag { display: flex; align-items: center; }

/* двухколоночные реквизиты, должны идти после общего .facts */
.facts-wide { display: grid; grid-template-columns: 220px 1fr; gap: 6px 18px; align-items: baseline; }
.facts-wide dt { font-size: 14px; color: var(--ink-3); margin: 0; }
.facts-wide dd { margin: 0; font-size: 15px; }
@media (max-width: 620px) { .facts-wide { grid-template-columns: 1fr; gap: 0 0; } .facts-wide dd { margin-bottom: 8px; } }

/* реквизиты в две колонки: селектор с двумя классами, чтобы точно перебить общий .facts */
dl.facts.facts-wide {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 7px 18px;
  align-items: baseline;
}
dl.facts.facts-wide dt { margin-top: 0; }
@media (max-width: 620px) {
  dl.facts.facts-wide { grid-template-columns: 1fr; gap: 0; }
  dl.facts.facts-wide dd { margin-bottom: 10px; }
}


.sg-all {
  display: block;
  padding: 11px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  position: sticky;
  bottom: 0;
}

/* ---------- мобильное меню ---------- */
.burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  display: block;
  position: absolute;
  left: 11px;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s, opacity .18s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .burger { display: block; }
  .top nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
    padding: 6px 0;
  }
  .top nav.open { display: flex; }
  .top nav a {
    padding: 13px 16px;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .top nav a:last-child { border-bottom: 0; }
  .top-in { position: relative; }
}

/* контакты компании */
.cline { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.cline + .cline { border-top: 1px solid var(--line); }
.clabel { flex: none; width: 90px; font-size: 13px; color: var(--ink-3); padding-top: 8px; }
.cline .or-phones { justify-content: flex-start; }

/* ---------- копирование реквизитов ---------- */
.block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.block-head h2 { margin-bottom: 4px; }
@media (max-width: 620px) {
  .block-head { flex-direction: column; }
  .block-head .btn-ghost { width: 100%; }
}
.cp-row { display: flex; align-items: center; gap: 6px; }
button.cp {
  border: 0;
  background: none;
  color: var(--ink-3);
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 1;
  transition: color .15s, background .15s;
}
button.cp.done { color: var(--safe); }
.btn-ghost.cp { opacity: 1; font-size: 15px; padding: 0 18px; height: 40px; flex: none; }
.cp-side { width: 100%; margin-top: 14px; }

/* иконка копирования */
button.cp, .formats .copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  color: var(--ink-3);
  flex: none;
  opacity: 1;
}
button.cp:hover, .formats .copy:hover { background: var(--brand-soft); color: var(--brand); }
button.cp.done, .formats .copy.done { color: var(--safe); background: var(--safe-soft); }
button.cp.done svg { display: none; }
button.cp.done::after { content: "✓"; font-size: 14px; }

/* значение и кнопка копирования стоят вплотную */
.facts dd.cp-row { justify-content: flex-start; }
.facts dd.cp-row span { flex: none; }
.formats li { justify-content: flex-start; gap: 8px; }
.formats li span { flex: none; }

/* ---------- таблица налогов по годам ---------- */
.fns-wrap { overflow-x: auto; }
table.fns { width: 100%; border-collapse: collapse; font-size: 15px; }
table.fns th, table.fns td {
  padding: 9px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
table.fns thead th {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}
table.fns tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 14px;
}
table.fns tbody tr:last-child th, table.fns tbody tr:last-child td { border-bottom: 0; }
table.fns td { font-weight: 600; }
table.fns td.fns-bad { color: var(--danger); }

.debt-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--warn-soft);
  border: 1px solid #fedf89;
  border-radius: 10px;
  font-size: 13px;
  color: var(--warn);
}
.debt-note a { color: var(--warn); text-decoration: underline; }

/* ---------- налоги по годам: вкладки и полосы ---------- */
.years { margin: 6px 0 4px; }
.fy-radio { position: absolute; opacity: 0; pointer-events: none; }
.year-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.year-tabs::-webkit-scrollbar { display: none; }
.year-tabs label {
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.year-tabs label:hover { color: var(--ink); }
.pane { display: none; }

.bars { display: grid; gap: 10px; }
.bar-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 12px;
}
.bar-label { font-size: 14px; color: var(--ink-2); }
.bar-track { height: 12px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--ink-3);
  transform-origin: left;
  animation: grow .45s cubic-bezier(.22, .8, .3, 1);
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .bar-fill { animation: none; } }
.b-income { background: var(--brand); }
.b-expense { background: #98a2b3; }
.b-profit { background: var(--safe); }
.b-loss { background: var(--danger); }
.b-tax { background: #f79009; }
.b-debt { background: var(--danger); }
.bar-value {
  text-align: right;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dlt { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pane-facts { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.bars-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 620px) {
  /* на узком экране подпись и сумма встают строкой над полосой */
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .bar-label { grid-area: 1 / 1; }
  .bar-value { grid-area: 1 / 2; }
  .bar-track { grid-area: 2 / 1 / 3 / 3; }
  .bars { gap: 16px; }
  .bar-label, .bar-value { font-size: 14px; }
  .dlt { display: inline; margin-left: 6px; }
  .year-tabs label { padding: 9px 13px; }
}

.fy-radio#fy-2018:checked ~ .year-tabs label[for="fy-2018"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2018:checked ~ .year-panes .p-2018 { display: block; }
.fy-radio#fy-2019:checked ~ .year-tabs label[for="fy-2019"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2019:checked ~ .year-panes .p-2019 { display: block; }
.fy-radio#fy-2020:checked ~ .year-tabs label[for="fy-2020"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2020:checked ~ .year-panes .p-2020 { display: block; }
.fy-radio#fy-2021:checked ~ .year-tabs label[for="fy-2021"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2021:checked ~ .year-panes .p-2021 { display: block; }
.fy-radio#fy-2022:checked ~ .year-tabs label[for="fy-2022"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2022:checked ~ .year-panes .p-2022 { display: block; }
.fy-radio#fy-2023:checked ~ .year-tabs label[for="fy-2023"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2023:checked ~ .year-panes .p-2023 { display: block; }
.fy-radio#fy-2024:checked ~ .year-tabs label[for="fy-2024"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2024:checked ~ .year-panes .p-2024 { display: block; }
.fy-radio#fy-2025:checked ~ .year-tabs label[for="fy-2025"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2025:checked ~ .year-panes .p-2025 { display: block; }
.fy-radio#fy-2026:checked ~ .year-tabs label[for="fy-2026"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2026:checked ~ .year-panes .p-2026 { display: block; }
.fy-radio#fy-2027:checked ~ .year-tabs label[for="fy-2027"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2027:checked ~ .year-panes .p-2027 { display: block; }
.fy-radio#fy-2028:checked ~ .year-tabs label[for="fy-2028"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2028:checked ~ .year-panes .p-2028 { display: block; }
.fy-radio#fy-2029:checked ~ .year-tabs label[for="fy-2029"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2029:checked ~ .year-panes .p-2029 { display: block; }
.fy-radio#fy-2030:checked ~ .year-tabs label[for="fy-2030"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2030:checked ~ .year-panes .p-2030 { display: block; }
.fy-radio#fy-2031:checked ~ .year-tabs label[for="fy-2031"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2031:checked ~ .year-panes .p-2031 { display: block; }
.fy-radio#fy-2032:checked ~ .year-tabs label[for="fy-2032"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2032:checked ~ .year-panes .p-2032 { display: block; }
.fy-radio#fy-2033:checked ~ .year-tabs label[for="fy-2033"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2033:checked ~ .year-panes .p-2033 { display: block; }
.fy-radio#fy-2034:checked ~ .year-tabs label[for="fy-2034"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2034:checked ~ .year-panes .p-2034 { display: block; }
.fy-radio#fy-2035:checked ~ .year-tabs label[for="fy-2035"] { color: var(--ink); border-bottom-color: var(--brand); }
.fy-radio#fy-2035:checked ~ .year-panes .p-2035 { display: block; }

/* ---------- шапка карточки компании ---------- */
.co-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.co-head h1 { margin: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--safe-soft); color: var(--safe); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--danger-soft); color: var(--danger); }
.co-full { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.co-chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg);
  font-size: 13.5px;
  color: var(--ink-2);
}
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.kpi-item b {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.kpi-item span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 620px) {
  .kpi { gap: 14px; }
  .kpi-item b { font-size: 19px; }
  .co-full { font-size: 15px; }
}

/* ---------- список источников ---------- */
.srclist { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 12px; }
.srclist li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  position: relative;
}
.srclist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.srclist b { font-weight: 650; font-size: 15px; }
.srclist span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.src-part .src-state { background: var(--brand-soft); color: var(--brand); }
