/* Realty theme: layout and components (по макетам 13_index / 05_pod_category / 14_zapis) */

:root {
    --rt-ink: #16283a;
    --rt-body: #33475a;
    --rt-muted: #6b7a8a;
    --rt-line: #e5e9ee;
    --rt-bg: #f4f7fa;
    --rt-accent: #2f9fb0;
    --rt-accent-d: #25808f;
    --rt-blue: #1f7fd0;
    --rt-blue-d: #1668ab;
    --rt-danger: #e8443a;
    --rt-dark: #16283a;
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* Обёртка, которая рисует фон во всю ширину окна, не ломая раскладку. */
.rt-bleed {
    position: relative;
    z-index: 0;
}
.rt-bleed::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--rt-bleed-bg, transparent);
    z-index: 0;
}
.rt-bleed > * {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------------ Header */

.icms-header__middle {
    background: #fff;
    border-bottom: 1px solid var(--rt-line);
    padding: 18px 0;
}
.icms-header__middle .container {
    padding-left: 30px;
    padding-right: 30px;
}
/* Нижняя шапка отдана меню на акцентной подложке. Штатный border-bottom
   контейнера даёт светлую полосу между меню и тёмным блоком фильтра. */
.icms-header__bottom.border-bottom {
    border-bottom: 0 !important;
}
.icms-header__middle .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.icms-header__middle .navbar-brand img {
    max-height: 48px;
    width: auto;
}
/* В теме нет файлов логотипа, показываем квадрат-заглушку и название. */
.icms-header__middle .navbar-brand img {
    display: none !important;
}
.icms-header__middle .navbar-brand::before {
    content: "АН";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--rt-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}
.icms-header__middle .navbar-brand::after {
    content: "Агентство недвижимости";
    font-size: 20px;
    font-weight: 700;
    color: var(--rt-ink);
    white-space: nowrap;
}
.icms-header__middle .menu-header {
    align-items: center;
    gap: 6px;
}
.icms-header__middle .nav-link {
    color: var(--rt-ink);
    font-size: 15px;
    padding: 8px 10px;
}
.icms-header__middle .nav-link:hover {
    color: var(--rt-accent);
}
@media (max-width: 991px) {
    .icms-header__middle .container {
        flex-wrap: wrap !important;
        row-gap: 8px;
    }
    .icms-header__middle .navbar-brand {
        min-width: 0;
    }
    .icms-header__middle .navbar-brand::before {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .icms-header__middle .navbar-brand::after {
        font-size: 17px;
        white-space: normal;
    }
}
@media (max-width: 575px) {
    .icms-header__middle .menu-header .nav-item-text {
        display: none;
    }
    .icms-header__middle .nav-link {
        padding: 6px 8px;
    }
}

/* Контакты в верхней строке шапки: виджет меню переносит блок в .icms-header__middle */
.rt-headcontacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: var(--rt-muted);
    font-size: 14px;
}
.rt-headcontacts__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 20px;
}
.rt-headcontacts__item {
    color: var(--rt-muted);
    text-decoration: none;
    white-space: nowrap;
}
a.rt-headcontacts__item:hover {
    color: var(--rt-accent);
}
.rt-headcontacts__socials {
    display: flex;
    gap: 6px;
}
.rt-headcontacts__socials a {
    border: 1px solid #cfd8e0;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--rt-muted);
    text-decoration: none;
}
.rt-headcontacts__socials a:hover {
    border-color: var(--rt-accent);
    color: var(--rt-accent);
}
@media (max-width: 991px) {
    .rt-headcontacts {
        width: 100%;
        flex: 1 1 100%;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 13px;
        padding: 2px 0 4px;
        max-width: 100%;
    }
    .rt-headcontacts__row {
        justify-content: center;
        gap: 2px 14px;
    }
}

/* Плавающая кнопка входа / профиля */
.icms-header__middle .ml-auto {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1060;
    margin-left: 0;
    max-width: calc(100vw - 40px);
    background: var(--rt-blue);
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 12px 28px rgba(22, 40, 58, .24);
}
.icms-header__middle .ml-auto .nav-link {
    color: #fff;
}
.icms-header__middle .ml-auto .nav-link:hover {
    color: #fff;
    opacity: .85;
}
.icms-header__middle .ml-auto .dropdown-menu {
    top: auto;
    bottom: calc(100% + 10px);
    left: auto;
    right: 0;
}
@media (max-width: 575px) {
    .icms-header__middle .ml-auto {
        right: 12px;
        bottom: 12px;
        padding: 4px 8px;
    }
}

/* Меню */
.rty-menu {
    --rt-bleed-bg: var(--rt-blue);
    background: transparent;
    border: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    color: #fff;
}
.rty-menu__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
}
.rty-menu__brand {
    display: none;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.rty-menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.rty-menu__item {
    position: relative;
}
.rty-menu__link {
    display: block;
    padding: 14px 10px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
}
.rty-menu__item.is-active > .rty-menu__link,
.rty-menu__link:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
.rty-menu__sub {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    list-style: none;
    margin: 0;
    padding: 6px;
    display: none;
    z-index: 1040;
}
.rty-menu__sub .rty-menu__link {
    color: var(--rt-ink);
    padding: 9px 12px;
    border-radius: 6px;
    white-space: normal;
    font-size: 14px;
}
.rty-menu__sub .rty-menu__link:hover {
    background: var(--rt-bg);
    color: var(--rt-accent);
}
.rty-menu__item.has-childs:hover > .rty-menu__sub,
.rty-menu__item.has-childs.is-open > .rty-menu__sub {
    display: block;
}
.rty-menu__sub .rty-menu__sub {
    left: 100%;
    top: 0;
}
.rty-menu__toggle,
.rty-menu__toggle-sub {
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
}
.rty-menu__toggle {
    display: none;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    margin-left: auto;
}
.rty-menu__toggle-sub {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
}
.rty-menu__toggle-sub::after {
    content: "▾";
    font-size: 12px;
}
@media (min-width: 992px) {
    .rty-menu__item.has-childs > .rty-menu__link {
        padding-right: 26px;
    }
    /* Активный пункт внутри подменю: общий стиль .is-active красит текст в
       белый, а подложка подменю белая, поэтому пункт пропадает. Подсвечиваем
       акцентом на светлой подложке. */
    .rty-menu__sub .rty-menu__item.is-active > .rty-menu__link {
        background: var(--rt-bg);
        color: var(--rt-accent);
    }
    .rty-menu__toggle-sub {
        right: 6px;
    }
    .rty-menu__toggle-sub::after {
        content: "▾";
    }
}
@media (max-width: 991px) {
    .rty-menu__brand {
        display: block;
    }
    .rty-menu__toggle {
        display: block;
    }
    .rty-menu__inner {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    .rty-menu__list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
    }
    .rty-menu.is-open > .rty-menu__inner > .rty-menu__list {
        display: flex;
    }
    .rty-menu__link {
        padding: 12px 4px;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
    .rty-menu__sub {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, .12);
        padding: 4px 0 4px 16px;
    }
    .rty-menu__sub .rty-menu__link {
        color: #fff;
        border-top: 0;
        padding: 9px 4px;
    }
    .rty-menu__sub .rty-menu__link:hover {
        background: transparent;
        color: #fff;
        text-decoration: underline;
    }
    .rty-menu__item.has-childs.is-open > .rty-menu__sub {
        display: flex;
        flex-direction: column;
    }
}

/* ------------------------------------------------------------------ Filter */

/* Единая сетка: все поля формы выстраиваются в один поток, смысловые
   группы не создают отдельных рядов. Это даёт ровные 2 ряда на наборе
   из 5-8 полей, включая динамически появляющиеся. */
.rt-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 16px 20px;
    margin: 0;
    text-align: left;
}

/* Обёртки полей, групп и их заголовки раскрываются в общий поток. */
.rt-filter__fields,
.rt-filter__group,
.rt-filter__group-fields {
    display: contents;
}
.rt-filter__group-title {
    display: none;
}

/* Поле: подпись сверху, контрол снизу. */
.rt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.rt-field__label {
    font-size: 13px;
    color: inherit;
    opacity: .75;
    margin: 0;
}

.rt-filter select,
.rt-filter input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 40px 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .97);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='7'><path d='M0 0l5.5 6L11 0' fill='none' stroke='%236b7a8a' stroke-width='1.6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-size: 15px;
    color: var(--rt-ink);
    appearance: none;
    -webkit-appearance: none;
}
.rt-filter input[type="text"] {
    background-image: none;
    padding-right: 14px;
}
.rt-filter select:focus,
.rt-filter input[type="text"]:focus {
    outline: 0;
    border-color: var(--rt-accent);
    box-shadow: 0 0 0 3px rgba(47, 159, 176, .35);
}

/* Диапазон «от / до». */
.rt-range {
    display: flex;
    gap: 8px;
}
.rt-range input[type="text"] {
    flex: 1 1 0;
}

/* «Количество комнат» и «Тип сделки» — сегментные кнопки. */
.rt-field [data-el="param4"],
.rt-field [data-el="deal"] {
    display: none;
}
.rt-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.rt-seg:empty {
    display: none;
}
.rt-seg__btn {
    flex: 1 1 auto;
    min-width: 38px;
    height: 46px;
    padding: 0 11px;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #eef1f4;
    color: var(--rt-ink);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.rt-seg__btn:hover {
    background: #e4e9ee;
}
.rt-seg__btn:focus {
    outline: 0;
}
.rt-seg__btn:focus-visible {
    outline: 2px solid var(--rt-accent);
    outline-offset: 2px;
}
.rt-seg__btn.is-active {
    border-color: var(--rt-accent);
    background: #fff;
    font-weight: 600;
}

/* Select2 под стиль темы. */
.rt-filter .select2-container {
    width: 100% !important;
}
.rt-filter .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .97);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='7'><path d='M0 0l5.5 6L11 0' fill='none' stroke='%236b7a8a' stroke-width='1.6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.rt-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding: 0 40px 0 14px;
    color: var(--rt-ink);
    font-size: 15px;
}
.rt-filter .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--rt-muted);
}
.rt-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}
.rt-filter .select2-container--default.select2-container--focus .select2-selection--single,
.rt-filter .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--rt-accent);
    box-shadow: 0 0 0 3px rgba(47, 159, 176, .35);
}
.select2-dropdown {
    border: 1px solid var(--rt-line);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .18);
    overflow: hidden;
}
.select2-search--dropdown {
    padding: 8px;
}
.select2-search--dropdown .select2-search__field {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--rt-line);
    border-radius: 8px;
    font-size: 15px;
    outline: 0;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--rt-accent);
}
.select2-container--default .select2-results > .select2-results__options {
    max-height: 280px;
    padding: 6px;
}
.select2-container--default .select2-results__option {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--rt-ink);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--rt-accent);
    color: #fff;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--rt-bg);
    color: var(--rt-ink);
    font-weight: 600;
}

/* Мультивыбор «Тип продажи» */
.rt-ms {
    position: relative;
}
.rt-ms__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, .97);
    font-size: 15px;
    color: var(--rt-ink);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease;
}
.rt-ms.is-open .rt-ms__toggle,
.rt-ms__toggle:hover {
    border-color: var(--rt-accent);
}
.rt-ms__summary {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rt-ms__count {
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rt-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}
.rt-ms__count[hidden] {
    display: none;
}
.rt-ms__angle {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 1.6px solid var(--rt-muted);
    border-bottom: 1.6px solid var(--rt-muted);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .15s ease;
}
.rt-ms.is-open .rt-ms__angle {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.rt-ms__panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .18);
    padding: 6px;
    display: none;
}
.rt-ms.is-open .rt-ms__panel {
    display: block;
}
.rt-ms__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--rt-ink);
    cursor: pointer;
}
.rt-ms__opt:hover {
    background: var(--rt-bg);
}
.rt-ms__opt input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--rt-accent);
}

/* Кнопки. */
.rt-filter__actions {
    grid-column: -2 / -1;
    align-self: end;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}
.rt-filter__actions button {
    height: 46px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.rt-filter button[type="submit"] {
    padding: 0 34px;
    border: 0;
    background: var(--rt-blue);
    color: #fff;
    transition: background .15s ease, transform .12s ease;
}
.rt-filter button[type="submit"]:hover {
    background: var(--rt-blue-d);
}
.rt-filter button[type="submit"]:active {
    transform: scale(.96);
}
.rt-filter button[type="submit"].is-loading {
    opacity: .7;
    cursor: progress;
}
.rt-filter__reset {
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: transparent;
    color: inherit;
    transition: background .15s ease, border-color .15s ease;
}
.rt-filter__reset:hover {
    border-color: currentColor;
    background: rgba(255, 255, 255, .08);
}

/* Чипы выбранных фильтров. */
.rt-filter__chips {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px 0 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.rt-chip:hover {
    background: rgba(255, 255, 255, .2);
    border-color: currentColor;
}
.rt-chip__x {
    font-size: 15px;
    line-height: 1;
    opacity: .75;
}

.rt-hero .rt-ms__toggle {
    background: rgba(255, 255, 255, .95);
}

/* Панель «Метро / Районы» */
.rt-geo .rt-ms__toggle {
    background: rgba(255, 255, 255, .97);
    color: var(--rt-ink);
}
.rt-geo__title {
    margin: 8px 6px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rt-muted);
}
.rt-geo__group {
    margin-bottom: 14px;
}
.rt-geo-empty {
    display: block;
    padding: 28px 6px;
    color: var(--rt-muted);
    font-size: 15px;
}

/* Модалка «Метро / Районы» */
.rt-geo-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
}
.rt-geo-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rt-geo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 38, .55);
}
.rt-geo-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: min(88vh, 760px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(16, 28, 40, .35);
    overflow: hidden;
}
.rt-geo-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--rt-muted);
    cursor: pointer;
}
.rt-geo-modal__close:hover {
    background: var(--rt-bg);
    color: var(--rt-ink);
}
.rt-geo-modal__tabs {
    display: flex;
    gap: 24px;
    padding: 16px 24px 0;
    border-bottom: 1px solid var(--rt-line);
}
.rt-geo-modal__tab {
    position: relative;
    padding: 8px 2px 14px;
    border: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    color: var(--rt-muted);
    cursor: pointer;
}
.rt-geo-modal__tab.is-active {
    color: var(--rt-ink);
}
.rt-geo-modal__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--rt-accent);
}
.rt-geo-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px;
}
.rt-geo-pane[hidden] {
    display: none;
}
.rt-geo-modal__search {
    width: 100%;
    height: 46px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid var(--rt-line);
    border-radius: 10px;
    font-size: 15px;
    color: var(--rt-ink);
}
.rt-geo-modal__search:focus {
    outline: 0;
    border-color: var(--rt-accent);
    box-shadow: 0 0 0 3px rgba(47, 159, 176, .25);
}
.rt-geo-cols {
    column-count: 3;
    column-gap: 28px;
}
.rt-geo-cols .rt-ms__opt,
.rt-geo-cols .rt-geo__group {
    break-inside: avoid;
}
.rt-geo-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid var(--rt-line);
}
.rt-geo-modal__reset {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: var(--rt-muted);
    cursor: pointer;
}
.rt-geo-modal__reset:hover {
    color: var(--rt-danger);
}
.rt-geo-modal__done {
    height: 46px;
    padding: 0 34px;
    border: 0;
    border-radius: 10px;
    background: var(--rt-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.rt-geo-modal__done:hover {
    background: var(--rt-accent-d);
}
body.rt-geo-lock {
    overflow: hidden;
}
/* Пока модалка открыта, поднимаем обложку над липким меню, «Действиями»
   и плавающей кнопкой входа — иначе её контекст наложения их не перекроет. */
body.rt-geo-lock .rt-hero.rt-bleed {
    z-index: 1200;
}
@media (max-width: 991px) {
    .rt-geo-cols {
        column-count: 2;
    }
}
@media (max-width: 575px) {
    .rt-geo-cols {
        column-count: 1;
    }
    .rt-geo-modal__body {
        padding: 16px;
    }
}

@media (max-width: 991px) {
    .rt-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .rt-filter {
        grid-template-columns: minmax(0, 1fr);
    }
    .rt-filter__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .rt-filter__actions button {
        flex: 1 1 auto;
        padding: 0 16px;
    }
}

/* На главной фильтр выводится в обложке, дубль в шапке скрываем. */
.icms-frontpage .icms-header__bottom .rt-filter {
    display: none;
}

/* -------------------------------------------------------------------- Hero */

.rt-hero {
    --rt-bleed-bg: linear-gradient(135deg, #16283a 0%, #24425e 55%, #2f9fb0 130%);
    color: #fff;
    padding: 60px 15px 46px;
    text-align: center;
}
.rt-hero__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    text-wrap: balance;
}
.rt-hero__sub {
    font-size: clamp(15px, 2vw, 18px);
    opacity: .85;
    margin: 0;
}
.rt-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
}
.rt-hero__filter {
    max-width: 1120px;
    margin: 30px auto 0;
}
.rt-hero .rt-filter select,
.rt-hero .rt-filter input[type="text"] {
    background-color: rgba(255, 255, 255, .95);
}
/* Фоновая подложка первого экрана: картинка во всю ширину окна. */
.rt-hero--bg {
    color: #fff;
}
.rt-hero--bg::before {
    background-size: cover;
    background-position: center;
}
@media (max-width: 767px) {
    .rt-hero {
        padding: 40px 15px 32px;
    }
}
.rt-hero--cat {
    padding: 46px 15px 38px;
}
.rt-cat {
    padding: 26px 15px 8px;
}
.rt-cat .icms-content-subcats {
    margin-bottom: 18px;
}

/* ------------------------------------------------------------------ Sections */

.rt-section {
    padding: 0 15px;
    margin: 44px 0;
}
.rt-section-title {
    text-align: center;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--rt-ink);
    margin: 0 0 10px;
    text-wrap: balance;
}
.rt-section-sub {
    text-align: center;
    color: var(--rt-muted);
    margin: 0 0 28px;
}
/* Фон секции (цвет/картинка) рисуется .rt-bleed::before во всю ширину. */
.rt-section.rt-bg {
    margin: 0;
    padding: 44px 15px;
}
.rt-bg-img::before {
    background-size: cover;
    background-position: center;
}
/* Светлый текст поверх тёмного фона секции. */
.rt-bg-light {
    color: #fff;
}
.rt-bg-light .rt-section-title {
    color: #fff;
}
.rt-bg-light .rt-section-sub {
    color: rgba(255, 255, 255, .85);
}
.rt-bg-light .rt-seo-text {
    color: rgba(255, 255, 255, .92);
}
.rt-seo-text {
    max-width: 900px;
    margin: 0 auto;
    color: var(--rt-body);
    line-height: 1.7;
}
.rt-seo-text p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------- Services */

.rt-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.rt-service {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    min-height: 128px;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rt-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 42, 67, .12);
}
.rt-service__title {
    color: var(--rt-ink);
    font-size: 17px;
    font-weight: 600;
}
.rt-service__more {
    margin-top: auto;
    color: var(--rt-accent);
    font-size: 14px;
}
@media (max-width: 991px) {
    .rt-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .rt-services {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------- Advantages */

.rt-advantages {
    --rt-bleed-bg: var(--rt-bg);
    padding: 44px 15px;
    margin: 0;
}
.rt-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.rt-adv {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rt-adv__icon {
    font-size: 28px;
    line-height: 1;
}
.rt-adv b {
    color: var(--rt-ink);
}
.rt-adv span {
    color: var(--rt-muted);
    font-size: 14px;
}
.rt-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
    text-align: center;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.rt-stats b {
    display: block;
    font-size: 22px;
    color: var(--rt-accent);
}
.rt-stats span {
    color: var(--rt-muted);
    font-size: 14px;
}
@media (max-width: 991px) {
    .rt-advantages__grid,
    .rt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .rt-advantages__grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------- Docs */

.rt-docs {
    --rt-bleed-bg: var(--rt-blue);
    padding: 44px 15px;
    margin: 0;
    color: #fff;
    text-align: center;
}
.rt-docs h2 {
    font-weight: 700;
    margin: 0 auto 16px;
    max-width: 1140px;
}
.rt-docs__list {
    display: flex;
    gap: 14px 28px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 auto 22px;
    max-width: 1140px;
    opacity: .92;
}
.rt-docs__phone {
    display: inline-block;
    color: #fff;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    text-decoration: none;
}
.rt-docs__phone:hover {
    color: #fff;
    text-decoration: underline;
}

/* -------------------------------------------------------------------- Tabs */

.rt-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.rt-tab {
    padding: 9px 18px;
    border: 1px solid var(--rt-line);
    border-radius: 22px;
    color: var(--rt-body);
    text-decoration: none;
    background: #fff;
    font-size: 14px;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.rt-tab:hover {
    background: var(--rt-accent);
    color: #fff;
    border-color: var(--rt-accent);
}
.rt-tab:active {
    transform: scale(.96);
}

/* ------------------------------------------------------------------- Cards */

.rt-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 24px 0;
}
.rt-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 42, 67, .13);
}
.rt-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--rt-line);
}
.rt-card__date {
    color: var(--rt-muted);
    font-size: 13px;
}
.rt-card__id {
    background: var(--rt-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.rt-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #eef2f6;
    overflow: hidden;
}
.rt-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rt-card__single {
    display: block;
    width: 100%;
    height: 100%;
}
.rt-card__gallery {
    position: absolute;
    inset: 0;
}
.rt-card__track {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}
.rt-card__track .flickity-viewport {
    height: 100% !important;
}
.rt-card__track .flickity-slider {
    height: 100%;
}
.rt-card__gallery .carousel-cell {
    display: block;
    width: 100%;
    height: 100%;
    margin-right: 0;
}
.rt-card__gallery .flickity-page-dots {
    left: auto;
    right: 42px;
    width: auto;
    transform: none;
    bottom: 14px;
    z-index: 7;
    white-space: nowrap;
    line-height: 0;
}
.rt-card__gallery .flickity-page-dots .dot {
    width: 6px;
    height: 6px;
    margin: 0 3px;
    opacity: .6;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
}
.rt-card__gallery .flickity-page-dots .dot.is-selected {
    opacity: 1;
}
.rt-card__count {
    position: absolute;
    right: 12px;
    bottom: 11px;
    z-index: 7;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
    pointer-events: none;
}
.rt-card__more {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(20, 24, 30, .55);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.rt-card__more.is-visible {
    display: flex;
}
.rt-card__more:hover,
.rt-card__more:focus {
    color: #fff;
    background: rgba(20, 24, 30, .65);
}
.rt-card__more svg {
    width: 44px;
    height: 44px;
}
.rt-card__sold {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rt-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 6px;
}
.rt-card__price {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--rt-blue);
    color: #fff;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 6px;
}
.rt-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rt-card__title {
    color: var(--rt-ink);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rt-card__title:hover {
    color: var(--rt-blue);
}
.rt-card__place {
    color: var(--rt-muted);
    font-size: 14px;
}
.rt-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--rt-body);
    font-size: 14px;
    border-top: 1px solid #eef2f6;
    padding-top: 10px;
}
.rt-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.rt-card__tag {
    background: #fdece9;
    color: #c23b2f;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 4px;
}
@media (max-width: 991px) {
    .rt-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .rt-cards {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ Reviews */

.rt-reviews {
    position: relative;
    padding: 4px 4px 0;
}
.rt-reviews__track {
    width: 100%;
}
/* До инициализации Flickity — простой flex-скролл, чтобы блок не разваливался. */
.rt-reviews__track:not(.flickity-enabled) {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.rt-reviews__track:not(.flickity-enabled) .rt-review {
    flex: 0 0 340px;
}
.rt-reviews .carousel-cell {
    width: 340px;
    margin-right: 20px;
}
.rt-reviews .flickity-viewport {
    transition: height .2s ease;
}
.rt-reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--rt-line);
    border-radius: 50%;
    background: #fff;
    color: var(--rt-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 42, 67, .12);
    transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.rt-reviews__arrow:hover,
.rt-reviews__arrow:focus-visible {
    background: var(--rt-blue);
    border-color: var(--rt-blue);
    color: #fff;
    outline: none;
}
.rt-reviews__arrow:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 127, 208, .3);
}
.rt-reviews__arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.rt-reviews__arrow--prev { left: -14px; }
.rt-reviews__arrow--next { right: -14px; }
.rt-reviews__arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.rt-review {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    padding: 22px;
}
.rt-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rt-review__avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f6;
}
.rt-review__avatar--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rt-blue);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.rt-review__who {
    min-width: 0;
}
.rt-review__name {
    color: var(--rt-ink);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rt-review__date {
    color: var(--rt-muted);
    font-size: 13px;
}
.rt-review__stars {
    display: flex;
    gap: 2px;
    margin-top: 12px;
    color: #d7dde5;
}
.rt-review__star {
    fill: currentColor;
}
.rt-review__star.is-on {
    color: #f5a623;
}
.rt-review__title {
    color: var(--rt-ink);
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rt-review__text {
    color: var(--rt-body);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 575px) {
    .rt-reviews .carousel-cell,
    .rt-reviews__track:not(.flickity-enabled) .rt-review {
        width: 82%;
        flex-basis: 82%;
        margin-right: 14px;
    }
    .rt-reviews__arrow {
        width: 40px;
        height: 40px;
    }
    .rt-reviews__arrow--prev { left: -6px; }
    .rt-reviews__arrow--next { right: -6px; }
}

/* ------------------------------------------------------------------ Button */

.rt-btn {
    display: inline-block;
    background: var(--rt-ink);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease, transform .12s ease;
}
.rt-btn:hover {
    background: var(--rt-accent);
    color: #fff;
}
.rt-btn:active {
    transform: scale(.96);
}
.rt-card__price,
.rt-item__price,
.rt-stats b,
.rt-landing__price,
.rt-docs__phone {
    font-variant-numeric: tabular-nums;
}
.rt-card__media img,
.rt-item__media img,
.rt-item__gallery img {
    outline: 1px solid rgba(0, 0, 0, .1);
    outline-offset: -1px;
}

/* ----------------------------------------------------------------- Landing */

.rt-landing {
    padding: 0 15px;
    margin: 32px 0;
}
.rt-landing h1 {
    font-size: clamp(24px, 3vw, 34px);
    color: var(--rt-ink);
}
.rt-landing__top,
.rt-landing__bottom {
    color: var(--rt-body);
    line-height: 1.7;
    margin: 20px 0;
}
.rt-landing__list {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}
.rt-landing__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 10px;
}
.rt-landing__item a {
    color: var(--rt-ink);
    text-decoration: none;
    font-weight: 600;
}
.rt-landing__item a:hover {
    color: var(--rt-accent);
}
.rt-landing__price {
    white-space: nowrap;
    font-weight: 700;
    color: var(--rt-blue);
}
.rt-landing__pager {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 28px 0;
}
.rt-landing__pager a {
    min-width: 40px;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--rt-line);
    border-radius: 8px;
    color: var(--rt-accent);
    text-decoration: none;
    background: #fff;
}
.rt-landing__pager a.is-active {
    background: var(--rt-accent);
    color: #fff;
    border-color: var(--rt-accent);
}

/* -------------------------------------------------------------------- Item */

.rt-item {
    padding: 0 15px;
    margin: 24px 0;
}
.rt-item__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--rt-ink);
    margin-bottom: 20px;
    text-wrap: balance;
}
.rt-item__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}
.rt-item__media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.rt-item__gallery {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rt-item__gallery img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

/* Flickity-галерея объекта: большой кадр + лента миниатюр + стрелки */
.rt-gallery {
    margin-bottom: 4px;
}
.rt-gallery__stage {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%;
    border-radius: 15px;
    overflow: hidden;
    background: #1a1a1a;
}
.rt-gallery__main {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}
/* до инициализации Flickity виден только первый кадр, без ряда */
.rt-gallery__main:not(.flickity-enabled) {
    display: block;
}
.rt-gallery__main:not(.flickity-enabled) > .carousel-cell {
    display: none;
    width: 100%;
    height: 100%;
    margin: 0;
}
.rt-gallery__main:not(.flickity-enabled) > .carousel-cell:first-child {
    display: block;
}
.rt-gallery__main .flickity-viewport {
    height: 100% !important;
    border-radius: 15px;
    overflow: hidden;
}
.rt-gallery__main .flickity-slider {
    height: 100%;
}
.rt-gallery .rt-gallery__main .carousel-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-right: 0;
    border-radius: 15px;
    overflow: hidden;
    background: #1a1a1a;
}
.rt-gallery__blur {
    position: absolute;
    inset: -20px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(22px);
    transform: scale(1.1);
    opacity: .65;
    pointer-events: none;
}
.rt-gallery .rt-gallery__main .carousel-cell img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0;
    pointer-events: none;
}
.rt-gallery__open {
    position: absolute;
    z-index: 4;
    top: 14%;
    bottom: 14%;
    left: 72px;
    right: 72px;
    display: block;
    border-radius: 12px;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}
.rt-gallery__nav-wrap {
    display: block;
    width: 100%;
    height: 72px;
    padding: 0;
    margin: 8px 0 0;
    overflow: hidden;
    visibility: hidden;
}
.rt-gallery.is-ready .rt-gallery__nav-wrap {
    visibility: visible;
}
.rt-gallery__nav {
    width: 100%;
    height: 72px;
}
.rt-gallery__nav .flickity-viewport {
    height: 72px !important;
}
.rt-gallery__nav .carousel-cell {
    width: 72px;
    height: 72px;
    margin-right: 6px;
    cursor: pointer;
    opacity: .55;
    border-radius: 15px;
    overflow: hidden;
    transition: opacity .15s ease;
}
.rt-gallery__nav .carousel-cell.is-nav-selected {
    opacity: 1;
}
.rt-gallery__nav .carousel-cell img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 15px;
}
.rt-gallery__arrow {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    z-index: 6 !important;
    width: 64px !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    line-height: 0;
    font-size: 0;
    box-shadow: none !important;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s ease !important;
    visibility: hidden;
}
.rt-gallery__arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(60, 60, 60, .45);
    transform: translate(-50%, -50%);
    transition: background .15s ease;
    pointer-events: none;
}
.rt-gallery.is-ready .rt-gallery__arrow {
    visibility: visible;
}
.rt-gallery__arrow svg {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
    pointer-events: none;
}
.rt-gallery__arrow--prev { left: 0 !important; }
.rt-gallery__arrow--next { right: 0 !important; }
.rt-gallery__arrow:hover::before,
.rt-gallery__arrow:focus::before {
    background: rgba(60, 60, 60, .7);
}
.rt-gallery__arrow:hover,
.rt-gallery__arrow:focus {
    color: #fff !important;
    outline: none !important;
}
.rt-gallery__arrow.is-hidden {
    display: none !important;
}
.rt-gallery__main .flickity-page-dots,
.rt-gallery__main .flickity-prev-next-button,
.rt-gallery__nav .flickity-prev-next-button {
    display: none;
}
@media screen and (max-width: 480px) {
    .rt-gallery__open {
        left: 56px;
        right: 56px;
        top: 16%;
        bottom: 16%;
    }
    .rt-gallery__arrow {
        width: 52px !important;
    }
}

.rt-item__side {
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .06);
    height: fit-content;
}
.rt-item__price {
    font-size: 26px;
    font-weight: 800;
    color: var(--rt-ink);
    margin-bottom: 10px;
}
.rt-item__sold {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}
.rt-item__specs {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rt-item__specs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 15px;
}
.rt-item__spec-label {
    color: var(--rt-muted);
}
.rt-item__spec-value {
    color: var(--rt-ink);
    font-weight: 600;
}
.rt-item__desc {
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--rt-body);
}
.rt-item__props {
    margin-top: 36px;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .06);
}
.rt-item__props h2 {
    font-size: 22px;
    margin: 0 0 16px;
    color: var(--rt-ink);
}
.rt-props-group + .rt-props-group {
    margin-top: 20px;
}
.rt-props-group__title {
    font-weight: 700;
    color: var(--rt-ink);
    margin-bottom: 8px;
}
.rt-props-group__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin: 0;
}
.rt-prop {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 15px;
}
.rt-prop__label {
    color: var(--rt-muted);
    margin: 0;
}
.rt-prop__value {
    color: var(--rt-ink);
    font-weight: 600;
    text-align: right;
    margin: 0;
}
@media (max-width: 700px) {
    .rt-props-group__list {
        grid-template-columns: 1fr;
    }
}
.rt-item__seo {
    margin-top: 28px;
    color: var(--rt-body);
    line-height: 1.7;
}
.rt-item__realtor,
.rt-item__similar {
    margin-top: 36px;
}
.rt-item__realtor h2,
.rt-item__similar h2 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--rt-ink);
}
.rt-realtor {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    padding: 20px;
}
.rt-realtor__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.rt-realtor__name {
    font-weight: 700;
    color: var(--rt-ink);
    margin-bottom: 4px;
}
.rt-realtor__link {
    display: block;
    color: var(--rt-accent);
    margin-bottom: 8px;
}
/* Правая колонка: карточка цены и отдельная карточка риэлтора */
.rt-item__asidecol {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rt-item__asidecol .rt-item__side {
    height: auto;
}
.rt-item__asidecol .rt-item__realtor,
.rt-item__asidecol .rt-item__attrs {
    margin-top: 0;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .06);
}
.rt-item__asidecol .rt-item__realtor h2 {
    font-size: 18px;
    margin: 0 0 12px;
    color: var(--rt-ink);
}
.rt-item__attrs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rt-item__attrs-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rt-line);
    font-size: 15px;
}
.rt-item__attrs-list li:last-child {
    border-bottom: 0;
}
.rt-item__attrs-list .rt-item__spec-value {
    text-align: right;
}
.rt-item__asidecol .rt-realtor {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 12px;
}
.rt-item__asidecol .rt-realtor__avatar {
    width: 56px;
    height: 56px;
}
.rt-item__asidecol .rt-realtor__info {
    min-width: 0;
}
.rt-item__asidecol .rt-realtor .rt-btn {
    margin-top: 4px;
}
@media (max-width: 900px) {
    .rt-item__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------- Content UI bits */

.icms-content-subcats {
    margin-bottom: 16px;
}
.icms-content-subcats .list-inline-item a {
    color: var(--rt-accent);
}
.content_datasets {
    margin-bottom: 16px;
}
.category_description {
    color: var(--rt-body);
    line-height: 1.7;
    margin-bottom: 20px;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 28px 0;
    list-style: none;
    padding: 0;
}
.pagination .page-item .page-link {
    display: block;
    min-width: 40px;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--rt-line);
    border-radius: 8px;
    color: var(--rt-accent);
    text-decoration: none;
    background: #fff;
}
.pagination .page-item.active .page-link {
    background: var(--rt-accent);
    border-color: var(--rt-accent);
    color: #fff;
}

/* ------------------------------------------------------------------ Footer */

.icms-footer__bottom {
    background: var(--rt-dark);
    color: #c9d6e2;
    padding: 0;
    margin-top: 40px;
}
.icms-footer__bottom .container {
    background: transparent;
}
.icms-footer__bottom .row {
    display: block;
}
.icms-footer__bottom .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}
.rt-footer {
    background: transparent;
    color: #c9d6e2;
}
.rt-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 44px 15px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}
.rt-footer__brand {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.rt-footer__copy {
    font-size: 13px;
    opacity: .7;
    margin-bottom: 12px;
}
.rt-footer__phone {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.rt-footer__contact {
    font-size: 14px;
    margin-bottom: 4px;
}
.rt-footer__title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}
.rt-footer__link {
    display: block;
    color: #c9d6e2;
    text-decoration: none;
    font-size: 14px;
    padding: 3px 0;
}
.rt-footer__link:hover {
    color: #fff;
}
.icms-footer__bottom .icms-links-inherit-color {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    color: #8fa2b4 !important;
}
.icms-footer__bottom .icms-links-inherit-color a {
    color: #8fa2b4 !important;
}
@media (max-width: 900px) {
    .rt-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575px) {
    .rt-footer__inner {
        grid-template-columns: 1fr;
        padding-bottom: 16px;
    }
}

/* --------------------------------------------------- Пустые состояния */

.rt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 56px 24px;
    margin: 24px 0;
    background: #fff;
    border: 1px dashed #d9e1e8;
    border-radius: 14px;
}
.rt-empty__icon {
    color: var(--rt-accent);
    opacity: .85;
}
.rt-empty__icon svg {
    width: 46px;
    height: 46px;
    display: block;
}
.rt-empty__title {
    font-size: 19px;
    font-weight: 600;
    color: var(--rt-ink);
}
.rt-empty__text {
    color: var(--rt-muted);
    max-width: 520px;
    margin: 0;
}
.rt-empty .rt-btn {
    margin-top: 8px;
}

/* --------------------------------------- Служебные блоки на страницах контента */

.icms-body-toolbox {
    margin: 6px 0 10px;
}
.icms-body-toolbox h1 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--rt-ink);
    margin: 0 0 14px;
    text-wrap: balance;
}
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--rt-muted);
}
.breadcrumb-item a {
    color: var(--rt-muted);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--rt-accent);
}
.breadcrumb .icms-svg-icon {
    color: var(--rt-accent);
}

/* У админа виджет-глубиномер обёрнут в rt-widget-wrap (админ-оверлей).
   Обёртке возвращаем flex-fill строки, иначе крошки вылезают под «Действия». */
.rt-widget-wrap:has(> ol.breadcrumb) {
    flex: 1 1 auto;
    min-width: 0;
}

/* -------------------------------------------------------- Кнопка подписки */

.rt-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.rt-subscribe__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--rt-accent);
    border-radius: 8px;
    background: var(--rt-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.rt-subscribe__btn:hover {
    background: var(--rt-accent-d);
    border-color: var(--rt-accent-d);
    color: #fff;
}
.rt-subscribe__btn:active {
    transform: scale(.97);
}
/* Скрипт переключает bootstrap-классы btn-primary/btn-secondary, перекрываем их. */
.rt-subscribe__btn.btn-primary,
.rt-subscribe__btn.subscribe {
    background: var(--rt-accent);
    border-color: var(--rt-accent);
    color: #fff;
}
.rt-subscribe__btn.btn-secondary,
.rt-subscribe__btn.unsubscribe {
    background: #fff;
    border-color: var(--rt-line);
    color: var(--rt-body);
}
.rt-subscribe__btn.btn-secondary:hover,
.rt-subscribe__btn.unsubscribe:hover {
    background: var(--rt-bg);
    border-color: var(--rt-accent);
    color: var(--rt-accent);
}
.rt-subscribe__btn .icms-svg-icon {
    width: 18px;
    height: 18px;
}
.rt-subscribe__btn .icon-bell,
.rt-subscribe__btn .icon-bell-slash {
    line-height: 1;
}
.rt-subscribe__btn.is-busy {
    opacity: .65;
    pointer-events: none;
}
/* В теме modern надпись скрыта до 576px, здесь показываем всегда. */
.rt-subscribe .icms-subscriptions__label {
    display: inline-block;
}
.rt-subscribe__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef2f6;
    color: var(--rt-body);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.rt-subscribe__count:empty {
    display: none;
}
/* Гасим декоративную стрелку счётчика из темы modern. */
.rt-subscribe .count-subscribers::after {
    display: none;
}
/* -------------------------------------------------------- Меню действий */

.rt-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--rt-blue);
    border-radius: 8px;
    background: var(--rt-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.rt-actions__btn:hover,
.rt-actions__btn:focus {
    background: var(--rt-blue-d);
    border-color: var(--rt-blue-d);
    color: #fff;
}
.rt-actions__btn:active {
    transform: scale(.97);
}
.rt-actions .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 240px;
    padding: 6px;
    border: 1px solid var(--rt-line);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 30, 45, .14);
}
.rt-actions .dropdown-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--rt-body);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.rt-actions .dropdown-menu .nav-link:hover {
    background: var(--rt-bg);
    color: var(--rt-accent);
}
.rt-actions .dropdown-menu .icms-svg-icon {
    width: 16px;
    height: 16px;
    color: var(--rt-accent);
}
.rt-cat__toolbar {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ------------------------------- Шапка раздела: H1, крошки и кнопка подписки */

.rt-cat__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
/* Когда H1 вынесен в фильтр, в шапке остаются только крошки и кнопка:
   выравниваем их по центру по вертикали. */
.rt-cat__head--no-title {
    align-items: center;
}
.rt-cat__head-main {
    min-width: 0;
}
.rt-cat__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rt-ink);
    margin: 0 0 6px;
    text-wrap: balance;
}
.rt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--rt-muted);
}
.rt-crumbs a {
    color: var(--rt-muted);
    text-decoration: none;
}
.rt-crumbs a:hover {
    color: var(--rt-accent);
}
.rt-crumbs__home {
    display: inline-flex;
    align-items: center;
    color: var(--rt-accent);
}
.rt-crumbs__home .icms-svg-icon {
    width: 16px;
    height: 16px;
}
.rt-crumbs__sep {
    color: var(--rt-muted);
}
.rt-crumbs__current {
    color: var(--rt-body);
}
.rt-cat__seo {
    margin: 0 0 18px;
    color: var(--rt-body);
    font-size: 15px;
    line-height: 1.6;
}
.rt-cat__seo--bottom {
    margin: 22px 0 0;
}
.rt-cat__seo > :last-child {
    margin-bottom: 0;
}
/* Заголовки внутри SEO-текстов: стиль как у H1, только мельче. */
.rt-cat__seo h2,
.rt-landing__top h2,
.rt-landing__bottom h2,
.rt-item__seo h2,
.rt-seo-text h2 {
    font-size: clamp(19px, 2.4vw, 25px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--rt-ink);
    margin: 0 0 10px;
    text-wrap: balance;
}
/* На странице категории крошки выводятся в шапке, верхний глубиномер гасим. */
body:has(.rt-cat__head) ol.breadcrumb {
    display: none;
}
@media (max-width: 575px) {
    .rt-cat__head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .rt-cat__toolbar {
        justify-content: flex-start;
    }
}

/* --- Админ-оверлей виджетов: кнопки при наведении --- */
.rt-widget-wrap { position: relative; }
.rt-widget-admin {
    position: absolute; top: 8px; right: 8px; z-index: 60;
    display: flex; gap: 4px;
    opacity: 0; visibility: hidden;
    transition: opacity .15s ease;
}
.rt-widget-wrap--admin:hover > .rt-widget-admin,
.rt-widget-admin:focus-within { opacity: 1; visibility: visible; }
.rt-widget-admin__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    background: #1f2937; color: #fff; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.rt-widget-admin__btn:hover { background: #111827; color: #fff; }
.rt-widget-admin__btn--del:hover { background: #c0392b; }

/* ----------------------------------------------------------------- Баннер */
/* Универсальный CTA-блок: фоновая подложка, текст, пункты с иконками и карточка. */
.rt-banner {
    position: relative;
    overflow: hidden;
    padding: 44px 15px;
    background-color: #16283a;
    background-size: cover;
    background-position: center;
    color: #2d3436;
}
.rt-banner--light { color: #fff; }
.rt-banner__overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(12,22,34,.82) 0%, rgba(12,22,34,.60) 55%, rgba(12,22,34,.28) 100%);
}
.rt-banner__inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: center;
}
.rt-banner__title {
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
    color: inherit;
    text-wrap: balance;
}
.rt-banner__sub {
    font-size: clamp(15px, 1.8vw, 18px);
    margin: 0 0 22px;
    opacity: .92;
}
.rt-banner__sub a { color: inherit; text-decoration: underline; }
.rt-banner__features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 10px;
}
.rt-banner__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 270px;
}
.rt-banner__ficon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rt-blue);
    color: #fff;
}
.rt-banner__ficon svg { width: 18px; height: 18px; }
.rt-banner__ftext { font-size: 14px; line-height: 1.25; }
.rt-banner__card {
    background: #fff;
    color: var(--rt-ink);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(10,20,30,.25);
    padding: 22px 22px 24px;
}
.rt-banner__card-title {
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 4px;
}
.rt-banner__card-badge {
    text-align: center;
    color: var(--rt-blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}
.rt-banner__list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rt-banner__list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--rt-body);
}
.rt-banner__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    background: var(--rt-blue);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.2 12.6 2 8.4l1.4-1.4 2.8 2.8 6.4-6.4L14 4.8z' fill='black'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.2 12.6 2 8.4l1.4-1.4 2.8 2.8 6.4-6.4L14 4.8z' fill='black'/></svg>") center/contain no-repeat;
}
.rt-banner__btn {
    display: block;
    text-align: center;
    background: var(--rt-blue);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
}
.rt-banner__btn:hover,
.rt-banner__btn:focus { background: var(--rt-blue-d, #2f9fb0); color: #fff; }
@media (max-width: 767px) {
    .rt-banner { padding: 32px 15px; }
    .rt-banner__inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
