/* ============================================================
   Bonus Top — современный дизайн-слой (child theme)
   v1.1
   ============================================================ */

:root {
    --bt-navy: #0B1F3A;
    --bt-navy-2: #12294B;
    --bt-green: #00B25C;
    --bt-green-dark: #009E52;
    --bt-yellow: #FFB800;
    --bt-bg: #F4F6FB;
    --bt-card: #FFFFFF;
    --bt-text: #1A2233;
    --bt-text-2: #5A6B85;
    --bt-border: #E6EBF4;
    --bt-radius: 14px;
    --bt-shadow: 0 2px 10px rgba(11, 31, 58, .06);
    --bt-shadow-lg: 0 8px 30px rgba(11, 31, 58, .12);
    --bt-font: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--bt-font) !important;
    background: var(--bt-bg) !important;
    color: var(--bt-text);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .block-name, .sidebar-title {
    font-family: var(--bt-font) !important;
    font-weight: 800;
    letter-spacing: -.02em;
}
a { transition: color .2s, background .2s, box-shadow .2s, transform .2s; }

/* ---------- ШАПКА: липкая, стеклянная ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 31, 58, .97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.header .wrap { max-width: 1280px; }
.header__logo a, .logo a {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.03em;
}
/* кнопка Войти */
.header .btn-login, .header a[href*="login"] {
    background: var(--bt-green) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 9px 20px !important;
    font-weight: 700;
}
.header .btn-login:hover { background: var(--bt-green-dark) !important; transform: translateY(-1px); }

/* меню */
.nav ul li a { font-weight: 600; font-size: 14px; opacity: .85; }
.nav ul li a:hover, .nav li.current-menu-item a { opacity: 1; color: var(--bt-yellow) !important; }

/* ---------- КОНТЕЙНЕР ---------- */
.wrap { max-width: 1280px; padding: 0 20px; }
.page-left-col { background: transparent; }

/* ---------- ЗАГОЛОВКИ ---------- */
.block-name, .text-page h2, h1.block-name {
    font-size: 26px;
    color: var(--bt-navy);
    margin: 26px 0 16px;
}

/* ---------- ТАБЛИЦА РЕЙТИНГА: десктоп ---------- */
.companies-rating {
    background: var(--bt-card);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
    overflow: hidden;
    border: 1px solid var(--bt-border);
    margin: 18px 0 30px;
}
.companies-rating table { width: 100%; border-collapse: collapse; }
.companies-rating thead td {
    background: var(--bt-navy);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 13px 14px;
    border: none;
}
.companies-rating tbody tr {
    border-bottom: 1px solid var(--bt-border);
    transition: background .15s, transform .15s;
}
.companies-rating tbody tr:last-child { border-bottom: none; }
.companies-rating tbody tr:hover { background: #F8FAFF; }
.companies-rating tbody td { padding: 12px 14px; vertical-align: middle; }
.companies-rating .pos {
    font-weight: 800; color: var(--bt-text-2); font-size: 14px;
    width: 36px;
}
.companies-rating .pos::before {
    content: ''; display: inline-block; width: 22px; height: 22px;
    line-height: 22px; text-align: center; border-radius: 7px;
    background: var(--bt-bg); color: var(--bt-text-2);
    font-size: 12px; font-weight: 800;
}
.companies-rating tbody tr:nth-child(1) .pos { color: #E8A200; }
.companies-rating tbody tr:nth-child(2) .pos { color: #8A97AB; }
.companies-rating tbody tr:nth-child(3) .pos { color: #C07B3A; }
.companies-rating .logo_image img {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(11,31,58,.15);
    max-height: 40px;
    width: auto;
}
.companies-rating .rating .fa-star { color: #D8DFEB; font-size: 15px; }
.companies-rating .rating .fa-star.checked { color: var(--bt-yellow); }
.companies-rating .price {
    font-weight: 800; font-size: 16px; color: var(--bt-text);
    white-space: nowrap;
}

/* кнопки ОБЗОР / СТАВКА */
.companies-rating .btns { white-space: nowrap; }
.companies-rating .b1, .companies-rating .b2 {
    display: inline-block;
    border-radius: 9px;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.companies-rating .b1 {
    background: var(--bt-bg);
    color: var(--bt-navy) !important;
    border: 1px solid var(--bt-border);
}
.companies-rating .b1:hover { background: var(--bt-navy); color: #fff !important; }
.companies-rating .b2 {
    background: linear-gradient(135deg, var(--bt-green), var(--bt-green-dark));
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0, 178, 92, .35);
    margin-left: 6px;
}
.companies-rating .b2:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 178, 92, .45); }

/* ---------- ТАБЛИЦА РЕЙТИНГА: МОБИЛА (карточки) ---------- */
@media (max-width: 820px) {
    .companies-rating { background: transparent; border: none; box-shadow: none; overflow: visible; }
    .companies-rating thead { display: none; }
    .companies-rating table, .companies-rating tbody, .companies-rating tr, .companies-rating td { display: block; width: 100%; }
    .companies-rating tbody tr {
        background: var(--bt-card);
        border: 1px solid var(--bt-border);
        border-radius: var(--bt-radius);
        box-shadow: var(--bt-shadow);
        margin-bottom: 14px;
        padding: 14px 16px 16px;
        position: relative;
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "pos pos"
            "logo rating"
            "bonus bonus"
            "btns btns";
        gap: 8px 12px;
    }
    .companies-rating tbody tr:hover { background: var(--bt-card); }
    .companies-rating td { padding: 0 !important; }
    .companies-rating .pos { grid-area: pos; width: auto; }
    .companies-rating .pos::before { content: none; }
    .companies-rating .pos::after {
        content: ' место';
        font-weight: 400; font-size: 11px; color: var(--bt-text-2);
    }
    .companies-rating .logo_image { grid-area: logo; }
    .companies-rating .logo_image img { max-height: 46px; }
    .companies-rating td:nth-child(3) { grid-area: rating; justify-self: end; align-self: center; }
    .companies-rating .price { grid-area: bonus; font-size: 19px; }
    .companies-rating .price::before {
        content: 'Бонус: '; font-weight: 600; font-size: 12px; color: var(--bt-text-2);
        display: block; margin-bottom: 2px;
    }
    .companies-rating td:nth-child(5) { grid-area: btns; display: flex; gap: 8px; margin-top: 4px; }
    .companies-rating .b1, .companies-rating .b2 {
        flex: 1; text-align: center; padding: 13px 10px; font-size: 13px; margin: 0;
    }
    /* отзывы скрыть на мобиле (лишний шум) */
    .companies-rating .commentss { display: none; }
}

/* ---------- КАРТОЧКИ ПРОГНОЗОВ ---------- */
.forecast-grid, [class*="forecast"] .wrap .flex { gap: 16px; }
.text-page .forecast-grid > div, .forecasts-list .forecast-item {
    background: var(--bt-card);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
    padding: 16px;
    transition: box-shadow .2s, transform .2s;
}
.text-page .forecast-grid > div:hover { box-shadow: var(--bt-shadow-lg); transform: translateY(-3px); }

/* ---------- САЙДБАР ---------- */
.page-right-col { padding-left: 20px; }
.sidebar-item, .widget {
    background: var(--bt-card);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
    padding: 20px;
    margin-bottom: 18px;
}
.sidebar-title, .widget-title {
    font-size: 16px;
    color: var(--bt-navy);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bt-bg);
    position: relative;
}
.sidebar-title::after, .widget-title::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 44px; height: 2px; background: var(--bt-green);
}
/* карточки БК в виджете */
.sidebar-rating li, .sidebar-bk-item {
    border-bottom: 1px solid var(--bt-border);
    padding: 12px 0;
}
.sidebar-rating li:last-child { border-bottom: none; }
.sidebar-rating__bonus-size, .sidebar-rating .price {
    font-weight: 800; font-size: 16px; color: var(--bt-navy);
}
/* кнопка На сайт */
.sidebar-rating .btn, .sidebar-rating a[rel="nofollow"], .sidebar-item .b2 {
    background: linear-gradient(135deg, var(--bt-green), var(--bt-green-dark));
    color: #fff !important; border-radius: 9px; font-weight: 700; font-size: 13px;
    padding: 9px 16px; display: inline-block;
}
.sidebar-rating .btn:hover { transform: translateY(-1px); }

/* подписка */
.widget input[type="email"], .sidebar-item input[type="email"] {
    border: 1.5px solid var(--bt-border) !important;
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    font-family: var(--bt-font);
    margin-bottom: 10px;
}
.widget input[type="submit"], .sidebar-item button {
    width: 100%;
    background: linear-gradient(135deg, var(--bt-green), var(--bt-green-dark));
    color: #fff; border: none; border-radius: 10px;
    padding: 13px; font-weight: 800; font-size: 14px; cursor: pointer;
}

/* ---------- ФУТЕР ---------- */
.footer { background: var(--bt-navy) !important; color: #B9C6DB; }
.footer a { color: #B9C6DB; opacity: .8; }
.footer a:hover { opacity: 1; color: var(--bt-yellow); }
.footer__item, .footer .widget { background: transparent; border: none; box-shadow: none; padding: 0; }
.footer .sidebar-title { color: #fff; border-color: rgba(255,255,255,.12); }
.footer .sidebar-title::after { background: var(--bt-yellow); }

/* ---------- МОБИЛЬНЫЕ ПРАВКИ ---------- */
@media (max-width: 820px) {
    body { background: var(--bt-bg) !important; }
    .wrap { padding: 0 14px; }
    .page-right-col { padding-left: 0; margin-top: 24px; }
    .block-name, .text-page h2 { font-size: 21px; }
    /* прогнозы одной колонкой */
    .forecast-grid > div { width: 100% !important; margin-bottom: 14px; }
}

/* ---------- ПЛАНШЕТ ---------- */
@media (min-width: 821px) and (max-width: 1100px) {
    .wrap { max-width: 100%; padding: 0 24px; }
    .companies-rating .b1, .companies-rating .b2 { padding: 8px 12px; font-size: 11px; }
}

/* ---------- КАРТОЧКИ ПРОГНОЗОВ (games-list) ---------- */
.games-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0 30px; }
.games-list .item {
    background: var(--bt-card);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
    padding: 18px;
    transition: box-shadow .2s, transform .2s;
}
.games-list .item:hover { box-shadow: var(--bt-shadow-lg); transform: translateY(-3px); }
.games-list .teams { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.games-list .team { text-align: center; flex: 1; }
.games-list .team_logo img { width: 50px; height: 50px; object-fit: contain; }
.games-list .team_name { font-weight: 700; font-size: 13px; margin-top: 8px; color: var(--bt-text); line-height: 1.3; }
.games-list .coef { display: flex; gap: 8px; margin-top: 14px; }
.games-list .coef > div {
    flex: 1; text-align: center; background: var(--bt-bg); border-radius: 9px; padding: 8px 4px;
    font-size: 13px;
}
.games-list .coef b { display: block; color: var(--bt-navy); font-size: 15px; margin-top: 2px; }
@media (max-width: 820px) { .games-list { grid-template-columns: 1fr; } }

/* ---------- v1.2: ставки/прогнозы вырезаны ---------- */
.companies-rating .b1.full { display: block; text-align: center; margin: 0; padding: 11px 20px; }

/* ---------- v1.3: реальные лого целиком (без жёсткого кропа) ---------- */
.companies-rating .logo_image img { max-height: 44px; width: auto; max-width: 130px; object-fit: contain; }
.sidebar-rating__logo img, .sidebar-rating .image { max-height: 30px; width: auto; max-width: 100px; object-fit: contain; }
