.rules-page {
    color: #15191d;
    background: #fff;
}

.rules-page *,
.rules-page *::before,
.rules-page *::after {
    box-sizing: border-box;
}

/* Hero */

.rules-hero {
    min-height: 560px;
    background:
        linear-gradient(
            90deg,
            rgba(247, 249, 250, .97) 0%,
            rgba(247, 249, 250, .86) 42%,
            rgba(247, 249, 250, .18) 76%
        ),
        url("/assets/img/bckg/deliveryterms_bckg.jpg") center center / cover no-repeat;
}

.rules-hero__inner {
    min-height: 560px;
    padding-top: 78px;
}

.rules-hero__content {
    max-width: 720px;
}

.rules-hero h1 {
    margin: 0 0 30px;
    font-size: 49px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.rules-hero__content > p {
    max-width: 620px;
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
}

.rules-hero__features {
    width: 680px;
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rules-hero__features article {
    min-height: 145px;
    padding: 20px 12px;
    border: 1px solid rgba(224, 229, 233, .75);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 9px 28px rgba(24, 42, 58, .04);
    backdrop-filter: blur(4px);
}

.rules-hero__features img {
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    object-fit: contain;
}

.rules-hero__features strong {
    font-size: 13px;
    line-height: 1.55;
}

/* Content */

.rules-content {
    padding: 55px 0 80px;
    background: #f7f9fa;
}

.rules-document {
    max-width: 1050px;
    margin: 0 auto;
    padding: 55px 70px 70px;
    border: 1px solid #e0e5e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(24, 42, 58, .06);
}

.rules-document__header {
    margin-bottom: 42px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dfe4e8;
}

.rules-document__header h2 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.rules-document__header p {
    margin: 6px 0 0;
    color: #626c77;
    font-size: 13px;
    line-height: 1.6;
}

/* Sections */

.rules-section {
    margin-top: 42px;
    scroll-margin-top: 100px;
}

.rules-section:first-of-type {
    margin-top: 0;
}

.rules-section h2 {
    margin: 0 0 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e5e9ec;
    color: #15191d;
    font-size: 23px;
    line-height: 1.35;
}

.rules-section h3 {
    margin: 25px 0 14px;
    font-size: 17px;
    line-height: 1.45;
}

.rules-section p {
    margin: 0 0 15px;
    color: #38414a;
    font-size: 14px;
    line-height: 1.85;
}

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

.rules-section strong {
    color: #15191d;
    font-weight: 700;
}

.rules-section a {
    color: #0c923f;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        color .2s ease,
        text-decoration-color .2s ease;
}

.rules-section a:hover {
    color: #086d30;
    text-decoration-color: transparent;
}

.rules-section ul,
.rules-section ol {
    margin: 10px 0 20px;
    padding-left: 24px;
}

.rules-section li {
    margin-bottom: 9px;
    color: #38414a;
    font-size: 14px;
    line-height: 1.75;
}

.rules-section li:last-child {
    margin-bottom: 0;
}

.rules-section ul li::marker {
    color: #00a64f;
}

.rules-section ol li::marker {
    color: #168c3c;
    font-weight: 700;
}

/* Requisites */

.rules-requisites {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid #dce4df;
    border-radius: 14px;
    background: linear-gradient(105deg, #f4f8f5, #fbfcfb);
}

.rules-requisites h2 {
    border-bottom-color: #dce6df;
}

.rules-requisites dl {
    margin: 0;
}

.rules-requisites dl > div {
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid #dfe6e1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.rules-requisites dl > div:last-child {
    border-bottom: 0;
}

.rules-requisites dt {
    color: #59646e;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}

.rules-requisites dd {
    min-width: 0;
    margin: 0;
    color: #15191d;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Warning */

.rules-warning {
    margin-top: 35px;
    padding: 28px 32px;
    border: 1px solid #dbe8df;
    border-radius: 14px;
    background: linear-gradient(105deg, #eff8f2, #f9fbfa);
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.rules-warning > img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    object-fit: contain;
}

.rules-warning h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
}

.rules-warning p {
    margin: 0 0 10px;
    color: #4b5851;
    font-size: 13px;
    line-height: 1.75;
}

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

/* Final block */

.rules-acceptance {
    margin-top: 35px;
    padding: 32px 38px;
    border-radius: 14px;
    background: linear-gradient(105deg, #f4f7f5, #fcfcfc);
    text-align: center;
}

.rules-acceptance h2 {
    margin: 0 0 13px;
    font-size: 22px;
    line-height: 1.4;
}

.rules-acceptance p {
    max-width: 760px;
    margin: 0 auto 25px;
    color: #59636d;
    font-size: 13px;
    line-height: 1.8;
}

.rules-acceptance .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--rules {
    min-width: 330px;
    color: #fff;
    background: linear-gradient(135deg, #0c923f, #16be5b);
}

/* Print */

@media print {
    .rules-hero,
    .rules-acceptance .btn {
        display: none;
    }

    .rules-content {
        padding: 0;
        background: #fff;
    }

    .rules-document {
        max-width: none;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .rules-section,
    .rules-requisites,
    .rules-warning {
        break-inside: avoid;
    }

    .rules-section a {
        color: inherit;
        text-decoration: none;
    }
}

/* Responsive */

@media (max-width: 1100px) {
    .rules-hero {
        background-position: 58% center;
    }

    .rules-document {
        padding: 50px 55px 65px;
    }
}

@media (max-width: 900px) {
    .rules-hero {
        min-height: 620px;
        background-position: 64% center;
    }

    .rules-hero__inner {
        min-height: 620px;
        padding-top: 55px;
    }

    .rules-hero__content {
        max-width: 620px;
    }

    .rules-hero h1 {
        font-size: 42px;
    }

    .rules-hero__features {
        width: 590px;
    }

    .rules-document {
        padding: 42px 38px 55px;
    }

    .rules-document__header h2 {
        font-size: 28px;
    }

    .rules-requisites dl > div {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .rules-hero {
        min-height: 730px;
        background-position: 70% center;
    }

    .rules-hero__inner {
        min-height: 730px;
        padding-top: 35px;
        display: flex;
        align-items: flex-end;
    }

    .rules-hero__content {
        width: 100%;
        padding-bottom: 24px;
    }

    .rules-hero h1 {
        margin-bottom: 16px;
        font-size: 34px;
    }

    .rules-hero__content > p {
        font-size: 15px;
        line-height: 1.6;
    }

    .rules-hero__features {
        width: 100%;
        margin-top: 25px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .rules-hero__features article {
        min-height: 105px;
        padding: 10px;
    }

    .rules-hero__features img {
        width: 38px;
        height: 38px;
        margin-bottom: 7px;
    }

    .rules-content {
        padding: 25px 0 45px;
    }

    .rules-document {
        padding: 28px 20px 38px;
        border-radius: 12px;
    }

    .rules-document__header {
        margin-bottom: 32px;
        padding-bottom: 22px;
    }

    .rules-document__header h2 {
        font-size: 24px;
    }

    .rules-section {
        margin-top: 34px;
    }

    .rules-section h2 {
        margin-bottom: 18px;
        font-size: 20px;
    }

    .rules-section p,
    .rules-section li {
        font-size: 13px;
        line-height: 1.75;
    }

    .rules-section ul,
    .rules-section ol {
        padding-left: 20px;
    }

    .rules-requisites {
        padding: 22px 18px;
    }

    .rules-requisites dl > div {
        padding: 12px 0;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .rules-warning {
        padding: 22px 18px;
        flex-direction: column;
        gap: 15px;
    }

    .rules-warning > img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .rules-acceptance {
        padding: 25px 18px;
    }

    .rules-acceptance h2 {
        font-size: 20px;
    }

    .rules-acceptance .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .rules-hero h1 {
        font-size: 29px;
    }

    .rules-hero__features strong {
        font-size: 11px;
    }

    .rules-document {
        padding-right: 16px;
        padding-left: 16px;
    }

    .rules-document__header h2 {
        font-size: 22px;
    }

    .rules-section h2 {
        font-size: 18px;
    }

    .rules-warning h2,
    .rules-acceptance h2 {
        font-size: 18px;
    }
}