/* --- site/css/auth.css --- */
/* Формы аккаунта. Шапка, меню и подвал используют оболочку карточки канала. */
.auth-page { color: var(--bp-ink); }
.auth-main { padding-bottom: 64px; }
.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 32px;
  background: var(--bp-surface);
  color: var(--bp-ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 36px -28px rgba(31,35,40,.3);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; background: var(--bp-surface-2); border: 1px solid var(--line); border-radius: 12px; }
.auth-tabs a { padding: 10px; border-radius: 8px; color: var(--bp-muted); text-align: center; font-size: 15px; }
.auth-tabs a[aria-current] { background: var(--bp-surface); color: var(--text-purple); box-shadow: 0 2px 6px #0000000c; font-weight: 700; }
.auth-card__head { margin-bottom: 26px; }
.auth-submit svg, .password-toggle svg, .auth-max-placeholder svg, .connection-card__icon > svg:not(.auth-provider__vk) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-eyebrow { margin: 0 0 8px; color: var(--bp-muted); font-size: 14px; }
.auth-card h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.auth-card__lead { margin: 12px 0 0; color: var(--bp-muted); font-size: 16px; line-height: 1.5; }
.auth-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 8px; }
/* Подпись поля — обычным начертанием (замечание пользователя 15.10.2026, 0.103.0) */
.auth-field > label { color: var(--bp-ink); font-size: 14px; font-weight: 400; }
.auth-field__control { position: relative; }
/* Вид поля (36 px, заливка как у поиска в шапке, кольцо в фокусе, красная рамка ошибки) — общий
   для всего сайта, static/site/css/fields.css (0.103.0). Здесь — место под кнопку «показать пароль» */
.auth-field__control:has(.password-toggle) input { padding-right: 38px; }
.auth-hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bp-muted); }
.auth-field__error { margin: 0; color: var(--text-red); font-size: 14px; line-height: 1.4; }
/* Кнопка «показать пароль» внутри поля 36 px: 28 × 28 с отступом 4 px, иконка 18 px */
.password-toggle { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 28px; height: 28px; color: var(--bp-muted); border-radius: 7px; }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle:hover { background: var(--bp-hover); color: var(--text-purple); }
.password-toggle[aria-pressed=true] { color: var(--text-purple); }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--bp-ink-2); line-height: 1.5; }
.auth-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid color-mix(in srgb,var(--bp-muted) 55%,var(--bp-surface));
  border-radius: 6px;
  background: var(--bp-surface-2);
  cursor: pointer;
  transition: background .15s,border-color .15s,box-shadow .15s;
}
.auth-check input[type="checkbox"]::before {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform .12s;
}
.auth-check:hover input[type="checkbox"]:not(:disabled) { border-color: var(--brand); }
.auth-check input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.auth-check input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(45deg) scale(1); }
.auth-main .auth-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 12%,transparent);
}
.auth-check input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
@media (forced-colors: active) {
  .auth-check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; }
  .auth-check input[type="checkbox"]::before { display: none; }
}
.auth-check a, .auth-link { color: var(--text-purple); text-decoration: none; }
.auth-check a:hover, .auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-form__row .auth-link { font-size: 14px; }
.auth-consents { display: grid; gap: 12px; }
.auth-captcha { width: 100%; min-height: 100px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bp-surface-2); }
.auth-captcha__placeholder { display: grid; gap: 4px; margin: 0; color: var(--bp-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.auth-captcha__placeholder strong { color: var(--bp-ink-2); font-size: 14px; }
.auth-captcha__widget:not(:empty) + .auth-captcha__placeholder { display: none; }
/* Кнопки форм — той же высоты, что поля (36 px, fields.css), шрифт 15 px: до 0.103.0 кнопка входа
   была 48 px, рамочная — 40 px */
.auth-submit { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: center; gap: 10px; padding: 6px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.3; }
.auth-submit:hover { background: var(--brand-dark); }
.auth-submit svg { flex: 0 0 18px; width: 18px; height: 18px; }
.auth-submit:disabled { opacity: .65; cursor: default; }
.auth-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--bp-ink-2); background: var(--bp-surface); font-size: 14px; line-height: 1.4; }
.auth-secondary:hover { border-color: var(--text-purple); color: var(--text-purple); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--bp-muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-providers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.auth-provider { display: flex; min-height: 36px; gap: 8px; align-items: center; justify-content: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--bp-ink); background: var(--bp-surface); font-size: 14px; }
.auth-provider:hover { background: var(--bp-hover); border-color: var(--text-purple); }
.auth-provider img { display: block; flex: 0 0 22px; }
.auth-provider__mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 17px; line-height: 1; }
.auth-provider__mark--yandex { background: #fc3f1d; color: #fff; }
.auth-provider__vk { display: block; width: 24px; height: 22px; fill: currentColor; color: #2787f5; }
.auth-provider-status { margin-top: 12px; }
.auth-card__switch { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--bp-muted); line-height: 1.5; }
.auth-demo-note { margin: 24px auto 0; color: var(--bp-muted); text-align: center; font-size: 13px; line-height: 1.5; }
.auth-demo-variants { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 12px auto 0; color: var(--bp-muted); font-size: 13px; line-height: 1.5; }
.auth-demo-variants a { color: var(--text-purple); text-decoration: underline; text-underline-offset: 3px; }
.auth-notice, .auth-status { margin: 0 0 20px; padding: 14px 16px; background: var(--bp-hover); border-radius: 10px; color: var(--bp-ink-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-form .auth-status, .auth-form .auth-notice { margin: 0; }
.auth-status { margin-top: 16px; }
.auth-status.is-error { color: var(--text-red); background: color-mix(in srgb,var(--text-red) 7%,var(--bp-surface)); }
.auth-success { padding-top: 4px; }
.auth-success h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.2; }
.auth-success > p { margin: 0 0 24px; color: var(--bp-muted); font-size: 16px; line-height: 1.5; }
.auth-main [hidden] { display: none !important; }
.auth-main :is(a,button):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.auth-max-placeholder { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 24px 0; padding: 28px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--bp-muted); text-align: center; }
.auth-max-placeholder svg { width: 40px; height: 40px; color: var(--text-purple); }
.auth-max-placeholder strong { font-size: 16px; color: var(--bp-ink); }
.auth-max-placeholder span { font-size: 14px; line-height: 1.5; }
.auth-steps { display: grid; gap: 12px; margin: 24px 0; padding-left: 24px; list-style: decimal; color: var(--bp-ink-2); font-size: 15px; line-height: 1.5; }
.auth-steps li::marker { color: var(--text-purple); font-weight: 700; }
.auth-settings { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; max-width: 1000px; margin: 0 auto; align-items: start; }
.auth-settings__nav { padding: 20px 0; }
.auth-settings__nav > p { padding: 0 14px; margin: 0 0 12px; font-size: 14px; color: var(--bp-muted); }
.auth-settings__nav nav { display: grid; gap: 4px; }
.auth-settings__nav a { padding: 12px 14px; border-radius: 10px; color: var(--bp-ink-2); font-size: 15px; }
.auth-settings__nav a:hover { background: var(--bp-hover); color: var(--text-purple); }
.auth-card--settings { width: 100%; }
.auth-settings__section { padding-top: 26px; border-top: 1px solid var(--line); margin-top: 26px; scroll-margin-top: 24px; }
.auth-settings__section h2 { margin: 0 0 10px; font-size: 21px; }
.connections-list { margin-top: 20px; display: grid; gap: 12px; }
.connection-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.connection-card__icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--bp-surface-2); border-radius: 11px; color: var(--text-purple); }
.connection-card h3, .auth-security-row h3 { margin: 0 0 4px; font-size: 16px; }
.connection-card__details, .auth-security-row p { margin: 0; color: var(--bp-muted); font-size: 14px; line-height: 1.5; }
.connection-card__state { display: inline-block; margin-top: 4px; color: var(--text-green); font-size: 13px; }
.connection-warning { grid-column: 1/-1; margin: 0; }
.auth-security-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; font-size: 14px; }
.auth-security-row + .auth-security-row { border-top: 1px solid var(--line); }
.auth-security-row .auth-link { flex-shrink: 0; }
@media (max-width: 760px) {
  .auth-card { padding: 26px 22px; border-radius: 18px; }
  .auth-card h1 { font-size: 27px; }
  .auth-main { padding-bottom: 72px; }
  .auth-settings { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .auth-settings__nav { padding: 0; }
  .auth-settings__nav > p { display: none; }
  .auth-settings__nav nav { display: flex; flex-wrap: wrap; }
  .auth-settings__nav a { padding: 8px 10px; font-size: 14px; }
  .connection-card { grid-template-columns: 36px minmax(0,1fr); padding: 14px; gap: 12px; }
  .connection-card__action { grid-column: 2; justify-self: start; }
  .auth-security-row { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 24px 16px; }
  .auth-providers { gap: 6px; }
  .auth-provider { gap: 5px; padding-inline: 5px; font-size: 13px; }
}

/* --- site/css/storefront.css --- */
/* Витрина использует общие wrap, шапку, подвал, темы и select 40/16 px. */
/* Низ страницы: 32 px до подвала, как у «Сегодня в MAX» (было 72 px и ещё 22 px у
   подписи внизу — на /stats/, /collections/, /ratings/, /categories/ выглядело пустым
   местом, замечание пользователя 19.10.2026). Последняя подпись — без нижнего отступа. */
.sf-main{position:relative;padding-bottom:32px;color:var(--bp-ink)}
.sf-main>.sf-footnote:last-child{margin-bottom:0}
.sf-channel-state .auth-submit{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border:1px solid transparent;border-radius:10px;background:var(--brand);color:#fff;font-size:16px;font-weight:700;line-height:1.4;text-align:center}
.sf-channel-state .auth-submit:hover{background:var(--brand-dark)}
.sf-channel-state .auth-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:10px;color:var(--bp-ink-2);background:var(--bp-surface);font-size:14px;line-height:1.4;text-align:center}
.sf-channel-state .auth-secondary:hover{border-color:var(--text-purple);color:var(--text-purple)}
.sf-channel-state .auth-link{color:var(--text-purple);line-height:1.5}
.sf-channel-state .auth-link:hover{text-decoration:underline;text-underline-offset:3px}
.sf-channel-state a:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.sf-channel-custom .channel-live:not(.channel-live--open):not(.channel-live--closed) i{background:var(--bp-muted)}
.sf-channel-custom [hidden]{display:none!important}
.sf-navigation{display:flex;gap:6px;padding:5px;margin:0 0 28px;border:1px solid var(--line);border-radius:14px;background:var(--bp-surface);overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.sf-navigation::-webkit-scrollbar{display:none}.sf-navigation a{flex:0 0 auto;padding:10px 16px;border-radius:10px;font-size:16px;line-height:1.3;color:var(--bp-muted)}.sf-navigation a:hover{background:var(--bp-hover);color:var(--text-purple)}.sf-navigation a[aria-current]{background:var(--brand);color:#fff}
.sf-heading{max-width:900px;margin:0 0 30px}.sf-eyebrow{font-size:12px;font-weight:700;letter-spacing:.09em;color:var(--text-purple);margin:0 0 12px}.sf-heading h1{font-size:clamp(30px,3.1vw,44px);line-height:1.12;letter-spacing:-.025em;margin:0 0 14px}.sf-heading>p:last-child{font-size:16px;line-height:1.5;color:var(--bp-muted);max-width:780px}
.sf-surface,.sf-filters,.sf-channel,.sf-feature-card,.sf-post-card,.sf-ranking-row,.sf-editorial{background:var(--bp-surface);border:1px solid var(--line);border-radius:18px}.sf-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr auto;gap:16px;align-items:end;padding:24px;margin-bottom:24px}.sf-field{display:grid;gap:8px;min-width:0;color:var(--bp-ink-2);font-size:14px;font-weight:400;line-height:1.4}/* Вид полей .sf-field (36 px, кольцо в фокусе, ошибка) — общий, fields.css (0.103.0); многострочное поле выше обычного */.sf-field textarea{min-height:140px}.sf-apply{width:auto;min-height:36px;height:36px;padding:0 20px}.sf-reset{grid-column:1/-1;justify-self:start;font-size:14px}.sf-results-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}.sf-results-head>p{font-size:15px;color:var(--bp-muted)}.sf-sort{display:flex;align-items:center;gap:12px;font-size:14px;white-space:nowrap}.sf-sort .site-select{width:230px}.sf-channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.sf-channel{min-width:0;padding:24px;display:flex;flex-direction:column;gap:16px}.sf-channel__identity{display:flex;gap:14px;align-items:center;min-width:0}.sf-channel__identity>span:last-child{min-width:0}.sf-channel__identity strong{display:block;font-size:20px;line-height:1.2;overflow-wrap:anywhere}.sf-channel__identity:hover strong{color:var(--text-purple)}.sf-channel__identity small{display:block;font-size:13px;color:var(--bp-muted);margin-top:6px;overflow-wrap:anywhere}/* Аватар канала в карточках каталога (в том числе на странице поиска) и в «Сегодня» — круг, как на странице канала (13.10.2026). */.sf-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:var(--bp-hover);color:var(--text-purple);font-size:18px;font-weight:700}/* Описание канала: длинную ссылку или слово без пробелов рвём в любом месте, иначе оно вылезает за карточку (18.10.2026). */.sf-channel>p{color:var(--bp-muted);font-size:15px;line-height:1.5;overflow-wrap:anywhere}.sf-tags{display:flex;gap:7px;flex-wrap:wrap;font-size:12px;line-height:1.4}.sf-tags a,.sf-badge{padding:5px 9px;border-radius:7px;background:var(--bp-surface-2);color:var(--bp-muted)}.sf-tags a:hover{color:var(--text-purple)}.sf-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}.sf-metrics dt{font-size:12px;color:var(--bp-muted);line-height:1.4}.sf-metrics dd{font-size:21px;font-weight:700;margin:6px 0 0;line-height:1.2}.sf-state-label{font-size:12px;color:var(--text-purple);margin-top:auto}.sf-empty{grid-column:1/-1;text-align:center;padding:52px 24px;background:var(--bp-surface);border:1px solid var(--line);border-radius:18px}.sf-empty h2{font-size:24px;margin:0 0 12px}.sf-empty p{line-height:1.6;color:var(--bp-muted);margin-bottom:18px}.sf-editorial{padding:28px;margin-top:36px;max-width:960px}.sf-editorial h2{font-size:24px;margin:0 0 12px}.sf-editorial p{line-height:1.7;color:var(--bp-muted);margin-bottom:16px}.sf-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.sf-feature-card{display:flex;flex-direction:column;gap:16px;padding:30px;min-width:0}.sf-feature-card:hover{border-color:var(--brand)}.sf-feature-card h2{font-size:27px;line-height:1.2}.sf-feature-card p{font-size:16px;line-height:1.6;color:var(--bp-muted)}.sf-feature-card .auth-link{margin-top:auto}.sf-feature-card .sf-eyebrow{margin:0}.sf-ranking{display:grid;gap:10px}.sf-ranking-row{display:grid;grid-template-columns:40px minmax(230px,1.6fr) repeat(3,minmax(110px,1fr));align-items:center;gap:20px;padding:20px 24px}.sf-rank-number{font-size:22px;color:var(--bp-muted);font-variant-numeric:tabular-nums}.sf-ranking-row:first-child .sf-rank-number{color:var(--text-purple)}.sf-ranking-row .sf-metrics{display:contents}.sf-ranking-row dt{font-size:12px}.sf-ranking-row dd{font-size:21px}.sf-ranking-row details{min-width:0}.sf-ranking-row summary{cursor:pointer;font-size:19px;font-weight:700}.sf-ranking-row details p{font-size:14px;line-height:1.5;margin-top:10px;color:var(--bp-muted)}.sf-footnote{font-size:14px;color:var(--bp-muted);line-height:1.6;margin:22px 0}.sf-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.sf-post-card{overflow:hidden}.sf-post-card img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}.sf-post-card>div{padding:26px;display:grid;gap:14px}.sf-post-card h2{font-size:25px;line-height:1.25}.sf-post-card p{line-height:1.6;color:var(--bp-ink-2)}.sf-post-card time,.sf-muted{color:var(--bp-muted);font-size:14px}.sf-post-metrics{display:flex;flex-wrap:wrap;gap:16px;color:var(--bp-muted);font-size:14px;line-height:1.5}.sf-post-layout{display:grid;grid-template-columns:minmax(0,850px) minmax(260px,1fr);gap:28px;align-items:start}.sf-post{padding:32px;min-width:0}.sf-post-author{display:flex;gap:14px;align-items:center;margin-bottom:28px}.sf-post-author strong{display:block;font-size:18px;margin-bottom:5px}.sf-post-author time{font-size:14px;color:var(--bp-muted)}.sf-prose{font-size:18px;line-height:1.7}.sf-prose p{margin:0 0 18px}.sf-prose ul{list-style:disc;padding-left:24px;margin:0 0 20px}.sf-prose a{color:var(--text-purple);text-decoration:underline}.sf-prose blockquote{margin:24px 0;padding:16px 20px;border-left:3px solid var(--brand);background:var(--bp-hover);border-radius:0 10px 10px 0}.sf-post figure{margin:24px 0}.sf-post figure img{display:block;width:100%;height:auto;border-radius:12px}.sf-post figcaption{font-size:13px;color:var(--bp-muted);margin-top:9px;line-height:1.4}.sf-reactions{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.sf-reaction{padding:8px 12px;border-radius:20px;background:var(--bp-surface-2);font-size:15px}.sf-post-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:24px;border-top:1px solid var(--line);margin-top:24px}.sf-post-aside{display:grid;gap:18px}.sf-post-aside .sf-surface{padding:24px}.sf-post-aside h2{font-size:22px;margin:0 0 12px}.sf-post-aside p{color:var(--bp-muted);line-height:1.6;margin-bottom:16px}.sf-share-box{margin-top:20px;padding:20px;background:var(--bp-hover);border-radius:12px;line-height:1.5}.sf-share-box input{margin:12px 0}.sf-copy-status{font-size:14px;margin-top:12px;color:var(--text-purple)}.sf-bot-filters{display:grid;grid-template-columns:2fr 1fr auto;gap:18px;align-items:end;margin-bottom:26px}.sf-bot-filters>.auth-submit{height:36px;min-height:36px;padding:0 22px}.sf-bot-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px}.sf-bot-layout>.sf-surface{padding:30px}.sf-bot-layout h2{font-size:25px;margin:28px 0 14px}.sf-bot-layout ul,.sf-bot-layout ol{padding-left:22px;line-height:1.8;list-style:disc}.sf-bot-layout ol{list-style:decimal}.sf-bot-layout p{line-height:1.6}.sf-report{max-width:720px;margin:0 auto;padding:32px}.sf-report form{display:grid;gap:22px}.sf-error{font-size:13px;color:var(--text-red)}.sf-error:empty{display:none}.sf-form-status{padding:16px;border-radius:12px;background:var(--bp-hover);line-height:1.6}.sf-channel-state{padding:32px;margin-top:24px}.sf-channel-state h2{font-size:28px;margin:0 0 14px}.sf-channel-state p{font-size:16px;line-height:1.6;max-width:760px;color:var(--bp-muted);margin:0 0 18px}.sf-channel-state .sf-metrics{max-width:680px;margin:24px 0}.sf-state-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.sf-state-actions .auth-submit{width:auto}.sf-channel-custom .channel-tabs,.sf-channel-custom .channel-tab-panel,.sf-channel-custom .dashboard-subscription-status{display:none!important}.sf-channel-custom .channel-owner,.sf-channel-custom .channel-title-badges{display:none!important}
@media(max-width:1100px){.sf-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-search{grid-column:1/-1}.sf-apply{width:100%}.sf-reset{grid-column:auto}.sf-channel-grid,.sf-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-ranking-row{grid-template-columns:30px minmax(160px,1.5fr) repeat(3,minmax(85px,1fr));gap:12px;padding:18px}.sf-post-layout{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:760px){.sf-heading{margin-bottom:24px}.sf-heading>p:last-child{font-size:16px}.sf-navigation a{padding:9px 12px}.sf-channel-grid,.sf-feature-grid,.sf-post-grid,.sf-post-layout,.sf-bot-layout{grid-template-columns:minmax(0,1fr)}.sf-filters{padding:18px;gap:14px}.sf-results-head{align-items:stretch;flex-direction:column;gap:12px}.sf-sort{justify-content:space-between}.sf-sort .site-select{width:65%;max-width:260px}.sf-ranking-row{grid-template-columns:26px minmax(0,1fr);gap:16px;padding:20px}.sf-ranking-row .sf-metrics{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:0}.sf-ranking-row .sf-metrics dd{font-size:19px}.sf-ranking-row .sf-channel__identity strong{font-size:18px}.sf-post,.sf-report,.sf-channel-state{padding:22px}.sf-prose{font-size:16px}.sf-feature-card{padding:24px}.sf-post-card>div{padding:22px}.sf-bot-filters{grid-template-columns:minmax(0,1fr)}.sf-post-aside{grid-template-columns:minmax(0,1fr)}.sf-heading h1{overflow-wrap:anywhere}.sf-post-actions>.auth-secondary{flex:1 1 auto}}
@media(max-width:440px){.sf-filters{grid-template-columns:minmax(0,1fr)}.sf-reset{padding:8px 0;justify-self:center}.sf-channel{padding:20px}.sf-state-actions{align-items:stretch;flex-direction:column}.sf-state-actions .auth-submit{width:100%}}
/* САЙТ: страницы рубрики и территории (templates/max/category.html, region.html). Фильтров три поля и кнопка — своя сетка; номера страниц — общая «Таблетка» .dt-pager (datool.css); картинка рубрики справа от заголовка; вложенные территории над списком */
.sf-filters--directory{grid-template-columns:1.5fr 1fr 1fr auto}
.sf-heading--image{display:grid;grid-template-columns:minmax(0,1fr) 168px;gap:32px;align-items:center;max-width:1100px}.sf-heading--image>div>p:last-child{font-size:16px;line-height:1.5;color:var(--bp-muted);max-width:780px}.sf-heading__image{display:block;width:168px;height:168px;object-fit:contain}

.sf-subregions{display:flex;align-items:baseline;gap:10px;margin:-8px 0 24px}.sf-subregions__label{flex:0 0 auto;font-size:13px;color:var(--bp-muted)}.sf-subregions__count{margin-left:4px;color:var(--bp-muted);font-variant-numeric:tabular-nums}
@media(max-width:1100px){.sf-filters--directory{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sf-heading--image{grid-template-columns:minmax(0,1fr) 96px;gap:16px}.sf-heading--image>div>p:last-child{font-size:16px}.sf-heading__image{width:96px;height:96px}.sf-subregions{flex-direction:column;gap:8px}}
@media(max-width:440px){.sf-filters--directory{grid-template-columns:minmax(0,1fr)}}
/* САЙТ: черновые страницы витрины 09.10.2026 — «Все категории» (карточки с изображением рубрики), рейтинги (форма фильтров, текст в ячейке), подборки (аватары внахлёст), «Статистика MAX» (плитки и полоски категорий), «Актуально за сегодня» (посты и активные каналы). Цвета — только переменные темы: тёмная тема работает сама */
.sf-section-title{font-size:22px;line-height:1.3;margin:32px 0 16px}
.sf-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.sf-category-grid--large{grid-template-columns:repeat(3,minmax(0,1fr))}
.sf-category-card{display:flex;align-items:center;gap:16px;min-width:0;padding:16px;background:var(--bp-surface);border:1px solid var(--line);border-radius:18px;color:var(--bp-ink);transition:border-color .15s}.sf-category-card:hover{border-color:var(--brand)}.sf-category-card:hover strong{color:var(--text-purple)}.sf-category-card:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.sf-category-card__image{display:grid;place-items:center;flex:0 0 72px;width:72px;height:72px;border-radius:14px;background:var(--bp-surface-2);overflow:hidden}.sf-category-card__image img{display:block;width:100%;height:100%;object-fit:contain}.sf-category-card__letter{font-size:30px;font-weight:700;color:var(--text-purple)}
.sf-category-card__body{display:grid;gap:6px;min-width:0}.sf-category-card__body strong{font-size:17px;line-height:1.25;overflow-wrap:anywhere}.sf-category-card__body small{font-size:13px;color:var(--bp-muted)}
.sf-category-card--large{flex-direction:column;align-items:stretch;padding:20px;gap:14px}.sf-category-card--large .sf-category-card__image{flex:none;width:100%;height:auto;aspect-ratio:1/1;max-height:220px;border-radius:16px}.sf-category-card--large .sf-category-card__body strong{font-size:21px}.sf-category-card--large .sf-category-card__letter{font-size:64px}
.sf-filters--rating{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto}
.sf-ranking{list-style:none;padding:0;margin:0}.sf-ranking-row__text{font-size:15px!important;font-weight:400;line-height:1.35;overflow-wrap:anywhere}.sf-ranking-row__text a{color:var(--text-purple)}
.sf-avatar-stack{display:flex;padding-left:10px}.sf-avatar-stack .sf-avatar{flex-basis:40px;width:40px;height:40px;margin-left:-10px;border:2px solid var(--bp-surface);border-radius:50%;overflow:hidden;font-size:14px}.sf-avatar-stack img,.sf-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.sf-tags--large{font-size:14px}
.sf-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}.sf-stat{padding:22px;min-width:0}.sf-stat dt{font-size:14px;color:var(--bp-muted);line-height:1.4}.sf-stat dd{margin:8px 0 0;font-size:30px;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sf-today{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;align-items:start}.sf-today .sf-section-title{margin-top:0}
.sf-today-posts{list-style:none;padding:0;margin:0;display:grid;gap:14px}.sf-today-post{padding:22px;display:grid;gap:14px}.sf-today-post__text{font-size:16px;line-height:1.6;color:var(--bp-ink-2);overflow-wrap:anywhere;white-space:pre-line}.sf-today-post__text:hover{color:var(--text-purple)}.sf-post-metrics b{color:var(--bp-ink)}
.sf-today-active{list-style:none;margin:0;padding:10px 18px}.sf-today-active li{padding:12px 0}.sf-today-active li+li{border-top:1px solid var(--line)}.sf-today-active .sf-avatar{flex-basis:40px;width:40px;height:40px;border-radius:50%;font-size:15px}.sf-today-active strong{font-size:16px!important}
@media(max-width:1100px){.sf-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sf-category-grid,.sf-category-grid--large{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-category-card{flex-direction:column;align-items:flex-start}.sf-category-card__image{flex:none}.sf-filters--rating{grid-template-columns:minmax(0,1fr)}.sf-today{grid-template-columns:minmax(0,1fr)}.sf-stat dd{font-size:24px}}
@media(max-width:440px){.sf-category-grid{grid-template-columns:minmax(0,1fr)}.sf-category-card{flex-direction:row;align-items:center}.sf-stat-grid{grid-template-columns:minmax(0,1fr)}}
/* САЙТ: главная max.datool.ru (templates/max/home.html, черновая вёрстка 09.10.2026) — первый экран с поиском и цифрами, заголовки блоков со ссылкой «все», «Сегодня» и подборки в две колонки, список подборок, сводка сотрудникам. Цвета — переменные темы */
.sf-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:40px;align-items:center;padding:12px 0 8px;margin-bottom:12px}
.sf-hero h1{font-size:clamp(32px,4vw,54px);line-height:1.08;letter-spacing:-.03em;margin:0 0 16px}.sf-hero__lead{font-size:18px;line-height:1.55;color:var(--bp-muted);max-width:640px;margin:0 0 24px}
.sf-hero__search{display:flex;gap:10px;max-width:640px;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--bp-surface)}.sf-hero__search:focus-within{border-color:var(--brand)}.sf-hero__search input{flex:1 1 auto;min-width:0;height:44px;border:0;background:transparent;color:var(--bp-ink);padding:0 10px;font:inherit;font-size:17px}.sf-hero__search input:focus{outline:none}.sf-hero__search .auth-submit{width:auto;min-height:44px;height:44px;padding:8px 24px}
.sf-hero__links{margin-top:18px}
.sf-stat-grid--hero{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-stat-grid--hero .sf-stat dd{font-size:28px}
.sf-home-section{margin-top:44px}.sf-home-section__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px}.sf-home-section__head h2{font-size:26px;line-height:1.25;margin:0}.sf-home-section__head .auth-link{font-size:15px;white-space:nowrap}
.sf-home-split{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:28px;align-items:start}.sf-home-split>.sf-home-section{margin-top:44px}
.sf-home-list{list-style:none;margin:0;padding:6px 18px}.sf-home-list li+li{border-top:1px solid var(--line)}.sf-home-list a{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 0;font-size:16px;color:var(--bp-ink)}.sf-home-list a:hover span{color:var(--text-purple)}.sf-home-list b{font-variant-numeric:tabular-nums;color:var(--bp-muted);font-weight:600}
.sf-staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.sf-staff-card{padding:20px;min-width:0}.sf-staff-card h3{font-size:17px;margin:0 0 10px}.sf-staff-card dl{margin:0;font-size:14px}.sf-staff-card dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:6px 0}.sf-staff-card dl>div+div{border-top:1px solid var(--line)}.sf-staff-card dt{min-width:0;color:var(--bp-muted)}.sf-staff-card dd{margin:0;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.sf-staff-card dd a{text-decoration:underline}.sf-staff-card .is-ok{color:var(--text-green)}.sf-staff-card .is-warn{color:var(--dv-orange,#d95926)}.sf-staff-card .is-bad{color:var(--text-red)}
@media(max-width:1100px){.sf-hero{grid-template-columns:minmax(0,1fr);gap:28px}}
@media(max-width:760px){.sf-home-split{grid-template-columns:minmax(0,1fr);gap:0}.sf-hero__lead{font-size:16px}.sf-hero__search .auth-submit{padding:8px 16px}.sf-home-section__head h2{font-size:22px}.sf-stat-grid--hero .sf-stat dd{font-size:22px}}
@media(max-width:440px){.sf-stat-grid--hero{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-stat-grid--hero .sf-stat{padding:16px}}

/* --- site/css/catalog.css --- */
/* САЙТ: каталог каналов MAX /channels/ (templates/max/catalog.html, вид «Витрина категорий»,
   выбор пользователя 23.10.2026). Сверху — заголовок с вводным абзацем, фиолетовая плашка
   «Аналитика каналов MAX» (стили — home.css в той же сборке) и плитки категорий, ниже — «Все
   каналы»: строка заголовка с «Найти канал» и «Плитки | Таблица», кнопки фильтров с окнами,
   чипы выбранного, вкладки сортировки (tabs.css), список плитками («Классика», по четыре в
   ряд) или таблицей, внизу — «Вопросы и ответы». Часть правил (фильтры .cf, .catalog-head,
   .catalog-cards, .catalog-card, .catalog-table, .catalog-view) берёт и страница поиска (search-page.css) —
   то, что только для каталога, привязано к .catalog-list. Цвета — только переменные темы:
   тёмная тема работает сама. Вид полей ввода — общий (fields.css, через .sf-field). Скрипт —
   static/site/js/catalog.js. */

.catalog-page{display:grid;grid-template-columns:minmax(0,1fr);gap:36px}

/* Вводный абзац под заголовком (seo.intro): числа каталога и ссылки на крупнейшие темы */
.sf-heading .catalog-lead{max-width:78ch;margin:12px 0 0;font-size:16px;line-height:1.6;color:var(--bp-ink-2)}
.catalog-lead a{color:var(--bp-ink);font-weight:700;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--brand) 45%,transparent);text-underline-offset:3px}
.catalog-lead a:hover{color:var(--text-purple)}
/* Фиолетовая плашка (max/home/hero.html, стили — home.css): отступы задаёт сетка .catalog-page */
.catalog-page>.hm-hero{margin:0}


/* Плитки категорий: 4 в ряд, 12 сразу, остальные — «Показать ещё». Полосы «писали за 7
   дней» — семь цветов по кругу, те же, что у плиток тем главной (.hc, home-categories.css;
   просьба пользователя 24.10.2026); в тёмной теме — посветлее */
.catalog-cats{--cc1:#2563eb;--cc2:#dc2626;--cc3:#16a34a;--cc4:#9333ea;--cc5:#f97316;--cc6:#0891b2;--cc7:#db2777;display:grid;gap:16px}
[data-bs-theme=dark] .catalog-cats{--cc1:#5b8ef7;--cc2:#f05a5a;--cc3:#36c56c;--cc4:#b47cf6;--cc5:#fb8d47;--cc6:#2cb9d8;--cc7:#f0599f}
.catalog-cats__head,.catalog-list__title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px}
.catalog-cats__head h2,.catalog-list__title{margin:0;font-size:24px;line-height:1.2}
.catalog-cats__head p{margin:0;font-size:14px;color:var(--bp-muted)}
.catalog-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.catalog-tile{display:grid;gap:10px;align-content:start;min-width:0;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--bp-surface);color:var(--bp-ink);transition:border-color .15s}
.catalog-tile[hidden]{display:none}
.catalog-tile:hover{border-color:var(--brand)}
.catalog-tile:hover b{color:var(--text-purple)}
.catalog-tile[aria-current]{border-color:var(--brand);background:var(--bp-hover);box-shadow:inset 0 0 0 1px var(--brand)}
.catalog-tile__top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;min-width:0}
.catalog-tile__top b{font-size:16px;line-height:1.25;min-width:0;overflow-wrap:anywhere}
.catalog-tile .sf-avatar-stack{flex:0 0 auto}
.catalog-tile .sf-avatar-stack .sf-avatar{flex-basis:30px;width:30px;height:30px;font-size:12px}
.catalog-tile__n{font-size:13px;color:var(--bp-muted)}
.catalog-tile__n b{font-size:20px;color:var(--bp-ink);font-variant-numeric:tabular-nums}
.catalog-tile__bar{display:grid;gap:4px}
.catalog-tile__track{display:block;height:6px;border-radius:3px;background:var(--bp-surface-2);overflow:hidden}
.catalog-tile__track i{display:block;height:100%;border-radius:3px;background:var(--cc1)}
.catalog-tile:nth-child(7n+2) .catalog-tile__track i{background:var(--cc2)}
.catalog-tile:nth-child(7n+3) .catalog-tile__track i{background:var(--cc3)}
.catalog-tile:nth-child(7n+4) .catalog-tile__track i{background:var(--cc4)}
.catalog-tile:nth-child(7n+5) .catalog-tile__track i{background:var(--cc5)}
.catalog-tile:nth-child(7n+6) .catalog-tile__track i{background:var(--cc6)}
.catalog-tile:nth-child(7n) .catalog-tile__track i{background:var(--cc7)}
.catalog-tile__bar small{font-size:12px;color:var(--bp-muted)}
/* «Показать ещё»: пока есть скрытые плитки (data-catalog-faded), последний ряд гаснет книзу
   маской, а кнопка-«таблетка» лежит на нём — как «Развернуть ещё» главной (вариант
   «Затухание»); открылись все — catalog.js снимает атрибут и убирает кнопку */
.catalog-cats[data-catalog-faded] .catalog-tiles{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 140px),transparent 100%);mask-image:linear-gradient(to bottom,#000 calc(100% - 140px),transparent 100%)}
.catalog-more{position:relative;display:flex;justify-content:center}
.catalog-cats[data-catalog-faded] .catalog-more{margin-top:-44px}
.catalog-more__button{display:inline-flex;align-items:center;gap:8px;padding:11px 24px;border:1px solid var(--line);border-radius:999px;background:var(--bp-surface);color:var(--text-purple);font-size:14px;font-weight:700;box-shadow:0 6px 18px rgba(30,20,80,.12)}
.catalog-more__button:hover{border-color:var(--brand)}
.catalog-more__button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.catalog-more__button svg{width:15px;height:15px;flex:0 0 auto}

/* «Все каналы»: заголовок «Все N каналов» (22 px, как у списка страницы категории), под ним
   фильтры и строка сортировки; поле «Найти канал» и «Плитки | Таблица» — справа в строке
   сортировки (одна линия, просьба пользователя 24.10.2026) */
.catalog-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;scroll-margin-top:80px}
.catalog-list>.catalog-list__title{font-size:22px;letter-spacing:-.02em}
.catalog-list__tools{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
.catalog-find{position:relative;display:flex;align-items:center}
.catalog-find svg{position:absolute;left:13px;width:15px;height:15px;color:var(--bp-muted);pointer-events:none}
.catalog-find input{width:260px;height:36px;margin:0;padding:0 14px 0 35px;border:1px solid var(--line);border-radius:999px;background:var(--bp-surface);color:var(--bp-ink);font:inherit;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}
.catalog-find input::placeholder{color:var(--bp-muted)}
.catalog-find input:hover{border-color:var(--bp-muted)}
.catalog-find input:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 12%,transparent)}

/* Кнопки фильтров и их окна (details/summary) */
.catalog-filters{display:flex;flex-wrap:wrap;gap:8px}
.cf{position:relative}
.cf__button{display:inline-flex;align-items:center;gap:6px;height:40px;max-width:300px;padding:0 12px 0 14px;border:1px solid var(--line);border-radius:12px;background:var(--bp-surface);color:var(--bp-ink);font-size:14px;white-space:nowrap;cursor:pointer;list-style:none;user-select:none}
.cf__button::-webkit-details-marker{display:none}
.cf__button:hover{border-color:var(--brand)}
.cf__button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.cf[open]>.cf__button{border-color:var(--brand);box-shadow:0 0 0 3px var(--bp-hover)}
.cf__button--on{border-color:var(--brand);background:var(--bp-hover)}
.cf__button--on .cf__name::after{content:":"}
.cf__button--on .cf__name:has(+ .cf__value--count)::after{content:""}
.cf__value{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:700;color:var(--text-purple)}
.cf__value--count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:12px}
.cf__chevron{flex:0 0 16px;width:16px;height:16px;fill:none;stroke:var(--bp-muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.cf[open] .cf__chevron{transform:rotate(180deg)}
.cf__pop{position:absolute;left:0;top:calc(100% + 8px);z-index:30;display:flex;flex-direction:column;width:330px;max-height:min(500px,72vh);border:1px solid var(--line);border-radius:16px;background:var(--bp-surface);box-shadow:var(--bp-shadow)}
.cf--wide .cf__pop{width:380px}
/* Окно у правого края экрана — прижать к правому краю кнопки (класс ставит catalog.js) */
.cf__pop--right{left:auto;right:0}
.cf__head{display:flex;justify-content:space-between;align-items:center;padding:12px 12px 6px 16px}
.cf__head b{font-size:16px}
.cf__picked{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--brand);color:#fff;font-size:12px;vertical-align:2px}
.cf__close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:none;color:var(--bp-muted);font-size:22px;line-height:1;cursor:pointer}
.cf__close:hover{background:var(--bp-surface-2);color:var(--bp-ink)}
.cf__close:focus-visible{outline:2px solid var(--brand)}
.cf__search{position:relative;padding:4px 16px 8px}
.cf__search svg{position:absolute;left:28px;top:16px;width:16px;height:16px;fill:none;stroke:var(--bp-muted);stroke-width:1.6;stroke-linecap:round}
.cf__search input{width:100%;height:40px;padding:0 12px 0 36px;border:1px solid var(--line);border-radius:10px;background:var(--bp-surface);color:var(--bp-ink);font:inherit;font-size:14px}
.cf__search input:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:transparent}
.cf__list{display:flex;flex-direction:column;gap:2px;min-height:0;padding:4px 8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cf__list--chips{flex:1;gap:6px;padding:4px 16px 6px}
.cf__list--scroll{flex:1}
.cf__none{margin:8px;font-size:14px;color:var(--bp-muted)}
.cf__note{margin:6px 16px 0;font-size:12px;line-height:1.45;color:var(--bp-muted)}
.cf__foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;padding:12px 16px;border-top:1px solid var(--line)}
.cf__reset{font-size:14px;color:var(--bp-muted);text-decoration:underline;text-underline-offset:3px}
.cf__reset:hover{color:var(--text-purple)}
.cf__apply{width:auto;min-height:36px;height:36px;padding:0 18px}
/* Шкала индекса качества 0–100 с границами 70 и 85 (пороги оценки словом) */
.cf__scale{display:flex;gap:2px;height:8px;margin:4px 16px 0;border-radius:4px;overflow:hidden}
.cf__scale span{background:var(--bp-surface-2)}
.cf__scale .cf__scale-mid{background:color-mix(in srgb,var(--brand) 35%,transparent)}
.cf__scale .cf__scale-high{background:var(--text-green)}
.cf__scale-x{display:grid;grid-template-columns:70fr 15fr 15fr 0fr;margin:2px 16px 4px;font-size:11px;color:var(--bp-muted)}

/* Вариант в окне: строка без видимого флажка, выбранная — подсвечена */
.cf-opt{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 16px;gap:4px 10px;align-items:center;flex:0 0 auto;min-height:40px;padding:8px;padding-left:calc(8px + var(--depth,0) * 14px);border:1px solid transparent;border-radius:10px;font-size:14px;color:var(--bp-ink);cursor:pointer}
.cf-opt[hidden]{display:none}
.cf-opt:hover{background:var(--bp-hover)}
.cf-opt:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:-2px}
.cf-opt:has(input:checked){background:var(--bp-hover);border-color:color-mix(in srgb,var(--brand) 45%,transparent)}
.cf-opt:has(input:checked) .cf-opt__label{color:var(--text-purple);font-weight:700}
.cf-opt__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-opt__count{padding:1px 7px;border-radius:999px;background:var(--bp-surface-2);color:var(--bp-muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-opt__count:empty{display:none}
.cf-opt:has(input:checked) .cf-opt__count{background:var(--brand);color:#fff;font-weight:700}
.cf-opt__check{width:16px;height:16px;fill:none;stroke:var(--brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.cf-opt:has(input:checked) .cf-opt__check{opacity:1}
.cf-opt--icon{grid-template-columns:26px minmax(0,1fr) auto 16px}
.cf-opt__icon{display:grid;place-items:center;width:26px;height:26px}
.cf-opt__bar{grid-column:1/-1;display:block;height:4px;border-radius:2px;background:var(--bp-surface-2);overflow:hidden}
.cf-opt__bar i{display:block;height:100%;border-radius:2px;background:color-mix(in srgb,var(--brand) 40%,transparent)}
.cf-opt:has(input:checked) .cf-opt__bar i{background:var(--brand)}
/* Рубрика — плашка как в форме владельца (.owner-chip, owner-taxonomy.css): обычная — белая
   с рамкой и круглой картинкой, выбранная — залита цветом сайта, текст белый (решение 23.10.2026) */
.cf-opt--chip{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-height:38px;padding:4px 12px 4px 4px;border:1px solid var(--line);border-radius:999px;background:var(--bp-surface)}
.cf-opt--chip:hover{border-color:var(--brand);background:var(--bp-surface)}
.cf-opt--chip .cf-opt__check{display:none}
.cf-opt--chip .cf-opt__count{padding:0;background:none;color:var(--bp-muted);font-size:13px}
.cf-opt__img{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden;border-radius:50%;background:var(--bp-hover);color:var(--text-purple);font-size:12px;font-weight:700}
.cf-opt__img img{display:block;width:100%;height:100%;object-fit:cover}
.cf-opt--chip:has(input:checked){border-color:var(--brand);background:var(--brand);color:#fff}
.cf-opt--chip:has(input:checked) .cf-opt__label{color:#fff;font-weight:400}
.cf-opt--chip:has(input:checked) .cf-opt__count{background:none;color:rgba(255,255,255,.85);font-weight:400}
.cf-opt--chip:has(input:checked) .cf-opt__img{box-shadow:0 0 0 2px #fff}
.cf-opt--chip:has(input:focus-visible){outline-offset:2px}

/* Чипы выбранного */
.catalog-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.catalog-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 12px;border-radius:999px;background:var(--bp-hover);color:var(--text-purple);font-size:14px}
.catalog-chip img{border-radius:50%}
.catalog-chip a{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:15px;line-height:1}
.catalog-chip a:hover{background:var(--bp-surface)}
.catalog-chips__reset{font-size:14px;color:var(--bp-muted);text-decoration:underline;text-underline-offset:3px}

/* Строка над списком: слева вкладки сортировки (сжимаются, лишнее — под стрелками tabs.js),
   справа «Найти канал» и «Плитки | Таблица»; не помещается — инструменты уходят строкой ниже */
.catalog-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;min-width:0}
.catalog-head .dt-tabs-shell{flex:0 1 auto;min-width:0;max-width:100%}
.catalog-view{flex:0 0 auto}
.catalog-view>a{gap:6px;padding:0 12px}
.catalog-view svg{width:15px;height:15px;fill:currentColor}

/* Плитки каналов — «Классика»: на странице поиска по 3 в ряд, в каталоге по 4, как у списка
   страницы категории (просьба пользователя 24.10.2026; 16 на странице — ряды без пустот) */
.catalog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.catalog-list .catalog-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.catalog-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--bp-surface);transition:border-color .15s,box-shadow .15s}
/* Наведение — фиолетовая рамка и мягкая тень, как у плиток категорий главной (.hc-tile, home.css; просьба пользователя 24.10.2026); в тёмной теме тень темнее, иначе её не видно */
.catalog-card:hover{border-color:var(--brand);box-shadow:0 6px 18px rgba(30,20,80,.1)}
[data-bs-theme=dark] .catalog-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.4)}
.catalog-card__top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
.catalog-card__avatar{flex-basis:52px;width:52px;height:52px;overflow:hidden;font-size:18px}
.catalog-card__avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.catalog-card__id{display:grid;gap:2px;min-width:0}
.catalog-card__title{display:flex;align-items:center;gap:5px;min-width:0;color:var(--bp-ink)}
.catalog-card__title strong{font-size:16px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.catalog-card__title:hover strong{color:var(--text-purple)}
/* Строка под названием: «@имя · ● 35 мин назад» (catalog_card_handle.html, вариант 5 от 24.10.2026) —
   длинное @имя обрезается многоточием, время целиком; точка и время — серым, как @имя */
.catalog-card__handle{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;color:var(--bp-muted);white-space:nowrap}
.catalog-card__nick{min-width:0;overflow:hidden;text-overflow:ellipsis}
.catalog-card__handle .catalog-fresh{flex:none;color:var(--bp-muted)}
/* Описание — две строки; пустое держит высоту, чтобы числа блоков ряда стояли на одной линии */
.catalog-card__text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;margin:0;font-size:14px;line-height:1.45;color:var(--bp-ink-2);overflow-wrap:anywhere}
.catalog-region{background:var(--bp-hover)!important;color:var(--text-purple)!important}
/* Плашки категории и территории в плитке при наведении — фирменный фиолетовый, белый текст
   (решение пользователя 24.10.2026; контраст белого на --brand 5,5 : 1, в тёмной теме тот же цвет) */
.catalog-card .sf-tags a{transition:background-color .15s,color .15s}
.catalog-card .sf-tags a:hover,.catalog-card .sf-tags a:focus-visible{background:var(--brand)!important;color:#fff!important}
.catalog-card__numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:auto 0 0;padding-top:12px;border-top:1px solid var(--line)}
.catalog-card__numbers div{display:grid;gap:3px;align-content:start;min-width:0}
.catalog-card__numbers dt{font-size:12px;color:var(--bp-muted);white-space:nowrap}
.catalog-card__numbers dd{margin:0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.catalog-badge{display:inline-flex;flex:0 0 auto}
.badge-gov{display:block}

/* Таблица — «Плотная таблица»: прокрутка вбок внутри рамки */
.catalog-table{position:relative;overflow-x:auto;border:1px solid var(--line);border-radius:18px;background:var(--bp-surface)}
.catalog-table table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px}
.catalog-table th,.catalog-table td{padding:8px 12px;border-top:1px solid var(--line);text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}
.catalog-table thead th{border-top:0;background:var(--bp-surface-2);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--bp-muted)}
.catalog-table thead a:hover{color:var(--text-purple)}
.catalog-table th[aria-sort] a{color:var(--text-purple)}
.catalog-table th[aria-sort] a::after{content:" ↓"}
.catalog-table tbody tr:hover{background:var(--bp-hover)}
.catalog-table__num{width:36px;color:var(--bp-muted)}
.catalog-table__right{text-align:right!important}
.catalog-table__muted,.catalog-table__muted a{color:var(--bp-ink-2)}
.catalog-table__muted a:hover{color:var(--text-purple)}
.catalog-table__channel{display:flex;align-items:center;gap:8px;max-width:340px;color:var(--bp-ink)}
.catalog-table__channel .sf-avatar{flex-basis:28px;width:28px;height:28px;overflow:hidden;font-size:11px}
.catalog-table__channel .sf-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.catalog-table__channel strong{overflow:hidden;text-overflow:ellipsis;min-width:0}
.catalog-table__channel:hover strong{color:var(--text-purple)}

/* Таблица каталога — как у списка страницы категории (.dashboard-card + .st-table, stats.css):
   белая карточка с тенью, заголовки колонок мелкие серые без заливки, строки с линией снизу,
   строка под курсором — подсветка со скруглёнными краями */
.catalog-list .catalog-table{padding:12px 20px 16px;border-radius:20px;box-shadow:0 8px 26px -23px rgba(31,35,40,.48)}
.catalog-list .catalog-table th,.catalog-list .catalog-table td{padding:9px 8px;border-top:0;border-bottom:1px solid var(--line);vertical-align:middle}
.catalog-list .catalog-table thead th{background:none;font-size:12px;letter-spacing:0;text-transform:none}
.catalog-list .catalog-table thead a{color:var(--bp-muted)}
.catalog-list .catalog-table th[aria-sort] a{color:var(--text-purple)}
.catalog-list .catalog-table tbody tr:hover{background:none}
.catalog-list .catalog-table tbody tr:hover>*{background:var(--bp-hover)}
.catalog-list .catalog-table tbody tr:hover>:first-child{border-radius:10px 0 0 10px}
.catalog-list .catalog-table tbody tr:hover>:last-child{border-radius:0 10px 10px 0}
.catalog-list .catalog-table tbody tr:hover>*,.catalog-list .catalog-table tbody tr:has(+tr:hover)>*{border-bottom-color:transparent}

/* Индекс качества и свежесть — общие для блоков и таблицы */
.catalog-q{display:inline-grid;place-items:center;min-width:34px;height:24px;padding:0 6px;border-radius:7px;background:var(--bp-surface-2);color:var(--bp-ink-2);font-size:13px}
.catalog-q--high{background:color-mix(in srgb,var(--text-green) 16%,transparent);color:var(--text-green)}
.catalog-q--mid{background:var(--bp-hover);color:var(--text-purple)}
.catalog-q--none{background:transparent;color:var(--bp-muted);font-weight:400}
.catalog-fresh{display:inline-flex!important;align-items:center;gap:6px;font-size:13px!important;font-weight:400!important;color:var(--bp-ink-2)}
.catalog-fresh i{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--text-green)}
.catalog-fresh--old i{background:var(--line)}
.catalog-capped{margin:0;text-align:center;font-size:14px;color:var(--bp-muted)}
/* Низ списка: кнопка «Загрузить ещё N каналов» (та же «таблетка», что «Показать ещё» у
   плиток категорий) по центру, под ней номера страниц (просьба пользователя 24.10.2026).
   Тот же низ — у списка страницы категории (max/category/paging.html, catalog.css есть в
   сборке categories) */
.catalog-paging{display:grid;justify-items:center;gap:16px;margin-top:6px}
.catalog-paging:empty{display:none}
.catalog-load[aria-disabled=true]{cursor:progress;opacity:.7}
/* Пока подгружается следующая страница, список чуть бледнее */
.catalog-list[aria-busy=true] [data-catalog-items]{opacity:.6;transition:opacity .15s}
/* Кнопка «Добавить этот канал» в пустом результате — по ширине текста, а не на всю карточку */
.catalog-list .sf-empty .auth-submit{display:inline-flex;width:auto;padding:0 22px}
/* Номера страниц под кнопкой «Загрузить ещё» — отступ задаёт обёртка (и в каталоге, и на странице категории) */
.catalog-paging .dt-pager{margin:0}

/* «Вопросы и ответы» внизу — вид как у страницы категории (.ct-faq, categories.css): надзаголовок
   и крупный заголовок по центру, каждый вопрос — карточка с «+» справа, открытый — «×» */
.catalog-faq{display:grid;justify-items:center;margin:20px 0 24px;text-align:center}
.catalog-faq__eyebrow{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.09em;color:var(--text-purple)}
.catalog-faq h2{max-width:900px;margin:0;font-size:clamp(28px,3.4vw,44px);line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
.catalog-faq__list{display:grid;gap:12px;width:min(100%,920px);margin-top:36px;text-align:left}
.catalog-faq__item{border:1px solid var(--line);border-radius:16px;background:var(--bp-surface);box-shadow:0 10px 30px -24px rgba(31,35,40,.35);transition:border-color .15s}
.catalog-faq__item:hover,.catalog-faq__item[open]{border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}
.catalog-faq__item summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;font-size:17px;font-weight:700;line-height:1.35;cursor:pointer;list-style:none}
.catalog-faq__item summary::-webkit-details-marker{display:none}
.catalog-faq__item summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:16px}
.catalog-faq__icon{position:relative;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:color-mix(in srgb,var(--brand) 14%,transparent);transition:transform .2s}
.catalog-faq__icon::before,.catalog-faq__icon::after{content:"";position:absolute;top:50%;left:50%;width:12px;height:2px;border-radius:1px;background:var(--text-purple);transform:translate(-50%,-50%)}
.catalog-faq__icon::after{transform:translate(-50%,-50%) rotate(90deg)}
.catalog-faq__item[open] .catalog-faq__icon{transform:rotate(45deg)}
.catalog-faq__item p{margin:0;padding:0 24px 22px;font-size:15px;line-height:1.65;color:var(--bp-ink-2)}
.catalog-faq__item a{color:var(--text-purple);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--brand) 45%,transparent);text-underline-offset:3px}
.catalog-faq__item a:hover{text-decoration-color:currentColor}
@media(prefers-reduced-motion:reduce){.catalog-faq__icon,.catalog-faq__item{transition:none}}

/* Плитки каналов каталога: 4 → 2 → 1 (три в ряд не ставим — 16 на странице дали бы дыру) */
@media(max-width:1180px){
  .catalog-list .catalog-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .catalog-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .catalog-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-cards,.catalog-list .catalog-cards{grid-template-columns:minmax(0,1fr)}
  .catalog-list__tools,.catalog-find{width:100%;margin-left:0}
  .catalog-find{flex:1 1 0}
  .catalog-find input{width:100%}
  .catalog-list__tools{flex-wrap:nowrap}
  .catalog-view span{display:none}
  .catalog-view>a{padding:0 10px}
  .catalog-more__button{width:100%;justify-content:center}
  .catalog-faq__item summary{padding:16px 18px;font-size:16px}
  .catalog-faq__item p{padding:0 18px 18px}
  .cf__button{height:38px;max-width:calc(100vw - 48px)}
  /* Окно фильтра на телефоне — панель снизу экрана; затемнение — тень на весь экран */
  .cf__pop,.cf--wide .cf__pop,.cf__pop--right{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:60;width:auto;max-height:80vh;border-radius:18px 18px 0 0;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);box-shadow:0 0 0 100vmax rgba(0,0,0,.4)}
}
@media(max-width:440px){
  .catalog-tiles{grid-template-columns:minmax(0,1fr)}
}

/* --- site/css/collection.css --- */
/*
 * САЙТ: страница одной подборки MAX /collections/<код>/ (templates/max/collection.html,
 * 24.10.2026). Список, фильтры и вопросы — стили каталога (catalog.css). Здесь — блок
 * «Другие подборки»: шапка (заголовок слева, «Все подборки →» справа, как у плиток
 * категорий каталога) и карточки вида «Доля MAX» (вариант 4, утверждён пользователем
 * 24.10.2026; шаблон max/collection/other_card.html): значок и название, число каналов
 * крупно, три цветные полосы и вывод одной строкой. Вся карточка — ссылка.
 */
.collection-others{display:grid;gap:16px;min-width:0}
.collection-others__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px}
.collection-others__head h2{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.02em}
.collection-others__head a{font-size:14px;font-weight:600;color:var(--brand);text-decoration:none}
.collection-others__head a:hover{text-decoration:underline}

/* Карточки: 4 в ряд → 2 на планшете → 1 на телефоне; одинаковой высоты, полосы внизу */
.co-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:1100px){.co-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.co-cards{grid-template-columns:minmax(0,1fr)}}
/* Цвета полос: доля каналов — синяя, доля подписок — оранжевая, писали за неделю — зелёная */
.co-card{--co-1:#2a78d6;--co-2:#d95926;--co-3:#199e70;display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--bp-surface);box-shadow:0 8px 26px -23px rgba(31,35,40,.48);color:var(--bp-ink);text-decoration:none;transition:border-color .15s}
.co-card:hover{border-color:var(--brand)}
.co-card:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* Тёмная тема сайта (атрибут data-bs-theme, как у дашборда канала): те же оттенки, что у диаграмм */
[data-bs-theme=dark] .co-card{--co-1:#3987e5;--co-2:#d95926;--co-3:#199e70}
.co-card__head{display:flex;align-items:center;gap:10px;min-width:0}
.co-card__icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-size:11px;font-weight:800;letter-spacing:.02em;background:var(--brand-soft,rgba(107,69,246,.12));color:var(--brand)}
.co-card__icon svg,.co-card__icon img{display:block}
.co-card__icon--a-plus{background:rgba(22,163,74,.12)}
.co-card__icon--verified{background:rgba(29,155,240,.12)}
.co-card__icon--gov,.co-card__icon--million{background:rgba(204,145,25,.14);color:#b07a12}
/* Значки подборок 25.10.2026 (max/collection/icon.html): средние тона — читаются в обеих темах */
.co-card__icon--100k,.co-card__icon--ads{background:rgba(217,89,38,.13);color:#d95926}
.co-card__icon--first{background:rgba(213,81,129,.13);color:#d55181}
.co-card__icon--business{background:rgba(42,120,214,.12);color:#2a78d6}
.co-card__icon--daily,.co-card__icon--no-ads{background:rgba(25,158,112,.13);color:#199e70}
/* Госучреждения — золотые, как госканалы: это части «Государственных каналов» */
.co-card__icon--school,.co-card__icon--kindergarten,.co-card__icon--college,.co-card__icon--hospital,.co-card__icon--culture,.co-card__icon--administration{background:rgba(204,145,25,.14);color:#cc9119}
.co-card__title{font-size:15px;font-weight:700;line-height:1.3}
.co-card__count{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.co-card__count b{font-size:28px;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.co-card__count span{font-size:12.5px;color:var(--bp-muted)}
.co-card__bars{display:grid;gap:10px;margin-top:auto}
.co-card__bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;font-size:12.5px}
.co-card__bar span{color:var(--bp-muted)}
.co-card__bar b{font-variant-numeric:tabular-nums}
.co-card__track{grid-column:1/-1;display:block;height:6px;border-radius:99px;background:var(--line);overflow:hidden}
.co-card__track i{display:block;height:100%;min-width:3px;border-radius:inherit}
.co-card__bar--1 .co-card__track i{background:var(--co-1)}
.co-card__bar--2 .co-card__track i{background:var(--co-2)}
.co-card__bar--3 .co-card__track i{background:var(--co-3)}
.co-card__say{padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;line-height:1.5;color:var(--bp-muted)}
.co-card__say b{color:var(--bp-ink)}
/* Аватары крупнейших каналов и названия над полосами (вариант 4 «Аватары и полосы»,
   25.10.2026, только /collections/): круги внахлёст с обводкой цветом карточки,
   названия — до двух строк с многоточием */
.co-card__people{display:grid;gap:7px;min-width:0}
.co-card__faces{display:flex}
.co-card__face{display:grid;place-items:center;flex:none;width:28px;height:28px;border:2px solid var(--bp-surface);border-radius:50%;overflow:hidden;background:var(--brand-soft,rgba(107,69,246,.12));color:var(--brand);font-size:10px;font-weight:700}
.co-card__face+.co-card__face{margin-left:-8px}
.co-card__face img{display:block;width:100%;height:100%;object-fit:cover}
.co-card__names{display:-webkit-box;overflow:hidden;font-size:12.5px;line-height:1.45;color:var(--bp-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical}
.co-card__names b{font-weight:600;color:var(--bp-ink)}
@media (prefers-reduced-motion:reduce){.co-card{transition:none}}
