.page-rules {
    background-color: #04070f;
    background-image:
        linear-gradient(rgba(4, 7, 15, 0.84), rgba(4, 7, 15, 0.94)),
        url('../img/hero-bg.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-rules main {
    background: transparent;
}

.rules-page {
    padding: 32px 0 72px;
}

.rules-container {
    max-width: 1100px;
}

.rules-hero {
    text-align: center;
    margin-bottom: 34px;
    padding: 8px 0 4px;
}

.rules-hero-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 102, 0, .12);
    border: 1px solid rgba(255, 120, 64, .28);
    color: #ff8a3d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.rules-hero h1 {
    margin: 0 0 12px;
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
}

.rules-hero-lead {
    max-width: 680px;
    margin: 0 auto;
    color: #aeb6c6;
    font-size: 15px;
    line-height: 1.65;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rules-card {
    position: relative;
    background: rgba(16, 19, 26, .92);
    border: 1px solid #252b38;
    border-radius: 16px;
    padding: 22px 20px 20px;
    min-height: 100%;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rules-card:hover {
    border-color: rgba(255, 102, 0, .32);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.rules-card-num {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 102, 0, .18);
}

.rules-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255, 102, 0, .12);
    border: 1px solid rgba(255, 120, 64, .22);
    color: #ff7a1a;
    font-size: 18px;
}

.rules-card h3 {
    margin: 0 0 8px;
    font-family: 'Exo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.rules-card p {
    margin: 0;
    color: #9aa4b2;
    font-size: 13px;
    line-height: 1.6;
}

.rules-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.rules-panel {
    background: rgba(16, 19, 26, .88);
    border: 1px solid #252b38;
    border-radius: 16px;
    padding: 22px;
}

.rules-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rules-panel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 102, 0, .12);
    border: 1px solid rgba(255, 120, 64, .22);
    position: relative;
    flex-shrink: 0;
}

.rules-panel-icon::before,
.rules-panel-icon::after {
    content: "";
    position: absolute;
    background: #ff7a1a;
    border-radius: 2px;
}

.rules-panel-icon--user::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.rules-panel-icon--user::after {
    width: 18px;
    height: 10px;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 4px 4px;
}

.rules-panel-icon--upload::before {
    width: 14px;
    height: 2px;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
}

.rules-panel-icon--upload::after {
    width: 2px;
    height: 14px;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.rules-panel h2 {
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.rules-panel-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-panel-list li {
    position: relative;
    padding: 0 0 10px 18px;
    color: #aeb6c6;
    font-size: 13px;
    line-height: 1.55;
}

.rules-panel-list li:last-child {
    padding-bottom: 0;
}

.rules-panel-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7a1a;
    box-shadow: 0 0 8px rgba(255, 102, 0, .35);
}

.rules-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 102, 0, .12), rgba(255, 102, 0, .04));
    border: 1px solid rgba(255, 120, 64, .24);
}

.rules-notice-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, .18);
    color: #ff8a3d;
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: 18px;
}

.rules-notice-body strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Exo 2', sans-serif;
    color: #fff;
    font-size: 15px;
}

.rules-notice-body p {
    margin: 0;
    color: #c5cad6;
    font-size: 13px;
    line-height: 1.55;
}

.rules-extra {
    margin-top: 22px;
    padding: 22px;
    background: rgba(16, 19, 26, .88);
    border: 1px solid #252b38;
    border-radius: 16px;
    color: #aeb6c6;
    line-height: 1.7;
    font-size: 14px;
}

.rules-extra h2,
.rules-extra h3 {
    font-family: 'Exo 2', sans-serif;
    color: #fff;
    margin: 0 0 10px;
}

.rules-extra p {
    margin: 0 0 12px;
}

.rules-extra p:last-child {
    margin-bottom: 0;
}

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

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

@media (min-width: 992px) and (max-width: 1199px) {
    .rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
