/* Стили посадочной «Продукты для ресторанов» (/restoranam/), редизайн 15.09.2026:
   текстовая страница переделана в каталожную витрину.

   Классы СВОИ (resto__*), а не ryba-optom__*, хотя значения взяты оттуда один в один.
   Причина та же, по которой ryba-optom не стал переиспользовать sale-hero__*: страницы
   живут своей жизнью, и правка витрины «Рыба оптом» не должна внезапно перекрашивать
   ресторанную (и наоборот). Общие классы каталога (.catalog-sections-grid,
   .catalog-sections-card) переиспользуются как есть — это готовый компонент витрины,
   он и должен быть общим.

   ⚠️ На сайте глобальный сброс a{display:block} (assets/css/style.css:190). Каждой
   ссылке здесь display задан явно. НЕ убирать как «лишнее» — вёрстку этим ломали трижды. */

/* ===== Герой ===== */
.resto__hero {
    background: linear-gradient(135deg, #203686 0%, #2a45a8 50%, #3b5cc6 100%);
    color: #fff;
    border-radius: 20px;
    padding: 50px 40px 45px;
    margin-top: 20px;
    box-sizing: border-box;
}
.resto__hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.resto__hero-text { flex: 1; min-width: 0; }
.resto__hero-eyebrow {
    font-family: 'Montserrat-SemiBold', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .85;
    margin-bottom: 12px;
}
.resto__hero-title {
    font-family: 'Montserrat-Bold', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 16px;
}
.resto__hero-subtitle {
    font-family: 'Montserrat-Medium', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
    opacity: .92;
    max-width: 640px;
    margin: 0 0 24px;
    text-wrap: pretty;
}
.resto__hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.resto__hero-btn {
    display: inline-flex;
    align-items: center;
    background: #FFC107;
    color: #203686;
    text-decoration: none;
    font-family: 'Montserrat-SemiBold', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    transition: opacity .2s, transform .2s;
}
.resto__hero-btn:hover { opacity: .92; transform: translateY(-1px); color: #203686; }
.resto__hero-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.55);
    padding: 12.5px 26px;
}
.resto__hero-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.resto__hero-stats { display: flex; gap: 16px; flex-shrink: 0; }
.resto__hero-stat {
    text-align: center;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 112px;
    box-sizing: border-box;
}
.resto__hero-stat-num {
    font-family: 'Montserrat-Bold', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
}
.resto__hero-stat-label {
    font-family: 'Montserrat-Medium', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #fff;
    opacity: .85;
    margin-top: 4px;
}

/* ===== Витрина: ячейка плитки со счётчиком ===== */
.resto__tile { display: flex; flex-direction: column; gap: 10px; }
.resto__tile-count {
    margin: 0;
    font-family: 'Montserrat-Medium', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    color: #5B647D;
}

/* ===== Секции страницы ===== */
.resto__section { margin-top: 56px; }
.resto__section .section__caption { margin-bottom: 24px; }

/* ===== Лента товаров =====
   Обёртка нужна не ради сетки (карусель рисует сама Slick через same_goods), а ради
   стрелок: готовая стилизация Slick-стрелок в style.css висит на .similar_carousel__holder,
   но та обёртка тащит margin-top:140px под чужой контекст. Повторяем то же решение,
   что на посадочной «Рыба оптом». */
/* Боковые поля — под стрелки: без них левая стрелка ложится поверх названия первой
   карточки (поймано скриншотом на локали 15.09). */
.resto__feed { position: relative; padding: 0 22px; }
.resto__feed .slick-prev,
.resto__feed .slick-next {
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #D2D6E6;
    background: #fff;
    font-size: 0;
    cursor: pointer;
}
.resto__feed .slick-prev { left: -4px; }
.resto__feed .slick-next { right: -4px; }
.resto__feed .slick-prev::before,
.resto__feed .slick-next::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 15px;
    width: 9px;
    height: 9px;
    border-top: 2px solid #203686;
    border-right: 2px solid #203686;
    transform: rotate(45deg);
}
.resto__feed .slick-prev::before { left: 17px; transform: rotate(-135deg); }

/* ===== Текст внизу страницы ===== */
.resto__longread a { display: inline; }

@media screen and (max-width: 1095px) {
    .resto__hero { padding: 30px 30px 25px; border-radius: 10px; margin-top: 16px; }
    .resto__hero-title { font-size: 28px; }
    .resto__hero-subtitle { font-size: 16px; }
    .resto__section { margin-top: 40px; }
}
@media screen and (max-width: 767px) {
    .resto__hero-inner { flex-direction: column; align-items: flex-start; }
    .resto__hero-stats { width: 100%; }
    .resto__hero-stat { flex: 1; min-width: 0; padding: 14px 10px; }
    .resto__hero-stat-num { font-size: 24px; }
    /* Кнопки в колонку: рядом на 390px «Получить прайс-лист» ломается на три строки
       (поймано скриншотом 390px на локали 15.09). */
    .resto__hero-actions { width: 100%; flex-direction: column; }
    .resto__hero-btn { justify-content: center; width: 100%; box-sizing: border-box; }
    .resto__tile-count { font-size: 12px; }
}

/* Ссылка «Весь каталог товаров» в заголовке витрины. Пришла из убранного блока
   city_assortment (он был дублем витрины). display задан явно — глобальный сброс
   a{display:block} иначе выбросит её на свою строку.
   ⚠️ .section__caption это сетка 12 колонок: без явной grid-column ссылка падает
   в левый рельс шириной в три колонки и ломается на четыре строки (поймано
   скриншотом 16.09). Ставим её под заголовок, в ту же колонку. */
.resto__all-link {
    display: inline-block;
    grid-column: 4 / 13;
    justify-self: start;
    margin-top: 8px;
    font-family: 'Montserrat-Medium', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #203686;
    text-decoration: none;
    border-bottom: 1px solid rgba(32,54,134,.35);
}
.resto__all-link:hover { color: #203686; border-bottom-color: #203686; }
/* На узком экране колонка 4/13 начинается за правым краем — ссылка уезжала
   за вьюпорт (поймано прогоном 390px на тесте 16.09). Отдаём ей всю ширину. */
@media screen and (max-width: 767px) {
    .resto__all-link { grid-column: 1 / 13; }
}

/* ===== Карточки форматов (подборки под кухню) =====
   Используются и на головной /restoranam/, и в блоке «другие форматы» на самих
   страницах подборок. */
.resto__formats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.resto__format-card {
    display: block;
    border: 1px solid #DDE1E6;
    border-radius: 14px;
    padding: 20px 22px 18px;
    background: #fff;
    text-decoration: none;
    color: #203686;
    transition: border-color .2s, box-shadow .2s;
}
.resto__format-card:hover {
    border-color: #203686;
    box-shadow: 0 4px 16px rgba(32,54,134,.10);
    color: #203686;
}
.resto__format-card b {
    display: block;
    font-family: 'Montserrat-SemiBold', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}
.resto__format-card span {
    display: block;
    font-family: 'Montserrat-Medium', Proxima Nova, Gilroy, Arial, Helvetica, sans-serif;
    font-size: 13.5px;
    line-height: 150%;
    color: #5B647D;
}
.resto__format-card i {
    font-style: normal;
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #203686;
    border-bottom: 1px solid rgba(32,54,134,.35);
}
@media screen and (max-width: 1024px) {
    .resto__formats { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 620px) {
    .resto__formats { grid-template-columns: 1fr; }
}
