/* ===== Поиск по сайту: кнопка в шапке и окно с подсказками (макет Figma «Поиск», дорисовано: подсказки, пусто,
   телефон). Разметка — header.php ([data-ss]), логика — js/site_search.js ===== */

/* кнопка-лупа в шапке */
.nav-search-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 22px;
    padding: 0;
    background-color: #F3FEEC;
    border-radius: 10px;
    color: #006738;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.nav-search-btn:hover{
    background-color: #006738;
    color: #fff;
}

/* на телефоне — квадрат во всю высоту шапки рядом с бургером, как он */
.nav-search-btn--mobile{
    width: 60px;
    height: 100%;
    margin: 0 0 0 auto;
    background: none;
    border-left: 1px solid #E4E5EB;
    border-radius: 0;
}

.nav-search-btn--mobile:hover{
    background: none;
    color: #006738;
}

/* пока окно открыто — страница не прокручивается */
html.search-open,
html.search-open body{
    overflow: hidden;
}

/* телефон: overflow:hidden у body мобильный Safari не соблюдает — страница под окном прокручивалась. Скрипт окна
   запоминает позицию, закрепляет body (top = −позиция) и возвращает на место при закрытии — без прыжка наверх */
html.ss-lock body{
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

/* окно */
.ss{
    position: fixed;
    inset: 0;
    z-index: 1000;
    font-family: "Montserrat", sans-serif;
}

.ss[hidden]{
    display: none;
}

.ss_backdrop{
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .2s ease;
}

.ss_panel{
    position: relative;
    max-height: 100%;
    overflow-x: hidden;   /* ряд чипов на телефоне выходит за поля контейнера — без этого появлялась прокрутка вбок */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 40px 0 36px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(107, 111, 130, .13);
    border-radius: 0 0 24px 24px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .3, 1);
}

.ss--open .ss_backdrop{ opacity: 1; }
.ss--open .ss_panel{ opacity: 1; transform: none; }

.ss_head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ss_title{
    color: #006738;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.ss_close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    transition: background-color .2s ease;
}

.ss_close:hover{
    background-color: #EFF0F5;
}

/* поле: серая плашка; на телефоне рядом с ней «Отмена» */
.ss_form{
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss_field{
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 18px 0 30px;
    background-color: #EFF0F5;
    border-radius: 20px;
    transition: box-shadow .2s ease;
}

.ss_field:focus-within{
    box-shadow: 0 0 0 2px #006738 inset;
}

.ss_form_icon{
    flex-shrink: 0;
    color: #A7ABBE;
}

.ss_input{
    flex: 1;
    min-width: 0;
    height: 100%;
    margin-left: 16px;
    padding: 0;
    background: none;
    border: 0;
    outline: none;
    color: #000;
    font-family: inherit;
    font-size: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.ss_input::placeholder{
    color: #A7ABBE;
}

/* у type=search браузерный крестик — у нас свой */
.ss_input::-webkit-search-cancel-button,
.ss_input::-webkit-search-decoration{
    -webkit-appearance: none;
}

.ss_clear{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: #DCDFEE;
    border-radius: 50%;
    color: #5B6075;
    cursor: pointer;
}

.ss_clear[hidden]{
    display: none;
}

.ss_cancel{
    display: none;
}

/* чипы популярных запросов */
.ss_chips{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.ss_chips:empty{
    display: none;
}

.ss_chip{
    height: 30px;
    padding: 0 14px;
    background-color: #006738;
    border-radius: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 30px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease;
}

.ss_chip:hover{
    background-color: #004d2a;
}

/* подсказки: группы карточками по две в ряд */
.ss_results{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    align-items: start;
    gap: 18px 26px;
    margin-top: 28px;
    transition: opacity .15s ease;
}

.ss_results:empty{
    display: none;
}

.ss_results--loading{
    opacity: .55;
}

.ss_group_title{
    margin: 0 0 6px 12px;
    color: #868BA3;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ss_item{
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 14px;
    color: #000;
    transition: background-color .15s ease;
}

.ss_item:hover,
.ss_item--active{
    background-color: #F3FEEC;
}

.ss_item--active{
    box-shadow: 0 0 0 1.5px #006738 inset;
}

.ss_item_img{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #EFF0F5;
}

.ss_item_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss_item_img--icon{
    color: #006738;
}

.ss_item_body{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* название — до двух строк (длинные названия акций в одну строку обрезались почти сразу) */
.ss_item_title{
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.3;
}

.ss_item_title mark{
    background: none;
    color: #006738;
    font-weight: 600;
}

.ss_item_sub{
    overflow: hidden;
    color: #868BA3;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss_all{
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    color: #006738;
    font-size: 15px;
    font-weight: 600;
}

.ss_all span{
    padding: 2px 8px;
    background-color: #F3FEEC;
    border-radius: 20px;
    font-size: 13px;
}

.ss_all::after{
    content: "";
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.ss_all:hover{
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ничего не нашли */
.ss_empty{
    grid-column: 1 / -1;
    padding: 8px 12px;
}

.ss_empty_title{
    margin-bottom: 6px;
    font-size: 20px;
}

.ss_empty_text{
    margin-bottom: 14px;
    color: #5B6075;
    font-size: 15px;
    line-height: 1.5;
}

.ss_empty_text a,
.ss_empty_link{
    color: #006738;
    font-weight: 600;
}

/* ---------- телефон: на весь экран, поле сверху, «Отмена» рядом ---------- */
@media (max-width: 768px){
    /* окно — всегда на весь экран и белое, и под клавиатурой тоже: высоту не меняем (клавиатура убиралась, а iOS
       сообщает новый размер только после анимации — секунду снизу была видна страница). Под клавиатуру — только запас
       внизу списка --ss-kb (её высота, ставит скрипт по visualViewport), чтобы последние строки докручивались */
    .ss_panel{
        height: 100%;
        -webkit-overflow-scrolling: touch;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 0 calc(24px + var(--ss-kb, 0px) + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        transform: none;
    }

    /* фон окна — сразу белый (затемнение и размытие страницы под окном на телефоне не видно, а при открытии и
       закрытии клавиатуры мелькало); если iOS сдвинул окно вниз (скрипт, translateY) — над ним тоже белое */
    .ss_backdrop{
        display: none;
    }

    .ss::before{
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 100vh;
        background-color: #fff;
    }

    .ss_head{
        display: none;
    }

    .ss_field{
        height: 48px;
        padding: 0 10px 0 14px;
        border-radius: 14px;
    }

    .ss_form_icon{
        width: 20px;
        height: 20px;
    }

    .ss_input{
        margin-left: 10px;
        font-size: 16px;   /* меньше 16 — iOS приближает страницу при фокусе */
    }

    .ss_clear{
        width: 28px;
        height: 28px;
    }

    .ss_cancel{
        display: block;
        flex-shrink: 0;
        height: 48px;
        padding: 0 4px 0 8px;
        background: none;
        color: #006738;
        font-family: inherit;
        font-size: 15px;
        cursor: pointer;
    }

    .ss_chips{
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;   /* докрутили ряд чипов до края — не тянуть за ним окно и страницу */
        margin-left: -10px;    /* поля .container на телефоне — 10px: ряд прокручивается от края экрана */
        margin-right: -10px;
        padding: 0 10px 2px;
        scrollbar-width: none;
    }

    .ss_chips::-webkit-scrollbar{
        display: none;
    }

    .ss_chip{
        flex-shrink: 0;
    }

    /* набирают — чипы не нужны, место под подсказки */
    .ss--typing .ss_chips{
        display: none;
    }

    .ss_results{
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 18px;
    }

    .ss_item{
        padding: 7px 8px;
    }

    .ss_item_title{
        font-size: 15px;
    }

    .ss_group_title{
        margin-left: 8px;
    }

    .ss_all{
        margin-left: 8px;
    }
}

/* ---------- страница /search/?q=… (классы sp_*): фон и фильтры как у афиши, вкладки по типам, «Лучший результат»
   большой карточкой, дальше карточки сеткой; на телефоне карточки — строками с миниатюрой ---------- */
.sp{
    padding: 150px 0 100px;
    background-color: #EFF0F5;
    font-family: "Montserrat", sans-serif;
}

.sp_head{
    margin: 26px 0 28px;
}

.sp_title{
    margin: 0 0 24px;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
}

/* поле — как в окне поиска, только белое на сером фоне */
.sp_form .ss_field{
    max-width: 880px;
    padding-right: 12px;
    background-color: #fff;
}

/* крестик — тот же .ss_clear, что в окне поиска; отступ до кнопки «Найти» */
.sp_clear{
    margin-right: 10px;
}

.sp_submit{
    flex-shrink: 0;
    height: 46px;
    padding: 0 26px;
    background-color: #006738;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease;
}

.sp_submit:hover{
    background-color: #004d2a;
}

.sp_count{
    margin: 16px 0 0;
    color: #5B6075;
    font-size: 16px;
}

/* вкладки — как фильтры афиши: белые, выбранная зелёная */
.sp_tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.sp_tab{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 5px 18px;
    background-color: #fff;
    border-radius: 30px;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.sp_tab span{
    color: #868BA3;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}

.sp_tab:hover{
    color: #006738;
}

.sp_tab--active,
.sp_tab--active:hover{
    background-color: #006738;
    color: #fff;
}

.sp_tab--active span{
    color: rgba(255, 255, 255, .7);
}

.sp_group{
    margin-bottom: 56px;
}

.sp_group_title{
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.sp_grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 32px 20px;
}

/* скрытые «Показать ещё» карточки — обычные ячейки той же сетки; [hidden] нужно задать явно: display: contents
   из этого правила перебивает встроенное в браузер [hidden] { display: none }, и карточки были видны сразу */
.sp_more_items{
    display: contents;
}

.sp_more_items[hidden]{
    display: none;
}

/* карточка */
.sp_card{
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    color: #000;
}

.sp_card_img{
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;          /* скругление не «отклеивается» при увеличении картинки (Safari) */
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background-color: #DCDFEE;
}

.sp_card_img img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sp_card:hover .sp_card_img img{
    transform: scale(1.04);
}

/* заглушка: картинки нет или не загрузилась (onerror снимает <img> и ставит класс) — горы и солнце на сером */
.sp_card_img--empty::before{
    content: "";
    position: absolute;
    inset: 0;
    background: center / 64px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23A3A9C2' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 38 17 20l8 11 6-8 13 15z'/%3E%3Ccircle cx='33' cy='13' r='4'/%3E%3C/svg%3E");
}

.sp_card_chip{
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 7px 12px;
    background-color: #fff;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp_card_body{
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sp_card_title{
    font-size: 18px;
    line-height: 1.3;
    transition: color .2s ease;
}

.sp_card_title mark{
    background: none;
    color: inherit;
    font-weight: 600;
}

.sp_card:hover .sp_card_title{
    color: #006738;
}

.sp_card_sub{
    display: none;               /* на компьютере подпись — плашкой на фото */
    color: #868BA3;
    font-size: 13px;
    line-height: 1.3;
}

.sp_card_text{
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #5B6075;
    font-size: 14px;
    line-height: 1.45;
}

/* лучший результат: фото и текст рядом, белая подложка */
.sp_best{
    margin-bottom: 56px;
}

.sp_card--best{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    background-color: #fff;
    border-radius: 24px;
    transition: box-shadow .25s ease;
}

.sp_card--best:hover{
    box-shadow: 0 12px 32px rgba(107, 111, 130, .16);
}

.sp_card--best .sp_card_img{
    min-height: 340px;
    aspect-ratio: auto;
    border-radius: 0;
}

.sp_card--best .sp_card_body{
    justify-content: center;
    gap: 14px;
    padding: 36px 44px;
}

.sp_card_kicker{
    color: #006738;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp_card--best .sp_card_title{
    font-size: 30px;
    line-height: 1.2;
}

.sp_card--best .sp_card_sub{
    display: block;
    font-size: 14px;
}

.sp_card--best .sp_card_text{
    -webkit-line-clamp: 4;
    font-size: 16px;
}

.sp_card_go{
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    height: 46px;
    margin-top: 8px;
    padding: 0 24px;
    background-color: #006738;
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background-color .2s ease;
}

.sp_card_go::after{
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.sp_card--best:hover .sp_card_go{
    background-color: #004d2a;
}

/* плитка ключевой страницы (картинки нет): значок, название, адрес, стрелка */
.sp_card--plain{
    flex-direction: row;
    align-items: center;
    align-self: start;
    gap: 16px;
    padding: 18px 20px;
    background-color: #fff;
    border-radius: 20px;
    transition: box-shadow .25s ease;
}

.sp_card--plain:hover{
    box-shadow: 0 12px 32px rgba(107, 111, 130, .16);
}

.sp_card_icon{
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #F3FEEC;
    border-radius: 14px;
    color: #006738;
}

.sp_card--plain .sp_card_body{
    flex: 1;
    gap: 4px;
}

.sp_card--plain .sp_card_sub{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp_card_arrow{
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-top: 2px solid #A3A9C2;
    border-right: 2px solid #A3A9C2;
    transform: rotate(45deg);
    transition: border-color .2s ease, transform .2s ease;
}

.sp_card--plain:hover .sp_card_arrow{
    border-color: #006738;
    transform: translateX(3px) rotate(45deg);
}

/* лучший результат — страница: плитка во всю ширину, крупнее */
.sp_card--best.sp_card--plain{
    display: flex;
    gap: 24px;
    padding: 32px 40px;
}

.sp_card--best.sp_card--plain .sp_card_icon{
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.sp_card--best.sp_card--plain .sp_card_icon svg{
    width: 34px;
    height: 34px;
}

.sp_card--best.sp_card--plain .sp_card_body{
    padding: 0;
}

/* у лучшего с фото подпись уже под заголовком — плашка на фото лишняя */
.sp_card--best .sp_card_chip{
    display: none;
}

.sp_more{
    display: block;
    height: 46px;
    margin: 28px auto 0;
    padding: 0 28px;
    background: none;
    border: 1.5px solid #006738;
    border-radius: 30px;
    color: #006738;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.sp_more:hover{
    background-color: #006738;
    color: #fff;
}

/* ничего не нашли / пустой запрос */
.sp_empty{
    max-width: 880px;
    padding: 28px 32px 32px;
    background-color: #fff;
    border-radius: 20px;
}

.sp_empty_title{
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
}

.sp_empty_text{
    margin: 0 0 22px;
    color: #5B6075;
    font-size: 16px;
    line-height: 1.5;
}

.sp_empty_text a{
    color: #006738;
    font-weight: 600;
    white-space: nowrap;
}

.sp_empty_label{
    margin: 0 0 12px;
    color: #868BA3;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sp_chips{
    margin: 0;
}

@media (max-width: 1024px){
    .sp_card--best .sp_card_body{
        padding: 28px 30px;
    }

    .sp_card--best .sp_card_title{
        font-size: 24px;
    }
}

@media (max-width: 768px){
    .sp{
        padding: 90px 0 70px;
    }

    .sp_head{
        margin: 0 0 20px;
    }

    .sp_title{
        margin-bottom: 16px;
        font-size: 28px;
    }

    .sp_submit{
        height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    .sp_count{
        margin-top: 12px;
        font-size: 14px;
    }

    /* вкладки — одной строкой с прокруткой от края до края экрана (поля .container на телефоне — 10px) */
    .sp_tabs{
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -10px 22px;
        padding: 0 10px 2px;
        scrollbar-width: none;
    }

    .sp_tabs::-webkit-scrollbar{
        display: none;
    }

    .sp_tab{
        flex-shrink: 0;
        height: 36px;
        padding: 4px 14px;
        font-size: 14px;
    }

    .sp_tab span{
        font-size: 13px;
    }

    .sp_best,
    .sp_group{
        margin-bottom: 36px;
    }

    .sp_group_title{
        margin-bottom: 12px;
        font-size: 22px;
    }

    .sp_card--best{
        grid-template-columns: minmax(0, 1fr);
        border-radius: 20px;
    }

    .sp_card--best .sp_card_img{
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .sp_card--best .sp_card_body{
        gap: 10px;
        padding: 18px 18px 22px;
    }

    .sp_card--best .sp_card_title{
        font-size: 22px;
    }

    .sp_card--best .sp_card_text{
        -webkit-line-clamp: 3;
        font-size: 14px;
    }

    .sp_card_go{
        height: 42px;
        margin-top: 4px;
        font-size: 13px;
    }

    /* обычные карточки — строками: миниатюра слева, подпись вместо плашки */
    .sp_grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .sp_card:not(.sp_card--best){
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        padding: 8px;
        background-color: #fff;
        border-radius: 16px;
    }

    .sp_card:not(.sp_card--best) .sp_card_img{
        border-radius: 12px;
    }

    .sp_card_img--empty::before{
        background-size: 36px;
    }

    .sp_card--best .sp_card_img--empty::before{
        background-size: 64px;
    }

    .sp_card:not(.sp_card--best) .sp_card_chip{
        display: none;
    }

    .sp_card:not(.sp_card--best) .sp_card_body{
        gap: 4px;
    }

    .sp_card_title{
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 15px;
    }

    .sp_card_sub{
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sp_card:not(.sp_card--best) .sp_card_text{
        display: none;
    }

    .sp_card.sp_card--plain{
        display: flex;
        gap: 14px;
        padding: 12px 14px;
    }

    .sp_card--best.sp_card--plain{
        padding: 20px 18px;
    }

    .sp_card--best.sp_card--plain .sp_card_icon{
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .sp_more{
        width: 100%;
        margin-top: 14px;
    }

    .sp_empty{
        padding: 20px 18px 24px;
    }

    /* у окна чипы на телефоне — строкой с прокруткой; на странице — переносом */
    .sp .ss_chips{
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .sp_empty_title{
        font-size: 20px;
    }

    .sp_empty_text{
        font-size: 15px;
    }
}

