/*** Popup ***/

.popup {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px 10px;
    -webkit-transition: visibility .8s;
    transition: visibility .8s;
    visibility: hidden;
    font-family: "GolosText", sans-serif !important;
}

.popup_show {
    z-index: 1100;
    overflow: auto;
    pointer-events: auto
}

.popup_show .popup__content {
    visibility: visible;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
    opacity: 1;
    pointer-events: all;
}

.popup__wrapper {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center
}

.popup__content {
    visibility: hidden;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    background-color: #fff;
    padding: 2.5rem;
    width: 100%;
    max-width: 544px;
    overflow: hidden;
}

.popup__content-center {
    background-color: #E0D2BD;
    border-radius: 10px;
}

.popup-right {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 0;
    -webkit-transition: visibility .8s;
    transition: visibility .8s;
    visibility: hidden;
    pointer-events: none;
}

.popup-right.popup_show {
    z-index: 1100;
    visibility: hidden;
    overflow: hidden;
    pointer-events: auto;
}

.popup-right__wrapper {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.popup-right__content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 32rem;
    padding: 0;
    border-radius: 0;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    background-color: #9F977F;
    visibility: hidden;
    -webkit-transition: -webkit-transform .3s;
    transition: transform .3s, -webkit-transform .3s;
}

.popup-right.popup_show .popup-right__content {
    visibility: visible;
    -webkit-transform: translateX(0) !important;
    -ms-transform: translateX(0) !important;
    transform: translateX(0) !important;
    -webkit-transition: .3s ease .3s;
    transition: .3s ease .3s;
    -webkit-transition-property: visibility, -webkit-transform;
    transition-property: visibility, -webkit-transform;
    transition-property: transform, visibility;
    transition-property: transform, visibility, -webkit-transform;
}

.popup-right__head {
    position: relative;
    min-height: 3.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-left: 1.5rem;
}

.popup-right__close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-left: auto;
    padding: 17px;
    border-radius: 15px;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
}

.popup-right__body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #dcdcdc #f4f4f4;
    scrollbar-width: thin;
}

.popup-right__body-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100%;
    padding: 0 1.5rem;
}

.popup-right__body-wrapper::-webkit-scrollbar {
    width: .25rem;
    background-color: #9F977F;
}

.popup-right__body-wrapper::-webkit-scrollbar-thumb {
    background-color: #9F977F;
}

.popup-right__body-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #9F977F;
}

.popup-right__head {
    position: relative;
    min-height: 3.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-left: 1.5rem;
}

.popup__close {
    position: absolute;
    top: 0;
    right: 0;
}

.popup-right__close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-left: auto;
    padding: 1.25rem;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
}

.popup__close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1.25rem;
    -webkit-transition: opacity .3s;
    transition: opacity .3s
}

.popup-right__form {
    width: 100%;
    padding-top: 12.75rem;
    padding-bottom: 3.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;

}

.popup-right__form-title {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.1818181818;
}

.popup-right__form-title:not(:last-child) {
    margin-bottom: .5rem;
}

.popup-right__form-subtitle {
    font-size: .9375rem;
    line-height: 1.2666666667;
    font-style: italic;
    font-family: "Montserrat", sans-serif;
}

.popup-right__form-subtitle:not(:last-child) {
    margin-bottom: 90px;
}

.popup-right__form-group:not(:last-child) {
    margin-bottom: 2rem;
}

.popup-right__input-group:not(:last-child) {
    margin-bottom: 20px;
}

.input-group__label {
    font-size: 1rem;
    line-height: 120%;
    color: #000;
}

.input-group__capture:not(:first-child),
.input-group__label:not(:last-child) {
    margin-bottom: 0.5rem;
}

.input-group__wrapper {
    position: relative;
}

.input-group__wrapper:not(:last-child) {
    margin-bottom: 0.5rem;
}

.input-group__wrapper._active [data-js=input-clear] {
    opacity: 1;
    pointer-events: all;
}

.input-group__wrapper._active .input-group__submit {
    opacity: 0;
    pointer-events: none;
}

.input-group__capture {
    font-size: 0.875rem;
    line-height: 120%;
    color: #514b47;
}

.input-group__clear,
.input-group__submit {
    position: absolute;
    top: 50%;
    right: 0.625rem;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.input-group__clear {
    opacity: 0;
    pointer-events: none;
}

.input-group__submit {
    opacity: 1;
}

.input-group__wrapper._active [data-js=input-clear] {
    opacity: 1;
    pointer-events: all;
}

.input-group__code:not(:last-child) {
    margin-bottom: 0.5rem;
}

.input-group__get-code {
    font-size: 0.875rem;
    line-height: 120%;
    color: #000;
}

.popup-right__form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.5rem;
}

.popup-right__form-row>* {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.form-error {
    margin-top: 0.5rem;
    font-size: 12px;
    line-height: 120%;
    color: #b60017;
}

.form-error:not(:last-child) {
    margin-bottom: 10px;
}

.popup-right__form-policy {
    margin-top: 28px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.popup-right__form-policy a {
    color: #000;
    transition: opacity ease 0.25s;
    text-decoration: underline;
}

.popup-right__form-policy a:hover {
    text-decoration: none;
    color: #000 !important;
}

.popup-right__form-back {
    margin-top: 22px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: #4c3f3b;
}

/* Капча в попапе */
.popup .grecaptcha-badge {
    left: 0 !important;
}


/* Template Page */
.page__brend-body {
    margin-bottom: 45px;
    font-family: "GolosText", sans-serif !important;
}

.page__brend-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
}

.page__brend-group a {
    text-transform: uppercase;
}

.page__brend-group:not(:last-child) {
    margin-bottom: 20px;
}

.page__brend-title {
    margin-bottom: 6px;
}


@media (max-width: 1024px) {
    /* Template Page */
    .page__brend-group {
        grid-template-columns: repeat(3, 1fr);
    }


    .popup__content {
        z-index: 150;
        -webkit-transform: translate(0, 100%) scale(1);
        -ms-transform: translate(0, 100%) scale(1);
        transform: translate(0, 100%) scale(1);
        max-width: none;
        opacity: 1;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .popup-right__content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .popup__content {
        position: relative;
    }

    .popup-right__head {
        min-height: 3rem;
    }

    .popup-right__body {
        padding: 0 16px;
    }

    .popup-right__form {
        padding: 52px 0 52px 0;
    }

    .popup-right__form-subtitle:not(:last-child) {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    /* Template Page */
    .page__brend-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .popup {
        padding: 0;
    }

    .popup__content {
        max-width: 100%;
        border-radius: 0;
        height: 100%;
    }

    .popup__wrapper {
        height: 100%;
    }
}

@media (max-width: 320px) {
    /* Template Page */
    .page__brend-group {
        grid-template-columns: repeat(1, 1fr);
    }
}
