/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    background: linear-gradient(180deg, #F6F7F9 0%, #F6F7F9 100%);
}

.header_deti {
    background-color: #F6F7F9;
    background-image: url(/img/giraffes.png);
    background-position: center -150px;
    background-repeat: no-repeat;
}

.header_transparent {
    position: absolute;
    background: transparent;
    left: 0;
    right: 0;
}

/* .header_transparent .header-top:after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #FFFFFF;
} */

.header.sticky {
    position: fixed;
    box-shadow: 0 4px 20px rgba(51, 78, 103, 0.21);
    transition: top .2s ease;
}

.header-top {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header__logo {
    margin-right: auto;
    max-width: 250px;
}

.logo img {
    width: auto;
    height: 45px;
    display: block
}

.header__btn {
    margin: 0 0 0 9px;
}

.header__burger {
    order: 1;
}

.header__burger:before {
    content: '';
    width: 14px;
    height: 10px;
    position: relative;
    z-index: 2;
    background: url("/img/icon-burger-m.svg") center/cover no-repeat;
}

.header__burger:after {
    content: '';
    display: block;
    width: 33px;
    height: 33px;
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    background: linear-gradient(180deg, #5D883D 0%, #ACD19E 100%);
    border-radius: 50%;
}

.header__contact {
    white-space: nowrap;
}

.header__contact:before {
    content: '';
    width: 13px;
    height: 23px;
    background: url("/img/icon-contact-m.svg") center/cover no-repeat;
}
    

@media (max-width: 1024px) {
    a.header__contact,
    button.header__burger {
        background: #fff;
        border: 1px solid #B3C1CB;
    }

    button.header__burger:after {
        border: 0;
        background: transparent;
    }
}

.header__address-link:before {
    content: '';
    width: 19px;
    height: 24px;
    background: url("/img/icon-address.svg") center/cover no-repeat;
}

.header__search-open:before,
.header__search-submit:before{
    content: '';
    width: 19px;
    height: 19px;
    background: url("/img/icon-search.svg") center/cover no-repeat;
}

.header__btn-login:before{
    content: '';
    width: 26px;
    height: 26px;
    background: url("/img/icon-signin.svg") center/cover no-repeat;
}

.header-menu {
    display: none;
}

.header__address,
.header__search {
    position: relative;
    width: 55px;
    transition: width .3s ease;
}

.header__address-box {
    position: absolute;
    top: -10px;
    left: -61px;
    z-index: 2;
    opacity: 0;
    width: calc(100vw - 20px);
    min-width: 300px;
    background-color: #fff;
    box-shadow: none;
    border-radius: 25px;
    padding: 70px 65px 25px 35px;
    transition: all .3s ease;
    visibility: hidden;
}

.header__address:hover .header__address-box {
    opacity: 1;
    box-shadow: 0px 4px 51px rgba(0, 0, 0, 0.1);
    visibility: visible;
}

.header__address-link,
.header__search-open {
    z-index: 3;
    float: right;
}

.header__address-text {
    font-size: 15px;
    line-height: 1rem;
}

.header__address-metro {
    margin: 5px 0;
    color: #8798A5;
    font-size: 13px;
    line-height: 1rem;
}

.header__address-metro:last-of-type {
    margin-bottom: 0;
}

.header__address-metro:before {
    content: 'М';
    display: inline-block;
    vertical-align: baseline;
    width: 18px;
    height: 18px;
    padding-top: 2px;
    margin-right: 3px;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color: #FFFFFF;
    background: linear-gradient(180deg, #91B83F 0%, #B8D9AA 100%);
    border-radius: 40px;
}

.header__address-contacts {
    display: inline-block;
    vertical-align: baseline;
    padding: 0 0 15px;
    font-size: 15px;
    color: #91B83F;
    text-decoration: underline;
}

.header__search-form {
    position: absolute;
    right: -10px;
    top: -5px;
    z-index: 10;
    width: 0;
    opacity: 0;
    transform: translateX(50%);
    transition: width 0.2s ease, transform 0.3s ease, opacity 0.4s ease;
}

.price-search .header__search-form {
    position: static;
}

.header__search-input {
    border: 0;
    width: 0;
    outline: none;
    padding: 0;
    font-size: 15px;
    line-height: 150%;
    background: #FFFFFF;
    border-radius: 23px;
    transition: all 0.2s ease;
}

.header__search-input::placeholder {
    color: #8798A5;
}

.header__search-submit {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.header__search.active {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100%;
    flex-grow: 1;
}

.header__search.active .header__search-form,
.price-search .header__search-form {
    width: 100%;
    opacity: 1;
    transform: translateX(0);
}

.header__search.active .header__search-input,
.price-search .header__search-input {
    width: 100%;
    padding: 15px 64px 15px 22px;
    border: 1px solid #E6EDF3;
    border-radius: 27px;
}

.header__search.active .header__search-input:focus,
.price-search .header__search-input:focus {
    border: 1px solid #8798A5;
}

.header__search.active .header__search-submit,
.price-search .header__search-submit {
    width: 46px;
    opacity: 1;
}

.burger-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding-bottom: 115px;
    background: linear-gradient(180deg, #F6F7F9 0%, #F6F7F9 100%);
    overflow-y: auto;
}

.burger-menu__top {
    position: relative;
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #FFFFFF;
    align-items: center;
}

.burger-menu__close {
    margin: 0 0 0 auto;
}

.burger-menu__close:before {
    content: "";
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 2;
    background: url(/img/icon-close.svg) center/10px no-repeat;
}

.burger-menu__close:after {
    content: "";
    display: block;
    width: 33px;
    height: 33px;
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    background: linear-gradient(180deg,#5d883d 0%,#acd19e 100%);
    border-radius: 50%;
}

.burger-menu__content {
    margin-bottom: 20px;
    border-bottom: 1px solid #FFFFFF;
}

.burger-menu__aside {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 11px 24px;
}

.burger-menu__aside li {
    padding: 15px 0;
}

.burger-menu__aside li,
.burger-menu__aside li a {
    position: relative;
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #3b454d;
    transition: color 0.2s ease;
    cursor: pointer;
}

.burger-menu__aside li a:hover {
    color: #5D883D;
}

a.asid__item {
    padding: 15px 0 5px 0;
}

.burger-menu__aside-item a {
    position: relative;
    z-index: -1;
    display: inline-block;
    vertical-align: baseline;
}

details summary::-webkit-details-marker {
    display: none
  }

.burger-menu__summary:after {
    position: absolute;
    right: 0;
    top: 12px;
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #BCBCBC;
    border-right: 2px solid #BCBCBC;
    transform: rotate(135deg);
    transition: border-color 0.2s ease;
}    

.burger-menu__summary.active:after {
    border-color: #97C04D;
}


.asid__list {
    display: inline-flex;
    flex-direction: column;
    padding: 0 0 0 20px;
}

.burger-menu__main {
    display: none;
}

.social-box {
    display: flex;
    margin-bottom: 18px;
    padding: 0 18px;
}

.burger-menu__social_desktop {
    display: none;
}

.burger-menu__address {
    padding: 0 18px;
}

@media (min-width: 560px) {
    
    .header__address:hover {
        max-width: 290px;
        flex-grow: 1;
    }
    
    .header__address-box {
        left: auto;
        right: -50px;
        width: 100%;
        padding-top: 25px;
    }
    
    .header__address:hover .header__address-box {
        right: -10px;
    }
}

@media (min-width: 768px) {
    .header__search.active {
        width: auto;
        max-width: 300px;
        position: relative;
        bottom: 0;
        right: 5px;
    }
}

@media (min-width: 1024px) {
    /* .header_transparent .header-top:after {
        display: none;
    } */
    
    .header.sticky .header-menu {
        display: none;
    }
    
    .header.sticky .header-top {
        border: none;
    }
    
    .header-top {
        padding: 15px 0;
        border-bottom: 1px solid #FFFFFF;
    }
    
    .header__logo {
        margin-right: 20px;
        max-width: 100%;
    }
    
    .header__btn {
        margin-left: 0;
    }

    .header__burger {
        width: 110px;
        order: 0;
        margin-right: auto;
    }
    
    .header__burger:before {
        left: -5px;
    }
    
    .header__burger span {
        padding-left: 15px;
        font-size: 14px;
        font-weight: 300;
        line-height: 13px;
        color: #FFFFFF;
    }
    
    .header__contact {
        padding: 0 14px 0 18px;
        min-width: 216px;
    }
    
    .header__contact span {
        padding-left: 9px;
        font-size: 14px;
        line-height: 13px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #FFFFFF;
    }
    
    .header__burger:before {
        background: url("/img/icon-burger.svg") center/cover no-repeat;
    }
    
    .header__contact:before {
        background: url("/img/icon-contact.svg") center/cover no-repeat;
    }
    
    a.header__btn-login {
        display: flex;
        margin-left: 12px;
    }
    
    .header-menu {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 5px 0;
    }
    
    .header-menu__item {
        display: block;
        padding: 15px;
        font-size: 13px;
        line-height: 14px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #3B454D;
        border-radius: 30px;
        background: transparent;
        transition: all .2s ease;
    }
    
    .header-menu__item:hover {
        color: #8798A5;
        background-color: #ECEFF1;
    }
    
    .header__address,
    .header__search {
        width: 60px;
    }
    
    .header__address-box {
        padding: 25px 40px 25px 25px;
    }
    
    .burger-menu {
        background: #FFFFFF;
        padding-bottom: 57px;
    }
    
    .burger-menu__top {
        padding: 15px 0 15px 0;
        border-color: #dce1e5;
    }
    
    .burger-menu__social_mobile {
        display: none;
    }
    
    .burger-menu__social_desktop {
        display: flex;
        margin: 0 auto 15px;
        align-items: center;
    }
    
    .burger-menu .header__search {
        max-width: 300px;
        flex-grow: 1;
        margin-left: auto;
    }
    
    .burger-menu .header__search-form {
        width: 100%;
        opacity: 1;
        transform: translateX(0);
    }
    
    
    .burger-menu .header__search-input {
        width: 100%;
        padding: 15px 64px 15px 15px;
        border: 1px solid #E6EDF3;
    }
    
    .burger-menu .header__search-submit {
        width: 46px;
        opacity: 1;
    }
    
    .burger-menu__close {
        margin-right: -70px;
        margin-left: 24px;
    }
    
    .burger-menu__address_desktop {
        margin-top: 5px;
        margin: 5px auto 0;
    }  
    
    .header__address.burger-menu__address_desktop .header__address-box {
        opacity: 1;
        visibility: visible;
    }
    
    .burger-menu__content {
        display: flex;
        margin-bottom: 0;
        padding: 50px 0 40px;
        border-color: #dce1e5;
    }
    
    .burger-menu__aside {
        flex-basis: 30%;
        flex-shrink: 0;
        margin-top: 80px;
        padding: 0;
    }
    
    .burger-menu__summary:after {
        display: none;
    }

    .burger-menu__summary.active {
        color: #97C04D;
    }

    .burger-menu__summary {
        width: 100%;
    }

    .burger-menu__summary:before {
        content: '';
        display: inline-block;
        vertical-align: middle;
        width: 0;
        height: 0;
        opacity: 0;
        background-color: #91B83F;
        transition: all .2s ease;
        border-radius: 50%;
        margin-left: -5px;
    }
    
    .burger-menu__summary.active:before {
        opacity: 1;
        width: 10px;
        height: 10px;
        margin-right: 15px;
    }
    
    .burger-menu__main {
        flex-grow: 1;
        display: none;
    }
    
    .burger-menu__main.active {
        display: block;
    }
    
    .burger-menu__title {
        margin-bottom: 40px;
    }
    
    .burger-menu__title:after {
        content: '';
        display: block;
        width: 62px;
        height: 6px;
        margin-top: 15px;
        background: url("/img/icon-dots.svg") center/cover no-repeat;
    }
    
    .burger-menu__links {
        columns: 3;
    }
    
    .burger-menu__link {
        display: inline-block;
        width: 100%;
        margin: 10px 0;
        padding-right: 10px;
        font-size: 14px;
        line-height: 16px;
    }
    
    .burger-menu__link:hover {
        color: #77B09D;
        text-decoration: underline;
    }
}

/* ANCHOR 1400 */
@media (min-width: 1400px) {
    
    .header__logo {
        margin-right: 60px;
        max-width: 100%;
    }
    
    .burger-menu__close {
        margin-right: -85px;
        margin-left: 35px;
    }

    .header-menu {
        margin: 0 -25px;
    }
    
    .header-menu__item {
        padding: 16px 26px;
        font-size: 15px;
    }
    
    .header__search.active {
        max-width: 350px;
    }
}