/* ============================================================
   bhutor.ru — кастомная тема поверх Bootstrap 5
   ============================================================ */

:root {
    /* Палитра проекта (см. site_structure.md) */
    --bh-green-900: #33412D;
    --bh-green-700: #4A5A40;
    --bh-green-500: #87947E;
    --bh-green-300: #9AA56B;
    --bh-cream: #EDE4DB;
    --bh-white: #FFFFFF;
    --bh-muted: #6F7B70;

    /* Шрифты */
    --bh-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --bh-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Радиусы, тени */
    --bh-radius-sm: 8px;
    --bh-radius: 14px;
    --bh-radius-lg: 22px;
    --bh-shadow-sm: 0 2px 8px rgba(51,65,45,.06);
    --bh-shadow: 0 8px 24px rgba(51,65,45,.08);
    --bh-shadow-lg: 0 20px 50px rgba(51,65,45,.14);

    /* Bootstrap overrides */
    --bs-body-bg: var(--bh-white);
    --bs-body-color: var(--bh-green-900);
    --bs-body-font-family: var(--bh-sans);
    --bs-body-font-size: 16px;
    --bs-body-line-height: 1.55;
    --bs-primary: var(--bh-green-300);
    --bs-primary-rgb: 154, 165, 107;
    --bs-link-color: var(--bh-green-700);
    --bs-link-hover-color: var(--bh-green-900);
    --bs-border-radius: var(--bh-radius);
    --bs-border-radius-sm: var(--bh-radius-sm);
    --bs-border-radius-lg: var(--bh-radius-lg);
}

html { scroll-behavior: smooth; }
html, body { background: var(--bh-white); }
body {
    font-family: var(--bh-sans); color: var(--bh-green-900);
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
}
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--bh-serif);
    font-weight: 500;
    letter-spacing: -.005em;
    color: var(--bh-green-900);
    line-height: 1.15;
}
h1, .h1 { font-size: clamp(40px, 6vw, 72px); }
h2, .h2 { font-size: clamp(30px, 4vw, 48px); }
h3, .h3 { font-size: clamp(22px, 2.5vw, 30px); }
em, .em { font-style: italic; color: var(--bh-green-300); }

a { color: var(--bh-green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--bh-green-300); }

.text-muted, .muted { color: var(--bh-muted) !important; }
.section-kicker {
    font-family: var(--bh-sans);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bh-green-700);
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

/* === Buttons === */
.btn {
    font-family: var(--bh-sans); font-weight: 500; border-radius: 999px; padding: 11px 22px; border: 0;
    transition: background .15s ease, color .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
    /* Bootstrap дефолтно красит btn :active/:focus в синий — перекрываем зелёным */
    --bs-btn-active-bg: var(--bh-green-900);
    --bs-btn-active-border-color: var(--bh-green-900);
    --bs-btn-active-color: var(--bh-white);
    --bs-btn-focus-shadow-rgb: 154, 165, 107;
}
/* Tap-highlight: у кнопок/chips/карточек уже есть свой hover-state — синий пульс не нужен;
   для обычных ссылок оставляем тонкий зелёный (вместо браузерного синего) — без эффекта «кнопки». */
.btn, .bh-chip, .bh-media-card__link, [role="button"], button { -webkit-tap-highlight-color: transparent; }
a:not(.btn):not(.bh-chip):not(.bh-media-card__link) { -webkit-tap-highlight-color: rgba(154, 165, 107, .18); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
    background: var(--bh-green-300); color: var(--bh-white);
    --bs-btn-bg: var(--bh-green-300);
    --bs-btn-border-color: var(--bh-green-300);
    --bs-btn-hover-bg: var(--bh-green-900);
    --bs-btn-hover-border-color: var(--bh-green-900);
    --bs-btn-hover-color: var(--bh-white);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { background: var(--bh-green-900); color: var(--bh-white); }
/* На тёмных секциях primary при hover не должен сливаться с фоном */
.section--dark .btn-primary:hover, .section--dark .btn-primary:focus,
.tg-cta .btn-primary:hover, .tg-cta .btn-primary:focus { background: var(--bh-cream); color: var(--bh-green-900); }
.btn-outline-dark { background: transparent; border: 1px solid var(--bh-green-900); color: var(--bh-green-900); }
.btn-outline-dark:hover { background: var(--bh-green-900); color: var(--bh-white); border-color: var(--bh-green-900); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.5); color: var(--bh-white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: var(--bh-white); border-color: var(--bh-white); }
/* В шапке при скроле — кнопка становится тёмной, чтобы не сливаться с белым фоном */
.site-header.is-scrolled .btn-outline-light { border-color: var(--bh-green-900); color: var(--bh-green-900); background: transparent; }
.site-header.is-scrolled .btn-outline-light:hover { background: var(--bh-green-900); color: var(--bh-white); border-color: var(--bh-green-900); }
.btn-ghost {
    background: transparent; color: var(--bh-green-900); padding-left: 0; padding-right: 0;
    /* .btn-ghost — текстовая «ссылка-кнопка», :active не должен рисовать фон */
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-hover-color: var(--bh-green-300);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-color: var(--bh-green-300);
}
.btn-ghost:hover, .btn-ghost:focus, .btn-ghost:active, .btn-ghost.active { color: var(--bh-green-300); background: transparent; }
.btn-ghost::after { content: ' →'; transition: margin .15s ease; }
.btn-ghost:hover::after { margin-left: 4px; }

/* === Header === */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1020;
    transition: background .25s ease, box-shadow .25s ease;
    padding: 14px 0;
    background: transparent;
}
.site-header.is-scrolled,
body.no-hero .site-header {
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 rgba(51,65,45,.06);
}
/* На страницах без hero header сразу в «scrolled» виде — тёмный текст */
body.no-hero .site-header__logo img { filter: none !important; }
body.no-hero .site-nav a,
body.no-hero .site-header__phone,
body.no-hero .site-header__burger { color: var(--bh-green-900); }
body.no-hero .site-header__cta .btn-outline-light {
    border-color: var(--bh-green-900); color: var(--bh-green-900); background: transparent;
}
body.no-hero .site-header__cta .btn-outline-light:hover {
    background: var(--bh-green-900); color: var(--bh-white); border-color: var(--bh-green-900);
}
/* Внутренние страницы — отступ под зафиксированной шапкой */
body.no-hero .site-main { padding-top: 76px; }
/* Простой first-section: меньше воздуха перед хлебными крошками */
body.no-hero .site-main > .simple-page:first-child { padding-top: 36px; }
@media (max-width: 767px) {
    body.no-hero .site-main { padding-top: 64px; }
    body.no-hero .site-main > .simple-page:first-child { padding-top: 24px; }
}
.site-header__inner { display: flex; align-items: center; gap: 24px; }
@media (max-width: 991px) {
    /* на мобиле: лого слева, ЛК + бургер справа */
    .site-header__inner { gap: 12px; }
    .site-header__cta { margin-left: auto; }
}
.site-header__logo img { height: 40px; transition: filter .25s ease; }
.site-header:not(.is-scrolled) .site-header__logo img { filter: brightness(0) invert(1); }
.site-nav { display: flex; gap: 26px; margin: 0 auto; }
.site-nav__link {
    color: var(--bh-white); font-weight: 500; font-size: 15px; padding: 6px 0; position: relative;
    transition: color .15s ease;
    display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
}
.site-nav__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: currentColor;
    transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
    border-radius: 2px;
}
.site-nav__link:hover { color: var(--bh-green-300); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--bh-green-300); }
.site-nav__link.is-active::after { transform: scaleX(1); background: var(--bh-green-300); }
.site-header.is-scrolled .site-nav__link,
body.no-hero .site-nav__link { color: var(--bh-green-900); }
.site-header.is-scrolled .site-nav__link:hover,
.site-header.is-scrolled .site-nav__link.is-active,
body.no-hero .site-nav__link:hover,
body.no-hero .site-nav__link.is-active { color: var(--bh-green-300); }

/* === Двухуровневое меню === */
.site-nav__item { position: relative; }
.site-nav__chevron { font-size: 11px; transition: transform .2s ease; }
.site-nav__item.has-children:hover .site-nav__chevron,
.site-nav__item.has-children.is-open .site-nav__chevron { transform: rotate(180deg); }
.site-nav__submenu {
    position: absolute; top: 100%; left: -16px;
    min-width: 220px; padding: 8px 0; margin-top: 4px;
    background: var(--bh-white); border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow), 0 0 0 1px rgba(51,65,45,.04);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 10;
}
.site-nav__item.has-children:hover .site-nav__submenu,
.site-nav__item.has-children:focus-within .site-nav__submenu,
.site-nav__item.has-children.is-open .site-nav__submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__sublink {
    display: block; padding: 10px 18px; color: var(--bh-green-900);
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: background .12s ease, color .12s ease;
}
.site-nav__sublink:hover, .site-nav__sublink.is-active {
    background: var(--bh-cream); color: var(--bh-green-700);
}
.site-nav__sublink.is-active { color: var(--bh-green-300); font-weight: 600; }
.site-header__phone {
    color: var(--bh-white); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.site-header.is-scrolled .site-header__phone { color: var(--bh-green-900); }
.site-header__cta { display: flex; align-items: center; gap: 16px; }
.site-header__burger { display: none; background: transparent; border: 0; color: var(--bh-white); font-size: 22px; padding: 4px 8px; line-height: 1; cursor: pointer; }
.site-header.is-scrolled .site-header__burger { color: var(--bh-green-900); }
/* === Мобильное меню (drawer, отдельный catsections-блок) === */
.mobile-nav { display: none; }
@media (max-width: 991px) {
    .site-nav { display: none; }
    .site-header__phone { display: none; }
    .site-header__burger { display: inline-flex; }

    .mobile-nav {
        display: block;
        position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
        background: var(--bh-white);
        z-index: 1020;
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    .mobile-nav.is-open {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .2s ease, transform .2s ease, visibility 0s;
    }
    .mobile-nav__inner { padding: 6px 18px 14px; }
    .mobile-nav__list { list-style: none; margin: 0; padding: 0; }
    .mobile-nav__item { border-top: 1px solid rgba(51,65,45,.08); position: relative; }
    .mobile-nav__item:first-child { border-top: 0; }
    .mobile-nav__link {
        display: block; padding: 14px 0; font-size: 16px;
        color: var(--bh-green-900); text-decoration: none; font-weight: 500;
    }
    .mobile-nav__link.is-active { color: var(--bh-green-300); font-weight: 600; }
    .mobile-nav__link.is-active::before {
        content: ''; position: absolute; left: -18px; top: 18px;
        width: 3px; height: 22px; background: var(--bh-green-300); border-radius: 2px;
    }
    .mobile-nav__sub { list-style: none; margin: 0 0 8px; padding: 0; }
    .mobile-nav__sub li { border-top: 1px solid rgba(51,65,45,.04); }
    .mobile-nav__sublink {
        display: block; padding: 10px 0 10px 18px; font-size: 14px;
        color: var(--bh-muted); text-decoration: none; position: relative;
    }
    .mobile-nav__sublink::before {
        content: '·'; position: absolute; left: 4px; color: var(--bh-green-300);
    }
    .mobile-nav__sublink.is-active { color: var(--bh-green-300); font-weight: 600; }

    .site-header.is-scrolled .site-header__logo img { filter: none; }
    body.has-menu-open { overflow: hidden; }
    body.has-menu-open::after {
        content: ''; position: fixed; inset: 70px 0 0 0; background: rgba(51,65,45,.5); z-index: 1015;
        animation: bh-fade-in .2s ease;
    }
    .site-header__burger[aria-expanded="true"] .bi-list { display: none; }
    .site-header__burger[aria-expanded="true"] .bi-x { display: inline-block; }
}
@keyframes bh-fade-in { from { opacity: 0 } to { opacity: 1 } }

/* === Hero === */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    color: var(--bh-white); overflow: hidden;
    background: linear-gradient(180deg, rgba(51,65,45,.45), rgba(51,65,45,.7)), var(--bh-green-900);
}
/* mobile-overrides перенесены ниже, после .hero__inner */
.hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background: var(--bh-green-900) center/cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(51,65,45,.45) 0%, rgba(51,65,45,.7) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 80px; }
@media (max-width: 767px) {
    .hero { min-height: auto; }
    .hero__inner { padding-top: 90px; padding-bottom: 50px; }
    .hero__kicker { font-size: 11px; }
    .hero__title { font-size: clamp(36px, 11vw, 56px); margin: 10px 0 14px; line-height: 1.04; }
    .hero__lead { font-size: 16px; margin-bottom: 22px; }
    .hero__actions { margin-bottom: 28px; flex-wrap: nowrap; justify-content: center; gap: 10px; }
    .hero__actions .btn { flex: 1 1 0; padding: 11px 12px; font-size: 14px; white-space: nowrap; min-width: 0; }
    .hero__facts { grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding-top: 22px; text-align: center; }
    .hero__fact-num { font-size: 22px; }
    .hero__fact-label { font-size: 9px; letter-spacing: .08em; }
}
.hero__kicker { color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.hero__title { font-family: var(--bh-serif); font-size: clamp(48px, 7vw, 96px); line-height: 1.02; font-weight: 500; color: var(--bh-white); margin: 18px 0 22px; }
.hero__title em { color: var(--bh-green-300); font-style: italic; }
.hero__lead { max-width: 540px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); max-width: 760px; }
.hero__fact-num { font-family: var(--bh-serif); font-size: clamp(28px, 3.5vw, 44px); font-weight: 500; line-height: 1; color: var(--bh-white); }
.hero__fact-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 8px; }

/* === Sections === */
.section { padding: 96px 0; }
@media (max-width: 767px) {
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head__title { font-size: 28px; }
}
.section--cream { background: var(--bh-cream); }
.section--dark { background: var(--bh-green-900); color: var(--bh-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bh-white); }
.section--dark .section-kicker { color: rgba(255,255,255,.6); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head__title { margin: 0; }
.section-head__link { color: var(--bh-green-700); font-weight: 500; }

/* === Concept === */
.concept { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 991px) { .concept { grid-template-columns: 1fr; gap: 36px; } }
.concept__lead { font-size: 22px; font-family: var(--bh-serif); font-weight: 500; line-height: 1.35; color: var(--bh-green-900); margin: 18px 0 24px; }
.concept__body p { font-size: 16px; color: var(--bh-muted); margin-bottom: 14px; }
.concept__media { position: relative; }
.concept__media img { width: 100%; height: auto; border-radius: var(--bh-radius-lg); box-shadow: var(--bh-shadow-lg); display: block; }
.concept__badge {
    position: absolute; right: -16px; bottom: -16px; background: var(--bh-white);
    border-radius: var(--bh-radius); padding: 18px 22px; box-shadow: var(--bh-shadow);
    min-width: 140px; text-align: center;
}
@media (max-width: 575px) {
    .concept__badge { right: 8px; bottom: 8px; padding: 12px 16px; min-width: 110px; }
    .concept__badge-num { font-size: 28px; }
}
.concept__badge-num { font-family: var(--bh-serif); font-size: 36px; font-weight: 500; color: var(--bh-green-900); line-height: 1; }
.concept__badge-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--bh-muted); margin-top: 6px; }

/* === Slider helper (mobile only) === */
.bh-slider { position: relative; }
.bh-slider .swiper-pagination { position: static; margin-top: 18px; }
.bh-slider .swiper-pagination-bullet { background: var(--bh-green-300); opacity: .35; width: 8px; height: 8px; }
.bh-slider .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 4px; transition: width .25s ease; }
.section--dark .bh-slider .swiper-pagination-bullet { background: rgba(255,255,255,.4); opacity: 1; }
.section--dark .bh-slider .swiper-pagination-bullet-active { background: var(--bh-green-300); }
/* Перебиваем display: grid у .news-grid / .infra-grid / .residents__grid, когда swiper активен */
.bh-slider { min-width: 0; }  /* предотвращаем расширение в grid-родителе (residents) */
.bh-slider.swiper { overflow: hidden; }
.bh-slider.swiper > .swiper-wrapper { display: flex !important; grid-template-columns: none !important; gap: 0 !important; }
.bh-slider.swiper .swiper-slide { height: auto; box-sizing: border-box; min-width: 0; }

/* === News === */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 991px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
    display: flex; flex-direction: column; background: var(--bh-white);
    border-radius: var(--bh-radius); overflow: hidden; box-shadow: var(--bh-shadow-sm);
    color: var(--bh-green-900); transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--bh-shadow); color: var(--bh-green-900); }
.news-card__media { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--bh-cream); }
.news-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-card__meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--bh-muted); margin-bottom: 12px; }
.news-card__tag { background: var(--bh-cream); color: var(--bh-green-900); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.news-card__tag--alert { background: var(--bh-green-300); color: var(--bh-white); }
.news-card__title { font-family: var(--bh-serif); font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0 0 10px; }
.news-card__excerpt { font-size: 15px; color: var(--bh-muted); margin: 0; }

/* === Master plan === */
.master-plan { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 991px) { .master-plan { grid-template-columns: 1fr; } }
.master-plan__media { background: var(--bh-cream); border-radius: var(--bh-radius-lg); padding: 24px; }
.master-plan__media svg, .master-plan__media img { width: 100%; height: auto; display: block; }
.master-plan__legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0 28px; }
.master-plan__legend-item { font-size: 13px; color: var(--bh-muted); display: inline-flex; align-items: center; gap: 8px; }
.master-plan__legend-item::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: var(--legend-color, #9AA56B); border: 1px solid rgba(51,65,45,.12); flex-shrink: 0; }

/* === Infrastructure === */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.infra-card {
    background: var(--bh-white); border-radius: var(--bh-radius); padding: 26px 22px;
    box-shadow: var(--bh-shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.infra-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); }
.infra-card__icon { width: 36px; height: 36px; color: var(--bh-green-300); margin-bottom: 18px; font-size: 30px; line-height: 1; }
.infra-card__title { font-family: var(--bh-serif); font-size: 20px; font-weight: 500; margin: 0 0 8px; color: var(--bh-green-900); }
.infra-card__desc { font-size: 14px; color: var(--bh-muted); margin: 0; line-height: 1.5; }

/* === Residents (portal) === */
.residents { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; min-width: 0; }
.residents > * { min-width: 0; }
@media (max-width: 991px) {
    .residents { display: flex; flex-direction: column; gap: 32px; grid-template-columns: none; }
    .residents > * { width: 100%; max-width: 100%; }
}
.residents__col-left p { color: rgba(255,255,255,.78); font-size: 16px; margin: 12px 0 24px; }
.residents__cta { margin-top: 8px; }
.residents__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.resident-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--bh-radius); padding: 22px; color: var(--bh-white); text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}
.resident-card:hover { background: rgba(255,255,255,.14); color: var(--bh-white); transform: translateY(-2px); }
.resident-card__icon { font-size: 28px; color: var(--bh-green-300); margin-bottom: 14px; line-height: 1; display: inline-block; }
.resident-card__title { font-family: var(--bh-serif); font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.resident-card__desc { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }

/* === Gallery === */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery-item { background-size: cover; background-position: center; border-radius: var(--bh-radius-sm); background-color: var(--bh-cream); display: block; cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-item:hover { transform: scale(1.015); box-shadow: var(--bh-shadow); }
.gallery-item--w2 { grid-column: span 2; }
.gallery-item--h2 { grid-row: span 2; }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item--w2 { grid-column: span 1; } }

/* === Telegram CTA === */
.tg-cta { margin-top: 60px; padding: 36px; background: var(--bh-green-900); color: var(--bh-white); border-radius: var(--bh-radius); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.tg-cta h3 { color: var(--bh-white); margin: 0 0 6px; }
.tg-cta p { color: rgba(255,255,255,.78); margin: 0; }
.tg-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) { .tg-cta { grid-template-columns: 1fr; } }

/* === Location === */
.location-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
@media (max-width: 991px) { .location-block { grid-template-columns: 1fr; } }
.location-distances { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.location-distance__from { font-family: var(--bh-serif); font-size: 32px; font-weight: 500; color: var(--bh-green-900); line-height: 1; display: block; }
.location-distance__label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--bh-muted); margin-top: 4px; display: block; }
@media (max-width: 575px) {
    /* (7) расстояния по центру на мобиле */
    .location-distances { text-align: center; gap: 14px; }
    .location-distance__from { font-size: 26px; }
}
.location-map {
    position: relative; aspect-ratio: 4 / 3; background: var(--bh-cream); border-radius: var(--bh-radius);
    overflow: hidden; box-shadow: var(--bh-shadow-sm);
}
@media (min-width: 768px) {
    .contacts-map-wrap .location-map,
    body.page-location .location-map { aspect-ratio: 8 / 3; }  /* на /contacts/ и /location/ — высота в 2 раза меньше; главная остаётся 4/3 */
}

/* (8) Яндекс карта — grayscale тайлы, кастомная метка как в дизайне */
.location-map #yamap { width: 100%; height: 100%; }
.location-map [class*="ground-pane"] { filter: grayscale(1); -webkit-filter: grayscale(1); }
/* Кастомная метка */
.bh-pin { position: relative; pointer-events: none; }
.bh-pin__dot {
    display: block; width: 16px; height: 16px; border-radius: 50%;
    background: var(--bh-green-300);
    box-shadow: 0 0 0 6px rgba(154,165,107,.25);
    animation: bh-pulse 2s ease-out infinite;
}
.bh-pin__label {
    position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
    background: var(--bh-white); padding: 8px 14px; border-radius: 8px;
    box-shadow: var(--bh-shadow-sm);
    font-family: var(--bh-serif); font-size: 18px; color: var(--bh-green-900);
    white-space: nowrap; line-height: 1;
}
@keyframes bh-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(154,165,107,.4); }
    70%  { box-shadow: 0 0 0 14px rgba(154,165,107,0); }
    100% { box-shadow: 0 0 0 0    rgba(154,165,107,0); }
}
/* Скрываем стандартную плашку balloon у Яндекс карты */
.location-map .ymaps-2-1-79-balloon { display: none !important; }
.location-map .ymaps-2-1-79-hint-overlay { display: none !important; }
.location-map__pin { position: absolute; left: 60%; top: 40%; width: 16px; height: 16px; border-radius: 50%; background: var(--bh-green-300); box-shadow: 0 0 0 6px rgba(154,165,107,.25); transform: translate(-50%, -50%); }
.location-map { overflow: hidden; }
.location-map__label {
    position: absolute; left: calc(60% + 22px); top: 40%; transform: translateY(-50%);
    background: var(--bh-white); padding: 8px 14px; border-radius: 8px;
    box-shadow: var(--bh-shadow-sm); font-family: var(--bh-serif); font-size: 18px; color: var(--bh-green-900);
    white-space: nowrap; max-width: calc(100% - 60% - 32px);
}
.location-map__hint { position: absolute; bottom: 12px; right: 12px; left: 12px; font-size: 11px; color: var(--bh-muted); text-align: right; }
@media (max-width: 575px) {
    .location-map__label { left: 14px; top: auto; bottom: 40px; transform: none; max-width: calc(100% - 28px); }
}

/* === Footer === */
.site-footer { background: var(--bh-green-900); color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 991px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
    /* (9) на мобиле: лого+about на всю ширину, «Посёлок» и «Жителям» рядом, контакты на всю ширину */
    .site-footer__top { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
    .site-footer__top > div:nth-child(1),
    .site-footer__top > div:nth-child(4) { grid-column: 1 / -1; }
}
.site-footer__logo img { height: 40px; margin-bottom: 14px; }
.site-footer__about { font-size: 14px; line-height: 1.6; }
.site-footer__head { font-family: var(--bh-serif); color: var(--bh-white); font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 8px; font-size: 14px; }
.site-footer__list a { color: rgba(255,255,255,.7); }
.site-footer__list a:hover { color: var(--bh-white); }
.site-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.site-footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); transition: background .15s ease, color .15s ease;
}
.site-footer__social a:hover { background: var(--bh-green-300); color: var(--bh-white); }
.site-footer__social a svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.site-footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
.site-footer__bottom a { color: rgba(255,255,255,.5); }
.site-footer__bottom a:hover { color: var(--bh-white); }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* === Cookie banner === */
.cookie-banner {
    position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 720px; margin: 0 auto;
    background: var(--bh-white); border-radius: var(--bh-radius); padding: 18px 22px;
    box-shadow: var(--bh-shadow-lg); display: flex; gap: 16px; align-items: center;
    z-index: 1030; transform: translateY(120%); transition: transform .35s ease;
}
.cookie-banner.is-shown { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 13px; color: var(--bh-muted); flex: 1; }
@media (max-width: 575px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; flex-direction: column; align-items: stretch; }
    .cookie-banner p { font-size: 12px; }
    .cookie-banner .btn { width: 100%; }
}

/* === Error page === */
.error-page { min-height: 80vh; display: flex; align-items: center; padding: 120px 0 60px; }
.error-page__code { font-family: var(--bh-serif); font-size: clamp(120px, 18vw, 220px); line-height: 1; color: var(--bh-green-300); font-weight: 500; }
.error-page__title { margin: 12px 0 14px; }
.error-page__lead { font-size: 18px; color: var(--bh-muted); max-width: 520px; }

/* === Page hero (для всех внутренних) === */
.page-hero {
    position: relative; padding: 140px 0 80px;
    color: var(--bh-white); overflow: hidden;
    background: var(--bh-green-900);
}
.page-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(51,65,45,.5) 0%, rgba(51,65,45,.75) 100%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__kicker { color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.page-hero__title { font-family: var(--bh-serif); font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; font-weight: 500; color: var(--bh-white); margin: 14px 0 18px; max-width: 900px; }
.page-hero__title em { color: var(--bh-green-300); font-style: italic; }
.page-hero__lead { max-width: 720px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 767px) {
    .page-hero { padding: 110px 0 50px; }
    .page-hero__lead { font-size: 16px; }
}
body.no-hero.page-about .site-main,
body.no-hero.page-contacts .site-main,
body.no-hero.page-infrastructure .site-main,
body.no-hero.page-location .site-main,
body.no-hero.page-board .site-main,
body.no-hero.page-faq .site-main,
body.no-hero.page-lifenews .site-main,
body.no-hero.page-residents .site-main,
body.no-hero.page-life .site-main,
body.no-hero.page-events .site-main,
body.no-hero.page-gallery .site-main,
body.no-hero.page-resnews .site-main,
body.no-hero.page-services .site-main,
body.no-hero.page-docs .site-main,
body.no-hero.page-fees .site-main,
body.no-hero.page-legalhub .site-main,
body.no-hero.page-legaldoc .site-main,
body.no-hero.page-histpage .site-main { padding-top: 0; }  /* у page-hero свой верхний отступ */

/* === Life hub === */
.life-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 991px) { .life-hub-grid { grid-template-columns: 1fr 1fr; } }
.life-hub-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 32px 28px; color: var(--bh-green-900); text-decoration: none;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.life-hub-card:hover { transform: translateY(-3px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); color: var(--bh-green-900); }
.life-hub-card__icon { font-size: 32px; color: var(--bh-green-300); line-height: 1; margin-bottom: 6px; }
.life-hub-card h3 { font-family: var(--bh-serif); font-size: 24px; margin: 0; }
.life-hub-card p { color: var(--bh-muted); margin: 0; line-height: 1.55; }
.life-hub-card__link { color: var(--bh-green-700); font-weight: 500; margin-top: auto; padding-top: 6px; }

/* === Gallery note === */
.gallery-note {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bh-cream); border-radius: var(--bh-radius); padding: 18px 22px; margin-top: 22px;
}
.gallery-note i { color: var(--bh-green-300); font-size: 22px; flex-shrink: 0; }
.gallery-note p { margin: 0; color: var(--bh-green-900); line-height: 1.55; }

/* === Services === */
.services-callout {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bh-cream); border-left: 4px solid var(--bh-green-300);
    border-radius: var(--bh-radius); padding: 22px 26px; margin-bottom: 28px;
}
.services-callout i { color: var(--bh-green-300); font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.services-callout strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--bh-green-900); }
.services-callout p { margin: 0; font-size: 14px; color: var(--bh-muted); }
.services-callout a { color: var(--bh-green-700); text-decoration: underline; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.service-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 24px 26px; display: flex; flex-direction: column; gap: 12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); }
.service-card__head { display: flex; gap: 14px; align-items: flex-start; }
.service-card__icon { font-size: 28px; color: var(--bh-green-300); line-height: 1; flex-shrink: 0; margin-top: 4px; }
.service-card__role { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bh-muted); font-weight: 600; margin-bottom: 4px; }
.service-card h3 { font-family: var(--bh-serif); font-size: 20px; margin: 0; line-height: 1.25; }
.service-card p { color: var(--bh-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.service-card__contacts { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.service-card__phone {
    font-family: var(--bh-serif); font-size: 22px; line-height: 1; color: var(--bh-green-900);
    text-decoration: none; letter-spacing: .01em; white-space: nowrap;
    display: inline-block; margin-right: 6px;
}
.service-card__phone:hover { color: var(--bh-green-700); text-decoration: underline; }
.service-card--emerg { border-left: 3px solid var(--bh-green-300); }
.service-card--emerg .service-card__icon { color: #a64a3a; }
.section-head--tight { margin-bottom: 18px; }
.section-head--tight .section-head__title { font-size: 28px; margin: 0; }
.section-head__link i { margin-right: 4px; }
.nobr { white-space: nowrap; }

.page-hero__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* === Правление === */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 991px) and (min-width: 768px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
.board-member {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 28px 24px; text-align: center; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.board-member:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); }
.board-member--chair { border-color: var(--bh-green-300); background: linear-gradient(180deg, rgba(154,165,107,.06) 0%, var(--bh-white) 100%); }
.board-member__avatar {
    width: 88px; height: 88px; border-radius: 50%; background: var(--bh-cream);
    color: var(--bh-green-300); display: inline-flex; align-items: center; justify-content: center;
    font-size: 40px; margin: 0 auto 16px; overflow: hidden; flex-shrink: 0;
}
.board-member__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-member__role { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--bh-green-700); font-weight: 600; margin-bottom: 8px; }
.board-member__name { font-family: var(--bh-serif); font-size: 22px; margin: 0 0 10px; line-height: 1.2; }
.board-member__hint { font-size: 13px; color: var(--bh-muted); margin: 0 0 14px; line-height: 1.5; }
.board-member__actions { margin-top: 4px; }

.board-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 767px) { .board-meta { grid-template-columns: 1fr; gap: 32px; } }
.board-meta__list { list-style: none; padding: 0; margin: 16px 0 0; }
.board-meta__list li { padding: 10px 0 10px 32px; position: relative; color: var(--bh-green-900); line-height: 1.5; }
.board-meta__list li i { position: absolute; left: 0; top: 12px; color: var(--bh-green-300); font-size: 18px; }
.board-meta__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.board-meta__contact {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
    border: 1px solid rgba(51,65,45,.12); border-radius: 999px;
    color: var(--bh-green-900); text-decoration: none; font-weight: 500; align-self: flex-start;
    transition: border-color .15s ease, color .15s ease;
}
.board-meta__contact:hover { border-color: var(--bh-green-300); color: var(--bh-green-300); }
.board-meta__contact i { color: var(--bh-green-300); }

/* === FAQ === */
.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
@media (max-width: 991px) { .faq-layout { grid-template-columns: 1fr; gap: 0; } }
.faq-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 991px) { .faq-nav { display: none; } }
.faq-nav__item {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-radius: var(--bh-radius-sm); color: var(--bh-green-900);
    text-decoration: none; font-size: 14px; font-weight: 500;
    transition: background .12s ease, color .12s ease;
}
.faq-nav__item:hover { background: var(--bh-cream); color: var(--bh-green-700); }
.faq-nav__item.is-active { background: var(--bh-green-300); color: var(--bh-white); }
.faq-nav__item.is-active i { color: var(--bh-white); }
.faq-nav__item i { color: var(--bh-green-300); font-size: 18px; }

.faq-cat { margin-bottom: 48px; scroll-margin-top: 110px; }
.faq-cat h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 28px; }
.faq-cat h2 i { color: var(--bh-green-300); font-size: 28px; }
.faq-cat .accordion-item {
    border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    margin-bottom: 12px; overflow: hidden; background: var(--bh-white);
}
.faq-cat .accordion-button {
    background: var(--bh-white); color: var(--bh-green-900); font-weight: 500; font-size: 16px;
    padding: 18px 22px; border: 0;
}
.faq-cat .accordion-button:not(.collapsed) { background: var(--bh-cream); color: var(--bh-green-700); box-shadow: none; }
.faq-cat .accordion-button:focus { box-shadow: none; border: 0; }
.faq-cat .accordion-body { padding: 4px 22px 20px; color: var(--bh-muted); line-height: 1.65; }
.faq-cat .accordion-body a { color: var(--bh-green-700); text-decoration: underline; }

/* === News feed / empty === */
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.news-filter {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.12); border-radius: 999px;
    padding: 8px 18px; font-size: 14px; color: var(--bh-green-900); font-weight: 500;
    cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.news-filter:hover { border-color: var(--bh-green-300); color: var(--bh-green-700); }
.news-filter.is-active { background: var(--bh-green-300); border-color: var(--bh-green-300); color: var(--bh-white); }

.news-empty {
    background: var(--bh-white); border-radius: var(--bh-radius-lg); padding: 56px 32px;
    text-align: center; box-shadow: var(--bh-shadow-sm);
}
.news-empty > i { font-size: 56px; color: var(--bh-green-300); display: block; margin-bottom: 18px; line-height: 1; }
.news-empty h3 { font-family: var(--bh-serif); font-size: 26px; margin: 0 0 10px; }
.news-empty p { color: var(--bh-muted); max-width: 540px; margin: 0 auto; line-height: 1.65; }
.news-empty a { color: var(--bh-green-700); text-decoration: underline; }

/* === Residents page cards === */
.resident-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.resident-page-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 28px 26px; color: var(--bh-green-900); text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    display: flex; flex-direction: column; gap: 8px;
}
.resident-page-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); color: var(--bh-green-900); }
.resident-page-card__icon { font-size: 30px; color: var(--bh-green-300); line-height: 1; margin-bottom: 6px; display: block; }
.resident-page-card h3 { font-family: var(--bh-serif); font-size: 22px; margin: 0; }
.resident-page-card p { color: var(--bh-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* === Инфраструктура === */
.infra-cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.infra-cat {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    color: var(--bh-green-900); text-decoration: none; font-weight: 500;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.infra-cat:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); color: var(--bh-green-900); }
.infra-cat i { font-size: 24px; color: var(--bh-green-300); flex-shrink: 0; }

.infra-item { display: grid; grid-template-columns: 100px 1fr; gap: 36px; align-items: start; max-width: 980px; }
.infra-item--reverse { grid-template-columns: 1fr 100px; }
.infra-item--reverse .infra-item__icon { order: 2; }
.infra-item--reverse .infra-item__body { order: 1; }
.infra-item__icon {
    width: 80px; height: 80px; border-radius: var(--bh-radius); background: var(--bh-white);
    box-shadow: var(--bh-shadow-sm); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.infra-item__icon i { font-size: 36px; color: var(--bh-green-300); line-height: 1; }
.infra-item__body h2 { margin: 8px 0 14px; }
.infra-item__body p { color: var(--bh-muted); line-height: 1.65; margin-bottom: 14px; }
.infra-item__body a { color: var(--bh-green-700); text-decoration: underline; text-decoration-color: rgba(74,90,64,.35); }
.infra-list { list-style: none; padding: 0; margin: 14px 0 0; }
.infra-list li { padding: 8px 0 8px 28px; position: relative; color: var(--bh-green-900); }
.infra-list li::before {
    content: ''; position: absolute; left: 0; top: 14px; width: 16px; height: 2px;
    background: var(--bh-green-300); border-radius: 2px;
}
@media (max-width: 767px) {
    .infra-item, .infra-item--reverse { grid-template-columns: 1fr; gap: 20px; }
    .infra-item__icon { width: 64px; height: 64px; }
    .infra-item__icon i { font-size: 28px; }
}

/* === Расположение === */
.distances-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.distance-card {
    background: var(--bh-white); border-radius: var(--bh-radius); padding: 22px 24px;
    box-shadow: var(--bh-shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.distance-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); }
.distance-card__from { font-family: var(--bh-serif); font-size: 32px; font-weight: 500; color: var(--bh-green-900); line-height: 1; }
.distance-card__label { font-size: 13px; color: var(--bh-green-700); margin-top: 4px; font-weight: 500; }
.distance-card__hint { font-size: 13px; color: var(--bh-muted); margin: 12px 0 0; line-height: 1.5; }

.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .ways { grid-template-columns: 1fr; } }
.way-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius-lg);
    padding: 32px 32px 28px; box-shadow: var(--bh-shadow-sm);
}
.way-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.way-card__icon { font-size: 30px; color: var(--bh-green-300); line-height: 1; }
.way-card__title { margin: 0; font-size: 24px; }
.way-card__steps { padding-left: 22px; margin: 0; counter-reset: step; }
.way-card__steps li { padding: 8px 0; line-height: 1.55; color: var(--bh-green-900); }
.way-card__steps li::marker { color: var(--bh-green-300); font-weight: 600; }
.way-card__steps a { color: var(--bh-green-700); text-decoration: underline; }

.nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.nearby-card {
    background: var(--bh-white); border-radius: var(--bh-radius); padding: 26px 28px;
    box-shadow: var(--bh-shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.nearby-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); }
.nearby-card__icon { font-size: 30px; color: var(--bh-green-300); line-height: 1; display: block; margin-bottom: 12px; }
.nearby-card h3 { font-family: var(--bh-serif); font-size: 22px; margin: 0 0 6px; }
.nearby-card__dist { font-size: 12px; color: var(--bh-green-700); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.nearby-card p:not(.nearby-card__dist) { color: var(--bh-muted); font-size: 14px; line-height: 1.55; margin: 0; }

.page-hero--compact { padding: 120px 0 60px; }
@media (max-width: 767px) { .page-hero--compact { padding: 96px 0 40px; } }

/* === Contacts === */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 26px 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); }
.contact-card__icon { font-size: 28px; color: var(--bh-green-300); line-height: 1; display: block; margin-bottom: 14px; }
.contact-card__title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bh-muted); font-weight: 600; margin: 0 0 8px; }
.contact-card__big {
    display: block; font-family: var(--bh-serif); font-size: 22px; font-weight: 500;
    color: var(--bh-green-900); line-height: 1.2; text-decoration: none; word-break: break-word;
}
.contact-card__big:hover { color: var(--bh-green-300); }
.contact-card__big--addr { font-size: 16px; font-family: var(--bh-sans); font-weight: 500; line-height: 1.4; cursor: default; }
.contact-card__big--addr:hover { color: var(--bh-green-900); }
.contact-card__hint { font-size: 13px; color: var(--bh-muted); margin: 10px 0 0; line-height: 1.5; }

.contacts-map-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contacts-map-legend { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.legend-pin { display: inline-flex; align-items: center; gap: 8px; color: var(--bh-green-900); }
.legend-pin__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bh-green-300); box-shadow: 0 0 0 3px rgba(154,165,107,.25); }

.contact-form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 991px) { .contact-form-wrap { grid-template-columns: 1fr; gap: 32px; } }
.contact-form-wrap__list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-form-wrap__list li { font-size: 14px; color: var(--bh-muted); margin-bottom: 8px; display: flex; gap: 8px; align-items: start; }
.contact-form-wrap__list i { color: var(--bh-green-300); margin-top: 3px; }
.contact-form-wrap__list a { color: var(--bh-green-700); text-decoration: underline; text-decoration-color: rgba(74,90,64,.35); }
.contact-form {
    background: var(--bh-cream); border-radius: var(--bh-radius-lg); padding: 36px 32px;
    box-shadow: var(--bh-shadow-sm);
}
.contact-form .form-control { border-radius: 12px; border: 1px solid rgba(51,65,45,.12); background: var(--bh-white); }
.contact-form .form-control:focus { border-color: var(--bh-green-300); box-shadow: 0 0 0 .2rem rgba(154,165,107,.18); }
.contact-form .form-label { font-size: 13px; font-weight: 500; }
.contact-form__note { font-size: 12px; color: var(--bh-muted); text-align: center; margin: 12px 0 0; }
.fc-anyof { padding: 12px 14px; border-radius: var(--bh-radius-sm); border: 1px dashed transparent; transition: border-color .15s ease, background .15s ease; margin-left: -14px; margin-right: -14px; }
.fc-anyof--invalid { border-color: rgba(220,53,69,.5); background: rgba(220,53,69,.04); }
.fc-anyof--invalid #cf_contact_hint { color: #dc3545 !important; }
.fc-anyof--invalid input { border-color: rgba(220,53,69,.4); }

/* Реквизиты */
.requisites { background: var(--bh-white); border-radius: var(--bh-radius-lg); padding: 28px 32px; box-shadow: var(--bh-shadow-sm); }
.requisites__list { margin: 0; padding: 0; display: grid; gap: 0; }
.requisites__row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 14px 0; border-top: 1px solid rgba(51,65,45,.06); align-items: start; }
.requisites__row:first-child { border-top: 0; }
.requisites__row dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--bh-muted); font-weight: 600; padding-top: 4px; }
.requisites__row dd { margin: 0; display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.requisites__val { color: var(--bh-green-900); font-weight: 500; line-height: 1.5; }
.requisites__copy {
    flex-shrink: 0; background: transparent; border: 1px solid rgba(51,65,45,.18);
    color: var(--bh-green-700); padding: 6px 14px; border-radius: 999px; font-size: 12px;
    cursor: pointer; transition: all .15s ease;
}
.requisites__copy:hover { background: var(--bh-green-300); color: var(--bh-white); border-color: var(--bh-green-300); }
.requisites__copy.is-copied { background: var(--bh-green-900); color: var(--bh-white); border-color: var(--bh-green-900); }
@media (max-width: 767px) {
    .requisites { padding: 18px 18px; }
    .requisites__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
    .requisites__row dd { flex-direction: column; gap: 8px; }
    .requisites__copy { align-self: flex-start; }
}

/* Соцсети-полоса */
.socials-band {
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    padding: 36px 40px; background: var(--bh-green-900); color: var(--bh-white);
    border-radius: var(--bh-radius-lg);
}
.socials-band h2 { color: var(--bh-white); margin: 0; }
.socials-band p { color: rgba(255,255,255,.78); margin: 0; }
.socials-band__links { display: flex; gap: 12px; flex-wrap: wrap; }
.socials-band__link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px;
    background: rgba(255,255,255,.1); color: var(--bh-white);
    text-decoration: none; font-weight: 500; transition: background .15s ease;
}
.socials-band__link:hover { background: var(--bh-green-300); color: var(--bh-white); }
.socials-band__link i, .socials-band__link svg { font-size: 22px; }
@media (max-width: 767px) {
    .socials-band { grid-template-columns: 1fr; padding: 28px 24px; }
    .socials-band__link { flex: 1 1 0; justify-content: center; }
}

/* === Timeline === */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 880px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 60px; top: 16px; bottom: 16px; width: 2px;
    background: linear-gradient(180deg, var(--bh-green-300), rgba(154,165,107,.2));
}
.timeline__item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 18px 0; position: relative; }
.timeline__item::before {
    content: ''; position: absolute; left: 56px; top: 24px; width: 10px; height: 10px;
    background: var(--bh-green-300); border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bh-white);
}
.timeline__year { font-family: var(--bh-serif); font-size: 32px; font-weight: 500; color: var(--bh-green-900); line-height: 1; padding-top: 8px; }
.timeline__title { font-family: var(--bh-serif); font-size: 22px; margin: 0 0 8px; }
.timeline__body p { margin: 0; color: var(--bh-muted); }
@media (max-width: 575px) {
    .timeline::before { left: 18px; }
    .timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 44px; }
    .timeline__item::before { left: 14px; top: 28px; }
    .timeline__year { font-size: 22px; padding-top: 0; }
}

/* === Values cards === */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.value-card {
    background: var(--bh-white); border-radius: var(--bh-radius); padding: 32px 28px;
    box-shadow: var(--bh-shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--bh-shadow); }
.value-card__icon { font-size: 40px; color: var(--bh-green-300); margin-bottom: 16px; display: block; line-height: 1; }
.value-card__title { font-family: var(--bh-serif); font-size: 26px; font-weight: 500; margin: 0 0 10px; }
.value-card__text { color: var(--bh-muted); margin: 0; line-height: 1.55; }

/* === Facts strip === */
.facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; padding: 36px 0; border-top: 1px solid rgba(51,65,45,.08); border-bottom: 1px solid rgba(51,65,45,.08); }
.facts-strip__item { text-align: center; }
.facts-strip__num { font-family: var(--bh-serif); font-size: 36px; font-weight: 500; color: var(--bh-green-900); line-height: 1; }
.facts-strip__label { font-size: 12px; color: var(--bh-muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }

/* === Board preview === */
.board-preview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.board-preview p { color: var(--bh-muted); line-height: 1.65; }
.board-preview__visual {
    background: var(--bh-white); border-radius: var(--bh-radius); padding: 24px;
    box-shadow: var(--bh-shadow-sm); display: flex; align-items: center; justify-content: center;
    aspect-ratio: 5/4; max-width: 420px; margin: 0 auto;
}
.board-preview__visual svg { width: 100%; height: auto; max-width: 300px; }
@media (max-width: 767px) { .board-preview { grid-template-columns: 1fr; } }

/* === Docs preview === */
.docs-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.doc-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 22px 24px; color: var(--bh-green-900); text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); color: var(--bh-green-900); border-color: var(--bh-green-300); }
.doc-card__icon { font-size: 28px; color: var(--bh-green-300); line-height: 1; flex-shrink: 0; margin-top: 2px; }
.doc-card__type { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bh-muted); font-weight: 600; margin-bottom: 4px; }
.doc-card__title { font-family: var(--bh-serif); font-size: 20px; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.doc-card__hint { font-size: 13px; color: var(--bh-muted); }

/* === CTA-band на тёмных секциях === */
.cta-band {
    display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-band__title { color: var(--bh-white); margin: 0 0 10px; }
.cta-band__text { color: rgba(255,255,255,.78); margin: 0; max-width: 580px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) {
    .cta-band { grid-template-columns: 1fr; }
}

/* === CTA-card — тёмная карточка внутри cream-секции
   (используется на /about/ чтобы тёмный CTA не сливался с тёмным футером) === */
.cta-card {
    background: var(--bh-green-900);
    color: var(--bh-white);
    border-radius: var(--bh-radius-lg);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    box-shadow: var(--bh-shadow);
}
.cta-card__title { color: var(--bh-white); margin: 0 0 10px; }
.cta-card__text { color: rgba(255,255,255,.78); margin: 0; max-width: 580px; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* На тёмной CTA-карточке primary при hover не должен сливаться с её же тёмным фоном */
.cta-card .btn-primary:hover, .cta-card .btn-primary:focus { background: var(--bh-cream); color: var(--bh-green-900); }
@media (max-width: 767px) {
    .cta-card { grid-template-columns: 1fr; padding: 28px 24px; }
    .cta-card__actions .btn { flex: 1 1 0; }
}

/* === Simple page === */
.simple-hero {
    aspect-ratio: 16/6; background-size: cover; background-position: center;
    border-radius: var(--bh-radius-lg); box-shadow: var(--bh-shadow);
}
.simple-page .content h2 { font-size: 28px; margin: 32px 0 14px; }
.simple-page .content h3 { font-size: 22px; margin: 24px 0 10px; }
.simple-page .content p { margin-bottom: 14px; line-height: 1.65; }
.simple-page .content ul, .simple-page .content ol { margin: 0 0 14px 0; padding-left: 22px; }
.simple-page .content li { margin-bottom: 6px; }
.simple-page .content a { color: var(--bh-green-700); text-decoration: underline; text-decoration-color: rgba(74,90,64,.35); }
.simple-page .content a:hover { color: var(--bh-green-900); text-decoration-color: currentColor; }

.breadcrumb { background: transparent; padding: 0; font-size: 14px; }
.breadcrumb-item { color: var(--bh-muted); }
.breadcrumb-item a { color: var(--bh-green-700); }
.breadcrumb-item.active { color: var(--bh-green-900); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--bh-muted); }

/* === Error page (404/403/500) === */
.error-page { padding: 60px 0 80px; min-height: calc(100dvh - 380px); display: flex; align-items: center; }
.error-page__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.error-page__art { width: 220px; max-width: 60%; height: auto; border-radius: var(--bh-radius); margin: 0 auto 24px; display: block; box-shadow: 0 2px 12px rgba(51,65,45,.08); }
.error-page__code {
    font-family: var(--bh-serif); font-size: clamp(90px, 18vw, 180px);
    line-height: 1; color: var(--bh-green-700); margin-bottom: 6px;
    letter-spacing: -.02em; font-weight: 500;
}
.error-page__title { font-family: var(--bh-serif); font-size: clamp(26px, 4vw, 38px); margin: 0 0 14px; color: var(--bh-green-900); }
.error-page__lead { font-size: 17px; color: var(--bh-muted); line-height: 1.6; margin: 0 auto 28px; max-width: 520px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.error-page__nav {
    border-top: 1px solid rgba(51,65,45,.12); padding-top: 22px;
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: baseline;
    font-size: 14px; color: var(--bh-muted);
}
.error-page__nav span { color: var(--bh-muted); }
.error-page__nav a { color: var(--bh-green-700); text-decoration: none; border-bottom: 1px dotted rgba(74,90,64,.4); padding-bottom: 1px; }
.error-page__nav a:hover { color: var(--bh-green-900); border-bottom-color: currentColor; }

/* === Documents (cabinet_api) === */
.docs-info {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bh-cream); border-radius: var(--bh-radius); padding: 18px 22px; margin-bottom: 28px;
}
.docs-info i { color: var(--bh-green-300); font-size: 22px; flex-shrink: 0; }
.docs-info p { margin: 0; color: var(--bh-green-900); line-height: 1.55; }
.docs-info a { color: var(--bh-green-700); text-decoration: underline; }
.docs-empty {
    text-align: center; padding: 60px 24px; background: var(--bh-cream); border-radius: var(--bh-radius-lg);
}
.docs-empty i { font-size: 48px; color: var(--bh-green-300); margin-bottom: 16px; display: block; }
.docs-empty h3 { font-family: var(--bh-serif); font-size: 24px; margin: 0 0 10px; color: var(--bh-green-900); }
.docs-empty p { color: var(--bh-muted); max-width: 520px; margin: 0 auto 22px; line-height: 1.6; }
.docs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.docs-filter {
    border: 1px solid rgba(51,65,45,.18); background: transparent; padding: 8px 16px;
    border-radius: 999px; font-size: 14px; color: var(--bh-green-900); cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.docs-filter:hover { background: var(--bh-cream); }
.docs-filter.is-active { background: var(--bh-green-900); color: #fff; border-color: var(--bh-green-900); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.doc-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 22px 24px; display: flex; flex-direction: column; gap: 12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); }
.doc-card[hidden] { display: none !important; }
.doc-card__head { display: flex; gap: 12px; align-items: flex-start; }
.doc-card__icon { font-size: 28px; color: var(--bh-green-300); flex-shrink: 0; margin-top: 2px; }
.doc-card__category { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bh-muted); font-weight: 600; margin-bottom: 4px; }
.doc-card__title { font-family: var(--bh-serif); font-size: 18px; margin: 0; line-height: 1.3; color: var(--bh-green-900); }
.doc-card__desc { font-size: 14px; color: var(--bh-muted); line-height: 1.55; margin: 0; }
.doc-card__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--bh-muted); padding-top: 6px; border-top: 1px solid rgba(51,65,45,.06); }
.doc-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc-card__files { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.doc-file {
    display: flex; gap: 10px; align-items: center; padding: 10px 12px;
    background: var(--bh-cream); border-radius: 8px; text-decoration: none; color: var(--bh-green-900);
    font-size: 14px; transition: background .15s ease;
}
.doc-file:hover { background: rgba(51,65,45,.08); color: var(--bh-green-900); }
.doc-file i { color: var(--bh-green-300); font-size: 16px; flex-shrink: 0; }
.doc-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-file__size { color: var(--bh-muted); font-size: 12px; flex-shrink: 0; }

/* === Bank-section в реквизитах === */
.requisites__bank {
    margin-top: 28px; padding-top: 22px;
    border-top: 1px solid rgba(51,65,45,.12);
}
.requisites__bank-title {
    font-family: var(--bh-serif); font-size: 22px; margin: 0 0 14px; color: var(--bh-green-900);
}
.requisites__note { color: var(--bh-muted); font-size: 14px; margin: 16px 0 0; line-height: 1.55; }

/* === Fees page === */
.fee-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 36px; }
.fee-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 24px 26px; display: flex; flex-direction: column; gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fee-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); }
.fee-card__icon { font-size: 32px; color: var(--bh-green-300); line-height: 1; margin-bottom: 4px; }
.fee-card h3 { font-family: var(--bh-serif); font-size: 20px; margin: 0; color: var(--bh-green-900); }
.fee-card p { color: var(--bh-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.fees-cta {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
    background: var(--bh-cream); border-radius: var(--bh-radius-lg); padding: 32px 36px;
}
@media (max-width: 767px) { .fees-cta { grid-template-columns: 1fr; padding: 24px 22px; } }
.fees-cta__text h2 { margin: 0 0 10px; }
.fees-cta__text p { margin: 0; color: var(--bh-green-900); line-height: 1.6; }
.fees-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 767px) {
    .fees-cta__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-wrap: nowrap; }
    .fees-cta__actions .btn { padding: 10px 12px; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fees-cta__actions .btn i { margin-right: 4px; }
}
.fees-notice {
    display: flex; gap: 16px; align-items: flex-start; margin-top: 28px;
    background: var(--bh-white); border-left: 4px solid var(--bh-green-300);
    border-radius: var(--bh-radius); padding: 18px 22px;
}
.fees-notice i { color: var(--bh-green-300); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.fees-notice strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--bh-green-900); }
.fees-notice p { margin: 0; color: var(--bh-muted); font-size: 14px; line-height: 1.55; }

/* === Meetings (cabinet_api) === */
.meetings__heading { font-family: var(--bh-serif); font-size: 22px; margin: 28px 0 14px; color: var(--bh-green-900); }
.meetings__heading:first-child { margin-top: 0; }
.meetings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.meeting-card {
    background: var(--bh-white); border: 1px solid rgba(51,65,45,.08); border-radius: var(--bh-radius);
    padding: 22px 24px; display: flex; flex-direction: column; gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.meeting-card--upcoming { border-left: 4px solid var(--bh-green-300); }
.meeting-card--closed { opacity: .85; }
.meeting-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); border-color: var(--bh-green-300); }
.meeting-card__head { display: flex; gap: 12px; align-items: flex-start; }
.meeting-card__icon { font-size: 24px; color: var(--bh-green-300); flex-shrink: 0; margin-top: 2px; }
.meeting-card__kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bh-muted); font-weight: 600; margin-bottom: 4px; }
.meeting-card__title { font-family: var(--bh-serif); font-size: 18px; margin: 0; line-height: 1.3; color: var(--bh-green-900); }
.meeting-card__desc { font-size: 14px; color: var(--bh-muted); line-height: 1.55; margin: 0; }
.meeting-card__meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--bh-muted); padding-top: 6px; border-top: 1px solid rgba(51,65,45,.06); }
.meeting-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.meeting-card__actions { margin-top: auto; padding-top: 6px; }

/* === fc_view forms === */
.fc-form { display: flex; flex-direction: column; gap: 14px; }
.fc-field { display: flex; flex-direction: column; gap: 6px; }
.fc-field__label { font-size: 14px; color: var(--bh-green-900); font-weight: 500; }
.fc-field__required { color: #b85738; margin-left: 2px; }
.fc-field .form-control {
    border-radius: 10px; border: 1px solid rgba(51,65,45,.18);
    padding: 12px 14px; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.fc-field .form-control:focus {
    border-color: var(--bh-green-300); box-shadow: 0 0 0 3px rgba(154,165,107,.18); outline: none;
}
.fc-field--error .form-control { border-color: #b85738; }
.fc-field__error { color: #b85738; font-size: 13px; margin-top: 2px; }
.fc-field--consent { flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 4px; }
.fc-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.fc-consent__input { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--bh-green-700); }
.fc-consent__text { font-size: 13px; color: var(--bh-muted); line-height: 1.5; }
.fc-consent__text a { color: var(--bh-green-700); text-decoration: underline; }

/* === fc_view contact form row === */
.fc-row { display: grid; gap: 14px; }
.fc-row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 575px) { .fc-row--two { grid-template-columns: 1fr; } }
.fc-anyof-hint { font-size: 13px; color: var(--bh-muted); margin-top: -4px; display: flex; gap: 6px; align-items: center; }
.fc-anyof-hint i { color: var(--bh-green-300); }

/* === News grid (full list on /life/news/) — фиксированно 3 колонки, чтобы карточка не растягивалась при фильтре === */
.news-grid--full { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.news-grid--full .news-card,
.news-grid .news-card { height: 100%; }
@media (max-width: 991px) { .news-grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .news-grid--full { grid-template-columns: 1fr; } }
.news-grid--full .news-card { width: 100%; min-width: 0; }
.news-grid--loading { opacity: .5; transition: opacity .15s ease; pointer-events: none; }

/* === Event card === */
.event-card { position: relative; }
.event-card .news-card__media { position: relative; }
.event-card__date {
    position: absolute; top: 12px; left: 12px;
    background: var(--bh-green-300); color: var(--bh-white);
    padding: 8px 12px; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.event-card__day { font-size: 22px; font-weight: 700; }
.event-card__month { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.event-card--past { opacity: .72; }
.event-card--past .event-card__date { background: var(--bh-muted); }
.event-card__loc { font-size: 13px; color: var(--bh-muted); margin: 4px 0 10px; display: flex; gap: 4px; align-items: center; }
.news-card__date--past { color: var(--bh-muted); font-style: italic; }
.news-card__date i { margin-right: 2px; }

/* === Historical article (page-hero вариант + типографика для длинного чтения) === */
.page-hero--article { min-height: 380px; }
.page-hero__meta { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.78); }
.page-hero__meta i { margin-right: 4px; color: var(--bh-green-300); }

.histarticle { padding-top: 56px; padding-bottom: 64px; }
.histarticle__inner { max-width: 760px; margin: 0 auto; }
.histarticle__body { font-size: 18px; line-height: 1.78; color: var(--bh-text, #2b3324); }
.histarticle__body p { margin: 0 0 1.4em; text-align: justify; hyphens: auto; }
.histarticle__body p:first-of-type { font-size: 21px; line-height: 1.6; color: var(--bh-green-900); }
.histarticle__body p:first-of-type::first-letter {
    font-family: var(--bh-serif);
    font-size: 64px; line-height: .85; font-weight: 500;
    float: left; padding: 8px 12px 0 0;
    color: var(--bh-green-300);
}
.histarticle__body img { max-width: 100%; height: auto; display: block; margin: 36px auto; border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); }
.histarticle__body p:has(> img) { text-align: center; }
.histarticle__body h2, .histarticle__body h3 {
    font-family: var(--bh-serif); font-weight: 500;
    color: var(--bh-green-900); margin: 1.6em 0 .6em; line-height: 1.2;
}
.histarticle__body h2 { font-size: 28px; }
.histarticle__body h3 { font-size: 22px; }
.histarticle__body a { color: var(--bh-green-300); text-decoration: underline; text-underline-offset: 3px; }
.histarticle__body em, .histarticle__body i:not([class]) { color: var(--bh-green-300); font-style: italic; }
.histarticle__body blockquote {
    margin: 28px 0; padding: 16px 24px;
    border-left: 3px solid var(--bh-green-300);
    background: var(--bh-cream); border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--bh-green-900);
}

.histarticle__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(51,65,45,.1); flex-wrap: wrap; }
.histarticle__nav .btn i { margin: 0 4px; }

@media (max-width: 767px) {
    .histarticle__body { font-size: 16px; line-height: 1.72; }
    .histarticle__body p:first-of-type { font-size: 18px; }
    .histarticle__body p:first-of-type::first-letter { font-size: 52px; }
    .histarticle__body p { text-align: left; }
    .histarticle__nav { flex-direction: column; }
    .histarticle__nav .btn { width: 100%; }
}

/* === Article (детальная страница новости) === */
.article { max-width: 760px; margin: 0 auto; }
.article__lead { font-size: 19px; line-height: 1.6; color: var(--bh-green-900); margin: 0 0 24px; font-weight: 500; }
.article__body { font-size: 16px; line-height: 1.7; color: var(--bh-green-900); }
.article__body p { margin: 0 0 16px; }
.article__body ul, .article__body ol { margin: 0 0 16px 0; padding-left: 22px; }
.article__body li { margin-bottom: 6px; }
.article__body h2 { font-family: var(--bh-serif); font-size: 28px; margin: 28px 0 14px; color: var(--bh-green-900); }
.article__body h3 { font-family: var(--bh-serif); font-size: 22px; margin: 24px 0 10px; color: var(--bh-green-900); }
.article__body a { color: var(--bh-green-700); text-decoration: underline; }
.article__body a:hover { color: var(--bh-green-900); }
.article__body img { max-width: 100%; height: auto; border-radius: var(--bh-radius); margin: 16px 0; }

.fc-success {
    text-align: center; padding: 16px 0;
}
.fc-success__icon { font-size: 44px; color: var(--bh-green-300); margin-bottom: 10px; }
.fc-success__title { font-family: var(--bh-serif); font-size: 24px; margin: 0 0 8px; color: var(--bh-green-900); }
.fc-success__text { color: var(--bh-muted); font-size: 15px; margin: 0; }

/* === Container max-width — поглубже до 1320 === */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1320px; }
}

/* === Legal-doc layout === */
.legal-doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.legal-doc__meta { position: sticky; top: 96px; padding: 18px 18px 14px; background: var(--bh-cream, #f7f3ea); border-radius: 12px; border: 1px solid rgba(51,65,45,.06); }
.legal-doc__back { display: inline-flex; align-items: center; gap: 6px; color: var(--bh-green-900); text-decoration: none; font-weight: 600; }
.legal-doc__back:hover { color: var(--bh-green-300); }
.legal-doc__updated { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(51,65,45,.08); font-size: 13px; color: var(--bh-muted); }
.legal-doc__updated-label { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-bottom: 4px; }
.legal-doc__body { background: var(--bh-white); padding: 28px 32px; border-radius: 12px; border: 1px solid rgba(51,65,45,.06); }
.legal-doc__body h2 { margin-top: 28px; font-size: 22px; color: var(--bh-green-900); }
.legal-doc__body h2:first-child { margin-top: 0; }
.legal-doc__body p, .legal-doc__body ul, .legal-doc__body ol { line-height: 1.65; color: var(--bh-text, #2b3324); }
.legal-doc__body a { color: var(--bh-green-300); text-decoration: underline; }
@media (max-width: 767px) {
	.legal-doc { grid-template-columns: 1fr; gap: 20px; }
	.legal-doc__meta { position: static; }
	.legal-doc__body { padding: 18px 18px; }
}

/* === Legal hub cards === */
.legal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.legal-card { display: flex; flex-direction: column; gap: 8px; background: var(--bh-white); border-radius: 12px; border: 1px solid rgba(51,65,45,.06); padding: 22px 22px 20px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.legal-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); color: inherit; }
.legal-card__icon { font-size: 28px; color: var(--bh-green-300); }
.legal-card__title { font-size: 17px; margin: 4px 0 6px; color: var(--bh-green-900); font-weight: 600; }
.legal-card__link { margin-top: auto; font-size: 13px; color: var(--bh-green-300); font-weight: 600; }
.legal-intro { max-width: 760px; }
.legal-intro__title { font-size: 22px; color: var(--bh-green-900); }
.legal-intro__text { color: var(--bh-muted); }
/* === BH-GALLERY-START === */
.bh-gallery { display: flex; flex-direction: column; gap: 24px; }
.bh-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bh-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(154,165,107,0.10);
	border: 1px solid rgba(154,165,107,0.35);
	border-radius: 999px;
	color: #2c2c2c;
	font: 500 14px/1 system-ui, -apple-system, sans-serif;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.bh-chip:hover { background: rgba(154,165,107,0.20); }
.bh-chip.is-active {
	background: #9AA56B;
	border-color: #9AA56B;
	color: #fff;
}
.bh-chip__count {
	font-size: 12px;
	opacity: 0.75;
}
.bh-chip.is-active .bh-chip__count { opacity: 0.9; }

.bh-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}
.bh-media-card {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: #f3f3ef;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: transform .25s, box-shadow .25s;
}
.bh-media-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.bh-media-card__link { display: block; width: 100%; height: 100%; position: relative; }
.bh-media-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s;
}
.bh-media-card:hover .bh-media-card__img { transform: scale(1.04); }
.bh-media-card__placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	color: #9AA56B;
	font-size: 64px;
}
.bh-media-card__play {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	font-size: 48px;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,0.4);
	pointer-events: none;
}
.bh-media-card__overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 14px 14px 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
	color: #fff;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s, transform .25s;
	pointer-events: none;
}
.bh-media-card:hover .bh-media-card__overlay { opacity: 1; transform: translateY(0); }
.bh-media-card__caption { font: 600 14px/1.25 system-ui, sans-serif; margin-bottom: 4px; }
.bh-media-card__desc    { font: 400 13px/1.35 system-ui, sans-serif; opacity: 0.92; margin-bottom: 6px; }
.bh-media-card__author  { font: 500 12px/1 system-ui, sans-serif; opacity: 0.85; display: inline-flex; align-items: center; gap: 4px; }

.bh-gallery__more { display: flex; justify-content: center; padding-top: 8px; }
.bh-gallery__more[hidden] { display: none; }
.bh-gallery__empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: #6b7280; font-size: 14px; }

@media (max-width: 540px) {
	.bh-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.bh-media-card__overlay { opacity: 1; transform: none; padding: 10px 10px 8px; }
	.bh-media-card__caption { font-size: 13px; }
	.bh-media-card__desc { display: none; }
}

/* Блок медиа в детальной странице новости */
.news-media { margin-top: 32px; }
.news-media__title { font: 600 22px/1.2 system-ui, sans-serif; margin: 0 0 16px; }
.bh-gallery__grid--home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .bh-gallery__grid--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .bh-gallery__grid--home { grid-template-columns: repeat(2, 1fr); } }
/* === BH-GALLERY-END === */
/* === BH-CAPTCHA-START === */
.bh-captcha--slider {
	position: relative;
	height: 48px;
	background: #f3f4ef;
	border: 1px solid rgba(154,165,107,0.45);
	border-radius: 8px;
	user-select: none;
	overflow: hidden;
	max-width: 300px;
}
.bh-captcha__track {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font: 500 13px/1 system-ui, -apple-system, sans-serif;
	color: #6b7280;
	pointer-events: none;
	transition: opacity .15s;
}
.bh-captcha__hint { white-space: nowrap; }
.bh-captcha__handle {
	position: absolute; top: 1px; left: 1px;
	width: 44px; height: 44px;
	background: #9AA56B;
	color: #fff;
	border: none;
	border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px;
	cursor: grab;
	transition: background-color .15s, box-shadow .15s;
	touch-action: none;
}
.bh-captcha__handle:hover { background: #8A9560; }
.bh-captcha__handle:active { cursor: grabbing; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.bh-captcha--passed .bh-captcha__handle {
	background: #4caf50;
	pointer-events: none;
}
.bh-captcha--passed .bh-captcha__track,
.bh-captcha--failed .bh-captcha__track { opacity: 0; }
.bh-captcha--failed .bh-captcha__handle { background: #d44747; }
.bh-captcha__status {
	position: absolute;
	left: 0; right: 0; top: 50%;
	transform: translateY(-50%);
	text-align: center;
	font: 500 13px/1 system-ui, sans-serif;
	color: #2c2c2c;
	pointer-events: none;
}
.bh-captcha--passed .bh-captcha__status::before { content: '\f26b'; font-family: 'bootstrap-icons'; color:#4caf50; margin-right: 6px; }
.bh-captcha--image .bh-captcha__img { display: block; margin-bottom: 8px; border-radius: 4px; }
/* === BH-CAPTCHA-END === */
