/* ==========================================================================
   IVLEV REALTY — кастомные стили дочерней темы
   ==========================================================================
   Бренд:
     --bg          #FAFAF8  off-white (фон body, хедера)
     --text        #1A1A1A  основной текст
     --text-muted  #6B6B6B  второстепенный
     --accent      #8B7355  бронза (акценты, ссылки меню)
     --accent-dark #6B5841  тёмная бронза (hover)
     --line        #E5E3DE  тонкие бордеры
   ========================================================================== */

/* === HEADER (Header 4 from Houzez) === */

/* Фон хедера + тонкая нижняя граница (30.04.2026: !important + покрытие mobile/desktop+sticky) */
.header-v4 .header-main-wrap,
.header-v4 .header-inner-wrap,
.header-v4 .header-desktop,
.header-v4 .header-mobile,
.header-main-wrap,
.header-mobile,
.header-mobile-sticky,
.is-sticky .header-main-wrap,
.header-stuck .header-main-wrap {
    background-color: #FAFAF8 !important;
    background: #FAFAF8 !important;
    border-bottom: 1px solid #E5E3DE;
}
/* Мобильный логотип/иконки/menu — бренд-бронза.
 * 30.04.2026: ID-селектор #header-mobile перебивает inline-style блок Houzez Customizer
 * (он использует только class-only `.header-mobile { background: #004274 }`).
 */
#header-mobile,
#header-mobile.header-mobile {
    background-color: #FAFAF8 !important;
    background: #FAFAF8 !important;
    border-bottom: 1px solid #E5E3DE;
}
#header-mobile .toggle-button-left,
#header-mobile .toggle-button-left i,
#header-mobile .toggle-button-left .houzez-icon,
#header-mobile a,
.header-mobile,
.header-mobile a,
.header-mobile .navbar-toggler,
.header-mobile .houzez-mobile-icons a,
.header-mobile .houzez-mobile-icons i {
    color: #8B7355 !important;
}
/* Иконка бургера крупнее для лучшей видимости на мобилке */
#header-mobile .toggle-button-left .houzez-icon,
#header-mobile .toggle-button-left i {
    font-size: 22px !important;
}

/* Скрыть иконку профиля (login/account) — справа в мобильном и в десктопе.
 * visibility:hidden оставляет контейнер на месте → лого продолжает центрироваться. */
#header-mobile .toggle-button-right,
.header-mobile .toggle-button-right,
.header-v4 .toggle-button-right {
    visibility: hidden !important;
}

/* Цвет ссылок главного меню (десктоп) */
.header-v4 .navbar-nav > li > a,
.header-v4 .navbar-nav > .nav-item > .nav-link {
    color: #8B7355;
    transition: color 0.2s ease;
}

/* Hover */
.header-v4 .navbar-nav > li > a:hover,
.header-v4 .navbar-nav > .nav-item > .nav-link:hover {
    color: #6B5841;
}

/* Активный пункт меню (текущая страница) */
.header-v4 .navbar-nav > li.current-menu-item > a,
.header-v4 .navbar-nav > li.current_page_item > a,
.header-v4 .navbar-nav > .current-menu-item > .nav-link {
    color: #6B5841;
    font-weight: 500;
}

/* Мобильное меню (off-canvas) — те же цвета бренда */
.mobile-navbar-nav > li > a,
.mobile-navbar-nav .nav-link {
    color: #8B7355;
}
.mobile-navbar-nav > li > a:hover,
.mobile-navbar-nav > li.current-menu-item > a,
.mobile-navbar-nav > li.current_page_item > a {
    color: #6B5841;
}

/* Иконка-burger в мобильном хедере (если рендерится) */
.header-mobile .navbar-toggler {
    color: #8B7355;
}

/* === FOOTER — IVLEV brand dark === */

/* Ссылки в футере (бронза, отдельно от основного текста #FAFAF8) */
.footer-top-wrap a,
.footer-bottom-wrap a {
    color: #8B7355;
    transition: color 0.2s ease;
}
.footer-top-wrap a:hover,
.footer-bottom-wrap a:hover {
    color: #A68A65;
}

/* Тонкая линия между блоком виджетов и блоком копирайта */
.footer-bottom-wrap {
    border-top: 1px solid #2A2A2A;
}

/* Бордеры виджетов в футере (если рендерятся) — приглушаем */
.footer-top-wrap .widget,
.footer-top-wrap .widget-title,
.footer-top-wrap input,
.footer-top-wrap textarea,
.footer-top-wrap .form-control {
    border-color: #2A2A2A;
}

/* Заголовки виджетов в футере — off-white, чуть приглушённее */
.footer-top-wrap .widget-title,
.footer-top-wrap h1, .footer-top-wrap h2,
.footer-top-wrap h3, .footer-top-wrap h4,
.footer-top-wrap h5, .footer-top-wrap h6 {
    color: #FAFAF8;
}

/* ==========================================================================
   HOME PAGE (Prototype v1) — scoped under .ivlev-home
   Все стили внутри .ivlev-home чтобы не задеть остальные страницы Houzez.
   ========================================================================== */

/* === CSS variables (global, безопасно) === */
:root {
    --bg: #FAFAF8;
    --bg-dark: #0E0E0E;
    --bg-panel: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-on-dark: #FAFAF8;
    --text-on-dark-muted: #B8B5AD;
    --accent: #8B7355;
    --accent-hover: #A68A65;
    --line: #E5E3DE;
    --line-dark: rgba(255, 255, 255, 0.15);
    --max-w: 1440px;
    --gutter: clamp(20px, 4vw, 64px);
    --serif: "Playfair Display", "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Сбросы только внутри ivlev-home === */
.ivlev-home * { box-sizing: border-box; }
.ivlev-home a { color: inherit; text-decoration: none; }
.ivlev-home button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* === Layout === */
.ivlev-home section { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.ivlev-home .container { max-width: var(--max-w); margin: 0 auto; }
.ivlev-home .section-label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.ivlev-home .section-title { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 56px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; max-width: 720px; }
.ivlev-home .section-title em { font-style: italic; }

/* === HERO === */
.ivlev-home .hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-on-dark); text-align: center; padding: 0; }
.ivlev-home .hero-placeholder { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 25, 30, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%), linear-gradient(135deg, #4a3a2a 0%, #2a2520 40%, #1a1a1a 100%); z-index: 0; }
.ivlev-home .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.55) 100%); z-index: 1; }
.ivlev-home .hero-content { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 900px; }
.ivlev-home .hero-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: 28px; }
.ivlev-home .hero-title { font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); font-weight: 400; line-height: 1.05; margin-bottom: 28px; letter-spacing: -0.01em; color: var(--text-on-dark); }
.ivlev-home .hero-title em { font-style: italic; font-weight: 400; }
.ivlev-home .hero-sub { font-size: 16px; color: var(--text-on-dark-muted); margin: 0 auto 48px; max-width: 540px; line-height: 1.5; }
.ivlev-home .hero-cta-group { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ivlev-home .hero-counter { position: absolute; bottom: 40px; left: var(--gutter); z-index: 2; color: var(--text-on-dark); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.ivlev-home .hero-counter strong { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: 0; display: block; text-transform: none; margin-bottom: 2px; }
/* 30.04.2026 v2: на мобильном hero — fit-to-content, без растяжки на 100vh.
 * Было: height:100vh + min-height:640px → под кнопками висел пустой чёрный блок.
 * Все возможные обёртки/дочерние принудительно height:auto + min-height:0 чтобы
 * никакое наследованное houzez/elementor правило не пушило вверх. */
@media (max-width: 768px) {
    body.ivlev-home .hero,
    body.ivlev-home section.hero,
    .ivlev-home .hero-content,
    .ivlev-home .hero-cta-group {
        height: auto !important;
        min-height: 0 !important;
    }
    body.ivlev-home .hero,
    body.ivlev-home section.hero {
        padding: 80px var(--gutter) 40px !important;
    }
    .ivlev-home .hero-counter {
        position: static !important;
        margin: 24px auto 0 !important;
        left: auto;
        bottom: auto;
    }
    /* hero-placeholder и hero-overlay — absolute inset:0, привязаны к .hero — наследуют новую auto-высоту, ОК */
}

/* === Buttons === */
.ivlev-home .btn-primary { display: inline-flex; align-items: center; gap: 16px; padding: 18px 36px; background: var(--text); color: var(--bg); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; transition: all 0.2s; }
.ivlev-home .btn-primary:hover { background: #000; transform: translateY(-1px); }
.ivlev-home .btn-primary .arrow { width: 12px; height: 12px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.ivlev-home .btn-ghost-light { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-on-dark-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 4px; }
.ivlev-home .btn-primary-light { background: var(--bg); color: var(--text); }

/* === Deals feed === */
.ivlev-home .deals-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 40px; flex-wrap: wrap; }
.ivlev-home .deals-header-text { flex: 1; min-width: 300px; }
.ivlev-home .deals-header-meta { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); text-align: right; }
.ivlev-home .deals-header-meta strong { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
.ivlev-home .deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ivlev-home .deal-card { background: var(--bg-panel); border: 1px solid var(--line); transition: all 0.3s; cursor: pointer; }
.ivlev-home .deal-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12); }
.ivlev-home .deal-card-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #c9a876 0%, #8b6a42 100%); position: relative; overflow: hidden; }
.ivlev-home .deal-card-img.img-2 { background: linear-gradient(135deg, #5a7a9c 0%, #2e4a6a 100%); }
.ivlev-home .deal-card-img.img-3 { background: linear-gradient(135deg, #8a7e6a 0%, #4e4638 100%); }
.ivlev-home .deal-card-img.img-4 { background: linear-gradient(135deg, #9c8a76 0%, #6a5842 100%); }
.ivlev-home .deal-card-img.img-5 { background: linear-gradient(135deg, #6a8a7c 0%, #3a5a4c 100%); }
.ivlev-home .deal-card-img.img-6 { background: linear-gradient(135deg, #8c7a9c 0%, #4a3a5a 100%); }
.ivlev-home .deal-card-tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.ivlev-home .tag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 12px; background: rgba(255, 255, 255, 0.95); color: var(--text); font-weight: 500; }
.ivlev-home .tag-dark { background: var(--text); color: var(--bg); }
.ivlev-home .tag-hot { background: #C94A3F; color: #fff; }
.ivlev-home .deal-card-body { padding: 24px 24px 28px; }
.ivlev-home .deal-card-location { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.ivlev-home .deal-card-title { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; color: var(--text); }
.ivlev-home .deal-card-meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.ivlev-home .deal-card-price { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text); }
.ivlev-home .deal-card-date { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 900px) { .ivlev-home .deals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ivlev-home .deals-grid { grid-template-columns: 1fr; } }

/* === CTA band === */
.ivlev-home .cta-band { background: var(--bg-dark); color: var(--text-on-dark); text-align: center; }
.ivlev-home .cta-band .section-title { color: var(--text-on-dark); margin: 0 auto 32px; }
.ivlev-home .cta-band-sub { color: var(--text-on-dark-muted); max-width: 540px; margin: 0 auto 48px; font-size: 16px; line-height: 1.6; }

/* === About === */
.ivlev-home .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ivlev-home .about-img-wrap { aspect-ratio: 3/4; background: linear-gradient(135deg, #4a4238 0%, #2a2520 100%); position: relative; overflow: hidden; }
.ivlev-home .about-img-wrap::after { content: "ФОТО ВАДИМА"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.25); font-size: 13px; letter-spacing: 0.3em; }
.ivlev-home .about-content h2 { font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); font-weight: 400; line-height: 1; margin-bottom: 40px; letter-spacing: -0.02em; color: var(--text); }
.ivlev-home .about-content p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; max-width: 520px; }
.ivlev-home .about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 520px; }
.ivlev-home .about-stat strong { display: block; font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1; margin-bottom: 8px; color: var(--text); }
.ivlev-home .about-stat span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 900px) { .ivlev-home .about-grid { grid-template-columns: 1fr; } }

/* === Testimonials === */
.ivlev-home .testimonials { background: var(--bg); border-top: 1px solid var(--line); }
.ivlev-home .testimonials-header { text-align: center; margin-bottom: 80px; }
.ivlev-home .testimonials-header .section-title { margin: 0 auto; }
.ivlev-home .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.ivlev-home .testimonial-quote { font-family: var(--serif); font-size: 20px; line-height: 1.5; font-style: italic; margin-bottom: 32px; color: var(--text); }
.ivlev-home .testimonial-author { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); padding-top: 24px; border-top: 1px solid var(--line); }
.ivlev-home .testimonial-author strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; letter-spacing: 0.1em; }
@media (max-width: 900px) { .ivlev-home .testimonials-grid { grid-template-columns: 1fr; gap: 48px; } }

/* === Blog === */
.ivlev-home .blog { background: var(--bg-panel); border-top: 1px solid var(--line); }
.ivlev-home .blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 40px; flex-wrap: wrap; }
.ivlev-home .blog-link { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid var(--text); padding-bottom: 4px; color: var(--text); }
.ivlev-home .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.ivlev-home .blog-item-img { aspect-ratio: 3/2; background: linear-gradient(135deg, #b8a48a 0%, #7a6850 100%); margin-bottom: 24px; }
.ivlev-home .blog-item-img.b2 { background: linear-gradient(135deg, #6a7a8c 0%, #3a4a5c 100%); }
.ivlev-home .blog-item-img.b3 { background: linear-gradient(135deg, #8a8070 0%, #4a4238 100%); }
.ivlev-home .blog-item-category { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.ivlev-home .blog-item-title { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.25; margin-bottom: 12px; color: var(--text); }
.ivlev-home .blog-item-meta { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }
@media (max-width: 900px) { .ivlev-home .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CATALOG + PROPERTY DETAIL (Prototype v2) — scoped under .ivlev
   OTP MODAL (#otpModal) — без scope, глобальный (подключается через wp_footer)
   ========================================================================== */

/* === Доп. переменные === */
:root {
    --bg-subtle: #F2F1EC;
    --line-strong: #D1CEC5;
}

/* === Сбросы === */
.ivlev * { box-sizing: border-box; }
.ivlev a { color: inherit; text-decoration: none; }
.ivlev button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
.ivlev input, .ivlev select { font-family: inherit; }

/* === CATALOG: hero === */
.ivlev .catalog-hero { padding: 64px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ivlev .catalog-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.ivlev .catalog-breadcrumb { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.ivlev .catalog-title { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 16px; color: var(--text); }
.ivlev .catalog-title em { font-style: italic; }
.ivlev .catalog-sub { font-size: 15px; color: var(--text-muted); max-width: 620px; }

/* === CATALOG: filters === */
.ivlev .filters-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 20px var(--gutter); position: sticky; top: 0; z-index: 40; }
.ivlev .filters-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ivlev .city-switch { display: inline-flex; background: var(--bg-subtle); padding: 3px; border-radius: 100px; }
.ivlev .city-switch button { padding: 8px 18px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px; color: var(--text-muted); transition: all 0.2s; }
.ivlev .city-switch button.active { background: var(--text); color: var(--bg); }
.ivlev .city-switch a { padding: 8px 18px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px; color: var(--text-muted); transition: all 0.2s; text-decoration: none; }
.ivlev .city-switch a.active { background: var(--text); color: var(--bg); }
.ivlev .city-switch .ivlev-city-disabled { padding: 8px 18px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px; color: var(--text-muted); opacity: .5; cursor: not-allowed; user-select: none; }
.ivlev .filter-pill { padding: 10px 16px; border: 1px solid var(--line-strong); background: #fff; font-size: 12px; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; border-radius: 100px; color: var(--text); }
.ivlev .filter-pill:hover { border-color: var(--text); }
.ivlev .filter-pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.ivlev .filter-pill .caret { width: 8px; height: 8px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.ivlev .filter-pill .close { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }
.ivlev .filter-sort-wrap { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.ivlev .filter-results-count { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }
.ivlev .filter-sort { padding: 8px 12px; font-size: 12px; border: 1px solid var(--line-strong); background: #fff; }

/* === CATALOG: map === */
.ivlev .map-block { padding: 32px var(--gutter); background: var(--bg); }
.ivlev .map-inner { max-width: var(--max-w); margin: 0 auto; }
.ivlev .map-toggle { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ivlev .map-toggle-btn { padding: 8px 14px; border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; transition: all 0.2s; color: var(--text); }
.ivlev .map-toggle-btn:hover { border-color: var(--text); }
.ivlev .map-toggle-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.ivlev .map-placeholder { height: 380px; background: linear-gradient(135deg, #e8e4db 0%, #c9c3b5 100%); position: relative; overflow: hidden; border: 1px solid var(--line); }
.ivlev .map-placeholder::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 80px), repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 80px); }
.ivlev .map-marker { position: absolute; width: 44px; height: 44px; background: var(--text); border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; font-weight: 500; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.2s; }
.ivlev .map-marker:hover { transform: translate(-50%, -50%) scale(1.1); }
.ivlev .map-marker.cluster { background: #fff; color: var(--text); border: 2px solid var(--text); width: 52px; height: 52px; }
.ivlev .map-hint { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,0.95); padding: 10px 16px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

/* === CATALOG: results header + grid === */
.ivlev .catalog-grid-wrap { padding: 32px var(--gutter) 96px; background: var(--bg); }
.ivlev .catalog-grid-inner { max-width: var(--max-w); margin: 0 auto; }
.ivlev .catalog-results-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.ivlev .catalog-results-title { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--text); }
.ivlev .catalog-results-city { color: var(--text-muted); font-size: 20px; }
.ivlev .catalog-results-count { font-size: 12px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.ivlev .catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1100px) { .ivlev .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ivlev .catalog-grid { grid-template-columns: 1fr; } }

/* === Property card (общая, используется в каталоге и в "Похожих") === */
.ivlev .prop-card { background: #fff; border: 1px solid var(--line); transition: transform 0.3s, box-shadow 0.3s; position: relative; cursor: pointer; }
.ivlev .prop-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.12); }
/* 01.05.2026 v3: фото вынесено в нативный <img class="prop-card-thumb">.
 * .prop-card-img — wrapper-link <a> с aspect-ratio. Фото — <img>, fallback — span с SVG. */
.ivlev .prop-card-img { display: block; aspect-ratio: 4/3; position: relative; overflow: hidden; background: #f5f4f1; }
.ivlev .prop-card-img.v2 { background: linear-gradient(135deg, #5a7a9c 0%, #2e4a6a 100%); }
.ivlev .prop-card-img.v3 { background: linear-gradient(135deg, #8a7e6a 0%, #4e4638 100%); }
.ivlev .prop-card-img.v4 { background: linear-gradient(135deg, #9c8a76 0%, #6a5842 100%); }
.ivlev .prop-card-img.v5 { background: linear-gradient(135deg, #6a8a7c 0%, #3a5a4c 100%); }
.ivlev .prop-card-img.v6 { background: linear-gradient(135deg, #8c7a9c 0%, #4a3a5a 100%); }
.ivlev .prop-card-img.v7 { background: linear-gradient(135deg, #a08865 0%, #6a5838 100%); }
.ivlev .prop-card-img.v8 { background: linear-gradient(135deg, #7a8ca0 0%, #3a4a5a 100%); }
.ivlev .prop-card-img.v9 { background: linear-gradient(135deg, #9a7c68 0%, #5a4638 100%); }
.ivlev .prop-card-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ivlev .prop-card:hover .prop-card-thumb { transform: scale(1.04); }
.ivlev .prop-card-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(139, 115, 85, 0.40);
    background: linear-gradient(135deg, #f5f4f1 0%, #e8e3da 100%);
}
.ivlev .prop-card-thumb-fallback svg { width: 48px; height: 48px; }
/* tags + heart переехали под фото в body — row с space-between */
.ivlev .prop-card-tags-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ivlev .prop-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ivlev .tag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 10px; background: var(--bg-subtle, #efece6); color: var(--text); font-weight: 500; }
.ivlev .tag-dark { background: var(--text); color: var(--bg); }
.ivlev .tag-hot { background: #C94A3F; color: #fff; }
/* 01.05.2026: Golden Visa бэйдж — outlined gold-tone, отличается от обычных бэйджей.
 * <button> для tap-to-tooltip на mobile (CSS-only через :hover/:focus + .is-open from JS toggle). */
.ivlev .tag-gv {
    position: relative;
    display: inline-block;
    background: transparent;
    color: #B8973D;
    border: 1px solid rgba(184, 151, 61, 0.55);
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1.2;
    font-family: inherit;
    border-radius: 0;
}
.ivlev .tag-gv:hover { border-color: #B8973D; background: rgba(184, 151, 61, 0.08); }
.ivlev .tag-gv-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1A1A1A;
    color: #FAFAF8;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 4px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 50;
}
.ivlev .tag-gv-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1A1A1A;
}
.ivlev .tag-gv:hover .tag-gv-tooltip,
.ivlev .tag-gv:focus-visible .tag-gv-tooltip,
.ivlev .tag-gv.is-open .tag-gv-tooltip {
    opacity: 1;
    visibility: visible;
}
.ivlev .prop-fav { width: 36px; height: 36px; background: var(--bg-subtle, #efece6); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; border: 0; cursor: pointer; padding: 0; }
.ivlev .prop-fav:hover { background: rgba(139, 115, 85, 0.15); }
.ivlev .prop-fav svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.5; transition: fill 0.2s; }
.ivlev .prop-fav.active svg { fill: #C94A3F; stroke: #C94A3F; }
.ivlev .prop-card-body { padding: 18px 22px 24px; }
.ivlev .prop-card-location { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 01.05.2026: title clamp до 2 строк + min-height фиксирует высоту блока,
 * чтобы карточки в grid были одинаковой высоты независимо от длины названия. */
.ivlev .prop-card-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--text);
    min-height: calc(22px * 1.2 * 2);  /* ровно 2 строки 22×1.2 = 52.8px */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ivlev .prop-card-title a { color: inherit; text-decoration: none; }
.ivlev .prop-card-specs { display: flex; gap: 18px; font-size: 12px; color: var(--text-muted); margin-bottom: 18px; min-height: 22px; }
.ivlev .prop-card-specs span { display: inline-flex; align-items: center; gap: 6px; }
.ivlev .prop-card-specs svg { width: 14px; height: 14px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; }
.ivlev .prop-card-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.ivlev .prop-card-price { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text); }
.ivlev .prop-card-payment { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; }
/* 01.05.2026: fallback "Цена по запросу" для объектов с пустой/нулевой ценой.
 * Visually отличается от Playfair (главная цена) — Inter серый, чтобы не путали с реальной ценой. */
.ivlev .prop-card-price-on-request {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.02em;
}
.ivlev-prop-price-on-request {
    font-family: var(--sans);
    font-weight: 500;
    color: #666;
}
@media (max-width: 768px) {
    /* Полный формат цены может быть длинным ($43,183,274 = 11 символов) — уменьшаем размер на mobile */
    .ivlev .prop-card-price { font-size: 17px; }
    .ivlev-prop-price { font-size: clamp(26px, 7vw, 36px) !important; }
    .ivlev-prop-sidebar-price { font-size: 22px !important; }
}

/* === Gated card (для гостя) === */
.ivlev .prop-card.gated { cursor: pointer; }
/* 01.05.2026 v3: blur теперь на <img>, не на wrapper, чтобы overlay поверх не был размыт.
 * scale(1.1) убирает blured edges. ::after — затемняющий слой над blur. */
.ivlev .prop-card.gated .prop-card-thumb { filter: blur(16px) brightness(0.9); transform: scale(1.1); }
.ivlev .prop-card.gated .prop-card-thumb-fallback { filter: blur(8px) brightness(0.85); }
.ivlev .prop-card.gated .prop-card-img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 1; }
.ivlev .prop-card.gated .gated-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 3; padding: 20px; color: #fff; }
/* На gated карточках hover-zoom не нужен (blur скрывает деталь, движение тоже не помогает) */
.ivlev .prop-card.gated:hover .prop-card-thumb { transform: scale(1.1); }
.ivlev .gated-overlay-icon { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ivlev .gated-overlay-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.5; }
.ivlev .gated-overlay-title { font-family: var(--serif); font-size: 18px; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.ivlev .gated-overlay-sub { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.ivlev .prop-card.gated .prop-card-title { color: transparent; background: linear-gradient(90deg, var(--text) 0%, var(--text) 40%, transparent 70%); -webkit-background-clip: text; background-clip: text; filter: blur(5px); user-select: none; }
.ivlev .prop-card.gated .prop-card-price { color: transparent; user-select: none; position: relative; }
.ivlev .prop-card.gated .prop-card-price::before { content: "••••"; color: var(--text-muted); position: absolute; left: 0; }
.ivlev .prop-card.gated .prop-fav { display: none; }

/* === CTA-карточка внутри сетки === */
.ivlev .prop-card.gated-cta { background: var(--text); color: var(--bg); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 32px; cursor: pointer; text-align: left; transition: background 0.3s; }
.ivlev .prop-card.gated-cta:hover { background: #000; }
.ivlev .prop-card.gated-cta .label { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: 20px; }
.ivlev .prop-card.gated-cta h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.15; margin-bottom: 28px; color: var(--bg); }
.ivlev .prop-card.gated-cta h3 em { font-style: italic; }
.ivlev .prop-card.gated-cta .arrow-link { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; display: inline-flex; align-items: center; gap: 10px; color: var(--bg); }

/* === PROPERTY DETAIL === */
.ivlev .prop-detail { padding: 48px var(--gutter) 96px; background: var(--bg); }
.ivlev .prop-detail-inner { max-width: var(--max-w); margin: 0 auto; }
.ivlev .prop-detail-breadcrumb { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 32px; }
.ivlev .prop-detail-breadcrumb a { color: var(--text-muted); }
.ivlev .prop-detail-breadcrumb a:hover { color: var(--text); }
.ivlev .prop-detail-breadcrumb .sep { margin: 0 10px; }

.ivlev .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 560px; margin-bottom: 48px; position: relative; }
@media (max-width: 900px) { .ivlev .gallery { height: 400px; grid-template-columns: 1fr 1fr; } }
.ivlev .gallery-main { grid-row: 1 / span 2; background: linear-gradient(135deg, #c9a876 0%, #8b6a42 100%); position: relative; }
.ivlev .gallery-item { background: linear-gradient(135deg, #8a7e6a 0%, #4e4638 100%); }
.ivlev .gallery-item.g2 { background: linear-gradient(135deg, #6a8a9c 0%, #3e4a6a 100%); }
.ivlev .gallery-item.g3 { background: linear-gradient(135deg, #9c8a76 0%, #6a5842 100%); }
.ivlev .gallery-item.g4 { background: linear-gradient(135deg, #6a8a7c 0%, #3a5a4c 100%); position: relative; }
.ivlev .gallery-all-btn { position: absolute; bottom: 20px; right: 20px; background: rgba(255,255,255,0.95); padding: 10px 18px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; z-index: 2; color: var(--text); }
.ivlev .gallery-all-btn .arrow { width: 10px; height: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); display: inline-block; }

.ivlev .prop-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; margin-bottom: 80px; }
@media (max-width: 900px) { .ivlev .prop-detail-grid { grid-template-columns: 1fr; gap: 40px; } }
.ivlev .prop-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; gap: 20px; }
.ivlev .prop-detail-main-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--text); }
.ivlev .prop-detail-location { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ivlev .prop-detail-fav { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ivlev .prop-detail-fav svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.5; }
.ivlev .prop-detail-fav.active svg { fill: #C94A3F; stroke: #C94A3F; }
.ivlev .prop-detail-tags { display: flex; gap: 8px; margin-bottom: 32px; }
.ivlev .prop-detail-desc { font-size: 16px; line-height: 1.75; color: var(--text); margin-bottom: 32px; }
.ivlev .prop-detail-desc p + p { margin-top: 16px; }

.ivlev .prop-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
@media (max-width: 640px) { .ivlev .prop-specs { grid-template-columns: repeat(2, 1fr); } }
.ivlev .prop-spec strong { font-family: var(--serif); font-size: 22px; font-weight: 400; display: block; margin-bottom: 6px; color: var(--text); }
.ivlev .prop-spec span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

.ivlev .amenities { margin-bottom: 40px; }
.ivlev .amenities h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 20px; color: var(--text); }
.ivlev .amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ivlev .amenity { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ivlev .amenity .check { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.ivlev .amenity .check svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* === Sidebar === */
.ivlev .prop-sidebar { position: sticky; top: 100px; align-self: start; }
.ivlev .prop-sidebar-card { background: #fff; border: 1px solid var(--line); padding: 32px; }
.ivlev .prop-sidebar-card.sidebar-gated-wrap { border: 0; padding: 0; }
.ivlev .sidebar-price-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.ivlev .sidebar-price { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; margin-bottom: 4px; letter-spacing: -0.01em; color: var(--text); }
.ivlev .sidebar-price-note { font-size: 12px; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ivlev .payment-plan-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.ivlev .payment-plan-list { list-style: none; margin-bottom: 28px; padding: 0; }
.ivlev .payment-plan-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ivlev .payment-plan-list li:last-child { border-bottom: none; }
.ivlev .payment-plan-list .label-l { color: var(--text-muted); }
.ivlev .payment-plan-list .label-v { font-family: var(--serif); font-size: 16px; color: var(--text); }
.ivlev .payment-plan-list .row-hot .label-v { color: #C94A3F; }

.ivlev .msg-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ivlev .msg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; transition: all 0.2s; border: 1px solid transparent; }
.ivlev .msg-btn.wa { background: #25D366; color: #fff; }
.ivlev .msg-btn.tg { background: #229ED9; color: #fff; }
.ivlev .msg-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ivlev .msg-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* Gated sidebar */
.ivlev .sidebar-gated { text-align: center; padding: 40px 32px; background: var(--text); color: var(--bg); }
.ivlev .sidebar-gated-icon { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.ivlev .sidebar-gated-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.5; }
.ivlev .sidebar-gated h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; color: var(--bg); }
.ivlev .sidebar-gated p { font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.6; margin-bottom: 28px; }
.ivlev .btn-primary-light { display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px; background: var(--bg); color: var(--text); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; transition: all 0.2s; }
.ivlev .btn-primary-light:hover { background: #fff; transform: translateY(-1px); }
.ivlev .btn-primary-light .arrow { width: 10px; height: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); display: inline-block; }

/* Similar properties */
.ivlev .similar { padding-top: 64px; border-top: 1px solid var(--line); }
.ivlev .similar h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin-bottom: 32px; color: var(--text); }
.ivlev .similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .ivlev .similar-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   OTP MODAL — БЕЗ scope (модал глобальный, в footer)
   ========================================================================== */
.ivlev-otp { position: fixed; inset: 0; background: rgba(14,14,14,0.6); backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.ivlev-otp.active { display: flex; }
.ivlev-otp .ivlev-otp-panel { display: block; top: auto; left: auto; width: 100%; height: auto; background: #fff; width: 100%; max-width: 480px; padding: 48px 48px 40px; position: relative; animation: ivlevSlideUp 0.3s ease-out; color: #1A1A1A; font-family: "Inter", -apple-system, sans-serif; }
@keyframes ivlevSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ivlev-otp .ivlev-otp-panel-close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #6B6B6B; transition: color 0.2s; background: none; border: none; cursor: pointer; }
.ivlev-otp .ivlev-otp-panel-close:hover { color: #1A1A1A; }
.ivlev-otp .ivlev-otp-panel-eyebrow { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: #8B7355; margin-bottom: 14px; }
.ivlev-otp .ivlev-otp-panel-title { font-family: "Playfair Display", serif; font-size: 32px; font-weight: 400; line-height: 1.15; margin-bottom: 12px; color: #1A1A1A; }
.ivlev-otp .ivlev-otp-panel-sub { font-size: 14px; color: #6B6B6B; line-height: 1.6; margin-bottom: 32px; }
.ivlev-otp .ivlev-otp-panel-object-badge { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #F2F1EC; margin-bottom: 32px; }
.ivlev-otp .ivlev-otp-panel-object-thumb { width: 50px; height: 50px; background: linear-gradient(135deg, #c9a876 0%, #8b6a42 100%); flex-shrink: 0; }
.ivlev-otp .ivlev-otp-panel-object-info { font-size: 12px; line-height: 1.4; }
.ivlev-otp .ivlev-otp-panel-object-info strong { font-family: "Playfair Display", serif; font-size: 15px; font-weight: 400; display: block; margin-bottom: 2px; }
.ivlev-otp .ivlev-otp-panel-object-info span { color: #6B6B6B; }
.otp-step { display: none; }
.otp-step.active { display: block; }

.ivlev-otp .phone-field { display: flex; gap: 10px; margin-bottom: 24px; }
.ivlev-otp .phone-country { padding: 14px 16px; border: 1px solid #D1CEC5; font-size: 14px; background: #fff; min-width: 100px; }
.ivlev-otp .phone-input { flex: 1; padding: 14px 16px; border: 1px solid #D1CEC5; font-size: 15px; outline: none; transition: border-color 0.2s; }
.ivlev-otp .phone-input:focus { border-color: #1A1A1A; }
.ivlev-otp .channel-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #6B6B6B; margin-bottom: 14px; display: block; }
.ivlev-otp .channel-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
.ivlev-otp .channel-btn { padding: 18px 14px; border: 1px solid #D1CEC5; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.2s; cursor: pointer; }
.ivlev-otp .channel-btn:hover { border-color: #1A1A1A; }
.ivlev-otp .channel-btn.selected { border: 2px solid #1A1A1A; padding: 17px 13px; }
.ivlev-otp .channel-btn .ico { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 600; }
.ivlev-otp .channel-btn .ico.wa { background: #25D366; }
.ivlev-otp .channel-btn .ico.tg { background: #229ED9; }
.ivlev-otp .channel-btn .ch-name { font-size: 13px; font-weight: 500; letter-spacing: 0.05em; }
.ivlev-otp .channel-btn .ch-desc { font-size: 11px; color: #6B6B6B; }

.ivlev-otp .btn-submit { width: 100%; padding: 18px; background: #1A1A1A; color: #FAFAF8; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; transition: background 0.2s, transform 0.1s; cursor: pointer; border: none; }
.ivlev-otp .btn-submit:hover { background: #000; }
.ivlev-otp .btn-submit:active { transform: scale(0.99); }
.ivlev-otp .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ivlev-otp .consent { font-size: 11px; color: #6B6B6B; line-height: 1.5; margin-top: 18px; text-align: center; }
.ivlev-otp .consent a { color: #1A1A1A; text-decoration: underline; }
/* 30.04.2026: чекбокс согласия (replace параграфа) — выровнен в строку, текст слева, чекбокс кликабельный */
.ivlev-otp .ivlev-otp-consent { display: flex; align-items: flex-start; gap: 10px; text-align: left; cursor: pointer; user-select: none; padding: 12px 0; margin-top: 0; margin-bottom: 8px; }
.ivlev-otp .ivlev-otp-consent input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0 0; cursor: pointer; accent-color: #8B7355; }
.ivlev-otp .ivlev-otp-consent span { flex: 1; font-size: 11px; color: #6B6B6B; line-height: 1.5; }

.ivlev-otp .code-boxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.ivlev-otp .code-box { width: 52px; height: 60px; border: 1px solid #D1CEC5; font-size: 24px; text-align: center; font-family: "Playfair Display", serif; outline: none; transition: border-color 0.2s; }
.ivlev-otp .code-box:focus { border-color: #1A1A1A; border-width: 2px; }
.ivlev-otp .resend { text-align: center; font-size: 13px; color: #6B6B6B; margin-top: 20px; }
.ivlev-otp .resend a { color: #1A1A1A; border-bottom: 1px solid #1A1A1A; padding-bottom: 1px; }
.ivlev-otp .back-step { font-size: 12px; letter-spacing: 0.1em; color: #6B6B6B; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; cursor: pointer; }
.ivlev-otp .back-step:hover { color: #1A1A1A; }
.ivlev-otp .success-icon { width: 72px; height: 72px; border-radius: 50%; background: #F2F1EC; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.ivlev-otp .success-icon svg { width: 32px; height: 32px; stroke: #8B7355; fill: none; stroke-width: 1.5; }
.ivlev-otp .success-center { text-align: center; }

@media (max-width: 700px) {
    .ivlev-otp .ivlev-otp-panel { padding: 40px 28px 32px; }
    .ivlev-otp .ivlev-otp-panel-title { font-size: 26px; }
    .ivlev-otp .code-box { width: 44px; height: 54px; font-size: 20px; }
}


/* === WHATSAPP FLOATING WIDGET ===
   Задача 5 (26.04.2026). Префикс .ivlev-wa-* — не пересекается с Bootstrap 5.
   z-index: 90 — заведомо ниже OTP-модала (.ivlev-otp имеет z-index 9999).
   Соответственно при открытом OTP-модале виджет всегда под модалом.
*/
.ivlev-wa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    animation: ivlevWaFadeIn 0.6s ease 2s forwards;
    pointer-events: none;
}
.ivlev-wa-widget[href] {
    pointer-events: auto;
}
@keyframes ivlevWaFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ivlev-wa-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #8B7355;
    color: #FAFAF8;
    box-shadow: 0 6px 20px rgba(14, 14, 14, 0.18), 0 2px 6px rgba(14, 14, 14, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.ivlev-wa-widget:hover .ivlev-wa-circle {
    transform: scale(1.06);
    background: #6B5841;
    box-shadow: 0 10px 28px rgba(14, 14, 14, 0.24), 0 4px 10px rgba(14, 14, 14, 0.10);
}
.ivlev-wa-tooltip {
    background: #FAFAF8;
    color: #1A1A1A;
    font-family: var(--sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #E5E3DE;
    box-shadow: 0 4px 14px rgba(14, 14, 14, 0.10);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.ivlev-wa-widget:hover .ivlev-wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .ivlev-wa-widget {
        bottom: 18px;
        right: 18px;
    }
    .ivlev-wa-circle {
        width: 50px;
        height: 50px;
    }
    .ivlev-wa-circle svg {
        width: 24px;
        height: 24px;
    }
    .ivlev-wa-tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ivlev-wa-widget {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .ivlev-wa-circle,
    .ivlev-wa-tooltip {
        transition: none;
    }
}


/* === SCROLL-TO-TOP POSITION FIX ===
   Задача 7 (27.04.2026). Houzez по умолчанию ставит scroll-to-top кнопку на
   bottom: 80px, что перекрывает наш WhatsApp-виджет (Задача 5: bottom 24px,
   круг 60px = занимает 24-84px по вертикали).

   Сдвигаем scroll-to-top ВВЕРХ над WhatsApp-виджетом, чтобы они стояли
   в столбик. WhatsApp остаётся на месте (приоритетный канал).

   Селектор Houzez: .back-to-top-wrap
     (HTML: <div class="back-to-top-wrap"><a id="scroll-top" ...></a></div>;
      рендерится в template-parts/footer/back-to-top.php;
      bottom задан на обёртке-wrap, не на самой кнопке #scroll-top)

   !important нужен — Houzez style.css грузится позже и перебил бы без него.
*/
/* 30.04.2026: добавлена floating Telegram-кнопка между WA и scroll-top.
 * Stack снизу вверх:
 *   WA-widget    bottom: 24px desktop / 18px mobile, height 60/50
 *   TG-floating  bottom: 90px desktop / 80px mobile, height 60/50
 *   scroll-top   bottom: 165px desktop / 145px mobile (выше TG на ~12px зазор)
 */
.back-to-top-wrap {
    bottom: 165px !important;
}

@media (max-width: 768px) {
    .back-to-top-wrap {
        bottom: 145px !important;
    }
}


/* ==========================================================================
 * SINGLE PROPERTY + SINGLE PROJECT (Задача 13, 28.04.2026)
 * Префиксы:
 *   .ivlev-prop-*  — single-property и single-project (общие+специфичные)
 *   .ivlev-pp-*    — Payment Plan table
 * Никаких .modal/.btn/.card/.row/.col/.container/.dropdown — Bootstrap съест.
 * ========================================================================== */

.ivlev-prop {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px var(--gutter) 80px;
    color: var(--text);
    font-family: var(--sans);
}

/* === Хлебные крошки === */
.ivlev-prop-breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.ivlev-prop-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.ivlev-prop-breadcrumbs a:hover {
    color: var(--accent);
}
.ivlev-prop-bc-sep {
    margin: 0 8px;
    opacity: 0.6;
}
.ivlev-prop-bc-current {
    color: var(--text);
}

/* === Hero === */
.ivlev-prop-hero {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
.ivlev-prop-hero-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
/* 01.05.2026: оба бэйджа outlined в бренд-бронзе (consistency).
 * Был тёмный плотный «ДУБАЙ» через :first-child override — снят. */
.ivlev-prop-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    background: transparent;
    color: #8B7355;
    font-weight: 500;
    border: 1px solid rgba(139, 115, 85, 0.40);
    border-radius: 0;
    line-height: 1.2;
    font-family: inherit;
}
/* Golden Visa бэйдж в single-property — золотистый тон отличается от бронзы остальных бэйджей.
 * <button> с tap-to-tooltip для mobile, hover-tooltip для desktop. */
.ivlev-prop-tag-gv {
    position: relative;
    color: #B8973D !important;
    border-color: rgba(184, 151, 61, 0.55) !important;
    cursor: pointer;
}
.ivlev-prop-tag-gv:hover { border-color: #B8973D !important; background: rgba(184, 151, 61, 0.08) !important; }
.ivlev-prop-tag-gv-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1A1A1A;
    color: #FAFAF8;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 4px;
    width: 230px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 50;
}
.ivlev-prop-tag-gv-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1A1A1A;
}
.ivlev-prop-tag-gv:hover .ivlev-prop-tag-gv-tooltip,
.ivlev-prop-tag-gv:focus-visible .ivlev-prop-tag-gv-tooltip,
.ivlev-prop-tag-gv.is-open .ivlev-prop-tag-gv-tooltip {
    opacity: 1;
    visibility: visible;
}
.ivlev-prop-title {
    font-family: var(--serif);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--text);
}
.ivlev-prop-project-address {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-decoration: none;
}
/* 01.05.2026: project-link теперь Title Case + бронза + кликабельная ссылка
 * со стрелкой → справа (мелкая, не такая выразительная как CTA-карточка под Payment Plan). */
.ivlev-prop-project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #8B7355;
    margin-bottom: 24px;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.ivlev-prop-project-link:hover {
    color: #6B5841;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ivlev-prop-project-link-arrow {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.ivlev-prop-project-link:hover .ivlev-prop-project-link-arrow {
    transform: translateX(3px);
}
/* 01.05.2026: price + specs теперь в content-area (после галереи, перед описанием).
 * Зазор сверху отделяет от галереи, снизу — от описания. */
.ivlev-prop-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
}
.ivlev-prop-content > .ivlev-prop-specs {
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .ivlev-prop-price-row { margin-top: 24px; gap: 16px; }
    .ivlev-prop-content > .ivlev-prop-specs { margin-bottom: 24px; gap: 20px; }
    .ivlev-prop-project-link { font-size: 13px; }
}
.ivlev-prop-price {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    color: var(--text);
    line-height: 1;
}
.ivlev-prop-payment-label,
.ivlev-prop-project-stats {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ivlev-prop-project-stats strong {
    color: var(--text);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    text-transform: none;
}
/* 01.05.2026: project stats row под галереей — flex-обёртка для нескольких stats inline */
.ivlev-prop-project-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: baseline;
    margin: 24px 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.ivlev-prop-project-stat {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ivlev-prop-project-stat strong {
    color: var(--text);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 18px;
    text-transform: none;
    margin-left: 4px;
}
/* Empty gallery fallback (project без фото) */
.ivlev-prop-gallery.ivlev-prop-gallery-empty {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f5f4f1 0%, #e8e3da 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 115, 85, 0.40);
    border-radius: 4px;
}
@media (max-width: 768px) {
    .ivlev-prop-project-stats-row { gap: 14px; margin: 16px 0 24px; padding-bottom: 16px; }
    .ivlev-prop-project-stats strong { font-size: 18px; }
    .ivlev-prop-project-stat strong { font-size: 16px; }
}
.ivlev-prop-specs {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}
.ivlev-prop-specs strong {
    color: var(--text);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 18px;
}

/* === 2-колоночная сетка === */
.ivlev-prop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 1024px) {
    .ivlev-prop-grid {
        grid-template-columns: 2fr 1fr;
        gap: 64px;
    }
}

/* === Секции === */
.ivlev-prop-section {
    margin-bottom: 48px;
}
.ivlev-prop-section h2 {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--text);
}
.ivlev-prop-prose {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}
.ivlev-prop-prose p { margin: 0 0 16px; }

/* === Галерея === */
.ivlev-prop-gallery-main {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-subtle);
    margin-bottom: 8px;
}
.ivlev-prop-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ivlev-prop-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ivlev-prop-gallery-thumbs a {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-subtle);
}
.ivlev-prop-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.ivlev-prop-gallery-thumbs a:hover img {
    opacity: 0.8;
}

/* === Payment Plan === */
.ivlev-prop-payment-source {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.ivlev-prop-payment-source-note {
    font-style: italic;
    margin-top: 12px;
}
.ivlev-prop-payment-source a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}
.ivlev-pp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ivlev-pp-table th,
.ivlev-pp-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
}
.ivlev-pp-table th {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--line-strong);
}
.ivlev-pp-table tr:hover td {
    background: var(--bg-subtle);
}
.ivlev-pp-cell-title {
    font-weight: 500;
    color: var(--text);
}
.ivlev-pp-cell-pct {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--text);
    width: 80px;
}
.ivlev-pp-cell-amount {
    font-family: var(--serif);
    color: var(--text);
}
.ivlev-pp-cell-due {
    color: var(--text-muted);
    font-size: 13px;
}

/* === CTA «Полная информация о проекте» (под Payment Plan) — 01.05.2026 ===
 * Кликабельная карточка-ссылка ведущая на /project/<slug>/.
 * Появляется только когда у property привязан project (см. single-property.php). */
.ivlev-prop-project-cta {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    margin-top: 24px;
    border: 1px solid rgba(139, 115, 85, 0.30);
    border-radius: 8px;
    background: rgba(139, 115, 85, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ivlev-prop-project-cta:hover {
    border-color: rgba(139, 115, 85, 0.60);
    background: rgba(139, 115, 85, 0.08);
    box-shadow: 0 6px 18px rgba(139, 115, 85, 0.12);
    color: inherit;
}
.ivlev-prop-project-cta-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(139, 115, 85, 0.10);
    color: #8B7355;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ivlev-prop-project-cta-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ivlev-prop-project-cta-title {
    font-family: var(--serif, 'Playfair Display', Georgia, serif);
    font-size: 22px;
    font-weight: 600;
    color: #8B7355;
    line-height: 1.25;
}
.ivlev-prop-project-cta-name {
    font-family: var(--sans, 'Inter', -apple-system, sans-serif);
    font-size: 18px;
    font-weight: 500;
    color: #0E0E0E;
    line-height: 1.3;
}
.ivlev-prop-project-cta-desc {
    font-family: var(--sans, 'Inter', -apple-system, sans-serif);
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-top: 4px;
}
.ivlev-prop-project-cta-arrow {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 22px;
    line-height: 1;
    color: #8B7355;
    margin-top: 4px;
    transition: transform 0.2s ease;
}
.ivlev-prop-project-cta:hover .ivlev-prop-project-cta-arrow {
    transform: translateX(4px);
}
@media (max-width: 768px) {
    .ivlev-prop-project-cta {
        padding: 18px 20px;
        gap: 14px;
        margin-top: 20px;
    }
    .ivlev-prop-project-cta-icon { width: 38px; height: 38px; }
    .ivlev-prop-project-cta-icon svg { width: 22px; height: 22px; }
    .ivlev-prop-project-cta-title { font-size: 18px; }
    .ivlev-prop-project-cta-name { font-size: 16px; }
    .ivlev-prop-project-cta-desc { font-size: 13px; }
    .ivlev-prop-project-cta-arrow { font-size: 18px; }
}
@media (max-width: 375px) {
    /* очень узкий экран: иконка наверху, остальное вертикально, стрелка под body */
    .ivlev-prop-project-cta { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .ivlev-prop-project-cta-icon { width: 36px; height: 36px; }
    .ivlev-prop-project-cta-body { flex-basis: calc(100% - 50px); }
    .ivlev-prop-project-cta-arrow { display: none; }
}

/* === Адрес и карта === */
.ivlev-prop-address {
    font-size: 16px;
    color: var(--text);
    margin: 0 0 16px;
}
.ivlev-prop-map {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-subtle);
}
.ivlev-prop-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* === Features (общий для property и project amenities) === */
.ivlev-prop-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 24px;
}
.ivlev-prop-features li {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0 8px 24px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.ivlev-prop-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* === Похожие юниты / доступные юниты === */
.ivlev-prop-others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.ivlev-prop-see-all {
    margin-top: 20px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ivlev-prop-see-all a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

/* === Sidebar === */
.ivlev-prop-sidebar {
    align-self: start;
}
@media (min-width: 1024px) {
    .ivlev-prop-sidebar {
        position: sticky;
        top: 100px;
    }
}
.ivlev-prop-sidebar-inner {
    background: var(--bg-subtle);
    padding: 28px 24px;
    border: 1px solid var(--line);
}
.ivlev-prop-sidebar-h {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 12px;
    color: var(--text);
}
.ivlev-prop-sidebar-sub {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 20px;
}
.ivlev-prop-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: filter 0.2s, transform 0.05s;
    font-family: inherit;
}
.ivlev-prop-btn:hover { filter: brightness(1.06); }
.ivlev-prop-btn:active { transform: translateY(1px); }
.ivlev-prop-btn-wa  { background: #25D366; }
.ivlev-prop-btn-tg  { background: #229ED9; }
.ivlev-prop-btn-cta {
    background: var(--accent);
    color: #fff;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.15s;
}
.ivlev-prop-btn-cta:hover {
    background: #6B5841;
    transform: translateY(-1px);
    filter: none;
}
.ivlev-prop-sidebar-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 12px 0 0;
}
.ivlev-prop-sidebar-summary {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.ivlev-prop-sidebar-price {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 6px;
}
.ivlev-prop-sidebar-specs {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    line-height: 1.6;
}
.ivlev-prop-sidebar-pp-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.ivlev-prop-sidebar-pp-label strong {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    margin-left: 4px;
}
.ivlev-prop-sidebar-project {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

/* === Empty state === */
.ivlev-prop-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* === CATALOG MAP — Leaflet (Задача 17) === */
.ivlev-map-block { padding: 24px 0; }
.ivlev-catalog-map {
    width: 100%;
    height: 480px;
    border-radius: 4px;
    overflow: hidden;
}
.leaflet-popup-content-wrapper {
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}
.leaflet-popup-content { margin: 0; min-width: 240px; }
.ivlev-map-popup { font-family: var(--sans, 'Inter', sans-serif); }
.ivlev-map-popup-img {
    width: 100%;
    height: 130px;
    background: #2a2a2a center/cover no-repeat;
}
.ivlev-map-popup-body { padding: 12px 14px; }
.ivlev-map-popup-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: 17px;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.ivlev-map-popup-price {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.ivlev-map-popup-link {
    color: #8B7355;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #8B7355;
}
.ivlev-map-popup-link:hover { color: #6B5841; border-bottom-color: #6B5841; }
@media (max-width: 768px) {
    .ivlev-catalog-map { height: 360px; }
}

/* === ACCOUNT PAGE (Задача 16) === */
.ivlev-account-page { background: #FAFAF8; padding-bottom: 80px; }
.ivlev-account-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ivlev-account-hero { padding: 64px 0 32px; border-bottom: 1px solid #E5E3DE; margin-bottom: 40px; }
.ivlev-account-eyebrow { color: #8B7355; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.ivlev-account-title { font-family: 'Playfair Display', serif; font-size: 42px; line-height: 1.1; color: #0E0E0E; margin: 0 0 12px; font-weight: 500; }
.ivlev-account-title em { color: #8B7355; font-style: italic; }
.ivlev-account-phone { color: #6B6B6B; font-size: 15px; margin: 0 0 16px; }
.ivlev-account-phone strong { color: #0E0E0E; font-weight: 500; }
.ivlev-account-actions { margin: 0; }
.ivlev-account-logout { color: #8B7355; text-decoration: none; border-bottom: 1px solid #8B7355; font-size: 14px; }
.ivlev-account-logout:hover { color: #6B5841; border-bottom-color: #6B5841; }
.ivlev-account-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.ivlev-account-section-title { font-family: 'Playfair Display', serif; font-size: 28px; color: #0E0E0E; margin: 0; font-weight: 500; }
.ivlev-account-section-count { color: #6B6B6B; font-size: 14px; }
.ivlev-account-empty { padding: 60px 24px; text-align: center; background: #fff; border: 1px solid #E5E3DE; border-radius: 4px; }
.ivlev-account-empty h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: #0E0E0E; margin: 0 0 8px; }
.ivlev-account-empty a { color: #8B7355; }

/* === HEADER — login / logged-in (Задача 16) === */
.ivlev-login-link { color: #8B7355; font-size: 14px; font-weight: 500; padding: 8px 16px; border: 1px solid #8B7355; border-radius: 4px; text-decoration: none; transition: all 0.2s; }
.ivlev-login-link:hover { background: #8B7355; color: #fff; }
.ivlev-logged-in { gap: 12px; }
.ivlev-account-link { color: #8B7355; font-size: 14px; font-weight: 500; padding: 8px 16px; border: 1px solid #8B7355; border-radius: 4px; text-decoration: none; margin-right: 8px; transition: all 0.2s; }
.ivlev-account-link:hover { background: #8B7355; color: #fff; }
.ivlev-logout-link { color: #6B6B6B; font-size: 13px; text-decoration: none; padding: 8px 12px; }
.ivlev-logout-link:hover { color: #0E0E0E; }

/* === FILTERS — dropdowns + chips (Задача 18) === */
.ivlev-filters-bar .ivlev-filter-dropdown { display: inline-block; position: relative; }
.ivlev-filters-bar .ivlev-filter-dropdown summary { list-style: none; cursor: pointer; outline: none; }
.ivlev-filters-bar .ivlev-filter-dropdown summary::-webkit-details-marker { display: none; }
.ivlev-filter-dropdown[open] > summary { border-color: #8B7355; color: #8B7355; }
.ivlev-filter-form {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    min-width: 240px;
    padding: 16px;
    background: #fff;
    border: 1px solid #E5E3DE;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ivlev-filter-form label { display: block; font-size: 14px; color: #1a1a1a; }
.ivlev-filter-form input[type=number] { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #E5E3DE; border-radius: 3px; font-size: 14px; }
.ivlev-filter-check, .ivlev-filter-radio { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.ivlev-filter-check input, .ivlev-filter-radio input { margin: 0; }
.ivlev-filter-apply {
    margin-top: 8px;
    padding: 9px 14px;
    background: #8B7355;
    color: #fff;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.ivlev-filter-apply:hover { background: #6B5841; }
/* 30.04.2026 6b: радио/чекбокс-фильтры применяются на change через JS (см. main.js).
 * Кнопка «Применить» нужна только в форме Бюджета (там два input от-до).
 * Скрываем кнопку во всех остальных формах. */
.ivlev-filter-form:not(.ivlev-filter-form-budget) .ivlev-filter-apply { display: none; }
.ivlev-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 0; }
.ivlev-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #8B7355;
    border-radius: 100px;
    color: #8B7355;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.ivlev-filter-chip:hover { background: #8B7355; color: #fff; }
.ivlev-filter-chip-x { font-size: 16px; line-height: 1; }
.ivlev-filter-reset { color: #6B6B6B; font-size: 13px; text-decoration: none; padding: 6px 8px; }
.ivlev-filter-reset:hover { color: #8B7355; }

/* === Pagination === */
/* 30.04.2026: !important + явные li display, потому что parent houzez стили перебивают */
.ivlev-pagination { padding: 32px 0; display: flex !important; justify-content: center; }
.ivlev-pagination ul,
.ivlev-pagination ul.page-numbers { list-style: none !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 0 !important; }
.ivlev-pagination ul li,
.ivlev-pagination ul.page-numbers li { display: inline-flex !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ivlev-pagination ul li::before,
.ivlev-pagination ul.page-numbers li::before { content: none !important; }
.ivlev-pagination .page-numbers { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid #E5E3DE; border-radius: 3px; color: #1a1a1a; text-decoration: none; font-size: 14px; min-width: 36px; justify-content: center; }
.ivlev-pagination .page-numbers.current { background: #8B7355; color: #fff; border-color: #8B7355; }
.ivlev-pagination .page-numbers:hover:not(.current) { border-color: #8B7355; color: #8B7355; }

/* === Heart .active state (Задача 16) === */
.prop-fav.active svg path { fill: #8B7355; stroke: #8B7355; }
.prop-fav.active { background: rgba(139,115,85,0.1); }

/* === Single property — heart in hero (Тех-уборка #5, 29.04.2026) === */
.ivlev-prop-title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 8px;
}
.ivlev-prop-title-row .ivlev-prop-title {
    margin: 0;
    flex: 1 1 auto;
}
.ivlev-prop-hero-fav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #8B7355;
    color: #8B7355;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s, color 0.15s;
    margin-top: 6px;
}
.ivlev-prop-hero-fav:hover { background: #8B7355; color: #fff; }
.ivlev-prop-hero-fav.active { background: #8B7355; color: #fff; }
.ivlev-prop-hero-fav svg { display: block; }

/* === STICKY MOBILE BAR (single-property + single-project) — Тех-уборка #7 === */
.ivlev-sticky-bar { display: none; }
@media (max-width: 768px) {
    .ivlev-sticky-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        padding: 12px;
        gap: 8px;
        background: #FAFAF8;
        border-top: 1px solid #E5E3DE;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }
    .ivlev-sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        border: 1px solid #8B7355;
        border-radius: 4px;
        font-family: var(--sans, 'Inter', sans-serif);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: background .2s, color .2s;
    }
    .ivlev-sticky-wa, .ivlev-sticky-tg {
        color: #8B7355;
        background: #FAFAF8;
    }
    .ivlev-sticky-wa:hover, .ivlev-sticky-tg:hover {
        background: #8B7355;
        color: #FAFAF8;
    }
    .ivlev-sticky-otp {
        background: #0E0E0E;
        color: #FAFAF8;
        border-color: #0E0E0E;
        width: 100%;
    }
    .ivlev-sticky-otp:hover { background: #2A2A2A; }
    /* Сдвигаем плавающий WhatsApp-виджет выше когда есть sticky bar */
    body.single-property .ivlev-wa-widget,
    body.single-project .ivlev-wa-widget {
        bottom: 84px;
    }
    /* Padding-bottom для контента чтобы не прятался под bar */
    body.single-property,
    body.single-project {
        padding-bottom: 80px;
    }
    /* Scroll-to-top тоже двинуть (Задача 7 ставила bottom: 80px на мобиле) */
    body.single-property .back-to-top-wrap,
    body.single-project .back-to-top-wrap {
        bottom: 145px !important;
    }
}

/* === CONTACT PAGE (Тех-уборка #10) === */
.ivlev-container {
    max-width: var(--max-w, 1200px);
    margin: 0 auto;
    padding: 0 var(--gutter, 24px);
}
.ivlev-contact { background: var(--bg, #FAFAF8); }
.ivlev-contact-hero { padding: 80px 0 40px; }
.ivlev-contact-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--text, #1A1A1A);
}
.ivlev-contact-lede {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted, #6B6B6B);
    max-width: 640px;
}
.ivlev-contact-channels { padding: 40px 0; }
.ivlev-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.ivlev-contact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line, #E5E3DE);
    background: #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text, #1A1A1A);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ivlev-contact-card:hover {
    border-color: var(--accent, #8B7355);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.1);
}
.ivlev-contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #8B7355);
}
.ivlev-contact-card-body { display: flex; flex-direction: column; gap: 4px; }
.ivlev-contact-card-label {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #6B6B6B);
}
.ivlev-contact-card-value {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 500;
}
.ivlev-contact-card-hint {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--text-muted, #6B6B6B);
    margin-top: 4px;
}
.ivlev-contact-cta {
    background: var(--bg-dark, #0E0E0E);
    color: #FAFAF8;
    padding: 80px 0;
    margin: 60px 0 0;
    text-align: center;
}
.ivlev-contact-cta-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 500;
    margin: 0 0 16px;
    color: #FAFAF8;
}
.ivlev-contact-cta-text {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(250, 250, 248, 0.75);
    max-width: 560px;
    margin: 0 auto 32px;
}
.ivlev-contact-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--accent, #8B7355);
    background: transparent;
    color: #FAFAF8;
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.ivlev-contact-cta-btn:hover { background: var(--accent, #8B7355); color: #FAFAF8; }
.ivlev-contact-meta {
    padding: 60px 0 100px;
    border-top: 1px solid var(--line, #E5E3DE);
    margin-top: 60px;
}
.ivlev-contact-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.ivlev-contact-meta-label {
    display: block;
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #6B6B6B);
    margin-bottom: 8px;
}
.ivlev-contact-meta-value {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text, #1A1A1A);
}

/* === 404 PAGE (Тех-уборка #10) === */
.ivlev-404 {
    background: var(--bg, #FAFAF8);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.ivlev-404-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.ivlev-404-code {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 500;
    line-height: 1;
    color: var(--accent, #8B7355);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.ivlev-404-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    margin: 0 0 16px;
    color: var(--text, #1A1A1A);
}
.ivlev-404-lede {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted, #6B6B6B);
    margin: 0 0 32px;
}
.ivlev-404-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}
.ivlev-404-link {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--accent, #8B7355);
    text-decoration: none;
    transition: color .2s;
}
.ivlev-404-link:hover { color: var(--accent-hover, #6B5841); }
.ivlev-404-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--bg-dark, #0E0E0E);
    color: #FAFAF8;
    border: 1px solid var(--bg-dark, #0E0E0E);
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.ivlev-404-cta-btn:hover {
    background: var(--accent, #8B7355);
    border-color: var(--accent, #8B7355);
}

/* === BREADCRUMBS общие (Тех-уборка #11) === */
.ivlev-breadcrumbs {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--text-muted, #6B6B6B);
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ivlev-breadcrumbs a { color: var(--text-muted, #6B6B6B); text-decoration: none; transition: color .2s; }
.ivlev-breadcrumbs a:hover { color: var(--accent, #8B7355); }
.ivlev-breadcrumbs-sep { color: var(--line, #E5E3DE); }
.ivlev-breadcrumbs-current { color: var(--text, #1A1A1A); }

/* === BLOG ARCHIVE === */
.ivlev-blog-archive { background: var(--bg, #FAFAF8); padding: 40px 0 80px; }
.ivlev-blog-archive-hero { padding: 40px 0 60px; }
.ivlev-blog-archive-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.ivlev-blog-archive-lede {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 17px;
    color: var(--text-muted, #6B6B6B);
    max-width: 560px;
}
.ivlev-blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}
.ivlev-blog-archive-card { background: #fff; border: 1px solid var(--line, #E5E3DE); transition: border-color .2s, transform .2s; }
.ivlev-blog-archive-card:hover { border-color: var(--accent, #8B7355); transform: translateY(-2px); }
.ivlev-blog-archive-card-link { display: block; text-decoration: none; color: inherit; }
.ivlev-blog-archive-card-img { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, #2A2A2A, #4a4a4a); }
.ivlev-blog-archive-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivlev-blog-archive-card-img-fallback { background: linear-gradient(135deg, #8B7355, #6B5841); }
.ivlev-blog-archive-card-body { padding: 24px; }
.ivlev-blog-archive-card-cat {
    font-family: var(--sans); font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent, #8B7355);
    display: inline-block; margin-bottom: 12px;
}
.ivlev-blog-archive-card-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: 22px; font-weight: 500;
    line-height: 1.3; margin: 0 0 12px;
    color: var(--text, #1A1A1A);
}
.ivlev-blog-archive-card-excerpt {
    font-family: var(--sans); font-size: 14px; line-height: 1.6;
    color: var(--text-muted, #6B6B6B);
    margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ivlev-blog-archive-card-meta {
    display: flex; gap: 12px;
    font-family: var(--sans); font-size: 12px; color: var(--text-muted, #6B6B6B);
}
.ivlev-blog-archive-empty {
    font-family: var(--sans); color: var(--text-muted);
    text-align: center; padding: 60px 0;
}
.ivlev-blog-archive-pagination ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 8px; justify-content: center;
}
.ivlev-blog-archive-pagination li a,
.ivlev-blog-archive-pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line, #E5E3DE);
    font-family: var(--sans); font-size: 14px;
    color: var(--text, #1A1A1A); text-decoration: none;
}
.ivlev-blog-archive-pagination li a:hover { border-color: var(--accent, #8B7355); color: var(--accent); }
.ivlev-blog-archive-pagination li span.current { background: var(--accent, #8B7355); color: #fff; border-color: var(--accent); }

/* === SINGLE POST === */
.ivlev-post { background: var(--bg, #FAFAF8); padding: 24px 0 80px; }
.ivlev-post-breadcrumbs {
    font-family: var(--sans); font-size: 13px;
    color: var(--text-muted, #6B6B6B);
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-bottom: 32px;
}
.ivlev-post-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.ivlev-post-breadcrumbs a:hover { color: var(--accent); }
.ivlev-post-breadcrumbs-current { color: var(--text, #1A1A1A); }
.ivlev-post-article { max-width: 720px; margin: 0 auto; }
.ivlev-post-header { margin-bottom: 32px; }
.ivlev-post-cat {
    display: inline-block; font-family: var(--sans); font-size: 12px;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent, #8B7355); text-decoration: none;
    margin-bottom: 16px;
}
.ivlev-post-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500; line-height: 1.15;
    letter-spacing: -0.02em; margin: 0 0 16px;
}
.ivlev-post-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-family: var(--sans); font-size: 14px;
    color: var(--text-muted, #6B6B6B);
}
.ivlev-post-thumb { aspect-ratio: 16/9; overflow: hidden; margin: 32px 0; }
.ivlev-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivlev-post-content {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 17px; line-height: 1.7;
    color: var(--text, #1A1A1A);
}
.ivlev-post-content p { margin: 0 0 1.4em; }
.ivlev-post-content h2, .ivlev-post-content h3 {
    font-family: var(--serif); font-weight: 500;
    margin: 1.6em 0 0.6em;
}
.ivlev-post-content h2 { font-size: 28px; }
.ivlev-post-content h3 { font-size: 22px; }
.ivlev-post-content blockquote {
    border-left: 3px solid var(--accent, #8B7355);
    padding: 8px 0 8px 24px;
    margin: 1.5em 0;
    font-style: italic; color: var(--text-muted);
}
.ivlev-post-content ul, .ivlev-post-content ol {
    padding-left: 1.5em; margin: 0 0 1.4em;
}
.ivlev-post-content a { color: var(--accent, #8B7355); text-decoration: underline; }
.ivlev-post-footer { padding: 32px 0; border-top: 1px solid var(--line, #E5E3DE); margin-top: 48px; }
.ivlev-post-share { display: flex; gap: 16px; align-items: center; font-family: var(--sans); font-size: 14px; }
.ivlev-post-share-label { color: var(--text-muted, #6B6B6B); }
.ivlev-post-share a {
    color: var(--accent, #8B7355); text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px; transition: color .2s, border-color .2s;
}
.ivlev-post-share a:hover { color: var(--accent-hover, #6B5841); border-color: var(--accent-hover); }
.ivlev-post-related {
    max-width: 1080px; margin: 80px auto 0;
    padding-top: 48px; border-top: 1px solid var(--line, #E5E3DE);
}
.ivlev-post-related-title {
    font-family: var(--serif); font-size: 24px; font-weight: 500;
    margin: 0 0 24px; text-align: center;
}
.ivlev-post-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.ivlev-post-related-card {
    text-decoration: none; color: inherit;
    display: block; padding: 16px;
    border: 1px solid var(--line, #E5E3DE);
    transition: border-color .2s;
}
.ivlev-post-related-card:hover { border-color: var(--accent); }
.ivlev-post-related-card-img { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 12px; }
.ivlev-post-related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ivlev-post-related-card-title {
    font-family: var(--serif); font-size: 18px; font-weight: 500;
    line-height: 1.3; margin: 0 0 8px;
}
.ivlev-post-related-card-date { font-family: var(--sans); font-size: 12px; color: var(--text-muted); }
.ivlev-post-cta {
    background: var(--bg-dark, #0E0E0E);
    color: #FAFAF8;
    padding: 60px 32px;
    margin: 80px 0 0;
    text-align: center;
}
.ivlev-post-cta-title {
    font-family: var(--serif); font-size: clamp(24px, 4vw, 36px);
    font-weight: 500; margin: 0 0 16px; color: #FAFAF8;
}
.ivlev-post-cta-text {
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    color: rgba(250, 250, 248, 0.75);
    max-width: 480px; margin: 0 auto 24px;
}
.ivlev-post-cta-btn {
    display: inline-block; padding: 14px 32px;
    background: transparent; border: 1px solid var(--accent, #8B7355);
    color: #FAFAF8; font-family: var(--sans); font-size: 14px;
    font-weight: 500; letter-spacing: 0.05em;
    cursor: pointer; text-decoration: none;
    transition: background .2s;
}
.ivlev-post-cta-btn:hover { background: var(--accent, #8B7355); }

/* === DEFAULT PAGE TEMPLATE (Тех-уборка #12) === */
.ivlev-page { background: var(--bg, #FAFAF8); padding: 24px 0 80px; }
.ivlev-page-article { max-width: 760px; margin: 0 auto; }
.ivlev-page-header { margin: 32px 0; }
.ivlev-page-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text, #1A1A1A);
}
.ivlev-page-thumb { aspect-ratio: 16/9; overflow: hidden; margin: 32px 0; }
.ivlev-page-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivlev-page-content {
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text, #1A1A1A);
}
.ivlev-page-content p { margin: 0 0 1.4em; }
.ivlev-page-content h2, .ivlev-page-content h3 {
    font-family: var(--serif, 'Playfair Display', serif);
    font-weight: 500;
    margin: 1.6em 0 0.6em;
    color: var(--text, #1A1A1A);
}
.ivlev-page-content h2 { font-size: 28px; }
.ivlev-page-content h3 { font-size: 22px; }
.ivlev-page-content blockquote {
    border-left: 3px solid var(--accent, #8B7355);
    padding: 8px 0 8px 24px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-muted, #6B6B6B);
}
.ivlev-page-content ul, .ivlev-page-content ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.ivlev-page-content a { color: var(--accent, #8B7355); text-decoration: underline; }
.ivlev-page-content a:hover { color: var(--accent-hover, #6B5841); }
.ivlev-page-content img { max-width: 100%; height: auto; margin: 1.5em 0; }
.ivlev-page-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line, #E5E3DE);
    font-family: var(--sans);
    font-size: 13px;
}
.ivlev-edit-link a { color: var(--text-muted, #6B6B6B); text-decoration: none; }
.ivlev-edit-link a:hover { color: var(--accent, #8B7355); }

/* 02.05.2026 — Hero video desktop only */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
@media (max-width: 767px) {
    .hero-video {
        display: none !important;
    }
}

/* 02.05.2026 — Mobile vertical video */
.hero-video-mobile {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
@media (max-width: 767px) {
    .hero-video {
        display: none !important;
    }
    .hero-video-mobile {
        display: block !important;
    }
}

/* Catalog filter dropdowns — max-height with internal scroll (12.05.2026) */
.ivlev-filter-form {
    max-height: min(60vh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
/* Sticky Apply button on bottom so user always sees it */
.ivlev-filter-form .ivlev-filter-apply {
    position: sticky;
    bottom: -16px;
    margin: 8px -16px -16px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #E5E3DE;
    z-index: 2;
}
/* Custom scrollbar look */
.ivlev-filter-form::-webkit-scrollbar { width: 6px; }
.ivlev-filter-form::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.ivlev-filter-form::-webkit-scrollbar-track { background: transparent; }

/* === Catalog locked-card gate (12.05.2026) ===
   Гость на стр.1 видит первые 3 карточки кликабельными, остальные .is-locked:
   тонкий полупрозрачный замок-бейдж + cursor pointer. БЛЮРА НЕТ — контент читабелен,
   но клик ведёт на регистрацию (handled in JS). */
.ivlev .prop-card.is-locked { cursor: pointer; }
.ivlev .prop-card.is-locked .prop-card-img,
.ivlev .prop-card.is-locked .prop-card-title a { cursor: pointer; }
.ivlev .prop-card-lock-badge {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 3;
}
.ivlev .prop-card-lock-badge svg { display: block; }
