/* ================================================
   style.css — Проверка-поставщика.рф
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:             #F7F6F2;
  --surface:        #FFFFFF;
  --surface-2:      #F2F1EC;
  --surface-3:      #ECEAE3;
  --border:         #E4E2DA;
  --border-strong:  #C8C5BC;
  --text:           #1C1C1A;
  --text-muted:     #6B6860;
  --text-hint:      #9E9C95;

  --accent:         #1A4A8A;
  --accent-bg:      #EAF1FA;
  --accent-hover:   #153D73;
  --accent-border:  #B5D0EE;

  --green:          #1B6B45;
  --green-bg:       #EAF5F0;
  --green-border:   #C0DDD0;

  --amber:          #7A4E0A;
  --amber-bg:       #FDF3E3;
  --amber-border:   #F0D4A0;

  --red:            #8B2020;
  --red-bg:         #FAEAEA;
  --red-border:     #F0C0C0;

  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
}

html {
  height: 100%;
}
body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Onest', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

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

/* ── TYPOGRAPHY ── */
h1 { font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -.5px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 17px; font-weight: 500; }

.spectral { font-family: 'Spectral', serif; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header .container {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 15px; height: 15px; fill: white; }

.site-nav { display: flex; gap: 2px; }
.site-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--text); font-weight: 500; }

.header-search {
  flex: 1 1 340px;
  max-width: 340px;
  min-width: 220px;
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.header-spacer {
  flex: 1 1 340px;
  max-width: 340px;
  min-width: 220px;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,74,138,.1);
  background: var(--surface);
}
.header-search input {
  flex: 1;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  padding: 0 14px;
  height: 36px;
}
.header-search input::placeholder { color: var(--text-hint); }
.header-search button {
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.header-search button:hover { background: var(--accent-hover); }

.party-suggest-list {
  position: fixed;
  z-index: 400;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  max-height: 320px;
  overflow: auto;
  box-sizing: border-box;
}
.party-suggest-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.party-suggest-item:hover,
.party-suggest-item.is-active {
  background: var(--surface-2);
}
.party-suggest-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.party-suggest-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 148px;
}
.header-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; }
.btn-secondary { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.btn-ghost {
  background: none;
  color: var(--text-muted);
  border-color: var(--border);
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 8px;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-ghost.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline-accent {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: transparent;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}
.btn-outline-accent:hover { background: #d8e8f7; color: var(--accent); }
.btn-sm { font-size: 13px; padding: 7px 14px; border-radius: 8px; }
.btn-full { width: 100%; }

/* ── BADGES & TAGS ── */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.badge-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-border); }
.badge-accent { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ── CARDS / SECTIONS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-body { padding: 24px; }
.card-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-head-title { font-size: 14px; font-weight: 500; color: var(--text); }
.card + .card { margin-top: 16px; }

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.info-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.info-grid .full { grid-column: 1 / -1; }
.info-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 3px;
}
.info-value { font-size: 14px; color: var(--text); line-height: 1.45; }
.info-value.muted { color: var(--text-muted); }
.info-value.green { color: var(--green); font-weight: 500; }
.info-value.red   { color: var(--red); }
.info-value.mono  { font-family: 'Onest', monospace; letter-spacing: .02em; }

/* ── COPY BUTTON ── */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-hint);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
}
.copy-btn:hover { color: var(--accent); background: var(--accent-bg); }
.copy-btn svg { width: 12px; height: 12px; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23EAF5F0'/%3E%3Cpath d='M5 8l2.2 2.2L11 6' stroke='%231B6B45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feature-list.accent li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23EAF1FA'/%3E%3Cpath d='M5 8l2.2 2.2L11 6' stroke='%231A4A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feature-list.sm li { font-size: 13px; }

/* ── TEASER GRID ── */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.teaser-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.teaser-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.teaser-dot.green  { background: #45B078; }
.teaser-dot.amber  { background: #E8A020; }
.teaser-dot.red    { background: #D94040; }
.teaser-dot.gray   { background: var(--border-strong); }
.teaser-text { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.teaser-text strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 1px; }

/* ── ALERT / BANNER ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
}
.alert-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.alert strong { font-weight: 500; display: block; margin-bottom: 2px; }
.alert-amber { background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); }
.alert-amber .alert-icon { background: var(--amber-border); }
.alert-amber strong { color: #5A3800; }
.alert-green { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.alert-green .alert-icon { background: var(--green-border); }
.alert-red   { background: var(--red-bg);   border: 1px solid var(--red-border);   color: var(--red); }
.alert-red .alert-icon { background: var(--red-border); }
.alert-info  { background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent); }
.alert-info .alert-icon { background: var(--accent-border); }

/* ── BREADCRUMBS ── */
.breadcrumbs-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  font-size: 13px;
  color: var(--text-hint);
  white-space: nowrap;
  overflow: hidden;
}
.breadcrumbs a { color: var(--text-hint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-muted); }
.breadcrumbs .sep { color: var(--border-strong); font-size: 11px; }
.breadcrumbs .current { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 18px;
}

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── CONTACT MASKED ── */
.contact-masked { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.contact-masked .mask {
  color: var(--text-hint);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  letter-spacing: .05em;
}

/* ── META CARD ── */
.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-row span:last-child { color: var(--text); font-weight: 500; }

/* ── COMPANY REQS ROW ── */
.reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.req-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.req-label { color: var(--text-hint); }
.req-val { font-weight: 500; color: var(--text); letter-spacing: .02em; }

/* ── RISK FLAGS ── */
.risk-list { display: flex; flex-direction: column; gap: 8px; }
.risk-flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.risk-flag .flag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.risk-flag.ok    .flag-dot { background: #45B078; }
.risk-flag.warn  .flag-dot { background: #E8A020; }
.risk-flag.bad   .flag-dot { background: #D94040; }
.risk-flag.ok    .flag-text { color: var(--text-muted); }
.risk-flag.warn  .flag-text { color: var(--amber); }
.risk-flag.bad   .flag-text { color: var(--red); }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-hint);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child { padding-left: 0; }
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.data-table td:first-child { padding-left: 0; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.strong { color: var(--text); font-weight: 500; }

/* ── REPORT SIDEBAR ── */
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.buy-card-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--border); }
.buy-card-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.buy-card-sub { font-size: 13px; color: var(--text-muted); }
.buy-card-body { padding: 18px 22px; }
.buy-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.buy-price { font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: -.5px; }
.buy-price-note { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.buy-note { font-size: 12px; color: var(--text-hint); text-align: center; margin-top: 10px; line-height: 1.5; }

.sample-report-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.3;
}
.sample-report-link:hover { text-decoration: underline; }
.sample-report-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--red-bg);
  color: var(--red);
  flex-shrink: 0;
}
.sample-report-link.sample-report-link--block {
  margin-top: 12px;
}
.sample-report-link--center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}
.disclaimer { font-size: 12px; color: var(--text-hint); line-height: 1.55; padding: 0 2px; }

/* ── CATALOG LIST TEASERS ── */
.co-teaser-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.co-teaser {
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
  transition: background-color .15s ease, border-color .15s ease;
}
.co-teaser:hover { background-color: var(--surface-2); border-color: var(--border-strong); }
.co-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}
.co-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.co-status--active { color: var(--green); }
.co-status--active .co-status__dot { background: var(--green); }
.co-status--inactive { color: var(--red); }
.co-status--inactive .co-status__dot { background: var(--red); }
/* Ads inside the list are flex children — `gap` already spaces them. */
.co-teaser-list > .ad-placement { margin: 0; }
/* The ad after the list is not a flex child, so it gets no gap and would sit
   flush against the last teaser — reading as that company's own advertising. */
.co-teaser-list + .ad-placement { margin-top: 16px; }
.co-teaser__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.2px;
  margin: 0;
}
.co-teaser__title a {
  color: var(--text);
  text-decoration: none;
}
.co-teaser__title a:hover { color: var(--accent); text-decoration: underline; }
.co-teaser__legal {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}
.co-teaser__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.co-teaser__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-hint);
  min-width: 0;
}
.co-teaser__okved {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.co-teaser__geo { flex-shrink: 0; color: var(--text-muted); }
.co-teaser__dot { color: var(--border-strong); }
.co-teaser__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.co-signal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.co-signal .icon { flex-shrink: 0; opacity: .75; }
.co-signal--value {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}
.co-teaser__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-hint);
  font-variant-numeric: tabular-nums;
}
.region-stats {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.catalog-list-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0 0 16px;
  min-width: 0;
  overflow: hidden;
}
.catalog-list-filters__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.catalog-list-filters__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.catalog-list-filters__row > .catalog-filter-submit {
  grid-column: 1 / -1;
  justify-self: start;
}
.catalog-layout--sidebar .catalog-list-filters__row {
  grid-template-columns: minmax(0, 1fr);
}
.catalog-layout--sidebar .catalog-list-filters__row > .catalog-filter-submit {
  grid-column: auto;
  width: 100%;
}
.catalog-layout--sidebar .catalog-list-filters__row > .catalog-filter-submit .btn {
  width: 100%;
}
@media (min-width: 1100px) {
  .catalog-list-filters__row {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
  }
  .catalog-list-filters__row > .catalog-filter-submit {
    grid-column: auto;
    justify-self: stretch;
  }
  .catalog-layout--sidebar .catalog-list-filters__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout--sidebar .catalog-list-filters__row > .catalog-filter-submit {
    grid-column: 1 / -1;
  }
}
.catalog-list-filters__contacts {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.catalog-list-filters__contacts .catalog-filter-label {
  margin-bottom: 8px;
  padding: 0;
}
.catalog-list-filters__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 40px;
  align-items: center;
}
.catalog-check--any { font-weight: 600; color: var(--text); }
.catalog-check-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  align-self: center;
}
.catalog-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.catalog-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

/* ── CATALOG LIST (legacy table kept for safety) ── */
.company-list {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.company-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 90px 140px;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: background .12s;
}
.company-row > :first-child {
  min-width: 0;
  overflow: hidden;
}
.company-row:hover { background: var(--surface-2); }
.company-row:last-child { border-bottom: none; }
.company-row-name {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.company-row-name a { color: var(--text); text-decoration: none; }
.company-row-name a:hover { color: var(--accent); }
.company-row-inn { color: var(--text-hint); font-size: 13px; font-family: monospace; }
.company-row-okved {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.company-row-city {
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 90px 140px;
  gap: 12px 20px;
  padding: 10px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-hint);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 20px 0 0;
  justify-content: center;
}
.page-btn {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  transition: background .12s, color .12s, border-color .12s;
  text-decoration: none;
}
.page-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn.dots { cursor: default; }
.page-btn.dots:hover { background: none; }

/* ── FOOTER ── */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand { min-width: 0; }
.footer-logo {
  display: inline-flex;
  margin-bottom: 0;
}
.footer-about {
  margin: 16px 0 0;
  max-width: 360px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .9;
  transition: opacity .15s, transform .15s;
}
.footer-social:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-social img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li { margin-bottom: 10px; }
.footer-list a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.35;
}
.footer-list a:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-copy { color: var(--text-muted); }
.footer-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em;
  color: var(--text-muted);
}
.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-credit-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-credit-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
}
.footer-disclaimer {
  margin: 16px 0 0;
  max-width: 80ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-hint);
}

/* ── PROSE / DOCUMENT PAGES ── */
.narrow-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.page-intro { margin-bottom: 28px; }
.page-intro h1 { font-size: 32px; margin-bottom: 10px; }
.page-intro p { color: var(--text-muted); line-height: 1.65; max-width: 720px; }
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.prose-card + .prose-card { margin-top: 16px; }
.prose-card h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.prose-card h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.prose-card p,
.prose-card li {
  color: var(--text-muted);
  line-height: 1.7;
}
.prose-card ul,
.prose-card ol {
  padding-left: 20px;
}
.prose-card li + li { margin-top: 6px; }
.prose-note {
  font-size: 13px;
  color: var(--text-hint);
  margin-top: 16px;
}

/* ── SEARCH FORM (hero) ── */
.hero-search {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,74,138,.12);
}
.hero-search input {
  flex: 1;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  padding: 14px 18px;
}
.hero-search input::placeholder { color: var(--text-hint); }
.hero-search button {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--accent-hover); }

.search-error { margin-top: 9px; font-size: 13px; color: var(--red); display: none; }
.search-hint  { margin-top: 9px; font-size: 13px; color: var(--text-hint); }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-label { font-size: 12px; color: var(--text-hint); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -.3px; }
.stat-sub { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.stat-positive { color: var(--green); font-size: 12px; font-weight: 500; }
.stat-negative { color: var(--red); font-size: 12px; font-weight: 500; }

/* ── ATTENTION LEVEL ── */
.attention-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}
.attention-low    { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.attention-medium { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-border); }
.attention-high   { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.attention-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.attention-low  .attention-dot { background: #45B078; }
.attention-medium .attention-dot { background: #E8A020; }
.attention-high  .attention-dot { background: #D94040; }

/* ── THESIS LIST ── */
.thesis-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.thesis-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}
.thesis-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  text-align: center;
}

/* ── REPORT CONTENT LAYOUT ── */
.report-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.report-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 0;
  position: sticky;
  top: 84px;
}
.toc-label { font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-hint); padding: 0 18px 10px; }
.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 18px;
  transition: background .1s, color .1s;
}
.toc-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.toc-link.active { color: var(--accent); background: var(--accent-bg); }
.toc-link .toc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.toc-link.active .toc-dot { background: var(--accent); }

/* ── UTILITY ── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.flex    { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start   { display: flex; align-items: flex-start; gap: 12px; }
.flex-center  { display: flex; align-items: center; gap: 8px; }
.text-muted   { color: var(--text-muted); }
.text-hint    { color: var(--text-hint); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.font-medium  { font-weight: 500; }
.italic       { font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .report-layout { grid-template-columns: 1fr; }
  .report-toc { position: static; display: none; }
}
@media (max-width: 960px) {
  .site-header .container {
    height: auto;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px 16px;
    flex-wrap: wrap;
  }
  .site-nav {
    order: 3;
    width: 100%;
  }
  .header-search {
    order: 4;
    max-width: none;
    flex-basis: 100%;
  }
  .header-spacer {
    display: none;
  }
  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .header-actions .btn {
    width: auto;
  }
}
@media (max-width: 720px) {
  h1 { font-size: 26px; }
  .page-intro h1 { font-size: 26px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .company-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .company-row-okved, .company-row-city { display: none; }
  .catalog-head { display: none; }
  .hero-search button { padding: 14px 18px; }
}

/* ── D4 PROTOTYPE COMPONENTS ── */
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.page-title { margin-bottom: 8px; }
.page-lead { color: var(--text-muted); max-width: 760px; margin-bottom: 28px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.catalog-layout--sidebar { grid-template-columns: 270px minmax(0, 1fr); }
.catalog-layout--sidebar:not(:has(.catalog-aside)) { grid-template-columns: minmax(0, 1fr); }
.catalog-layout--sidebar > .catalog-main { min-width: 0; }
.catalog-aside { min-width: 0; }
.catalog-sidebar { position: sticky; top: 80px; padding: 0; overflow: hidden; }
.cat-nav-title { font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-hint); padding: 14px 16px 10px; }
.okved-group + .okved-group { border-top: 1px solid var(--border); }
.okved-children { border-top: 1px solid var(--border); background: var(--surface-2); }
.okved-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}
.okved-link--child { padding-left: 28px; }
.okved-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.okved-link.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
span.okved-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: default;
}
span.okved-link.active { color: var(--accent); }
span.okved-link--child { padding-left: 28px; }
.okved-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-hint); min-width: 44px; flex: 0 0 auto; }
.okved-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.okved-count { font-size: 12px; color: var(--text-hint); flex: 0 0 auto; }
.catalog-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; }
.catalog-hero h1 { font-size: 30px; margin-bottom: 8px; }
.catalog-hero p { color: var(--text-muted); max-width: 760px; }
.catalog-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; min-width: 0; overflow: hidden; }
.catalog-panel h2 { font-size: 18px; margin-bottom: 16px; }
.catalog-panel-note { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.catalog-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 4px;
}
.catalog-panel-head h2 { margin-bottom: 0; }
.catalog-panel-count {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-hint);
}
.catalog-sort-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.catalog-sort-inline__label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.catalog-sort-inline .catalog-filter-select {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  min-width: 200px;
}
@media (max-width: 640px) {
  .catalog-panel-head { flex-direction: column; align-items: stretch; }
  .catalog-sort-inline { width: 100%; }
  .catalog-sort-inline .catalog-filter-select { flex: 1; min-width: 0; }
}
/* ── COLLAPSIBLE CATALOG BLOCKS (narrow screens only) ──
   Blocks are expanded by default and collapse only under html.is-narrow, which
   an inline <head> script sets before the first paint (so there is no shift on
   load) and only when JS runs (so no-JS clients keep everything expanded).
   The toggle is a real button: hidden here, revealed by the narrow rules below. */
.catalog-collapse__summary { display: none; }

.catalog-filter-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.catalog-filter-bar__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-muted);
}
.catalog-filter-row {
  display: grid;
  gap: 10px;
  align-items: end;
}
.catalog-filter-row.top { grid-template-columns: 1.4fr 1fr 1fr auto; }
.catalog-filter-row.bottom { grid-template-columns: 1fr 1fr 1fr; }
.catalog-filter-row.geo { grid-template-columns: 1fr 1fr; }
.catalog-filter-group { min-width: 0; }
.catalog-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 6px;
}
.catalog-filter-input,
.catalog-filter-select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.catalog-filter-input:focus,
.catalog-filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,74,138,.1); }
.catalog-filter-select:disabled {
  background: var(--surface-2);
  color: var(--text-hint);
  cursor: not-allowed;
  box-shadow: none;
}
.catalog-filter-submit .btn { height: 40px; white-space: nowrap; }
.catalog-filter-actions { display: flex; justify-content: center; }
.okved-parent-list { display: grid; gap: 10px; }
.okved-parent-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.okved-parent-link:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; }
.okved-parent-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.okved-parent-title { display: block; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.okved-parent-desc { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.city-links-panel,
.okved-child-panel {
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.city-links-title,
.okved-child-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 12px;
}
.city-links-grid,
.okved-child-grid { display: flex; flex-wrap: wrap; gap: 8px; }
/* Revealed only on narrow screens, and only for lists long enough to collapse. */
.chip-panel__toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  min-height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.chip-panel__toggle:hover { background: var(--surface-2); }
.city-link-chip,
.okved-child-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-link-chip:hover,
.okved-child-link:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
  text-decoration: none;
}
.okved-child-link.active {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 500;
}
.okved-child-link--nested {
  border-style: dashed;
}
.region-links-panel {
  margin: 20px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.region-links-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.region-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.region-link { color: var(--text-muted); text-decoration: none; font-size: 13px; line-height: 1.5; }
.region-link:hover { color: var(--text); text-decoration: underline; }
.region-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; }
.region-title { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 6px; overflow-wrap: anywhere; }
.region-meta { font-size: 13px; color: var(--text-muted); }
.category-list { list-style: none; display: grid; gap: 8px; }
.category-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); }
.category-list a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.source-note { padding: 14px 16px; border-radius: var(--radius); background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent); font-size: 13px; }
.source-note strong { display: block; margin-bottom: 3px; }
.source-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.page-layout > main,
.page-layout > aside { min-width: 0; }
.company-header { padding: 28px; }
.co-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.co-top-text { min-width: 0; flex: 1; }
.co-logo {
  width: auto;
  height: auto;
  max-width: min(180px, 30vw);
  max-height: 72px;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}
.co-name { font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 4px; }
.co-short-name { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.co-full-name { font-size: 13px; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.page-anchors {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.page-anchors a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
}
.page-anchors a:hover { color: var(--accent); }
#description, #details, #finance, #activities, #management, #contacts, #employees, #additional {
  scroll-margin-top: 88px;
}
.company-description-text {
  font-size: 15px; line-height: 1.6; color: var(--text); margin: 0;
  white-space: pre-line;
}
.sidebar-sticky { position: sticky; top: 80px; }
.buy-card-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.buy-card-features li { font-size: 13px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.buy-card-features li::before { content: '✓'; color: var(--accent); font-weight: 600; }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}
.contacts-col .info-label { margin-bottom: 8px; }
.contact-list { list-style: none; display: grid; gap: 8px; }
.contact-list a { overflow-wrap: anywhere; }
.workers-chart {
  margin-top: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.workers-chart-track {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 180px;
  width: max-content;
  padding: 4px 2px 0;
}
.workers-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  flex-shrink: 0;
}
.workers-bar-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.workers-bar-rail {
  width: 28px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 8px 8px 4px 4px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.workers-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
  min-height: 8px;
}
.workers-bar-year {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.similar-list { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.similar-item { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.similar-item:last-child { border-bottom: 0; padding-bottom: 0; }
.similar-name { font-weight: 600; text-decoration: none; }
.similar-name:hover { text-decoration: underline; }
.similar-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  margin-top: 4px; font-size: 13px; color: var(--text-muted);
}
.similar-signals { margin-top: 8px; }
.similar-footer {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin-top: 8px; font-size: 12px; color: var(--text-hint);
  font-variant-numeric: tabular-nums;
}
.similar-catalog-links { margin-top: 4px; }
.cta-mobile { display: none; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip {
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-slot { min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-hint); padding: 24px; }
.status-layout { max-width: 680px; margin: 0 auto; padding: 56px 24px 80px; text-align: center; }
.status-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent); font-size: 25px; font-weight: 600; }
.status-icon.error { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.status-icon.warn { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.status-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.status-card { text-align: left; padding: 24px; margin-top: 28px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.smart-captcha-wrap {
  margin: 0 0 18px;
}
.smart-captcha-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--red);
}
.form-control { width: 100%; font: inherit; padding: 11px 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-control:focus { outline: 3px solid rgba(26,74,138,.1); border-color: var(--accent); }
.checkbox-wrap, label.checkbox-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--accent); }
.state-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.state-switch button { font: inherit; font-size: 12px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text-muted); cursor: pointer; }
.state-switch button.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }
[data-profile-state="current"] .archived-only { display: none; }
[data-profile-state="archived"] .current-only { display: none; }
.prototype-note { font-size: 12px; color: var(--text-hint); margin-top: 8px; }
@media (max-width: 800px) {
  /* The header wraps to ~156px here; pinning it would eat a fifth of the
     viewport on every scroll. */
  .site-header { position: static; }
  .catalog-layout,
  .catalog-layout--sidebar { grid-template-columns: 1fr; }
  /* Single column turns DOM order into screen order, which would put the OKVED
     sidebar above the H1. Send it below the company list instead; the links
     stay in the DOM for crawlers. */
  .catalog-aside { order: 2; }
  .catalog-main { order: 1; }
  .catalog-sidebar { position: static; }
  .catalog-filter-row.top,
  .catalog-filter-row.bottom,
  .catalog-filter-row.geo { grid-template-columns: 1fr; }
  .catalog-list-filters__row { grid-template-columns: 1fr; }

  /* The collapse wrapper becomes the card, so the inner form drops its own
     frame and two borders never stack while expanded. */
  .is-narrow .catalog-collapse {
    margin-bottom: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .is-narrow .catalog-collapse__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }
  .is-narrow .catalog-collapse__summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-hint);
    border-bottom: 2px solid var(--text-hint);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s ease;
  }
  .is-narrow .catalog-collapse.is-open > .catalog-collapse__summary::after,
  .is-narrow .catalog-collapse[data-keep-open] > .catalog-collapse__summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .is-narrow .catalog-collapse:not(.is-open):not([data-keep-open]) > .catalog-filter-bar,
  .is-narrow .catalog-collapse:not(.is-open):not([data-keep-open]) > .catalog-list-filters { display: none; }
  .is-narrow .catalog-collapse > .catalog-filter-bar,
  .is-narrow .catalog-collapse > .catalog-list-filters {
    margin-bottom: 0;
    padding-top: 0;
    border: 0;
    background: none;
  }
  /* The toggle already carries the label. */
  .is-narrow .catalog-collapse .catalog-filter-bar__title,
  .is-narrow .catalog-collapse .catalog-list-filters__title { display: none; }

  /* Long chip lists: show a first batch, reveal the rest on tap. */
  .is-narrow .chip-panel:not(.is-expanded) .city-link-chip:nth-child(n+9),
  .is-narrow .chip-panel:not(.is-expanded) .okved-child-link:nth-child(n+9) { display: none; }
  /* Offer the toggle only when there is a 9th chip to reveal. */
  .is-narrow .chip-panel:has(.city-links-grid > :nth-child(9)) .chip-panel__toggle,
  .is-narrow .chip-panel:has(.okved-child-grid > :nth-child(9)) .chip-panel__toggle {
    display: inline-flex;
  }
  .catalog-filter-actions .btn,
  .catalog-list-filters .btn { width: 100%; }
  .contacts-grid { grid-template-columns: 1fr; gap: 16px; }
  .region-grid,
  .region-links-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-cta { display: none; }
  .cta-mobile { display: block; }
  .sidebar-sticky { position: static; }
  .ad-slot { min-height: 140px; }
}
.html-sitemap { max-width: 920px; }
.html-sitemap--wide { max-width: 1120px; }
.html-sitemap__hero { margin-bottom: 28px; }
.html-sitemap__hero h1 {
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 10px;
}
.html-sitemap__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
}
.html-sitemap__section { margin-bottom: 28px; }
.html-sitemap__section h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}
.html-sitemap__section h2 a { color: inherit; text-decoration: none; }
.html-sitemap__section h2 a:hover { color: var(--accent); }
.html-sitemap__list,
.html-sitemap__tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px 24px;
}
.html-sitemap__list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.html-sitemap__list li,
.html-sitemap__tree > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
}
.html-sitemap__list a,
.html-sitemap__tree a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.html-sitemap__list a:hover,
.html-sitemap__tree a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.html-sitemap__count {
  color: var(--text-hint);
  font-size: 13px;
}
.html-sitemap__more {
  margin: 10px 0 0;
  font-size: 14px;
}
.html-sitemap__tree ul {
  list-style: none;
  margin: 8px 0 4px 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.html-sitemap__alpha {
  columns: 3;
  column-gap: 36px;
}
.html-sitemap__letter {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 22px;
  padding-bottom: 4px;
}
.html-sitemap__letter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: "Spectral", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.html-sitemap__letter-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.html-sitemap__letter-body {
  display: grid;
  gap: 14px;
}
.html-sitemap__region-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.html-sitemap__region-title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.html-sitemap__region-title a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.html-sitemap__cities {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.html-sitemap__cities li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-muted);
}
.html-sitemap__cities a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.html-sitemap__cities a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.html-sitemap__letter .html-sitemap__list {
  gap: 6px;
}
@media (max-width: 960px) {
  .html-sitemap__alpha { columns: 2; column-gap: 28px; }
}
@media (max-width: 720px) {
  .html-sitemap__list--columns { grid-template-columns: 1fr; }
  .html-sitemap__alpha { columns: 1; }
}
@media (max-width: 560px) {
  .region-grid,
  .region-links-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo { font-size: 14px; }
  .site-header .container { padding-left: 16px; padding-right: 16px; }
  .site-nav a { padding: 6px 8px; }
  .content-wrap, .page-wrap, .narrow-wrap { padding-left: 16px; padding-right: 16px; }
  .hero-search { flex-direction: column; border-radius: 10px; }
  .hero-search button { width: 100%; }
}

/* Hidden analytics noscript pixel (Yandex.Metrika fallback). */
.ym-noscript-pixel { position: absolute; left: -9999px; }
