/* Local behavior changes for the copied layout. */
.primary_menu_desktop_ver > ul > li > a {
    transition: color .2s ease, opacity .2s ease;
}

/* The primary menu intentionally has only top-level links. */
#menu-primary-menu > li > ul,
.primary_menu_desktop_ver .dropdown-menu {
    display: none !important;
}

.primary_menu_desktop_ver > ul > li > a:hover,
.primary_menu_desktop_ver > ul > li > a:focus-visible {
    color: var(--bs-primary) !important;
    opacity: .82;
}

@media (max-width: 991px) {
    header.header .primary_menu_desktop_ver,
    header.header .buttons_container {
        display: none;
    }

    header.header .header__container {
        gap: 12px;
    }
}

.linking_bl .dropdown-menu {
    display: none;
}

.linking_bl.is-open .dropdown-menu {
    display: block;
}

[data-placeholder-link="true"] {
    cursor: pointer;
}

/* Keep the locale menu anchored to its own button instead of letting the
 * absolute dropdown position itself against the page or footer. */
.linking_bl {
    position: relative;
    z-index: 20;
}

.linking_bl .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    z-index: 30;
    min-width: 220px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    margin: 0;
}

@media (min-width: 992px) {
    /* The original spacing reserved room for the removed contents block. */
    .wrap {
        padding-top: 142px;
    }
}

body {
    overflow-x: hidden;
}

/* The source layout uses explicit section margins. Remove the automatic
 * block gap from the outer template groups so the editable markup keeps the
 * same starting coordinates. */
.wrap {
    margin-top: 0 !important;
}

.wrap > .home-page {
    margin-top: 0 !important;
}

.home-page .welcome-section__container,
.home-page .welcome-section .description,
.home-page .welcome-section .banner {
    margin-top: 0 !important;
}

.home-page .welcome-section .banner::before {
    content: '';
    flex: 0 0 0;
    margin-bottom: 14px;
}

.home-page .welcome-section .banner .comment {
    margin-top: 0 !important;
}

.home-page .welcome-section h1 {
    margin-top: 10px;
}

/* Turn the native Gallery block into a front-end carousel. The images remain
 * direct Gallery children in the editor, so they can still be added, removed,
 * reordered, and edited there. */
.home-page .wp-block-gallery.image_slider_block {
    position: relative;
    display: block !important;
    padding: 0 !important;
    margin: 0 0 var(--mostbet-block-margin-bottom) !important;
    overflow: hidden;
}

.home-page .wp-block-gallery.image_slider_block::before,
.home-page .wp-block-gallery.image_slider_block::after {
    content: none !important;
    display: none !important;
}

.home-page .image_slider_track {
    display: flex;
    width: 100%;
    transition: transform .35s ease;
    will-change: transform;
}

.home-page .image_slider_slide {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.home-page .image_slider_slide .wp-block-image {
    display: block;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.home-page .image_slider_slide .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--mostbet-rounded-images);
}

.home-page .image_slider_dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-height: 31px;
    margin-top: 10px;
}

.home-page .image_slider_dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--theme-text);
    cursor: pointer;
}

.home-page .image_slider_dot::after {
    content: '';
    display: block;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
}

.home-page .image_slider_dot.is-active {
    border: 1px solid var(--theme-surface);
}

.home-page .wp-block-table,
.home-page .promocode-block,
.home-page .app_banner {
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    .home-page .image_slider_slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .wp-block-gallery.image_slider_block {
        margin-bottom: var(--mostbet-block-margin-bottom-mob) !important;
    }
}

@media (max-width: 767px) {
    .home-page .image_slider_slide {
        grid-template-columns: 1fr;
    }
}

.home-page .image_slider_cta {
    justify-content: center !important;
    margin-top: 0 !important;
    margin-bottom: var(--mostbet-block-margin-bottom) !important;
}

.home-page .image_slider_cta .wp-block-button {
    margin: 0;
}

/* Keep the list check centered in the blue marker. The source CSS uses a
 * Font Awesome glyph here, which can lose its alignment when that font is not
 * available in the editor or on a fresh install. */
.home-page .wp-block-hc-alternate-group-section ul.wp-block-list > li::before {
    content: '\2713' !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1 !important;
    color: color-mix(in srgb, var(--theme-accent) 41%, var(--theme-surface)) !important;
    background-color: var(--bs-primary) !important;
    border: 0 !important;
    box-sizing: border-box;
}

/* Block theme equivalents for the original header markup. */
header.header .logo .wp-block-image,
footer.footer .logo_row .wp-block-image {
    margin: 0;
}

/* The block-theme image figure otherwise expands to the full row width. */
footer.footer .logo_row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 24px;
}

footer.footer .logo_row > .wp-block-image.custom-logo {
    flex: 0 0 100px;
    width: 100px !important;
    max-width: 100px !important;
}

footer.footer .logo_row > .wp-block-image.custom-logo img {
    display: block;
    width: 100% !important;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

footer.footer .logo_row::after {
    width: 100%;
    align-self: center;
}

/* Use text symbols for the FAQ control so the state is visible even when the
 * optional icon font is unavailable. */
.faq-section .item .question button.toggler::before {
    content: '+' !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.faq-section .item.show .question button.toggler::before {
    content: '\2212' !important;
}

header.header .primary_menu_desktop_ver {
    flex-shrink: 1;
}

header.header .primary_menu_desktop_ver .wp-block-navigation__container {
    gap: 20px;
    flex-wrap: nowrap;
}

header.header .primary_menu_desktop_ver .wp-block-navigation-item__content {
    position: relative;
    display: block;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
    color: var(--header_footer_link_color);
    transition: color .2s ease, opacity .2s ease;
}

header.header .primary_menu_desktop_ver .wp-block-navigation-item__content:hover,
header.header .primary_menu_desktop_ver .wp-block-navigation-item__content:focus-visible {
    color: var(--bs-primary);
    opacity: .82;
}

/* Keep the Navigation block's responsive controls deterministic in the Site Editor preview. */
header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container-open,
header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container-close {
    display: none !important;
}

@media (min-width: 992px) {
    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        background: transparent !important;
        color: inherit !important;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container-content {
        display: block !important;
    }
}

header.header .buttons_container {
    display: flex;
    align-items: center;
}

header.header .buttons_container .wp-block-button {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0;
}

header.header .buttons_container .wp-block-button__link,
footer.footer .bottom_panel .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: .5rem 1rem;
    border-radius: var(--theme-radius-button,var(--mostbet-rounded-button));
    text-decoration: none;
    font-weight: 600;
}

header.header .buttons_container .btn-primary .wp-block-button__link {
    color: var(--theme-on-accent) !important;
    background-color: var(--theme-accent) !important;
    border: 1px solid var(--theme-accent) !important;
}

header.header .buttons_container .btn-success .wp-block-button__link,
footer.footer .bottom_panel .btn-success .wp-block-button__link {
    color: var(--theme-cta-text) !important;
    background-color: var(--theme-cta-strong) !important;
    border: 1px solid var(--theme-cta-strong) !important;
}

/* The welcome CTA row is a native Buttons block on the homepage. */
.home-page .main_page_header_buttons .wp-block-button {
    background: transparent !important;
    border: 0 !important;
}

.home-page .main_page_header_buttons .btn-primary .wp-block-button__link {
    color: var(--theme-on-accent) !important;
    background: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
}

.home-page .main_page_header_buttons .btn-success .wp-block-button__link {
    color: var(--theme-cta-text) !important;
    background: var(--theme-cta-strong) !important;
    border-color: var(--theme-cta-strong) !important;
}

@media (min-width: 992px) {
    .home-page .welcome-section .main_page_header_buttons {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .home-page .welcome-section .main_page_header_buttons {
        display: flex !important;
        margin-bottom: var(--mostbet-block-margin-bottom-mob);
    }

    .home-page .welcome-section .main_page_header_buttons .wp-block-button {
        flex-grow: 1;
    }

    .home-page .welcome-section .main_page_header_buttons .wp-block-button__link {
        width: 100%;
    }
}

/* Gutenberg keeps the button class on the wrapper. Apply the original CTA
 * sizing to the editable anchor inside that wrapper as well. */
.home-page .welcome-section .banner .wp-block-button {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin-top: 8px;
    padding: 0 !important;
    background: transparent !important;
    border: 0;
}

.home-page .welcome-section .banner .wp-block-buttons {
    display: contents;
}

@media (min-width: 992px) {
    .home-page .welcome-section__container,
    .home-page .welcome-section .banner {
        min-height: 262px;
    }
}

.home-page .welcome-section .banner .wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-top: 0;
    padding: .6rem 3rem !important;
    z-index: 1;
}

footer.footer .footer-navigation .wp-block-navigation__container {
    align-items: flex-start;
    gap: 8px;
    list-style: none;
    padding: 0;
}

footer.footer .footer-navigation .wp-block-navigation-item__content {
    color: var(--header_footer_text_color);
    text-decoration: none;
}

footer.footer .footer-navigation .wp-block-navigation-item__content:hover {
    color: var(--bs-primary);
}

footer.footer .footer_payments .wp-block-image,
footer.footer .footer_logos_police .wp-block-image {
    margin: 0;
}

@media (max-width: 991px) {
    header.header .primary_menu_desktop_ver {
        display: flex !important;
        max-width: none;
        width: auto;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container-open {
        display: flex !important;
        width: 28px;
        height: 28px;
        padding: 0;
        align-items: center;
        justify-content: center;
        color: var(--header_footer_link_color);
        background: transparent;
        border: 0;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container-open svg {
        display: none;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container-open::before {
        content: '☰';
        font-size: 28px;
        line-height: 1;
        color: var(--header_footer_link_color);
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container.is-menu-open {
        display: flex;
        /* !important: правило core `.wp-block-navigation:not(.has-background) … .is-menu-open` специфичнее и даёт белый фон. */
        background: var(--mobile_menu_bg, var(--header_bg_color, var(--theme-bg-card))) !important;
        color: var(--header_footer_link_color, var(--theme-text)) !important;
        padding: 24px;
    }

    /* Кнопка закрытия скрыта глобальным правилом выше (для предпросмотра в редакторе сайта);
     * в открытом мобильном меню она нужна — иначе меню нечем закрыть. */
    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
        display: flex !important;
        position: absolute;
        top: 20px;
        right: 16px;
        width: 28px;
        height: 28px;
        padding: 0;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        color: var(--header_footer_link_color, var(--theme-text));
        z-index: 3;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
        width: 28px;
        height: 28px;
        fill: currentColor;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        color: var(--header_footer_link_color, var(--theme-text)) !important;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        align-items: flex-start;
    }

    header.header .primary_menu_desktop_ver .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        align-items: flex-start;
        gap: 12px;
    }

    header.header .buttons_container {
        display: none !important;
    }
}

@media (min-width: 992px) {
    footer.footer .bottom_panel {
        display: none !important;
    }
}

/* Фон страницы берётся из токенов (стандарт токенов §9 п. 10). */
body {
    background-color: var(--theme-bg-base);
    background-image: var(--theme-page-gradient);
    background-attachment: var(--theme-page-attachment, fixed);
    background-repeat: var(--theme-page-repeat, no-repeat);
}

/* Страница без ведущего hero: шапка с рамкой, контент начинается под ней. */
.header--inner-page {
    border-bottom: 1px solid var(--theme-border, #dee2e6);
}

/* Пустой блог и пустые архивы. */
.mostbet-empty-blog {
    padding: 48px 0;
    text-align: center;
}

/* Копия главной: hero внутри группы <main> не получает лишних отступов. */
.wrap > .wp-block-group > .home-page,
.wrap > .home-page {
    margin-top: 0 !important;
}

/* ---------- Офферы (new-theme/offer-list) ---------- */
.offers {
    padding: 24px 0;
}

.offers .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.offers__title {
    margin: 0 0 12px;
    color: var(--theme-text);
}

.offers__intro {
    margin: 0 0 16px;
    color: var(--theme-text-muted);
}

.offers__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offers__empty {
    margin: 0;
    color: var(--theme-text-soft);
}

.offers__illegal-label {
    margin: 24px 0 12px;
    color: var(--theme-text-soft);
    font-size: 14px;
}

.offer-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    color: var(--theme-text);
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border-strong);
    border-radius: var(--theme-radius-card, 12px);
}

.offer-card.hidden {
    display: none;
}

.offer-card--illegal {
    background: var(--theme-bg-elevated);
}

.offer-card__top {
    display: flex;
    flex: 1 1 320px;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.offer-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 40px;
    color: var(--theme-text);
    font-weight: 700;
    text-decoration: none;
}

.offer-card__thumb img {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 48px;
    object-fit: contain;
}

.offer-card__features {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--theme-text-muted);
    font-size: 14px;
}

.offer-card__features li {
    position: relative;
    padding-left: 16px;
}

.offer-card__features li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--theme-bullet);
    border-radius: 50%;
}

.offer-card__license {
    flex: 1 0 100%;
    color: var(--theme-text-soft);
    font-size: 12px;
}

.offer-card__bottom {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.offer-card__bonus {
    display: flex;
    flex-direction: column;
    color: var(--theme-text);
    text-decoration: none;
}

.offer-card__bonus-value {
    font-size: 20px;
    font-weight: 700;
}

.offer-card__bonus-label {
    color: var(--theme-text-soft);
    font-size: 12px;
}

.offer-card__button,
.offers__view-all-illegal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 20px;
    color: var(--theme-cta-text);
    font-weight: 700;
    text-decoration: none;
    background: var(--theme-cta-background);
    border: 0;
    border-radius: var(--theme-radius-button, 8px);
    cursor: pointer;
}

.offer-card__button:hover,
.offers__view-all-illegal:hover {
    color: var(--theme-cta-text);
    background: var(--theme-cta-hover);
}

@media (max-width: 767px) {
    .offer-card__bottom,
    .offer-card__button {
        width: 100%;
    }
}

/* ---------- Автор страницы ---------- */
.author-byline {
    padding: 12px 0;
}

.author-byline .container,
.author-box .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.author-byline__author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--theme-text);
    text-decoration: none;
}

.author-byline__photo,
.author-box__photo {
    flex: none;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
}

.author-byline__photo--initials,
.author-box__photo--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-on-accent);
    font-weight: 700;
    background: var(--theme-accent);
}

.author-byline__text {
    display: flex;
    flex-direction: column;
}

.author-byline__name {
    font-weight: 700;
}

.author-byline__date {
    color: var(--theme-text-soft);
    font-size: 13px;
}

.author-box {
    padding: 24px 0;
}

.author-box__card {
    display: flex;
    gap: 20px;
    padding: 20px;
    color: var(--theme-text);
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border-strong);
    border-radius: var(--theme-radius-card, 12px);
}

.author-box__photo {
    width: 96px;
    height: 96px;
    font-size: 32px;
}

.author-box__label {
    margin: 0 0 4px;
    color: var(--theme-text-soft);
    font-size: 14px;
    font-weight: 400;
}

.author-box__name {
    margin: 0;
    color: var(--theme-text);
    font-size: 22px;
}

.author-box__role {
    margin: 4px 0 0;
    color: var(--theme-text-muted);
}

.author-box__bio {
    margin-top: 12px;
    color: var(--theme-text-muted);
}

.author-box__bio a {
    color: var(--theme-accent);
}

@media (max-width: 575px) {
    .author-box__card {
        flex-direction: column;
    }
}

/* Копия главной: hero внутри группы page.html (.container) не сужается боковыми отступами контейнера —
   положение и ширина hero совпадают с front-page. */
main > .container:has(> .wp-block-post-content .welcome-section),
main > .container:has(> .wp-block-post-content .mostbet-hero) {
  padding-left: 0;
  padding-right: 0;
}

/* ===== Дополнения 1.0.5: перенесено из «Дополнительного CSS» клонов ===== */

/* Шапка */
.header .logo a { color: var(--theme-text); text-decoration: none; font-weight: 700; font-size: 22px; }
.header .header__container { align-items: center; }
.header .buttons_container { margin: 0; }
.header .buttons .btn { padding: 0 !important; margin: 0; }
.header .buttons .btn a { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 24px; }
.welcome-section .main_page_header_buttons { margin: 0 12px 20px; }

/* Игровые панели (.game_section*) */
.game_section_columns { display: flex; gap: 20px; margin-bottom: var(--mostbet-block-margin-bottom, 32px); }
.game_section_columns > * { margin-top: 0 !important; }
.game_section header .title { color: #fff; }
.game_section { position: relative; padding: 20px; background: linear-gradient(90deg, var(--bs-secondary) 0%, transparent 130%); border-radius: 10px; overflow: hidden; }
.game_section header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.game_section header .title { font-size: 1.5rem; margin: 0; }
.game_section header .title:before { display: none; }
.game_section .game_section__container, .game_section .game_section__container li { padding: 0; margin: 0; list-style: none; }
.game_section .game_section__container li:before { display: none; }
.game_section .game_section__container img { transition: .5s; border-radius: var(--mostbet-rounded-images, 8px); }
.game_section .game_section__container img:hover { transform: scale(1.05); }
.game_section .game_section__container .single_url_mode { cursor: pointer; }
.game_section__container a.single_url_mode { display: block; }
.game_section__container img { width: 100%; height: auto; display: block; }
.game_section_1 { flex-basis: 50%; }
.game_section_wide { flex-basis: 100%; }
.game_section_1 .game_section__container { display: grid; grid-gap: 10px; }
.game_section_1 .game_section__container.columns-2 { grid-template-columns: repeat(2, 1fr); }
.game_section_1 .game_section__container.columns-3 { grid-template-columns: repeat(3, 1fr); }
.game_section_1 .game_section__container.columns-4 { grid-template-columns: repeat(4, 1fr); }
.game_section_1 .game_section__container.columns-8 { grid-template-columns: repeat(8, 1fr); }
.game_section_2 { background: 0 0; padding: 0; margin-bottom: var(--mostbet-block-margin-bottom, 32px); border-radius: 0; }
.game_section_2 header .title { color: inherit; font-size: 1.5rem; margin: 0; }
.game_section_2 header .title:before { display: none; }
.game_section_2 header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.game_section_2 header img { max-height: 40px; width: auto; }
.game_section_2 .game_section__container { display: grid; grid-gap: 10px; }
.game_section_2 .game_section__container, .game_section_2 .game_section__container li { list-style: none; margin: 0; padding: 0; }
.game_section_2 .game_section__container.columns-3 { grid-template-columns: repeat(3, 1fr); }
.game_section_2 .game_section__container.columns-4 { grid-template-columns: repeat(4, 1fr); }
.game_section_2 .game_section__container.columns-5 { grid-template-columns: repeat(5, 1fr); }
.game_section_2 .game_section__container.columns-6 { grid-template-columns: repeat(6, 1fr); }
.game_section_2 .game_section__container img { width: 100%; height: auto; border-radius: var(--mostbet-rounded-images, 8px); display: block; }
@media (max-width: 991px) {
  .game_section_columns { flex-direction: column; gap: var(--mostbet-block-margin-bottom-mob, 20px); margin-bottom: var(--mostbet-block-margin-bottom-mob, 20px); }
  .game_section header { margin-bottom: 10px; }
  .game_section header img { width: 30px; height: 30px; }
  .game_section header .title { font-size: 1.3rem; }
  .game_section_1 { flex-basis: 100%; margin-right: -12px; padding: 12px; }
  .game_section_1 .items { margin-left: -12px; margin-right: -12px; }
  .game_section_1 .game_section__container { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; grid-template-columns: none !important; grid-auto-flow: column; }
  .game_section_1 .game_section__container::-webkit-scrollbar { display: none; }
  .game_section_1 .game_section__container li > div, .game_section_1 .game_section__container li > a { width: max-content; display: inline-block; }
  .game_section_1 .game_section__container img { height: 100px; width: auto; }
  .game_section_1 .game_section__container li:first-child { padding-left: 12px; }
  .game_section_1 .game_section__container li:last-child { padding-right: 12px; }
  .game_section_1 .game_section__container img:hover { transform: none; }
  .game_section_1 .game_section__container.columns-8 { grid-template-columns: repeat(4, 1fr); }
  .game_section_2 { margin-bottom: var(--mostbet-block-margin-bottom-mob, 20px); }
  .game_section_2 .items { margin-left: -12px; margin-right: -12px; }
  .game_section_2 .game_section__container { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: max-content; }
  .game_section_2 .game_section__container::-webkit-scrollbar { display: none; }
  .game_section_2 .game_section__container li { width: max-content; }
  .game_section_2 .game_section__container img { height: 100px; width: auto; }
  .game_section_2 .game_section__container li:first-child { padding-left: 12px; }
  .game_section_2 .game_section__container li:last-child { padding-right: 12px; }
  .game_section_2 .game_section__container img:hover { transform: none; }
  .game_section_wide .game_section__container.columns-8 { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; }
}

/* Блок «медиа»: без пустой колонки */
.media_block_v2:has(.media:empty) { grid-template-columns: 1fr !important; }
.media_block_v2 .media:empty { display: none; }

/* Оглавление под шапкой */
.toc_navigation { position: fixed; top: 70px; left: 0; right: 0; z-index: 19; height: 48px; display: flex; align-items: center; background: var(--header_bg_color); border-top: 1px solid var(--bs-secondary); border-bottom: 1px solid var(--bs-secondary); }
.toc_navigation .container { display: flex; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.toc_navigation .min-title { font-size: 12px; font-weight: 600; padding-right: 10px; color: var(--bs-primary); }
.toc_navigation .items { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.toc_navigation .items::-webkit-scrollbar { display: none; }
.toc_navigation .items .item a { display: flex; align-items: center; font-weight: 500; text-decoration: none; padding: 3px 10px; line-height: normal; white-space: nowrap; border: 1px solid currentColor; color: var(--theme-text, #fff); border-radius: 50px; }
.toc_navigation .items .item a .name { font-size: 13px; }
@media (max-width: 991px) { .toc_navigation { display: none; } }

/* ===== 1.0.6: главная из нативных блоков (Кнопки, Группа, Изображение) =====
 * Кнопки над hero, баннер бонуса и игровые панели собраны блоками редактора,
 * а не «HTML». Правила ниже повторяют прежнюю разметку (a.btn, ul/li). */

/* Кнопки над hero: класс btn стоит на обёртке, её отступы снимаем. */
.home-page .welcome-section .main_page_header_buttons {
    gap: 8px;
}
.home-page .welcome-section .main_page_header_buttons .wp-block-button {
    margin: 0;
    padding: 0 !important;
}
.home-page .welcome-section .main_page_header_buttons .wp-block-button__link {
    min-width: 0;
    padding: .5rem 1rem !important;
}
@media (max-width: 991px) {
    .home-page .welcome-section .main_page_header_buttons {
        flex-wrap: nowrap;
    }
    .home-page .welcome-section .main_page_header_buttons .wp-block-button {
        flex: 1 1 auto;
        width: auto;
    }
}

/* Баннер бонуса: абзац вместо div.bonus. */
.home-page .welcome-section .banner > .bonus {
    margin-top: 0 !important;
}
.home-page .welcome-section .banner > .bonus:not(:has(+ .comment)) {
    margin-bottom: 22px;
}
.home-page .welcome-section .banner > .comment {
    margin-bottom: 14px;
}

/* Игровые панели: группы и блоки «Изображение» вместо header/ul/li. */
.game_section > *,
.game_section header > *,
.game_section .items > *,
.game_section .game_section__container > * {
    margin-top: 0 !important;
}
.game_section header .wp-block-image {
    flex: 0 0 auto;
    margin: 0;
}
.game_section header .wp-block-image img {
    display: block;
}
.game_section .game_section__container > .wp-block-image {
    margin: 0;
}
.game_section .game_section__container > .wp-block-image a {
    display: block;
}
@media (max-width: 991px) {
    .game_section_2 .game_section__container > .wp-block-image {
        width: max-content;
    }
    .game_section_1 .game_section__container > .wp-block-image > a {
        width: max-content;
        display: inline-block;
    }
    .game_section_1 .game_section__container > .wp-block-image img,
    .game_section_2 .game_section__container > .wp-block-image img {
        max-width: none;
    }
    .game_section_1 .game_section__container > .wp-block-image:first-child,
    .game_section_2 .game_section__container > .wp-block-image:first-child {
        padding-left: 12px;
    }
    .game_section_1 .game_section__container > .wp-block-image:last-child,
    .game_section_2 .game_section__container > .wp-block-image:last-child {
        padding-right: 12px;
    }
}

/* ===== 1.0.8: иконка в заголовке игровой панели ===== */
/* Иконка — блок «Изображение» и может быть любой картинкой из медиатеки: на десктопе
 * не выше прежних SVG (50px), пропорции сохраняются. Мобильный (30×30) и панель
 * провайдера (до 40px) задаются своими правилами выше. */
@media (min-width: 992px) {
    .game_section_1 header img {
        width: auto;
        max-width: 100%;
        max-height: 50px;
    }
}
