/* Главная: модуль «Посмотрите примеры отчётов» (ТЗ «Примеры отчётов на главной» ред. 1.1) и метка у заголовка блока «Диагностика Telegram-канала».
   Всё под корневым классом .rex / #audit .audit-title — остальные блоки и кабинет не затрагиваются. */
.rex { --rex-ink:#14263c; --rex-sub:#61748b; --rex-line:#dfe7ee; --rex-blue:#006fa8; --rex-blue-dk:#005c8c; --rex-accent:#078ecc;
       margin:34px 0 18px; color:var(--rex-ink); }
.rex-head { text-align:center; max-width:720px; margin:0 auto 28px; }
.rex-head h2 { margin:0 0 12px; font-size:38px; line-height:1.18; font-weight:800; color:var(--rex-ink); }
.rex-head p { margin:0; font-size:18px; line-height:1.5; color:var(--rex-sub); }

.rex-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.rex-card { background:#fff; border:1px solid var(--rex-line); border-radius:20px; padding:28px; min-width:0;
            display:flex; flex-direction:column; text-align:left; }
.rex-top { margin-bottom:20px; }
.rex-tag { display:inline-block; font-size:14px; font-weight:700; line-height:1.2; padding:8px 12px; border-radius:25px; margin-bottom:14px; }
.rex-tag.is-free { background:#e3f6ec; color:#0b6b3f; }
.rex-tag.is-paid { background:#e3f3fb; color:#0a4f7a; }
.rex-card h3 { margin:0 0 6px; font-size:27px; line-height:1.2; font-weight:800; color:var(--rex-ink); }
.rex-big { margin:0 0 4px; font-size:42px; line-height:1.1; font-weight:800; color:var(--rex-accent); }
.rex-sub { margin:0; font-size:17px; line-height:1.45; color:var(--rex-sub); }

.rex-prev { aspect-ratio:16/10; width:100%; border-radius:12px; overflow:hidden; background:#edf3f7; border:1px solid var(--rex-line);
            display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.rex-prev img { display:block; width:100%; height:100%; object-fit:cover; object-position:top center; }
.rex-fb { display:none; flex-direction:column; align-items:center; gap:8px; color:var(--rex-sub); font-size:15px; text-align:center; padding:12px; }
.rex-prev[data-failed] .rex-fb { display:flex; }
.rex-prev[data-failed] img { display:none; }

.rex-props { list-style:none; margin:0 0 20px; padding:0; display:grid; gap:12px; font-size:16px; line-height:1.45; }
.rex-props li { position:relative; padding-left:22px; }
.rex-props li::before { content:""; position:absolute; left:2px; top:.5em; width:8px; height:8px; border-radius:50%; background:var(--rex-accent); }

.rex-act { margin-top:auto; }
.rex-btn { display:flex; align-items:center; justify-content:center; text-align:center; width:100%; min-height:52px; padding:12px 16px;
           border-radius:12px; font-size:16px; font-weight:700; line-height:1.3; border:2px solid var(--rex-blue);
           transition:background-color .15s ease, color .15s ease, border-color .15s ease; }
.rex-btn.primary { background:var(--rex-blue); color:#fff; }
.rex-btn.primary:hover { background:var(--rex-blue-dk); border-color:var(--rex-blue-dk); text-decoration:none; }
.rex-btn.ghost { background:#fff; color:var(--rex-blue); }
a.rex-btn.ghost:hover { background:#e6f5fd; text-decoration:none; }
.rex-btn:focus-visible { outline:3px solid #14263c; outline-offset:3px; }
/* пример ещё не подключён (нет утверждённого образца 60+): кнопка занимает место, но не работает и не получает фокус */
.rex-btn.off { color:#6b7c90; border-color:#c9d6e0; background:#f4f7fa; cursor:default; }

/* одинаковые зоны заголовка/превью/свойств/кнопки в двух карточках: строки общей сетки (subgrid) */
@media (min-width:900px) {
    @supports (grid-template-rows: subgrid) {
        .rex-grid { grid-template-rows:auto auto auto auto; }
        .rex-card { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; }
        .rex-act { margin-top:0; align-self:end; }
    }
}
@media (min-width:900px) and (max-width:1100px) { .rex-card { padding:24px; } }

@media (max-width:899px) {
    .rex { margin:20px 0 12px; }
    .rex-head { margin-bottom:24px; }
    .rex-head h2 { font-size:30px; line-height:1.2; }
    .rex-head p { font-size:16px; }
    .rex-grid { grid-template-columns:1fr; gap:20px; }
    .rex-card { padding:20px; border-radius:16px; }
    .rex-card h3 { font-size:23px; }
    .rex-big { font-size:36px; }
    .rex-sub { font-size:16px; }
    .rex-prev { margin-bottom:16px; }
    .rex-props { margin-bottom:20px; }
    .rex-btn { min-height:48px; }
}
@media (max-width:374px) { .rex-card { padding:16px; } .rex-head h2 { font-size:27px; } .rex-big { font-size:32px; } }
@media (prefers-reduced-motion:reduce) { .rex-btn { transition:none; } }

/* метка «Бесплатно» у заголовка блока «Диагностика Telegram-канала» (ТЗ §3) */
#audit .audit-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin:0 0 15px; }
#audit .audit-title h2 { margin:0; }
#audit .audit-title .pilltag { font-size:14px; font-weight:700; padding:8px 12px; }
