/* Стили для всплывающих подсказок */
.search-container {
    position: relative;
    display: inline-block;
    width: 150px;
}

.header__phone:before {
    content: "";
    display: block;
    width: 32px;
    height: 24px;
    background: url(data:image/svg+xml,%0A%3Csvg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='M17 12.936v2.4a1.6 1.6 0 01-1.744 1.6 15.832 15.832 0 01-6.904-2.456 15.6 15.6 0 01-4.8-4.8 15.832 15.832 0 01-2.456-6.936A1.6 1.6 0 012.688 1h2.4a1.6 1.6 0 011.6 1.376c.101.768.289 1.522.56 2.248a1.6 1.6 0 01-.36 1.688L5.872 7.328a12.8 12.8 0 004.8 4.8l1.016-1.016a1.6 1.6 0 011.688-.36c.726.27 1.48.459 2.248.56A1.6 1.6 0 0117 12.936z' stroke='%232B2A29' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E) center no-repeat;
    position: absolute;
    top: -12px;
    left: 10px;
}

.header-search {
    width: 150px;
}

.header__menu {
    margin-left: auto;
    margin-right: 60px;
}

.header__menu > ul > li > a {
    padding: 0 7px;
}

.search-input {
    /* Сохраняем стили Twenty Seventeen */
}

.search-suggestions {
    position: absolute;
    font-family: 'Roboto';
    top: 100%;
    left: auto;
    right: 0;
    background: #fff;
    border: 1px solid #E4E4E4;
    border-radius: 24px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-suggestion {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.search-form {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 150px;
}

.search-input {
    float: right;
    height: 35px;
    font-family: 'Roboto';
    border: 1px solid #E4E4E4;
    opacity: .8;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 24px;
    margin-right: 15px;
    margin-left: 15px;
    width: 150px;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: #f7f7f7;
}

.search-suggestion .suggestion-title {
    font-weight: bold;
    color: #333;
}

.search-suggestion .suggestion-type {
    color: #767676;
    font-size: 12px;
}

.search-form button svg {
    width: 20px;
    height: 18px;
    vertical-align: baseline;
    right: 10px;
}

.screen-reader-text {
    display:none;
}

.mobile-menu__phone {
    margin-top: 0px;
}

.mobile-menu__phone a {
    color: inherit;
    font-weight: 700;
    font-size: 18px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

.mobile-menu__phone span {
    display: block;
    color: #aaaaa9;
    font-size: 14px;
}

.header__log-in {
    margin-left: 15px !important;
}

@media(max-width:990px){
    .header-search {
        display: none;
    }

    .header-search-mobile {
        display: block;
    }

    .search-input {
        float: right;
        height: 35px;
        font-family: 'Roboto';
        border: 1px solid #E4E4E4;
        width: 100%;
        margin-top: 20px;
        opacity: .8;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 24px;
    }
    .search-suggestions {
        position: absolute;
        font-family: 'Roboto';
        top: 100%;
        left: auto;
        right: 0;
        background: #fff;
        border: 1px solid #E4E4E4;
        border-radius: 24px;
        max-height: 300px;
        overflow-y: auto;
        width: 100%;
        z-index: 1000;
        display: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    }

    .mobile-menu__phone-desktop {
        display: none;
    }
    .header-search {
        width: 100%;
    }
    .search-container {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .mobile-menu__phone {
        margin-top: 30px;
    }

    .header__menu-button {
        margin-right: 20px;
    }
}