.modal-window {
    position: fixed;
    z-index: 300;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgb(16,29,25, 0.8);
    width: 100%;
    height: 100%;
    cursor: pointer;
    scrollbar-width: none;
}
.modal-container {
    position: relative;
    max-width: 90%;
    width: auto;
    max-height: 90vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.registration {
    display: none;
    width: 470px;
    margin: 100px auto;
    background-color: #fff;
    z-index: 400;
    border-radius: 20px;
    position: relative;
    flex-direction: column;

    transform: translateY(0);
}
.registration__main {
    display: none;
    cursor: default;
    flex-direction: column;
    justify-content: center;
}
.modal-exit {
    position: absolute;
    right: -40px;
    top: 0;
    cursor: pointer;
}
.modal-exit__svg_cross {
    width: 22px;
    height: 22px;
}







.registration__provider {
    display: none;
}
.organization-name__label {
    color: #424F4B;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 125%;
    max-width: 90%;
}
.select__country {
    display: none;
    margin-bottom: 23px;
    font-size: 16px;
    font-weight: 400;
    color: #424F4B;
}
.form-group_TIN {
    margin-bottom: 28px;
}
.organization-category {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.form-group_with-background {
    background-color: #F1F0ED;
    border-radius: 46px;
    margin-right: auto;
    padding: 8px 20px 8px 8px;
    height: 35px;
    margin-bottom: 15px;
    align-items: center;
    flex-direction: row;
}
.form-group_with-background:hover {
    background-color: rgb(219, 213, 201);
}
.form-group_with-background.selected {
    background-color: #424F4B; 
    color: white;
}
.selected-form-group {
    color: white;
    background-color: #424F4B;
}
.modal-input__radio_shadowed {
    width: 18px !important;
    height: 18px !important;
    box-shadow: inset 0 1px 2.6px -1px rgba(0, 0, 0, 0.25);
}
.registration-legend_category {
    margin-bottom: 15px;
}

.password-recovery {
    display: none;
}
.radio2_recovery {
    margin: 40px auto;
}
.recovery-legend {
    font-size: 14px;
    font-weight: 400;
}

.remember:checked ~ .revocery-form__login {
    display: none;
}
.revocery-form__email {
    display: none;
}
.modal-exit_toggle {
    display: none;
}

.registr-alert {
    display: none;
    width: 470px;
    margin: 100px auto;
    z-index: 400;
    border-radius: 20px;
    position: relative;
    flex-direction: column;

    transform: translateY(0);
    background-color: #F5F7FA;
}
.registr-alert__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
.registr-alert__img {
    width: 83px;
    height: 83px;
}
.registr-alert__button {
    margin-top: 15px;
}

.location {
    display: none;
    width: 630px;
    margin: 100px auto;
    background-color: #fff;
    z-index: 400;
    border-radius: 20px;
    position: relative;
    flex-direction: column;

    transform: translateY(0);
}
.location__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}
.button__enter_location {
    height: 70px;
    background-color: #0F3027;
}
.custom-select {
    display: flex;
}

/* Новости */
.modal-news {
    display: none;
    width: 430px;
    margin: 100px auto;
    background-color: transparent;
    z-index: 400;
    position: relative;

    transform: translateY(0);
    cursor: default;
}
.modal-news > .modal-exit {
    right: -37px;
    z-index: 500;
}
.modal-news > .modal-exit_cross > .modal-exit__svg_cross > path {
    stroke: white;
}
.modal-button_left {
    height: 100%;
    position: absolute;
    left: -52px;
    top: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.modal-button_right {
    height: 100%;
    position: absolute;
    right: -52px;
    top: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.wide-track {
    position: absolute;
    top: 15px;
    left: 50%;
    height: 3px;
    width: 90%;
    transform: translate(-50%, 0);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 300;
}
.wide-track__element {
    background-color: rgb(0, 0, 0, 0.3);
    height: 100%;
    width: 100%;
    border-radius: 2px;
}
.wide-track__element.focused {
    background-color: rgb(0, 0, 0, 0.6);
}
.modal-news__content {
    display: flex;
    width: 430px;
    height: 760px;
    justify-content: center;
    overflow: hidden;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    border-radius: 20px;
}
.modal-news__carousel {
    display: flex;
    width: 430px;
    height: 760px;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    transition: transform 0.4s ease-out;
}
.modal-news-card {
    width: 430px;
    height: 100%;
    background-color: #F8FFDF;
    border-radius: 20px;
    padding: 25px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.modal-news-card__img {
    margin: 40px 0 40px;
    width: 354px;
    height: 354px;
}
.modal-news-card__bottom {
    height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.modal-news-card__header {
    color: #0F3027;
    text-align: left;
    margin: 0;
}
.modal-news-card__text {
    font-size: 16px;
    color: #0F3027;
    line-height: 125%;
    margin: 12px 0 auto;

}
.modal-news-card__button {
    background-color: #7B9329;
    border-radius: 10px;
    width: 210px;
    height: 44px;
    color: #fff;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    margin-top: 10px;
}


/* Сторис */

.modal-stories {
    display: none;
    width: 430px;
    margin: 100px auto;
    background-color: transparent;
    z-index: 400;
    position: relative;

    transform: translateY(0);
    cursor: default;
    justify-content: center;
}
.modal-stories > .modal-stories__content > .modal-story > .modal-exit_cross > .modal-exit__svg_cross > path {
    stroke: white;
}
.modal-stories__content {
    height: 760px;
    overflow: hidden;
}
.modal-story {
    display: none;
    width: 430px;
    height: 760px;
    justify-content: center;
    overflow: hidden;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
}
.modal-story > video {
    height: 100%;
    min-width: 100%;
}
.custom-controls {
    position: absolute;
    bottom: 12px;
    width: 93%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(20, 20, 20, 0.6);
    padding: 4px 2px 2px 2px;
    border-radius: 4px;
}
.custom-videoplayer {
    cursor: pointer;
    background-color: black;
    object-fit: cover;
    object-position: center;
}
.play-pause-btn, .mute-btn, .download-btn {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}
.current-time, .duration {
    color: white;
    font-size: 10px;
    line-height: 100%;
    font-weight: 400;
}
.progress-container {
    width: 285px;
    cursor: pointer;
    padding: 10px 0;
}
.progress-bar {
    width: 100%;

    height: 2px;
    border-radius: 2px;
    background-color: rgb(255, 255, 255, 0.5);
}
.progress-filled {
    height: 2px;
    border-radius: 2px;
    background-color: rgb(255, 255, 255);
}
.download-btn {
    position: absolute;
    top: 19px;
    left: 22px;
}
.item-link {
    position: absolute;
    bottom: 65px;
    width: 400px;
    height: 60px;
    border-radius: 7px;
    padding: 8px 8px 10px;
    background-color: #fff;
    display: flex;
    text-decoration: none;
}
.item-link__left {
    width: 50px;
    height: 42px;
    flex-shrink: 0;
}
.item-link__img {
    width: 100%;
    height: 100%;
}
.item-link__right {
    margin-left: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 80%;
}
.item-link__header {
    color: #424F4B;
    font-weight: 600;
    font-size: 14px;
    line-height: 90%;
    margin: 0 0 auto;

}
.item-link__price {
    color: #424F4B;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    margin: auto 0 0;
}
.download-btn__svg {
    width: 18px;
    height: 19px;
}
.play-btn__svg {
    width: 14px;
    height: 15px;
} 
.mute-btn__svg {
    width: 19px;
    height: 15px;
}


@media (max-width: 768px) {
    .modal-container {
        padding-top: 40px;
    }
    .registration, .location {
        width: 68%;
        height: auto;
        min-height: auto;
        margin: auto auto 0;
        padding-bottom: 65px;
        border-radius: 10px 10px 0 0;
    }
    .location {
        width: 100%;
        top: -40px;
        padding-bottom: 0;
        border-radius: 0;
    }
    .modal-exit {
        position: absolute;
        left: 15px;
        right: auto;
        top: 34px;
    }
    .modal-exit__svg_cross {
        display: none;
    }
    .button__registration {
        width: auto;
        margin: 0 20px 20px;
        background-color: #0F3027;
    }
    .modal-exit__svg_arrow {
        display: block;
        width: 19px;
        height: 14px;
    }
    .modal-exit_toggle {
        display: block;
        width: 36px;
        height: 7px;
        top: 15px;
        border-radius: 5px;
        background-color: #F0EFEC;
        margin: 0 auto;
        left: 50%;
        transform: translate(-50%, 0);
    }
    .registration-header_main, .registration-form, .registration-footer {
        padding: 30px 15px 0;
        margin: 0;
    }
    .registration-header_main {
        padding: 40px 20px 0;
    }
    .registration-form, .registration-footer {
        padding: 30px 20px 0;
    }
    .modal-exit_arrow {
        top: 40px;
        left: 20px;
    }
    .modal-label_checkbox {
        max-width: 100%;
    }
    .form-group_checkbox {
        margin: 20px 0;
    }
    .registration-header {
        text-align: center;
        font-size: 16px;
    }
    .button__enter {
        margin-top: 0;
    }
    .registration-footer {
        background-color: #fff;
        height: auto;
        border-radius: 0;
        padding-top: 0;
    }
    .enter-type__buttons {
        padding: 0;
        width: 100%;
        height: 105px;
        gap: 10px 15px;
    }
    .button__enter-type {
        width: 100%;
        height: 47px;
        background-color: white;
        border-radius: 7.5px;
        font-size: 14px;
        padding-right: 0;
    }
    .registration-footer__text {
        margin: 36px auto 27px;
        max-width: 99%;
    }

    .registration__account-type, .registration__taker, .registration__provider, .password-recovery, .registPage__content, .location__content {
        padding: 40px 20px 35px;
        cursor: default;
    }
    .radio2 {
        height: 45px;   
        background-color: #F0EFEC;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        margin-bottom: 50px;
    }
    .modal-input__radio {
        display: none;
    }


    .form-group_radio1, .form-group_radio2 {
        width: 100%;
        height: 100%;
        margin: 0;
        text-align: center;
    }
    .modal-input__radio-label {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    .form-group_radio1:first-child > .modal-input__radio-label, .form-group_radio2:first-child > .modal-input__radio-label {
        border-radius: 10px 0 0 10px;
    }
    .form-group_radio1:last-child > .modal-input__radio-label, .form-group_radio2:last-child > .modal-input__radio-label {
        border-radius: 0 10px 10px 0;
    }
    .modal-input__radio-label.selected {
        background-color: #CFD8C5;
    }
    .form-group_with-background.selected {
        background-color: #424F4B;
    }
    .registration-legend {
        max-width: 95%;
    }
    .password-recovery > .registration-legend { 
        display: none;
    }

    .radio2_recovery {
        margin: 35px 0;
    }
    .revocery-form__login, .revocery-form__email {
        margin-bottom: 15px;
    }
    .form-group_with-background {
        width: auto;
        margin: 0 auto 15px 0;
        padding: 8px 15px 8px 8px;
        height: 35px;
        margin-bottom: 15px;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
    }

    .registr-alert {
        height: 100%;
        width: 100%;
        top: -40px;
        margin: 0;
        border-radius: 0;
        align-items: center;
        justify-content: center;
    }
    .registr-alert__button {
        width: 340px;
    }
    .registr-alert__img {
        margin-bottom: 44px;
    }
    .button__enter_location {
        height: 55px;
        margin-top: 40px;
    }    
    .select__country {
        display: block;
    }
    .custom-select {
        display: none;
    }
    
    .modal-news {
        height: auto;
        width: 100%;
        margin: 0;
        border-radius: 30px;
    }
    .modal-news__content {
        width: 100%;
        height: 100%;
        border-radius: 30px;
    }
    .modal-news__carousel {
        width: 100%;
        height: fit-content;
        border-radius: 30px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: auto;
        scrollbar-width: none;
    }
    .modal-news-card {
        width: 100%;
        background-color: #F8FFDF;
        border-radius: 20px;
        padding: 25px 20px;
        margin: 0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        scroll-snap-align: start;
    }
    .wide-track {
        top: 53px;
    }
    .modal-news > .modal-exit {
        right: 15px;
        left: auto;
    }
    .modal-news > .modal-exit > .modal-exit__svg_cross {
        display: block;
        width: 20px;
        height: 20px;
    }
    .modal-news > .modal-exit_cross > .modal-exit__svg_cross > path {
        stroke: black;
    }
    .modal-news-card__img {
        width: 512px;
        height: 512px;
    }
    .modal-news-card__button {
        width: 265px;
        height: 60px;
        font-size: 16px;
    }
    .modal-news-card__header {
        font-size: 48px;
    }
    .modal-news-card__text {
        font-size: 20px;
        overflow: hidden;
        margin: 12px 0 50px;
    }
    .modal-news-card__bottom {
        padding-bottom: 25px;
        height: 50%;
        flex-shrink: 0;
        justify-content: flex-start;
    }
    .modal-news > .modal-exit_cross {
        top: 70px;
    }


    /* Сторис */

    .modal-stories {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 30px;
        top: -40px;
    }

    .modal-stories__content {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: auto;
        scrollbar-width: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 500px;
    }
    .modal-story {
        display: flex;
        flex-shrink: 0;
        width: 100%;
        height: 980px;   
        border-radius: 30px;
        position: relative;
        scroll-snap-align: start;
        scroll-margin-top: 50px;

    }
    .modal-story > .modal-exit  {
        display: flex;
        top: 21px;
        left: 15px;
    }
    .modal-stories__content > .modal-story > .modal-exit {
        top: 40px;
    }
    .modal-story > .modal-exit > .modal-exit__svg_cross {
        display: flex;
        width: 20px;
        height: 20px;
    }
    .download-btn {
        width: 25px;
        height: 25px;
        left: auto;
        right: 15px;
        top: 18px;
    }
    .item-link {
        bottom: 70px;
        width: 92%;
        height: 80px;
        border-radius: 10px;
        padding: 6px 6px 10px;
    }
    .item-link__left {
        width: 80px;
        height: 70px;
    }
    .item-link__right {
        margin-left: 9px;
    }

    .item-link__header {
        font-weight: 400;
        line-height: 100%;
    }
    .item-link__price {
        font-weight: 700;
        font-size: 14px;
    }
    .custom-controls {
        width: 90%;
        bottom: 25px;
        gap: 10px   ;
    }
    .play-btn__svg {
        width: 16px;
        height: 18px;
    }
    .current-time, .duration {
        font-size: 12px;
    }
    .progress-container {
        width: 100%;
    }
    .mute-btn__svg {
        width: 20px;
        height: 16px;
    }

}
@media (max-width: 480px) {

    .registration, .location {
        width: 100%;
        height: auto;
        min-height: 100%;
        margin: 35px auto 50px;
        padding-bottom: 50px;
        border-radius: 10px 10px 0 0;
    }
    .modal-exit {
        position: absolute;
        left: 15px;
        right: auto;
        top: 34px;
    }
    .modal-exit__svg_cross {
        display: none;
    }


    .form-group_with-background {
        width: auto;
        margin: 0 auto 15px 0;
        padding: 8px 15px 8px 8px;
        height: 35px;
        margin-bottom: 15px;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
    }

    .registr-alert {
        height: 100%;
        margin: 0;
        border-radius: 0;
        align-items: center;
        justify-content: center;
    }
    .registr-alert__img {
        margin-bottom: 44px;
    }
    .button__enter_location {
        height: 55px;
        margin-top: 40px;
    }    
    .select__country {
        display: block;
    }
    .custom-select {
        display: none;
    }
    
    .modal-news {
        height: 100%;
        width: 100%;
        margin: 0;
        border-radius: 30px;
    }
    .modal-news__content {
        width: 100%;
        height: 100%;
        border-radius: 30px;
    }
    .modal-news__carousel {
        width: 100%;
        height: 100%;
        border-radius: 30px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: auto;
        scrollbar-width: none;
    }
    .modal-news-card {
        width: 100%;
        background-color: #F8FFDF;
        border-radius: 20px;
        padding: 25px 20px;
        margin: 0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        scroll-snap-align: start;
    }
    .wide-track {
        top: 53px;
    }
    .modal-news > .modal-exit {
        right: 15px;
        left: auto;
    }
    .modal-news > .modal-exit > .modal-exit__svg_cross {
        display: block;
        width: 20px;
        height: 20px;
    }
    .modal-news > .modal-exit_cross > .modal-exit__svg_cross > path {
        stroke: black;
    }
    .modal-news-card__img {
        width: 250px;
        height: 250px;
    }
    .modal-news-card__header {
        font-size: 32px;
    }
    .modal-news-card__text {
        font-size: 14px;
        overflow: hidden;
    }
    .modal-news-card__bottom {
        padding-bottom: 25px;
        height: 50%;
        flex-shrink: 0;
    }
    .modal-news > .modal-exit_cross {
        top: 70px;
    }


    /* Сторис */

    .modal-stories {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 30px;
    }
    .modal-stories__content {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: auto;
        scrollbar-width: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 500px;
    }
    .modal-story {
        display: flex;
        flex-shrink: 0;
        width: 100%;
        height: 74vh;   
        border-radius: 30px;
        position: relative;
        scroll-snap-align: start;
        scroll-margin-top: 50px;

    }
    .modal-story > .modal-exit  {
        display: flex;
        top: 21px;
        left: 15px;
    }
    .modal-story > .modal-exit > .modal-exit__svg_cross {
        display: flex;
        width: 20px;
        height: 20px;
    }
    .download-btn {
        width: 25px;
        height: 25px;
        left: auto;
        right: 15px;
        top: 18px;
    }
    .item-link {
        bottom: 70px;
        width: 92%;
        height: 80px;
        border-radius: 10px;
        padding: 6px 6px 10px;
    }
    .item-link__left {
        width: 80px;
        height: 70px;
    }
    .item-link__right {
        margin-left: 9px;
    }

    .item-link__header {
        font-weight: 400;
        line-height: 100%;
    }
    .item-link__price {
        font-weight: 700;
        font-size: 14px;
    }
    .custom-controls {
        width: 90%;
        bottom: 25px;
    }
    .play-btn__svg {
        width: 16px;
        height: 18px;
    }
    .current-time, .duration {
        font-size: 12px;
    }
    .progress-container {
        width: 200px;
    }
    .mute-btn__svg {
        width: 20px;
        height: 16px;
    }

}











