/* static/css/portal.css — строгая редакция sec.ru (редизайн 05.10.2026).

   Подключается ПОСЛЕ style.css и переопределяет его. Язык — как у соседнего
   articles.sec.ru: белый фон, тонкие линии вместо карточек с тенью, малые
   скругления, жёлтая кнопка, золотые рубрики капсом, жирность 700 (800 ломает
   кириллицу в Avenir Next). Макеты всех страниц — design/ (PDF и прототип).

   Новые блоки — с префиксом p-, чтобы не пересечься с классами style.css. */

:root {
    --clr-primary: #101a3d;
    --clr-text: #1f2633;
    --clr-muted: #5d6677;
    --clr-bg: #ffffff;
    --clr-border: #dfe4ec;
    --radius: 6px;
    --shadow: none;
    --p-ink: #101a3d;
    --p-paper: #f4f6f9;
    --p-line: #dfe4ec;
    --p-gold: #8f6500;
    --p-yellow: #ffd65a;
    --p-font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

body { background: #fff; font-family: var(--p-font); font-size: 15px; line-height: 1.55; }
h1, h2, h3 { color: var(--p-ink); font-weight: 700; line-height: 1.2; }
a:hover { text-decoration: none; color: var(--p-gold); }

/* ---------- шапка ---------- */
.p-top { padding: 0; }
.p-top__in { display: flex; align-items: center; gap: 32px; height: 68px; max-width: 1240px; padding: 0 24px; }
.p-top .logo img { height: 38px; width: auto; display: block; }
.p-search { display: flex; flex: 1 1 auto; max-width: 560px; }
.p-search input {
    flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px;
    border: 1px solid #c9d1dd; border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
    font: 14.5px var(--p-font); color: var(--clr-text); background: #fff;
}
.p-search input:focus { outline: 2px solid var(--p-yellow); outline-offset: -1px; }
.p-search button {
    height: 42px; padding: 0 20px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--p-yellow); color: var(--p-ink); font: 700 14px var(--p-font); cursor: pointer;
}
.p-top__user { margin-left: auto; display: flex; gap: 20px; align-items: center; font-weight: 600; font-size: 14.5px; }
.p-top__user a { color: var(--p-ink); display: inline-flex; align-items: center; gap: 6px; }
.p-icon {
    display: none; width: 42px; height: 42px; border: 1px solid var(--p-line); border-radius: var(--radius);
    background: #fff; color: var(--p-ink); align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- реклама ---------- */
.p-banner { max-width: 1240px; padding: 0 24px; }
.p-banner .ad-banner { margin: 16px 0 0; border: 1px solid var(--p-line); border-radius: 0; }

/* ---------- каркас: меню слева + контент ---------- */
.p-layout {
    display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; align-items: start;
    max-width: 1240px; padding: 0 24px 64px; flex: 1 0 auto;
}
.p-nav { position: sticky; top: 84px; padding-top: 22px; display: flex; flex-direction: column; }
.p-nav a { padding: 8px 0 8px 14px; border-left: 3px solid transparent; font-size: 15px; color: var(--clr-text); }
.p-nav a[aria-current="page"] { border-left-color: var(--p-yellow); font-weight: 700; color: var(--p-ink); }
.p-nav a:hover { color: var(--p-ink); border-left-color: var(--p-line); }
.p-nav__sep { height: 1px; background: var(--p-line); margin: 14px 0; }
.p-nav a.p-nav__add { font-size: 13.5px; font-weight: 700; color: var(--p-gold); }
.p-main { min-width: 0; padding-top: 22px; }
/* Служебные страницы — без меню, на всю ширину */
.p-wide .p-layout { grid-template-columns: minmax(0, 1fr); }
.p-wide .p-nav { display: none; }

/* ---------- подвал ---------- */
.p-foot { background: var(--p-paper); border-top: 1px solid var(--p-line); padding: 32px 0 24px; font-size: 13.5px; }
.p-foot__in { display: flex; flex-wrap: wrap; gap: 24px 56px; max-width: 1240px; padding: 0 24px; }
.p-foot b { display: block; color: var(--p-ink); margin-bottom: 8px; }
.p-foot a { display: block; color: var(--clr-muted); padding: 2px 0; }
.p-foot a:hover { color: var(--p-ink); }
.p-foot__about { max-width: 300px; color: var(--clr-muted); }
.p-foot__copy { flex-basis: 100%; border-top: 1px solid var(--p-line); padding-top: 14px; color: var(--clr-muted); }
.p-tabbar, .p-veil { display: none; }

/* ---------- общие элементы страниц ---------- */
.p-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-gold); }
.p-meta { font-size: 13px; color: var(--clr-muted); }
.p-more { font-size: 13.5px; font-weight: 700; color: var(--p-gold); white-space: nowrap; }
.p-pagehead {
    padding: 0 0 16px; border-bottom: 1px solid var(--p-line);
    display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.p-pagehead h1 { font-size: 28px; letter-spacing: -.2px; }
.p-pagehead p { margin-top: 6px; color: var(--clr-muted); font-size: 14px; }
.p-sechead {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 12px; border-bottom: 2px solid var(--p-ink);
}
.p-sechead h2 { font-size: 21px; }
.p-sechead--thin { border-bottom-width: 1px; border-color: var(--p-line); }
.p-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px;
    border-radius: var(--radius); background: var(--p-yellow); color: var(--p-ink);
    font: 700 14px var(--p-font); border: 0; white-space: nowrap; cursor: pointer;
}
.p-btn:hover { color: var(--p-ink); filter: brightness(.97); }
.p-btn--line { background: #fff; border: 1px solid #b9c2d0; }
.p-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.p-list a, .p-list > div {
    display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
    border-bottom: 1px solid var(--p-line); font-size: 14.5px; color: var(--clr-text);
}
.p-list a:hover { color: var(--p-ink); }
.p-list .p-n { color: var(--clr-muted); font-size: 13px; white-space: nowrap; }
.p-block h3 { padding-bottom: 10px; border-bottom: 2px solid var(--p-ink); font-size: 16px; }
.p-box { border-radius: var(--radius); padding: 18px; background: var(--p-paper); }
.p-box h3 { font-size: 16px; margin-bottom: 6px; }
.p-box p { font-size: 13.5px; color: var(--clr-muted); margin-bottom: 12px; }

/* ---------- главная: новости | транскрипты ---------- */
.p-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 22px; align-items: start; }
.p-top-item { padding: 16px 0 14px; border-bottom: 1px solid var(--p-line); }
.p-top-item__pic { display: block; position: relative; margin-bottom: 12px; }
.p-top-item__pic img, .p-top-item__pic .news-cover {
    display: block; width: 100%; height: 230px; object-fit: cover; border-radius: 4px; background: var(--p-paper);
}
.p-top-item h3 { font-size: 19px; line-height: 1.3; margin: 4px 0 6px; }
.p-top-item h3 a { color: var(--p-ink); }
.p-top-item p {
    color: var(--clr-muted); font-size: 14.5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-top-item .p-meta { margin-top: 8px; }
.p-row {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--p-line); color: var(--clr-text);
}
.p-row:hover { color: var(--clr-text); }
.p-row:hover b { color: var(--p-gold); }
.p-row__pic { position: relative; display: block; }
.p-row__pic img, .p-row__pic .news-cover {
    display: block; width: 112px; height: 70px; object-fit: cover; border-radius: 4px; background: var(--p-paper);
}
.p-row b { display: block; font-size: 14.5px; line-height: 1.35; color: var(--p-ink); margin: 2px 0 3px; }
.p-row .p-label { font-size: 10.5px; }
.p-play {
    position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-radius: 50%; background: rgba(16, 26, 61, .82);
}
.p-play::after {
    content: ""; position: absolute; left: 21px; top: 16px;
    border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.p-half-more { padding-top: 16px; }
.p-switch { display: none; }
.p-home-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; align-items: start; }
.p-home-bottom > div { display: flex; flex-direction: column; gap: 28px; }
.p-cats-all { margin-top: 10px; }


/* ===================================================================
   Общие блоки всех страниц (классы из style.css) — в строгую редакцию.
   =================================================================== */
.breadcrumb { font-size: 13px; margin-bottom: 14px; }
.page_head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--p-line); }
.page_head h1 { font-size: 28px; letter-spacing: -.2px; margin-bottom: 6px; }
.page_head p { font-size: 14px; }
.page_head--section { margin-top: 40px; padding-bottom: 12px; border-bottom: 2px solid var(--p-ink); }
.page_head--section h2 { font-size: 21px; }

/* Кнопки: основная — жёлтая, как в шапке и на articles.sec.ru */
.button-primary, .btn-apply {
    display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px;
    background: var(--p-yellow); color: var(--p-ink); border-radius: var(--radius); font: 700 14px var(--p-font);
}
.button-primary:hover, .btn-apply:hover { color: var(--p-ink); text-decoration: none; filter: brightness(.97); }
.button-secondary {
    min-height: 42px; padding: 0 20px; background: #fff; border: 1px solid #b9c2d0;
    border-radius: var(--radius); font: 700 14px var(--p-font); color: var(--p-ink);
}

/* Лента новостей: строки с тонкой линией, а не карточки в рамке */
.news-feed { gap: 0; }
.news-feed__item {
    background: none; border: 0; border-bottom: 1px solid var(--p-line); border-radius: 0; padding: 20px 0;
}
.news-feed__item:hover { border-color: var(--p-line); box-shadow: none; }
.news-feed__item:hover .news-feed__title a { color: var(--p-gold); }
@media (min-width: 640px) {
    .news-feed__item:has(.news-feed__media) { grid-template-columns: 200px 1fr; gap: 20px; }
}
.news-feed__media { border-radius: 4px; aspect-ratio: 200 / 126; background: var(--p-paper); }
.news-feed__rubric { display: block; margin-bottom: 4px; }
.news-feed__title { font-size: 18px; line-height: 1.3; }
.news-feed__excerpt {
    margin-top: 6px; font-size: 14.5px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-feed__date { margin: 8px 0 0; font-size: 13px; }
.news-feed__more { display: none; }

/* Плитки каталога: тонкая рамка без тени */
.catalog-grid { gap: 16px; }
.catalog-card { border-color: var(--p-line); box-shadow: none; border-radius: var(--radius); transition: border-color .15s; }
.catalog-card:hover { box-shadow: none; border-color: var(--p-ink); }
.catalog-card__link { padding: 16px 18px; }
.catalog-card h2, .catalog-card h3 { font-size: 15.5px; line-height: 1.3; color: var(--p-ink); }
.catalog-card p { font-size: 13.5px; }
.catalog-card__count { color: var(--p-gold) !important; font-weight: 700; }

/* Синий hero-блок (поиск, цены) — светлая плашка вместо градиента */
.hero {
    background: var(--p-paper); color: var(--clr-text); border-radius: var(--radius);
    padding: 24px; margin-bottom: 28px; border: 0;
}
.hero h1, .hero h2, .hero h3 { color: var(--p-ink); }
.hero p, .hero label, .hero-stats li { color: var(--clr-muted); }
.hero-stats { border-top-color: var(--p-line); }
.hero-stats strong { color: var(--p-ink); }
.hero-search input, .search-bar input { border-radius: var(--radius) 0 0 var(--radius); border: 1px solid #c9d1dd; font-family: var(--p-font); }
.hero-search button { background: var(--p-yellow); color: var(--p-ink); font: 700 14px var(--p-font); border-radius: 0 var(--radius) var(--radius) 0; }

/* Пагинация */
.pagination a { border-color: var(--p-line); color: var(--p-ink); font-weight: 600; }
.pagination a:hover { background: var(--p-ink); color: #fff; }

/* Таблицы: заголовки капсом над тёмной линией, строки — тонкие линии */
main table th {
    font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-muted);
    font-weight: 700; border-bottom: 1px solid var(--p-ink); background: none;
}
main table td { border-color: var(--p-line); }

.empty-state { padding: 32px 0; text-align: left; }


/* Кнопки действий по всему сайту — жёлтые, как «Найти» в шапке */
.auth-form button, .search-box button, .forum-search button, .batch-form__submit,
label.batch-form__submit, .batch-actions .batch-actions__primary, .doc-download, .download-block a {
    background: var(--p-yellow); color: var(--p-ink); font-family: var(--p-font); font-weight: 700;
}
.auth-form button:hover, .search-box button:hover, .forum-search button:hover, .batch-form__submit:hover,
.doc-download:hover, .download-block a:hover { background: #ffcd38; color: var(--p-ink); }
.reviews-block .button-primary:hover { background: var(--p-yellow); filter: brightness(.97); }
/* style.css местами ставит кнопкам display:inline-block — текст тогда прилипает к верху */
.p-main .button-primary { display: inline-flex; align-items: center; }

/* Переключатели форума и отзывов — вкладки с жёлтым подчёркиванием, не «таблетки» */
.forum-filter { gap: 22px; border-bottom: 1px solid var(--p-line); }
.forum-filter__item {
    padding: 10px 0 9px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    color: var(--clr-muted); font-size: 14px;
}
.forum-filter__item:hover { background: none; color: var(--p-ink); }
.forum-filter__item.is-active { background: none; color: var(--p-ink); font-weight: 700; border-bottom-color: var(--p-yellow); }
.chip { border-radius: var(--radius); }

/* Списки моделей и результаты поиска — строки с линией, а не карточки */
.models-list { gap: 0; }
.model-card { border: 0; border-bottom: 1px solid var(--p-line); border-radius: 0; padding: 14px 0; background: none; }
.model-card a { color: var(--p-ink); }
.model-card a:hover { color: var(--p-gold); }
.model-image { border-color: var(--p-line); }

/* Блок отзывов — светлая плашка без рамки */
.reviews-block { background: var(--p-paper); border: 0; border-radius: var(--radius); }

/* ---------- телефон ---------- */
@media (max-width: 767px) {
    .p-top__in { height: 58px; gap: 8px; padding: 0 16px; }
    .p-top .logo img { height: 32px; }
    .p-search, .p-top__user { display: none; }
    .p-icon { display: inline-flex; }
    .p-icon--first { margin-left: auto; }
    .p-banner { padding: 0 16px; }
    .p-banner .ad-banner { margin-top: 10px; }
    .p-layout { display: block; padding: 0 16px 24px; }
    .p-main { padding-top: 14px; }
    .p-nav { display: none; }
    body.p-menu-open .p-nav {
        display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: 78vw; max-width: 320px;
        background: #fff; z-index: 300; padding: 20px 16px; overflow: auto; box-shadow: 0 0 40px rgba(0,0,0,.2);
    }
    body.p-menu-open .p-veil { display: block; position: fixed; inset: 0; background: rgba(16,26,61,.35); z-index: 250; }
    .p-pagehead { flex-direction: column; align-items: flex-start; }
    .p-pagehead h1 { font-size: 23px; }
    .p-hide-m { display: none !important; }
    .p-halves { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
    .p-switch { display: flex; margin-top: 14px; border: 1px solid var(--p-line); border-radius: var(--radius); overflow: hidden; }
    .p-switch button {
        flex: 1; padding: 9px 0; font: 700 14px var(--p-font); color: var(--clr-muted);
        background: #fff; border: 0; cursor: pointer;
    }
    .p-switch button[aria-pressed="true"] { background: var(--p-ink); color: #fff; }
    .p-half .p-sechead { display: none; }
    body:not([data-half="video"]) .p-half--video, body[data-half="video"] .p-half--news { display: none; }
    .p-top-item__pic img, .p-top-item__pic .news-cover { height: 190px; }
    .p-row { grid-template-columns: 104px minmax(0, 1fr); }
    .p-row__pic img, .p-row__pic .news-cover { width: 104px; height: 66px; }
    .p-half-more .p-btn { width: 100%; }
    .p-home-bottom { display: none; }
    .p-foot { padding-bottom: 84px; }
    .p-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
        background: #fff; border-top: 1px solid var(--p-line); justify-content: space-around; padding: 4px 0 10px;
    }
    .p-tabbar a {
        display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px;
        color: var(--clr-muted); min-width: 64px; padding: 6px 0 0; border-top: 2px solid transparent;
    }
    .p-tabbar a[aria-current="page"] { color: var(--p-ink); font-weight: 700; border-top-color: var(--p-yellow); }
}

/* ---------- контент + правая колонка, вкладки (макеты «02», «03», «08»…) ---------- */
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; align-items: start; margin-top: 4px; }
.p-side { display: flex; flex-direction: column; gap: 30px; padding-top: 4px; }
.p-side .p-list a[aria-current="page"] { font-weight: 700; color: var(--p-ink); }
.p-strong { display: block; font-weight: 600; color: var(--p-ink); }
.p-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--p-line); font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.p-tabs a, .p-tabs button {
    padding: 12px 0 10px; color: var(--clr-muted); white-space: nowrap; border: 0;
    border-bottom: 2px solid transparent; background: none; font: inherit; cursor: pointer;
}
.p-tabs a:hover { color: var(--p-ink); }
.p-tabs [aria-current="page"], .p-tabs .is-active { color: var(--p-ink); font-weight: 700; border-bottom-color: var(--p-yellow); }
@media (max-width: 767px) {
    .p-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- страница новости (макет «03») ---------- */
.p-article h1 { font-size: 32px; margin: 8px 0 10px; }
.p-article__meta { margin-bottom: 18px; }
.p-article .news-image, .p-article .news-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.p-article .news-body { font-size: 16.5px; line-height: 1.7; max-width: 720px; }
.p-article .news-body p + p { margin-top: 14px; }
.p-section { margin-top: 36px; }
.p-section > .p-list { margin-top: 2px; }
.news-discussion { margin-top: 36px; }
@media (max-width: 767px) { .p-article h1 { font-size: 23px; } }
.p-article__meta time { display: inline; margin: 0; }

/* ---------- карточка модели (макет «08») ---------- */
.p-model h1 { font-size: 26px; margin: 8px 0 10px; }
.p-model .model-rating { font-size: 13px; margin: 0 0 4px; }
.p-model-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 22px; align-items: start; }
.p-model-top .model-image { max-width: 100%; max-height: 260px; margin: 0; border: 0; }
.p-nophoto {
    height: 220px; background: var(--p-paper); border-radius: 4px; display: flex; align-items: center;
    justify-content: center; color: #9aa3b2; font-size: 13px;
}
.p-model .model-price { background: var(--p-paper); border: 0; border-radius: var(--radius); padding: 18px; margin: 0; }
.p-model .model-price__main { display: flex; justify-content: space-between; align-items: baseline; }
.p-model .model-price__label { color: var(--clr-muted); }
.p-model .model-price__main strong { font-size: 24px; color: var(--p-ink); }
.p-model .model-price__hint { font-size: 13.5px; color: var(--clr-muted); margin-top: 8px; }
.p-model .model-brand { display: none; }
.p-model .model-documents, .p-model .model-specs, .p-model .model-description, .p-model .reviews-block { margin-top: 36px; }
.p-model .model-documents h2, .p-model .model-specs h2 {
    font-size: 21px; padding-bottom: 12px; border-bottom: 1px solid var(--p-line); margin: 0;
}
.p-model .doc-list { list-style: none; }
.p-model .doc-item { border: 0; border-bottom: 1px solid var(--p-line); border-radius: 0; padding: 12px 0; background: none; }
.p-model .doc-title { font-weight: 700; color: var(--p-ink); }
.p-model .doc-download { background: #fff; border: 1px solid #b9c2d0; color: var(--p-ink); height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--radius); display: inline-flex; align-items: center; }
.p-model .doc-download:hover { border-color: var(--p-ink); background: #fff; }
.p-model .specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-model .specs-table th, .p-model .specs-table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--p-line); background: none; text-align: left; text-transform: none; letter-spacing: 0; font-size: 14px; }
.p-model .specs-table th { color: var(--clr-muted); font-weight: 400; width: 45%; }
.p-model .model-description { font-size: 15px; line-height: 1.7; max-width: 720px; }
@media (max-width: 767px) {
    .p-model h1 { font-size: 21px; }
    .p-model-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .p-nophoto { height: 96px; }
}

/* ---------- фильтры слева + список (каталог компаний, макет «13») ---------- */
.p-cols-l { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 22px; }
.p-filters { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.p-field { display: block; }
.p-field span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-muted); margin-bottom: 6px; }
.p-field select, .p-field input {
    width: 100%; height: 40px; padding: 0 10px; border: 1px solid #c9d1dd; border-radius: var(--radius);
    background: #fff; font: 14px var(--p-font); color: var(--clr-text);
}
.p-filters .p-btn { width: 100%; }
.p-company { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--p-line); color: var(--clr-text); }
.p-company:hover b { color: var(--p-gold); }
.p-company b { display: block; color: var(--p-ink); font-size: 16px; margin-bottom: 2px; }
.p-mono { width: 44px; height: 44px; border-radius: var(--radius); background: var(--p-paper); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--p-ink); font-size: 18px; }
.p-company__dirs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.p-company__dirs span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-gold); }
.p-company__dirs span + span::before { content: "·"; margin-right: 6px; color: var(--clr-muted); }
.p-company__summary { display: block; margin-top: 6px; font-size: 14px; color: var(--clr-muted); }
.p-empty { background: var(--p-paper); border-radius: var(--radius); padding: 28px; }
.p-empty h2 { font-size: 21px; margin-bottom: 8px; }
.p-empty p { color: var(--clr-muted); max-width: 620px; margin-bottom: 16px; }
.p-empty__list { list-style: none; margin: 0 0 20px; display: grid; gap: 10px; }
.p-empty__list li { padding-left: 16px; border-left: 3px solid var(--p-yellow); font-size: 14.5px; }
.p-empty__list b { color: var(--p-ink); }
@media (max-width: 767px) {
    .p-cols-l { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .p-filters { position: static; }
    .p-company { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---------- бренды категории (макет «07») ---------- */
.p-brand-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-bottom: 32px; }
.p-brand-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--p-line); color: var(--clr-text); }
.p-brand-row .p-mono { width: 40px; height: 40px; font-size: 16px; }
.p-brand-row__logo { width: 40px; height: 40px; object-fit: contain; }
.p-brand-row__name { font-weight: 700; color: var(--p-ink); }
.p-brand-row:hover .p-brand-row__name { color: var(--p-gold); }
@media (max-width: 767px) { .p-brand-list { grid-template-columns: minmax(0, 1fr); } .p-brand-row .p-meta { display: none; } }
.p-brand-head { display: flex; align-items: center; gap: 18px; }
.p-brand-head .brand-logo { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--p-line); border-radius: var(--radius); padding: 6px; background: #fff; }
.brand-intro__reviews { background: var(--p-paper); border: 0; border-radius: var(--radius); box-shadow: none; }

/* ---------- админка (макеты «21»–«32») ---------- */
.p-admin .p-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; max-width: 1400px; }
.p-admin .p-top__in, .p-admin .p-banner, .p-admin .p-foot__in { max-width: 1400px; }
.p-admin .p-banner { display: none; }
.p-adm-nav { position: sticky; top: 84px; padding-top: 22px; display: flex; flex-direction: column; }
.p-adm-nav a { padding: 7px 0 7px 14px; border-left: 3px solid transparent; font-size: 14.5px; color: var(--clr-text); }
.p-adm-nav a[aria-current="page"] { border-left-color: var(--p-yellow); background: var(--p-paper); font-weight: 700; color: var(--p-ink); }
.p-adm-nav a:hover { color: var(--p-ink); }
.p-adm-nav__grp { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clr-muted); padding: 18px 0 6px 17px; }
.p-adm-nav .p-nav__add { font-size: 13.5px; font-weight: 700; color: var(--p-gold); }
.p-admin .admin-bar { font-size: 13px; color: var(--clr-muted); background: none; border: 0; padding: 0 0 10px; }
.p-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p-tile { border: 1px solid var(--p-line); border-radius: var(--radius); padding: 14px 16px; color: var(--clr-text); display: block; }
.p-tile:hover { border-color: var(--p-ink); color: var(--clr-text); }
.p-tile b { display: block; font-size: 26px; color: var(--p-ink); margin: 2px 0; }
.p-tile .p-more { display: block; }
.p-status { font-size: 12px; font-weight: 700; }
.p-status--ok { color: #1d6b3a; } .p-status--wait { color: var(--p-gold); } .p-status--off { color: var(--clr-muted); }
@media (max-width: 767px) {
    .p-adm-nav { display: none; }
    body.p-admin.p-menu-open .p-adm-nav {
        display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: 78vw; max-width: 320px;
        background: #fff; z-index: 300; padding: 20px 16px; overflow: auto; box-shadow: 0 0 40px rgba(0,0,0,.2);
    }
    .p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Вкладки админки — подчёркивание, как во всём портале */
.admin-tabs { gap: 22px; border-bottom: 1px solid var(--p-line); margin-bottom: 20px; }
.admin-tabs__item { padding: 10px 0 9px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--clr-muted); font-size: 14px; }
.admin-tabs__item:hover { background: none; color: var(--p-ink); }
.admin-tabs__item--active, .admin-tabs__item--active:hover { background: none; color: var(--p-ink); font-weight: 700; border-bottom-color: var(--p-yellow); }

/* Поля и кнопки форм в админке */
.p-admin input[type="text"], .p-admin input[type="search"], .p-admin input[type="email"], .p-admin input[type="url"],
.p-admin input[type="number"], .p-admin select, .p-admin textarea {
    min-height: 38px; padding: 6px 10px; border: 1px solid #c9d1dd; border-radius: var(--radius);
    background: #fff; font: 14px var(--p-font); color: var(--clr-text); max-width: 100%;
}
.p-admin textarea { min-height: 90px; }
.p-admin main button, .p-admin main input[type="submit"] {
    min-height: 36px; padding: 0 16px; border: 1px solid #b9c2d0; border-radius: var(--radius);
    background: #fff; color: var(--p-ink); font: 700 13px var(--p-font); cursor: pointer;
}
.p-admin main button[type="submit"]:not(.link-button) { background: var(--p-yellow); border-color: var(--p-yellow); }
.p-admin .admin-bar button { background: #fff; border-color: #b9c2d0; }
/* Фильтры списков — в строку, а не столбиком во всю ширину */
.p-admin .forum-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; max-width: none; align-items: end; }
.p-admin .forum-form label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.p-admin .forum-form select, .p-admin .forum-form input[type="text"], .p-admin .forum-form input[type="search"] { width: 100%; }
.p-admin main table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-admin main table td, .p-admin main table th { padding: 10px; text-align: left; vertical-align: top; }
.p-admin main .admin-bar button[type="submit"] { background: #fff; border-color: #b9c2d0; }
.p-note { padding: 10px 14px; border-radius: var(--radius); margin: 14px 0 0; font-size: 14px; }
.p-note--ok { background: #e8f4ec; color: #1d6b3a; }
.p-note--err { background: #fff4e5; color: #8a4b00; }
