/* ============================================================
   ПРАВИЛА ПРОЕКТА — версия 3
   Фон как в проекте (тёплый), ссылки жёлтые
   ============================================================ */

.rules-page {
    padding: 100px 0 60px;
    background: #EDE4D3;                    /* 🔥 тёплый кремовый как у сайта */
    min-height: 100vh;
    color: #1e293b;
}

.container--narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO — оставляем тёмный, он хорошо смотрится */
.rules-hero {
    text-align: center;
    padding: 40px 20px 50px;
    background: linear-gradient(135deg, #2C1810 0%, #5a3624 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    color: #fff;
}

.rules-hero__icon { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.rules-hero__title { font-size: 36px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.rules-hero__sub {
    font-size: 17px; line-height: 1.6;
    color: rgba(255,255,255,.85);
    max-width: 600px; margin: 0 auto 20px;
}
.rules-hero__meta {
    display: inline-flex; gap: 10px;
    padding: 8px 20px;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
.rules-hero__meta strong { color: #fbbf24; }

/* ВВЕДЕНИЕ — тёплый фон (не белый!) */
.rules-intro {
    padding: 24px 28px;
    background: #F0E8DA;                    /* 🔥 чуть светлее страницы, но тёплый */
    border: 1px solid #F0E5D2;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(44,24,16,.06);
    margin-bottom: 32px;
    line-height: 1.7;
    color: #1e293b;
}
.rules-intro p { margin: 0 0 14px; }
.rules-intro p:last-child { margin-bottom: 0; }

/* Ссылки в тексте — жёлто-золотые */
.rules-intro a {
    color: #d97706;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.rules-intro a:hover {
    color: #b45309;
    background: rgba(251,191,36,.15);
}

.rules-intro__quote {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(251,191,36,.1), rgba(139,92,246,.05));
    border-left: 4px solid #fbbf24;
    border-radius: 10px;
    font-style: italic;
    color: #334155;
    margin-top: 20px !important;
}
.rules-intro__quote span {
    display: block; margin-top: 6px;
    font-style: normal; font-size: 13px; color: #64748b;
}

/* ═══════════════════════════════════════════════════════════
   ОГЛАВЛЕНИЕ — ССЫЛКИ ЖЁЛТЫЕ, ФОН ТЁПЛЫЙ
   ═══════════════════════════════════════════════════════════ */

.rules-toc {
    padding: 24px 28px;
    background: #F0E8DA;
    border: 1px solid #F0E5D2;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(44,24,16,.06);
    margin-bottom: 40px;
}

.rules-toc__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

/* 🔥🔥🔥 САМИ ССЫЛКИ — ЖЁЛТЫЕ */
.rules-toc__list a {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 20px;
    color: #92400e;                          /* тёмно-золотой текст, читается */
    background: linear-gradient(135deg, #fef3c7, #fde68a);  /* 🔥 жёлтый градиент */
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all .18s;
    position: relative;
}

.rules-toc__list a::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #f59e0b;                     /* 🔥 ярко-золотая полоска */
    border-radius: 10px 0 0 10px;
    transition: width .18s;
}

.rules-toc__list a:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    color: #78350f;
    border-color: #f59e0b;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(245,158,11,.35);
}

.rules-toc__list a:hover::before {
    width: 6px;
    background: #d97706;
}

/* СЕКЦИЯ */
.rules-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.rules-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #2C1810, #3d2418);
    border-radius: 14px;
    color: #fff;
}

.rules-section__icon {
    font-size: 24px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(251,191,36,.4);
    flex-shrink: 0;
}

.rules-section__header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}

/* ЛИД — «То, ради чего мы собрались» */
.rules-section__lead {
    padding: 16px 24px 16px 28px;
    margin: 0 0 20px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    background: linear-gradient(90deg, rgba(251,191,36,.12), rgba(251,191,36,.02));
    border-left: 4px solid #fbbf24;         /* 🔥 золотая полоска */
    border-radius: 0 0 14px 14px;
    line-height: 1.5;
}

/* ПУНКТ ПРАВИЛА */
.rule-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 20px 24px;
    background: #F0E8DA;                     /* 🔥 тёплый, не белый */
    border: 1px solid #F0E5D2;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(44,24,16,.04);
    margin-bottom: 12px;
    transition: all .2s;
    border-left: 4px solid transparent;
}

.rule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,24,16,.08);
    border-left-color: #fbbf24;
}

.rule-item__num {
    font-size: 20px;
    font-weight: 800;
    color: #d97706;                          /* 🔥 золотой */
    padding-top: 2px;
}

.rule-item__body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.rule-item__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
}
.rule-item__body p + p { margin-top: 10px; }

.rule-item__hint {
    font-size: 14px !important;
    color: #92400e !important;
    padding-top: 8px;
    border-top: 1px dashed rgba(251,191,36,.3);
}

.rule-item__body strong { color: #1e293b; }

.rule-list {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

/* БЕЙДЖИ НАКАЗАНИЙ */
.rule-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    align-self: start;
}

.rule-item__badge--info         { background: rgba(139,92,246,.15); color: #6d28d9; }
.rule-item__badge--warning      { background: rgba(251,191,36,.25); color: #92400e; }
.rule-item__badge--ban-1d       { background: rgba(251,146,60,.22); color: #9a3412; }
.rule-item__badge--ban-7d       { background: rgba(239,68,68,.18);  color: #b91c1c; }
.rule-item__badge--ban-forever  { background: #dc2626; color: #fff; }

/* КОНТАКТЫ */
.rules-section--contacts {
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(139,92,246,.04));
    border-radius: 16px;
    margin-bottom: 40px;
}

.rules-section--contacts .rules-section__header {
    background: transparent;
    padding: 0 0 16px;
    border-bottom: 2px dashed rgba(251,191,36,.3);
    margin-bottom: 20px;
    border-radius: 0;
}
.rules-section--contacts .rules-section__header h2 { color: #1e293b; }

.rules-contacts {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.rules-contacts li {
    padding: 10px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
}

/* Ссылки в контактах — жёлто-золотые */
.rules-contacts a {
    color: #d97706;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.rules-contacts a:hover {
    color: #b45309;
    background: rgba(251,191,36,.15);
}

.rules-contacts__note {
    margin: 16px 0 0 !important;
    padding-top: 16px;
    border-top: 1px dashed rgba(251,191,36,.3);
    font-size: 14px;
    color: #475569;
}

/* ФУТЕР */
.rules-footer {
    text-align: center;
    padding: 32px 24px;
    background: #F0E8DA;
    border: 1px solid #F0E5D2;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(44,24,16,.06);
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}
.rules-footer p { margin: 0 0 12px; }
.rules-footer p:last-child { margin-bottom: 0; }
.rules-footer strong { color: #1e293b; }

.rules-footer__thanks {
    font-size: 15px !important;
    color: #92400e !important;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px dashed rgba(251,191,36,.3);
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 700px) {
    .rules-page { padding: 80px 0 40px; }
    .rules-hero { padding: 30px 16px 36px; border-radius: 14px; }
    .rules-hero__title { font-size: 26px; }
    .rules-hero__sub { font-size: 15px; }

    .rules-intro,
    .rules-toc,
    .rules-footer { padding: 20px; border-radius: 12px; }

    .rules-toc__list { grid-template-columns: 1fr; }
    .rules-toc__list a {
        font-size: 14px;
        padding: 11px 14px 11px 18px;
    }

    .rule-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 16px 18px;
    }
    .rule-item__num { font-size: 17px; }
    .rule-item__badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 8px;
    }

    .rules-section__header {
        padding: 16px 20px;
        border-radius: 12px;
        gap: 12px;
    }
    .rules-section__header h2 { font-size: 19px; }
    .rules-section__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .rules-section__lead {
        padding: 12px 18px 12px 22px;
        font-size: 14px;
    }

    .rules-section--contacts { padding: 24px 20px; }
}