/* /general_information/show_tournaments_rules — v2 shell */

body.v2-page .rulesPage-hero {
    max-width: var(--mv2-max-width, 960px);
    margin: 0 auto;
    padding: 24px 16px 16px;
    background: transparent;
}

body.v2-page #wrapper .content .hero-content.rulesPage-hero .main-title {
    margin: 0;
    padding: 0;
    font-family: var(--mv2-font, 'Inter', sans-serif);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #1f1f1f !important;
    transform: none;
    background: none;
}

body.v2-page .mainV2__shell > .content-box {
    max-width: var(--mv2-max-width, 960px);
    margin-left: auto;
    margin-right: auto;
}

body.v2-page.has-mainV2-bottom-nav .mainV2__shell > .content-box:last-of-type {
    margin-bottom: 88px;
}

body.v2-page .rules-text {
    font-family: var(--mv2-font, 'Inter', sans-serif);
    color: var(--mv2-text, #1f1f1f);
}

/* Legacy .btn-white / .btn-green: skew(-10deg) + стрелки .all-tournaments — на v2 «криво» */
body.v2-page .rules-text .btn-white,
body.v2-page .rules-text a.btn-white {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
}

body.v2-page .rules-text .rulesPage-cta {
    margin: 0 0 16px;
    text-align: center;
}

body.v2-page .rules-text .rulesPage-cta .btn-green.btn-donate-link,
body.v2-page .rules-text .rulesPage-cta a.btn-green {
    position: relative;
    display: inline-block;
    float: none !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 11px 20px !important;
    font-family: var(--mv2-font, 'Inter', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    letter-spacing: -0.01em;
    text-transform: none !important;
    color: var(--mv2-accent-dark, #6B8E00) !important;
    background: var(--mv2-accent-soft, #F5FBEA) !important;
    border: 0.5px solid rgba(107, 142, 0, 0.22) !important;
    border-radius: var(--mv2-r-md, 10px) !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
    box-shadow: none;
}

body.v2-page .rules-text .rulesPage-cta .btn-green.btn-donate-link:hover,
body.v2-page .rules-text .rulesPage-cta a.btn-green:hover {
    opacity: 1;
    background: #eef6dc !important;
    border-color: rgba(107, 142, 0, 0.35) !important;
}

body.v2-page .rules-text .rulesPage-cta .all-tournaments:before,
body.v2-page .rules-text .rulesPage-cta .all-tournaments:after {
    content: none !important;
    display: none !important;
}

/* Важная оговорка — заметно, но без «кричащего» лайма */
body.v2-page .rules-text .rulesPage-note {
    margin: 0 0 18px;
    padding: 12px 14px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--mv2-text, #1f1f1f);
    background: var(--mv2-accent-soft, #F5FBEA);
    border: 0.5px solid rgba(107, 142, 0, 0.18);
    border-left: 3px solid var(--mv2-accent-dark, #6B8E00);
    border-radius: var(--mv2-r-md, 10px);
}

body.v2-page .rules-text .big-text {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mv2-text, #1f1f1f);
}

@media (max-width: 600px) {
    body.v2-page #wrapper .content .hero-content.rulesPage-hero .main-title {
        font-size: 20px;
    }

    body.v2-page.has-mainV2-bottom-nav .mainV2__shell > .content-box:last-of-type {
        margin-bottom: 72px;
    }
}

body.v2-page .rules-points-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 4px 0 8px;
}

body.v2-page .rules-points-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.35;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.v2-page .rules-points-table th,
body.v2-page .rules-points-table td {
    border: 1px solid #d8d8d8;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

body.v2-page .rules-points-table thead th {
    background: #f3f3f3;
    font-weight: 700;
    font-size: 13px;
}

body.v2-page .rules-points-table tbody th[scope="row"] {
    background: #fafafa;
    font-weight: 700;
    width: 2.5em;
}

body.v2-page .rules-points-table tbody tr:nth-child(even) td {
    background: #fcfcfc;
}
