.rules-domain a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

/* =========================================================
   ПРЕДУПРЕЖДЕНИЕ О ЗАПРЕТЕ КОПИРОВАНИЯ
   ========================================================= */

.copy-warning {
    position: fixed;

    left: 50%;
    bottom: 25px;

    width: calc(100% - 30px);
    max-width: 480px;

    padding: 16px 20px;

    background: #222;
    color: #fff;

    border-radius: 12px;

    text-align: center;

    font-size: 15px;
    line-height: 1.5;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.30);

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, 30px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 999999;
}

.copy-warning.show {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

.copy-warning strong {
    display: inline-block;

    margin-bottom: 3px;

    color: #fff;
    font-size: 16px;
}

/* =========================================================
   УВЕДОМЛЕНИЕ О ЗАПРЕТЕ КОПИРОВАНИЯ
   ========================================================= */

.copy-warning {
    position: fixed;
    left: 50%;
    bottom: 25px;

    width: calc(100% - 30px);
    max-width: 520px;

    padding: 14px 18px;

    transform: translate(-50%, 20px);

    background: #222;
    color: #fff;

    border-radius: 10px;

    text-align: center;
    font-size: 14px;
    line-height: 1.45;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 99999;
}

.copy-warning.show {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

/* =========================================================
   БАЗА
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #222;
    background: #f5f7fa;
    line-height: 1.65;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   СТРАНИЦА ПРАВИЛ
   ========================================================= */

.rules-page {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;
    padding: 30px 20px 60px;
}


/* =========================================================
   ВСТУПЛЕНИЕ
   ========================================================= */

.rules-intro {
    background: #fff;

    border: 1px solid #e2e6eb;
    border-radius: 14px;

    padding: 30px;

    margin-bottom: 24px;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.rules-intro h1 {
    margin: 0 0 20px;

    color: #111;

    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.rules-intro h2 {
    margin: 28px 0 14px;

    font-size: 24px;
    line-height: 1.3;
}

.rules-intro p {
    margin: 0 0 16px;
}

.rules-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    margin: 0 0 28px;

    font-size: 14px;
    color: #6b7280;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span[itemprop="name"] {
    display: inline;
}


/* =========================================================
   СЕКЦИИ
   ========================================================= */

.rules-section {
    background: #fff;

    border: 1px solid #e2e6eb;
    border-radius: 14px;

    padding: 30px;

    margin-bottom: 24px;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.rules-section h2 {
    margin: 0 0 22px;

    padding-bottom: 12px;

    border-bottom: 2px solid #007bff;

    color: #111;

    font-size: 26px;
    line-height: 1.3;
}

.rules-section h3 {
    margin: 30px 0 14px;

    color: #222;

    font-size: 20px;
    line-height: 1.35;
}

.rules-section p {
    margin: 0 0 16px;
}

.rules-section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   СПИСКИ
   ========================================================= */

.rules-section ul,
.rules-section ol {
    margin: 16px 0 22px;
    padding-left: 28px;
}

.rules-section li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.rules-section li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   СОДЕРЖАНИЕ
   ========================================================= */

.rules-section ol a {
    color: #006dcc;
    text-decoration: none;

    transition:
        color 0.2s ease;
}

.rules-section ol a:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* =========================================================
   ССЫЛКИ В ТЕКСТЕ
   ========================================================= */

.rules-section a {
    color: #007bff;
}

.rules-section a:hover {
    color: #0056b3;
}


/* =========================================================
   ВЫДЕЛЕНИЕ ВАЖНЫХ ФРАЗ
   ========================================================= */

.rules-section strong,
.rules-intro strong {
    font-weight: 700;
    color: #111;
}


/* =========================================================
   КНОПКА ПОДДЕРЖКИ
   ========================================================= */

.support-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin: 10px 0 20px;
    padding: 11px 20px;

    border-radius: 9px;

    background: #198754;
    color: #fff !important;

    font-weight: 600;
    text-decoration: none !important;

    box-shadow:
        0 3px 8px rgba(25, 135, 84, 0.2);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.support-button:hover {
    background: #157347;
    transform: translateY(-1px);
}


/* =========================================================
   ФУТЕР
   ========================================================= */

.rules-footer {
    margin-top: 30px;
    padding: 30px 20px;

    text-align: center;

    color: #6b7280;
    font-size: 14px;
}

.rules-footer p {
    margin: 6px 0;
}

.rules-footer a {
    color: #007bff;
    text-decoration: none;
}

.rules-footer a:hover {
    text-decoration: underline;
}

.copyright {
    color: #555;
    font-size: 14px;
}

.footer-document {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 700px) {

    .rules-page {
        padding: 15px 10px 40px;
    }

    .rules-intro,
    .rules-section {
        padding: 20px 16px;

        border-radius: 10px;
    }

    .rules-intro h1 {
        font-size: 25px;
    }

    .rules-intro h2 {
        font-size: 21px;
    }

    .rules-section h2 {
        font-size: 22px;
    }

    .rules-section h3 {
        font-size: 18px;
    }

    .rules-section ul,
    .rules-section ol {
        padding-left: 23px;
    }

    .breadcrumbs {
        font-size: 13px;
    }
}


/* =========================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 420px) {

    .rules-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .rules-intro,
    .rules-section {
        padding: 17px 13px;
    }

    .rules-intro h1 {
        font-size: 23px;
    }

    .rules-section h2 {
        font-size: 20px;
    }

    .rules-section p,
    .rules-section li {
        font-size: 15px;
    }
}

/* =========================================================
   ELECTRIKI16 — RULES PAGE
   /master/style.css
   ========================================================= */


/* =========================================================
   1. BASE
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #20252b;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.7;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea {
    user-select: text;
}

img {
    max-width: 100%;
    height: auto;
    user-select: none;
}


/* =========================================================
   2. MAIN CONTAINER
   ========================================================= */

.rules-page {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 32px 0 60px;
}


/* =========================================================
   3. INTRO
   ========================================================= */

.rules-intro {
    background: #ffffff;
    border: 1px solid #e2e7ec;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.rules-intro h1 {
    margin: 0 0 24px;
    color: #17212b;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.rules-intro h2 {
    margin: 30px 0 14px;
    color: #17212b;
    font-size: 24px;
    line-height: 1.3;
}


/* =========================================================
   4. BREADCRUMBS
   ========================================================= */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 30px;
    padding: 12px 15px;

    background: #f4f8fc;
    border: 1px solid #e3ebf3;
    border-radius: 10px;

    color: #687684;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs > span[aria-hidden="true"] {
    color: #9aa7b2;
}


/* =========================================================
   5. COMMON TEXT
   ========================================================= */

.rules-page p {
    margin: 0 0 18px;
}

.rules-page strong {
    color: #17212b;
    font-weight: 700;
}

.rules-page a {
    color: #006fe6;
    text-decoration: none;
}

.rules-page a:hover {
    text-decoration: underline;
}


/* =========================================================
   6. SECTIONS
   ========================================================= */

.rules-section {
    background: #ffffff;
    border: 1px solid #e2e7ec;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 24px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);

    scroll-margin-top: 20px;
}

.rules-section h2 {
    margin: 0 0 24px;
    padding-bottom: 14px;

    color: #17212b;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 800;

    border-bottom: 2px solid #edf1f5;
}

.rules-section h3 {
    margin: 30px 0 14px;

    color: #263440;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}


/* =========================================================
   7. CONTENT LISTS
   ========================================================= */

.rules-page ul,
.rules-page ol {
    margin: 18px 0 24px;
    padding-left: 28px;
}

.rules-page li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.rules-page li::marker {
    color: #007bff;
    font-weight: 700;
}


/* =========================================================
   8. TABLE OF CONTENTS
   ========================================================= */

.rules-section ol {
    counter-reset: rules-counter;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rules-section ol li {
    counter-increment: rules-counter;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf1f5;
}

.rules-section ol li:last-child {
    border-bottom: 0;
}

.rules-section ol li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 13px 10px;

    color: #263440;
    font-weight: 600;
    text-decoration: none;

    border-radius: 8px;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.rules-section ol li a::before {
    content: counter(rules-counter) ".";
    flex: 0 0 28px;

    color: #007bff;
    font-weight: 800;
}

.rules-section ol li a:hover {
    background: #f2f7fc;
    color: #006fe6;
}


/* =========================================================
   9. LINKS INSIDE TEXT
   ========================================================= */

.rules-page p a {
    word-break: break-word;
}


/* =========================================================
   10. SUPPORT BUTTON
   ========================================================= */

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 8px 0 20px;
    padding: 13px 22px;

    background: #16a34a;
    color: #ffffff !important;

    border-radius: 10px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;

    text-decoration: none !important;

    box-shadow:
        0 4px 12px rgba(22, 163, 74, 0.22);

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.support-button:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(22, 163, 74, 0.28);
}

.support-button:active {
    transform: translateY(0);
}


/* =========================================================
   11. RELATED DOCUMENTS
   ========================================================= */

.rules-related {
    background: #ffffff;
    border: 1px solid #e2e7ec;
    border-radius: 18px;
    padding: 28px 36px;
    margin-bottom: 24px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
}

.rules-related h2 {
    margin: 0 0 20px;

    color: #17212b;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
}

.rules-related p {
    margin: 0 0 10px;
}

.rules-related p:last-child {
    margin-bottom: 0;
}

.rules-related a {
    display: inline-block;

    padding: 8px 0;

    color: #006fe6;
    font-weight: 600;
}


/* =========================================================
   12. DEVELOPMENT BLOCK
   ========================================================= */

.rules-development {
    margin-bottom: 24px;
    padding: 26px 30px;

    background:
        linear-gradient(
            135deg,
            #eef7ff 0%,
            #f8fbff 100%
        );

    border: 1px solid #d7e9f8;
    border-radius: 18px;

    color: #314250;
}

.rules-development strong {
    display: block;
    margin-bottom: 8px;

    color: #1269a9;
    font-size: 19px;
    line-height: 1.4;
}

.rules-development p {
    margin: 0;
}


/* =========================================================
   13. FOOTER
   ========================================================= */

.rules-footer {
    padding: 25px 10px 10px;

    color: #7b8792;
    text-align: center;
    font-size: 14px;
}

.rules-footer p {
    margin: 4px 0;
}

.rules-footer p:last-child {
    color: #9aa4ad;
}


/* =========================================================
   14. FOCUS / ACCESSIBILITY
   ========================================================= */

.rules-page a:focus-visible {
    outline: 3px solid rgba(0, 123, 255, 0.35);
    outline-offset: 3px;
    border-radius: 5px;
}


/* =========================================================
   15. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .rules-page {
        width: min(100% - 20px, 960px);
        padding: 15px 0 40px;
    }

    .rules-intro,
    .rules-section,
    .rules-related {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .rules-intro h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .rules-intro h2 {
        font-size: 21px;
    }

    .rules-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .rules-section h3 {
        font-size: 18px;
    }

    .breadcrumbs {
        margin-bottom: 22px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .rules-page {
        font-size: 15px;
        line-height: 1.65;
    }

    .rules-page ul,
    .rules-page ol {
        padding-left: 24px;
    }

    .rules-section ol {
        padding-left: 0;
    }

    .rules-section ol li a {
        padding: 11px 7px;
        gap: 8px;
    }

    .rules-section ol li a::before {
        flex-basis: 24px;
    }

    .rules-development {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .support-button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* =========================================================
   16. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 420px) {

    .rules-page {
        width: calc(100% - 14px);
    }

    .rules-intro,
    .rules-section,
    .rules-related {
        padding: 20px 16px;
    }

    .rules-intro h1 {
        font-size: 25px;
    }

    .rules-section h2 {
        font-size: 20px;
    }

    .rules-page p {
        margin-bottom: 15px;
    }
}


/* =========================================================
   17. PRINT
   ========================================================= */

@media print {

    body {
        background: #ffffff;
        color: #000000;
    }

    .rules-page {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .rules-intro,
    .rules-section,
    .rules-related,
    .rules-development {
        box-shadow: none;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }

    .support-button {
        display: none;
    }

    .breadcrumbs {
        background: #ffffff;
    }

    .rules-page a {
        color: #000000;
        text-decoration: underline;
    }
}


/* Защита от выделения текста */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем ввод в формах */
input,
textarea {
    user-select: text;
}

/* Защита изображений */
img {
    user-select: none;
}