/* =====================================================================
   ix-4-blocks.css (19.11.2026) — главная: отступ под шапкой, полоса цифр, листание ТОПа, карточки продвижения.
   Удалить файл = вернуть как было. На телефоне содержимое главной уменьшено до 80% (zoom .8),
   поэтому размеры для телефона здесь заданы с запасом: 15px в CSS = 12px на экране.
   ===================================================================== */

/* ---------- 1. Отступ между шапкой и верхним блоком ---------- */
@media (max-width: 992px) {
    html body { padding-top: 56px !important; }
    html body .main { padding-top: 6px !important; }
    html body .welcome-banner { margin-top: 0 !important; }
}

/* ---------- 2. Полоса цифр под баннером ---------- */
.hl-trust.hl-trust2 { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 22px; padding: 14px 18px; border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%); border: 1px solid #dcefe8; box-shadow: 0 10px 30px -22px rgba(15,118,110,.45); }
.hl-trust2 .hl-trust-live { padding: 6px 11px; border-radius: 999px; background: rgba(38,230,150,.12); color: #047857; font-size: 12px; }
.hl-trust2 .hl-trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hl-trust2 .hl-trust-i { gap: 10px; padding: 8px 10px; border-radius: 13px; background: #fff; border: 1px solid #edf2f7; }
.hl-trust2 .hl-trust-ic { width: 34px; height: 34px; border-radius: 10px; }
.hl-trust2 .hl-trust-ic svg { width: 17px; height: 17px; }
.hl-trust2 .hl-ti0 .hl-trust-ic { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 6px 14px -6px rgba(2,132,199,.7); }
.hl-trust2 .hl-ti1 .hl-trust-ic { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 6px 14px -6px rgba(124,58,237,.7); }
.hl-trust2 .hl-ti2 .hl-trust-ic { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 14px -6px rgba(5,150,105,.7); }
.hl-trust2 .hl-ti3 .hl-trust-ic { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 6px 14px -6px rgba(249,115,22,.7); }
.hl-trust2 .hl-trust-i b { font-size: 19px; line-height: 1.05; }
.hl-trust2 .hl-trust-i small { font-size: 11.5px; margin-top: 2px; line-height: 1.2; }
@media (max-width: 1100px) and (min-width: 761px) { .hl-trust.hl-trust2 { grid-template-columns: 1fr; justify-items: center; } .hl-trust2 .hl-trust-row { width: 100%; } }
@media (max-width: 760px) {
    .hl-trust.hl-trust2 { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 14px 12px 12px; border-radius: 20px; }
    .hl-trust2 .hl-trust-live { width: auto; font-size: 14px; padding: 6px 13px; }
    .hl-trust2 .hl-trust-row { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .hl-trust2 .hl-trust-i { flex-direction: row; text-align: left; gap: 11px; padding: 11px 12px; border-radius: 15px; }
    .hl-trust2 .hl-trust-i > span:last-child { align-items: flex-start; min-width: 0; }
    .hl-trust2 .hl-trust-ic { width: 42px; height: 42px; border-radius: 13px; }
    .hl-trust2 .hl-trust-ic svg { width: 21px; height: 21px; }
    .hl-trust2 .hl-trust-i b { font-size: 24px; }
    .hl-trust2 .hl-trust-i small { font-size: 13.5px; }
}

/* ---------- 3. Листание ТОПа и «Весь каталог» на телефоне — крупнее, как остальные кнопки ---------- */
@media (max-width: 760px) {
    html body .rating-section .table-pagination { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 9px; margin: 16px 0 10px !important; }
    html body .rating-section .table-pagination[style*="none"] { display: none !important; }
    html body .rating-section .pg-btn { justify-content: center; height: 50px; padding: 0 12px !important; font-size: 15px !important; border-radius: 16px; gap: 6px; white-space: nowrap; }
    html body .rating-section .pg-btn svg { width: 17px !important; height: 17px !important; }
    html body .rating-section .pg-indicator { display: inline-flex; align-items: center; justify-content: center; height: 50px; min-width: 62px; padding: 0 10px; border-radius: 16px;
        background: #fff; border: 1px solid #e2e8f0; font-size: 15px !important; font-weight: 800; color: #0f172a; box-sizing: border-box; }
    html body .tg-home-all { margin: 6px 0 4px !important; }
    html body .tg-home-all a { display: flex !important; align-items: center; justify-content: center; height: 50px; padding: 0 16px !important; border-radius: 16px !important; font-size: 15px !important; box-sizing: border-box; }
}

/* ---------- 4. Карточки «Поднимите канал в топ» на телефоне — компактнее ---------- */
@media (max-width: 760px) {
    html body .promo-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    html body .promo-card { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 11px; padding: 12px 12px 16px !important; border-radius: 20px !important; position: relative; }
    html body .promo-card > .hl-pv-link { grid-column: 1 / -1; }
    html body .promo-card > .hl-box.hl-pv { grid-column: 1 / -1; aspect-ratio: 16 / 9.4 !important; margin-bottom: 14px !important; }
    html body .promo-card .hl-pvi { padding-bottom: 4cqw !important; }
    html body .promo-card .hl-pv-cta { display: none !important; }
    html body .promo-card .promo-num { grid-column: 1; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px;
        font-size: 17px !important; background: rgba(38,230,150,.14) !important; -webkit-text-fill-color: #34e8a0 !important; color: #34e8a0 !important; border: 1px solid rgba(38,230,150,.3); }
    html body .promo-card .promo-card-title { grid-column: 2; margin: 0 !important; font-size: 19px !important; line-height: 1.2; padding-right: 44px; }
    html body .promo-card .promo-card-desc { grid-column: 1 / -1; margin-top: 9px; font-size: 15px !important; line-height: 1.5 !important; color: rgba(255,255,255,.78) !important; }
    /* стрелка «перейти» вместо кнопки — вся карточка и так ссылка */
    html body .promo-card:has(.hl-pv-link) .promo-card-title::after { content: "→"; position: absolute; right: 12px; width: 36px; height: 36px; margin-top: -8px; border-radius: 12px;
        display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #04221a; background: linear-gradient(135deg, #26e696, #18d2a8);
        box-shadow: 0 6px 16px -6px rgba(38,230,150,.8); }
}
