@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700&display=swap");

html {
    scroll-behavior: smooth;
}

body.rules-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46) 72%, rgba(0, 0, 0, 0.84)),
        url("../img/bg-rules.png") center top / cover no-repeat fixed,
        #090a0d;
    color: #fff;
}

.rules-main {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto;
    padding: 44px 0 20px;
}

.rules-hero {
    position: relative;
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
    font-family: var(--font-display);
}

.rules-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -17px;
    width: min(540px, 82%);
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 157, 72, 0.78), transparent);
    box-shadow: 0 0 18px rgba(255, 157, 72, 0.16);
}

.rules-hero__eyebrow {
    margin: 0 0 8px;
    color: #f7d95e;
    font-size: 1.25rem;
    text-shadow: 0 2px 0 #000;
}

.rules-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 400;
    line-height: 0.82;
    text-shadow: 0 4px 0 #000, 0 14px 24px rgba(0, 0, 0, 0.6);
}

.rules-hero p:not(.rules-hero__eyebrow) {
    max-width: 620px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    font-size: clamp(1.08rem, 1.55vw, 1.28rem);
    font-weight: 600;
    line-height: 1.24;
    text-shadow: none;
}

.rules-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 850px);
    justify-content: center;
    align-items: start;
    gap: 34px;
}

.rules-layout--single {
    grid-template-columns: minmax(0, 850px);
}

.cookie-policy-actions {
    margin: 18px 0 0;
}

.cookie-policy-actions button {
    border: 0;
    padding: 12px 16px 10px;
    clip-path: var(--ragged-edges);
    background: #b7722f;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.04rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 150ms ease, filter 150ms ease;
}

.cookie-policy-actions button:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.rules-index {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 10px;
    padding: 14px;
    clip-path: var(--ragged-edges);
    background:
        radial-gradient(circle at 20% 0%, rgba(63, 255, 185, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(18, 20, 21, 0.86), rgba(6, 7, 8, 0.92));
    border: 1px solid rgba(255, 157, 72, 0.14);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
    font-family: var(--font-display);
}

.rules-index a {
    min-height: 38px;
    padding: 9px 12px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: var(--ragged-edges);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 36%, rgba(0, 0, 0, 0.32)),
        #171819;
    color: #fff;
    font-size: 1.22rem;
    text-shadow: 0 2px 0 #000;
    transition: transform 150ms ease, filter 150ms ease;
}

.rules-index a:hover {
    transform: translateX(3px);
    filter: brightness(1.14);
}

.rules-content {
    display: grid;
    gap: 18px;
}

.rules-card {
    position: relative;
    padding: 28px 30px 28px 88px;
    overflow: hidden;
    clip-path: var(--ragged-edges);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 30%, rgba(0, 0, 0, 0.24)),
        rgba(8, 10, 11, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -10px 24px rgba(0, 0, 0, 0.28),
        0 16px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    scroll-margin-top: 128px;
}

.rules-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f7d95e, #ff9d48);
    box-shadow: 0 0 18px rgba(255, 157, 72, 0.42);
}

.rules-card__number {
    position: absolute;
    left: 24px;
    top: 28px;
    color: rgba(255, 157, 72, 0.9);
    font-family: var(--font-display);
    font-size: 2.15rem;
    line-height: 1;
    text-shadow: 0 2px 0 #000;
}

.rules-card h2 {
    margin: 0 0 14px;
    color: #f7d95e;
    font-family: var(--font-body);
    font-size: clamp(1.58rem, 2.35vw, 2.15rem);
    font-weight: 700;
    line-height: 1.08;
    text-shadow: none;
}

.rules-card ol {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Spectral", Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: 0;
}

.rules-card li::marker {
    color: rgba(255, 157, 72, 0.9);
    font-weight: 700;
}

.rules-card li + li {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-index {
        position: static;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 620px) {
    .rules-main {
        width: min(100% - 28px, 1360px);
        padding-top: 30px;
    }

    .rules-index {
        grid-template-columns: 1fr 1fr;
    }

    .rules-card {
        padding: 24px 18px 24px 20px;
    }

    .rules-card__number {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
        font-size: 1.7rem;
    }

    .rules-card h2 {
        font-size: 1.85rem;
    }
}
