.rules-page {
    color: #111;
    font-size: 16px;
    line-height: 1.65;
}

.rules-page * {
    box-sizing: border-box;
}

.rules-intro {
    max-width: 980px;
    margin: 0 auto 45px;
    text-align: center;
    color: #555;
}

.rules-intro p {
    margin: 0 0 14px;
}

.rules-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0 50px;
    align-items: stretch;
}

.rules-card {
    min-height: 210px;
    padding: 28px;
    background: #f4f4f4;
    border: 1px solid #eeeeee;
    border-radius: 14px;
}

.rules-card__title {
    margin: 0 0 18px;
    color: #111;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
}

.rules-card p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.rules-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 60px;
}

.rules-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rules-btn:hover {
    background: #fff;
    color: #111 !important;
    text-decoration: none !important;
}

.rules-btn--yellow {
    background: #F1FF0A;
    color: #333333 !important;
    border-color: #F1FF0A;
}

.rules-btn--yellow:hover {
    background: #e6f000;
    color: #333333 !important;
    border-color: #111;
}

.rules-note {
    max-width: 980px;
    margin: 0 auto 45px;
    padding: 24px 28px;
    border-left: 4px solid #111;
    border-radius: 14px;
    background: #fafafa;
    color: #333;
}

.rules-note p {
    margin: 0 0 12px;
}

.rules-note p:last-child {
    margin-bottom: 0;
}

.rules-accordion {
    margin: 0 0 70px;
    border-top: 1px solid #dedede;
}

.rules-item {
    border-bottom: 1px solid #dedede;
}

.rules-item__head {
    width: 100%;
    min-height: 82px;
    padding: 24px 90px 24px 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    text-align: left;
    position: relative;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.rules-item__head h2 {
    display: block;
    margin: 0;
    padding: 0;
    color: #111;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
}

/* Если в HTML остался b — скрываем, плюс/минус рисуем через CSS */
.rules-item__head b {
    display: none !important;
}

/* Закрытый раздел — плюс */
.rules-item__head::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111;
    font-size: 52px;
    line-height: 1;
    font-weight: 200;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Открытый раздел — минус */
.rules-item.open .rules-item__head::after {
    content: "−";
    font-size: 58px;
    margin-top: -30px;
}

.rules-item__head:hover::after {
    transform: scale(1.08);
}

.rules-item__body {
    display: none;
    padding: 0 0 35px;
    max-width: 1120px;
    color: #222;
}

.rules-item.open .rules-item__body {
    display: block;
}

.rules-item__body p {
    margin: 0 0 16px;
}

.rules-item__body ul,
.rules-item__body ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.rules-item__body li {
    margin-bottom: 8px;
}

.rules-warning {
    margin: 22px 0;
    padding: 20px 22px;
    border-radius: 12px;
    background: #fffef0;
    border: 1px solid #F1FF0A;
}

.rules-warning p {
    margin-bottom: 10px;
}

.rules-warning p:last-child {
    margin-bottom: 0;
}

.rules-image {
    margin: 28px 0;
    text-align: center;
}

.rules-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.rules-image-caption {
    margin-top: 10px;
    color: #777;
    font-size: 14px;
    text-align: center;
}

.rules-price-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.rules-price-item {
    padding: 18px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #fafafa;
}

.rules-price-item strong {
    display: block;
    margin-bottom: 6px;
    color: #111;
}

/* Планшеты */
@media (max-width: 1200px) {
    .rules-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-card {
        min-height: 190px;
    }
}

/* Небольшие планшеты */
@media (max-width: 1000px) {
    .rules-price-list {
        grid-template-columns: 1fr;
    }
}

/* Телефоны */
@media (max-width: 700px) {
    .rules-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 30px 0 40px;
    }

    .rules-card {
        min-height: auto;
        padding: 22px;
    }

    .rules-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rules-btn {
        width: 100%;
    }
}

/* Маленькие телефоны */
@media (max-width: 640px) {
    .rules-intro {
        margin-bottom: 32px;
        text-align: left;
    }

    .rules-note {
        padding: 20px;
        margin-bottom: 35px;
    }

    .rules-item__head {
        min-height: 72px;
        padding: 20px 62px 20px 0;
    }

    .rules-item__head h2 {
        font-size: 20px;
    }

    .rules-item__head::after {
        right: 4px;
        width: 38px;
        height: 38px;
        margin-top: -19px;
        font-size: 40px;
    }

    .rules-item.open .rules-item__head::after {
        font-size: 44px;
        margin-top: -22px;
    }

    .rules-item__body {
        padding-bottom: 28px;
    }
}