@charset "UTF-8";

/* ==========================================================================
   Страница адресов магазинов
   Где используется: /about/shops/ и /howto/shops/
   Порядок блоков: карта, поиск, список магазинов, контакты.
   Блоки идут в разметке в старом порядке, поэтому порядок задаётся order.
   ========================================================================== */
.shops-page {
    display        : flex;
    flex-direction : column;
}
/* Служебные элементы старой вёрстки (сброс обтекания и переносы строк) */
.shops-page > .cl,
.shops-page > br {
    display : none;
}
.shops-page > .map2 {
    order : 1;
}
.shops-page > .news-list {
    order : 2;
}
.shops-page > .contacts_side {
    order : 3;
}

/* ==========================================================================
   Поиск по магазинам
   ========================================================================== */
.shops-page .news-list {
    float : none;
    width : 100%;
}
.shops-page .shops-toolbar {
    display         : flex;
    flex-wrap       : wrap;
    align-items     : center;
    justify-content : space-between;
    gap             : 12px 16px;
    margin-bottom   : 20px;
}
.shops-page .shops-toolbar .shops-search {
    flex : 1 1 320px;
}
/* Кнопка обратной связи рядом с поиском — только на десктопе */
.shops-page .shops-toolbar__feedback {
    display     : inline-flex;
    flex        : none;
    align-items : center;
    gap         : 10px;
    color       : #b60800;
    font-size   : 14px;
    line-height : 1.3;
    white-space : nowrap;
}
.shops-page .shops-toolbar__feedback:hover {
    color           : #d12239;
    text-decoration : none;
}
.shops-page .shops-toolbar__feedback svg {
    flex   : none;
    width  : 22px;
    height : 22px;
}
.shops-page .shops-search {
    position   : relative;
    width      : 100%;
    max-width  : 480px;
    margin-bottom : 0;
}
.shops-page .shops-search__input {
    width         : 100%;
    height        : 44px;
    box-sizing    : border-box;
    padding       : 0 46px 0 16px;
    border        : 1px solid #bcbec0;
    border-radius : 4px;
    background    : #ffffff;
    box-shadow    : none;
    color         : #32363a;
    font-size     : 15px;
    line-height   : 42px;
}
.shops-page .shops-search__input:focus {
    border-color : #d12239;
    outline      : none;
}
.shops-page .shops-search .clearable__clear {
    position    : absolute;
    top         : 0;
    right       : 0;
    margin      : 0;
    width       : 44px;
    height      : 44px;
    padding     : 0;
    border      : none;
    border-radius : 0 4px 4px 0;
    font-size   : 26px;
    line-height : 42px;
    text-align  : center;
    cursor      : pointer;
}
/* Крестик очистки нужен только когда в поле что-то введено */
.shops-page .shops-search__input:placeholder-shown + .clearable__clear {
    display : none;
}

/* ==========================================================================
   Список магазинов
   ========================================================================== */
.shops-page .shops-list {
    display               : grid;
    grid-template-columns : repeat(2, minmax(0, 1fr));
    gap                   : 12px 16px;
}
.shops-page .shops-list .item-coord {
    margin        : 0;
    padding       : 14px 16px;
    border        : 1px solid #e3e5e8;
    border-radius : 6px;
    background    : #ffffff;
    color         : #32363a;
    font-size     : 14px;
    line-height   : 1.5;
    transition    : border-color 150ms, box-shadow 150ms;
}
.shops-page .shops-list .item-coord:hover {
    border-color : #d12239;
    box-shadow   : 0 2px 10px rgba(0, 0, 0, 0.06);
}
.shops-page .shops-list .item-coord a {
    color : #32363a;
}
.shops-page .shops-list .item-coord:hover a {
    color : #b60800;
}
.shops-page .item-coord__metro {
    display     : block;
    font-weight : 600;
}
.shops-page .item-coord img.preview_picture {
    float         : left;
    width         : 16px;
    height        : 16px;
    margin        : 4px 6px 0 0;
}
.shops-page .item-coord__address {
    display : block;
}
.shops-page .item-coord__schedule {
    display   : block;
    color     : #898989;
    font-size : 12px;
}

@media (max-width : 840px) {
    .shops-page .shops-list {
        grid-template-columns : 1fr;
    }
}

/* ==========================================================================
   Контакты: горизонтальная плашка под списком
   ========================================================================== */
.shops-page .contacts_side {
    display        : flex;
    flex-direction : column;
    gap            : 6px;
    float          : none;
    width          : 100%;
    margin-top     : 24px;
    padding        : 14px 20px;
    box-sizing     : border-box;
    border         : 1px solid #bcbec0;
    border-radius  : 4px;
}
.shops-page .contacts_side__main {
    display     : flex;
    flex-wrap   : wrap;
    align-items : center;
    gap         : 8px 20px;
}
.shops-page .contacts_side__phones {
    display     : flex;
    flex-wrap   : wrap;
    align-items : baseline;
    gap         : 4px 12px;
    font-size   : 16px;
    font-weight : 600;
    line-height : 1.3;
}
.shops-page .contacts_side__phones a {
    color           : #32363a;
    text-decoration : none;
    white-space     : nowrap;
}
.shops-page .contacts_side__phones a:hover {
    color : #b60800;
}
.shops-page .contacts_side__or {
    color       : #898989;
    font-size   : 14px;
    font-weight : 400;
}
.shops-page .contacts_side__note {
    margin      : 0;
    color       : #898989;
    font-size   : 13px;
    line-height : 1.4;
}
.shops-page .contacts_side__feedback {
    display     : inline-flex;
    align-items : center;
    gap         : 10px;
    margin-left : auto;
    color       : #b60800;
    font-size   : 14px;
    line-height : 1.3;
    white-space : nowrap;
}
.shops-page .contacts_side__feedback svg {
    flex   : none;
    width  : 30px;
    height : 30px;
}

@media (max-width : 840px) {
    .shops-page .contacts_side__feedback {
        margin-left : 0;
    }
    /* На мобильных кнопка обратной связи остаётся только в плашке контактов */
    .shops-page .shops-toolbar__feedback {
        display : none;
    }
}
