:root {
    --primary: rgb(21, 251, 238);
    --primary-hover: rgb(34 212 202);
    --bg-color-light: rgb(51, 103, 164);
    --bg-color-dark: rgb(27, 27, 77);
}

.rd-promo {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.3;
    gap: 20px 30px;
    color: white;
    border-radius: 16px;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.25);
    background: linear-gradient(180.00deg, var(--bg-color-light), var(--bg-color-dark) 100%);
    max-width: 1000px;
    width: 100%;
    padding: 40px 30px;
}

.rd-promo__product {
    flex-shrink: 0;
    width: 300px;
    max-width: 100%;
}

.rd-promo__pack {
    display: block;
    width: 100%;
}

.rd-promo__sale {
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 30px;
}

.rd-promo__title {
    font-size: 26px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.rd-promo__title span {
    color: var(--primary);
    white-space: nowrap;
}

.rd-promo__text {
    font-size: 16px;
    margin-bottom: 30px;
}

.rd-promo__button {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: var(--primary);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    padding: 16px 40px;
    transition: .2s ease-in-out;
}

.rd-promo__button:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 767px) {
    .rd-promo {
        flex-direction: column;
        text-align: center;
    }

    .rd-promo__product {
        width: 250px;
    }

    .rd-promo__sale {
        margin-bottom: 40px;
    }
}

@media (max-width: 479px) {
    .rd-promo {
        row-gap: 15px;
        padding: 30px 15px;
    }

    .rd-promo__product {
        width: 200px;
    }

    .rd-promo__sale {
        font-size: 40px;
        margin-bottom: 25px;
    }

    .rd-promo__title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .rd-promo__text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .rd-promo__button {
        font-size: 16px;
        padding-inline: 30px;
    }
}

/*Modal*/
.rd-modal {
    z-index: 999;
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s;
}

.rd-modal.open {
    opacity: 1;
    visibility: visible;
}

.rd-order {
    position: relative;
    font-family: 'Inter', sans-serif;
    color: #ed1f01;
    border-radius: 20px;
    border: 3px solid #000;
    background: radial-gradient(circle, #fff 50%, #ccc 100%);
    padding: 55px 18px 30px;
    max-width: 660px;
    width: 100%;
    overflow-y: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.rd-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.rd-modal__close::before,
.rd-modal__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 4px;
    background-color: white;
    transform-origin: center;
}

.rd-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.rd-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.rd-order__message {
    text-align: center;
    margin-bottom: 20px;
}

.rd-order__message.hidden {
    display: none;
}

.rd-order__wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.rd-order__content {
    flex-basis: 330px;
    flex-grow: 1;
    /*max-width: 330px;*/
    /*width: 100%;*/
}

.rd-order__sale {
    display: inline-block;
    font-size: 45px;
    font-weight: 900;
    color: white;
    background: #ED1F01;
    clip-path: polygon(100% 100%, 100% 100%, 98.854% 98.62%, 97.634% 97.311%, 96.338% 96.091%, 94.965% 94.978%, 93.513% 93.988%, 91.979% 93.138%, 90.363% 92.448%, 88.662% 91.933%, 86.875% 91.611%, 85% 91.5%, 33.2% 91.5%, 33.2% 91.5%, 29.09% 90.883%, 25.222% 89.034%, 21.598% 85.96%, 18.219% 81.663%, 15.088% 76.15%, 12.205% 69.425%, 9.573% 61.492%, 7.194% 52.358%, 5.069% 42.025%, 3.2% 30.5%, 3.2% 30.5%, 2.765% 27.351%, 2.358% 24.208%, 1.98% 21.077%, 1.627% 17.964%, 1.3% 14.875%, 0.997% 11.816%, 0.716% 8.793%, 0.458% 5.812%, 0.219% 2.879%, 0% 0%, 0% 0%, 1.468% 2.135%, 3.053% 4.145%, 4.759% 6.006%, 6.59% 7.694%, 8.55% 9.188%, 10.642% 10.462%, 12.869% 11.493%, 15.235% 12.259%, 17.744% 12.736%, 20.4% 12.9%, 69.9% 12.9%, 69.9% 12.9%, 70.821% 13.217%, 72.42% 13.971%, 74.571% 15.318%, 77.148% 17.414%, 80.025% 20.413%, 83.076% 24.47%, 86.175% 29.743%, 89.196% 36.385%, 92.013% 44.552%, 94.5% 54.4%, 94.5% 54.4%, 95.569% 59.735%, 96.502% 64.931%, 97.307% 69.976%, 97.991% 74.858%, 98.563% 79.563%, 99.029% 84.078%, 99.398% 88.393%, 99.678% 92.493%, 99.876% 96.366%, 100% 100%);
    padding: 15px 17px;
    position: absolute;
    top: 0;
    right: 0;
}

.rd-order__product {
    position: relative;
    flex-basis: 250px;
}

.rd-order__product picture {
    margin-bottom: 0;
}

.rd-order__pack {
    display: block;
    width: 100%;
    max-width: 100%;
}

.rd-order__pack--sale {
    padding-top: 20px;
}

.rd-order .rd-price {
    margin-bottom: 22px;
}

/*Price*/
.rd-price {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%
}

.rd-price__item {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.rd-price__line {
    display: block;
    flex-shrink: 0;
    width: 1px;
    background-color: #212529;
}

.rd-price__title {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    margin-bottom: 12px;
}

.rd-price__title--old {
    font-weight: 300;
    color: #2b2f32;
}

.rd-price__value {
    font-size: 40px !important;
    font-weight: 400
}

.rd-price__value--old {
    font-weight: 300;
    color: #2b2f32;
    text-decoration-line: line-through;
}

/*light modal theme*/
.rd-modal--light .rd-order {
    background: white;
}

.rd-modal--light .rd-modal__close::before,
.rd-modal--light .rd-modal__close::after {
    background: var(--bg-color-dark);
}

.rd-modal--light .rd-order__message {
    color: var(--bg-color-dark);
}

.rd-modal--light .rd-form__button {
    color: white;
    background: rgb(237, 31, 1);
}

.rd-modal--light .rd-form__button:hover {
    background: rgb(182, 24, 1);
}

.rd-modal--light .rd-price__title {
    color: var(--bg-color-dark);
}

.rd-modal--light .rd-price__value {
    color: var(--bg-color-dark);
}

.rd-modal--light .rd-price__title--old,
.rd-modal--light .rd-price__value--old {
    color: rgba(145, 145, 145, 0.5);
}

.rd-modal--light .rd-price__line {
    background: rgba(145, 145, 145, 0.5);
}

.rd-modal--light .rd-form__input {
    border: 1px solid var(--bg-color-dark);
}

/*Form*/
.rd-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.rd-form__label,
.rd-form__input {
    width: 100%;
}

.rd-form__input {
    font-size: 18px;
    text-align: center;
    color: var(--bg-color-dark);
    border-radius: 100px;
    box-shadow: 0 5px 20px 0 rgba(50, 118, 71, 0.1);
    background: rgb(255, 255, 255);
    border: 1px solid var(--bg-color-dark);
    outline: none;
    padding: 15px 24px;
}

.rd-form__input::placeholder {
    color: var(--bg-color-dark);
}

.rd-form__button {
    text-transform: uppercase;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #de0606;
    border: none;
    border-radius: 100px !important;
    outline: none;
    cursor: pointer;
    padding: 15px 24px !important;
    transition: background-color 0.2s;
}

.rd-form__button:hover {
    background: #ff2121;
}

.rd-form__button.bottom {
    display: block;
    margin: 20px auto;
    max-width: 350px;
    box-shadow: 0px 4px 3px #242120 !important;
}

@media (max-width: 767px) {
    .rd-order {
        width: auto;
        padding: 30px 18px 30px;
    }

    .rd-order__wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .rd-order__sale {
        font-size: 38px;
    }

    .rd-order__product {
        flex-basis: auto;
        width: 220px;
    }

    .rd-order__content {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 479px) {
    .rd-order__product {
        width: 200px;
    }

    .rd-order__sale {
        font-size: 30px;
    }

    .rd-price {
        justify-content: space-evenly;
    }

    .rd-price__title {
        font-size: 14px;
    }

    .rd-price__value {
        font-size: 30px !important;
    }

    .rd-form__input,
    .rd-form__button {
        font-size: 16px;
    }
}


.rd-order-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    max-width: 1000px;
    width: 100%;
}

.rd-order-container .rd-order {
    display: none;
    position: absolute;
    transform: translateX(100%);
    opacity: 0;
}

:root {
    --gallery-primary: rgb(28, 30, 80);
    --gallery-border-color: rgb(254, 88, 88);
    --gallery-border-radius: 30px;
}

.rd-gallery {
    font-family: 'Inter', sans-serif;
    color: var(--gallery-primary);
    max-width: 1000px;
    width: 100%;
}

.rd-gallery__title {
    margin-top: 20px;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.rd-gallery__wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.rd-gallery__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    flex: 1 1 calc((100% - 28px) / 3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.5s;
    /*overflow: hidden;*/
}


.rd-gallery__item.disabled {
    pointer-events: none;
}

.rd-gallery__overlay {
    z-index: 2;
    position: absolute;
    inset: 0;
    transition: .2s;
}

.rd-gallery__overlay picture {
    margin-bottom: 0;
}

.rd-gallery__img {
    display: block;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.rd-gallery__result {
    width: 100%;
    padding: 20px;
}

.rd-gallery__result-title,
.rd-gallery__result-subtitle {
    display: block;
    font-size: clamp(14px, 3vw, 24px);
    /*font-size: clamp(14px, 3vw, 32px);*/
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.rd-gallery__result-title {
    margin-bottom: 10px;
}

.rd-gallery__percent {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/*Flip version*/
.rd-gallery__item-wrap {
    position: absolute;
    width: 100%;
    height: 100%;

    transition: transform 1s;
    transform-style: preserve-3d;
}

.rd-gallery__overlay,
.rd-gallery__result {
    position: absolute;
    height: 100%;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.3;
    color: #03446A;
    text-align: center;
    font-size: 60px;
    border-radius: var(--gallery-border-radius);
    backface-visibility: hidden;
    overflow: hidden;
}

.rd-gallery__result {
    /*background: #03446A;*/
    /*color: white;*/
    border: 1px solid var(--gallery-border-color);
    transform: rotateY(180deg);
}

.rd-gallery__item.active .rd-gallery__item-wrap {
    transform: rotateY(180deg) !important;
    transition: transform 0.5s;
}

/*End Flip version*/

@media (max-width: 1023px) {
    .rd-gallery__title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .rd-gallery__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .rd-gallery__item {
        border-width: 1px;
        max-width: 203px;
        max-height: 203px;
    }
}

@media (max-width: 639px) {

    .rd-gallery__result-title,
    .rd-gallery__result-subtitle {
        display: block;
        font-size: clamp(14px, 4vw, 32px);
    }

    .rd-gallery__item {
        flex: 0 1 calc((100% - 14px) / 2);
    }
}

@media (max-width: 479px) {
    .rd-gallery__title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .rd-gallery__wrapper {
        gap: 10px;
    }

    .rd-gallery__item {
        flex: 0 1 calc((100% - 10px) / 2);
    }

    .rd-gallery__result {
        padding: 10px;
    }

    .rd-gallery__item {
        border-radius: 10px;
    }
}


/*Animations*/
.slide-out-left {
    -webkit-animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes slide-out-left {
    0% {
        -webkit-transform: translateX(0) skewX(0deg);
        transform: translateX(0) skewX(0deg);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(-100%) skewX(20deg);
        transform: translateX(-100%) skewX(20deg);
        opacity: 0;
    }
}

@keyframes slide-out-left {
    0% {
        -webkit-transform: translateX(0) skewX(0deg);
        transform: translateX(0) skewX(0deg);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(-100%) skewX(20deg);
        transform: translateX(-100%) skewX(20deg);
        opacity: 0;
    }
}

.slide-in-right {
    -webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-right {
    0% {
        display: inline-block;
        position: static;
        -webkit-transform: translateX(100%) skewX(-20deg);
        transform: translateX(100%) skewX(-20deg);
        opacity: 0;
    }

    100% {
        display: inline-block;
        position: static;
        -webkit-transform: translateX(0) skewX(0deg);
        transform: translateX(0) skewX(0deg);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        display: inline-block;
        position: static;
        -webkit-transform: translateX(100%) skewX(-20deg);
        transform: translateX(100%) skewX(-20deg);
        opacity: 0;
    }

    100% {
        display: inline-block;
        position: static;
        -webkit-transform: translateX(0) skewX(0deg);
        transform: translateX(0) skewX(0deg);
        opacity: 1;
    }
}