.rules-page {
    --index: calc(1vw + 1vh);
    --color-header: #fff;
    --color-text: #fff;
    --gallery-gap: calc(var(--index) * 7.5);

    font-family: 'Montserrat', sans-serif;
    color: #1D1D1F;
    font-style: normal;
}

.rules-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.rules-page a {
    text-decoration: none !important;
    color: inherit;
}

.rules-page h1,
.rules-page h2,
.rules-page h3,
.rules-page h4,
.rules-page h5,
.rules-page h6 {
    margin: 0;
}

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

.rules-page .container {
    width: 100%;
    max-width: 1341px;
    min-width: 280px;
    margin: 0 auto;
    padding: 0 15px;
}

.rules-page .section__title {
    font-weight: 600;
    font-size: 38px;
    color: #313037;
    margin-top: 80px;
    margin-bottom: 45px;
    text-align: center;
}

/* video-container (вынесено из inline-style index.html) */
.rules-page .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 45px;
}
.rules-page .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* aboutOffer */
.rules-page .aboutOffer {
    background-image: url('../../img_beta/rules/bg-offer.png');
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: center bottom;
}
.rules-page .aboutOffer__wrapper {
    display: flex;
    align-items: center;
    column-gap: 40px;
}
.rules-page .aboutOffer__right {
    position: relative;
    width: 100%;
    max-width: 585px;
}
.rules-page .aboutOffer__title {
    font-weight: 700;
    font-size: 50px;
    color: #1d1d1d;
}
.rules-page .aboutOffer__advantages {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    margin-top: 40px;
}
.rules-page .aboutOffer__advantages-item {
    display: flex;
    align-items: center;
    column-gap: 12px;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
}
.rules-page .aboutOffer__advantages-item svg {
    width: 25px;
    height: 25px;
    fill: #FDAA04;
    min-width: 25px;
}
.rules-page .aboutOffer__about {
    font-weight: 500;
    font-size: 22px;
    line-height: 150%;
    margin-top: 60px;
}
.rules-page .aboutOffer__info {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 15px;
    background: #fffaf2;
    column-gap: 20px;
    margin-top: 60px;
}
.rules-page .aboutOffer__info-icon {
    padding: 12px;
    border-radius: 10px;
    background: #fecd31;
    transform: rotate(-24deg);
    display: flex;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
}
.rules-page .aboutOffer__info-icon svg {
    transform: rotate(24deg);
    width: 24px;
    height: 24px;
}
.rules-page .aboutOffer__type-item {
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 19px -2px rgba(0, 0, 0, 0.25);
    background: #fff;
}
.rules-page .aboutOffer__type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 30px;
    margin-top: 50px;
}
.rules-page .aboutOffer__type-title {
    display: flex;
    align-items: center;
    column-gap: 20px;
    font-weight: 600;
    font-size: 26px;
    line-height: 150%;
}
.rules-page .aboutOffer__type-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: #F5F8FF;
}
.rules-page .aboutOffer__type-icon svg {
    fill: #ABBEEA;
    width: 34px;
    height: 34px;
}
.rules-page .aboutOffer__point {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    margin-top: 25px;
}
.rules-page .aboutOffer__point-icon {
    display: grid;
    grid-template-columns: 25px auto;
    grid-column-gap: 12px;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
}
.rules-page .aboutOffer__point-icon a,
.rules-page .howWork__points-item a {
    width: max-content;
    display: contents;
    text-decoration: underline !important;
    text-decoration-skip-ink: none;
    color: #6387d9;
}
.rules-page .aboutOffer__point-icon svg {
    width: 25px;
    height: 25px;
    fill: #ABBEEA;
    min-width: 25px;
    min-height: 25px;
}
.rules-page .aboutOffer__type-itemISP svg {
    fill: #FECD31;
}
.rules-page .aboutOffer__type-itemISP .aboutOffer__type-icon {
    background: #FFFAF2;
}

/* price */
.rules-page .price__wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 60px;
}
.rules-page .price__block {
    background: #f5f8ff;
    border-radius: 15px;
    padding: 30px 35px;
}
.rules-page .price__sections {
    display: flex;
    align-content: center;
    column-gap: 30px;
}
.rules-page .price__sections-item {
    display: flex;
    align-items: center;
    column-gap: 13px;
}
.rules-page .price__sections-title {
    font-weight: 600;
    font-size: 22px;
    color: #313037;
}
.rules-page .price__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-row: 1fr 1fr;
    grid-column-gap: 25px;
    grid-row-gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.rules-page .price__cards-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 19px -5px rgba(0, 0, 0, 0.25);
    background: #fff;
    padding-top: 30px;
    padding-bottom: 30px;
}
.rules-page .price__cards-title {
    font-weight: 600;
    font-size: 32px;
    color: #313037;
    margin-bottom: 13px;
}
.rules-page .price__cards-cost {
    display: inline-block;
    border-radius: 5px;
    padding: 5px 12px;
    background: #7b79f8;
    font-weight: 600;
    font-size: 28px;
    color: #fff;
}
.rules-page .price__cards-costOrange {
    background: #FEBF43;
}
.rules-page .price__cards-btn {
    display: flex;
    justify-content: center;
}
.rules-page .price__cards-btn a {
    display: inline-block;
    border: 2px solid #fed075;
    border-radius: 15px;
    padding: 15px 50px;
    box-shadow: 0 0 11px -8px rgba(0, 0, 0, 0.25);
    background: #fed075;
    font-weight: 600;
    font-size: 20px;
    transition: 0.2s;
}
.rules-page .price__cards-btn a:hover {
    border: 2px solid #FFBF41;
    background: #FFBF41;
}

/* howWork */
.rules-page .howWork {
    background-image: url('../../img_beta/rules/bg-howWork.png');
    background-repeat: no-repeat;
    background-size: 100% 60%;
    background-position: center top 30%;
}
.rules-page .howWork__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 30px;
}
.rules-page .howWork__item {
    padding: 25px 50px;
    border-radius: 40px;
    background: #fffaf2;
}
.rules-page .howWork__itemIsp {
    background: #f5f8ff;
}
.rules-page .howWork__item-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 150%;
    color: #313037;
}
.rules-page .howWork__points {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    margin: 30px 0 40px 0;
}
.rules-page .howWork__points-title {
    display: flex;
    align-items: center;
    column-gap: 12px;
}
.rules-page .howWork__points-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    background: #fed075;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
}
.rules-page .howWork__itemIsp .howWork__points-number {
    background: #abbeea;
    color: #fff;
}
.rules-page .howWork__points-text {
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
}
.rules-page .howWork__item-img {
    margin-top: 20px;
}
.rules-page .howWork__btn {
    display: block;
    text-align: center;
    padding: 14px 0;
    border-radius: 13px;
    background: #fed075;
    font-weight: 500;
    font-size: 22px;
    transition: 0.2s;
}
.rules-page .howWork__btn:hover {
    background: #FFBF41;
}
.rules-page .howWork__itemIsp .howWork__btn {
    background: #abbeea;
    color: #fff;
}
.rules-page .howWork__itemIsp .howWork__btn:hover {
    background: #5F87E4;
}

/* numbers */
.rules-page .numbers__wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
}
.rules-page .numbers__item {
    display: flex;
    align-items: center;
    column-gap: 15px;
}
.rules-page .numbers__item-num {
    font-weight: 800;
    font-size: 110px;
    color: #979797;
}
.rules-page .numbers__item-title {
    font-weight: 700;
    font-size: 32px;
    color: #1d1d1d;
    margin-bottom: 10px;
}
.rules-page .numbers__item-desc {
    font-weight: 500;
    font-size: 16px;
    max-width: 267px;
}

/* blockquoteCost */
.rules-page .blockquoteCost__wrapper {
    padding: 30px;
    border-radius: 13px;
    background: #f0f8ff;
}
.rules-page .blockquoteCost__text {
    border-left: 5px solid #5288B8;
    padding: 0 0 0 20px;
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: #363634;
}

/* additionalServices */
.rules-page .additionalServices {
    background-image: url('../../img_beta/rules/bg-additionalServices.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center bottom;
}
.rules-page .additionalServices .price__cards {
    grid-template-columns: 1fr;
    grid-template-row: 1fr;
    margin-bottom: 0;
}
.rules-page .additionalServices .price__cards-title {
    font-weight: 600;
    font-size: 24px;
    color: #7b79f8;
}

/* dopServices */
.rules-page .dopServices__wrapper {
    display: flex;
    justify-content: center;
}
.rules-page .dopServices__wrapper .aboutOffer__type {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 30px;
    margin-top: 0;
    max-width: 680px;
}
.rules-page .aboutOffer__point-item {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.rules-page .dopServices__info {
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    color: #363634;
}

/* paymentMethod */
.rules-page .paymentMethod__wrapper {
    display: flex;
    justify-content: center;
}
.rules-page .paymentMethod__inner {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
    max-width: 985px;
}

/* reklamaNar */
.rules-page .reklamaNar {
    background-image: url('../../img_beta/rules/bg-reklamaNar.png');
    background-repeat: no-repeat;
    background-size: 150% 100%;
    background-position: center top 100px;
}

/* aboutContact */
.rules-page .aboutContact__map {
    width: 100%;
    height: 235px;
    background: #354355;
    border-radius: 30px;
}
.rules-page .aboutContact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-top: 45px;
}
.rules-page .aboutContact__item svg {
    margin-bottom: 24px;
}
.rules-page .aboutContact__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
    margin-bottom: 16px;
}
.rules-page .aboutContact__block {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}
.rules-page .aboutContact__block-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #131313;
    opacity: 0.5;
    margin-bottom: 5px;
}
.rules-page .aboutContact__block a,
.rules-page .aboutContact__block address {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #7b79f8;
    font-style: normal;
}
.rules-page .aboutContact__time {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #333;
}

@media screen and (max-width: 1292px) {
    .rules-page .price__wrapper {
        grid-template-columns: 1fr;
    }
    .rules-page .howWork__item-img {
        max-width: 300px;
    }
}

@media screen and (max-width: 673px) {
    .rules-page .section__title {
        font-size: 24px;
        margin-top: 60px;
        margin-bottom: 40px;
    }
    .rules-page .gridTwoToOne {
        grid-template-columns: 1fr;
        grid-row-gap: 20px;
    }
    .rules-page .aboutContact__wrapper {
        grid-template-columns: 1fr 1fr;
        margin-top: 45px;
    }
    .rules-page .aboutOffer__title {
        font-size: 26px;
    }
    .rules-page .aboutOffer__wrapper {
        flex-direction: column;
    }
    .rules-page .aboutOffer__about {
        font-size: 14px;
        margin-top: 40px;
    }
    .rules-page .aboutOffer__type-item {
        padding: 20px;
    }
    .rules-page .aboutOffer__type-title {
        font-size: 22px;
    }
    .rules-page .aboutOffer__point-icon {
        font-size: 14px;
    }
    .rules-page .aboutOffer__info {
        align-items: flex-start;
        flex-direction: column;
        row-gap: 20px;
        margin-top: 40px;
    }
    .rules-page .aboutOffer__advantages {
        row-gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .rules-page .aboutOffer__advantages-item {
        font-size: 15px;
    }
    .rules-page .price__cards {
        grid-template-columns: 1fr;
        grid-template-row: 1fr 1fr 1fr 1fr;
    }
    .rules-page .price__sections {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .rules-page .price__cards-item {
        padding: 20px;
    }
    .rules-page .price__cards-title {
        font-size: 24px;
    }
    .rules-page .price__cards-cost {
        font-size: 24px;
    }
    .rules-page .price__cards-btn a {
        padding: 10px 20px;
        font-size: 16px;
    }
    .rules-page .howWork__item-title {
        font-size: 24px;
    }
    .rules-page .howWork__points-number {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        font-size: 16px;
    }
    .rules-page .howWork__points-text {
        font-size: 18px;
    }
    .rules-page .howWork__item-img {
        margin-top: 10px;
        max-width: 250px;
    }
    .rules-page .howWork__btn {
        font-size: 16px;
    }
    .rules-page .numbers__wrapper {
        row-gap: 30px;
    }
    .rules-page .numbers__item {
        align-items: flex-start;
        flex-direction: column;
    }
    .rules-page .numbers__item-num {
        font-size: 40px;
    }
    .rules-page .numbers__item-title {
        font-size: 18px;
        margin-bottom: 3px;
    }
    .rules-page .numbers__item-desc {
        font-size: 14px;
    }
    .rules-page .blockquoteCost__text {
        font-size: 14px;
    }
    .rules-page .paymentMethod__inner img {
        width: 100px;
    }
    .rules-page .aboutContact__item svg {
        width: 40px;
        margin-bottom: 5px;
    }
    .rules-page .aboutContact__title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .rules-page .aboutContact__block a {
        font-size: 14px;
    }
    .rules-page .aboutOffer {
        background-size: auto;
    }
    .rules-page .howWork {
        background-size: auto;
    }
    .rules-page .additionalServices {
        background-size: auto;
    }
    .rules-page .reklamaNar {
        background-size: 200% 100%;
    }
}
