.eg-rules {
    position: relative;
    overflow: hidden;
    padding: 44px 0 96px;
    color: #f7f2ff;
    background: #0b0713;
}

.eg-rules__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 76, 178, 0.22), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(56, 214, 255, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(18, 10, 34, 0.9), rgba(7, 5, 12, 1));
}

.eg-rules .container {
    position: relative;
    z-index: 1;
}

.eg-rules__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    color: rgba(247, 242, 255, 0.68);
    font-size: 14px;
}

.eg-rules__breadcrumbs a {
    color: #74dfff;
    text-decoration: none;
}

.eg-rules__breadcrumbs a:hover {
    color: #ff7acb;
}

.eg-rules__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.eg-rules__hero-copy,
.eg-rules__notice,
.eg-rules__toc,
.eg-rules__card,
.eg-rules__thanks {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 12, 30, 0.78);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.eg-rules__hero-copy {
    padding: 42px;
    border-radius: 8px;
}

.eg-rules__eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(116, 223, 255, 0.3);
    border-radius: 999px;
    color: #74dfff;
    background: rgba(116, 223, 255, 0.08);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eg-rules__title {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 7vw, 76px);
    line-height: 0.94;
    letter-spacing: 0;
}

.eg-rules__lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(247, 242, 255, 0.82);
    font-size: 19px;
    line-height: 1.65;
}

.eg-rules__notice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    padding: 30px;
    border-radius: 8px;
    border-color: rgba(255, 194, 87, 0.24);
    background: linear-gradient(145deg, rgba(46, 31, 18, 0.82), rgba(18, 12, 30, 0.86));
}

.eg-rules__notice-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #120b1e;
    background: #ffc257;
    font-size: 26px;
    font-weight: 900;
}

.eg-rules__notice strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.eg-rules__notice p {
    margin: 14px 0 0;
    color: rgba(247, 242, 255, 0.74);
    line-height: 1.6;
}

.eg-rules__layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.eg-rules__toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 8px;
}

.eg-rules__toc-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.eg-rules__toc ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.eg-rules__toc li {
    color: rgba(247, 242, 255, 0.42);
    padding-left: 4px;
}

.eg-rules__toc a {
    color: rgba(247, 242, 255, 0.76);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}

.eg-rules__toc a:hover {
    color: #74dfff;
}

.eg-rules__list {
    display: grid;
    gap: 18px;
}

.eg-rules__card {
    scroll-margin-top: 30px;
    padding: 30px;
    border-radius: 8px;
}

.eg-rules__card--accent {
    border-color: rgba(255, 88, 116, 0.42);
    background: linear-gradient(145deg, rgba(48, 15, 28, 0.88), rgba(18, 12, 30, 0.86));
}

.eg-rules__card-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.eg-rules__number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4fb8, #38d6ff);
    font-weight: 900;
}

.eg-rules__card h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: 0;
}

.eg-rules__card-lead {
    margin: 0 0 20px;
    color: rgba(247, 242, 255, 0.82);
    font-size: 17px;
    line-height: 1.65;
}

.eg-rules__block {
    margin-top: 18px;
}

.eg-rules__block h3 {
    margin: 0 0 10px;
    color: #74dfff;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}

.eg-rules__block p {
    margin: 0;
    color: rgba(247, 242, 255, 0.78);
    line-height: 1.65;
}

.eg-rules__block ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eg-rules__block li {
    position: relative;
    min-height: 42px;
    padding: 12px 14px 12px 38px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: rgba(247, 242, 255, 0.84);
    background: rgba(255, 255, 255, 0.045);
    line-height: 1.35;
}

.eg-rules__block li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7acb;
    box-shadow: 0 0 18px rgba(255, 122, 203, 0.7);
}

.eg-rules__thanks {
    padding: 34px;
    border-radius: 8px;
    text-align: center;
    background: linear-gradient(135deg, rgba(18, 12, 30, 0.88), rgba(17, 45, 44, 0.72));
}

.eg-rules__thanks h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: 0;
}

.eg-rules__thanks p {
    margin: 14px auto 0;
    max-width: 620px;
    color: rgba(247, 242, 255, 0.78);
    line-height: 1.6;
}

.eg-rules__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.eg-rules__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
}

.eg-rules__btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #ff4fb8, #7a5cff);
    box-shadow: 0 16px 34px rgba(255, 79, 184, 0.22);
}

.eg-rules__btn--ghost {
    color: #74dfff;
    border: 1px solid rgba(116, 223, 255, 0.28);
    background: rgba(116, 223, 255, 0.08);
}

.eg-rules__btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .eg-rules__hero,
    .eg-rules__layout {
        grid-template-columns: 1fr;
    }

    .eg-rules__toc {
        position: static;
        max-height: none;
    }

    .eg-rules__toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .eg-rules {
        padding: 28px 0 64px;
    }

    .eg-rules__hero-copy,
    .eg-rules__notice,
    .eg-rules__toc,
    .eg-rules__card,
    .eg-rules__thanks {
        padding: 22px;
    }

    .eg-rules__lead {
        font-size: 16px;
    }

    .eg-rules__notice {
        min-height: auto;
    }

    .eg-rules__toc ol,
    .eg-rules__block ul {
        grid-template-columns: 1fr;
    }

    .eg-rules__card-head {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .eg-rules__number {
        width: 46px;
        height: 46px;
    }

    .eg-rules__actions {
        display: grid;
    }
}
