/*
 * Портал sites.reviews: главная и страницы-хабы разделов.
 * Тема `sitesreviews-portal` (CORE/DESIGN-SYSTEM.md). Всё под .portal, на токенах.
 * Сейчас сайт светлый (тёмная тема отложена до общего прохода) — тёмные значения
 * уже заведены под html[data-theme="dark"], включатся вместе с переключателем.
 */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap');

.portal {
    --p-bg: #f1f3f6;
    --p-surface: #ffffff;
    --p-surface-2: #eef1f6;
    --p-surface-3: #e3e8f0;
    --p-text: #11141a;
    --p-muted: #5b6474;
    --p-line: rgba(16, 24, 40, .09);
    --p-accent: #2a7bff;
    --p-accent-text: #1f63d6;
    --p-accent-soft: rgba(42, 123, 255, .10);
    --p-on-accent: #fff;
    --p-success: #12a866;
    --p-success-soft: rgba(18, 168, 102, .10);
    --p-warn: #c77c00;
    --p-font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --p-r-sm: 10px;
    --p-r-md: 16px;
    --p-r-lg: 24px;
    --p-ease: cubic-bezier(.2, .6, .2, 1);

    background: var(--p-bg);
    color: var(--p-text);
    font-family: var(--p-font);
    padding-bottom: 64px;
}

html[data-theme="dark"] .portal {
    --p-bg: #111317;
    --p-surface: #1b1e24;
    --p-surface-2: #242832;
    --p-surface-3: #2d3240;
    --p-text: #f1f3f7;
    --p-muted: #98a1b1;
    --p-line: rgba(255, 255, 255, .08);
    --p-accent: #3d7bff;
    --p-accent-text: #8db0ff;
    --p-accent-soft: rgba(61, 123, 255, .16);
    --p-success: #2fcf8a;
    --p-success-soft: rgba(47, 207, 138, .14);
    --p-warn: #ffb54a;
}

.portal *,
.portal *::before,
.portal *::after { box-sizing: border-box; }
.portal a { color: inherit; text-decoration: none; }
.portal img { max-width: 100%; display: block; }
.portal h1, .portal h2, .portal h3 { margin: 0; color: var(--p-text); font-family: var(--p-font); letter-spacing: -.02em; text-wrap: balance; }
.portal p { margin: 0; }
.portal .num { font-variant-numeric: tabular-nums; }
.portal :focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; border-radius: 6px; }

.p-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.p-sec { padding-top: 56px; }
.p-sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.p-sec-h h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.p-sec-h a { font-size: 14px; color: var(--p-accent-text); font-weight: 600; white-space: nowrap; }
.p-center-h { text-align: center; margin-bottom: 32px; }
.p-center-h h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.p-stamp { font-size: 12px; color: var(--p-muted); }
.p-muted { color: var(--p-muted); }

.p-tile { background: var(--p-surface); border-radius: var(--p-r-lg); padding: 24px; position: relative; overflow: hidden; min-width: 0; display: block; }
.p-tile h3 { font-size: 19px; font-weight: 700; line-height: 1.2; position: relative; z-index: 1; }
.p-tile .p-sub { position: relative; z-index: 1; }
.p-tile .p-sub { font-size: 13px; color: var(--p-muted); margin-top: 6px; }
.p-tile .p-art { position: absolute; right: -8px; bottom: -10px; width: 46%; max-width: 170px; pointer-events: none; transition: transform .35s var(--p-ease); }
a.p-tile:hover .p-art { transform: translateY(-4px) rotate(-3deg); }

.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 0; cursor: pointer; font-family: var(--p-font); transition: background .2s var(--p-ease); }
.p-btn-pri { background: var(--p-accent); color: var(--p-on-accent) !important; }
.p-btn-sec { background: var(--p-surface-2); color: var(--p-text) !important; }
.p-btn-white { background: #fff; color: #111 !important; }

.p-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--p-accent-soft); color: var(--p-accent-text); white-space: nowrap; }
.p-badge.ok { background: var(--p-success-soft); color: var(--p-success); }
.p-fav { width: 28px; height: 28px; border-radius: 8px; background: var(--p-surface-2); flex: none; object-fit: contain; padding: 3px; }

/* Первый экран: проверка сайта + пример проверки (макет C) */
.p-chero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 56px 8px; }
.p-chero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-top: 18px; }
.p-chero .p-lead { margin-top: 18px; color: var(--p-muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; max-width: 560px; }
.p-check { display: flex; gap: 8px; margin-top: 28px; background: var(--p-surface); border: 1px solid var(--p-line); padding: 7px; border-radius: 18px; max-width: 620px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.p-check input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--p-text); font: inherit; font-size: 17px; padding: 0 14px; outline: none; }
.p-check .p-btn { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
/* .portal .p-hint: общее «.portal p { margin: 0 }» сильнее одиночного класса. */
.portal .p-hint { margin-top: 22px; font-size: 14px; color: var(--p-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.p-hint a { color: var(--p-accent-text); font-weight: 500; }
.p-dotted { border-bottom: 1px dashed currentColor; }
.p-cstats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.p-cstats b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.p-cstats span { font-size: 14px; color: var(--p-muted); }
.p-score { display: block; background: var(--p-surface); border-radius: 32px; padding: 32px; box-shadow: 0 24px 48px rgba(16, 24, 40, .08); position: relative; }
.p-score-tag { position: absolute; top: 18px; right: 20px; font-size: 12px; color: var(--p-muted); border: 1px dashed var(--p-line); border-radius: 7px; padding: 2px 8px; }
.p-score-top { display: flex; align-items: center; gap: 14px; padding-right: 80px; }
.p-score-dom { font-weight: 700; font-size: 22px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-score-sub { font-size: 14px; color: var(--p-muted); margin-top: 2px; }
.p-fav-lg { width: 48px; height: 48px; border-radius: 14px; padding: 6px; }
.p-gauge { display: grid; place-items: center; margin: 22px 0 18px; }
.p-gauge svg { width: 240px; max-width: 100%; }
.p-gauge-v { font-size: 56px; font-weight: 800; margin-top: -96px; line-height: 1.2; letter-spacing: -.02em; }
.p-gauge-l { font-size: 15px; color: var(--p-success); font-weight: 600; margin-top: 6px; }
.p-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-checks div { background: var(--p-surface-2); border-radius: 14px; padding: 13px 14px; font-size: 15px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.p-checks i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; flex: none; background: var(--p-success-soft); color: var(--p-success); }
.p-checks .n i { background: rgba(199, 124, 0, .12); color: var(--p-warn); }
@media (max-width: 960px) { .p-chero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; } }
@media (max-width: 480px) { .p-checks { grid-template-columns: 1fr; } .p-cstats { gap: 12px; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; } .p-cstats b { font-size: 24px; } .p-cstats span { font-size: 12px; } .p-score { padding: 22px; } .p-check .p-btn { padding: 0 16px; } }

/* Разделы — сетка плиток макета A (4×2) */
.p-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 168px; gap: 16px; margin-top: 44px; }
.p-bento .p-tile h3 { max-width: 60%; font-size: 20px; }
.p-bento .p-art { width: 46%; max-width: 160px; right: -6px; bottom: -8px; }
.p-bento-meta { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-muted); }
.p-plus { width: 24px; height: 24px; border-radius: 8px; background: var(--p-surface-3); display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1; color: var(--p-text); }
.p-bento .is-promo { background: linear-gradient(135deg, #1f3fa8 0%, #2f63f0 55%, #5c8dff 100%); }
.p-bento .is-promo h3 { color: #fff; max-width: 62%; }
.p-bento .is-promo .p-btn { position: absolute; left: 24px; bottom: 22px; height: 38px; }
.p-bento .is-promo .p-art { width: 34%; max-width: 150px; right: 18px; }
.p-bento .is-wide { grid-column: span 2; }
@media (max-width: 1000px) { .p-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Телефон: одна колонка — в половине ширины иллюстрация налезала на заголовок. */
@media (max-width: 600px) {
    .p-bento { grid-template-columns: 1fr; grid-auto-rows: 118px; gap: 10px; }
    .p-bento .p-tile h3 { max-width: 62%; font-size: 18px; }
    .p-bento .p-art { width: auto; height: 104%; max-width: 120px; right: 8px; bottom: -6px; }
    .p-bento .is-wide { grid-column: auto; }
    .p-bento .is-promo { min-height: 150px; }
    .p-bento .is-promo .p-art { height: 90%; }
}
@media (max-width: 480px) { .p-bento { gap: 10px; } .p-bento .p-tile h3 { font-size: 17px; } .p-bento-meta { left: 18px; bottom: 16px; } .p-bento .is-promo .p-btn { left: 18px; bottom: 16px; } .p-tile { padding: 18px; } }

/* Помогаем выбрать (макет A) */
.p-sit { display: grid; grid-template-columns: 250px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.p-sit-list { display: flex; flex-direction: column; gap: 6px; }
.p-sit-list button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; font: 500 15px/1.3 var(--p-font); color: var(--p-text); background: none; border: 0; cursor: pointer; transition: background .2s; }
.p-sit-list button:hover { background: var(--p-surface-2); }
.p-sit-list button[aria-selected="true"] { background: var(--p-surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.p-sit-list .p-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--p-accent-soft); color: var(--p-accent-text); display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }
.p-sit-panel { display: contents; }
.p-sit-panel[hidden] { display: none; }
/* Нет статей «Ещё по теме» (например, другая локаль) — карточки занимают и её колонку. */
.p-sit-panel.no-more .p-stack { grid-column: span 2; }
.p-sit .is-tall { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.p-sit .is-tall .p-art { position: static; width: 58%; max-width: 180px; margin-bottom: auto; }
.p-sit .is-tall h3 { font-size: 22px; }
.p-link { color: var(--p-accent-text) !important; font-weight: 600; font-size: 14px; margin-top: 12px; display: inline-block; }
.p-stack { display: grid; gap: 16px; align-content: stretch; }
.p-more h3 { font-size: 19px; }
.p-more-list { display: grid; gap: 12px; margin-top: 16px; }
.p-more-list a { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.p-more-list a:hover span:last-child { color: var(--p-accent-text); }
.p-more-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--p-surface-2); display: grid; place-items: center; flex: none; }
.p-more-ic img { width: 38px; height: 38px; }
@media (max-width: 1100px) { .p-sit { grid-template-columns: 1fr 1fr; } .p-sit-list { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; } .p-sit-list button { white-space: nowrap; } .p-more { grid-column: 1 / -1; } }
@media (max-width: 560px) { .p-sit { grid-template-columns: 1fr; } }

/* Полезные сервисы (макет A: контейнер с виджетом и плитками) */
.p-svc { background: var(--p-surface); border-radius: 32px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.p-w { background: var(--p-surface-2); border-radius: var(--p-r-lg); padding: 28px; min-width: 0; }
.p-w-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.p-w h3 { font-size: 22px; font-weight: 700; }
.p-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-mini { background: var(--p-surface-2); border-radius: var(--p-r-lg); padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: 15px; font-weight: 600; min-height: 150px; transition: transform .2s var(--p-ease), background .2s; }
.p-mini:hover { transform: translateY(-2px); background: var(--p-surface-3); }
.p-mini img { width: 64px; height: 64px; }
.p-bars { display: grid; gap: 10px; margin-top: 18px; }
.p-bar { display: grid; grid-template-columns: 28px 1fr 40px; gap: 10px; align-items: center; }
.p-bar .p-track { height: 32px; border-radius: 10px; background: var(--p-surface-3); position: relative; overflow: hidden; }
.p-bar .p-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(42, 123, 255, .25), var(--p-accent)); border-radius: 10px; }
.p-bar .p-lbl { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 24px); }
.p-bar .p-val { font-weight: 700; font-size: 15px; text-align: right; }
@media (max-width: 1000px) { .p-svc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .p-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-mini { padding: 14px 10px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; } .p-svc { padding: 14px; border-radius: 24px; } .p-w { padding: 20px; } }

/* Вкладки и таблицы рейтинга */
.p-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--p-line); overflow-x: auto; margin-bottom: 8px; }
.p-tabs button { padding: 10px 0; font: 600 14px var(--p-font); color: var(--p-muted); border: 0; background: none; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.p-tabs button[aria-selected="true"] { color: var(--p-accent-text); border-color: var(--p-accent); }
.p-tblw { background: var(--p-surface); border-radius: var(--p-r-lg); padding: 24px; min-width: 0; }
.p-tbls { overflow-x: auto; }
.p-tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.p-tbl th { text-align: left; font-size: 12px; color: var(--p-muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
.p-tbl td { padding: 11px 8px; border-bottom: 1px solid var(--p-line); white-space: nowrap; vertical-align: middle; }
.p-tbl tr:last-child td { border-bottom: 0; }
.p-tbl .p-nm { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.p-tbl .p-nm span { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.p-rank { font-weight: 800; color: var(--p-muted); }
.p-star { color: #f5a623; }
.p-tile-sm { min-height: 140px; }
.p-tile-sm h3, .p-tile-sm .p-sub { max-width: 64%; }
.p-tile-sm .p-art { width: 32%; max-width: 120px; }
.p-outages h3 { font-size: 22px; }
.p-status { display: grid; margin-top: 10px; }
.p-status-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--p-line); }
.p-status-row:last-child { border-bottom: 0; }
.p-status-nm { font-weight: 600; font-size: 15px; }
.p-fav-txt { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--p-text); padding: 0; }
.p-badge.warn { background: rgba(199, 124, 0, .12); color: var(--p-warn); }
.p-badge.bad { background: rgba(224, 60, 60, .10); color: #e03c3c; }
.p-strip { margin-top: 16px; background: var(--p-surface); border-radius: var(--p-r-lg); padding: 18px 24px; display: flex; gap: 22px; align-items: center; overflow-x: auto; }
.p-strip h3 { font-size: 16px; font-weight: 700; white-space: nowrap; }
.p-strip h3 + .p-strip-it { margin-left: -6px; }
.p-strip-it { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
.p-delta { font-size: 13px; font-weight: 700; }
.p-delta.up { color: var(--p-success); }
.p-delta.dn { color: #e03c3c; }
.p-strip-note { margin-left: auto; white-space: nowrap; }
.p-board { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .p-board { grid-template-columns: 1fr; } }

/* Отзывы (макет A) */
.p-rv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.p-rv-cta .p-art { position: absolute; }
.p-rv-cta { background: linear-gradient(135deg, var(--p-accent-soft), transparent 70%), var(--p-surface); border: 1px solid var(--p-accent); border-radius: var(--p-r-lg); padding: 28px; min-height: 170px; position: relative; overflow: hidden; }
.p-rv-cta h3 { font-size: 28px; font-weight: 700; }
.p-rv-cta .p-sub { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.p-rv-cta .p-art { width: 42%; max-width: 210px; right: 18px; top: 50%; transform: translateY(-50%) rotate(-6deg); bottom: auto; }
.p-rv-cta { display: flex; flex-direction: column; justify-content: center; }
.p-rv-cta > :not(.p-art) { max-width: 55%; position: relative; z-index: 1; }
.p-rv-cats { background: var(--p-surface); border-radius: var(--p-r-lg); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 4px; padding: 18px; }
.p-rv-cats a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; font-weight: 600; padding: 10px; border-radius: 14px; transition: background .2s; }
.p-rv-cats a:hover { background: var(--p-surface-2); }
.p-rv-cats img { width: 52px; height: 52px; }
@media (max-width: 860px) { .p-rv-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .p-rv-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-rv-cta > :not(.p-art) { max-width: 62%; } }
.p-revs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.p-rev { background: var(--p-surface); border-radius: var(--p-r-md); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.p-rev .p-who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.p-rev .p-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-av { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; background: var(--p-surface-3); }
.p-stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.p-rev p { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.p-rev .p-on { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--p-line); min-width: 0; }
.p-rev .p-on span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) { .p-revs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .p-revs { grid-template-columns: 1fr; } }

/* Журнал (макет B «Главное за сегодня»: лента + статьи) */
.p-today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 16px; }
.p-today .p-arts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-feed { background: var(--p-surface); border-radius: var(--p-r-lg); padding: 26px; }
.p-feed h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.p-feed a { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--p-line); }
.p-feed a:last-child { border-bottom: 0; padding-bottom: 0; }
.p-feed-t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.p-feed a:hover .p-feed-t { color: var(--p-accent-text); }
@media (max-width: 1000px) { .p-today { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .p-today .p-arts { grid-template-columns: 1fr; } }
/* Карточки статей */
.p-arts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-art-card { background: var(--p-surface); border-radius: var(--p-r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s var(--p-ease); }
.p-art-card:hover { transform: translateY(-2px); }
.p-art-card .p-cover { aspect-ratio: 16 / 9; background: var(--p-surface-2); display: grid; place-items: center; position: relative; }
.p-art-card .p-cover img { width: 40%; height: auto; }
.p-art-card .p-cover .p-badge { position: absolute; left: 14px; top: 14px; }
.p-art-card .p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-art-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.p-meta { display: flex; gap: 14px; font-size: 13px; color: var(--p-muted); flex-wrap: wrap; }
@media (max-width: 1000px) { .p-arts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .p-arts { grid-template-columns: 1fr; } }

/* Хаб раздела */
.p-hub-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; padding-top: 24px; }
.p-hub-head h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.08; }
.p-hub-head .p-lead { margin-top: 12px; color: var(--p-muted); max-width: 640px; }
.p-hub-head .p-upd { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.p-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-kpi div { background: var(--p-surface); border-radius: var(--p-r-md); padding: 16px; }
.p-kpi b { display: block; font-size: 24px; font-weight: 800; }
.p-kpi span { font-size: 12px; color: var(--p-muted); }
@media (max-width: 860px) { .p-hub-head { grid-template-columns: 1fr; } }
.p-crumbs { padding-top: 20px; font-size: 13px; color: var(--p-muted); }
.p-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.p-crumbs li + li::before { content: "›"; margin-right: 6px; }
.p-subnav { display: flex; gap: 8px; overflow-x: auto; margin-top: 24px; padding-bottom: 4px; }
.p-subnav a { padding: 10px 14px; border-radius: 12px; background: var(--p-surface); font-size: 14px; font-weight: 600; white-space: nowrap; }
.p-subnav a.on { background: var(--p-accent); color: var(--p-on-accent); }
.p-hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 24px; }
.p-hub-grid aside { display: grid; gap: 16px; align-content: start; }
@media (max-width: 1000px) { .p-hub-grid { grid-template-columns: 1fr; } }
.p-guide { background: var(--p-surface); border-radius: var(--p-r-lg); padding: 32px; }
.p-guide h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-steps div { background: var(--p-surface-2); border-radius: var(--p-r-md); padding: 16px; }
.p-steps b { display: block; font-size: 13px; color: var(--p-accent-text); margin-bottom: 6px; }
.p-steps p { font-size: 14px; }
@media (max-width: 900px) { .p-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .p-steps { grid-template-columns: 1fr; } .p-guide { padding: 20px; } }
.p-faq { display: grid; gap: 8px; }
.p-faq details { background: var(--p-surface); border-radius: 14px; padding: 14px 18px; }
.p-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; color: var(--p-muted); font-weight: 700; }
.p-faq details[open] summary::after { content: "–"; }
.p-faq p { margin-top: 10px; color: var(--p-muted); font-size: 14px; max-width: 70ch; }
.p-side { background: var(--p-surface); border-radius: var(--p-r-lg); padding: 24px; position: relative; overflow: hidden; }
.p-side h3 { font-size: 17px; font-weight: 700; }
.p-side .p-art { width: 92px; right: 8px; bottom: -6px; }
.p-side .p-btn { margin-top: 16px; }
.p-side-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--p-line); font-size: 14px; }
.p-side-list a:last-child { border-bottom: 0; }
.p-all-h { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) { .portal * { transition: none !important; } }

/* Телефон (проход 08.10): горизонтальные ленты без полос прокрутки, CTA отзыва без наложения,
   отзывов — четыре, подпись рейтингов под заголовком. */
.p-sit-list, .p-tabs, .p-tbls, .p-subnav { scrollbar-width: none; }
.p-sit-list::-webkit-scrollbar, .p-tabs::-webkit-scrollbar, .p-tbls::-webkit-scrollbar, .p-subnav::-webkit-scrollbar { display: none; }
@media (max-width: 600px) {
    .p-sec-h { flex-direction: column; align-items: flex-start; gap: 6px; }
    .p-rv-cta { padding-right: 24px; min-height: 0; }
    .p-rv-cta > :not(.p-art) { max-width: calc(100% - 100px); }
    .p-rv-cta .p-art { width: 92px; top: 20px; right: 12px; transform: rotate(-6deg); }
    .p-revs .p-rev:nth-child(n+5) { display: none; }
    /* Таблицы рейтинга влезают в экран: без кнопки «Отзывы» (ссылка уже на названии), узкие колонки. */
    .p-tbl { min-width: 0; font-size: 14px; }
    .p-tbl th, .p-tbl td { padding: 10px 5px; }
    .p-tbl .p-col-btn { display: none; }
    .p-tbl .p-nm span { max-width: 140px; }
    .p-tblw { padding: 16px; }
}
