/* ==========================================================================
   Блок «Рестораны» на главной (дизайн ноябрь 2026)
   Разметка: common/widgets/contacts/views/index.php, скрипт: common/widgets/contacts/assets/js.js
   Иконки встроены в CSS (data URI), исходники — img/icons/restaurants-2026/*.svg
   Макет: Figma «terrapizza.by», Главная / Desktop 1920 → Рестораны, Mobile 360 → Рестораны
   ========================================================================== */

.page-section.rest26 {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
    width: 100%;
    padding: 16px 0 64px;
    color: #fff;
    font-family: "fontRegular", sans-serif;
}

.rest26 a {
    text-decoration: none;
}

/* ---------- Заголовок ---------- */

.rest26__title_desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.rest26__title_desktop .rest26__title-text {
    font-size: 20px;
    line-height: 20px;
    color: #8a8a8a;
}

.rest26__title-logo {
    display: block;
    width: 93px;
    height: auto;
}

.rest26__title_mobile {
    display: none;
}

/* ---------- Переключатель городов ---------- */

.rest26__switch {
    display: flex;
    gap: 4px;
    width: 280px;
    padding: 4px;
    box-sizing: border-box;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
}

.rest26__switch-item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 20px;
    border-radius: 999px;
    background: transparent;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    /* Без transition: при смене города белый фон старой вкладки уходил плавно,
       а текст сразу становился белым — на долю секунды «вспышка» белым. Смена мгновенная. */
}

.rest26__switch-name {
    font-family: "fontBold", sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
}

.rest26__switch-count {
    font-family: "fontRegular", sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: #8a8a8a;
}

.rest26__switch-item:not(.is-active):hover {
    background: rgba(255, 255, 255, .06);
}

.rest26__switch-item.is-active {
    background: #fff;
    cursor: default;
}

.rest26__switch-item.is-active .rest26__switch-name {
    color: #141414;
}

/* ---------- Карточки ---------- */

.rest26__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 1248px;
}

.rest26-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    width: 300px;
    /* min-height, а не height: длинный адрес или график из админки не обрежет кнопки */
    min-height: 356px;
    box-sizing: border-box;
    overflow: hidden;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s;
}

.rest26-card:hover {
    border-color: rgba(255, 255, 255, .18);
}

.rest26-card.is-hidden {
    display: none;
}

.rest26-card__photo {
    display: block;
    flex-shrink: 0;
    height: 160px;
    overflow: hidden;
    background: #2e2e2e;
}

.rest26-card__photo picture,
.rest26-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rest26-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 16px;
}

.rest26-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rest26-card__addr {
    font-family: "fontBold", sans-serif;
    font-size: 19px;
    line-height: 24px;
    color: #fff;
}

.rest26-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rest26-row__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background: center / contain no-repeat;
}

.rest26-row_metro .rest26-row__icon {
    background-image: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon/Metro%22%3E %3Cpath id=%22Vector%22 d=%22M2.66667 2.66667H13.3333V13.3333H2.66667V2.66667Z%22 fill=%22%238A8A8A%22/%3E %3Cpath id=%22Vector_2%22 d=%22M4.66667 11.3333V4.66667H6L8 8L10 4.66667H11.3333V11.3333H10V7.33333L8 10.6667L6 7.33333V11.3333H4.66667Z%22 fill=%22%231F1F1F%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-row_pin .rest26-row__icon {
    background-image: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon/Address%22%3E %3Cpath id=%22Vector%22 d=%22M8 1.33333C5.4 1.33333 3.33333 3.4 3.33333 6C3.33333 9.46667 8 14.6667 8 14.6667C8 14.6667 12.6667 9.46667 12.6667 6C12.6667 3.4 10.6 1.33333 8 1.33333ZM8 7.66667C7.55797 7.66667 7.13405 7.49107 6.82149 7.17851C6.50893 6.86595 6.33333 6.44203 6.33333 6C6.33333 5.55797 6.50893 5.13405 6.82149 4.82149C7.13405 4.50893 7.55797 4.33333 8 4.33333C8.44203 4.33333 8.86595 4.50893 9.17851 4.82149C9.49107 5.13405 9.66667 5.55797 9.66667 6C9.66667 6.44203 9.49107 6.86595 9.17851 7.17851C8.86595 7.49107 8.44203 7.66667 8 7.66667Z%22 fill=%22%238A8A8A%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-row_hours .rest26-row__icon {
    background-image: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon/Hours%22%3E %3Cpath id=%22Vector%22 d=%22M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z%22 stroke-width=%221.33333%22 stroke=%22%238A8A8A%22/%3E %3Cpath id=%22Vector_2%22 d=%22M8 4.66667V8L10 9.33333%22 stroke-width=%221.33333%22 stroke-linecap=%22round%22 stroke=%22%238A8A8A%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-row__text {
    font-size: 14px;
    line-height: 18px;
    color: #b0b0b0;
}

.rest26-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rest26-card__book {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 40px;
    border-radius: 20px;
    background: #fff;
    font-family: "fontBold", sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: #141414;
    white-space: nowrap;
    transition: background-color .2s;
}

.rest26-card__book:hover {
    background: #e6e6e6;
}

.rest26-icon-btn {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #2e2e2e center / 20px no-repeat;
    transition: background-color .2s;
}

.rest26-icon-btn:hover {
    background-color: #444;
}

.rest26-icon-btn_map {
    background-image: url("data:image/svg+xml,%3Csvg width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon%22%3E %3Cpath id=%22Vector%22 d=%22M10 1.66667C6.75 1.66667 4.16667 4.25 4.16667 7.5C4.16667 11.8333 10 18.3333 10 18.3333C10 18.3333 15.8333 11.8333 15.8333 7.5C15.8333 4.25 13.25 1.66667 10 1.66667ZM10 9.58333C9.44747 9.58333 8.91756 9.36384 8.52686 8.97314C8.13616 8.58244 7.91667 8.05253 7.91667 7.5C7.91667 6.94747 8.13616 6.41756 8.52686 6.02686C8.91756 5.63616 9.44747 5.41667 10 5.41667C10.5525 5.41667 11.0824 5.63616 11.4731 6.02686C11.8638 6.41756 12.0833 6.94747 12.0833 7.5C12.0833 8.05253 11.8638 8.58244 11.4731 8.97314C11.0824 9.36384 10.5525 9.58333 10 9.58333Z%22 fill=%22white%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-icon-btn_phone {
    background-image: url("data:image/svg+xml,%3Csvg width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Frame%22%3E %3Cpath id=%22Vector%22 d=%22M6.6 3.5H9.2L10.7 7.5L8.7 8.8C9.25054 10.2881 10.1165 11.6396 11.2385 12.7615C12.3604 13.8835 13.7119 14.7495 15.2 15.3L16.5 13.3L20.5 14.8V17.4C20.5014 17.6804 20.4439 17.9579 20.3311 18.2145C20.2183 18.4712 20.0528 18.7013 19.8454 18.8899C19.6379 19.0785 19.3931 19.2214 19.1269 19.3092C18.8607 19.3971 18.579 19.428 18.3 19.4C14.8635 18.8528 11.688 17.2331 9.22745 14.7726C6.76687 12.312 5.14721 9.13648 4.6 5.7C4.57196 5.42105 4.60288 5.13932 4.69076 4.87309C4.77864 4.60686 4.9215 4.36208 5.11009 4.15463C5.29868 3.94718 5.52878 3.7817 5.78545 3.66892C6.04213 3.55615 6.31965 3.49859 6.6 3.5Z%22 fill=%22white%22/%3E %3C/g%3E %3C/svg%3E");
}

/* ---------- Карта ---------- */

.rest26__map-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
    background: #e9e9e9;
}

.rest26__map {
    width: 100%;
    height: 100%;
}

/* Карта в серых тонах, как в макете (метки остаются цветными) */
.rest26__map [class*="ground-pane"] {
    filter: grayscale(1);
}

/* ---------- Всплывающее окно на карте ---------- */

.rest26-popup {
    position: absolute;
    z-index: 3000;
    width: 300px;
    color: #141414;
    font-family: "fontRegular", sans-serif;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .08)) drop-shadow(0 12px 16px rgba(0, 0, 0, .18));
}

.rest26-popup[hidden] {
    display: none;
}

.rest26-popup.is-shown {
    animation: rest26-popup-in .15s ease-out;
}

@keyframes rest26-popup-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.rest26-popup__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
}

.rest26-popup__photo {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.rest26-popup__photo img,
.rest26-popup__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rest26-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    background: #f2f2f2 url("data:image/svg+xml,%3Csvg width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Frame%22%3E %3Cpath id=%22Vector%22 d=%22M5 5L15 15M15 5L5 15%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke=%22%23141414%22/%3E %3C/g%3E %3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
}

.rest26-popup__close:hover {
    background-color: #e6e6e6;
}

.rest26-popup__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 8px 4px;
}

.rest26-popup__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.rest26-popup__title {
    font-family: "fontBold", sans-serif;
    font-size: 22px;
    line-height: 26px;
    color: #141414;
}

.rest26-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    line-height: 18px;
    white-space: nowrap;
}

/* Мягкий ховер: «N оценок» плавно темнеет, без подчёркивания */
a.rest26-rating:hover .rest26-rating__count,
a.rest26-rating:focus-visible .rest26-rating__count {
    color: #3d3d3d;
}

.rest26-rating__star {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon/star%22%3E %3Cpath id=%22Vector%22 d=%22M8 1.66667L9.96 5.8L14.48 6.35333L11.1467 9.46L12.0133 13.9333L8 11.7333L3.98667 13.9333L4.85333 9.46L1.52 6.35333L6.04 5.8L8 1.66667Z%22 fill=%22%23FFB800%22/%3E %3C/g%3E %3C/svg%3E") center / contain no-repeat;
}

.rest26-rating__value {
    font-family: "fontBold", sans-serif;
    color: #141414;
}

.rest26-rating__count {
    color: #8a8a8a;
    transition: color .2s ease;
}

.rest26-popup__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rest26-prow {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rest26-prow__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background: center / contain no-repeat;
}

.rest26-prow_pin .rest26-prow__icon {
    background-image: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon%22%3E %3Cpath id=%22Vector%22 d=%22M8 1.33333C5.4 1.33333 3.33333 3.4 3.33333 6C3.33333 9.46667 8 14.6667 8 14.6667C8 14.6667 12.6667 9.46667 12.6667 6C12.6667 3.4 10.6 1.33333 8 1.33333ZM8 7.66667C7.55797 7.66667 7.13405 7.49107 6.82149 7.17851C6.50893 6.86595 6.33333 6.44203 6.33333 6C6.33333 5.55797 6.50893 5.13405 6.82149 4.82149C7.13405 4.50893 7.55797 4.33333 8 4.33333C8.44203 4.33333 8.86595 4.50893 9.17851 4.82149C9.49107 5.13405 9.66667 5.55797 9.66667 6C9.66667 6.44203 9.49107 6.86595 9.17851 7.17851C8.86595 7.49107 8.44203 7.66667 8 7.66667Z%22 fill=%22%238A8A8A%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-prow_metro .rest26-prow__icon {
    background-image: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon%22%3E %3Cpath id=%22Vector%22 d=%22M2.66667 2.66667H13.3333V13.3333H2.66667V2.66667Z%22 fill=%22%238A8A8A%22/%3E %3Cpath id=%22Vector_2%22 d=%22M4.66667 11.3333V4.66667H6L8 8L10 4.66667H11.3333V11.3333H10V7.33333L8 10.6667L6 7.33333V11.3333H4.66667Z%22 fill=%22white%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-prow_hours .rest26-prow__icon {
    background-image: url("data:image/svg+xml,%3Csvg width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon%22%3E %3Cpath id=%22Vector%22 d=%22M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z%22 stroke-width=%221.33333%22 stroke=%22%238A8A8A%22/%3E %3Cpath id=%22Vector_2%22 d=%22M8 4.66667V8L10 9.33333%22 stroke-width=%221.33333%22 stroke-linecap=%22round%22 stroke=%22%238A8A8A%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-prow__text {
    font-size: 15px;
    line-height: 20px;
    color: #3d3d3d;
}

.rest26-popup__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rest26-popup__book {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 46px;
    box-sizing: border-box;
    border-radius: 176px;
    background: #141414;
    font-size: 16px;
    line-height: 26px;
    color: #fff;
    white-space: nowrap;
    transition: background-color .2s;
}

.rest26 .rest26-popup__book:hover {
    background: #333;
    color: #fff;
}

.rest26-popup__icon {
    display: block;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 23px;
    background: #f2f2f2 center / 24px no-repeat;
    transition: background-color .2s;
}

.rest26-popup__icon:hover {
    background-color: #e6e6e6;
}

.rest26-popup__icon_route {
    background-image: url("data:image/svg+xml,%3Csvg width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon%22%3E %3Cpath id=%22Vector%22 d=%22M12 2C8.1 2 5 5.1 5 9C5 14.2 12 22 12 22C12 22 19 14.2 19 9C19 5.1 15.9 2 12 2ZM12 11.5C11.337 11.5 10.7011 11.2366 10.2322 10.7678C9.76339 10.2989 9.5 9.66304 9.5 9C9.5 8.33696 9.76339 7.70107 10.2322 7.23223C10.7011 6.76339 11.337 6.5 12 6.5C12.663 6.5 13.2989 6.76339 13.7678 7.23223C14.2366 7.70107 14.5 8.33696 14.5 9C14.5 9.66304 14.2366 10.2989 13.7678 10.7678C13.2989 11.2366 12.663 11.5 12 11.5Z%22 fill=%22%23141414%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-popup__icon_phone {
    background-image: url("data:image/svg+xml,%3Csvg width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Frame%22%3E %3Cpath id=%22Vector%22 d=%22M6.6 3.5H9.2L10.7 7.5L8.7 8.8C9.25054 10.2881 10.1165 11.6396 11.2385 12.7615C12.3604 13.8835 13.7119 14.7495 15.2 15.3L16.5 13.3L20.5 14.8V17.4C20.5014 17.6804 20.4439 17.9579 20.3311 18.2145C20.2183 18.4712 20.0528 18.7013 19.8454 18.8899C19.6379 19.0785 19.3931 19.2214 19.1269 19.3092C18.8607 19.3971 18.579 19.428 18.3 19.4C14.8635 18.8528 11.688 17.2331 9.22745 14.7726C6.76687 12.312 5.14721 9.13648 4.6 5.7C4.57196 5.42105 4.60288 5.13932 4.69076 4.87309C4.77864 4.60686 4.9215 4.36208 5.11009 4.15463C5.29868 3.94718 5.52878 3.7817 5.78545 3.66892C6.04213 3.55615 6.31965 3.49859 6.6 3.5Z%22 fill=%22%23141414%22/%3E %3C/g%3E %3C/svg%3E");
}

.rest26-popup__tail {
    width: 24px;
    height: 12px;
    margin: -1px auto 0;
    background: url("data:image/svg+xml,%3Csvg width=%2224%22 height=%2212%22 viewBox=%220 0 24 12%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Tail%22 clip-path=%22url(%23clip0_0_20)%22%3E %3Cpath id=%22Vector%22 d=%22M0 0H24L14.1 10.3C12.9 11.5 11.1 11.5 9.9 10.3L0 0Z%22 fill=%22white%22/%3E %3C/g%3E %3Cdefs%3E %3CclipPath id=%22clip0_0_20%22%3E %3Crect width=%2224%22 height=%2212%22 fill=%22white%22/%3E %3C/clipPath%3E %3C/defs%3E %3C/svg%3E") center / contain no-repeat;
}

/* ---------- Планшет ---------- */

@media (max-width: 991px) {
    .page-section.rest26 {
        padding-bottom: 48px;
    }

    .rest26__map-wrap {
        height: 520px;
    }
}

/* ---------- Телефон ---------- */

@media (max-width: 767px) {
    .page-section.rest26 {
        align-items: stretch;
        gap: 14px;
        padding: 20px 0 32px;
    }

    .rest26__title_desktop {
        display: none;
    }

    .rest26__title_mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .rest26__title_mobile .rest26__title-text {
        font-family: "fontBold", sans-serif;
        font-size: 20px;
        line-height: 27px;
        color: #fff;
    }

    .rest26__all-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        line-height: 18px;
        color: #8a8a8a;
    }

    .rest26__all-link::after {
        content: "";
        width: 14px;
        height: 14px;
        background: url("data:image/svg+xml,%3Csvg width=%2214%22 height=%2214%22 viewBox=%220 0 14 14%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22icon/chevron%22%3E %3Cpath id=%22Vector%22 d=%22M5 3L9 7L5 11%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke=%22%238A8A8A%22/%3E %3C/g%3E %3C/svg%3E") center / contain no-repeat;
    }

    .rest26__switch {
        width: 100%;
    }

    /* Лента карточек листается по горизонтали до краёв экрана */
    .rest26__cards {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 12px;
        max-width: none;
        width: auto;
        margin: 0 -1rem;
        padding: 0 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .rest26-card {
        scroll-snap-align: start;
    }

    .rest26__map-wrap {
        height: 500px;
        border-radius: 4px;
    }

    /* Всплывающее окно — прижато к низу карты */
    .rest26-popup.rest26-popup_m {
        left: 8px;
        right: 8px;
        bottom: 8px;
        top: auto !important;
        width: auto;
    }

    .rest26-popup__card_m {
        gap: 12px;
        padding: 12px;
    }

    .rest26-popup__card_m .rest26-popup__close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        background-size: 20px;
    }

    .rest26-popup__top {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .rest26-popup__thumb {
        flex-shrink: 0;
        width: 88px;
        height: 88px;
        overflow: hidden;
        border-radius: 10px;
        background: #f2f2f2;
    }

    .rest26-popup__card_m .rest26-popup__head {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 36px;
    }

    .rest26-popup__card_m .rest26-popup__title {
        font-size: 18px;
        line-height: 22px;
    }

    .rest26-rating_s {
        font-size: 14px;
    }

    .rest26-rating_s .rest26-rating__star {
        width: 14px;
        height: 14px;
    }

    .rest26-popup__card_m .rest26-popup__info {
        gap: 4px;
    }

    .rest26-popup__card_m .rest26-prow {
        gap: 6px;
    }

    .rest26-popup__card_m .rest26-prow__icon {
        margin-top: 1px;
    }

    .rest26-popup__card_m .rest26-prow__text {
        font-size: 14px;
        line-height: 18px;
    }

    .rest26-popup__card_m .rest26-popup__book {
        flex: 1 1 auto;
        width: auto;
        height: 44px;
        font-size: 15px;
    }

    .rest26-popup__card_m .rest26-popup__icon {
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }
}
