/* Твой закон — v7. Значения цветов, шрифтов и отступов взяты из макета «Главная — десктоп». */
:root {
  --ink: #0F1B2D; --ink-2: #24324A; --muted: #4A5568; --line: #E2E6EC; --line-2: #CBD2DC;
  --bg: #F5F6F8; --card: #FFFFFF; --soft: #F1F3F7; --soft-2: #EEF1F6;
  --blue: #1F4FD8; --blue-ink: #1A44C2; --blue-dark: #12308A; --blue-soft: #E8EEFC; --blue-ring: #D7E1FA;
  --hero: #0F1B2D; --hero-line: #33425C; --hero-text: #C9D3E6; --hero-eyebrow: #A9BCF0;
  --ok: #1E8A3C; --bad: #C2364F; --warn: #B4561B;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 'Golos Text', system-ui, sans-serif; }
a { color: var(--blue-ink); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: 'Golos Text', sans-serif; letter-spacing: -0.01em; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 48px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bad { color: var(--bad); }

/* Кнопки */
.btn, .btn-outline, .btn-ghost, .btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font: 600 15px/1 'Golos Text', sans-serif; text-decoration: none; cursor: pointer; }
.btn { background: var(--blue); color: #fff; border: 0; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-outline, .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-text { background: none; border: 0; color: var(--ink); padding: 0 12px; }
.btn.block { width: 100%; }
.link-strong { font-weight: 600; text-decoration: none; }

/* Шапка */
.admin-strip { background: #2A1458; color: #E6DEFF; font-size: 14px; }
.admin-strip .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; min-height: 40px; }
.admin-strip a { color: #fff; text-decoration: none; opacity: .85; }
.admin-strip a:hover { opacity: 1; text-decoration: underline; }
.admin-strip .push { margin-left: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: 'Golos Text', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand-name.small { font-size: 15px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 500; flex: 1 1 auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 8px; align-items: center; }

.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); border: 1px solid var(--blue-ring); }
.flash-error { background: #FDECEF; color: #8E1F33; border-color: #F5C2CC; }
.flash-success { background: #E9F6EE; color: #17602B; border-color: #BFE3CB; }

/* Герой */
.hero { background: var(--hero); color: #fff; }
.hero-in { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.hero-small .hero-in { padding-top: 48px; padding-bottom: 44px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-eyebrow); }
.eyebrow a { color: inherit; }
.hero h1 { font-weight: 800; font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; max-width: 840px; }
.hero-small h1 { font-size: 40px; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--hero-text); max-width: 700px; }
.hero-search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 720px; margin-top: 6px; }
.hero-search input { flex: 1 1 320px; min-height: 52px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--hero-line); background: #fff; color: var(--ink); font: 16px 'Golos Text', sans-serif; }
.hero-search button { min-height: 52px; padding: 0 28px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font: 600 16px 'Golos Text', sans-serif; cursor: pointer; }
.hero-sources { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--hero-text); }
.chip-dark { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hero-line); }

/* Заголовки секций */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head h2, .section-head h1 { font-weight: 800; font-size: 34px; }
.section-head p { margin: 8px 0 0; max-width: 640px; }
.h-sub { font-size: 22px; font-weight: 800; margin: 36px 0 14px; }

/* Карточки типов организаций */
.org-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 28%; background: var(--org); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tcard { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid #DDE1E7; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tcard:hover { border-color: var(--org); box-shadow: 0 0 0 3px color-mix(in srgb, var(--org) 16%, transparent); color: var(--ink); transform: translateY(-1px); }
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tcard-name { font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 21px; line-height: 1.25; }
.tcard-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.subchip { font-size: 13px; background: var(--soft); color: var(--ink-2); border-radius: 6px; padding: 5px 9px; }
.more { font-size: 13px; color: var(--blue-ink); font-weight: 600; padding: 5px 4px; }

/* Фильтры */
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sub-row { border-top: 1px solid #EEF0F3; padding-top: 14px; }
.filter-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.pill:hover { border-color: var(--blue); color: var(--ink); }
.pill.is-sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 8px; background: var(--soft-2); color: var(--ink-2); border: 1px solid transparent; font-size: 13px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: #9FB2E6; color: var(--ink-2); }
.chip.is-sel { background: #E3EAFD; color: var(--blue-dark); border-color: var(--blue); }
.inline-search { display: flex; gap: 8px; }
.inline-search input { flex: 1; min-height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); font: 15px 'Golos Text', sans-serif; }

/* Лента */
.feed-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.news-card, .act-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.news-card.is-pinned { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.is-hidden { opacity: .55; border-style: dashed; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.news-date { color: var(--muted); margin-left: auto; white-space: nowrap; }
.tag { background: var(--soft); color: var(--ink-2); border-radius: 6px; padding: 4px 8px; text-decoration: none; font-size: 13px; }
a.tag:hover { color: var(--blue-dark); background: #E3EAFD; }
.tag-org { background: var(--blue-soft); color: #1A3FAF; font-weight: 600; }
.tag-muted { color: var(--muted); }
.tag-new { background: #E9F6EE; color: #17602B; font-weight: 600; }
.tag-pin { background: var(--blue); color: #fff; }
.tag-hidden { background: #FDECEF; color: #8E1F33; }
.tag-bill { background: var(--ink); color: #fff; font-weight: 600; }
.tag-status { background: #FFF4E5; color: #8A4B0F; }
.tag-msk { background: #FDECEF; color: #8E1F33; font-weight: 600; }
.tag-fed { background: var(--blue-soft); color: #1A3FAF; font-weight: 600; }
.news-card h3 { font-weight: 700; font-size: 19px; line-height: 1.35; }
.act-card h4 { font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.35; }
.newslink { color: var(--ink); text-decoration: none; }
.newslink:hover { color: var(--blue); text-decoration: underline; }
.news-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); align-items: center; }
.news-foot strong { color: var(--ink-2); font-weight: 600; }
.fav { margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; min-width: 34px; min-height: 30px; font-size: 16px; cursor: pointer; color: var(--muted); }
.fav.on { color: #C98A00; border-color: #E8C46A; background: #FFF8E1; }

/* Описания ИИ */
.ai { display: flex; flex-direction: column; gap: 6px; }
.ai-brief { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ai-brief.big { font-size: 17px; color: var(--ink-2); padding: 14px 18px; background: var(--blue-soft); border-radius: 10px; }
.ai-none { margin: 0; font-size: 14px; color: #8A93A3; font-style: italic; }
.ai-wait { margin: 0; font-size: 14px; color: var(--blue-ink); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.spoiler summary, .provisions summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue-ink); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.spoiler summary::before, .provisions summary::before { content: '▸'; transition: transform .15s; }
.spoiler[open] summary::before, .provisions[open] summary::before { transform: rotate(90deg); }
.spoiler summary::-webkit-details-marker, .provisions summary::-webkit-details-marker { display: none; }
.ai-full { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.ai-full p { margin: 0 0 10px; }
.spoiler .ai-full { margin-top: 10px; padding: 14px 16px; border-left: 3px solid var(--blue); background: #FAFBFD; border-radius: 0 8px 8px 0; }
.provisions ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }

/* Админ-кнопки на карточках */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed #D9CCF5; }
.admin-bar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5B2DB8; margin-right: 4px; }
.abtn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 11px; border-radius: 7px; border: 1px solid #D9CCF5; background: #F7F3FF; color: #3F1D8A; font: 500 13px 'Golos Text', sans-serif; cursor: pointer; text-decoration: none; }
.abtn:hover { border-color: #7A3FD1; color: #2A1458; }
.abtn.primary { background: #5B2DB8; border-color: #5B2DB8; color: #fff; }
.abtn.primary:hover { background: #45208F; color: #fff; }
.abtn:disabled { opacity: .45; cursor: default; }
.admin-status { font-size: 12px; color: var(--muted); margin-left: auto; }
.admin-status.st-error { color: var(--bad); }
.admin-status.st-done { color: var(--ok); }
.admin-status.st-queued, .admin-status.st-processing { color: var(--blue-ink); }
.admin-panel-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; margin: 20px 0 0; border: 1px solid #D9CCF5; background: #FBF9FF; border-radius: 12px; }
.admin-panel-inline form { margin: 0; }
.editor { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
.editor textarea { width: 100%; min-height: 70px; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; font: 14px/1.5 'Golos Text', sans-serif; }
.editor textarea.full { min-height: 220px; }

/* Боковые панели */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { font-weight: 700; font-size: 18px; }
.panel.thin { padding: 14px 18px; gap: 6px; }
.panel.thin ul { margin: 0; padding-left: 18px; }
.panel-dark { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel-dark h3 { font-size: 20px; font-weight: 700; }
.panel-dark p { margin: 0; font-size: 14px; color: var(--hero-text); }
.mini-bill { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink-2); font-size: 14px; line-height: 1.4; padding: 8px 0; border-bottom: 1px solid #EEF0F3; }
.mini-bill:hover { color: var(--blue); }
.mini-bill .tag { flex: none; }
.stats, .legend { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.stats strong, .legend strong { color: var(--ink-2); }
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; padding: 32px; text-align: center; color: var(--muted); }


/* Страница организации */
.org-hero { background: linear-gradient(135deg, var(--hero) 0%, color-mix(in srgb, var(--org) 45%, var(--hero)) 100%); color: #fff; }
.org-hero-in { display: flex; gap: 28px; align-items: flex-start; padding-top: 52px; padding-bottom: 48px; }
.org-hero.compact .org-hero-in { padding-top: 36px; padding-bottom: 32px; }
.org-hero .org-logo { box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.org-hero-text { display: flex; flex-direction: column; gap: 14px; }
.org-hero h1 { font-size: 44px; font-weight: 800; line-height: 1.1; }
.org-hero.compact h1 { font-size: 34px; }
.org-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.org-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.org-hero .btn-outline:hover { border-color: #fff; color: #fff; }
.org-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.org-chip, .org-inline { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.org-chip { padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* Все законы организации */
.laws-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding-right: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; padding: 5px 8px; border-radius: 6px; display: flex; justify-content: space-between; gap: 8px; }
.toc a:hover { background: var(--soft-2); }
.toc-part { margin: 14px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.part-title { font-size: 24px; font-weight: 800; margin: 36px 0 10px; }
.law-sub { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; scroll-margin-top: 90px; }
.law-sub h3 { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.notes p { margin: 0; font-size: 14px; color: var(--muted); }

/* Детальные страницы */
.detail-layout { display: flex; gap: 28px; align-items: flex-start; }
.detail { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.detail.narrow { max-width: 900px; }
.detail-title { font-size: 28px; line-height: 1.25; font-weight: 800; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back { font-size: 14px; text-decoration: none; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 8px 0 0; }
.prov-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.facts { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Чат */
.chat { width: 380px; flex: none; position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-close { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.chat-quick button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; font: 13px 'Golos Text', sans-serif; cursor: pointer; }
.chat-msgs { flex: 1; overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.msg { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; max-width: 92%; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; }
.msg.assistant { background: var(--soft); color: var(--ink-2); }
.chat-form { display: flex; gap: 8px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px; font: 14px 'Golos Text', sans-serif; }

/* Формы */
.auth { display: flex; justify-content: center; padding-top: 56px; padding-bottom: 72px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 28px; font-weight: 800; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input:not([type=checkbox]), select { min-height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); font: 15px 'Golos Text', sans-serif; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-ring); border-color: var(--blue); }
.code-input { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-family: 'Golos Text', sans-serif !important; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.profile h1 { font-size: 34px; font-weight: 800; margin-bottom: 24px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

/* Админ-панель */
.worker { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.worker.ok { background: #E9F6EE; color: #17602B; }
.worker.bad { background: #FDECEF; color: #8E1F33; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi strong { font-family: 'Golos Text', sans-serif; font-size: 32px; font-weight: 800; }
.kpi em { font-style: normal; font-size: 13px; color: var(--muted); }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; margin-top: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row form { margin: 0; }
.src-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #EEF0F3; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table.compact th, .table.compact td { padding: 8px 12px; }
.table form { display: flex; align-items: center; gap: 10px; margin: 0; }
.num { font-family: 'Golos Text', sans-serif; font-weight: 800; min-width: 32px; display: inline-block; }
.admin h1 { font-size: 30px; font-weight: 800; }

/* Подвал */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 12px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-note { font-size: 12px; color: #8A93A3; padding-bottom: 28px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; transition: transform .2s, opacity .2s, visibility .2s; z-index: 50; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .laws-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: 280px; }
  .detail-layout { flex-direction: column; }
  .chat { width: 100%; position: static; }
  .aside { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 34px; }
  .hero-small h1, .org-hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-in { padding-top: 44px; padding-bottom: 40px; }
  .type-grid { grid-template-columns: 1fr; }
  .section-head h2, .section-head h1 { font-size: 26px; }
  .org-hero-in { flex-direction: column; gap: 16px; }
  .news-card, .act-card { padding: 16px; }
  .detail { padding: 20px; }
  .facts { grid-template-columns: 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
  .main-nav { gap: 14px; font-size: 14px; order: 3; flex-basis: 100%; }
  .news-date { margin-left: 0; }
}

/* ===== v8: стадии законопроекта ===== */
.stages { --done: #1E8A3C; --cur: #1F4FD8; --rej: #C2364F; --todo: #CBD2DC; display: flex; flex-direction: column; gap: 8px; }
.stages-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stages-label { font-weight: 700; color: var(--cur); }
.outcome-law .stages-label { color: var(--done); }
.outcome-rejected .stages-label { color: var(--rej); }
.stages-note { color: var(--muted); cursor: help; }
.stages-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.st::before { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--todo); z-index: 0; }
.st:first-child::before { display: none; }
.st-done::before, .st-current::before, .st-rejected::before { background: var(--done); }
.st-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 11px/1 'Golos Text', sans-serif; background: #fff; border: 2px solid var(--todo); color: #8A93A3; }
.st-done .st-dot { background: var(--done); border-color: var(--done); color: #fff; }
.st-current .st-dot { background: var(--cur); border-color: var(--cur); color: #fff; box-shadow: 0 0 0 4px #D7E1FA; animation: stpulse 2s infinite; }
.st-rejected .st-dot { background: var(--rej); border-color: var(--rej); color: #fff; }
@keyframes stpulse { 50% { box-shadow: 0 0 0 7px rgba(31,79,216,.12); } }
.st-name { font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.st-current .st-name { color: var(--cur); font-weight: 700; }
.st-done .st-name { color: var(--ink-2); }
.st-rejected .st-name { color: var(--rej); font-weight: 700; }
.stages-compact { padding: 10px 12px 8px; background: #FAFBFD; border: 1px solid #EEF0F3; border-radius: 10px; }
.stages-compact .st-name { display: none; }
.stages-compact .st-current .st-name, .stages-compact .st-rejected .st-name { display: none; }
.stages-full { padding: 18px 16px 14px; background: #FAFBFD; border: 1px solid #EEF0F3; border-radius: 12px; }
.stages-full .stages-label { font-size: 15px; }
.stages-full .st-dot { width: 30px; height: 30px; font-size: 12px; }
.stages-full .st::before { top: 14px; }
.stages-full .st-name { font-size: 12px; }

/* ===== v8: рекомендации ===== */
.advice-spoiler summary { color: #8A4B0F; }
.advice { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.advice p { margin: 0 0 6px; }
.advice-spoiler .advice { margin-top: 8px; padding: 12px 14px; background: #FFF8EC; border-left: 3px solid #E8A33D; border-radius: 0 8px 8px 0; }
.advice-panel { background: #FFF8EC; border: 1px solid #F3DDB3; border-radius: 12px; padding: 16px 20px; }
.advice-panel h3 { font-size: 16px; margin-bottom: 8px; color: #8A4B0F; }
.advice-lock { font-size: 13px; color: #8A4B0F; text-decoration: none; }
.advice-lock:hover { text-decoration: underline; color: #6B3A0C; }
.rec-box { background: linear-gradient(135deg, #F4EEFF, #EEF3FF); border: 1px solid #D9CCF5; border-radius: 12px; padding: 14px 18px; }
.rec-box strong { color: #45208F; font-size: 14px; }
.rec-box p { margin: 4px 0 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.rec-box p:last-child { margin-bottom: 0; }

/* ===== v8: регистрация ===== */
.req { color: var(--bad); font-weight: 700; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); min-height: 1em; }
.hint.bad { color: var(--bad); } .hint.ok { color: var(--ok); }
.pass-field { position: relative; display: flex; }
.pass-field input { flex: 1; padding-right: 48px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 38px; border: 0; background: none;
  color: var(--muted); cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.eye:hover { color: var(--blue); background: var(--soft); }
.eye .eye-off { display: none; }
.eye.on .eye-off { display: inline; } .eye.on .eye-open { display: none; }
input.invalid { border-color: var(--bad); }

/* ===== v8: организации в ЛК ===== */
.orgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.org-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.org-card p { margin: 0; }
.org-card-head { display: flex; gap: 12px; align-items: flex-start; }
.org-card-head > div { flex: 1; min-width: 0; }
.org-status { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.status-ready .org-status { background: #E9F6EE; color: #17602B; }
.status-pending .org-status { background: var(--blue-soft); color: var(--blue-dark); }
.status-error .org-status { background: #FDECEF; color: #8E1F33; }
.org-card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; border-top: 1px solid #EEF0F3; padding-top: 10px; }
.org-card-foot form { margin: 0; } .org-card-foot .small { min-height: 30px; padding: 0 8px; font-size: 13px; }
.org-card-foot > span { margin-right: auto; }
.org-add { border-style: dashed; background: #FBFCFE; }
.org-add textarea { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; font: 14px 'Golos Text', sans-serif; }

/* ===== v8: страница подписки ===== */
.sub-hero { background: radial-gradient(1200px 500px at 85% -10%, #3B2A8C 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #123E8F 0%, transparent 55%), var(--hero); color: #fff; overflow: hidden; }
.sub-hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.sub-hero-text { display: flex; flex-direction: column; gap: 20px; }
.sub-hero h1 { font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.sub-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; border-radius: 10px; }
.btn-ghost-dark { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-weight: 600; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.sub-proof { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; color: var(--hero-text); font-size: 14px; }
.sub-proof strong { display: block; font: 800 28px/1.1 'Golos Text', sans-serif; color: #fff; }
.sub-hero-card { display: flex; justify-content: center; }
.mock-mail { width: 100%; max-width: 400px; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(-2deg); display: flex; flex-direction: column; gap: 12px; }
.mock-mail-head { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.3; }
.mock-mail-head em { color: var(--muted); font-style: normal; font-size: 12px; }
.mock-row { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #EEF0F3; border-radius: 10px; align-items: flex-start; }
.mock-line { display: block; height: 8px; border-radius: 4px; background: #E6E9EF; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mock-rec { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, #F4EEFF, #EEF3FF); font-size: 13px; color: #45208F; }
.mini-stages { display: flex; gap: 4px; }
.mini-stages i { width: 22px; height: 6px; border-radius: 3px; background: #E6E9EF; }
.mini-stages i.d { background: #1E8A3C; } .mini-stages i.c { background: #1F4FD8; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.benefit { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s; }
.benefit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,27,45,.08); }
.benefit h3 { font-size: 19px; line-height: 1.3; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }
.benefit-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff); }
.benefit-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.benefit-list li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.benefit.featured { border: 2px solid var(--accent); background: linear-gradient(180deg, #FBF8FF 0%, #fff 60%); }
.badge-new { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.steps-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 8px; position: relative; }
.steps h3 { font-size: 18px; } .steps p { margin: 0; color: var(--muted); font-size: 14px; }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 18px 'Golos Text', sans-serif; }
.example-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.h2-plain { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.rec-card.example { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 40px rgba(15,27,45,.06); }
.rec-card.example h3 { font-size: 17px; line-height: 1.35; }
.example-tag { position: absolute; top: -10px; right: 18px; background: #FFF4E5; color: #8A4B0F; border: 1px solid #F3DDB3; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.terms { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 28px; margin-top: 8px; }
.term h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.term h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.term p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.final-cta { text-align: center; background: linear-gradient(135deg, var(--ink), #23305F); color: #fff; border-radius: 20px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-cta h2 { font-size: 32px; font-weight: 800; }
.final-cta p { margin: 0 0 8px; color: var(--hero-text); }
@media (max-width: 900px) {
  .sub-hero-in, .example-grid { grid-template-columns: 1fr; }
  .sub-hero-card { display: none; }
}
@media (max-width: 640px) {
  .sub-hero h1 { font-size: 32px; }
  .sub-hero-in { padding-top: 44px; padding-bottom: 44px; }
  .stages-full .st-name { font-size: 10px; }
  .stages-full .st-dot { width: 24px; height: 24px; }
  .stages-full .st::before { top: 11px; }
  .terms { padding: 22px; }
}

/* ===== v9: пагинация ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.pg { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.pg:hover { border-color: var(--blue); color: var(--blue); }
.pg.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg.disabled { color: #A0A8B5; border-color: var(--line); background: var(--soft); cursor: default; }
.pg-nav { padding: 0 16px; }
.pg-dots { color: var(--muted); padding: 0 4px; }

/* ===== v9: ЛК — подписка и рассылка ===== */
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.sub-status.is-active .pill-status, .pill-status.on { background: #E9F6EE; color: #17602B; }
.sub-status.is-active { border-color: #BFE3CB; background: linear-gradient(180deg, #F3FBF6, #fff 60%); }
.big-num { margin: 4px 0 0; font: 800 44px/1 'Golos Text', sans-serif; color: #17602B; }
.big-num span { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.ok-text { color: #17602B; font-weight: 600; }
.mailing-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.mailing-summary li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #E6E9EF; padding-bottom: 8px; }
.mailing-summary span { color: var(--muted); }
.mailing-summary strong { text-align: right; font-weight: 600; }
.org-add.locked { background: var(--soft); border-style: solid; }
.org-add.locked p { margin: 0; }

/* ===== v9: мастер рассылки ===== */
.mailing-head h1 { font-size: 34px; font-weight: 800; margin: 10px 0 6px; }
.mailing-head p { margin: 0 0 22px; }
.lock-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; border-radius: 14px; background: #FFF8EC; border: 1px solid #F3DDB3; color: #6B3A0C; margin-bottom: 20px; }
.lock-banner form { margin: 0 0 0 auto; }
.wizard { display: flex; flex-direction: column; gap: 18px; }
.wizard.is-locked .step { opacity: .75; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; }
.step-head h2 { font-size: 21px; font-weight: 800; }
.step-head p { margin: 4px 0 0; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 18px 'Golos Text', sans-serif; }
.choice { position: relative; display: block; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; height: 100%; }
.choice-box strong { display: block; font-size: 15px; color: var(--ink); }
.choice-box small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.choice:hover .choice-box { border-color: #9FB2E6; }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--blue-ring); }
.choice input:checked + .choice-box { border-color: var(--blue); background: #F4F7FF; box-shadow: 0 0 0 3px var(--blue-ring); }
.choice input:checked + .choice-box::after { content: '✓'; margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.choice-all .choice-box { background: linear-gradient(135deg, #F7F9FF, #fff); }
.choice-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.choice-grid.dimmed { opacity: .45; }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.freq .choice-box { justify-content: flex-start; }
.email-flow { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.email-ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #E9F6EE; color: #17602B; }
.ok-badge { width: 26px; height: 26px; border-radius: 50%; background: #1E8A3C; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.email-ok .btn-text { margin-left: auto; color: #17602B; min-height: 32px; }
.inline-row { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-row input { flex: 1 1 240px; }
.code-input.sm { font-size: 22px !important; letter-spacing: .45em; max-width: 200px; text-align: center; }
.extra summary { color: var(--muted); }
.extra label { margin-top: 10px; }
.wizard-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; position: sticky; bottom: 12px; box-shadow: 0 10px 30px rgba(15,27,45,.08); }
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.slider { width: 48px; height: 28px; border-radius: 999px; background: #CBD2DC; position: relative; transition: background .15s; flex: none; }
.slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--blue-ring); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== v9: «О нас» и админка ===== */
.about-page { position: relative; }
.edit-about { position: absolute; top: 20px; right: 20px; }
.richtext h2 { font-size: 22px; font-weight: 800; margin: 26px 0 10px; }
.richtext h2:first-child { margin-top: 0; }
.richtext h3 { font-size: 18px; margin: 18px 0 8px; }
.richtext p, .richtext li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.richtext p { margin: 0 0 12px; }
.richtext ul { margin: 0 0 12px; padding-left: 22px; }
.about-editor { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.about-editor textarea { width: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; font: 14px/1.6 ui-monospace, Menlo, monospace; }
.about-editor code { background: var(--soft); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.grant { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.grant form { margin: 0; }
.grant-date { display: flex; gap: 6px; }
.grant-date input { min-height: 32px; padding: 0 8px; font-size: 13px; }
.row-request td { background: #FFFBF2; }
@media (max-width: 900px) { .about-editor { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .step { padding: 18px; } .choice-grid { grid-template-columns: 1fr; }
  .wizard-foot { position: static; } .edit-about { position: static; align-self: flex-start; }
  .pg-nav { padding: 0 10px; } .pg { min-width: 36px; height: 36px; }
}

/* атрибут hidden всегда скрывает элемент, даже при display:flex */
[hidden] { display: none !important; }

/* ===== v10: SEO в админке ===== */
.seo-items { margin-bottom: 20px; }
.seo-items form { margin: 0; }
.seo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 16px; }
.seo-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.seo-card textarea { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; font: 14px/1.5 'Golos Text', sans-serif; }
.seo-head { display: flex; gap: 8px; align-items: center; }
.snippet { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #F8F9FB; border: 1px solid #EEF0F3; font-family: Arial, sans-serif; }
.snippet-url { font-size: 12px; color: #4D5156; }
.snippet-title { font-size: 18px; color: #1A0DAB; line-height: 1.3; }
.snippet-desc { font-size: 13px; color: #4D5156; line-height: 1.45; }
.counter { font-weight: 400; font-size: 12px; margin-left: 6px; }
.counter.ok { color: var(--ok); } .counter.warn { color: #B4561B; }
@media (max-width: 640px) { .seo-list { grid-template-columns: 1fr; } }

/* ===== v11: парламенты в мониторинге ===== */
.parl-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.parl-tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.parl-tab:hover { border-color: #9FB2E6; color: var(--ink); }
.parl-tab.is-sel { border-color: var(--ink); box-shadow: 0 0 0 3px #E3E7EE; background: linear-gradient(180deg, #fff, #F7F9FC); }
.parl-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.parl-tab.is-sel .parl-ico { background: var(--ink); }
.parl-text { display: flex; flex-direction: column; min-width: 0; }
.parl-text strong { font: 700 17px 'Golos Text', sans-serif; }
.parl-text small { font-size: 12px; color: var(--muted); }
.parl-count { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.parl-count b { font: 800 22px/1 'Golos Text', sans-serif; color: var(--blue); }
.parl-count small { font-size: 11px; color: var(--muted); }
.tag-parl { background: #EEF6F1; color: #17602B; font-weight: 600; }
.feed-count { margin: 0; }

.parl-choice { border-top: 1px solid #EEF0F3; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.parl-choice p { margin: 0; }
.theme-select select { flex: 1 1 320px; max-width: 560px; min-height: 40px; }
.theme-select .filter-label { flex-direction: row; }
