/* RIFT 1.6.0 — блоки главной и листингов (classes/class-catalog-blocks.php).
   Палитра темы: оранжевый #FF7A00, зелёный #82A52C / #E5F1D4, тёмный #313131, серый #EFEFEF. */

.rift-facts, .rift-chips, .rift-toolbar, .rift-insert, .rift-prices, .rift-geo,
.rift-hero-price, .rift-tile-stats, .rift-slide-meta, .rift-finance, .rift-more {
    font-family: 'Zona Pro', -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #313131;
}

/* ---------- Кнопки ---------- */
.rift-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 24px; border: 0; border-radius: 8px;
    background: #FF7A00; color: #fff; font: 600 15px/1.2 'Zona Pro', sans-serif;
    text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s;
}
.rift-btn:hover { background: #E86F00; color: #fff; }
.rift-btn--dark { background: #313131; }
.rift-btn--dark:hover { background: #000; }
.rift-btn--ghost { background: transparent; color: #313131; box-shadow: inset 0 0 0 2px #313131; }
.rift-btn--ghost:hover { background: #313131; color: #fff; }

/* ---------- Листинг: факты под H1 ---------- */
.rift-facts {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    margin: 12px 0 0; font-size: 16px; color: #505050;
}
.rift-facts strong { color: #000; font-weight: 600; }
.rift-facts span { color: #BBBBBB; }

/* ---------- Листинг: подборки над сеткой ---------- */
.rift-chips {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 16px 0 20px;
}
.rift-chips__label { font-size: 14px; color: #9B9B9B; margin-right: 4px; }
.rift-chips a {
    padding: 8px 14px; border: 2px solid #EFEFEF; border-radius: 6px; background: #fff;
    font-size: 14px; color: #000; text-decoration: none; transition: border-color .2s, color .2s;
}
.rift-chips a:hover { border-color: #FF7A00; color: #FF7A00; }

/* ---------- Листинг: счётчик и сортировка ---------- */
.rift-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin: 0 0 12px;
}
.rift-toolbar__found { font-size: 15px; color: #505050; }
.rift-toolbar__found strong { color: #000; }
.rift-toolbar__sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #9B9B9B; }
.rift-toolbar__sort select {
    min-height: 40px; padding: 8px 36px 8px 12px; border: 2px solid #EFEFEF; border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23313131' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none; appearance: none;
    font: 500 14px 'Zona Pro', sans-serif; color: #000; cursor: pointer;
}
.rift-toolbar__sort select:focus { outline: none; border-color: #FF7A00; }

.catalog_main_body_item_list_main_button[hidden] { display: none !important; }

/* ---------- Листинг: метки ---------- */
.our_project_list_main_item_header { display: flex; flex-wrap: wrap; gap: 6px; }
.rift-badge--new { background: #E5F1D4; color: #4E6B12; }

/* ---------- Листинг: вставки в сетку ---------- */
.rift-insert {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
    padding: 24px 28px; border-radius: 12px; background: #E5F1D4;
}
.rift-insert--calc { background: #F3F3F3; }
.rift-insert__text { display: flex; flex-direction: column; gap: 6px; }
.rift-insert__text strong { font-size: 20px; font-weight: 600; color: #000; }
.rift-insert__text span { font-size: 15px; color: #505050; line-height: 1.4; }
.rift-insert .rift-btn { width: auto; flex-shrink: 0; }
.rift-finance .rift-btn { width: auto; }

/* ---------- Листинг: таблица цен ---------- */
.rift-prices { padding: 48px 0 8px; }
.rift-prices h2 { font: 600 28px/1.2 'Zona Pro', sans-serif; margin: 0 0 20px; color: #000; }
.rift-prices__wrap { overflow-x: auto; border: 1px solid #EFEFEF; border-radius: 12px; }
.rift-prices table { width: 100%; border-collapse: collapse; min-width: 520px; }
.rift-prices th, .rift-prices td { padding: 14px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid #EFEFEF; }
.rift-prices th { background: #FAFAFA; font-weight: 600; color: #505050; font-size: 14px; }
.rift-prices tr:last-child td { border-bottom: 0; }
.rift-prices td:nth-child(3), .rift-prices td:nth-child(4) { font-weight: 600; white-space: nowrap; }
.rift-prices__note { margin: 12px 0 0; font-size: 13px; color: #9B9B9B; line-height: 1.5; max-width: 760px; }

.rift-more { padding: 0 0 24px; }
.rift-more a { color: #FF7A00; font-size: 15px; }

/* ---------- Листинг: города ---------- */
.rift-geo { padding: 40px 0; }
.rift-geo h2 { font: 600 24px/1.2 'Zona Pro', sans-serif; margin: 0 0 18px; color: #000; }
.rift-geo ul { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: 24px; }
.rift-geo li { margin: 0 0 10px; break-inside: avoid; }
.rift-geo__region { font: 600 17px/1.3 'Zona Pro', sans-serif; margin: 22px 0 12px; color: #000; }
.rift-geo ul + .rift-geo__region { margin-top: 26px; }
.rift-geo a { color: #313131; text-decoration: none; border-bottom: 1px solid #DDD; font-size: 15px; }
.rift-geo a:hover { color: #FF7A00; border-color: #FF7A00; }

/* ---------- Главная: цена в первом экране ---------- */
.rift-hero-price {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    font-size: 16px;
    color: #313131;
    overflow-wrap: break-word;
}
.rift-hero-price strong { color: #FF7A00; font-weight: 700; white-space: nowrap; }
/* Две строки: основной вариант и цена без отделки */
.rift-hero-price__main { display: block; font-size: 17px; line-height: 1.4; }
.rift-hero-price__alt { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: #6b6b6b; }
@media screen and (max-width: 575px) {
    .header_section_main_info .rift-hero-price {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 12px 0 0;
        padding: 10px 12px;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .header_section_main_info .rift-hero-price__main {
        display: block;
        font-size: 14px;
        line-height: 1.45;
        white-space: normal;
    }
    .header_section_main_info .rift-hero-price__alt {
        display: block;
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.45;
        white-space: normal;
    }
    .header_section_main_info .rift-hero-price strong {
        white-space: nowrap;
    }
}
@media screen and (max-width: 360px) {
    .header_section_main_info .rift-hero-price {
        padding: 9px 10px;
    }
    .header_section_main_info .rift-hero-price__main { font-size: 13px; }
    .header_section_main_info .rift-hero-price__alt { font-size: 12px; }
}

/* ---------- Главная: плитки направлений ---------- */
.header_nav_main_link_hover_main_item_link { position: relative; }
.rift-tile-stats {
    display: table; margin: 6px auto 0; padding: 3px 10px; border-radius: 6px;
    background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 500; color: #505050; text-align: center;
}

/* ---------- Главная: карточки «Наши проекты» ---------- */
.rift-slide-meta { padding: 6px 2px 0; }
.rift-slide-meta__spec { font-size: 14px; color: #6B6B6B; }
.rift-slide-meta__price { margin-top: 6px; font-size: 15px; color: #313131; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rift-slide-meta__price strong { font-size: 18px; font-weight: 700; color: #000; }
.rift-slide-meta__price span { font-size: 13px; color: #82A52C; font-weight: 600; }

/* ---------- Главная: ипотека ---------- */
.rift-finance { padding: 40px 0; }
.rift-finance__box {
    display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
    padding: 36px 40px; border-radius: 16px; background: #E5F1D4;
}
.rift-finance h2 { font: 600 30px/1.2 'Zona Pro', sans-serif; margin: 0 0 12px; color: #000; }
.rift-finance__rate { font-size: 18px; color: #313131; }
.rift-finance__rate strong { font-size: 26px; color: #4E6B12; }
.rift-finance__points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rift-finance__points li { padding: 8px 14px; border-radius: 6px; background: #fff; font-size: 14px; }
.rift-finance__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rift-finance__banks { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.rift-finance__banks img { height: 36px; width: auto; display: block; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 991px) {
    .rift-finance__box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 768px) {
    .rift-facts { font-size: 14px; }
    .rift-chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px 0 16px; padding: 0 0 4px; scrollbar-width: none; max-width: 100%; }
    .rift-chips::-webkit-scrollbar { display: none; }
    .rift-chips a, .rift-chips__label { flex-shrink: 0; white-space: nowrap; }
    .rift-toolbar { margin-top: 8px; }
    .rift-toolbar__sort span { display: none; }
    .rift-insert { flex-direction: column; align-items: flex-start; padding: 20px; }
    .rift-insert .rift-btn { width: 100%; }
    .rift-insert__text strong { font-size: 18px; }
    .rift-prices { padding-top: 32px; }
    .rift-prices h2, .rift-finance h2 { font-size: 22px; }
    .rift-prices th, .rift-prices td { padding: 12px 14px; font-size: 14px; }
    .rift-geo ul { columns: 2; }
    .rift-finance__actions .rift-btn { flex: 1 1 100%; }
}

/* ---------- Главная: баннеры подбора и калькулятора ---------- */
.rift-home-banners { padding: 24px 0 40px; }
.rift-slide-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- [1.7.0] Скорость: первый экран в WebP ----------
   Браузеры без поддержки image-set(type()) берут прежнюю строку из style.css. */
.header_section {
    background-image: image-set(url(../img/header_section.webp) type("image/webp"), url(../img/header_section.png) type("image/png")),
        linear-gradient(180deg, #8CE6FF 1.3%, #D0EAFD 70.9%);
}
@media screen and (max-width: 991px) {
    .header_section {
        background-image: image-set(url(../img/Banner.webp) type("image/webp"), url(../img/Banner.jpg) type("image/jpeg")),
            linear-gradient(180deg, #8CE6FF 1.3%, #D0EAFD 70.9%);
    }
}

/* =====================================================================
   RIFT 1.7.0
   ===================================================================== */
.rift-text, .rift-articles, .rift-promo, .rift-trust, .rift-guarantee, .rift-stages,
.rift-video, .rift-showroom { font-family: 'Zona Pro', -apple-system, 'Segoe UI', Roboto, sans-serif; color: #313131; }

/* ---------- Текстовые блоки ---------- */
.rift-text { padding: 24px 0 8px; }
.rift-text__body { max-width: 900px; font-size: 16px; line-height: 1.65; }
.rift-text__body h2 { font: 600 26px/1.25 'Zona Pro', sans-serif; color: #000; margin: 36px 0 14px; }
.rift-text__body h2:first-child { margin-top: 0; }
.rift-text__body h3 { font: 600 19px/1.3 'Zona Pro', sans-serif; margin: 24px 0 10px; }
.rift-text__body p { margin: 0 0 14px; }
.rift-text__body ol, .rift-text__body ul { margin: 0 0 16px; padding-left: 22px; }
.rift-text__body li { margin: 0 0 8px; }
.rift-text__body ol li { list-style: decimal; }
.rift-text__body ul li { list-style: disc; }
.rift-text__body li::marker { color: #FF7A00; font-weight: 600; }
.rift-text__body table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.rift-text__body th, .rift-text__body td { padding: 12px 14px; border-bottom: 1px solid #EFEFEF; text-align: left; vertical-align: top; }
.rift-text__body th { background: #FAFAFA; font-weight: 600; color: #505050; font-size: 14px; }

/* ---------- Статьи ---------- */
.rift-articles { padding: 40px 0; }
.rift-articles h2 { font: 600 24px/1.2 'Zona Pro', sans-serif; margin: 0 0 18px; color: #000; }
.rift-articles__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rift-articles__item { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid #EEE; border-radius: 12px; background: #fff; color: #313131; text-decoration: none; transition: border-color .2s; }
.rift-articles__item:hover { border-color: #FF7A00; }
.rift-articles__type { font-size: 12px; color: #82A52C; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.rift-articles__item strong { font-size: 16px; line-height: 1.35; }
.rift-articles__text { font-size: 14px; color: #6B6B6B; line-height: 1.45; }

/* ---------- Вставка «Свой проект» ---------- */
.rift-insert--upload { background: #FFF3E6; }

/* ---------- Цифры доверия ---------- */
.rift-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rift-trust li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 8px; background: rgba(255, 255, 255, .92); min-width: 120px; }
.rift-trust strong { font-size: 22px; font-weight: 700; color: #000; line-height: 1.1; }
.rift-trust span { font-size: 13px; color: #505050; }

/* ---------- Гарантии ---------- */
.rift-guarantee { padding: 40px 0; }
.rift-guarantee h2, .rift-stages h2, .rift-video h2, .rift-promo h2 { font: 600 26px/1.2 'Zona Pro', sans-serif; margin: 0 0 18px; color: #000; }
.rift-guarantee table { width: 100%; border-collapse: collapse; }
.rift-guarantee th, .rift-guarantee td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #EFEFEF; font-size: 15px; }
.rift-guarantee th { background: #FAFAFA; font-size: 14px; color: #505050; }

/* ---------- Этапы ---------- */
.rift-stages { padding: 40px 0; }
.rift-stages__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: st; }
.rift-stages__list li { counter-increment: st; position: relative; padding: 20px 20px 18px; border-radius: 12px; background: #F6F6F6; }
.rift-stages__list li::before { content: counter(st); display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #FF7A00; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.rift-stages__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rift-stages__head strong { font-size: 16px; }
.rift-stages__days { font-size: 13px; color: #9B9B9B; white-space: nowrap; }
.rift-stages__list p { margin: 8px 0 0; font-size: 14px; color: #505050; line-height: 1.45; }
.rift-stages__pay { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 6px; background: #E5F1D4; color: #4E6B12; font-size: 13px; font-weight: 600; }

/* ---------- Видео ---------- */
.rift-video { padding: 40px 0; }
.rift-video__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rift-video__item { margin: 0; }
.rift-video__play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.rift-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.rift-video__icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 122, 0, .92); }
.rift-video__icon::after { content: ''; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; }
.rift-video__item iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.rift-video figcaption { padding: 10px 2px 0; }
.rift-video figcaption strong { display: block; font-size: 15px; }
.rift-video figcaption span { font-size: 13px; color: #9B9B9B; }

/* ---------- Акции ---------- */
.rift-promo { padding: 32px 0; }
.rift-promo__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rift-promo__item { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #FFF3E6; }
.rift-promo__item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.rift-promo__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.rift-promo__body strong { font-size: 18px; line-height: 1.3; color: #000; }
.rift-promo__body p { margin: 0; font-size: 14px; color: #505050; }
.rift-promo__body .rift-btn { margin-top: auto; align-self: flex-start; width: auto; }
.rift-promo__end { font-size: 12px; font-weight: 600; color: #FF7A00; text-transform: uppercase; }
.rift-promo--inline { padding: 0 0 12px; }
.rift-promo--inline .rift-promo__item { flex-direction: row; align-items: stretch; }
.rift-promo--inline .rift-promo__item img { width: 200px; height: auto; }

/* ---------- Выставочный дом ---------- */
.rift-showroom { padding: 40px 0; }
.rift-showroom__box { display: flex; gap: 32px; align-items: center; padding: 28px; border-radius: 16px; background: #F6F6F6; }
.rift-showroom__box img { width: 42%; max-width: 480px; border-radius: 12px; object-fit: cover; }
.rift-showroom h2 { font: 600 28px/1.2 'Zona Pro', sans-serif; margin: 0 0 12px; color: #000; }
.rift-showroom__addr { font-size: 17px; font-weight: 600; }
.rift-showroom__addr span { font-weight: 400; color: #6B6B6B; font-size: 15px; }

@media (max-width: 991px) {
    .rift-articles__list { grid-template-columns: repeat(2, 1fr); }
    .rift-video__list { grid-template-columns: repeat(2, 1fr); }
    .rift-showroom__box { flex-direction: column; align-items: flex-start; }
    .rift-showroom__box img { width: 100%; max-width: none; }
}
@media (max-width: 768px) {
    .rift-text__body { font-size: 15px; }
    .rift-text__body h2 { font-size: 21px; }
    .rift-text__body table { display: block; overflow-x: auto; }
    .rift-articles__list, .rift-video__list { grid-template-columns: 1fr; }
    .rift-promo--inline .rift-promo__item { flex-direction: column; }
    .rift-promo--inline .rift-promo__item img { width: 100%; height: 140px; }
    .rift-guarantee h2, .rift-stages h2, .rift-video h2, .rift-promo h2, .rift-showroom h2 { font-size: 22px; }
    .rift-trust li { min-width: 0; flex: 1 1 40%; }
}
button.rift-btn, a.rift-btn { width: auto; }

/* =====================================================================
   RIFT 1.8.0 — «Земля + Дом»
   ===================================================================== */
.rift-ld, .rift-ld-pop, .rift-ldp { font-family: 'Zona Pro', -apple-system, 'Segoe UI', Roboto, sans-serif; color: #313131; }
.rift-ld { padding: 40px 0; }
.rift-ld__box { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 36px 40px; border-radius: 16px; background: #FFF3E6; }
.rift-ld__eyebrow { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #FF7A00; font-weight: 600; margin-bottom: 10px; }
.rift-ld h2 { font: 600 30px/1.2 'Zona Pro', sans-serif; margin: 0 0 12px; color: #000; }
.rift-ld p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; max-width: 640px; }
.rift-ld__facts { font-weight: 600; color: #4E6B12; }
.rift-ld .rift-finance__actions { margin-top: 18px; }
.rift-ld__logo { flex-shrink: 0; width: 260px; }
.rift-ld__logo img { width: 100%; height: auto; display: block; border-radius: 10px; }

.rift-ld-pop { position: fixed; left: 20px; bottom: 20px; z-index: 9000; width: 340px; max-width: calc(100vw - 32px); padding: 22px 22px 20px; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); transform: translateY(24px); opacity: 0; transition: transform .3s, opacity .3s; }
.rift-ld-pop.is-open { transform: none; opacity: 1; }
.rift-ld-pop strong { display: block; font-size: 18px; color: #000; margin-bottom: 6px; }
.rift-ld-pop p { margin: 0 0 14px; font-size: 14px; color: #505050; line-height: 1.45; }
.rift-ld-pop .rift-btn { width: 100%; }
.rift-ld-pop__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1; color: #9B9B9B; cursor: pointer; }

.rift-ldp__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.rift-ldp__item { display: flex; flex-direction: column; border: 1px solid #EEE; border-radius: 14px; overflow: hidden; background: #fff; }
.rift-ldp__img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.rift-ldp__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.rift-ldp__body h2 { font: 600 22px/1.25 'Zona Pro', sans-serif; margin: 0; }
.rift-ldp__body h2 a { color: #000; text-decoration: none; }
.rift-ldp__spec { margin: 0; font-size: 14px; color: #6B6B6B; }
.rift-ldp__sum { width: 100%; border-collapse: collapse; font-size: 15px; }
.rift-ldp__sum td { padding: 8px 0; border-bottom: 1px solid #EFEFEF; }
.rift-ldp__sum td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.rift-ldp__total td { border-bottom: 0; font-size: 18px; font-weight: 700; color: #000; }
.rift-ldp__note { margin: 0; font-size: 13px; color: #4E6B12; }
.rift-ldp__body .rift-btn { align-self: flex-start; margin-top: 6px; }
.rift-ldp__empty { margin-bottom: 40px; }
.rift-ldp__how h2 { font: 600 26px/1.2 'Zona Pro', sans-serif; margin: 0 0 18px; }
.rift-ldp__how h3 { font: 600 20px/1.2 'Zona Pro', sans-serif; margin: 28px 0 10px; }
.rift-ldp__terms { max-width: 760px; font-size: 15px; line-height: 1.55; }
.rift-ldp__links { margin-top: 24px; font-size: 15px; }
.rift-ldp__links a { color: #FF7A00; }

@media (max-width: 991px) {
    .rift-ld__box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .rift-ld__logo { width: 200px; }
}
@media (max-width: 768px) {
    .rift-ld h2 { font-size: 22px; }
    .rift-ldp__list { grid-template-columns: 1fr; }
    .rift-ld-pop { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* 1.8.2: страница «Земля + Дом» без предложений */
.rift-ldp__partner { display: flex; gap: 32px; align-items: flex-start; padding: 28px 32px; margin-bottom: 40px; border-radius: 16px; background: #F6F6F6; }
.rift-ldp__partner h2 { font: 600 22px/1.25 'Zona Pro', sans-serif; margin: 0 0 10px; color: #000; }
.rift-ldp__partner p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; max-width: 720px; }
.rift-ldp__partner .rift-ld__logo { width: 220px; }
.rift-ldp__pick { margin-bottom: 48px; }
.rift-ldp__pick h2 { font: 600 26px/1.2 'Zona Pro', sans-serif; margin: 0 0 10px; }
.rift-ldp__lead { margin: 0 0 20px; font-size: 16px; color: #505050; }
.rift-ldp__lead a { color: #FF7A00; }
.rift-ldp__list--3 { grid-template-columns: repeat(3, 1fr); }
.rift-ldp__list--3 .rift-ldp__img img { height: 200px; }
.rift-ldp__body h3 { font: 600 19px/1.25 'Zona Pro', sans-serif; margin: 0; }
.rift-ldp__body h3 a { color: #000; text-decoration: none; }
.rift-ldp__price { margin: 0; font-size: 15px; }
.rift-ldp__price strong { font-size: 17px; color: #000; }
.rift-ldp__linkbtn { display: inline !important; width: auto !important; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: #FF7A00; cursor: pointer; text-decoration: underline; }
.rift-ldp__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 6px 0 0; }
.rift-ldp__links a { color: #FF7A00; text-decoration: none; border-bottom: 1px solid currentColor; }
.rift-ldp .rift-btn { width: auto; }
@media (max-width: 991px) { .rift-ldp__list--3 { grid-template-columns: repeat(2, 1fr); } .rift-ldp__partner { flex-direction: column; } }
@media (max-width: 768px) { .rift-ldp__list--3 { grid-template-columns: 1fr; } }

/* 1.8.8: «Земля + Дом» — выбор участка в карточке проекта, разделе каталога и на странице */
.rift-ld__box--pick { display: block; background: #FFF3E6; }
.rift-ld__head { margin-bottom: 18px; }
.rift-ld-plots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.rift-ld-plot { position: relative; display: flex; flex-direction: column; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #F0DCC6; transition: box-shadow .15s; }
.rift-ld-plot[hidden] { display: none; }
.rift-ld-plot label { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "radio num" "radio meta" "radio price" "radio extra"; column-gap: 10px; row-gap: 2px; padding: 14px 16px 6px; margin: 0; cursor: pointer; }
.rift-ld-plot input[type=radio] { grid-area: radio; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #FF7A00; cursor: pointer; }
.rift-ld-plot__num { grid-area: num; font-weight: 600; font-size: 16px; color: #000; }
.rift-ld-plot__meta { grid-area: meta; font-size: 13px; color: #6B6B6B; }
.rift-ld-plot__price { grid-area: price; font-weight: 700; font-size: 17px; color: #000; margin-top: 4px; }
.rift-ld-plot__status, .rift-ld-plot__note { grid-area: extra; font-size: 12px; color: #4E6B12; }
.rift-ld-plot__status { color: #9B9B9B; text-transform: uppercase; letter-spacing: .04em; }
.rift-ld-plot__map { align-self: flex-start; margin: 0 16px 12px 44px; font-size: 13px; color: #FF7A00; text-decoration: none; }
.rift-ld-plot__map:hover { text-decoration: underline; }
.rift-ld-plot:hover { box-shadow: inset 0 0 0 1px #FFB870; }
.rift-ld-plot.is-selected { box-shadow: inset 0 0 0 2px #FF7A00; }
.rift-ld-plot.is-reserved label { cursor: not-allowed; opacity: .6; }
.rift-ld-plots__more { margin: 0 0 14px; }
.rift-ld-sum { max-width: 520px; margin: 8px 0 4px; padding: 14px 18px; border-radius: 12px; background: #fff; }
.rift-ld-sum[hidden] { display: none; }
.rift-ld-sum__hint { margin: 8px 0 0 !important; font-size: 12px !important; color: #8A8A8A; }
.rift-ld--pick .rift-finance__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.rift-ld__more { color: #FF7A00; font-size: 15px; }
.rift-ld--page { padding-top: 0; }
@media (max-width: 991px) {
    .rift-ld-plots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .rift-ld-plots { grid-template-columns: 1fr; }
    .rift-ld--pick .rift-btn { width: 100%; white-space: normal; text-align: center; }
}

/* 1.8.8: плитка «Дома A-frame» — вырезанный дом, подпись на светлом поле как у остальных плиток */
.header_nav_main_link_hover_main_item.rift-tile--aframe { background-size: contain; background-position: center bottom; }
@media screen and (max-width: 470px) {
    /* на телефоне плитки получают картинки по порядку (nth-child) — у A-frame своя */
    .we_are_building .we_are_building_list .header_nav_main_link_hover_main_item.rift-tile--aframe {
        background-image: url(../img/projects/a-frame/menu-tile-cutout.webp) !important;
        background-position: center bottom !important;
        background-size: auto 78% !important;
    }
}

/* [1.8.8] «Вы смотрели» */
.rift-recent { padding: 36px 0; }
.rift-recent[hidden] { display: none; }
.rift-recent__title { font: 600 24px/1.2 'Zona Pro', sans-serif; margin: 0 0 18px; color: #000; }
.rift-recent__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.rift-recent__item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #313131; }
.rift-recent__item img, .rift-recent__noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #F2F2F2; display: block; height: auto; }
.rift-recent__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.rift-recent__item:hover .rift-recent__name { color: #FF7A00; }
.rift-recent__meta { font-size: 13px; color: #777; }
.rift-recent__price { font-size: 14px; font-weight: 600; color: #000; }
@media (max-width: 600px) {
    .rift-recent__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .rift-recent__item { scroll-snap-align: start; }
}

/* [1.8.8] Разделы каталога по теме (конец статьи) */
.rift-related-cat { margin: 40px 0 0; padding: 22px 24px; background: #F7F5F2; border-radius: 8px; }
.rift-related-cat__title { font: 600 20px/1.25 'Zona Pro', sans-serif; margin: 0 0 12px; color: #000; }
.rift-related-cat__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.rift-related-cat__list a { color: #313131; border-bottom: 1px solid #DDD; text-decoration: none; }
.rift-related-cat__list a:hover { color: #FF7A00; border-color: #FF7A00; }
a.rift-autolink { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,122,0,.55); text-underline-offset: 2px; }
a.rift-autolink:hover { color: #FF7A00; }

/* [1.8.8-f] «Смотрите также в каталоге» и «Этот проект в каталоге» */
.rift-seealso { margin: 40px 0; }
.rift-seealso__title { font-size: 24px; line-height: 1.25; margin: 0 0 16px; }
.rift-seealso__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rift-seealso__list a { display: inline-block; padding: 9px 14px; border: 1px solid #E2E2E2; border-radius: 8px; color: #1E1E1E; text-decoration: none; font-size: 15px; line-height: 1.3; }
.rift-seealso__list a:hover { border-color: #FF7A00; color: #FF7A00; }
@media (max-width: 767px) { .rift-seealso { margin: 28px 0; } .rift-seealso__title { font-size: 20px; } .rift-seealso__list a { font-size: 14px; padding: 8px 12px; } }
