#content {
    padding-top: 50px !important;
}

.catalog-certificates {
    padding: 80px 0;
    background-image: url("./images/bg-image.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.catalog-certificates__title {
    text-transform: uppercase;
    color: #383838;
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 35px;
    line-height: 37px;
}

.catalog-certificates__form {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
}

.catalog-certificates__left-block,
.catalog-certificates__right-block {
    width: 100%;
    min-width: 300px;
}

.catalog-certificates__choose-block,
.catalog-certificates__wishes-block,
.catalog-certificates__right-block {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background: #fff;
}

.catalog-certificates__left-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 750px;
}

.catalog-certificates__choose-block {
    padding: 30px 0;
}

.certificates-denomination__title {
    padding: 0 15px 30px 15px;
}

.catalog-certificates__denomination {
    padding: 0 15px 20px 15px;
}

.certificates-denomination__name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    border: 1px solid #333333;
    border-radius: 50px;
    cursor: pointer;
}

.certificates-denomination__name {
    font-weight: 500;
    font-size: 18px;
    color: #333333;
}

.certificates-denomination__item .certificates-denomination__radio:checked ~ .certificates-denomination__name {
    border-color: #EB070F;
    background: #EB070F;
    color: #fff
}

.certificates-denomination__list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.swiper-slide {
    width: 330px !important;
    height: 200px !important;
}

.swiper-slide label {
    cursor: pointer;
}

.catalog-certificates__design .swiper-container {
    overflow: hidden;
}

.catalog-certificates__design .swiper-container span {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 24px;
}

.catalog-certificates__design input:checked ~ span:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
}

.catalog-certificates__design input:checked ~ span:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("./images/checkmark-circle.svg");
    background-repeat: no-repeat;
    background-size: inherit;
}

.catalog-certificates__wishes-block {
    flex: 1;
    padding: 30px;
    background-image: url("./images/bg-wishes.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#wishes {
    font-size: 15px;
    color: #4F4F4F !important;
    height: 100%;
    border-radius: 15px;
    padding: 15px 30px;
    background: #fff;
    border-color: #B0B0B0;
    outline: none;
}

#wishes::placeholder {
    color: #848484;
    font-style: italic;
}

.catalog-certificates__right-block {
    max-width: 595px;
    padding: 30px;
}

.certificates-denomination__title,
.certificates-main-form__title {
    font-size: 18px;
    color: #333333;
    font-weight: 500;
}

.catalog-certificates__form-main-block,
.catalog-certificates__form-extra-block,
.catalog-certificates__right-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.catalog-certificates__form-extra-block {
    overflow: hidden;
    opacity: 1;
    transition: all .3s ease-out;
}

.catalog-certificates__right-block label {
    font-size: 14px;
}

.catalog-certificates__right-block input {
    padding: 15px 30px !important;
    margin-top: 10px;
    border-radius: 50px !important;
    border-color: #B0B0B0 !important;
    background: #fff !important;
    font-size: 14px !important;
    color: #4F4F4F !important;
    outline: none !important;
}

.catalog-certificates__right-block input::placeholder {
    color: #848484 !important;
}

.catalog-certificates__right-block input:active,
.catalog-certificates__right-block input:focus {
    border-color: #EB070F !important;
}

.catalog-certificates__checkbox {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: row-reverse;
    gap: 10px;
    line-height: 130%;
    cursor: pointer;
}

.catalog-certificates__checkbox span.mark {
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #333333;
    border-radius: 4px;
}

.catalog-certificates__checkbox span.marked {
    display: none;
    flex-grow: 0;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
}

.catalog-certificates__checkbox.checked span.mark {
    display: none;
}

.catalog-certificates__checkbox.checked span.marked {
    display: block;
}

.catalog-certificates__form-extra-block_hidden {
    opacity: 0;
    height: 0 !important;
    margin: -15px 0;
}

#confirm-personal-info input {
    display: none;
}

.catalog-certificates__form input.error {
    border-color: #EE0823;
}

.catalog-certificates__error {
    display: none;
    font-size: 14px;
    color: #EE0823;
    margin-top: 10px;
}

#error-cert_design_id {
    padding-left: 15px;
}

#error-confirm-personal-info {
    margin-top: -20px;
}

.catalog-certificates__button-wrapper {
    display: flex;
    justify-content: space-between;
}

.catalog-certificates__button-wrapper span {
    max-width: 300px;
}

.catalog-certificates__button-wrapper a {
    text-decoration: underline;
    color: #333333;
}

.catalog-certificates__button {
    background: #EB070F;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    width: 120px;
    height: 50px;
    font-weight: 500;
    font-size: 18px;
    color: #fff;
    border: 1px solid #EB070F;
    outline: none;
    cursor: pointer;
}

.catalog-certificates__button:hover {
    background: #ce4b56;
    border-color: #ce4b56;
}

.catalog-certificates__legal-entries-button {
    display: flex;
    text-align: center;
    align-self: flex-start;
    font-weight: 500;
    font-size: 16px;
    color: #EB070F;
    cursor: pointer;
    transition: all 0.1s linear;
    outline: none;
    border-bottom: 1px solid #EB070F;
}

.catalog-certificates__legal-entries-button:hover {
    color: #ce4b56;
    border-color: #ce4b56;
}

.catalog-certificates__form-legal-entries-window {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 50px 15px;
    opacity:0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.catalog-certificates__form-legal-entries-window:target {
    opacity:1;
    pointer-events: auto;
}

.catalog-certificates__form-legal-entries {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.catalog-certificates__form-legal-entries-close {
    background: #EB070F;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    z-index: 9999;
}

.catalog-certificates__form-legal-entries-close:hover {
    background: #ce4b56;
    color: #FFFFFF;
}

@media screen and (max-width: 1366px) {
    .catalog-certificates__form {
        max-width: 95%;
    }
}

@media screen and (max-width: 1100px) {
    .catalog-certificates__button-wrapper {
        flex-direction: column;
    }
    .catalog-certificates__button {
        width: 100%;
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .catalog-certificates__form {
        flex-direction: column;
    }

    .catalog-certificates__legal-entries-button {
        align-self: center;
    }

    .catalog-certificates__form > div {
        max-width: unset;
    }
}

@media screen and (max-width: 480px) {
    .catalog-certificates__form {
        max-width: 92%;
    }
    .catalog-certificates__left-block,
    .catalog-certificates__right-block {
        min-width: unset;
    }
    .swiper-slide {
        width: 300px !important;
        height: 170px !important;
    }
    .catalog-certificates__wishes-block,
    .catalog-certificates__right-block {
        padding: 30px 15px;
    }
    .catalog-certificates__wishes-block {
        background-image: url("./images/bg-wishes-small.png");
    }
    #wishes::placeholder,
    #wishes {
        font-size: 13px;
    }
}

.stmdx-oa-preload {
    display: block;
    position: fixed;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.2s 0s, width 0s 0.2s;
}

.stmdx-oa-preload--active {
    opacity: 1;
    width: 100%;
    transition: opacity 0.2s 0s, width 0s 0s;
    z-index: 100000000;
}

.stmdx-oa-preload__preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    fill: #ee0823;
}