:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #16202e;
  --ink-soft: #5b6b80;
  --line: #dfe5ee;
  --accent: #1f5fbf;
  --accent-dark: #16407f;
  --ok: #1c7a4a;
  --warn: #a8620b;
  --off: #7a8394;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 "Segoe UI", Roboto, Arial, sans-serif;
}

.container { width: min(1180px, 94vw); margin: 0 auto; }

/* Шапка */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .5px;
}
.logo-text b { display: block; font-size: 17px; letter-spacing: .3px; }
.logo-text small { color: var(--ink-soft); font-size: 12px; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700;
}

/* Hero и поиск */
.hero {
  background: linear-gradient(160deg, #14345f, #1f5fbf 65%, #2b74d8);
  color: #fff;
  padding: 42px 0 34px;
}
.hero-compact { padding: 26px 0 22px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; }
.hero-sub { margin: 0 0 22px; max-width: 780px; color: #dce7fa; }

.search-form { background: rgba(255,255,255,.98); border-radius: 14px; padding: 14px; box-shadow: 0 10px 30px rgba(10,30,60,.18); }
.search-row { display: flex; gap: 10px; }
.search-row input[type="search"] {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.search-row button {
  padding: 0 30px; font-size: 16px; font-weight: 600; color: #fff;
  background: var(--accent); border: 0; border-radius: 10px; cursor: pointer;
}
.search-row button:hover { background: var(--accent-dark); }
.search-options {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 12px; color: var(--ink-soft); font-size: 13px;
}
.search-options label { display: flex; align-items: center; gap: 7px; }
.search-options select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.check input { margin: 0; }

.counters { display: flex; flex-wrap: wrap; gap: 28px; margin: 24px 0 0; padding: 0; list-style: none; }
.counters li { display: flex; flex-direction: column; }
.counters b { font-size: 24px; }
.counters span { color: #c8d8f2; font-size: 12px; }

/* Основной блок */
main { padding: 30px 0 50px; }
h1 { font-size: 24px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }

.grid-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
@media (max-width: 880px) { .grid-two { grid-template-columns: 1fr; } }

.card-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-list li { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.card-list li:last-child { border-bottom: 0; }
.card-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.card-list a:hover { color: var(--accent); }

.stat-list { list-style: none; margin: 0 0 24px; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.stat-list li { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.stat-list li:last-child { border-bottom: 0; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin-bottom: 12px; }
.link-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.link-list small { display: block; color: var(--ink-soft); }

/* Таблицы */
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.result-count { color: var(--ink-soft); }

table.results { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.results th { text-align: left; padding: 11px 13px; background: #eef3fb; color: var(--ink-soft); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
table.results td { padding: 11px 13px; border-top: 1px solid var(--line); vertical-align: top; }
table.results tbody tr:hover { background: #f7faff; }
table.results a { color: var(--accent); text-decoration: none; }
table.results a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }

.sub { color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; }
.muted { color: var(--ink-soft); }

/* Бейджи и теги */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #e2f4e9; color: var(--ok); }
.badge.off { background: #eceff4; color: var(--off); }
.badge.warn { background: #fdf0dd; color: var(--warn); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eef3fb; color: var(--accent-dark); font-size: 12px; }
.tag.muted { background: #f0f2f6; color: var(--ink-soft); }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 5px; font-size: 12.5px; color: var(--ink-soft); }
.meta .reg { font-family: Consolas, monospace; color: var(--accent-dark); }

/* Карточка */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.card-head h1 { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; }
.card-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.card-section:first-of-type { border-top: 0; padding-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.props { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: 0; margin: 0; }
.props dt { padding: 9px 12px 9px 0; color: var(--ink-soft); font-size: 13.5px; border-bottom: 1px solid #f0f3f8; }
.props dd { padding: 9px 0; margin: 0; border-bottom: 1px solid #f0f3f8; word-break: break-word; }
@media (max-width: 700px) { .props { grid-template-columns: 1fr; } .props dt { border-bottom: 0; padding-bottom: 0; } }

.card-source { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

.breadcrumbs { margin-bottom: 14px; color: var(--ink-soft); font-size: 13.5px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar input, .filter-bar select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; }
.filter-bar input { flex: 1; min-width: 240px; }
.filter-bar button { padding: 0 22px; background: var(--accent); color: #fff; border: 0; border-radius: 9px; font-weight: 600; cursor: pointer; }

.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 22px; color: var(--ink-soft); }
.pager a { color: var(--accent); text-decoration: none; font-weight: 500; }

.empty { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; color: var(--ink-soft); }

/* Подвал */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; color: var(--ink-soft); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }

/* --- Тарифы --- */
.tariff-block {
  margin-top: 34px;
  padding: 28px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tariff-offer { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.tariff-kicker { display: inline-block; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.tariff-offer-head h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 8px 0 6px; }
.tariff-offer-head p { margin: 0; max-width: 620px; }

.tariff-price { text-align: right; }
.tariff-sum { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; line-height: 1.05; color: var(--accent-dark); white-space: nowrap; }
.tariff-vat { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.tariff-term { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }

.tariff-offer > .button-primary { margin-top: 6px; }

.tariff-columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 880px) { .tariff-columns { grid-template-columns: 1fr; } .tariff-price { text-align: left; } }

.tariff-col h3 { font-size: 15px; margin: 0 0 12px; color: var(--ink); }
.tariff-note { margin: 14px 0 0; font-size: 13px; }

.tick-list, .dot-list, .num-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: 0 0 14px 30px; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e2f4e9; color: var(--ok); font-size: 12px; font-weight: 700;
}
.tick-list b { display: block; }
.tick-list span { color: var(--ink-soft); font-size: 13.5px; }

.dot-list li { position: relative; padding: 0 0 10px 18px; color: var(--ink); font-size: 14px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dot-list li span { display: block; color: var(--ink-soft); font-size: 13px; }

.num-list { counter-reset: step; }
.num-list li { position: relative; padding: 0 0 10px 28px; font-size: 14px; }
.num-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  background: #eef3fb; color: var(--accent-dark); font-size: 11.5px; font-weight: 700;
}

/* Кнопки */
.button-primary {
  display: inline-block; padding: 12px 24px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button-primary:hover { background: var(--accent-dark); }
.button-ghost {
  display: inline-block; padding: 11px 20px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--accent-dark); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button-ghost:hover { border-color: var(--accent); }

/* Страница тарифа */
.tariff-page { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .tariff-page { grid-template-columns: 1fr; } }

.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.plan-head h2 { font-size: clamp(20px, 2.2vw, 25px); margin: 0 0 4px; }
.plan-head p { margin: 0; }
.plan-price { margin: 20px 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-sum { font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: var(--accent-dark); line-height: 1.05; }
.plan-vat { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; }
.plan-term { margin-top: 10px; font-weight: 600; }
.plan h3 { font-size: 15px; margin: 24px 0 12px; }
.plan-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

.plan-aside { display: grid; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.panel-soft { background: #f8fafd; }
.panel h3 { font-size: 15px; margin: 0 0 12px; }
.panel .stat-list { background: transparent; border: 0; margin: 0 0 10px; }
.panel .stat-list li { padding: 8px 0; }
.panel p:last-child { margin-bottom: 0; }
.small { font-size: 12.5px; }

/* Закрытый раздел */
.locked { border: 1px solid #dbe4f2; background: linear-gradient(180deg, #f7faff, #ffffff); border-radius: 12px; padding: 20px 22px; }
.locked-head { display: flex; gap: 14px; align-items: flex-start; }
.lock-icon { font-size: 22px; line-height: 1; }
.locked-head b { display: block; margin-bottom: 6px; }
.locked-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.locked-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 10px; }
.locked .small { margin: 0; }

/* --- Коммерческий контур: корзина, заказы, КП --- */
.cart-table td { vertical-align: middle; }
.cart-table tfoot td { background: #f7faff; font-size: 15px; }
.cart-table .right { text-align: right; }

.qty-input { width: 62px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.button-mini {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--accent-dark); font-size: 13px; font-weight: 600; cursor: pointer;
}
.button-mini:hover { border-color: var(--accent); background: #f4f8ff; }
.button-mini.danger { color: #a02020; }
.button-mini.danger:hover { border-color: #d09090; background: #fff5f5; }

.add-form { display: flex; gap: 6px; align-items: center; }

.offer-table td { vertical-align: middle; }

.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 16px; }
.supplier-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.supplier-card h3 { margin: 0 0 4px; font-size: 16px; }
.supplier-card h3 a { color: var(--accent); text-decoration: none; }
.supplier-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 12px; }
.order-form .field { margin-bottom: 10px; }
.field label { display: block; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; background: #fff; color: var(--ink);
}

.notice, .notice-warn { border-radius: 12px; padding: 16px 18px; margin: 16px 0; font-size: 14px; }
.notice { background: #f2f6fd; border: 1px solid #d5e2f5; }
.notice-ok { background: #eaf7ef; border: 1px solid #bfe3cd; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; font-size: 14px; }
.notice-warn { background: #fdf6e9; border: 1px solid #f0dcb4; }
.notice p, .notice-warn p { margin: 6px 0 0; }

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }

.seal-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.seal-img { width: 140px; height: 140px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.claim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 14px; }
.claim-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fbfcfe; }
.claim-card header { margin-bottom: 10px; }
.claim-card header b a { color: var(--accent); text-decoration: none; }
.claim-status { padding-top: 6px; }
.claim-form summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0; }
.claim-form form { margin-top: 12px; }
.claim-form .field { margin-bottom: 10px; }
.contact-props { margin-top: 16px; }

/* Контейнер содержимого первого экрана */
.hero-inner { width: 100%; }

.meta .date { color: var(--ink-soft); }

/* --- Личный кабинет, регистрация и вход --- */
.auth-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.auth-wrap.auth-narrow { grid-template-columns: minmax(0, 560px); justify-content: center; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }

.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.auth-card h1 { font-size: clamp(20px, 2.2vw, 25px); margin: 0 0 8px; }
.auth-step { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-step:first-of-type { border-top: 0; padding-top: 0; }
.auth-step .field:last-of-type { margin-bottom: 14px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.auth-aside { display: grid; gap: 18px; }
.auth-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.form-message { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-message.ok { color: var(--ok); }
.form-message.error { color: #b03030; }

.demo-code {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #fdf6e9; border: 1px solid #f0dcb4; font-size: 13.5px;
}
.demo-code .code { font-family: Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: 2px; color: #8a5a00; }

.role-picker { display: grid; gap: 10px; }
.role-picker.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 16px; }
.role-option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; cursor: pointer; }
.role-option:hover { border-color: var(--accent); }
.role-option input { margin-top: 3px; }
.role-option b { display: block; font-size: 14px; }
.role-option small { display: block; color: var(--ink-soft); font-size: 12.5px; }

.cab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cab-head h1 { margin: 0 0 4px; }
.cab-tabs { display: flex; gap: 16px; }
.cab-tabs a { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.cab-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 980px) { .cab-grid { grid-template-columns: 1fr; } }
.card-org h2 { font-size: 19px; }
.cab-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.props.compact { grid-template-columns: minmax(150px, 40%) 1fr; }
.props.compact dt, .props.compact dd { padding: 6px 0; font-size: 13.5px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: span 2; }
@media (max-width: 700px) { .form-grid .wide { grid-column: span 1; } }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.upload-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sign-img { width: 200px; height: auto; max-height: 120px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li { padding: 9px 0; border-bottom: 1px solid #f0f3f8; font-size: 14px; }
.role-list li:last-child { border-bottom: 0; }
.mt { margin-top: 20px; }
.badge.big { font-size: 14px; padding: 6px 14px; }
.nav-login { color: var(--accent); font-weight: 600; }

/* --- Контакты организации, отметки использования, закрепление карточки --- */
.contacts-table td { vertical-align: middle; }
.contacts-table tr.contact-used { background: #f6f9f7; }
.contacts-table tr.contact-used td { opacity: 0.78; }

.used-mark {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: #e2f4e9; color: var(--ok); font-size: 11.5px; font-weight: 600;
  margin-bottom: 6px;
}

.check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 13.5px; }
.filter-bar .check { white-space: nowrap; }

#claim-card .claim-form { margin-top: 10px; }
#claim-card .claim-form form { margin-top: 14px; }
#claim-card .field { margin-bottom: 10px; }

/* --- Согласия и юридические документы --- */
.consent-block {
  margin: 18px 0 18px; padding: 16px 18px; border-radius: 12px;
  background: #fbfcfe; border: 1px solid var(--line);
}
.consent-head { font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13.5px; cursor: pointer; }
.consent-row:last-of-type { margin-bottom: 6px; }
.consent-row input { margin-top: 3px; flex-shrink: 0; }
.consent-row.required span::after { content: " *"; color: #b03030; font-weight: 700; }
.consent-row a { color: var(--accent); }

.legal-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .legal-wrap { grid-template-columns: 1fr; } }
.legal-doc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; }
.legal-doc h1 { font-size: 22px; margin: 0 0 14px; }
.legal-doc h2 { font-size: 17px; margin: 24px 0 8px; }
.legal-doc p { margin: 0 0 10px; line-height: 1.6; }
.legal-doc ul { margin: 0 0 12px 20px; padding: 0; }
.legal-doc li { margin-bottom: 5px; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.legal-meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legal-aside { display: grid; gap: 18px; }

.source-tag { text-decoration: none; }
.source-tag:hover { background: #e2ecfa; }
.okpd-input { width: 150px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
.okpd-link { color: var(--accent); text-decoration: none; font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 13px; }
.okpd-link:hover { text-decoration: underline; }
.okpd-code { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef3fb; color: var(--accent-dark); font-family: Consolas, monospace; font-size: 12.5px; }
.synonym { color: var(--accent); text-decoration: none; font-size: 13px; }
.synonym:hover { text-decoration: underline; }

/* Блок вариантов исполнения: в одном удостоверении их бывает до нескольких
   сотен, поэтому список ограничен по высоте и снабжён отбором внутри списка */
.variants-block { margin-bottom: 26px; }
.variants-block h2 { font-size: 17px; margin-bottom: 10px; }
.section-head { font-size: 17px; margin: 22px 0 10px; }
.variant-group { margin-bottom: 20px; }
.variant-group h3 { font-size: 15px; margin: 0 0 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.variant-filter { width: 100%; max-width: 380px; padding: 7px 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.variant-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.variant-list li { padding: 7px 11px; border-bottom: 1px solid #eef1f6; font-size: 13.5px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.variant-list li:last-child { border-bottom: 0; }
.variant-list li.hidden { display: none; }
.variant-list a { color: var(--accent); text-decoration: none; }
.variant-list a:hover { text-decoration: underline; }
.variant-cell { font-size: 12.5px; color: var(--accent-dark); background: #f4f7fc; border-radius: 6px; padding: 3px 8px; margin-top: 4px; display: inline-block; }
.variant-link { color: var(--accent); text-decoration: none; }
.composition-text { max-height: 300px; overflow-y: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.siblings { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.siblings li { margin-bottom: 6px; font-size: 13.5px; break-inside: avoid; }
.siblings a { color: var(--accent); text-decoration: none; }
.siblings a:hover { text-decoration: underline; }
.reg-link { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Панель расширенных фильтров. Скрыта по умолчанию: строка поиска должна
   оставаться простой, точный отбор нужен реже */
.filters-toggle { position: relative; }
.filters-count { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; }
.filters-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfcfe; }
.filter-group { border: 0; padding: 0; margin: 0 0 14px; }
.filter-group:last-of-type { margin-bottom: 6px; }
.filter-group legend { font-size: 12.5px; font-weight: 600; color: #4a5a70; text-transform: uppercase; letter-spacing: .04em; padding: 0; margin-bottom: 8px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 18px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field > span { font-size: 12.5px; color: #4a5a70; }
.filter-field input, .filter-field select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
.filter-field small, .filter-check small { font-size: 11.5px; color: #7b8798; line-height: 1.4; }
.filter-check { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; padding-top: 18px; }
.filter-check > span { font-size: 13px; }
.filter-check small { flex-basis: 100%; }
.filters-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.filters-summary { font-size: 12.5px; color: #7b8798; }
.empty-actions { margin-top: 12px; }

/* Сообщение о результате действия. Показывается поверх страницы: без него
   отклонённое сервером действие выглядит как «кнопка не работает» */
.notice-dynamic { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; max-width: 560px; padding: 13px 18px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 8px 28px rgba(15, 35, 70, .18); }
.notice-dynamic.ok { background: #e9f7ef; border: 1px solid #9ed7b4; color: #1d5b36; }
.notice-dynamic.warn { background: #fdf4e6; border: 1px solid #e8c98a; color: #7a5310; }
.locked-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* Предупреждение о невозможности заказа: показывается, когда удостоверение
   отменено, недействительно или срок истёк */
.notice-block { margin-top: 12px; padding: 13px 16px; border-radius: 10px; background: #fdf4e6; border: 1px solid #e8c98a; color: #6d4a0d; }
.notice-block b { display: block; margin-bottom: 4px; font-size: 14px; }
.notice-block p { margin: 0; font-size: 13px; line-height: 1.55; }

/* Формы предложения цены и запроса: свёрнуты, чтобы не перегружать
   карточку, когда предложений ещё нет */
.price-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; align-items: flex-start; }
.price-form { flex: 1 1 320px; max-width: 460px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.price-form summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent-dark); }
.price-form[open] summary { margin-bottom: 8px; }
.stack-form { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.stack-form .field { display: flex; flex-direction: column; gap: 3px; }
.stack-form label { font-size: 12.5px; color: #4a5a70; }
.stack-form input[type="text"], .stack-form input[type="number"] { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.site-footer a { color: var(--accent); }
