@media (min-width: 768px){
    .visual .visual__text {
        font-size: 1.25rem;
    }

}

@media (max-width: 768px){
    .swiper-css-mode>.swiper-wrapper>.swiper-slide {
        height: 90vh;
    }
    .main-page .screen-filter.screen-filter--catalog {
        margin: -9.875rem 0 2.8125rem;
    }
    .popup-quiz {
        margin-top: 100px;
    }
}

.h2 {
    font-weight: 500 !important;
}

@font-face {
    font-family: "OpenSans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/OpenSans-Regular.ttf") format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    src: url('/assets/fonts/OpenSans-Medium.ttf') format('truetype');
    font-display: swap;
    font-weight: 500;
    font-style: normal;
}

h1 {
    color: #4a4a4d;
    line-height: 160%;
    font-family: OpenSans,system-ui,sans-serif;
    font-size: 1rem;
    font-style: normal;
}

.small-text {
    font-size: 12px;
    margin-top: 20px;
}
.welvideo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    background: #EBEBEE !important;
    padding: 20px 60px 20px 20px !important;
    border-radius: 4px;
}
.welcome-right {
    padding-left: 80px;
    gap: 25px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: flex-start;
}
.expert-info {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

.expert-info .expert-small {
    align-items: flex-start;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
}

.popup .popup__container {
    display: flex !important;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.popup .popup__wrapper {
    max-width: 90%;
    width: 100%;
    position: relative;
}

.popup .popup__wrapper:has(.popup-filter-location) {
    width: 100%;
    height: 100% !important;
}

.layout-balloon {
    box-shadow: none !important;
}


.visual.screen {
        margin-top: 0;
}

.link.menu__content-item .t1 {
    padding-right: 40px;
}

.react-select .react-select__control.react-input--error {
    border: 1px solid #c80018;
}

@media (min-width: 1280px){
    .visual.screen {
        margin-top: 0;
    }
}

@media (min-width: 768px){
    .menu .menu__content-submenu {
        left: 22.3125rem !important;
    }
    .enheader .menu .menu__content-submenu {
        left: 18.3125rem !important;
    }
}


@media screen and (max-width: 800px) {
    .welvideo {
        flex-direction: column;
        flex-wrap: nowrap;
        background: #EBEBEE !important;
        padding: 20px 20px 20px 20px !important;
        gap: 25px;
    }
    .welvideo video {
        width: 100%;
        max-width: 480px;
    }
    .welcome-right {
        padding-left: 0px;
        gap: 25px;
        align-content: flex-end;
        align-items: flex-end;
        justify-content: flex-start;
    }
}

/* @media (min-width: 1280px){
        .header .header__logo {
            height: 4.1875rem !important;
            width: 23.0625rem !important;
        }

        .footer .footer__logo-socials {
            width: 22.0625rem !important;
        }
        .footer__socials {
            width: 7.0625rem !important;
        }
        .footer .footer__menu {
            width: calc(66.8% - 22.0625rem) !important;
        }
    }  */

    /* .header .header__logo {
    width: 9.75rem !important;
    } */
    /* .footer .footer__logo {
        width: 9.375rem !important;
    } */
    /* .header .header__logo {
        width: 6rem !important;
    }

    @media screen and (max-width: 490px){
        .header .header__logo {
            width: 4rem !important;
        }
    }
    

    .footer .footer__logo {
        width: 9.375rem !important;
        margin-right: 10px;
    }
     */
    @media (min-width: 1280px){
        .footer .footer__logo-socials {
            display: block;
            width: 10rem;
        }
        .footer .footer__menu {
            border-right: 1px solid hsla(0,0%,100%,.1);
            flex-grow: 1;
            margin-bottom: 2rem;
            padding-right: 3.5rem;
            width: calc(66.8% - 10rem);
        }
    
    }

    .map-control .map-control__select {
        display: none !important;
    }

    .seo-text .seo-text__text {
        column-count: 1 !important;
        column-gap: 0 !important;
    }
    .react-checkbox .react-checkbox__checkmark {                
        min-width: 18px !important;          
    }
    .react-checkbox span[title=policy],
    .react-checkbox span[title=news] {
        font-size: .675rem !important;
    }
    #policyError {                
        top: 100%;
        left: 0;
        color: #c80018;
        font-size: .675rem !important;
    }
    .form.form--horizontal.dmaket .form__fields {
        gap: 0.75rem;
        grid-auto-flow: row;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        margin-bottom: 1.125rem;
    }


    .react-select .react-select__single-value {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        /* white-space: break-spaces !important; */
    }

    .dmaket .css-b62m3t-container {
        height: 56.9px;
    }

    .dmaket .react-select .react-select__value-container {
        align-items: flex-start !important;
        max-height: 22px !important;
    }

    .form.form--horizontal.dmaket .form__fields button.form__btn {
        margin-left: calc(100% + 0.75rem) !important;
    }

    .phone-icon {
        fill: var(--buttonHeaderFill,#fff) !important;
    }

    @media (max-width: 1279px){
        .popup-quiz {
            max-width: 90vw !important;
            width: 90vw !important;
        }

        .detail__content .visual__background .picture,.detail__content .visual__background .picture img {
            height: 76vw !important;
            object-position: top !important;
        }

        .visual__background .picture, .visual__background .picture img {
            display: block;
            object-fit: cover;
            object-position: bottom;
            width: 100%;
        }

    }

    @media (max-width: 980px){
        .form.form--horizontal.dmaket .form__fields {
            grid-template-columns: 1fr 1fr;
        }

    }

    @media (max-width: 640px){
        .form.form--horizontal.dmaket .form__fields {
            grid-template-columns: 1fr;
        }
        .form.form--horizontal.dmaket .form__fields button.form__btn {
            margin-left: 0 !important;
        }
    }

    .menu-inner {
        margin-top: 0 !important;
    }

    @media (min-width: 1280px){
        .consultation .consultation__form-root {
            margin-top: 2.625rem !important;
        }

        .popup-quiz {
            padding: 3.125rem 5rem;
            max-width: 60vw !important;
            width: 60vw !important;
            max-height: 69rem !important;
            aspect-ratio: 1.88/1.25 !important;
        }
    }

    @media screen and (max-width: 490px) {
        .popup .popup__container {
            margin: 50px auto !important;
        }
    .welvideo iframe {
        min-width: 100px !important;
    }
    .header .header__logo {
        width: 8.75rem !important;
    }
    .header .header__cities {
        margin-left: 0.625rem;
        max-width: 60px;
    }
    .header-cities {
        cursor: pointer;
        user-select: none;
        font-size: 0.7rem;                
    }
    .city-title {
        max-width: 70%;
        overflow: hidden;
    }
    .header .header__button-header {
        margin-left: 0.45rem;
    }
    .button-header {    
        height: 1.875rem !important;   
        width: 1.875rem !important;
    }
}

@media (max-width: 767px) {
    .header .header__button-header {
        background: url(/assets/img/phone-white.png) no-repeat center center;
        background-size: .9375rem;
    }
    .header.header--white-bg .header__button-header {
        background: url(/assets/img/phone.png) no-repeat center center;
        background-size: .9375rem;
    }
    .button-header .button-header__icon {                
        display: none !important;                
    }
}

.go-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer; /* при наведении меняем курсор */
    display: block; /* по умолчанию скрываем кнопку */
    font-size: 20px;
    z-index: 9;
    width: 364px;
}

.abs {
    position: absolute !important;
}

#telega .but-content img {
    width: 100%;
}

main {
    position: relative;
}

#telega_mob {
    display: none;
}

@media (max-width: 1023px) {
    #telega {
        display: none;
    }

    #telega_mob {
        display: block;
    }

    .go-top {
        width: 40px;
    }
}

.header__cities.langs {
    display: none;
}

.cookies__text {
    text-align: center;
}

.cookies .cookies__wrapper {
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .menu {
        height: calc(100vh - 3.875rem);
        overflow-y: scroll;
    }
}
.cookies.cookies--animation {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
@media (max-width: 1440px) {
    .footer .footer__logo {
        width: 5.375rem !important;
    }
}


.cookies__text > div {
    gap: 10px;
}

@media (max-width: 480px) {
    .cookies__text > div {
        flex-direction: column;
    }
}