/*
 * Дополнения к готовой вёрстке нового дизайна (public/design/style.css).
 * Сам файл дизайна не трогаем — здесь только то, что нужно сайту, но в макете
 * не предусмотрено. Подключается после style.css.
 *
 * 19.10.2026: в макете в шапке одна кнопка «Войти» фиксированной ширины 106px.
 * Нам нужны две — вход и регистрация, иначе регистрация пропадает со всех страниц.
 * Две кнопки по 106px вместе с поиском (290px) и избранным не помещаются в строку,
 * и «Регистрация» вылезала за правый край окна.
 */

/* Кнопки входа и регистрации — по содержимому, а не фиксированной ширины */
.header .right-side .login,
.mobile-menu .bottom .login {
    width: auto;
    padding: 0 18px;
    white-space: nowrap;
}

.header .right-side .login + .login,
.mobile-menu .bottom .login + .login {
    margin-left: 8px;
}

/* Поле поиска уступает место двум кнопкам */
.header .right-side form input[type='text'] {
    width: 240px;
}

@media (max-width: 1400px) {
    .header .right-side form input[type='text'] {
        width: 170px;
    }
}

@media (max-width: 1200px) {
    .header .right-side form input[type='text'] {
        width: 130px;
    }

    .header .right-side .login {
        padding: 0 12px;
        font-size: 11px;
    }
}

/*
 * Описание сайта в подвале. На проде этот текст стоит в шапке каждой страницы,
 * в макете нового дизайна его нет вовсе — переносим в колонку логотипа.
 * Копирайт в макете прижат к низу колонки через position:absolute, поэтому
 * добавленный текст наезжал на него и растекался на всю ширину подвала.
 */
.footer .logo {
    max-width: 320px;
}

.footer .logo .site-desc {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: #718096;
}

/* Возвращаем копирайт в поток, чтобы он встал под описанием, а не поверх него */
.footer .logo .copy {
    position: static;
    margin-top: 16px;
}

@media (max-width: 992px) {
    .footer .logo {
        max-width: none;
    }
}

/*
 * Карточки каталога. В макете карточка некликабельна: единственная ссылка в ней —
 * «избранное», ни картинка, ни название никуда не ведут. Нам ссылки обязательны
 * (без них нет перехода на объект и теряется внутренняя перелинковка), поэтому
 * ссылки добавлены, а здесь им возвращается вид обычного текста из макета.
 */
.catalog-page .catalog .list .item .info h4 a,
.catalog-page .catalog .list .item .image > a {
    text-decoration: none;
    color: inherit;
}

.catalog-page .catalog .list .item .info h4 a:hover {
    text-decoration: underline;
}

/*
 * Место цены в карточке. У событий и мест цены нет, там стоит ссылка на карту —
 * крупный жирный шрифт цены ей не подходит.
 */
.catalog-page .catalog .list .item .info .map-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.catalog-page .catalog .list .item .info .map-link a {
    text-decoration: none;
    color: #ac31ff;
}

.catalog-page .catalog .list .item .info .map-link a:hover {
    text-decoration: underline;
}

/*
 * Подвал, блок «Контактные данные». В макете ссылка внутри абзаца объявлена
 * блочной (.footer .contacts p a { display: block }) — так задумано для почты,
 * которая стоит отдельной строкой. Но у нас в этом же абзаце есть ссылка
 * «контактах» внутри предложения, и из-за display:block фраза разрывалась:
 * «…указанным в» оставалось на одной строке, «контактах» уезжало на следующую.
 */
.footer .contacts p a.inline-link {
    display: inline;
}

/*
 * Колонки подвала. Без блока «Социальные сети» (ВК убрали 09.11.2026) освободилось место,
 * а макет держит ссылки в 266px — «Политика обработки персональных данных» и
 * «Руководство по добавлению…» переносились при пустом поле справа. На компьютере
 * колонки по содержимому, при нехватке места текст всё так же переносится.
 */
@media (min-width: 1201px) {
    .footer nav {
        width: auto;
    }

    .footer .contacts {
        width: 320px;
    }
}

/*
 * Переключатель региона. На проде это всплывающее окно со ссылками на все 97 регионов
 * в тот же раздел — с каждой страницы 97 внутренних ссылок. В макете нового дизайна
 * такого блока нет вовсе, без него перелинковка между регионами рушится.
 */
#reg-selection {
    position: fixed;
    z-index: 100;
    /* Окно держится под шапкой, у самой кнопки выбора города. Раньше оно
       центрировалось и по высоте: при вводе названия список укорачивался,
       и окно уезжало к середине экрана (замечание владельца 21.10.2026). */
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 92vw);
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 24px 28px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 24, 39, .25);
}

#reg-selection .sel_regions {
    column-width: 210px;
    column-gap: 24px;
    line-height: 26px;
}

#reg-selection .sel_regions a {
    text-decoration: none;
    color: #1f2430;
}

#reg-selection .sel_regions a:hover {
    color: #ac31ff;
}

/* Крестик один. Было два сразу: картинка close.svg из макета и символ ×,
   который я добавила поверх — они накладывались друг на друга
   (замечание владельца 21.10.2026). Оставляем символ: он не зависит от файла. */
#reg-selection .b-bubble__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: none;
    cursor: pointer;
    text-align: center;
}

#reg-selection .b-bubble__close:after {
    content: '×';
    font-size: 28px;
    line-height: 28px;
    color: #718096;
}

#reg-selection .b-bubble__close:hover:after {
    color: #ac31ff;
}

.reg-title {
    /* Отступ справа — чтобы заголовок не подходил вплотную к крестику */
    margin: 0 40px 14px 0;
    font-size: 20px;
    font-weight: 700;
}

/* Поиск по названию региона */
.reg-search {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 13px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

/* В макете подсказка внутри поля пропадает при фокусе. Здесь окно открывается
   сразу с курсором в поле, и человек видел бы пустую строку без объяснения —
   поэтому подсказку оставляем видимой. */
.reg-search::placeholder,
.reg-search:focus::placeholder,
.reg-search:focus::-webkit-input-placeholder {
    color: #9aa3b0 !important;
    opacity: 1;
}

.reg-empty {
    margin: 0;
    color: #718096;
}

/*
 * Вход, регистрация и «Добавить …» — настоящие ссылки, а не кнопки с onclick:
 * переход скриптом поисковик ссылкой не считает, перелинковка теряется.
 * Здесь им возвращается вид кнопок из макета.
 */
.header .right-side a.login,
.mobile-menu .bottom a.login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    text-decoration: none;
    vertical-align: middle;
}

.catalog-page .top-buttons a.add-button {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 26px 0 52px;
    border-radius: 15px;
    background: #ffffff url('img/catalog-button2.svg') no-repeat 26px 50%;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
}

/*
 * Отзывы об отдыхе в регионе. Сверстаны карточками каталога, но содержимое другое:
 * длинный текст отзыва и необязательная фотография объекта. В три колонки, как
 * карточки объектов, они не ложатся — ставим в одну, во всю ширину.
 */
/* Лента отзывов идёт без бокового фильтра, поэтому занимает всю ширину:
   в макете .catalog рассчитан на 74,7% — остаток отведён под фильтр */
#allreviews.catalog {
    width: 100%;
}

#allreviews .list .item.review_container {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    gap: 20px;
    /* по центру, иначе под коротким отзывом остаётся пустая полоса
       высотой с фотографию объекта */
    align-items: center;
}

#allreviews .list .item.review_container .image {
    flex: 0 0 180px;
    max-width: 180px;
    align-self: flex-start;
}

#allreviews .list .item.review_container .info {
    flex: 1 1 auto;
    padding: 0 18px 0 0;
}

#allreviews .review_top {
    margin-bottom: 10px;
    color: #718096;
    line-height: 21px;
}

#allreviews .review_top a {
    color: #ac31ff;
    text-decoration: none;
}

#allreviews .list .item .info p.b-item__text {
    display: block;
    overflow: visible;
    color: #1f2430;
    line-height: 24px;
}

@media (max-width: 640px) {
    #allreviews .list .item.review_container {
        display: block;
    }

    #allreviews .list .item.review_container .image {
        max-width: 100%;
    }
}

/* Имя автора — обычный тёмный текст, а не ссылка: фиолетовым в карточке
   отмечены только настоящие ссылки на объект */
#allreviews .review_top,
#allreviews .review_top .author_name {
    color: #718096;
}

#allreviews .review_top .author_name {
    color: #1f2430;
}

/*
 * Форма отзыва на витрине региона. В макете формы такого вида нет: есть только
 * фильтр каталога. Оформляем в его стилистике — белая карточка со скруглением 25px,
 * поля с серой заливкой и радиусом 15px, кнопка фиолетовая, как «Войти».
 */
.review-form-block {
    padding-bottom: 60px;
}

.review-form-block form {
    background: #fff;
    border-radius: 25px;
    padding: 28px 30px 30px;
}

.review-form-block h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.review-form__note {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 15px;
    background: #f1f3f6;
    color: #718096;
    line-height: 21px;
}

.review-form__note b {
    color: #1f2430;
}

.review-form__note a {
    color: #ac31ff;
    text-decoration: none;
}

.review-form__row {
    margin-bottom: 18px;
}

.review-form__row label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.review-form__row input[type='text'],
.review-form__row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
    line-height: 22px;
}

.review-form__row textarea {
    min-height: 150px;
    resize: vertical;
}

.review-form__row_inline label {
    display: inline-block;
    margin: 0 12px 0 0;
    vertical-align: middle;
}

.review-form__row_inline .jq-selectbox {
    margin-right: 10px;
}

/* Месяц и год отзыва. Списки оформляет formstyler: он прячет сам select
   и рисует поверх свою обёртку .jq-selectbox, поэтому стили, заданные
   на select, ничего не меняют — правила нужны именно на обёртку.
   Без них 20.10.2026 поля выглядели голым системным текстом,
   а год обрезался до «20...». */
.review-form__row_inline .jq-selectbox {
    margin-right: 10px;
    vertical-align: middle;
}

.review-form__row_inline .jq-selectbox__select {
    height: 44px;
    min-width: 140px;
    padding: 0 40px 0 16px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    box-shadow: none;
    color: #1a202c;
    line-height: 44px;
}

.review-form__row_inline .jq-selectbox__select-text {
    width: auto !important;
    font-size: 14px;
}

/* Стрелка: без неё поле не читается как выпадающий список.
   position задаём сами — в стилях плагина у стрелки он статический,
   и отступы сверху и справа не действовали. */
.review-form__row_inline .jq-selectbox__trigger {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 44px;
    border-left: 0;
}

.review-form__row_inline .jq-selectbox__trigger-arrow {
    position: absolute;
    top: 19px;
    right: 14px;
    width: 10px;
    height: 6px;
    border: 0;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23718096' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    opacity: 1;
}

.review-form__row_inline .jq-selectbox__dropdown {
    border-radius: 12px;
}

@media (max-width: 640px) {
    .review-form__row_inline label {
        display: block;
        margin-bottom: 8px;
    }

    .review-form__row_inline .jq-selectbox {
        margin-bottom: 8px;
    }
}

.review-form__hint {
    margin: 8px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 19px;
}

.review-form-block button[type='submit'] {
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.review-form-block button[type='submit']:hover {
    background: #9329db;
}

/*
 * Кнопка «Наверх». Нового элемента нет ни в макете, ни на проде — добавлена
 * 20.10.2026 по просьбе владельца: страницы бывают длиной в 15 000 пикселей
 * (лента отзывов региона), мотать обратно колесом неудобно.
 * Фиолетовая, как главные кнопки макета; на телефоне чуть меньше и ниже,
 * чтобы не перекрывать содержимое.
 */
#to-top {
    position: fixed;
    z-index: 90;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ac31ff;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .2);
    transition: background 200ms ease;
}

#to-top:hover {
    background: #9329db;
}

#to-top[hidden] {
    display: none;
}

@media (max-width: 640px) {
    #to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/*
 * Всплывающее окно входа и регистрации. На проде формы открываются прямо
 * в шапке; в макете нового дизайна их нет вовсе — кнопки просто ведут
 * на отдельные страницы. Возвращено 20.10.2026 по решению владельца.
 */
.auth-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .45);
}

.auth-modal__box {
    position: relative;
    width: min(420px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 28px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 24, 39, .25);
}

.auth-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #718096;
    cursor: pointer;
}

.auth-modal__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-modal__tab {
    padding: 0 0 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
}

.auth-modal__tab + .auth-modal__tab {
    margin-left: 18px;
}

.auth-modal__tab.is-active {
    border-bottom-color: #ac31ff;
    color: #1a202c;
}

.auth-modal__form[hidden] {
    display: none;
}

.auth-modal__form label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.auth-modal__form input[type='text'],
.auth-modal__form input[type='password'] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.auth-modal__row {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 21px;
}

.auth-modal__row a {
    color: #ac31ff;
    text-decoration: none;
}

.auth-modal__row a:hover {
    text-decoration: underline;
}

/* Подпись у галочки — в строку с ней, а не заголовком поля */
.auth-modal__check-label {
    display: inline !important;
    margin: 0 4px 0 6px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #1f2430 !important;
}

.auth-modal__note {
    margin: 14px 0;
    font-size: 13px;
    color: #718096;
}

.auth-modal__submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-modal__submit:hover {
    background: #9329db;
}

.auth-modal .g-recaptcha {
    margin: 10px 0 4px;
    transform: scale(0.88);
    transform-origin: 0 0;
}

/*
 * Меню вошедшего. На проде это выпадающий список из 8 пунктов (плюс «Модерация»
 * для админа); в макете нового дизайна его нет, осталась одна ссылка на профиль —
 * попасть в свои организации, объявления, почту и модерацию было нельзя.
 * Возвращено 20.10.2026.
 */
.user-menu {
    position: relative;
    /* В шапке макета элементы идут строкой инлайн-блоками, а не флексом:
       блочная обёртка переносила кнопку на вторую строку (поймано 20.10.2026) */
    display: inline-block;
    vertical-align: middle;
}

.user-menu__list {
    position: absolute;
    z-index: 120;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(17, 24, 39, .18);
}

.user-menu__list[hidden] {
    display: none;
}

.user-menu__list li a {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    color: #1f2430;
    text-decoration: none;
    white-space: nowrap;
}

.user-menu__list li a:hover {
    background: #f1f3f6;
    color: #ac31ff;
}

/* На телефоне выпадение не нужно — пункты сразу списком в меню */
.mobile-user-menu {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.mobile-user-menu li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #1f2430;
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────
 * Админка. С 20.10.2026 живёт в каркасе сайта (шапка, меню, подвал общие),
 * поэтому её собственные стили переехали сюда и перекрашены в цвета дизайна:
 * шрифт Onest, фиолетовый акцент, скругления 15/25px вместо бордового
 * и острых углов прежней служебной вёрстки.
 * ───────────────────────────────────────────────────────────────────────── */
.admin-page {
    padding-bottom: 40px;
}

/* Заголовок админки: в публичных разделах отступ сверху даёт блок крошек,
   а в админке крошек нет, и H1 прижимался к полосе меню */
.admin-page h1 {
    margin-top: 32px;
}

/* Выпадающие списки админки оформляем сами: скрипт styler к ним
   не подключается (он вешается только на класс .sel вёрстки) */
.admin-page select {
    height: 48px;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23718096' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-nav__item {
    padding: 10px 18px;
    border-radius: 15px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #1f2430;
    text-decoration: none;
}

.admin-nav__item:hover {
    color: #ac31ff;
}

.admin-nav__item.is-active {
    background: #ac31ff;
    color: #fff;
}

/* «На сайт» — отдельно справа, чтобы выход из админки был на виду */
.admin-nav__item_out {
    margin-left: auto;
    background: #f1f3f6;
}

.admin-page .card {
    margin-bottom: 20px;
    padding: 22px 25px;
    border: 0;
    border-radius: 25px;
    background: #fff;
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
}

.admin-page th,
.admin-page td {
    padding: 11px 10px;
    border-bottom: 1px solid #eceef2;
    text-align: left;
    vertical-align: middle;
}

.admin-page th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.admin-page tr:hover td {
    background: #fafbfc;
}

.admin-page input[type='text'],
.admin-page input[type='number'],
.admin-page input[type='email'],
.admin-page input[type='password'],
.admin-page input[type='tel'],
.admin-page input[type='url'],
.admin-page input[type='search'],
.admin-page input[type='date'],
.admin-page select,
.admin-page textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.admin-page textarea {
    min-height: 160px;
    resize: vertical;
}

.admin-page label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.admin-page .field {
    margin-bottom: 16px;
}

/* Галочка в форме админки: подпись рядом, а не под полем */
.admin-page .field label.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.admin-page .field label.check input {
    width: auto;
    margin: 0;
}

.admin-page .grid {
    display: grid;
    gap: 14px;
}

.admin-page .g2 { grid-template-columns: 1fr 1fr; }
.admin-page .g3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 760px) {
    .admin-page .g2,
    .admin-page .g3 { grid-template-columns: 1fr; }

    .admin-nav__item_out { margin-left: 0; }
}

/* Кнопки-иконки: подпись только в подсказке */
.admin-page .ib {
    display: inline-block;
    padding: 5px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    color: #718096;
    text-decoration: none;
    cursor: pointer;
}

.admin-page .ib:hover {
    background: #f1f3f6;
    color: #ac31ff;
}

.admin-page .ib.danger:hover {
    color: #d92d20;
}

.admin-page .submit {
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-page .submit:hover {
    background: #9329db;
}

.admin-page .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-page .chip {
    padding: 7px 14px;
    border: 1px solid #eceef2;
    border-radius: 15px;
    background: #fff;
    font-size: 13px;
    color: #1f2430;
    text-decoration: none;
}

.admin-page .chip.on {
    border-color: #ac31ff;
    background: #ac31ff;
    color: #fff;
}

.admin-page .muted { color: #718096; font-size: 13px; }
.admin-page .ok { color: #1f9254; }
.admin-page .hid { color: #d92d20; }

.admin-note,
.admin-err {
    margin-bottom: 16px;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 14px;
}

.admin-note { background: #e9f7ee; color: #1f6b3c; }
.admin-err { background: #fdeceb; color: #8c2b2b; }

.admin-page .pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.admin-page .pager a,
.admin-page .pager span {
    padding: 7px 12px;
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    color: #1f2430;
    text-decoration: none;
}

.admin-page .pager span {
    background: #ac31ff;
    color: #fff;
}

/* Таблицы админки на телефоне: колонок больше, чем помещается в экран,
   и они обрезались справа. Прокручиваем таблицу внутри карточки,
   а не всю страницу — горизонтальной прокрутки страницы быть не должно. */
@media (max-width: 900px) {
    .admin-page .card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-page table {
        min-width: 680px;
    }
}

/*
 * Личный кабинет. Делит оформление с админкой (класс admin-page на обёртке),
 * здесь — только то, что есть в кабинете и чего нет в админке.
 * Переведён на каркас дизайна 21.10.2026.
 */
.cabinet-page .card h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.cabinet-who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0;
    font-size: 16px;
}

.cabinet-unread {
    padding: 5px 12px;
    border-radius: 12px;
    background: #ac31ff;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.cabinet-exit {
    margin-left: auto;
    color: #718096;
    text-decoration: none;
}

.cabinet-exit:hover {
    color: #d92d20;
}

.cabinet-page .cabinet-state { width: 220px; }
.cabinet-page .cabinet-act { width: 70px; text-align: right; }
.cabinet-page .billing-val { width: 280px; }
.cabinet-page .billing-act { width: 240px; }
.cabinet-page .mail-who { width: 220px; }
.cabinet-page .mail-date { width: 130px; }
.cabinet-page .num { text-align: right; }

.cabinet-form {
    max-width: 640px;
}

.mail-unread {
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 10px;
    background: #ac31ff;
    color: #fff;
    font-size: 12px;
}

/* Письма: своё и чужое отличаются полосой слева, как было на старом кабинете */
.mail-item {
    margin-bottom: 14px;
    padding: 14px 18px;
    border-left: 3px solid #d7dbe2;
    border-radius: 0 15px 15px 0;
    background: #f8f9fb;
    line-height: 22px;
}

.mail-item_mine {
    border-left-color: #ac31ff;
}

.mail-item__who {
    margin-bottom: 6px;
    font-size: 12px;
    color: #718096;
}

/* Предупреждение (платежи выключены) — жёлтое, в отличие от зелёного «сохранено» */
.admin-note_warn {
    background: #fdf6e3;
    color: #7a5c13;
}

/* Таблица операций приходит из общего включаемого файла со своей разметкой */
.cabinet-page .table,
.cabinet-page table.table {
    width: 100%;
    border-collapse: collapse;
}

.billing-all {
    margin: 14px 0 0;
    text-align: right;
}

/* Строка «Логин: … — его сменить нельзя» стояла вплотную к первой подписи формы */
.cabinet-page .card > .muted:first-child {
    margin: 0 0 20px;
}

/*
 * «Как доехать». Своего макета у раздела нет — собран из блоков catalog.html
 * (решение владельца 19.10.2026). Переведён 21.10.2026.
 * Карточки, поля и кнопки берутся из общих правил служебных страниц,
 * здесь — только раскладка этой страницы.
 */
.route-page {
    padding-bottom: 40px;
}

.route-lead {
    margin: 0 0 24px;
    color: #718096;
    line-height: 24px;
}

.route-form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
    padding: 22px 25px;
    border-radius: 25px;
    background: #fff;
}

.route-form__field {
    flex: 1 1 280px;
}

.route-form__field label {
    /* Одна высота у всех подписей: у «Откуда» есть значок геопозиции, и из-за него
       строка становилась выше, а поля рядом стояли на разной линии */
    display: flex;
    align-items: center;
    min-height: 20px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.route-form__field input[type='text'] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

/* «Подставить моё местоположение» — иконкой с подсказкой, скрипт сам её показывает */
.route-findme {
    margin-left: 6px;
    padding: 0 4px;
    border: 0;
    background: none;
    font-size: 15px;
    color: #ac31ff;
    cursor: pointer;
}

/* Название объекта — ссылка на его страницу, подчёркивается при наведении */
/* Название объекта занимает место поля ввода — значит и высота у него та же,
   иначе соседние блоки «Откуда» и «Куда» разъезжаются по вертикали */
.route-target {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
}

.route-target a {
    color: #1f2430;
    text-decoration: none;
}

.route-target a:hover {
    color: #ac31ff;
    text-decoration: underline;
}

/* Кнопка — по середине блока сверху вниз, а не прижата к низу */
.route-form__go {
    align-self: center;
}

.route-form__go .submit {
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Предупреждение о маршруте стояло вплотную к форме — ему нужен воздух сверху,
   как между остальными блоками страницы (замечание владельца 21.10.2026) */
.route-page .admin-note {
    margin-top: 20px;
    padding: 16px 22px;
    line-height: 22px;
}

.route-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.route-map-box {
    flex: 1 1 560px;
    padding: 14px;
    border-radius: 25px;
    background: #fff;
}

#route_map {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
}

.route-meta {
    flex: 0 1 380px;
    padding: 22px 25px;
    border-radius: 25px;
    background: #fff;
}

.route-meta table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.route-meta td {
    padding: 10px 0;
    border-bottom: 1px solid #eceef2;
}

.route-meta .num {
    text-align: right;
}

.route-meta h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.route-meta label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.route-meta input[type='number'] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.route-meta .grid {
    display: grid;
    gap: 14px;
}

.route-meta .g2 {
    grid-template-columns: 1fr 1fr;
}

/* Поля «цена бензина» и «расход» стоят рядом: подписи разной длины роняли
   правое поле на строку ниже (замечание владельца 21.10.2026).
   Прижимаем поля к низу ячейки — они всегда на одной линии. */
.route-meta .g2 {
    align-items: end;
}

.route-meta .field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    margin-bottom: 14px;
}

.route-meta .field label {
    margin-top: auto;
}

.route-calc {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

/* «Посчитать» — span, а не button: так в скрипте, поэтому кнопкой делаем стилями */
.route-calc .submit {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.route-calc #gas_res {
    font-size: 18px;
    font-weight: 700;
}

.route-meta .muted {
    margin: 0;
    color: #718096;
    font-size: 13px;
    line-height: 19px;
}

@media (max-width: 900px) {
    .route-meta,
    .route-map-box {
        flex: 1 1 100%;
    }

    #route_map {
        height: 380px;
    }
}

/* Подсказки адресов под полями «Откуда» и «Куда» (Яндекс.Геосаджест через наш сервер) */
.route-form__field {
    position: relative;
}

.addr-suggest {
    position: absolute;
    z-index: 60;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    padding: 6px 0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(17, 24, 39, .18);
    max-height: 300px;
    overflow: auto;
}

.addr-suggest[hidden] {
    display: none;
}

.addr-suggest__item {
    display: block;
    width: 100%;
    padding: 10px 18px;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: #1f2430;
    cursor: pointer;
}

.addr-suggest__item:hover {
    background: #f1f3f6;
    color: #ac31ff;
}

@media (max-width: 640px) {
    /* На телефоне шапка ниже, и окно должно начинаться сразу под ней */
    #reg-selection {
        top: 76px;
        max-height: calc(100vh - 100px);
        padding: 20px;
    }
}

/* ── Служебные текстовые страницы: контакты, цены, о платном аккаунте, реклама,
      поиск. Своего макета у них нет — собраны из блоков catalog.html.
      Переведены 21.10.2026. ─────────────────────────────────────────────── */
.text-page {
    padding-bottom: 40px;
}

/* Белая карточка — общая для служебных страниц и страниц рейтингов:
   на /msk/rating список шёл прямо по серому фону, потому что правило было
   только для .text-page (поймано при просмотре снимков 21.10.2026) */
.text-page .card,
.rating-page .card {
    margin-bottom: 20px;
    padding: 25px 30px;
    border-radius: 25px;
    background: #fff;
    line-height: 24px;
}

.rating-page .card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
}

.text-page .card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
}

.text-page .card p {
    margin: 0 0 14px;
}

.text-page .card p:last-child {
    margin-bottom: 0;
}

.text-page__mail {
    font-size: 18px;
}

/* Важное предупреждение: тем же жёлтым, что и на «как доехать» */
.text-page__warn {
    background: #fdf6e3;
    color: #7a5c13;
    font-size: 15px;
}

/* Таблица цен: в старом оформлении у неё были свои стили, здесь — свои */
.text-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.text-page th,
.text-page td {
    padding: 12px 14px;
    border-bottom: 1px solid #eceef2;
    text-align: left;
    vertical-align: top;
}

.text-page th {
    font-weight: 700;
    color: #1f2430;
}

.text-page tr:hover td {
    background: #fafbfc;
}

.search-page-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.search-page-form__field {
    flex: 1 1 320px;
}

.search-page-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.search-page-form input[type='text'] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.search-page-form .submit {
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ── Рейтинги ──────────────────────────────────────────────────────────── */
.rating-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rating-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eceef2;
}

.rating-list li:last-child {
    border-bottom: 0;
}

.rating-list a {
    color: #1f2430;
    text-decoration: none;
}

.rating-list a:hover {
    color: #ac31ff;
}

.rating-count {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 10px;
    background: #f1f3f6;
    font-size: 12px;
    color: #718096;
}

.rating-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

.rating-switch a {
    color: #ac31ff;
    text-decoration: none;
}

.rating-switch a:hover {
    text-decoration: underline;
}

/* Место в рейтинге — поверх снимка в углу карточки, как номер на проде */
.rating-page .catalog .list .item .image {
    position: relative;
}

.rating-place {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 12px;
    background: rgba(17, 24, 39, .78);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rating-page .item-kind {
    margin-bottom: 6px;
    font-size: 13px;
    color: #718096;
}

/* Таблица цен шире телефона — прокручиваем её внутри карточки,
   чтобы страницу не уводило вбок (найдено сторожем 21.10.2026) */
@media (max-width: 900px) {
    .text-page .card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .text-page table {
        min-width: 640px;
    }
}

/* Номер места читается крупнее оценки */
.rating-place {
    min-width: 30px;
    text-align: center;
    font-size: 15px;
}

/* ── Плитка рейтингов ──────────────────────────────────────────────────────
   Раздела рейтингов в макете нет вовсе; собран из блоков catalog.html.
   Просьба владельца 21.10.2026: карточками, с иконками и количеством. */
.rating-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.rating-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 25px;
    border-radius: 25px;
    background: #fff;
    color: #1f2430;
    text-decoration: none;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.rating-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(17, 24, 39, .12);
}

.rating-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f4ebff;
    color: #ac31ff;
}

.rating-tile__icon svg {
    width: 26px;
    height: 26px;
}

.rating-tile__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 24px;
    /* заголовки разной длины не должны ломать высоту плиток */
    flex: 1 1 auto;
}

.rating-tile__count {
    font-size: 13px;
    color: #718096;
}

/* Иконка в боковом списке на странице самого рейтинга */
.rating-list a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    background: #f4ebff;
    color: #ac31ff;
}

.rating-list__icon svg {
    width: 17px;
    height: 17px;
}

.rating-list li.is-current a {
    color: #ac31ff;
    font-weight: 600;
}

/* ── Ряд карточек объектов ─────────────────────────────────────────────────
   Было две беды (снимок владельца 21.10.2026): в неполном ряду между
   карточками зияла дыра, и карточки стояли разной высоты.
   Раскладываем сеткой: ширина колонок одинаковая, пустых промежутков нет. */
.rating-page .catalog .list.flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rating-page .catalog .list.flex .item {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Снимки одной высоты, без растяжения картинки */
.rating-page .catalog .list .item .image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 15px;
}

/* Цена прижата к низу — у карточек с разным текстом она на одной линии */
.rating-page .catalog .list .item .info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.rating-page .catalog .list .item .info .price {
    margin-top: auto;
    padding-top: 12px;
}

@media (max-width: 1100px) {
    .rating-page .catalog .list.flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .rating-page .catalog .list.flex {
        grid-template-columns: 1fr;
    }
}

/* ── Цены: карточки тарифов вместо таблицы ────────────────────────────────
   На проде это была таблица на двенадцать строк и шесть колонок — сравнить
   предложения в ней трудно, на телефоне не помещалась вовсе.
   Переделано 21.10.2026 по замечанию владельца. */
.price-lead {
    max-width: 760px;
    margin: 0 0 26px;
    color: #718096;
    line-height: 24px;
}

.price-cards {
    display: grid;
    /* Три в ряд: шесть тарифов ложатся двумя ровными рядами, и карточки
       остаются достаточно широкими, чтобы список условий читался */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .price-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .price-cards {
        grid-template-columns: 1fr;
    }
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 25px;
    border-radius: 25px;
    background: #fff;
}

.price-card_free {
    background: #f4ebff;
}

.price-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 10px;
    border-radius: 10px;
    background: #ac31ff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.price-card__name {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #718096;
}

.price-card__sum {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #1f2430;
}

.price-card__sum span {
    font-size: 18px;
    color: #718096;
}

.price-card__old {
    margin-top: 2px;
    color: #a0a8b5;
    font-size: 14px;
    text-decoration: line-through;
}

.price-card__note {
    margin: 6px 0 18px;
    color: #718096;
    font-size: 14px;
}

.price-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 21px;
}

.price-card__list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
}

/* Галочка и прочерк рисуются знаками: отдельные картинки здесь не нужны */
.price-card__list li.yes::before,
.price-card__list li.no::before,
.price-card__list li.note::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.price-card__list li.yes::before {
    content: '✓';
    color: #1f9254;
}

.price-card__list li.no {
    color: #a0a8b5;
}

.price-card__list li.no::before {
    content: '—';
    color: #c3c9d4;
}

.price-card__list li.note::before {
    content: '•';
    color: #718096;
}

.price-notes p {
    margin: 0 0 8px;
    color: #718096;
    font-size: 14px;
}

.price-notes p:last-child {
    margin-bottom: 0;
}

/* ── Контакты ─────────────────────────────────────────────────────────── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.contact-card {
    padding: 28px 30px;
    border-radius: 25px;
    background: #fff;
}

.contact-card_wide {
    grid-column: span 2;
    background: #fdf6e3;
}

/* Иконка и заголовок — одной строкой, остальной текст ниже */
.contact-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #f4ebff;
    color: #ac31ff;
}

.contact-card__icon_warn {
    background: #fbeccc;
    color: #a3781a;
}

.contact-card__icon svg {
    width: 26px;
    height: 26px;
}

.contact-card__label,
h2.contact-card__label {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 26px;
    color: #1f2430;
}

.contact-card__value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2430;
    text-decoration: none;
}

.contact-card__value:hover {
    color: #ac31ff;
}

.contact-card__hint {
    margin: 10px 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 21px;
}

.contact-card__text {
    margin: 0 0 12px;
    color: #7a5c13;
    line-height: 24px;
}

.contact-card__text:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .contact-card_wide {
        grid-column: span 1;
    }
}

/* ── Длинные текстовые страницы: «Зачем платный аккаунт», «Реклама на сайте» ──
   Это статьи на несколько экранов. На проде они шли сплошным полотном
   во всю ширину — читать тяжело. Задаём читаемую ширину строки, воздух
   между блоками и понятную иерархию заголовков (21.10.2026). */
/* Ширину ограничиваем самому тексту, а не карточке: иначе карточка со статьёй
   сжимается до 860px и оглавление оказывается не у правого края,
   а посреди экрана (поймано на снимке 21.10.2026) */
.text-page .article {
    max-width: 820px;
}

.text-page .card.article {
    max-width: none;
}

/* В раскладке с оглавлением текстовую колонку не ограничиваем дважды:
   её ширину уже задаёт сетка */
.article-layout .article {
    max-width: none;
}

.text-page .article h1 {
    margin: 0 0 20px;
}

.text-page .article h2 {
    margin: 36px 0 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.text-page .article h3 {
    margin: 28px 0 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 26px;
}

.text-page .article p {
    margin: 0 0 16px;
    line-height: 26px;
}

/* Маркеры и номера: общий сброс макета снимает их у всех списков,
   а в статье они нужны — иначе перечисления читаются как сплошной текст */
.text-page .article ol {
    list-style: decimal outside;
    margin: 0 0 18px;
    padding-left: 24px;
    line-height: 26px;
}

.text-page .article ul {
    list-style: disc outside;
    margin: 0 0 18px;
    padding-left: 24px;
    line-height: 26px;
}

.text-page .article li {
    margin-bottom: 10px;
}

.text-page .article a {
    color: #ac31ff;
}

.text-page .article img {
    display: block;
    max-width: 100%;
    margin: 18px auto;
    border-radius: 15px;
}

/* Оглавление в начале статьи — отдельной карточкой со своим фоном */
.text-page .article #zachem_platit > ol,
.text-page .article .toc {
    margin: 0 0 28px;
    padding: 22px 25px 22px 45px;
    border-radius: 25px;
    background: #f4ebff;
}

.text-page .article #zachem_platit > ol li:last-child,
.text-page .article .toc li:last-child {
    margin-bottom: 0;
}

/* ── Статья с оглавлением сбоку ────────────────────────────────────────────
   Просьба владельца 21.10.2026: содержание вынести вправо, в пустое место,
   и закрепить — статья листается, оглавление остаётся на виду. */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    /* без align-items: start — колонка оглавления должна растянуться
       на всю высоту ряда, иначе закрепление внутри неё не работает:
       прилипать не к чему (поймано замером 21.10.2026) */
}

.article-toc {
    height: 100%;
}

.article-toc__box {
    position: sticky;
    /* шапка сайта занимает верх экрана — встаём под ней */
    top: 110px;
    padding: 22px 24px;
    border-radius: 25px;
    background: #f4ebff;
}

.article-toc__title {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #718096;
}

.article-toc ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal outside;
    font-size: 14px;
    line-height: 21px;
}

.article-toc li {
    margin-bottom: 12px;
}

.article-toc li:last-child {
    margin-bottom: 0;
}

.article-toc a {
    color: #1f2430;
    text-decoration: none;
}

.article-toc a:hover,
.article-toc li.is-current a {
    color: #ac31ff;
}

.article-toc li.is-current a {
    font-weight: 700;
}

/* Раздел, к которому ведёт ссылка, не должен прятаться под шапкой при переходе */
.text-page .article h3[id],
.text-page .article h2[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 1000px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* На телефоне содержание идёт первым и не закрепляется */
    .article-toc {
        order: -1;
    }

    .article-toc__box {
        position: static;
    }
}

/* Заголовок статьи — над обеими колонками, внутри карточки */
.text-page .card .article-title {
    margin: 0 0 24px;
}

/* ── Списки турбаз и гостиниц ──────────────────────────────────────────────
   Самый ценный тип страниц после карточек объектов — 33,9% трафика.
   Макет (catalog.html / catalog2.html) рисовался именно под него, но в нём
   нет четырёх вещей, которые на сайте есть: навигации по алфавиту,
   постраничности, рекламных мест в потоке карточек и карты под списком
   (в макете карта лежит сбоку вместо половины плитки).
   Добавлено 21.10.2026. */

/* Ссылка «Показать на карте» вместо кнопки из макета: кнопку перехватывает
   common.js и прячет боковой подбор — в макете по этой кнопке карта
   занимает место списка, а у нас лежит под ним */
.catalog-page .top-buttons a.map-button {
    display: inline-flex;
    align-items: center;
    height: 50px;
    margin-right: 10px;
    padding: 0 26px 0 52px;
    border-radius: 15px;
    background: #ffffff url('img/catalog-button3.svg') no-repeat 26px 50%;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
}

/* Навигация по алфавиту. В макете её нет вовсе, а на проде это рабочий способ
   найти базу по названию — и 2 668 адресов вида /{регион}/{тип}/list/{буква}.
   Тяжёлые белые плашки в две строки спорили с заголовком страницы (замечание
   владельца 21.10.2026) — буквы идут лёгкой строкой на общей подложке. */
.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin-bottom: 24px;
    padding: 6px 14px;
    border-radius: 15px;
    background: #fff;
}

.alpha-nav span {
    margin-right: 8px;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.alpha-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Размеры подобраны так, чтобы 30 букв и слово «все» уложились в одну
       строку на 1536px: иначе «все» оставалась на второй строке одна */
    min-width: 26px;
    height: 28px;
    padding: 0 3px;
    border-radius: 9px;
    color: #1f2430;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.alpha-nav a:last-child {
    margin-left: 6px;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.alpha-nav a:hover,
.alpha-nav a.is-current {
    color: #fff;
    background: #ac31ff;
}

/* Боковой подбор: заголовок и переключатель типа объектов. В макете форма
   начинается сразу с полей — у нас над ней живут три раздела региона */
/* Подбор едет вместе со страницей: раньше при прокрутке он уходил вверх
   и фильтровать на второй-третьей странице было нечем */
.catalog-page.list-page .filter form {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Полоса прокрутки внутри подбора — тонкая и неяркая, чтобы не спорила с полями */
.catalog-page.list-page .filter form::-webkit-scrollbar {
    width: 6px;
}

.catalog-page.list-page .filter form::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #d8dde5;
}

.catalog-page.list-page .filter .filter-title {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.catalog-page.list-page .filter .filter-tabs {
    display: flex;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 15px;
    background: #fff;
    list-style: none;
}

.catalog-page.list-page .filter .filter-tabs li {
    flex: 1 1 0;
    text-align: center;
}

.catalog-page.list-page .filter .filter-tabs li a {
    display: block;
    padding: 8px 4px;
    border-radius: 11px;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-decoration: none;
}

.catalog-page.list-page .filter .filter-tabs li.is-current a {
    color: #fff;
    background: #ac31ff;
}

/* Поле выбора валюты идёт под полями цены, а не рядом: в макете у блока цены
   ровно два поля в одной рамке, третье в строку не влезает */
.catalog-page.list-page .filter form .item .sel.filter-curr,
.catalog-page.list-page .filter form .item .filter-curr + .jq-selectbox {
    margin-top: 10px;
}

/* «Основных» и «Дополнительных» — два поля в строку, подписи над ними */
.catalog-page.list-page .filter form .item .filter-places {
    gap: 3%;
}

.catalog-page.list-page .filter form .item .filter-places__col {
    width: 48.5%;
}

.catalog-page.list-page .filter form .item .filter-places__col label {
    display: block;
    margin-bottom: 6px;
    color: #718096;
    font-size: 12px;
    line-height: 16px;
}

/* Кнопка подбора. В макете на её месте пара «Отмена / Применить»,
   которая показывается только на телефоне */
.catalog-page.list-page .filter form .filter-submit {
    padding-top: 5px;
}

.catalog-page.list-page .filter form .filter-submit button {
    width: 100%;
    height: 48px;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Плитка карточек: сеткой, а не плавающими блоками — иначе в неполном ряду
   зияет дыра, а карточки встают разной высоты (то же исправление, что
   на страницах рейтингов 21.10.2026) */
.catalog-page.list-page .catalog .list.flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Карточки ряда одной высоты: при align-items: start цены вставали
       на разной высоте — владелец просила держать их на одной линии */
    align-items: stretch;
}

.catalog-page.list-page .catalog .list.flex .item {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.catalog-page.list-page .catalog.small .list.flex {
    grid-template-columns: repeat(2, 1fr);
}

/* Снимки одной высоты, без растяжения картинки */
.catalog-page.list-page .catalog .list .item .image img {
    height: 190px;
    object-fit: cover;
}

.catalog-page.list-page .catalog .list .item .info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Название объекта — H3 (как на проде), оформление берём у h4 из макета */
.catalog-page.list-page .catalog .list .item .info h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.catalog-page.list-page .catalog .list .item .info h3 a {
    color: inherit;
    text-decoration: none;
}

.catalog-page.list-page .catalog .list .item .info h3 a:hover {
    color: #ac31ff;
}

/* Цена прижата к низу — у карточек с разным текстом она на одной линии */
.catalog-page.list-page .catalog .list .item .info .price {
    margin-top: auto;
    padding-top: 12px;
}

.catalog-page.list-page .catalog .list .item .info .map-link {
    padding-top: 8px;
    font-size: 12px;
    line-height: 18px;
}

.catalog-page.list-page .catalog .list .item .info .map-link a {
    color: #ac31ff;
    text-decoration: none;
}

/* Рекламное место старого движка: пустой блок без содержимого.
   В плитке он место не занимает, иначе в ряду стоит белая пустая карточка */
.catalog-page.list-page .catalog .list .item.ad-slot {
    display: none;
}

/* Постраничность. В макете плитка бесконечная, а на списках до 13 карточек
   на страницу — без неё обойтись нельзя */
.catalog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.catalog-pager__step {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: #fff;
    color: #1f2430;
    font-weight: 600;
    text-decoration: none;
}

.catalog-pager__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.catalog-pager__pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 12px;
    background: #fff;
    color: #1f2430;
    font-weight: 600;
    text-decoration: none;
}

.catalog-pager__step:hover,
.catalog-pager__pages a:hover,
.catalog-pager__pages li.is-current a {
    color: #fff;
    background: #ac31ff;
}

/* Карта объектов под списком. В макете это блок .map сбоку во всю высоту;
   на проде карта лежит под списком, и ссылки «Показать на карте» в карточках
   ведут именно туда */
.catalog-map {
    margin-top: 30px;
    scroll-margin-top: 120px;
}

.catalog-map #mainmap {
    width: 100%;
    height: 420px;
    border-radius: 25px;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .catalog-page.list-page .catalog .list.flex,
    .catalog-page.list-page .catalog.small .list.flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .catalog-page.list-page .catalog .list.flex,
    .catalog-page.list-page .catalog.small .list.flex {
        grid-template-columns: 1fr;
    }

    /* Кнопки заголовка на телефоне идут в столбик: в строку они не помещаются
       и «Добавить базу» вылезала за край окна */
    .catalog-page .top-buttons a.map-button,
    .catalog-page .top-buttons a.add-button {
        display: flex;
        justify-content: center;
        margin: 0 0 10px;
        padding: 0 20px 0 46px;
    }

    .catalog-map #mainmap {
        height: 320px;
    }
}

/* Пустой список: в регионах без объектов правая колонка оставалась белым
   пустым полем, и страница выглядела сломанной */
/* Заглушка пустого блока — и на списках, и на витринах региона */
.index-catalog-block .catalog-empty {
    margin: 0 0 10px;
    padding: 30px;
    border-radius: 25px;
    background: #fff;
    line-height: 24px;
}

.index-catalog-block .catalog-empty a {
    color: #ac31ff;
}

.catalog-page.list-page .catalog-empty {
    padding: 30px;
    border-radius: 25px;
    background: #fff;
    line-height: 24px;
}

.catalog-page.list-page .catalog-empty p {
    margin-bottom: 10px;
}

.catalog-page.list-page .catalog-empty p:last-child {
    margin-bottom: 0;
}

.catalog-page.list-page .catalog-empty a {
    color: #ac31ff;
}

@media (max-width: 700px) {
    /* Кнопка подбора — во всю ширину, как две соседние: иначе она висела
       одна по центру строки и ряд выглядел кривым */
    .catalog-page.list-page .top-buttons button.filter-button {
        width: 100%;
        margin: 0;
    }
}

/* ── Подбор: ручной ввод в списках и закреплённая полоса на телефоне ──────
   Правки по замечаниям владельца 21.10.2026. */

/* Поиск внутри раскрытого списка (его рисует formstyler по data-search):
   в регионах 97 строк, в населённых пунктах до сотни — колесом не накрутишься */
.catalog-page.list-page .filter form .item .jq-selectbox__search {
    padding: 10px 10px 4px;
}

.catalog-page.list-page .filter form .item .jq-selectbox__search input {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: #fff;
    font: inherit;
}

.catalog-page.list-page .filter form .item .jq-selectbox__not-found {
    padding: 8px 20px 10px;
    color: #718096;
    font-size: 12px;
}

/* Закреплённая полоса подбора — только на телефоне */
.filter-sticky {
    display: none;
}

@media (max-width: 1000px) {
    /* Пока подбор не закреплён сбоку (на планшете он уходит под список),
       полоса уже нужна */
    .filter-sticky {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 40;
        height: 52px;
        border: 0;
        border-radius: 15px;
        background: #ac31ff url('img/filter-button.svg') no-repeat 18px 50%;
        background-size: 20px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        padding-left: 20px;
        box-shadow: 0 8px 30px 0 rgba(17, 24, 39, 0.25);
    }

    /* Кнопка-иконка в заголовке больше не нужна: её заменила полоса,
       и два одинаковых способа открыть подбор только путали */
    .catalog-page.list-page .top-buttons button.filter-button {
        display: none;
    }

    /* На планшете и телефоне подбор открывается окном — закреплять нечего */
    .catalog-page.list-page .filter form {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Чтобы полоса не легла поверх карты и подвала */
    .catalog-page.list-page {
        padding-bottom: 90px;
    }
}

@media (max-width: 700px) {
    /* Алфавит на телефоне: подпись отдельной строкой, иначе буквы жмутся */
    .alpha-nav {
        padding: 10px 12px;
    }

    .alpha-nav span {
        width: 100%;
        margin: 0 0 6px;
    }
}

@media (max-width: 1000px) {
    /* Закреплённая полоса подбора не должна закрывать низ подвала и кнопку
       «Наверх» (замечание владельца по снимку 21.10.2026). Подвал и кнопка —
       соседи блока страницы в каркасе, поэтому правим их только на списках. */
    .catalog-page.list-page ~ .footer {
        padding-bottom: 86px;
    }

    .catalog-page.list-page ~ #to-top {
        bottom: 82px;
    }
}

/* ── Главная ───────────────────────────────────────────────────────────────
   Переведена 22.10.2026 по макету index.html. Чего в макете нет и дописано
   здесь: один H1 вместо шести на проде, настоящий список регионов вместо
   четырёх примеров, блок отзывов, кнопки-ссылки вместо кнопок. */

/* Заголовок страницы. В макете на снимках стоит h2 в 90px — отдаём этот
   размер единственному H1, а «Какой регион вас интересует?» идёт подзаголовком */
.index-first-block h1 {
    margin-bottom: 18px;
    padding: 0 10%;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    line-height: 62px;
    text-align: center;
}

.index-first-block h2 {
    margin-bottom: 40px;
    padding: 0 20%;
    font-size: 28px;
    line-height: 34px;
}

/* Выбор региона: в макете четыре примера городов списком, у нас 97 регионов,
   поэтому обычный список с поиском (его оформляет formstyler) */
.index-first-block form .start-region {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 483px;
    text-align: left;
}

.index-first-block form .start-region .jq-selectbox {
    width: 100%;
    height: 80px;
    line-height: 80px;
    border-radius: 15px;
    background: url('img/select.svg') no-repeat right 30px top 50%, url('img/select1.svg') no-repeat left 30px top 50%, #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.index-first-block form .start-region .jq-selectbox.opened {
    border-radius: 15px 15px 0 0;
}

.index-first-block form .start-region .jq-selectbox .jq-selectbox__select {
    padding: 0 60px 0 55px;
}

.index-first-block form .start-region .jq-selectbox__dropdown {
    top: 100%;
    left: 0;
    width: 100%;
    padding: 5px 0 10px;
    border-radius: 0 0 15px 15px;
    background: #fff;
    line-height: 21px;
}

.index-first-block form .start-region .jq-selectbox__dropdown ul li {
    padding: 7px 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.index-first-block form .start-region .jq-selectbox__search {
    padding: 8px 14px;
}

.index-first-block form .start-region .jq-selectbox__search input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: #f1f3f6;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
}

.index-first-block form .start-region .jq-selectbox__not-found {
    padding: 6px 20px 10px;
    color: #718096;
    font-size: 13px;
}

/* Виды отдыха — наши рейтинги. Разметка макета, добавлен пункт «Любой» */
.index-about-block .block1 ul li a {
    color: inherit;
    text-decoration: none;
}

.index-about-block .block1 ul li a:hover {
    color: #ac31ff;
}

/* Витрины: плитка сеткой — в неполном ряду не остаётся дыры,
   карточки одной высоты (то же исправление, что на списках) */
.index-catalog-block .list.flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.index-catalog-block .list.flex .item {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.index-catalog-block .list .item .image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}

.index-catalog-block .list .item .info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Название объекта — H3: на проде заголовки витрин были H1 (шесть штук
   на странице), а названия вовсе не были заголовками */
.index-catalog-block .list .item .info h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.index-catalog-block .list .item .info h3 a {
    color: inherit;
    text-decoration: none;
}

.index-catalog-block .list .item .info h3 a:hover {
    color: #ac31ff;
}

.index-catalog-block .list .item .info .price {
    margin-top: auto;
    padding-top: 12px;
}

/* Кнопки в заголовке витрины — настоящие ссылки, чтобы переходы видел поиск */
.index-catalog-block .top-buttons a.sel-region-link,
.index-catalog-block .top-buttons a.add-button,
.index-events-block .select a.sel-region-link,
.index-events-block .select a.add-button {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
}

.index-catalog-block .top-buttons a.sel-region-link,
.index-events-block .select a.sel-region-link {
    margin-right: 10px;
}

.index-catalog-block .top-buttons a:hover,
.index-events-block .select a:hover {
    color: #ac31ff;
}

/* События: в макете заголовок карточки — h4 и кнопка, у нас H3 и ссылка */
.index-events-block .content .content .list .item .text h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.index-events-block .content .content .list .item .text h3 a {
    color: inherit;
    text-decoration: none;
}

.index-events-block .content .content .list .item .text h3 a:hover {
    color: #ac31ff;
}

.index-events-block .content .content .list .item .text a.event-link {
    display: inline-flex;
    align-items: center;
    height: 48px;
    margin-top: 16px;
    padding: 0 26px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fd8cf3 0%, #ac31ff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* Отзывы. В макете блока нет вовсе — собран по образцу ленты отзывов региона */
.home-reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-review {
    padding: 25px 27px;
    border-radius: 25px;
    background: #fff;
}

.home-review__top {
    margin-bottom: 10px;
    color: #718096;
    line-height: 21px;
}

.home-review__top a {
    color: #ac31ff;
    text-decoration: none;
}

.home-review p {
    margin: 0;
    line-height: 24px;
}

@media (max-width: 1100px) {
    .index-catalog-block .list.flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .index-first-block h1 {
        padding: 0;
        font-size: 36px;
        line-height: 42px;
    }

    .index-first-block h2 {
        padding: 0;
    }

    .index-first-block form .start-region {
        width: 100%;
        margin: 0 0 10px;
    }
}

@media (max-width: 700px) {
    .index-catalog-block .list.flex,
    .home-reviews {
        grid-template-columns: 1fr;
    }

    .index-catalog-block .top-buttons a.sel-region-link,
    .index-catalog-block .top-buttons a.add-button {
        margin: 0 10px 10px 0;
    }
}

/* Список регионов в заголовке витрины — как на проде. В макете на этом месте
   две кнопки, но прод даёт отсюда переход в любой из 97 регионов, и это
   заметная часть текста страницы: без него главная теряла 24% объёма. */
.index-catalog-block .top-buttons .sel-region,
.index-events-block .select .sel-region {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
    vertical-align: middle;
}

.index-catalog-block .top-buttons .sel-region label,
.index-events-block .select .sel-region label {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.index-catalog-block .top-buttons .sel-region .jq-selectbox,
.index-events-block .select .sel-region .jq-selectbox {
    width: 260px;
    height: 50px;
    line-height: 50px;
    border-radius: 15px;
    background: #ffffff url('img/select3.svg') no-repeat right 18px top 50%;
    font-size: 14px;
    font-weight: 600;
}

.index-catalog-block .top-buttons .sel-region .jq-selectbox__select,
.index-events-block .select .sel-region .jq-selectbox__select {
    padding: 0 48px 0 18px;
}

.index-catalog-block .top-buttons .sel-region .jq-selectbox__dropdown,
.index-events-block .select .sel-region .jq-selectbox__dropdown {
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0 0 15px 15px;
    background: #fff;
    line-height: 20px;
}

.index-catalog-block .top-buttons .sel-region .jq-selectbox__dropdown ul li,
.index-events-block .select .sel-region .jq-selectbox__dropdown ul li {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.index-catalog-block .top-buttons .sel-region .jq-selectbox__search,
.index-events-block .select .sel-region .jq-selectbox__search {
    padding: 8px 12px;
}

.index-catalog-block .top-buttons .sel-region .jq-selectbox__search input,
.index-events-block .select .sel-region .jq-selectbox__search input {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #f1f3f6;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
}

/* «Куда поедем?» — подпись формы первого экрана (на проде это H3).
   В 16px между крупным заголовком и формой она терялась */
.index-first-block .start-hint {
    margin-bottom: 18px;
    color: #fff;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1000px) {
    .index-catalog-block .top-buttons .sel-region,
    .index-events-block .select .sel-region {
        display: flex;
        margin: 0 0 10px;
    }

    .index-catalog-block .top-buttons .sel-region .jq-selectbox,
    .index-events-block .select .sel-region .jq-selectbox {
        width: 100%;
    }
}

@media (max-width: 1000px) {
    /* Заголовок блока и список регионов рядом не помещаются: на телефоне
       список уезжал за правый край и давал горизонтальную прокрутку
       (поймал сторож дизайна 22.10.2026, окно 390 — ширина 403) */
    .index-catalog-block .wrap > .flex,
    .index-events-block .block-name.flex {
        display: block;
    }

    .index-catalog-block .top-buttons,
    .index-events-block .select {
        display: block;
        margin-top: 14px;
    }

    .index-catalog-block .top-buttons .sel-region,
    .index-events-block .select .sel-region {
        max-width: 100%;
        min-width: 0;
    }

    .index-catalog-block .top-buttons .sel-region .jq-selectbox,
    .index-events-block .select .sel-region .jq-selectbox {
        max-width: 100%;
    }
}

/* Нативный список под оформлением formstyler остаётся в разметке поверх своего
   блока. На телефоне он оказывался шире блока (291px против 233px) и давал
   горизонтальную прокрутку страницы — прижимаем его к блоку. */
.jq-selectbox > select {
    max-width: 100%;
}

/* Скрытые формы «Подобрать по параметрам» (partials/search-forms): на проде
   блок лежит в разметке и показывается скриптом по кнопке. Старое оформление
   прятало его своими стилями, в новом дизайне их нет — и внизу главной
   вывалились голые галочки и список регионов (увидела владелец 22.10.2026).
   Разметку оставляем, как на проде, блок прячем. */
#selection.b-bubble {
    display: none;
}

/* «Посмотреть все …» — ссылка эталона под списком карточек (в эталоне это
   <a class="bottom-link"> сразу после .list). Число объектов из неё убрано
   по решению владельца 22.10.2026. Под ней — подсказка прода и подбор. */
/* Отступ от ряда карточек: в сетке у последнего ряда своего отступа снизу нет,
   и кнопка слипалась с карточками (замечание владельца 22.10.2026) */
.index-catalog-block .bottom-link {
    margin-top: 20px;
}

/* Карточка объявления: адрес, удобства и цена — всё это показывает прод */
.index-catalog-block .list .item .info .ad-address {
    margin-bottom: 6px;
    color: #718096;
    font-size: 13px;
    line-height: 18px;
}

.index-catalog-block .list .item .info .ad-facts {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    font-size: 0;
}

.index-catalog-block .list .item .info .ad-facts li {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 10px;
    border-radius: 8px;
    background: #f1f3f6;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

/* Пустой блок событий: текст прода вместо голого заголовка */
.index-events-block .events-empty {
    margin: 0;
    padding: 25px 27px;
    border-radius: 25px;
    background: #fff;
    color: #718096;
    line-height: 24px;
}

/* Подпись кнопки поиска: на проде кнопка подписана словом «Найти», в макете
   это иконка лупы. Подпись есть в разметке для поиска и скринридера,
   а на экране остаётся иконка. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Пометка текущего региона в списке выбора — как на проде */
.reg-current {
    margin-left: 6px;
    color: #718096;
    font-size: 12px;
}

/* Заголовок списка событий и подзаголовок выбора рейтинга — тексты прода,
   в макете нового дизайна их нет (возвращено 22.10.2026) */
.events-list-title,
.rating-choose {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

/* ── Рекламные плашки под витринами ───────────────────────────────────────
   Блок эталона .index-banner-block. Замеры с макета (1536px): плашка 1440×364,
   белая, скругление 25px; снимок занимает правые 46% и имеет дугу по левому
   краю — в макете это часть картинки-подложки, у нас настоящее фото объекта,
   поэтому форму задаём стилями. Текст слева по макету: заголовок 54/60,
   адрес с иконкой, три кнопки в ряд. */
.index-catalog-block .index-banner-block {
    padding: 0;
    margin-top: 40px;
}

.index-catalog-block .index-banner-block .banner {
    position: relative;
    box-sizing: border-box;
    min-height: 364px;
    padding: 50px 52% 50px 50px;
    border-radius: 25px;
    background: #fff;
    overflow: hidden;
}

.index-catalog-block .index-banner-block .banner__photo {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46.2%;
    background-position: center;
    background-size: cover;
    /* Форма левого края снята построчно с самой картинки эталона (img/banner.png,
       2880×720): самая левая точка на 53,7% ширины и на 40% высоты, кверху край
       уходит вправо на 2,4% ширины, книзу — на 9,1%. То есть дуга несимметричная,
       её вершина выше середины, а низ скошен сильнее.
       В радиусах плашки 1440×364 это 35px/40% сверху и 131px/60% снизу. */
    border-radius: 35px 0 0 131px / 40% 0 0 60%;
}

.index-catalog-block .index-banner-block .banner h2 {
    position: relative;
    margin-bottom: 20px;
    padding-right: 0;
    background: none;
    font-size: 54px;
    font-weight: 600;
    line-height: 60px;
}

.index-catalog-block .index-banner-block .banner .adress {
    position: relative;
    margin-bottom: 54px;
    padding: 2px 0 2px 24px;
    background: url('img/adress.svg') no-repeat 0 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.index-catalog-block .index-banner-block .banner .links {
    position: relative;
}

.index-catalog-block .index-banner-block .banner .links a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 17px;
    border: 2px solid rgba(33, 33, 33, 0.1);
    border-radius: 15px;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
}

.index-catalog-block .index-banner-block .banner .links a.banner-more {
    border: 0;
    padding: 19px 24px;
    background: #ac31ff;
    color: #fff;
}

.index-catalog-block .index-banner-block .banner .links a.banner-more:hover {
    background: #9329db;
}

.index-catalog-block .index-banner-block .banner .links a.banner-more span {
    display: inline-block;
    vertical-align: middle;
    width: 13px;
    height: 8px;
    margin: -2px 0 0 6px;
    background: url('img/arrow2.svg');
}

@media (max-width: 1100px) {
    /* Текста и снимка рядом уже не хватает: снимок уходит вниз во всю ширину */
    .index-catalog-block .index-banner-block .banner {
        min-height: 0;
        padding: 30px 24px 240px;
    }

    .index-catalog-block .index-banner-block .banner__photo {
        right: 0;
        left: 0;
        top: auto;
        width: auto;
        height: 220px;
        border-radius: 25px 25px 0 0 / 60px 60px 0 0;
    }

    .index-catalog-block .index-banner-block .banner h2 {
        font-size: 30px;
        line-height: 36px;
    }

    .index-catalog-block .index-banner-block .banner .adress {
        margin-bottom: 24px;
    }
}

/* Кнопка «Фильтры» у блока интересных мест — как в эталоне */
.index-catalog-block .top-buttons a.filter-link {
    display: inline-flex;
    align-items: center;
    height: 50px;
    margin-right: 10px;
    padding: 0 22px;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
}


/* Текст о регионе внизу витрины — пять абзацев из таблицы text.
   В макете такого блока нет, поэтому оформляем белой карточкой, как служебные. */
.region-text {
    padding: 40px 50px;
    border-radius: 25px;
    background: #fff;
}

.region-text h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.region-text__body {
    line-height: 26px;
}

.region-text__body p {
    margin-bottom: 14px;
}

.region-text__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .region-text {
        padding: 24px 20px;
    }
}

/* Блок выбора региона вверху витрины — заголовок и список с прода.
   В макете нового дизайна его нет: там выбор региона живёт на первом экране
   главной, а у витрины первого экрана нет вовсе. */
.region-pick {
    padding-bottom: 20px;
}

.region-pick h3 {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.region-pick__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.region-pick__row .jq-selectbox {
    width: 320px;
    height: 50px;
    line-height: 50px;
    border-radius: 15px;
    background: #ffffff url('img/select3.svg') no-repeat right 18px top 50%;
    font-size: 14px;
    font-weight: 600;
}

.region-pick__row .jq-selectbox__select {
    padding: 0 48px 0 18px;
}

.region-pick__row .jq-selectbox__dropdown {
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0 0 15px 15px;
    background: #fff;
    line-height: 20px;
}

.region-pick__row .jq-selectbox__dropdown ul li {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.region-pick__row .jq-selectbox__search {
    padding: 8px 12px;
}

.region-pick__row .jq-selectbox__search input {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #f1f3f6;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
}

.region-pick__select {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    background: #fff;
    color: #ac31ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 700px) {
    .region-pick__row .jq-selectbox {
        width: 100%;
    }
}

/* ── Карточка объекта ─────────────────────────────────────────────────────
   Доведена 23.10.2026 по макету verstka/object.html. Разметка карточки теперь
   как в макете (.blocks + aside, .block, .photos, .number, .gallery), поэтому
   основное оформление берёт на себя style.css дизайнера. Здесь — только то,
   чего в макете нет (карта, отзывы, форма голосования, места рядом) и подгонка
   под живые данные: снимки разного размера, длинные списки цен, номера без фото. */

/* Галерея: крупный кадр и лента превью ---------------------------------- */
.object-page .photos .slider-for .item img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* До запуска слайдера показываем один кадр и пять превью: иначе страница
   на секунду вытягивается на всю ленту снимков (у объектов их бывает 80) */
.object-page .photos .slider-for:not(.slick-initialized) .item:not(:first-child),
.object-page .photos .slider-nav:not(.slick-initialized) .item:nth-child(n+6) {
    display: none;
}

.object-page .photos .slider-nav:not(.slick-initialized) {
    display: flex;
}

.object-page .photos .slider-nav:not(.slick-initialized) .item {
    width: 20%;
}

.object-page .photos .slider-nav .item img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

/* В макете выбранное превью притушено; понятнее — наоборот, рамкой */
.object-page .photos .slider-nav .item.slick-current {
    opacity: 1;
}

.object-page .photos .slider-nav .item.slick-current img {
    outline: 3px solid #ac31ff;
    outline-offset: -3px;
}

/* Предупреждения прода: официальный представитель или его отсутствие ----- */
.object-page .alert {
    padding-left: 16px;
    border-left: 4px solid #0caf60;
    color: #718096;
    line-height: 24px;
}

.object-page .alert-warning {
    border-left-color: #ffd023;
}

.object-page .alert b {
    color: #111827;
}

/* «Гости считают, что подходит для» ------------------------------------- */
.object-page .votes .item {
    padding: 0 18px;
}

.object-page .votes .item a {
    color: #111827;
    text-decoration: none;
}

.object-page .votes .item a:hover {
    color: #ac31ff;
}

/* Описание, виды размещения и услуги ------------------------------------ */
.object-page .about h2 a,
.object-page .about ul li a {
    color: inherit;
    text-decoration: none;
}

.object-page .about ul li a:hover {
    color: #ac31ff;
}

/* Плитки разъезжаются от пробелов между inline-block, поэтому у списка
   шрифт обнуляем — у самих плиток он задан в макете */
.object-page .about > ul {
    font-size: 0;
}

.object-page .about .text p {
    margin-bottom: 10px;
    color: #718096;
    font-size: 16px;
    line-height: 24px;
}

/* Списки внутри описания объекта — обычные списки, не плитки макета */
.object-page .about .text ul {
    font-size: 16px;
    padding-bottom: 10px;
}

.object-page .about .text ul li {
    display: list-item;
    margin: 0 0 6px 18px;
    padding: 0;
    border: 0;
    font-weight: 400;
    list-style: disc;
}

/* Контакты --------------------------------------------------------------- */
.object-page .contacts .flex {
    align-items: flex-start;
}

.object-page .contacts .top-text {
    max-width: 55%;
    text-align: right;
}

.object-page .contacts table td a {
    color: #ac31ff;
    word-break: break-word;
}

.object-page .contacts table td:last-child {
    font-weight: 600;
}

/* Карта и две ссылки под ней --------------------------------------------
   Селектор длинный нарочно: в макете у `.map` задана картинка-заглушка
   (вид Красной Поляны) правилом из пяти классов, и короткое правило его
   не перебивало — на месте карты была чужая картинка (найдено владельцем
   23.10.2026). Своя карта Яндекса лежит внутри, в #map_canvas. */
.object-page .blocks .block .contacts .map {
    height: auto;
    background: none;
    border-radius: 25px;
    overflow: hidden;
}

.object-page .blocks .block .contacts .map #map_canvas {
    width: 100%;
    height: 455px;
}

.object-page .map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 20px;
}

.object-page .map-actions .route-button {
    display: inline-block;
    padding: 13px 26px 13px 52px;
    border-radius: 15px;
    background: #f1f3f6 url('img/way.png') no-repeat 26px 50%;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}

.object-page .map-actions .route-button:hover {
    box-shadow: inset 0 0 0 2px #ac31ff;
}

.object-page .map-actions .map-error,
.object-page .map-actions .map-link {
    color: #718096;
    text-decoration: none;
    border-bottom: 1px dashed rgba(113, 128, 150, 0.5);
}

.object-page .map-actions .map-error:hover,
.object-page .map-actions .map-link:hover {
    color: #ac31ff;
}

/* Построение маршрута прямо в карточке ------------------------------------
   Поле «Откуда» с подсказками адресов и кнопкой «моё местоположение»,
   карта маршрута на месте обычной, под ней — длина, время и расчёт поездки. */
.object-page .route-inline {
    margin-top: 10px;
}

.object-page .route-inline__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.object-page .route-inline__field {
    position: relative;
    flex: 1 1 320px;
}

.object-page .route-inline__field label {
    display: block;
    margin-bottom: 6px;
    color: #718096;
    font-size: 14px;
    line-height: 20px;
}

.object-page .route-inline__field input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(113, 128, 150, 0.2);
    border-radius: 15px;
    background: #fff;
    font-size: 16px;
}

.object-page .route-findme {
    padding: 0 6px;
    border: 0;
    background: none;
    color: #ac31ff;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
}

.object-page .route-inline .submit {
    height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 50px;
    white-space: nowrap;
    cursor: pointer;
}

/* Список подсказок адреса — рисует /js/route.js */
.object-page .route-inline .addr-suggest {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    padding: 6px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.15);
}

.object-page .route-inline .addr-suggest__item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    font-size: 15px;
    line-height: 21px;
    text-align: left;
    cursor: pointer;
}

.object-page .route-inline .addr-suggest__item:hover {
    background: #f1f3f6;
}

.object-page .route-inline #route_map {
    width: 100%;
    height: 455px;
    border-radius: 25px;
    overflow: hidden;
}

.object-page .route-inline__warn {
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid #ffd023;
    color: #718096;
    line-height: 24px;
}

.object-page .route-meta {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: #f1f3f6;
}

.object-page .route-meta__nums {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    margin-bottom: 16px;
    line-height: 24px;
}

.object-page .route-meta__nums span:first-child {
    color: #718096;
}

.object-page .route-meta__calc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.object-page .route-meta__title {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.object-page .route-meta__calc label {
    color: #718096;
    line-height: 24px;
}

.object-page .route-meta__calc input {
    width: 90px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(113, 128, 150, 0.2);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
}

.object-page .route-meta__calc .submit {
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
}

.object-page .route-meta__note {
    margin: 14px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 20px;
}

/* Номера ----------------------------------------------------------------- */
.object-page .rooms-title {
    margin: 10px 0 20px;
    font-size: 34px;
    font-weight: 600;
    line-height: 40px;
}

.object-page .number .info h3 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

/* Название корпуса рядом с названием номера */
.object-page .number .info h3 small {
    display: block;
    color: #718096;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

/* У номера бывает десяток сезонных цен — прижатый к низу блок макета
   на них наезжал, поэтому цены идут обычным потоком */
.object-page .number .info .prices {
    position: static;
    width: auto;
    margin-top: 16px;
}

.object-page .number .info .prices .prices-title {
    margin-bottom: 8px;
    color: #718096;
    font-size: 14px;
    line-height: 20px;
}

.object-page .number .info .prices .price {
    margin: 0 10px 10px 0;
    vertical-align: top;
}

/* Номер без фотографий занимает всю ширину блока. Селектор с .blocks .block —
   иначе правило макета (.object-page .blocks .block .number .info, ширина
   calc(100% - 286px)) сильнее. Цены в макете прибиты к низу блока абсолютом
   в расчёте на фото высотой 200 px; без фото блок низкий и цены ложились на
   название номера — найдено при полной сверке 03.11.2026 */
.object-page .number .info.wide,
.object-page .blocks .block .number .info.wide {
    width: 100%;
    padding-left: 0;
}

/* Абсолют не годится и у номера с фото: две строки значков гостей — и подпись
   «Цены» уходила под «Питание». Цены идут обычным потоком после питания */
.object-page .blocks .block .number .info .prices {
    position: static;
    width: auto;
    margin-top: 12px;
}

.object-page .number .images .list .photo img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.object-page .number .images .list:not(.slick-initialized) .photo:not(:first-child) {
    display: none;
}

.object-page .number .images-title {
    margin-top: 10px;
    color: #718096;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.object-page .number .guests {
    margin-bottom: 8px;
    color: #718096;
    line-height: 24px;
}

.object-page .number .guests .people {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.object-page .number .info .people i {
    margin-right: 2px;
}

/* Дополнительные места прод рисует плюсом и человечками посветлее */
.object-page .number .info .people i.plus {
    width: auto;
    background: none;
    color: #718096;
    font-style: normal;
}

.object-page .number .info .people i.plus::before {
    content: '+';
}

.object-page .number .info .people i.add {
    opacity: 0.5;
}

/* «цена не указана (уточняйте)» — такая же плашка, но без выделенной суммы */
.object-page .number .info .prices .price.no-price {
    color: #718096;
    font-size: 16px;
    line-height: 24px;
}

.object-page .number .food {
    color: #718096;
}

.object-page .number .food b {
    color: #111827;
    font-weight: 600;
}

.object-page .number .tags b {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.object-page .number .room-descr {
    padding-top: 20px;
    color: #718096;
    line-height: 24px;
}

.object-page .number .room-descr b {
    color: #111827;
}

/* Развлечения и услуги ---------------------------------------------------- */
/* Оценка стоит рядом с заголовком, а не внутри него: сторож SEO сверяет
   текст H3 с продом, и цифра внутри заголовка считалась его потерей */
.object-page .gallery .ent-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.object-page .gallery .ent-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.object-page .gallery .ent-head .mark {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 10px;
    padding: 6px 10px;
}

.object-page .gallery .ent-head .mark.yellow {
    background: #ffd023;
}

.object-page .gallery .ent-head .mark.green {
    background: #0caf60;
}

.object-page .gallery .rating-rate {
    display: none;
}

.object-page .gallery .ent-rate {
    margin-bottom: 10px;
    color: #718096;
    line-height: 24px;
}

.object-page .gallery .ent-descr {
    color: #718096;
    font-size: 16px;
    line-height: 24px;
}

.object-page .gallery .ent-descr p {
    margin-bottom: 10px;
}

/* Отзывы ------------------------------------------------------------------ */
.object-page .reviews .flex {
    align-items: center;
    margin-bottom: 20px;
}

.object-page .reviews h2 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.object-page .reviews .write-a-review {
    display: inline-block;
    height: 50px;
    padding: 0 26px;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 50px;
    cursor: pointer;
}

/* Форма отзыва появляется по кнопке; до этого в контейнере одна ссылка
   «Отменить» — на проде она тоже спрятана до открытия формы */
.object-page #comment_form_cont {
    display: none;
}

/* Вторая кнопка прода — широкая, под списком отзывов */
.object-page .btn-add-review {
    display: block;
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    background: #f1f3f6;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
}

.object-page .btn-add-review:hover {
    box-shadow: inset 0 0 0 2px #ac31ff;
}

.object-page .review-item {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f3f6;
}

.object-page .review-login {
    font-weight: 600;
    line-height: 24px;
}

.object-page .b-user__desc {
    margin-bottom: 10px;
    color: #718096;
    font-size: 14px;
    line-height: 20px;
}

.object-page .review-bubble {
    padding: 20px;
    border-radius: 15px;
    background: #f1f3f6;
    line-height: 24px;
}

.object-page .results-user {
    margin-top: 14px;
    color: #718096;
    line-height: 22px;
}

.object-page .results-user b {
    color: #111827;
}

/* Метки отзыва идут подряд, без запятых — разводим их пробелом,
   иначе «Рыбалка Тихий отдых Лыжный спорт» читается как одна фраза */
.object-page .results-user-title b {
    margin-right: 10px;
}

.object-page .b-results-user__list {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.object-page .b-results-user__val {
    color: #111827;
    font-weight: 600;
}

.object-page .review_vote {
    margin-top: 14px;
    color: #718096;
    line-height: 24px;
}

.object-page .review_vote .good,
.object-page .review_vote .bad {
    color: #ac31ff;
    font-weight: 600;
    cursor: pointer;
}

/* Голосование «для чего подходит это место» -------------------------------- */
.object-page .b-vote-form__title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.object-page .b-vote-form__marks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.object-page .b-vote-form__marks .checkbox {
    width: calc(50% - 10px);
}

.object-page .b-vote-form__marks label {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 22px;
    cursor: pointer;
}

.object-page .b-vote-form__btn {
    height: 50px;
    margin-top: 20px;
    padding: 0 26px;
    border: 0;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.object-page .b-vote-form__login {
    display: inline-block;
    margin-top: 20px;
    color: #ac31ff;
    font-weight: 600;
    cursor: pointer;
}

/* Что посмотреть в округе --------------------------------------------------- */
.object-page .places h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.object-page .apart-places-text {
    margin-bottom: 16px;
    color: #718096;
    line-height: 24px;
}

.object-page .places .list {
    justify-content: flex-start;
}

.object-page .places .list .item {
    width: 32%;
    margin: 0 2% 20px 0;
}

.object-page .places .list .item:nth-child(3n) {
    margin-right: 0;
}

.object-page .places .list .item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}

.object-page .places .list .item h4 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.object-page .places .list .item h4 a {
    color: #111827;
    text-decoration: none;
}

.object-page .places .bottom-link {
    display: inline-block;
    margin-top: 10px;
    padding: 16px 26px;
    border-radius: 15px;
    background: #f1f3f6;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}

.object-page .places .bottom-link:hover {
    box-shadow: inset 0 0 0 2px #ac31ff;
}

/* Боковая колонка ----------------------------------------------------------- */
.object-page aside .content .top-info span.rating.grey {
    background: #718096;
}

.object-page aside .content .top-info span.rating.red {
    background: #ff4d00;
}

.object-page aside .content .top-info span.rating .service {
    font-size: 12px;
}

.object-page aside .content .top-info .reviews {
    color: #718096;
}

.object-page aside .content .rating-rate {
    display: none;
}

.object-page aside .content .adress {
    margin-bottom: 20px;
}

.object-page aside .content ul li a {
    color: #111827;
}

.object-page aside .content ul li a:hover {
    color: #ac31ff;
}

/* Низ страницы: другие варианты размещения ----------------------------------- */
/* Внизу карточки объекта вариантов всего два, и в сетке витрин на четыре
   колонки они выглядели обрезками — здесь колонок три */
.index-catalog-block.inner .list.flex {
    grid-template-columns: repeat(3, 1fr);
}

.index-catalog-block.inner .list.flex .item {
    width: auto;
    margin: 0;
}

.index-catalog-block.inner .list .item .info .help-block {
    margin-bottom: 6px;
    color: #718096;
    font-size: 13px;
    line-height: 18px;
}

.index-catalog-block.inner .list .item .info h4 a {
    color: #111827;
    text-decoration: none;
}

.index-catalog-block.inner .bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.index-catalog-block.inner .bottom-links .bottom-link {
    flex: 1 1 300px;
}

@media (max-width: 1200px) {
    .object-page .photos .slider-for .item img {
        height: 400px;
    }
}

@media (max-width: 991px) {
    .object-page .places .list .item {
        width: 48%;
        margin-right: 2%;
    }

    .object-page .places .list .item:nth-child(3n) {
        margin-right: 2%;
    }

    .index-catalog-block.inner .list.flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .object-page .photos .slider-for .item img {
        height: 220px;
    }

    .object-page .photos .slider-nav .item img {
        height: 70px;
    }

    .object-page .contacts .top-text {
        max-width: 100%;
        text-align: left;
    }

    .object-page .blocks .block .contacts .map {
        height: auto;
    }

    .object-page .blocks .block .contacts .map #map_canvas,
    .object-page .route-inline #route_map {
        height: 300px;
    }

    .object-page .route-inline__form .submit,
    .object-page .route-meta__calc .submit {
        width: 100%;
    }

    .object-page .rooms-title {
        font-size: 24px;
        line-height: 30px;
    }

    .object-page .number .images .list .photo img {
        height: 180px;
    }

    .object-page .b-vote-form__marks .checkbox {
        width: 100%;
    }

    .object-page .places .list .item,
    .object-page .places .list .item:nth-child(3n) {
        width: 100%;
        margin-right: 0;
    }

    .index-catalog-block.inner .list.flex {
        grid-template-columns: 1fr;
    }
}

/* Расстояние до центра региона в строке оценки карточки — элемент макета
   («3.5 км до центра»). Подсказка при наведении объясняет, до центра чего:
   без неё на главной, где объекты со всей страны, это читается двусмысленно. */
.index-catalog-block .list .item .info .rating .distance,
.catalog-page .catalog .list .item .info .rating .distance {
    /* В макете любой span внутри .rating — зелёная плашка оценки заглавными.
       Расстояние это подхватывало и выходило «20 КМ ДО ЦЕНТРА» плашкой,
       поэтому оформление сбрасываем до обычного текста. */
    padding: 0;
    border-radius: 0;
    background: none;
    color: #718096;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px dotted rgba(113, 128, 150, 0.6);
    cursor: help;
}

/* ── Избранное ─────────────────────────────────────────────────────────────
   Сердечко есть в готовой вёрстке (`.fav-link` в шапке и на карточках), но
   нажимать там было нечего. Достроено 24.10.2026: у гостя список хранится
   в браузере, у вошедшего — в таблице favorite. Кнопка сделана <button>,
   а не ссылкой: это действие на странице, а не переход. */
.fav-link {
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

/* Отмеченное — закрашенное сердце фирменного цвета */
.fav-link.active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16'%3E%3Cpath fill='%23ac31ff' d='M15.698 2.362c1.736 1.689 1.736 4.428 0 6.118l-6 5.841a1 1 0 0 1-1.395 0l-6.001-5.841c-1.736-1.69-1.736-4.429 0-6.118 1.38-1.343 3.045-1.755 4.726-.956.667.316 1.541.955 1.972 1.79.43-.835 1.305-1.474 1.972-1.79 1.68-.8 3.346-.387 4.726.956Z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    opacity: 1;
}

/* Карточки витрин и списков: кнопка лежит поверх снимка. В макете это белый
   контур без подложки — на светлых фотографиях (небо, снег) его не видно вовсе,
   поэтому под сердечком белый кружок, а само оно серое. */
.index-catalog-block .list .item .image .fav-link,
.catalog-page .catalog .list .item .image .fav-link {
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    background-image: url('img/fav.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 16px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.index-catalog-block .list .item .image .fav-link.active,
.catalog-page .catalog .list .item .image .fav-link.active {
    background-color: rgba(255, 255, 255, 0.92) !important;
    background-size: 18px 16px !important;
}

/* Шапка: число отложенного на сердечке */
.header .right-side .fav-link,
.mobile-menu .fav-link {
    position: relative;
}

.header .right-side .fav-link .fav-count,
.mobile-menu .fav-link .fav-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ac31ff;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Карточка объекта: сердечко справа от плашек, как в макете. Без nowrap общее
   правило .flex макета (перенос строк) уводило сердечко на отдельную строку,
   когда под плашками стоит «Проголосовал …» (поймано на телефоне 27.10.2026) */
.object-page aside .content > .flex {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.object-page aside .content > .flex .top-info {
    flex: 1 1 auto;
    min-width: 0;
}

.object-page aside .content .fav-link {
    flex: 0 0 auto;
    width: 25px;
    height: 22px;
}

/* ── Страница «Избранное» ───────────────────────────────────────────────── */
.favorites-page h1 {
    margin-bottom: 10px;
}

.favorites-page .favorites-lead {
    max-width: 760px;
    margin-bottom: 10px;
    color: #718096;
    font-size: 16px;
    line-height: 24px;
}

.favorites-page .favorites-lead a {
    color: #ac31ff;
}

.favorites-page .index-catalog-block {
    padding-bottom: 30px;
}

/* Группы лежат вне общего .wrap страницы, поэтому у каждой свой —
   без этого заголовки и карточки прижимались к левому краю окна */
.favorites-page .index-catalog-block > .wrap {
    margin: 0 auto;
}

.favorites-page .index-catalog-block h2 {
    font-size: 24px;
    line-height: 30px;
    background: none;
    padding-right: 0;
}

.favorites-page .favorites-empty {
    max-width: 640px;
    margin: 20px 0 30px;
    padding: 30px;
    border-radius: 25px;
    background: #fff;
    color: #718096;
    font-size: 16px;
    line-height: 24px;
}

.favorites-page .favorites-links .bottom-link {
    display: inline-block;
    padding: 20px 30px;
    border-radius: 25px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}

.favorites-page .favorites-links .bottom-link:hover {
    box-shadow: inset 0 0 0 2px #ac31ff;
}

@media (max-width: 700px) {
    .favorites-page .favorites-empty {
        padding: 20px;
    }
}

/* ── Последние типы на новом дизайне (27.10.2026): карточка объявления,
      список объявлений, карточка места, вход, регистрация, 404. ─────────── */

/* Карточка объявления: «Что есть в квартире» — две колонки строк, как
   «Удобства и условия» в object3.html */
.private-page .about .private-char-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.private-page .about .private-char-list li {
    line-height: 22px;
}

.private-page .private-mail {
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
}

/* Цены в боковой колонке: подпись «Цена:» над плашками макета */
.private-page aside .private-prices-title {
    margin: 18px 0 8px;
    font-weight: 700;
}

.private-page aside .prices .item--empty {
    width: 100%;
    color: #718096;
}

.private-page aside .private-rate,
.private-page aside .private-share {
    margin-top: 18px;
    font-size: 14px;
    line-height: 22px;
}

.private-page aside .b-my-rate__title,
.private-page aside .share-title {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.private-page aside .private-complain {
    color: #e53e3e;
}

/* Комментарии к объявлению */
.private-comments__note {
    margin: 0 0 16px;
    font-size: 14px;
    color: #718096;
}

.private-comments__form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.private-comments__form[hidden] {
    display: none;
}

.private-comments__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 12px 0 20px;
}

.private-comments .review-item {
    margin-bottom: 18px;
}

.private-comments .review-author {
    margin-bottom: 6px;
    font-size: 14px;
    color: #718096;
}

/* Список объявлений: адрес под названием, текст о разделе под плиткой */
.privates-page .catalog .list .item .info .location {
    margin-bottom: 8px;
    font-weight: 700;
}

.privates-page .help-block {
    margin: 4px 0 0;
    color: #718096;
}

.privates-page .catalog-text {
    margin-top: 24px;
    padding: 25px 30px;
    border-radius: 25px;
    background: #fff;
    line-height: 24px;
}

.privates-page .catalog-text p {
    margin: 0;
}

/* Карточка места */
.place-page .about .help-block {
    margin: 0 0 18px;
    color: #718096;
}

.place-page .place-tags {
    margin: 18px 0;
}

.place-page .place-tags a {
    margin-right: 10px;
    font-weight: 700;
    color: #ac31ff;
    text-decoration: none;
}

.place-page .place-vote {
    margin: 18px 0;
    font-size: 16px;
    line-height: 26px;
}

.place-page .place-vote__title {
    margin-bottom: 6px;
    font-weight: 700;
}

.place-page .place-vote .good,
.place-page .place-vote .bad {
    font-weight: 700;
    cursor: pointer;
}

.place-page .place-vote .good { color: #38a169; }
.place-page .place-vote .bad { color: #e53e3e; }

.place-page .place-vote__msg {
    min-height: 22px;
    font-size: 14px;
    color: #718096;
}

.place-others__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.place-others__item {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    color: #1a202c;
    text-decoration: none;
}

.place-others__item img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.place-others__item span {
    display: block;
    padding: 10px 14px 14px;
    font-size: 14px;
    line-height: 20px;
}

.place-others__item:hover span {
    color: #ac31ff;
}

/* Вход и регистрация — карточка всплывающего окна, но в потоке страницы */
.auth-page .auth-modal__box {
    /* в окне ширина считается с полями, в потоке страницы без этого карточка
       на телефоне выходила шире экрана (431 при окне 390) */
    box-sizing: border-box;
    margin: 10px auto 0;
    max-height: none;
    box-shadow: none;
}

.auth-page__title {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 700;
}

.auth-page .auth-modal__form input[type='email'] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.auth-page__links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.auth-page__error {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fdf0f0;
    color: #8b0000;
}

.auth-page .auth-modal__note a {
    color: #ac31ff;
}

/* 404 */
.error-page__card {
    max-width: 600px;
    margin: 10px auto 0;
    text-align: center;
}

.error-page__code {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: #ac31ff;
}

.error-page__title {
    margin: 10px 0 18px;
    font-size: 24px;
}

.error-page__hint {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 400;
}

.error-page__search {
    display: flex;
    gap: 10px;
}

.error-page__search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
}

.error-page__search .auth-modal__submit {
    width: auto;
    padding: 0 24px;
}

.error-page__back {
    margin-top: 18px !important;
}

@media (max-width: 640px) {
    .private-page .about .private-char-list {
        grid-template-columns: 1fr;
    }

    .place-others__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .error-page__search {
        flex-direction: column;
    }

    .error-page__search .auth-modal__submit {
        width: 100%;
    }
}

/* Подпись у кнопки «Подать объявление» — текст прода, в строку с кнопками */
.privates-page .top-buttons .privates-owners {
    align-self: center;
    margin-right: 4px;
    font-size: 14px;
    color: #718096;
}

@media (max-width: 640px) {
    .privates-page .top-buttons .privates-owners {
        display: none;
    }
}

.private-page aside h2.private-prices-title {
    font-size: 16px;
    line-height: 22px;
}

/* Комнаты и спальные места в карточке объявления — строкой над названием */
.privates-page .catalog .list .item .info .apartment-chars {
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.privates-page .help-block + .top-buttons,
.privates-page .flex > div > .help-block {
    margin-bottom: 14px;
}

/* Статические страницы из таблицы pages (27.10.2026): текст из старой админки
   со своими заголовками и списками — даём ему отступы нового дизайна */
.static-page .static_page h1 {
    margin: 0 0 20px;
    font-size: 34px;
    line-height: 1.25;
}

.static-page .static_page h2,
.static-page .static_page h3 {
    margin: 24px 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.static-page .static_page ul,
.static-page .static_page ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.static-page .static_page li {
    margin-bottom: 6px;
}

.static-page .static_page img {
    max-width: 100%;
    height: auto;
}

.static-page .static_page table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.static-page .static_page a {
    color: #ac31ff;
}

/* «Информация для представителей» (/lp/index.html), 27.10.2026 */
.owners-page__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.owners-page__lead p {
    flex: 1 1 380px;
    margin: 0 !important;
    font-size: 18px;
}

.owners-page__cta {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 15px;
    background: #ac31ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
}

.owners-page__cta:hover {
    background: #9329db;
}

.owners-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.owners-page__grid .card {
    margin-bottom: 0;
}

.owners-page .card a:not(.owners-page__cta) {
    color: #ac31ff;
}

@media (max-width: 991px) {
    .owners-page__grid {
        grid-template-columns: 1fr;
    }
}

.auth-page__status {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #effaf3;
    color: #22543d;
}

/* Админка: добавление организации (/edit, 27.10.2026) — свёрнутая карточка над списком */
.admin-page .admin-new__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.admin-page .admin-new__head::-webkit-details-marker {
    display: none;
}

.admin-page .admin-new[open] .admin-new__head {
    margin-bottom: 18px;
}

.admin-page .admin-new .muted {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 18px;
}

/* Кабинет: правка объявления (/apartment/edit/{id}, 27.10.2026) */
.cabinet-page .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.private-edit__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.private-edit__actions {
    display: flex;
    gap: 6px;
}

.private-edit__actions form { display: inline; }

.private-edit__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.private-edit__flags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
}

.private-edit__prices { margin-bottom: 16px; }

.private-edit__price {
    display: grid;
    grid-template-columns: 130px 130px 130px auto 70px 1fr auto 70px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.private-edit__contact {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.private-edit__photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.private-edit__photo {
    position: relative;
}

.private-edit__photo img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
}

.private-edit__photo form {
    position: absolute;
    top: 6px;
    right: 6px;
}

.private-edit__photo .ib { background: #fff; }

.private-edit__upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cabinet-h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cabinet-page > .wrap > form > .submit,
.cabinet-form > .submit {
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .cabinet-page .g4,
    .private-edit__flags { grid-template-columns: 1fr 1fr; }

    .private-edit__price {
        grid-template-columns: 1fr 1fr 1fr;
        padding-bottom: 10px;
        border-bottom: 1px solid #edf0f4;
    }

    .private-edit__price .muted { display: none; }
}

@media (max-width: 600px) {
    .cabinet-page .g4,
    .private-edit__flags,
    .private-edit__contact { grid-template-columns: 1fr; }

    .private-edit__price { grid-template-columns: 1fr 1fr; }
}

/* Форма правки объявления — во всю ширину: общее правило кабинета (640px)
   рассчитано на короткие формы профиля, строка цен в нём не помещалась */
.cabinet-form.private-edit {
    max-width: none;
}

/* «Список всех регионов» (/index/regionslist), 27.10.2026 */
.regions-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 4 200px;
    column-gap: 30px;
}

.regions-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

/* Списки ссылок без подчёркивания: 98 подчёркнутых строк подряд рябят,
   подчёркивание — только при наведении */
.regions-list a,
.faq-page__toc a {
    color: #ac31ff;
    text-decoration: none;
}

.regions-list a:hover,
.faq-page__toc a:hover {
    text-decoration: underline;
}

.faq-page__answer a {
    color: #ac31ff;
}

/* «Частые вопросы» (/faq), 27.10.2026 */
.faq-page__toc ol {
    margin: 0;
    padding-left: 22px;
}

.faq-page__toc li {
    margin-bottom: 8px;
}

.faq-page__item {
    scroll-margin-top: 90px;
}

.faq-page__answer p {
    margin: 0 0 14px;
}

.faq-page__answer p:last-child {
    margin-bottom: 0;
}

.faq-page__answer img {
    max-width: 100%;
    height: auto;
}

/* Страница события (/{регион}/events/{alias}.html), 27.10.2026 — по verstka/event.html */
.event-facts {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    line-height: 26px;
}

.event-descr img {
    max-width: 100%;
    height: auto;
}

.event-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.event-photos img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.event-page aside .image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* ── Телефон: поля ввода и цели для пальца (обход 34 страниц на 390 px, 27.10.2026) ──
   iPhone сам увеличивает страницу, если в поле ввода шрифт меньше 16 px, и после
   ввода её приходится уменьшать пальцами. Было 14 px во всех формах: вход,
   регистрация, поиск, маршрут, отзыв, подбор. */
@media (max-width: 640px) {
    input[type='text'],
    input[type='email'],
    input[type='password'],
    input[type='number'],
    input[type='tel'],
    input[type='search'],
    input[type='date'],
    input:not([type]),
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Мелкие кнопки — 13–29 px: зону нажатия расширяем невидимой рамкой,
       сам значок не меняется */
    .fav-link,
    .route-findme,
    .place-vote .good,
    .place-vote .bad {
        position: relative;
    }

    .fav-link::after,
    .route-findme::after,
    .place-vote .good::after,
    .place-vote .bad::after {
        content: '';
        position: absolute;
        inset: -10px;
    }

    /* Галочки согласия в формах — 13 px, по ним не попасть */
    .auth-modal__check {
        width: 22px;
        height: 22px;
    }
}

/* Оценка 1–10 (турбаза, услуги, объявление) — 27.10.2026. На деве звёзды были
   только картинкой; теперь ставятся, как на проде. 10 кнопок по 26 px — на
   телефоне в строку 390 px помещаются, зона нажатия не меньше 26×30 */
.rate-box {
    margin: 10px 0 0;
}

.rate-box__title,
.object-page .gallery .ent-rate {
    margin-bottom: 4px;
    color: #718096;
    font-size: 14px;
}

.rate-widget__stars {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.rate-widget__star {
    width: 26px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.rate-widget__star::before {
    content: '★';
    color: #d5d9e0;
    font-size: 22px;
    line-height: 30px;
}

.rate-widget__star.is-on::before {
    color: #ac31ff;
}

.rate-widget__msg {
    min-height: 18px;
    color: #718096;
    font-size: 13px;
}

.rate-widget__msg a {
    color: #ac31ff;
}

/* ── Телефон: замечания обхода 34 страниц (27.10.2026) ── */
/* Кнопка фильтра рейтингов: правило макета «первая кнопка — Показать на карте»
   дописывало к ней этот текст, и он рвался на три строки поверх значка */
.catalog-page .top-buttons button.filter-button::before {
    content: none;
}

/* Пустые заглушки списков — белой карточкой, а не голым текстом на сером фоне */
.catalog-page .catalog > .catalog-empty,
.catalog-page .catalog > p.catalog-empty {
    margin: 0 0 20px;
    padding: 25px 30px;
    border-radius: 25px;
    background: #fff;
}

/* Капча не прилипает к кнопке «Зарегистрироваться» */
.g-recaptcha {
    margin: 10px 0 16px;
}

@media (max-width: 700px) {
    /* «В регионе:» + список + «Добавить …» на витринах: подпись в одну строку,
       список на всю ширину, кнопка под ним тоже на всю ширину */
    .index-catalog-block .top-buttons .sel-region,
    .index-events-block .select .sel-region {
        display: flex;
        width: 100%;
        margin: 0 0 10px;
    }

    .index-catalog-block .top-buttons .sel-region label,
    .index-events-block .select .sel-region label {
        white-space: nowrap;
    }

    .index-catalog-block .top-buttons .sel-region .jq-selectbox,
    .index-events-block .select .sel-region .jq-selectbox {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .index-catalog-block .top-buttons a.add-button,
    .index-catalog-block .top-buttons a.sel-region-link {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 0 10px;
        box-sizing: border-box;
    }

    /* Форма отзыва: месяц и год — пополам на всю ширину, а не обрезками */
    .review-form__row_inline {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .review-form__row_inline label {
        width: 100%;
    }

    .review-form__row_inline .jq-selectbox,
    .review-form__row_inline select {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Внутренняя часть списка formstyler — по ширине самого списка, иначе на 6 px за краем */
    .review-form__row_inline .jq-selectbox__select {
        box-sizing: border-box;
        width: 100%;
    }

    /* Длинные названия в карточках мест не упираются в край */
    .place-others__item span {
        padding-right: 10px;
        overflow-wrap: anywhere;
    }
}

.object-page aside .content .rate-box {
    margin: 0 0 16px;
}

/* Официальный ответ владельца под отзывом (27.10.2026) */
.review-answer {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 15px;
    background: #f5f0ff;
    color: #1f2430;
    font-size: 15px;
    line-height: 22px;
}

.review-answer .off_ans_title {
    color: #ac31ff;
}


/* Кабинет пользователя: карточки организаций, мест и событий вместо таблицы админки (05.11.2026) */
.cab-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e6e8ef;
}
.cab-item:last-child { border-bottom: 0; }
.cab-item__photo {
    flex: 0 0 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.cab-item__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cab-item__nophoto { font-size: 28px; color: #b8bccb; }
.cab-item__body { flex: 1 1 auto; min-width: 0; }
.admin-page .cab-item__name { font-weight: 600; font-size: 17px; color: inherit; text-decoration: none; }
.admin-page .cab-item__name:hover { color: var(--accent, #8b2cf5); }
.cab-item__meta { color: #7a7f93; font-size: 14px; margin-top: 4px; }
.cab-item__state {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #f1f2f6;
    color: #5b6075;
}
.cab-item__state_live { background: #e3f6ea; color: #1f7a45; }
.cab-item__state_moderating { background: #fff4dc; color: #8a6200; }
.cab-item__state_declined { background: #fde8e8; color: #b42318; }
.cab-item__reason { margin-top: 6px; font-size: 14px; color: #b42318; }

.cab-item__tools { display: flex; gap: 4px; flex: 0 0 auto; }
@media (max-width: 640px) {
    .cab-item { flex-wrap: wrap; }
    .cab-item__photo { flex-basis: 88px; height: 66px; }
    .cab-item__body { flex-basis: calc(100% - 104px); }
    .cab-item__tools { flex-basis: 100%; padding-left: 104px; }
}

/* «Счёт»: подпись, значение и ссылка рядом, а не по краям экрана (05.11.2026) */
.cabinet-page table.billing-compact { width: auto; max-width: 100%; }
.cabinet-page table.billing-compact td { padding-right: 48px; }
.cabinet-page table.billing-compact .billing-val,
.cabinet-page table.billing-compact .billing-act { width: auto; }
@media (max-width: 640px) {
    .cabinet-page table.billing-compact { width: 100%; }
    .cabinet-page table.billing-compact td { padding-right: 12px; }
}

/* Фото мест и событий с подписью автора (05.11.2026) */
.place-photos { margin: 16px 0 20px; }
.place-photos figure { margin: 0; }
.place-photos__main img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; display: block; }
.place-photos figcaption { font-size: 12px; color: #7a7f93; margin-top: 4px; }
.place-photos__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.place-photos__thumbs img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; display: block; }
.place-photos__thumbs figcaption { font-size: 11px; line-height: 1.3; }
.place-photos__rights { font-size: 12px; color: #7a7f93; margin-top: 10px; }
.object-page aside .place-photos { margin-top: 0; }

/* Блок «Фотографии» в правке места и события */
.pp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pp-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; }
.pp-credit { font-size: 13px; margin-top: 6px; }
.pp-state { font-size: 12px; margin-top: 2px; }
.pp-tools { display: flex; gap: 4px; margin-top: 4px; }
.pp-tools form { display: inline; }
.pp-proof { font-size: 11px; margin-top: 4px; }
.admin-page .pp-radio { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; margin: 6px 0; color: inherit; }
.admin-page .pp-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin: 4px 0 16px; text-transform: none; letter-spacing: 0; font-weight: 400; color: inherit; }
.admin-page .pp-terms input, .admin-page .pp-radio input { width: auto; flex: 0 0 auto; margin-top: 3px; }

/* Кабинет пользователя: основная часть + колонка справа (баланс, продвижение) — 05.11.2026 */
.cab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cab-main { min-width: 0; }
.cab-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.admin-page .cab-aside .card { margin: 0; }
.cab-aside__label { font-size: 13px; color: #7a7f93; }
.cab-aside__money { font-size: 30px; font-weight: 700; margin: 4px 0; }
.cab-aside__money span { font-size: 16px; font-weight: 600; color: #7a7f93; }
.cab-aside__sub { font-size: 13px; color: #7a7f93; line-height: 1.45; margin: 4px 0 10px; }
.cab-aside__link { font-size: 14px; font-weight: 600; }
.cab-aside__title { font-size: 18px; font-weight: 700; }
.cab-promo { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #eceef4; }
.cab-promo__icon { flex: 0 0 36px; height: 36px; border-radius: 10px; background: #f3ecff; color: #8b2cf5; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cab-promo__name { font-weight: 600; font-size: 15px; }
.cab-promo__soon { font-size: 11px; font-weight: 600; color: #8a6200; background: #fff4dc; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.cab-promo__what { font-size: 13px; color: #7a7f93; line-height: 1.4; margin-top: 2px; }
@media (max-width: 1024px) {
    .cab-layout { grid-template-columns: minmax(0, 1fr); }
    .cab-aside { position: static; }
}

.admin-page a.cab-promo { color: inherit; text-decoration: none; }
.admin-page a.cab-promo:hover .cab-promo__go { text-decoration: underline; }
.cab-promo__name, .cab-promo__what, .cab-promo__go { display: block; }
.cab-promo__go { font-size: 13px; font-weight: 600; color: #8b2cf5; margin-top: 4px; }
.promo-days { display: flex; gap: 20px; flex-wrap: wrap; }
.promo-row { padding: 10px 0; border-top: 1px solid #eceef4; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.promo-row .cab-item__state { margin-top: 0; }
.promo-row > .muted:last-child { flex-basis: 100%; }

/* Контакты в заявках (05.11.2026) */
.contact-fields { border: 0; padding: 0; margin: 8px 0 12px; min-width: 0; }
.contact-fields legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 4px; }
@media (max-width: 640px) { .contact-fields .g3 { grid-template-columns: minmax(0, 1fr); } }
.promo-contact { display: inline-block; margin-right: 12px; font-size: 13px; }
.contact-fields > .muted { margin: 2px 0 12px; }
.cabinet-page .contacts-hint { margin: 0 0 18px; }
/* Заявка: поле комментария выше, кнопка отделена от текста (05.11.2026) */
.cabinet-page #promo-comment { min-height: 130px; resize: vertical; }
.cabinet-page .promo-send { margin-top: 16px; }
/* Мини-карточка «Что продвигаем» (05.11.2026) */
.promo-preview { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 12px; border: 1px solid #e6e8ef; border-radius: 14px; max-width: 640px; }
.promo-preview__photo { flex: 0 0 96px; height: 72px; border-radius: 10px; overflow: hidden; background: #f1f2f6; display: flex; align-items: center; justify-content: center; color: #b8bccb; font-size: 24px; }
.promo-preview__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-preview__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.promo-preview__name { font-weight: 600; font-size: 15px; }
.promo-preview__meta { font-size: 13px; color: #7a7f93; }

/* Пользователи и роли (05.11.2026) */
.roles-help { display: grid; gap: 6px; font-size: 14px; margin-bottom: 16px; padding: 12px 14px; background: #f6f7fb; border-radius: 12px; }

/* Модерация: причина отказа рядом с кнопками (05.11.2026) */
.admin-page .mod-form { display: flex; gap: 6px; align-items: center; }
.admin-page .mod-reason { flex: 1; min-width: 160px; padding: 8px 10px; font-size: 13px; }
.admin-page .mod-cell { display: flex; gap: 6px; align-items: center; }
.admin-page .mod-cell .mod-form { flex: 1; }

/* Мастер подачи объявления — 5 шагов (05.11.2026) */
.wiz-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.admin-page .wiz-step { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; }
.wiz-step__n { width: 26px; height: 26px; border-radius: 50%; background: #eceef4; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wiz-step.is-done .wiz-step__n { background: #e3f6ea; color: #1f7a45; }
.wiz-step.is-todo .wiz-step__n { background: #fff4dc; color: #8a6200; }
.admin-page .wiz-step.is-on { background: #8b2cf5; color: #fff; }
.wiz-step.is-on .wiz-step__n { background: #fff; color: #8b2cf5; }
.wiz-addr { display: flex; gap: 8px; align-items: center; }
.wiz-addr input { flex: 1; }
.wiz-hint { margin: 2px 0 8px; }
.wiz-map { width: 100%; height: 360px; border-radius: 14px; overflow: hidden; background: #f1f2f6; }
.wiz-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 24px; }
.admin-page .submit_ghost { background: #fff; color: #8b2cf5; box-shadow: inset 0 0 0 2px #8b2cf5; }
.wiz-review { display: flex; flex-direction: column; }
.wiz-review__row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #eceef4; }
.wiz-review__label { font-weight: 600; }
.wiz-review__row.is-todo .wiz-review__value b { color: #b42318; font-weight: 600; }
.wiz-warn { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff4dc; color: #6b4d00; font-size: 14px; }
.wiz-send { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) {
    .wiz-step__t { display: none; }
    .admin-page .wiz-step.is-on .wiz-step__t { display: inline; }
    .wiz-map { height: 280px; }
    .wiz-review__row { grid-template-columns: minmax(0, 1fr) auto; }
    .wiz-review__label { grid-column: 1 / -1; }
}
.wiz-addr .ib { font-size: 22px; width: 44px; height: 44px; }
.sub-photos { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eceef4; }
.sub-photos > b { display: block; margin-bottom: 8px; }

/* ===== Шаг 8 кабинета (06.11.2026): правки после проверки на телефоне ===== */
/* Кнопка отправки в карточке: длинная надпись не вылезает за кнопку */

/* Почта: строки-карточки вместо таблицы в три колонки */
.cabinet-page a.mail-row { display: block; padding: 14px 0; border-bottom: 1px solid #eceef3; color: inherit; text-decoration: none; }
.cabinet-page a.mail-row:last-child { border-bottom: 0; }
.cabinet-page a.mail-row:hover b { color: var(--accent, #8b2cf5); }
.mail-row__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail-row__date { margin-left: auto; font-size: 14px; }
.mail-row__text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }
.mail-row.is-unread .mail-row__text { color: inherit; }

/* Счёт и операции на телефоне: строки таблицы — столбиком, ничего не обрезается */
@media (max-width: 640px) {
    .cabinet-page table.billing-compact, .cabinet-page table.billing-compact tbody,
    .cabinet-page table.billing-compact tr, .cabinet-page table.billing-compact td { display: block; width: 100%; }
    .cabinet-page table.billing-compact tr { padding: 10px 0; border-bottom: 1px solid #eceef3; }
    .cabinet-page table.billing-compact td { padding: 2px 0; border: 0; }
    .cabinet-page table.log-table, .cabinet-page table.log-table tbody,
    .cabinet-page table.log-table tr, .cabinet-page table.log-table td { display: block; width: 100%; }
    .cabinet-page table.log-table tr:first-child { display: none; }
    .cabinet-page table.log-table tr { padding: 8px 0; border-bottom: 1px solid #eceef3; }
    .cabinet-page table.log-table td { padding: 2px 0 !important; text-align: left !important; border: 0; }
    .cabinet-page table.log-table td[data-label]::before { content: attr(data-label) ': '; color: #7a7f93; font-size: 13px; }
    .cabinet-page table.log-table td[colspan]::before { content: none; }
}
/* Номера и цены на телефоне: форма сезона в две колонки, таблица цен без обрезки */
@media (max-width: 640px) {
    .admin-page .season-grid { grid-template-columns: 1fr 1fr !important; }
    .admin-page .season-grid > .field:first-child { grid-column: 1 / -1; }
    .admin-page .season-grid > :last-child { grid-column: 1 / -1; }
    .admin-page table.price-table th { width: auto !important; font-size: 12px; }
    .admin-page table.price-table input { min-width: 0; width: 100%; }
}
/* Цены номера по сезонам — сетка вместо таблицы */
.admin-page .price-rows { margin-top: 14px; }
.admin-page .price-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eceef3; margin: 0; }
.admin-page .price-row_head { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7a7f93; }
.admin-page .price-row input[type=text] { width: 100%; min-width: 0; }
@media (max-width: 640px) { .admin-page .price-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 40px; } }

/* Пополнение счёта: готовые суммы и своя (09.11.2026) */
.refill-sums { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.refill-sum { padding: 9px 16px; border: 1px solid #d9dce6; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.refill-sum:hover { border-color: #8b2cf5; }
.refill-sum.is-on { border-color: #8b2cf5; background: #f3ecff; color: #6a1fc0; }
.cabinet-form .refill-amount { max-width: 220px; }
.cab-aside__card .cab-aside__link { display: block; margin-top: 6px; }

/* «Продвинуть» у объявления в кабинете: поднять, выделить, комбо (09.11.2026) */
.cab-item__promo { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.cab-item__promo-label { font-size: 13px; font-weight: 600; color: #7a7f93; margin-right: 2px; }
.admin-page a.cab-item__promo-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: #f3ecff; color: #8b2cf5; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.admin-page a.cab-item__promo-btn:hover { background: #8b2cf5; color: #fff; }
/* Отправка на проверку — значок с заливкой, заметнее серых */
.cab-item__send { margin: 0; display: inline-flex; }
.admin-page .cab-item__tools .ib_send { background: #8b2cf5; color: #fff; border-radius: 10px; }
.admin-page .cab-item__tools .ib_send:hover { background: #6a1fc0; color: #fff; }
.cab-promo__icon_combo { font-size: 13px; letter-spacing: -1px; }

/* «Добавить фото» вместо голого поля файла (09.11.2026). Поле спрятано, но в форме — required работает */
.photo-pick { position: relative; width: 100%; }
.photo-pick__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
/* .photo-pick впереди — иначе перебивает .admin-page label (блочная, заглавные, 12px) */
.photo-pick .photo-pick__zone { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed #d6c4f7; border-radius: 16px; background: #faf7ff; cursor: pointer; transition: border-color .15s, background .15s; text-transform: none; letter-spacing: 0; margin: 0; font-size: 15px; font-weight: 400; color: #111827; }
.photo-pick .photo-pick__zone:hover, .photo-pick .photo-pick__zone.is-over, .photo-pick .photo-pick__input:focus-visible + .photo-pick__zone { border-color: #8b2cf5; background: #f3ecff; }
.photo-pick__zone.is-busy { opacity: .6; pointer-events: none; }
.photo-pick__plus { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #8b2cf5; color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.photo-pick__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.photo-pick__title { font-weight: 700; font-size: 16px; color: #111827; }
.photo-pick__hint { font-size: 13px; color: #7a7f93; font-weight: 400; }
.photo-pick__chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.photo-pick__chosen img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.photo-pick__count { font-size: 14px; font-weight: 600; flex-basis: 100%; }

/* «Пополнить счёт» сразу суммами — в колонке кабинета и на «Счёте» (09.11.2026) */
.cab-aside__refill { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.cab-aside__refill-label { flex-basis: 100%; font-size: 14px; font-weight: 600; }
.billing-refill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-page a.refill-chip { display: inline-block; padding: 5px 10px; border: 1px solid #d6c4f7; border-radius: 9px; background: #faf7ff; color: #6a1fc0; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.admin-page a.refill-chip:hover { border-color: #8b2cf5; background: #f3ecff; }
.admin-page a.refill-chip_other { border-style: dashed; background: #fff; font-weight: 500; }
@media (max-width: 640px) {
    .cab-item__promo-label { flex-basis: 100%; }
}

/* Номера: цена за сутки — короткое поле (09.11.2026) */
.admin-page .room-price input { max-width: 220px; }

/* Предпросмотр карточки (09.11.2026) */
.preview-bar { background: #8b2cf5; color: #fff; padding: 12px 0; font-size: 15px; }
.preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.preview-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.wiz-step_preview { margin-left: auto; }

/* Рисованные значки (partials/icons) в кнопках-значках: по центру, цвет от кнопки (09.11.2026) */
.ib .ico, .wiz-step .ico { display: block; width: 18px; height: 18px; }
.admin-page .ib:has(.ico) { display: inline-flex; align-items: center; justify-content: center; }
.wiz-step_preview .wiz-step__n { display: inline-flex; align-items: center; justify-content: center; }

/* Подсказки адреса под полем, как у Яндекса (09.11.2026) */
.addr-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: #fff; border: 1px solid #e3e5ec; border-radius: 12px; box-shadow: 0 10px 30px rgba(17, 24, 39, .12); overflow: hidden; }
.addr-suggest__item { padding: 9px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.addr-suggest__item b { font-weight: 600; font-size: 15px; color: #111827; }
.addr-suggest__item span { font-size: 13px; color: #7a7f93; }
.addr-suggest__item:hover, .addr-suggest__item.is-on { background: #f3ecff; }

/* Контурные значки (partials/icon) в кнопках и плашках продвижения (09.11.2026) */
.cab-promo__icon .ico { width: 18px; height: 18px; }
.admin-page a.cab-item__promo-btn .ico { width: 17px; height: 17px; }
.admin-page .ib .ico { margin: 0 auto; }

/* «Сети»: список /network и страница сети (18.11.2026) */
.network-page h1 { margin-bottom: 24px; }
.network-list { background: #fff; border-radius: 25px; padding: 24px 24px 24px 56px; margin: 0 0 20px; line-height: 1.9; list-style: decimal; }
.network-list li { list-style: decimal; }
.network-list a { color: inherit; text-decoration: none; }
.network-pager a { text-decoration: none; font-weight: 600; }
.network-info { background: #fff; border-radius: 25px; }
.network-list a:hover { color: #9333ea; }
.network-list__count { color: #6b7280; font-size: 14px; }
.network-pager { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.network-info { display: flow-root; padding: 24px; margin-bottom: 24px; }
.network-info__logo { float: left; margin: 0 20px 12px 0; max-width: 160px; height: auto; }
.network-info__contacts ul { margin: 8px 0 0; padding-left: 20px; }
.network-page .catalog { width: 100%; }
.apart-chain { margin: 6px 0 10px; font-size: 14px; color: #6b7280; }
.apart-chain a { font-weight: 600; }
@media (max-width: 767px) {
    .network-list { padding: 16px 16px 16px 40px; }
    .network-info__logo { float: none; display: block; margin: 0 0 12px; }
}

/* «Сообщить об ошибке на карте» (18.11.2026) */
.report-map { width: 100%; height: 420px; border-radius: 25px; overflow: hidden; margin: 16px 0; }
.report-map-form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
.report-map-back { text-decoration: none; }
/* Кнопка «Отправить» под картой — по размеру надписи, а не на всю ширину (Юлия 20.11.2026) */
.report-map-form .auth-modal__submit { width: auto; padding: 0 40px; }
@media (max-width: 767px) { .report-map { height: 320px; } }

/* Форма жалобы: поле текста и список — как поля ввода карточки входа (18.11.2026) */
.auth-page .auth-modal__form textarea,
.auth-page .auth-modal__form select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #f1f3f6;
    font: inherit;
    color: inherit;
    resize: vertical;
}
.auth-page .auth-modal__form .g-recaptcha { margin-bottom: 16px; }

/* Отзыв о закрытой карточке: название зачёркнуто, «удалена с сайта» — как на проде (18.11.2026) */
.review-gone { text-decoration: line-through; color: #6b7280; font-weight: 600; }
.review-gone__note { font-size: 12px; color: #9b4a3f; margin-left: 4px; }

/* Форма отзыва на карточке объекта (перенос reviews.phtml прода, 20.11.2026) */
.object-page .review-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 20px 0 10px; }
.object-page .review-form label { font-weight: 600; }
.object-page .review-form__when { display: flex; gap: 10px; }
.object-page .review-form select { height: 40px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
.object-page .review-form textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 15px; font: inherit; resize: vertical; }
.object-page .review-form__btn { height: 50px; padding: 0 40px; border: 0; border-radius: 15px; background: #ac31ff; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }
.object-page .review-form__btn:hover { background: #9329db; }
.object-page .review-form__btn:disabled { opacity: .5; cursor: default; }
.object-page #comment_form_cont .small_red_link { display: inline-block; margin-bottom: 10px; color: #e53e3e; cursor: pointer; }
.object-page .review_vote .good, .object-page .review_vote .bad { cursor: pointer; text-decoration: underline; }
.object-page .b-vote-form__rate { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 20px; }
.object-page .b-vote-form__rate-title { font-weight: 600; }
.object-page .review-voted-note { margin: 15px 0 0; padding: 14px 18px; border-radius: 15px; background: #f3e8ff; color: #111827; font-weight: 600; }

/* Объявление: правая колонка без лишних рамок (Юлия 20.11.2026).
   Плашка цен в макете с отступом 180px снизу — под ней была пустота;
   «Поделиться» — кнопки как сердечко избранного, без серой подложки вокруг;
   «Пожаловаться» — просто красная ссылка */
.private-page aside .content .prices { padding-bottom: 0; }
.private-page aside .private-complain-wrap { margin-top: 18px; font-size: 14px; }

/* «Поделиться» по макету (verstka/place.html): цветные иконки 30×30 в ряд, без подложек */
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.share a { display: block; line-height: 0; transition: opacity .15s; }
.share a:hover { opacity: .8; }
.share img { width: 30px; height: 30px; }

/* Объявление: плашка цены по ширине текста, «сутки, 1 Январь - 31 Декабрь» в одну строку (Юлия 20.11.2026) */
.private-page aside .content .prices { gap: 0 3%; }
.private-page aside .content .prices .item { width: auto; min-width: 48.5%; max-width: 100%; white-space: nowrap; }

/* Жалоба окном поверх объявления (20.11.2026): поля как на странице жалобы */
.complain-modal .auth-modal__box { width: min(480px, 100%); }
.complain-modal__title { margin: 0 30px 18px 0; font-size: 24px; line-height: 30px; }
.complain-modal__done { margin: 0; font-weight: 600; }
.complain-modal .auth-modal__form textarea,
.complain-modal .auth-modal__form select {
    display: block; width: 100%; box-sizing: border-box; margin-bottom: 16px;
    padding: 14px 18px; border: 0; border-radius: 15px; background: #f1f3f6; font: inherit;
}
.complain-modal .auth-modal__form textarea { resize: vertical; }
.complain-modal__captcha { margin: 4px 0 12px; }

/* Раскрывающиеся списки в формах: своя стрелка с отступом от края,
   а не системная, прижатая вплотную к скруглению (Юлия 20.11.2026) */
.auth-page .auth-modal__form select,
.complain-modal .auth-modal__form select {
    -webkit-appearance: none; appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}
