

/* Start:/local/templates/kvartalpolet/css/fonts.css?17932987071827*/
/* ============================================================
   Шрифты Futura — семейство C
   Файлы лежат в /local/templates/kvartalpolet/fonts/
   ============================================================ */

@font-face {
    font-family: 'FuturaBookC';
    src: url('/local/templates/kvartalpolet/css/../fonts/FuturaBookC.woff2') format('woff2'),
         url('/local/templates/kvartalpolet/css/../fonts/FuturaBookC.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaLightC';
    src: url('/local/templates/kvartalpolet/css/../fonts/FuturaLightC.woff2') format('woff2'),
         url('/local/templates/kvartalpolet/css/../fonts/FuturaLightC.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaMediumC';
    src: url('/local/templates/kvartalpolet/css/../fonts/FuturaMediumC.woff2') format('woff2'),
         url('/local/templates/kvartalpolet/css/../fonts/FuturaMediumC.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaDemiC';
    src: url('/local/templates/kvartalpolet/css/../fonts/FuturaDemiC.woff2') format('woff2'),
         url('/local/templates/kvartalpolet/css/../fonts/FuturaDemiC.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* KP Stencil — собственный трафаретный шрифт квартала, только цифры и . , : – +
   Нарисован с нуля в духе навигации (исходник — design/kp-stencil/build_kp_stencil.py); остальные знаки берутся из Futura */
@font-face {
    font-family: 'KPStencil';
    src: url('/local/templates/kvartalpolet/css/../fonts/KPStencil.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020, U+002B, U+002C, U+002E, U+0030-003A, U+2013;
}


/* End */


/* Start:/local/templates/kvartalpolet/css/variables.css?17933398365315*/
/* ============================================================
   CSS-переменные дизайн-системы «Квартал Полёт» (2026)
   Источник: дизайн-макет Главная Полет v3.dc.html
   ============================================================ */

:root {
    /* ── Цвета ──────────────────────────────────────────── */
    --color-bg:          #EFE7D4; /* основной фон страницы   */
    --color-bg-alt:      #E6DCC4; /* чуть темнее, hover-фон  */
    --color-bg-card:     #E0D4BA; /* карточки, блоки         */

    --color-text:        #231910; /* основной текст          */
    --color-text-mid:    #3A2C1E; /* навигация, подзаголовки */
    --color-text-muted:  #76664F; /* подписи, caption        */
    --color-text-light:  #C8B99A; /* разделители, placeholder*/

    /* Фирменные цвета — из системы навигации квартала: коричневый Pantone 476C и серый Cool Gray 8C
       (вывески, указатели, стелы). Бордовый и почти чёрный прежнего макета заменены 29.10.2026 */
    --color-brand:       #4E3629; /* Pantone 476C — главный цвет */
    --color-brand-gray:  #888B8D; /* Pantone Cool Gray 8C        */

    --color-accent:      #A8452B; /* кирпичный акцент: телефон, ярлыки, активное меню, ссылки (контраст 4,8:1 на фоне) */
    --color-accent-light:#DA7655; /* тот же кирпичный для тёмного фона (контраст 3,5:1 на коричневом) */
    --color-accent-dark: #3A281E; /* hover у кнопок              */
    --color-accent-warm: #4E3629; /* кнопки, цены                */
    --color-accent-gold: #C4C6C7; /* акцент на коричневом фоне — светлый фирменный серый */

    --color-dark:        #4E3629; /* подвал, тёмные блоки — как панели навигации */
    --color-dark-mid:    #45301F; /* бегущая строка, тёмные секции (на тон глубже) */

    --color-text-body:   #5C4A36; /* основной body-текст     */
    --color-text-caption:#6E5F49; /* подписи в карточках     */

    --color-status-free:       #2B7A3B;
    --color-status-negotiation:#D4A13E;

    --color-border:      #DBCFB4; /* линии, границы          */
    --color-border-light:#EFE8D8;

    /* ── Шрифты ─────────────────────────────────────────── */
    --font-book:   'FuturaBookC',   sans-serif; /* основной текст    */
    --font-light:  'FuturaLightC',  sans-serif; /* подписи, caption  */
    --font-medium: 'FuturaMediumC', sans-serif; /* навигация, акцент */
    --font-demi:   'FuturaDemiC',   sans-serif; /* заголовки, лого   */
    --font-stencil: 'KPStencil', 'FuturaLightC', sans-serif; /* номера, этажи, часы — трафарет */

    /* ── Типографика ────────────────────────────────────── */
    --text-xs:   9px;
    --text-sm:   13px;
    --text-base: 15px;
    --text-md:   17px;
    --text-lg:   21px;
    --text-xl:   28px;
    --text-2xl:  38px;
    --text-3xl:  52px;

    --lh-tight:  1.1;
    --lh-normal: 1.4;
    --lh-loose:  1.6;

    --ls-wide:   0.02em;
    --ls-wider:  0.1em;
    --ls-widest: 0.26em;

    /* ── Отступы ────────────────────────────────────────── */
    --gap-xs:  8px;
    --gap-sm:  16px;
    --gap-md:  24px;
    --gap-lg:  40px;
    --gap-xl:  64px;
    --gap-2xl: 80px;

    /* ── Layout ─────────────────────────────────────────── */
    --container-max:   1340px;
    --container-pad:   52px;  /* padding-inline на десктопе */
    --header-height:   94px;

    /* ── Переходы ───────────────────────────────────────── */
    --ease-out:    cubic-bezier(0.16, 0.8, 0.3, 1);
    --transition:  0.4s var(--ease-out);
    --transition-fast: 0.2s ease;
}

/* Отступы и высота шапки сжимаются вместе с экраном: на телефоне 52px по бокам съедали
   почти треть ширины, а 96px между секциями растягивали страницу */
@media (max-width: 1024px) {
    :root {
        --container-pad: 32px;
        --gap-2xl: 64px;
    }
}

@media (max-width: 767px) {
    :root {
        --container-pad: 16px;
        --gap-xl:  40px;
        --gap-2xl: 48px;
        --header-height: 68px;
    }
}

/* End */


/* Start:/local/templates/kvartalpolet/css/reset.css?17932917241507*/
/* ============================================================
   CSS Reset — минималистичный, совместимый с Битрикс
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-book);
    font-size: var(--text-base);
    line-height: var(--lh-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Длинные слова в крупных заголовках («конфиденциальности», ««ПиццаФабрика»») не помещались в 320 px
   и раздвигали страницу — переносим по слогам (html lang="ru"), а в крайнем случае рвём слово */
h1, h2, h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Телефоны и суммы не рвём посередине («35-70-» / «45») */
.nowrap {
    white-space: nowrap;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
}

input, textarea, select {
    font: inherit;
}

/* End */


/* Start:/local/templates/kvartalpolet/css/layout.css?1782743679476*/
/* ============================================================
   Layout — контейнер, секции
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--gap-2xl);
}

.section--sm {
    padding-block: var(--gap-xl);
}

.site-main {
    min-height: 40vh;
}

/* End */


/* Start:/local/templates/kvartalpolet/css/buttons.css?17933431672009*/
/* ============================================================
   Кнопки — .btn, .btn--primary, .btn--secondary
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
    height: 56px;
    padding-inline: var(--gap-lg);
    border: none;
    font-family: var(--font-demi);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn--primary {
    background: var(--color-accent-warm);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-dark);
}

/* Кнопка и тёмный блок теперь одного фирменного коричневого — на тёмном фоне кнопка белая, как надписи на указателях */
:is(.section--dark, .corp-list, .building-hero, .venue-teaser, .site-footer) .btn--primary {
    background: #fff;
    color: var(--color-brand);
}

:is(.section--dark, .corp-list, .building-hero, .venue-teaser, .site-footer) .btn--primary:hover {
    background: var(--color-accent-gold);
}

/* …кроме кнопок внутри белой карточки формы: там фон светлый, кнопка остаётся коричневой */
:is(.section--dark, .corp-list, .building-hero, .venue-teaser, .site-footer) .form-block .btn--primary {
    background: var(--color-accent-warm);
    color: #fff;
}

:is(.section--dark, .corp-list, .building-hero, .venue-teaser, .site-footer) .form-block .btn--primary:hover {
    background: var(--color-accent-dark);
}

.btn--secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn--secondary:hover {
    background: var(--color-bg-card);
}

/* End */


/* Start:/local/templates/kvartalpolet/css/components.css?1793364474116542*/
/* ============================================================
   UI-компоненты — общие для всех страниц макета
   ============================================================ */

/* Section label */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-label__line {
    width: 54px;
    height: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.section-label__text {
    font-family: var(--font-medium);
    font-size: 13px;
    color: var(--color-accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.section-head {
    margin-bottom: 50px;
}

.section-head__title {
    font-family: var(--font-demi);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.section-head__sub {
    font-family: var(--font-book);
    font-size: 19px;
    line-height: 1.55;
    color: var(--color-text-body);
    margin-top: 16px;
}

.section-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.section-head__link {
    font-family: var(--font-demi);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent-warm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.section-head__link:hover {
    color: var(--color-accent-dark);
}

/* Page hero (inner pages) */
.page-hero {
    padding-block: 72px 56px;
}

.page-hero__title {
    font-family: var(--font-demi);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 0.94;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-demi);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge--corp {
    background: var(--color-dark-mid);
    color: var(--color-accent-gold);
}

.badge--free {
    background: var(--color-status-free);
    color: #fff;
}

.badge--negotiation {
    background: var(--color-status-negotiation);
    color: var(--color-text);
}

/* Property card */
.pcard {
    background: #fff;
    transition: transform var(--transition);
}


.pcard__img-wrap {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: var(--color-bg-card);
    color: inherit;
    text-decoration: none;
}

.pcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s var(--ease-out);
}

/* Реакция карточки — только для точного указателя; на тач-экранах без hover-эффектов */
@media (hover: hover) and (pointer: fine) {
    .pcard:hover .pcard__img {
        transform: scale(1.025);
    }

    .pcard:hover .pcard__more--arrow {
        transform: translateX(4px);
    }
}

.pcard__title-link:focus-visible,
.pcard__more:focus-visible,
.pcard__img-wrap:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.pcard__badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.pcard__body {
    padding: 24px 26px 28px;
    border-top: 1px solid var(--color-border-light);
}

.pcard__title {
    font-family: var(--font-demi);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.pcard__meta {
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-caption);
    margin-bottom: 20px;
}

.pcard__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.pcard__price {
    font-family: var(--font-demi);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent-warm);
}

.pcard__title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.pcard__title-link:hover {
    color: var(--color-accent-gold);
}

.pcard__more {
    font-family: var(--font-medium);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    text-decoration: none;
    white-space: nowrap;
}

.pcard__more:hover {
    text-decoration: underline;
}

.pcard__more--arrow {
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.18s var(--ease-out);
}

.space-detail__text {
    margin-top: 20px;
}

/* Building card */
.bcard {
    background: #fff;
    transition: transform var(--transition);
}

.bcard:hover {
    transform: translateY(-6px);
}

.bcard__img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.bcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.bcard:hover .bcard__img {
    transform: scale(1.05);
}

.bcard__badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.bcard__body {
    padding: 24px 26px 28px;
}

.bcard__title {
    font-family: var(--font-demi);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.bcard__desc {
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-caption);
    margin-bottom: 22px;
}

.bcard__stats {
    display: flex;
    gap: 16px;
}

.bcard__stat-val {
    font-family: var(--font-demi);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.bcard__stat-val--accent {
    color: var(--color-accent-warm);
}

.bcard__stat-label {
    font-family: var(--font-light);
    font-size: 11px;
    color: var(--color-text-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

.bcard__link {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--font-demi);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent-warm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

/* Corp row (home buildings list) */
.corp-list {
    position: relative;
    background: var(--color-dark-mid);
    padding-block: 104px;
    overflow: hidden;
}

.corp-list__lead {
    margin-top: 20px;
    font-family: var(--font-book);
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.corp-row {
    display: grid;
    grid-template-columns: 110px 1.5fr 1fr 44px;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: padding-left var(--transition), background var(--transition);
}

.corp-row:hover {
    padding-left: 32px;
    background: rgba(255, 255, 255, 0.03);
}

.corp-row:hover .corp-row__go {
    opacity: 1;
    transform: translateX(0);
}

.corp-row__num {
    /* Крупные цифры — тонким Futura Light, как номера этажей на навигации в здании */
    font-family: var(--font-light);
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition-fast);
}

.corp-row:hover .corp-row__num {
    color: var(--color-accent);
}

.corp-row__title {
    font-family: var(--font-book);
    font-size: 21px;
    font-weight: 400;
    color: #fff;
    transition: color var(--transition-fast);
}

.corp-row:hover .corp-row__title {
    color: #fff;
}

.corp-row__meta {
    font-family: var(--font-book);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
}

.corp-row__go {
    font-family: var(--font-demi);
    font-size: 20px;
    color: var(--color-accent-gold);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--transition), transform var(--transition);
}

/* Список корпусов + схема квартала (главная): подсветка пары «строка ↔ метка» — initCorpMap */
.corp-explorer--with-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.corp-explorer .corp-row {
    grid-template-columns: 90px 1fr 44px;
}

.corp-row.is-active {
    padding-left: 32px;
    background: rgba(255, 255, 255, 0.03);
}

.corp-row.is-active .corp-row__num {
    color: var(--color-accent);
}

.corp-row.is-active .corp-row__go {
    opacity: 1;
    transform: translateX(0);
}

.corp-map {
    position: sticky;
    top: 110px;
    margin: 0;
}

.corp-map__frame {
    position: relative;
    aspect-ratio: 650 / 450;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--color-dark);
}

.corp-map__img,
.corp-map__pins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.corp-map__img {
    object-fit: cover;
    filter: grayscale(1) sepia(0.25) brightness(0.92);
}

.corp-map__pin {
    cursor: pointer;
}

.corp-map__halo {
    fill: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.corp-map__dot {
    fill: var(--color-dark-mid);
    stroke: var(--color-accent-gold);
    stroke-width: 2;
    transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.corp-map__num {
    fill: #fff;
    font-family: var(--font-demi);
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}

.corp-map__pin.is-active .corp-map__halo,
.corp-map__pin:hover .corp-map__halo,
.corp-map__pin:focus-visible .corp-map__halo {
    opacity: 0.35;
}

.corp-map__pin.is-active .corp-map__dot,
.corp-map__pin:hover .corp-map__dot,
.corp-map__pin:focus-visible .corp-map__dot {
    fill: var(--color-accent);
    stroke: #fff;
}

.corp-map__caption {
    margin-top: 12px;
    font-family: var(--font-book);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* Advantage cards */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.adv-card {
    background: #fff;
    padding: 34px 30px 38px;
}

.adv-card__num {
    /* Тонкие цифры — как номера этажей на стелах квартала (Futura Light) */
    font-family: var(--font-light);
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-accent-warm);
    margin-bottom: 20px;
}

.adv-card__title {
    font-family: var(--font-demi);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.adv-card__text {
    font-family: var(--font-book);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-caption);
}

/* Плитка-переход в каталог на месте пустой ячейки сетки преимуществ */
.adv-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    background: var(--color-dark);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.adv-card--cta:hover {
    background: var(--color-accent-dark);
}

.adv-card--cta .adv-card__title {
    margin: 0;
    color: #fff;
}

.adv-card--cta .adv-card__text {
    color: rgba(255, 255, 255, 0.7);
}

.adv-card__more {
    font-family: var(--font-demi);
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
}

/* Resident tile */
.resi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.resi-tile {
    background: #fff;
    border: 1px solid var(--color-bg-card);
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-family: var(--font-demi);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-body);
    text-align: center;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.resi-tile span {
    transition: color var(--transition-fast);
}

/* Наведение: плитка чуть приподнимается, акцентная рамка и мягкая тень;
   логотип остаётся в своих цветах и подрастает, снизу выплывает название */
.resi-tile {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
        border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.resi-tile--logo img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s var(--ease-out);
}

.resi-tile__name {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 9px;
    font-family: var(--font-medium);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.resi-tile:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .resi-tile:hover {
        transform: translateY(-4px);
        border-color: var(--color-accent-warm);
        box-shadow: 0 14px 28px -12px rgba(35, 25, 16, 0.28);
    }

    .resi-tile:not(.resi-tile--more):hover,
    .resi-tile:not(.resi-tile--more):hover span {
        color: var(--color-accent-warm);
    }

    .resi-tile--logo:hover img {
        transform: translateY(-8px) scale(1.04);
    }

    .resi-tile--logo:hover .resi-tile__name {
        opacity: 1;
        transform: none;
    }
}

.resi-tile--logo:focus-visible .resi-tile__name {
    opacity: 1;
    transform: none;
}

.resi-tile--dark {
    background: var(--color-dark-mid);
    border-color: var(--color-dark-mid);
}

.resi-tile--more {
    flex-direction: column;
    gap: 4px;
}

.resi-tile--more .resi-tile__count {
    font-size: 22px;
    color: var(--color-accent-gold);
}

.resi-tile--more .resi-tile__label {
    font-family: var(--font-light);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

@media (hover: hover) and (pointer: fine) {
    .resi-tile--more:hover {
        background: var(--color-dark);
        border-color: var(--color-accent-gold);
    }

    .resi-tile--more:hover .resi-tile__label {
        color: #fff;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 16px;
}

.gallery-grid .gallery-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-card);
    cursor: pointer;
    transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover {
    transform: scale(0.97);
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 19, 11, 0.45);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-family: var(--font-demi);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item--has-overlay .gallery-item__overlay {
    opacity: 1;
}

.pcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.building-about {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 48px;
    align-items: start;
}

.building-about__text .section-head__title {
    margin-bottom: 0;
}

.mini-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mini-gallery--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 0;
}

.mini-gallery--album {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.mini-gallery__item {
    display: block;
    width: 64px;
    height: 48px;
    overflow: hidden;
    background: var(--color-bg-card);
    flex: 0 0 auto;
}

.mini-gallery--grid .mini-gallery__item {
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
}

.mini-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease-out);
}

.mini-gallery__item:hover img {
    transform: scale(1.06);
}

.mini-gallery__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 48px;
    padding: 0 10px;
    background: var(--color-bg-card);
    font-family: var(--font-demi);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* News / event cards */
.news-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card,
.ecard {
    background: #fff;
    transition: transform var(--transition);
}

.news-card:hover,
.ecard:hover {
    transform: translateY(-6px);
}

.news-card__img-wrap,
.ecard__img-wrap {
    height: 200px;
    overflow: hidden;
}

.news-card__img,
.ecard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body,
.ecard__body {
    padding: 24px 26px 28px;
}

.news-card__meta,
.ecard__meta {
    font-family: var(--font-medium);
    font-size: 12px;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-card__badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.news-card__date {
    color: var(--color-text-caption);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-book);
    font-size: 13px;
}

.news-card__title,
.ecard__title {
    font-family: var(--font-demi);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.ecard--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    background: var(--color-dark-mid);
    color: #fff;
}

.ecard--featured .ecard__meta {
    color: rgba(255, 255, 255, 0.55);
}

.ecard--featured .ecard__img-wrap {
    height: 100%;
    min-height: 320px;
}

.ecard--featured .ecard__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ecard--featured .ecard__title {
    font-size: 32px;
    margin-bottom: 16px;
    color: #fff;
}

.ecard--featured .ecard__text {
    font-family: var(--font-book);
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Лента публикаций: карточки одной высоты, обложка 3:2 */
.events-grid .ecard {
    display: flex;
    flex-direction: column;
}

.ecard[hidden] {
    display: none;
}

.ecard__img-wrap {
    display: block;
    height: auto;
    aspect-ratio: 3 / 2;
    background: var(--color-dark-mid);
}

.ecard__img-wrap--placeholder {
    display: flex;
    align-items: flex-end;
    padding: 24px 26px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0 60px, transparent 61px),
        linear-gradient(135deg, var(--color-dark-mid) 0%, var(--color-accent) 160%);
}

.ecard__placeholder-label {
    font-family: var(--font-demi);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.events-grid .ecard__body {
    flex: 1;
}

.ecard__dot {
    opacity: 0.5;
}

.ecard__meta time {
    color: var(--color-text-caption);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-book);
    font-size: 13px;
}

.ecard__title a:hover {
    color: var(--color-accent);
}

.ecard__excerpt {
    margin-top: 12px;
    font-family: var(--font-book);
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecard--featured .ecard__img-wrap {
    aspect-ratio: auto;
}

.ecard--featured .ecard__img-wrap--placeholder {
    padding: 40px;
}

.ecard--featured .ecard__meta time {
    color: rgba(255, 255, 255, 0.55);
}

.ecard--featured .ecard__title a:hover {
    color: #fff;
    opacity: 0.85;
}

.ecard__more {
    margin-top: 24px;
    font-family: var(--font-medium);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.events-more {
    margin-top: 40px;
    text-align: center;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.team-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--color-border-light);
}

.team-card__name {
    font-family: var(--font-demi);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.team-card__role {
    font-family: var(--font-medium);
    font-size: 13px;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.team-card__contact {
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-body);
    margin-bottom: 4px;
}

/* Tenant card */
.tcard {
    background: #fff;
    padding: 28px 26px;
    border: 1px solid var(--color-border-light);
    transition: border-color var(--transition-fast), transform var(--transition);
}

.tcard:hover {
    border-color: var(--color-accent-warm);
    transform: translateY(-4px);
}

.tcard__logo {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: #fff;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    font-family: var(--font-demi);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent-warm);
    letter-spacing: 0.04em;
}

.tcard__meta--phone {
    color: var(--color-text);
    font-family: var(--font-medium);
}

.tcard__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tcard--clickable {
    cursor: pointer;
}

.tcard__contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 18px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.tcard__contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-book);
    font-size: 13px;
    color: var(--color-text-body);
}

.tcard__contact-label {
    width: 48px;
    flex-shrink: 0;
    font-family: var(--font-light);
    font-size: 11px;
    color: var(--color-text-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tcard__contact-row a {
    color: var(--color-accent-warm);
    text-decoration: none;
    font-family: var(--font-demi);
    font-weight: 700;
}

.tcard__link {
    font-family: var(--font-demi);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent-warm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-hero--residents .page-hero__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.residents-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(320px, 100%);
    background: #fff;
    border: 1px solid var(--color-border-light);
    padding: 14px 20px;
}

.residents-search__icon {
    color: var(--color-text-caption);
}

.residents-search__input {
    border: 0;
    width: 100%;
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text);
    background: transparent;
    outline: none;
}

.resident-modal[hidden] {
    display: none;
}

.resident-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.resident-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 8, 5, 0.55);
}

.resident-modal__panel {
    position: relative;
    width: min(520px, 100%);
    background: #fff;
    box-shadow: 0 20px 50px rgba(35, 25, 16, 0.14);
}

.resident-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 30px;
    border-bottom: 1px solid var(--color-border-light);
}

.resident-modal__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.resident-modal__logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    font-family: var(--font-demi);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent-warm);
    overflow: hidden;
}

.resident-modal__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resident-modal__title {
    font-family: var(--font-demi);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.resident-modal__subtitle {
    font-family: var(--font-book);
    font-size: 13px;
    color: var(--color-text-caption);
    margin-top: 4px;
}

.resident-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-caption);
    cursor: pointer;
}

.resident-modal__body {
    padding: 26px 30px 30px;
}

.resident-modal__text {
    font-family: var(--font-book);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-body);
    margin-bottom: 18px;
}

.resident-modal__rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resident-modal__row {
    display: flex;
    gap: 16px;
}

.resident-modal__label {
    width: 90px;
    flex-shrink: 0;
    font-family: var(--font-light);
    font-size: 12px;
    color: var(--color-text-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resident-modal__value {
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text);
}

.resident-modal__value--link,
.resident-modal__row a.resident-modal__value {
    color: var(--color-accent-warm);
    font-family: var(--font-demi);
    font-weight: 700;
    text-decoration: none;
}

body.is-resident-modal-open {
    overflow: hidden;
}

/* <picture> из tplPicture() не должен ломать сетки, рассчитанные на прямой <img> */
.picture {
    display: contents;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tcard__name {
    font-family: var(--font-demi);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.tcard__cat {
    font-family: var(--font-medium);
    font-size: 12px;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tcard__meta {
    font-family: var(--font-book);
    font-size: 14px;
    color: var(--color-text-caption);
    margin-bottom: 4px;
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.chip {
    padding: 10px 18px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-family: var(--font-medium);
    font-size: 14px;
    color: var(--color-text-mid);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.chip:hover,
.chip.is-active {
    background: var(--color-accent-warm);
    border-color: var(--color-accent-warm);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination__item {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    font-family: var(--font-demi);
    font-size: 15px;
    color: var(--color-text-mid);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.pagination__item:hover,
.pagination__item.is-active {
    background: var(--color-accent-warm);
    border-color: var(--color-accent-warm);
    color: #fff;
}

/* Numbers strip */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.numbers-grid--dark {
    background: var(--color-dark-mid);
    padding: 80px var(--container-pad);
}

.number-card__val {
    font-family: var(--font-demi);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-accent-warm);
    line-height: 1;
}

.numbers-grid--dark .number-card__val {
    color: var(--color-accent-gold);
}

.number-card__label {
    font-family: var(--font-book);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-body);
    margin-top: 12px;
}

.numbers-grid--dark .number-card__label {
    color: rgba(255, 255, 255, 0.6);
}

/* Stat cards (objects infrastructure) */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card__val {
    font-family: var(--font-demi);
    font-size: 44px;
    font-weight: 700;
    color: var(--color-accent-warm);
    margin-bottom: 14px;
}

.stat-card__title {
    font-family: var(--font-demi);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.stat-card__text {
    font-family: var(--font-book);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-caption);
}

/* Summary tile */
.summary-tile {
    background: var(--color-dark-mid);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.summary-tile__val {
    font-family: var(--font-demi);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-accent-gold);
    line-height: 1;
}

.summary-tile__text {
    font-family: var(--font-book);
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.summary-tile__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-family: var(--font-demi);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.summary-tile__link span {
    color: var(--color-accent-gold);
}

/* Building detail */
.breadcrumb {
    padding-block: 24px;
}

.breadcrumb a {
    font-family: var(--font-medium);
    font-size: 14px;
    color: var(--color-accent-warm);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-accent-dark);
}

.building-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--color-dark-mid);
}

.building-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.building-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 16, 8, 0.75), transparent 50%);
}

.building-hero__content {
    position: absolute;
    left: var(--container-pad);
    right: var(--container-pad);
    bottom: 40px;
}

.building-hero__badges {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.building-hero__title {
    font-family: var(--font-demi);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #fff;
}

.building-hero__sub {
    font-family: var(--font-book);
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.spec-item {
    background: var(--color-bg-alt);
    padding: 20px 24px;
}

.spec-item__label {
    font-family: var(--font-light);
    font-size: 11px;
    color: var(--color-text-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.spec-item__value {
    font-family: var(--font-demi);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

/* Условия аренды: значения текстовые («Не включены», «Прямая аренда») */
.spec-grid--wide {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
}

.spec-grid--wide .spec-item__value {
    font-size: 17px;
}

.section--alt .spec-item {
    background: var(--color-bg-card);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-top: 24px;
}

.feature-list li {
    font-family: var(--font-book);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-body);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent-warm);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.tech-table th,
.tech-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    font-family: var(--font-book);
    font-size: 15px;
    vertical-align: top;
}

.tech-table th {
    width: 35%;
    color: var(--color-text-caption);
    font-family: var(--font-medium);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Catalog layout — только на .container.catalog, не на section */
.container.catalog {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    max-width: 1440px;
}

.catalog__filters {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: #fff;
    padding: 28px 24px;
    border: 1px solid var(--color-border-light);
}

.catalog__filter-title {
    font-family: var(--font-demi);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border-light);
}

.catalog__filter-subtitle {
    font-family: var(--font-demi);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-body);
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent-warm);
}

.area-range {
    position: relative;
    height: 28px;
    margin-bottom: 8px;
}

.area-range::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: var(--color-border-light);
}

.area-range__input {
    position: absolute;
    left: 0;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.area-range__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-warm);
    background: #fff;
    pointer-events: auto;
    cursor: pointer;
}

.area-range__labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-book);
    font-size: 14px;
    color: var(--color-text-caption);
    margin-bottom: 8px;
}

.catalog__sort select {
    border: 1px solid var(--color-border-light);
    background: #fff;
    padding: 11px 18px;
    font-family: var(--font-medium);
    font-size: 14px;
    color: var(--color-text-mid);
    cursor: pointer;
}

.catalog__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog__count {
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-caption);
}

.catalog__sort {
    font-family: var(--font-medium);
    font-size: 14px;
    color: var(--color-text-mid);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.contacts-cta {
    position: relative;
    overflow: hidden;
    padding-block: 80px;
}

.contacts-cta__inner {
    position: relative;
    z-index: 2;
}

.contacts-cta__title {
    font-family: var(--font-demi);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.08;
}

.contacts-cta__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: stretch;
}

.contacts-cta__map {
    min-width: 0;
    height: 100%;
}

.contacts-cta__map .map-block--live,
.contacts-cta__map .map-block--embed {
    width: 100%;
    height: 100%;
    min-height: var(--map-height, 520px);
}

.contacts-cta__map .kp-map-frame {
    width: 100%;
    height: 100%;
    min-height: var(--map-height, 520px);
}

.contacts-cta__panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.contacts-cta__panel .form-block {
    flex: 1;
}

.contacts-cta__info {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
}

.contacts-cta__info-line {
    margin: 0 0 8px;
}

.contacts-cta__info-line strong {
    color: #fff;
}

.contacts-cta__info-line--muted {
    margin-top: 8px;
}

.map-block--live {
    height: var(--map-height, 400px);
}

.map-block--embed {
    margin-bottom: 0;
    width: 100%;
    max-width: none;
}

.kp-map {
    width: 100%;
    height: 100%;
    min-height: var(--map-height, 400px);
}

.kp-map-popup {
    font-size: 14px;
    line-height: 1.4;
}

.kp-map-popup strong {
    display: block;
    margin-bottom: 4px;
}

.map-block__route-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text, #231910);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background var(--transition), color var(--transition);
}

.map-block__route-btn:hover {
    background: var(--color-accent-gold, #c9a227);
    color: #fff;
}

.map-block__route-link {
    pointer-events: auto;
    color: var(--color-accent-gold);
    text-decoration: none;
}

.map-block__route-link:hover {
    text-decoration: underline;
}

.map-block__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(35, 25, 16, 0.75));
    pointer-events: none;
}

.map-block__caption .map-block__title {
    font-size: 18px;
}

.map-block__hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* Map placeholder */
.map-block__static-link {
    display: block;
    border-radius: 0;
    overflow: hidden;
}

.map-block__static-img {
    display: block;
    width: 100%;
    height: var(--map-height, 400px);
    object-fit: cover;
}

.map-block__sub span {
    color: var(--color-accent-gold);
}

a.news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
}

body.is-lightbox-open {
    overflow: hidden;
}

a.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(35, 25, 16, 0.08);
}

a.gallery-grid {
    display: grid;
    text-decoration: none;
    color: inherit;
}

/* Сотрудник: портрет 3:4 слева (лицо не режется кругом), справа имя, должность, контакты.
   Без фото — монограмма в фирменных цветах того же размера */
.team-card--person {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.team-card__photo {
    display: block;
    width: 96px;
    height: 128px;
    object-fit: cover;
    object-position: 50% 18%;
    background: var(--color-bg-card);
}

.team-card__photo--mono {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-mid);
    color: var(--color-accent-gold);
    font-family: var(--font-demi);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.team-card--person .team-card__name {
    font-size: 20px;
    line-height: 1.25;
}

.team-card--person .team-card__role {
    margin-bottom: 12px;
}

.team-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .team-grid--home {
        grid-template-columns: 1fr;
    }

    .team-card--person {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .team-card__photo {
        width: 80px;
        height: 106px;
    }

    .team-card__photo--mono {
        font-size: 24px;
    }
}

.map-block {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--color-dark-mid);
}

.map-block__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.map-block__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.map-block__title {
    font-family: var(--font-demi);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.map-block__sub {
    font-family: var(--font-book);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Contacts layout */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contacts-info__item {
    margin-bottom: 24px;
}

.contacts-info__label {
    font-family: var(--font-medium);
    font-size: 12px;
    color: var(--color-text-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contacts-info__value {
    font-family: var(--font-book);
    font-size: 17px;
    color: var(--color-text);
}

.contacts-info__value a {
    color: inherit;
    text-decoration: none;
}

.contacts-info__value a:hover {
    color: var(--color-accent-warm);
}

/* CTA block */
.cta-block {
    background: var(--color-bg-alt);
    padding: 64px;
    text-align: center;
}

.cta-block__title {
    font-family: var(--font-demi);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.cta-block__text {
    font-family: var(--font-book);
    font-size: 18px;
    color: var(--color-text-body);
    margin-bottom: 28px;
}

.cta-block__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Section backgrounds */
.section--alt {
    background: #EBE3D2;
}

.section-label--gold .section-label__line {
    background: var(--color-accent-gold);
}

.section-label--gold .section-label__text {
    color: var(--color-accent-gold);
}

.section-head__title--light {
    color: #fff;
}

.section-head__link--gold {
    color: var(--color-accent-gold);
}

.section-head__row--on-dark {
    margin-bottom: 48px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* About block */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section__inner {
    position: relative;
}

.about-wheel {
    position: absolute;
    right: -60px;
    top: 40px;
    opacity: 0.06;
    animation: about-wheel-spin 90s linear infinite;
    pointer-events: none;
}

@keyframes about-wheel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.about-section__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.about-section__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-section__p {
    font-family: var(--font-book);
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-text-body);
}

.about-section__p--lead {
    color: var(--color-text-mid);
}

.section--dark {
    background: var(--color-dark-mid);
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .adv-grid,
    .stat-cards,
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid,
    .news-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .building-about {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .resi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .corp-explorer--with-map {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .corp-map {
        position: static;
    }

    .corp-map__caption {
        display: none;
    }

    .about-section__grid {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
    }

    .spec-grid--wide {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wheel {
        display: none;
    }

    .container.catalog {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog__filters {
        position: static;
    }

    .ecard--featured {
        grid-template-columns: 1fr;
    }

    .contacts-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacts-cta__layout {
        grid-template-columns: 1fr;
    }

    .contacts-cta__map .map-block--live,
    .contacts-cta__map .kp-map-frame {
        min-height: 360px;
    }

    .corp-row {
        grid-template-columns: 80px 1fr;
    }

    .corp-row__meta,
    .corp-row__go {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item--wide,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .adv-grid,
    .cards-grid,
    .pcard-grid,
    .news-grid,
    .events-grid,
    .team-grid,
    .stat-cards,
    .numbers-grid,
    .spec-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .resi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-block {
        padding: 40px 24px;
    }
}

.legal__body {
    max-width: 720px;
    margin-top: 32px;
    color: var(--color-text-muted, #555);
    line-height: 1.65;
}

.legal__body h2 {
    margin: 28px 0 12px;
    font-size: 1.125rem;
    color: var(--color-text, #1a1a1a);
}

.legal__body ul {
    margin: 0 0 16px 1.2em;
}

.legal__body h3 {
    margin: 20px 0 8px;
    font-size: 1rem;
    color: var(--color-text, #1a1a1a);
}

.legal__body p {
    margin: 0 0 12px;
}

.legal__body a {
    color: var(--color-accent-warm);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* Цель обработки в политике ПДн: данные, основание, срок */
.legal__purpose {
    margin: 0 0 16px;
    padding: 16px 20px;
    border-left: 3px solid var(--color-border);
    background: var(--color-bg-alt);
}

.legal__purpose dt {
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.legal__purpose dd {
    margin: 0 0 8px;
}

.legal__purpose dd:last-child {
    margin-bottom: 0;
}

/* Cookie-баннер (152-ФЗ): Метрика загружается только после «Принять» */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 22px;
    background: var(--color-dark);
    color: var(--color-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-banner__btn {
    padding: 10px 18px;
    border: 1px solid var(--color-accent-gold);
    background: transparent;
    color: var(--color-bg);
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.cookie-banner__btn--accept {
    background: var(--color-accent-gold);
    color: var(--color-dark);
}

@media (max-width: 720px) {
    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cookie-banner__btn {
        flex: 1;
        white-space: normal;
    }
}

.site-footer__legal button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 8, 5, 0.94);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__img {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    user-select: none;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 28px;
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-medium);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
}

/* ── Sprint 7.1: замена inline-стилей ──────────────────────────── */

/* Кнопка на всю ширину колонки (фильтр каталога) */
.btn--block { width: 100%; }
.btn--block-mb { width: 100%; margin-bottom: 10px; }

/* CTA-блок — центрирование */
.cta-block--center { text-align: center; }
.cta-block__desc { margin: 16px 0 24px; color: var(--color-text-caption); }

/* about/numbers: сетка показателей */
.numbers-grid__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* about/story: двухколоночный блок */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.story-grid__media { min-width: 0; }
.story-grid__img { display: block; width: 100%; height: 360px; object-fit: cover; }
.story-grid__text { display: flex; flex-direction: column; gap: 20px; }
.story-grid__para { font-size: 18px; line-height: 1.7; }

/* residents/grid: плитка «ещё N» */
.resi-tile--more {
    background: var(--color-dark-mid);
    min-height: 180px;
}

/* residents/grid: карточка «Дом» (featured) */
.team-card--narrow { max-width: 640px; }

/* Условия аренды на деталке корпуса */
.cards-grid--conditions {
    grid-template-columns: repeat(3, 1fr);
}
.cards-grid--conditions .adv-card__title {
    font-size: 20px;
}
@media (max-width: 900px) {
    .cards-grid--conditions {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .cards-grid--conditions {
        grid-template-columns: 1fr;
    }
}

/* Гостям / события */
.page-hero__sub {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--color-text-muted, #555);
}
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.catalog__empty {
    margin-top: 24px;
    color: var(--color-text-muted, #555);
}
/* Публикация: широкая обложка и заголовок, текст — удобной для чтения колонкой */
.event-detail__inner {
    max-width: 1060px;
}
.event-detail__title {
    max-width: 900px;
}
.legal__body.event-detail__body {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
}
.event-detail__body p {
    margin-bottom: 1em;
}
.event-detail__body h2 {
    margin: 40px 0 14px;
    font-family: var(--font-demi);
    font-size: 26px;
    line-height: 1.25;
    color: var(--color-text);
}
/* Подзаголовок крупнее текста: был 16px при тексте 17px и терялся */
.event-detail__body h3 {
    margin: 32px 0 12px;
    font-family: var(--font-demi);
    font-size: 20px;
    line-height: 1.3;
}
.event-detail__body h2 + h3 {
    margin-top: 16px;
}
/* Маркеры списков сброшены глобально — в тексте статьи возвращаем точки и цифры */
.event-detail__body ul,
.event-detail__body ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}
.event-detail__body ul {
    list-style: disc;
}
.event-detail__body ol {
    list-style: decimal;
}
.event-detail__body li {
    margin-bottom: 6px;
    padding-left: 4px;
}
.event-detail__body li::marker {
    color: var(--color-accent);
}
.event-detail__body strong {
    font-family: var(--font-demi);
    font-weight: normal;
}
@media (max-width: 600px) {
    /* Длинные названия статей: при 42px заголовок занимал 7 строк */
    .event-detail__title {
        font-size: 28px;
        line-height: 1.15;
    }
    .legal__body.event-detail__body {
        font-size: 16px;
        line-height: 1.65;
    }
    .event-detail__body h2 {
        margin-top: 32px;
        font-size: 22px;
    }
    .event-detail__body h3 {
        font-size: 18px;
    }
}
.event-detail__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.event-detail__title {
    margin-bottom: 24px;
}
.event-detail__cover {
    margin: 0 0 28px;
    border-radius: 8px;
    overflow: hidden;
}
.event-detail__cover img {
    width: 100%;
    height: auto;
    display: block;
}
.event-detail__back {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* Мобильный каталог площадей: сворачиваемые фильтры */
@media (max-width: 900px) {
    .catalog__filters {
        border: 1px solid var(--color-border, #e5e0d8);
        border-radius: 12px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }
    .catalog__filters .filter-group {
        display: none;
    }
    .catalog__filters.is-open .filter-group {
        display: block;
    }
    /* Свёрнуто — только кнопка «Фильтры (N)», без «Применить/Сбросить» */
    .catalog__filters .catalog__filter-actions {
        display: none;
    }
    .catalog__filters.is-open .catalog__filter-actions {
        display: flex;
    }
    .catalog__filters:not(.is-open) .catalog__filter-title {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }
    .catalog__filter-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .catalog__filter-title::after {
        content: '▾';
        font-size: 14px;
        opacity: .6;
    }
}

/* Каталог: кнопка-заголовок фильтров, действия, быстрые категории */
.catalog__filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    text-align: left;
    cursor: default;
}

.catalog__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
}

.catalog__filter-count[hidden] {
    display: none;
}

.catalog__filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog__filter-actions .btn {
    width: 100%;
}

.catalog__quick {
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .catalog__filter-title {
        cursor: pointer;
    }
    .catalog__filter-title::after {
        margin-left: auto;
    }
    .catalog__quick {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .catalog__quick .chip {
        flex: 0 0 auto;
    }
}

/* Карточка помещения: первый экран «предложение аренды» */
.space-offer {
    padding: 24px 0 64px;
}

.space-offer__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: start;
}

.space-offer__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-card);
    overflow: hidden;
}

.space-offer__media img,
.space-offer__media picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-offer__badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.space-offer__photos {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 14px;
    background: rgba(28, 19, 11, 0.75);
    color: #fff;
    font-family: var(--font-medium);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.space-offer__title {
    font-family: var(--font-demi);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1;
    color: var(--color-text);
    margin: 12px 0 8px;
}

.space-offer__address {
    font-family: var(--font-book);
    font-size: 17px;
    color: var(--color-text-body);
}

.space-offer__price {
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.space-offer__price-main {
    font-family: var(--font-demi);
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.1;
    color: var(--color-accent-warm);
}

.space-offer__price-rate {
    margin-top: 6px;
    font-family: var(--font-medium);
    font-size: 16px;
    color: var(--color-text-mid);
}

.space-offer__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    margin: 0 0 28px;
}

.space-offer__fact dt {
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}

.space-offer__fact dd {
    margin: 4px 0 0;
    font-family: var(--font-demi);
    font-size: 20px;
    color: var(--color-text);
}

.space-offer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Характеристики и условия — два столбца «подпись — значение» */
.space-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.space-specs__title {
    font-family: var(--font-demi);
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.space-specs__list {
    margin: 0;
}

.space-specs__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
}

.space-specs__row dt {
    font-family: var(--font-book);
    color: var(--color-text-body);
}

.space-specs__row dd {
    margin: 0;
    font-family: var(--font-medium);
    color: var(--color-text);
    text-align: right;
}





@media (max-width: 900px) {
    .space-offer {
        padding: 8px 0 40px;
    }
    .space-offer__grid,
    .space-specs {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .space-offer__actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
    section.catalog {
        padding-top: 16px;
    }
}

/* «Гостям»: поиск, подборки заведений, как добраться */
.guests-search {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.guests-search__input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-family: var(--font-book);
    font-size: 16px;
    color: var(--color-text);
}

.guests-visit__group + .guests-visit__group {
    margin-top: 48px;
}

.guests-visit__title {
    font-family: var(--font-demi);
    font-size: 26px;
    color: var(--color-text);
}

.guests-visit__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.guests-visit__item a {
    display: block;
    height: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    transition: border-color var(--transition);
}

.guests-visit__item a:hover {
    border-color: var(--color-accent);
}

.guests-visit__name {
    display: block;
    font-family: var(--font-demi);
    font-size: 17px;
    color: var(--color-text);
}

.guests-visit__meta {
    display: block;
    margin-top: 4px;
    font-family: var(--font-book);
    font-size: 14px;
    color: var(--color-text-caption);
}

.guests-route {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.guests-route__address {
    margin-top: 16px;
    font-family: var(--font-medium);
    font-size: 18px;
    color: var(--color-text);
}

.guests-route__hours,
.guests-route__note {
    margin-top: 8px;
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-body);
}

.guests-route__actions {
    margin-top: 24px;
}

.guests-route__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guests-route__list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-book);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-body);
}

.guests-route__list strong {
    display: block;
    font-family: var(--font-demi);
    color: var(--color-text);
}

@media (max-width: 900px) {
    .guests-visit__list {
        grid-template-columns: 1fr;
    }
    .guests-route {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .guests-search {
        margin-bottom: 32px;
    }
}

/* Главная: быстрый подбор помещения */
.space-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 40px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border-light);
}

.space-picker__field span {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}

.space-picker__field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-book);
    font-size: 16px;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .space-picker {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .guests-search {
        flex-direction: column;
    }
}

/* Телефон: внутренние поля карточек и форм — под узкий экран (контейнер уже 16px) */
@media (max-width: 767px) {
    .pcard__body,
    .news-card__body,
    .ecard__body {
        padding: 20px 18px 22px;
    }

    .adv-card {
        padding: 24px 20px 26px;
    }

    .team-card {
        padding: 22px 20px;
    }

}

@media (max-width: 1024px) {
    .numbers-grid__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .numbers-grid__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
}

/* Телефон: вертикальный ритм плотнее — заголовок секции ближе к содержимому,
   меньше воздуха между строками списков, панелями и формами */
@media (max-width: 767px) {
    .section-head {
        margin-bottom: 24px;
    }

    .section-head__row {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .chips {
        margin-bottom: 20px;
    }

    .corp-list,
    .contacts-cta {
        padding-block: var(--gap-2xl);
    }

    .corp-row {
        padding: 18px 0;
    }

    .about-section__grid,
    .contacts-cta__layout,
    .story-grid {
        gap: 24px;
    }

    .contacts-cta__panel {
        gap: 18px;
    }

    .space-picker {
        margin-bottom: 24px;
    }

    .numbers-grid--dark {
        padding-block: var(--gap-2xl);
    }
}

/* ---------- Карточка помещения: статус, ставка, связь, планировки ---------- */

.badge--soon {
    background: var(--color-dark-mid);
    color: var(--color-accent-gold);
}

/* Ссылки «Все фото · N» и «Планировка» — в одну строку в углу фото */
.space-offer__media-links {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

.space-offer__media-links .space-offer__photos {
    position: static;
}

/* Что входит в ставку: зелёная галочка — в ставке, тире — оплачивается отдельно */
.space-offer__includes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--color-text-body);
}

.space-offer__includes li::before {
    content: "—";
    margin-right: 6px;
    color: var(--color-text-caption);
}

.space-offer__includes li.is-in::before {
    content: "✓";
    color: var(--color-status-free);
}

.space-offer__available {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-accent-warm);
}

/* Мессенджеры отдела аренды и презентация */
.space-offer__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
}

.space-offer__contact-label {
    color: var(--color-text-caption);
}

.msg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.msg-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.msg-link--wa::before { background: #25D366; }
.msg-link--tg::before { background: #2AABEE; }
.msg-link--max::before { background: #7B5CFF; }

.msg-link:hover {
    border-color: var(--color-accent-warm);
    color: var(--color-accent-warm);
}

.space-offer__deck {
    margin-left: auto;
    color: var(--color-accent-warm);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Планировки */
.space-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.space-plans__item {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border-light);
}

.space-plans__item img {
    display: block;
    width: 100%;
    height: auto;
}

.space-plans__file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
    text-decoration: none;
}

.space-plans__file::before {
    content: "PDF";
    padding: 4px 6px;
    background: var(--color-accent-warm);
    color: #fff;
    font-family: var(--font-demi);
    font-size: 11px;
}

/* Выбор дня и времени просмотра (initVisitPicker) */
.visit-picker {
    margin: 0;
    padding: 0;
    border: 0;
}

.visit-picker legend {
    margin-bottom: 10px;
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}

.visit-picker__days,
.visit-picker__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.visit-picker__slots {
    margin-top: 10px;
}

.visit-chip {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.visit-chip small {
    display: block;
    font-size: 11px;
    color: var(--color-text-caption);
}

.visit-chip:hover {
    border-color: var(--color-accent-warm);
}

.visit-chip[aria-pressed="true"] {
    background: var(--color-accent-warm);
    border-color: var(--color-accent-warm);
    color: #fff;
}

.visit-chip[aria-pressed="true"] small {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 767px) {
    .space-offer__deck {
        margin-left: 0;
        flex-basis: 100%;
    }
}

/* Подписи планировок и список документов */
.space-plans__figure {
    margin: 0;
}

.space-plans__figure figcaption {
    margin-top: 8px;
    font-family: var(--font-medium);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}

.doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.doc-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.doc-list__item::before {
    content: "PDF";
    grid-row: 1 / span 2;
    padding: 6px 7px;
    background: var(--color-accent-warm);
    color: #fff;
    font-family: var(--font-demi);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.doc-list__item:hover {
    border-color: var(--color-accent-warm);
}

.doc-list__name {
    font-family: var(--font-demi);
    font-size: 15px;
    line-height: 1.3;
}

.doc-list__meta {
    font-size: 12px;
    color: var(--color-text-caption);
}

/* ---------- Конференц-зал ---------- */

.venue-hero {
    padding: 8px 0 var(--gap-2xl);
}

.venue-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
}

.venue-hero__lead {
    margin: 16px 0 28px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-body);
}

.venue-hero__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin: 0 0 32px;
}

.venue-hero__specs dt {
    font-family: var(--font-demi);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-accent-warm);
}

.venue-hero__specs dd {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--color-text-caption);
}

.venue-hero__media {
    position: relative;
    display: block;
}

.venue-hero__media img {
    display: block;
    width: 100%;
    height: auto;
}

.venue-hero__note {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    background: rgba(28, 19, 11, 0.7);
    color: #fff;
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.venue-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.venue-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.venue-list li {
    position: relative;
    padding: 12px 0 12px 26px;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
}

.venue-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 12px;
    height: 2px;
    background: var(--color-accent);
}

.venue-teaser {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    background: var(--color-dark-mid);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.venue-teaser__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.venue-teaser:hover .venue-teaser__media img {
    transform: scale(1.03);
}

.venue-teaser__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 40px;
}

.venue-teaser__title {
    font-family: var(--font-demi);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.venue-teaser__text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.venue-teaser__more {
    font-family: var(--font-medium);
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--color-accent-gold);
}

@media (max-width: 899px) {
    .venue-hero__grid,
    .venue-info,
    .venue-teaser {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .venue-hero__media {
        order: -1;
    }

    .venue-teaser__body {
        padding: 24px 20px;
    }

    .venue-teaser__title {
        font-size: 24px;
    }
}

/* Видео в публикации: превью-ссылка на площадку (без iframe) */
.video-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    max-width: 860px;
    margin: 0 0 32px;
    overflow: hidden;
    background: var(--color-dark-mid);
    color: #fff;
    text-decoration: none;
}

.video-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out);
}

.video-card:hover .video-card__img {
    opacity: 0.65;
    transform: scale(1.02);
}

.video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: var(--color-accent-warm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.video-card__play::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 24px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #fff;
}

.video-card__label {
    position: absolute;
    left: 20px;
    bottom: 16px;
    font-family: var(--font-medium);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Реквизиты на странице контактов — свёрнутый список */




.requisites__list {
    max-width: 860px;
}

/* Номер корсчёта (20 цифр без пробелов) не помещался в колонку на 320 px */
.requisites__list dd {
    overflow-wrap: anywhere;
}

/* ---------- История места ---------- */

.history__item {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
}

.history__item:first-child {
    padding-top: 0;
}

.history__item--flip .history__figure {
    order: 2;
}

.history__figure {
    margin: 0;
}

.history__figure a {
    display: block;
    background: var(--color-bg-card);
}

.history__figure img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    filter: sepia(0.15);
}

.history__figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
    color: var(--color-text-caption);
}

.history__title {
    margin-bottom: 14px;
    font-family: var(--font-demi);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.history__text p {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-body);
}

@media (max-width: 899px) {
    .history__item {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }

    .history__item--flip .history__figure {
        order: 0;
    }

    .history__title {
        font-size: 22px;
    }
}

.history-teaser {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.history-teaser__item {
    display: block;
    color: var(--color-text-caption);
    text-decoration: none;
}

.history-teaser__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: sepia(0.2);
    transition: filter 0.4s var(--ease-out);
}

.history-teaser__item:hover img {
    filter: none;
}

.history-teaser__item span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 767px) {
    .history-teaser {
        grid-template-columns: 1fr;
    }
}

/* SEO-подборки помещений */
.landing-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.landing-nav .chip {
    text-decoration: none;
}

.landing-text {
    max-width: 900px;
}

.landing-text p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-body);
}

/* Ставки на посадочных: на телефоне таблица листается внутри своей рамки, страница не уезжает */
.rate-table__wrap {
    overflow-x: auto;
}

.rate-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 16px;
}

.rate-table th {
    padding: 10px 12px;
    border-bottom: 2px solid var(--color-border);
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    color: var(--color-text-caption);
}

.rate-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.rate-table a {
    color: var(--color-accent-warm);
    text-decoration: underline;
}

/* Частые вопросы (разметка FAQPage) */
.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__q {
    padding: 18px 32px 18px 0;
    position: relative;
    font-family: var(--font-demi);
    font-size: 18px;
    color: var(--color-text);
    list-style: none;
    cursor: pointer;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 14px;
    font-size: 24px;
    color: var(--color-accent-warm);
}

.faq__item[open] .faq__q::after {
    content: '−';
}

.landing-text .faq__a {
    margin: 0 0 18px;
}

.team-card__photo--portrait {
    background-repeat: no-repeat;
    background-size: 190% auto;
    background-position: 52% 4%;
}

/* Плотнее вертикальный ритм на ПК: шапка страницы и первая секция с тем же фоном не складывают
   два отступа; заголовок секции ближе к содержимому */
.page-hero {
    padding-block: 56px 36px;
}

.page-hero + .section:not(.section--alt):not(.section--dark),
.page-hero + section.catalog {
    padding-top: 8px;
}

.section-head {
    margin-bottom: 36px;
}

@media (max-width: 767px) {
    .page-hero {
        padding-block: 28px 20px;
    }

    .section-head {
        margin-bottom: 24px;
    }
}

/* Логотипы резидентов: одинаковая плашка на всю ширину карточки, цвет — под логотип
   (LogoTone): свой фон логотипа, тёмная для светлых, тёплая светлая для остальных */
.tcard__logo {
    width: auto;
    height: 112px;
    margin: -28px -26px 20px;
    padding: 20px 24px;
    background: var(--logo-bg, #F4EEE2);
    border-bottom: 1px solid var(--color-border-light);
}

.tcard__logo picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tcard__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 72%;
    max-height: 100%;
    object-fit: contain;
}

.tcard__logo--dark {
    border-bottom-color: transparent;
}

/* Главная, «Наши резиденты»: плитка в цвет плашки логотипа (LogoTone) */
.resi-tile--logo {
    background: var(--logo-bg, #fff);
}

.resi-tile--logo picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.resi-tile--logo img {
    max-width: 78%;
}

.resi-tile--logo-dark .resi-tile__name {
    color: var(--color-accent-gold);
}

/* Выпадающие фильтры резидентов — только на телефоне */
.residents-selects {
    display: none;
}

.residents-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.residents-select span {
    font-family: var(--font-medium);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}

.residents-select select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238C3F28' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--color-text);
    font: inherit;
    font-size: 14px;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    appearance: none;
}

/* ---------- Резиденты на телефоне ----------
   Фильтры — два выпадающих списка (раньше ~20 кнопок занимали весь первый экран),
   карточка — компактная: логотип слева, название и место справа, контакты ниже */
@media (max-width: 767px) {
    [data-residents-chips],
    [data-residents-buildings] {
        display: none;
    }

    .residents-selects {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .tcard {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        padding: 14px;
    }

    .tcard__logo {
        grid-row: 1 / span 3;
        width: 88px;
        height: 88px;
        margin: 0;
        padding: 8px;
        border-bottom: 0;
    }

    .tcard__logo img {
        max-width: 100%;
    }

    .tcard__cat,
    .tcard__name,
    .tcard__meta {
        grid-column: 2;
    }

    .tcard__cat {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .tcard__name {
        margin-bottom: 2px;
        font-size: 17px;
        line-height: 1.25;
    }

    .tcard__meta {
        margin: 0;
    }

    .tcard__contacts {
        grid-column: 1 / -1;
        margin-top: 12px;
        padding-top: 10px;
    }

    /* вся карточка кликабельна — отдельная ссылка «Подробнее» не нужна */
    .tcard__link {
        display: none;
    }
}

/* Отфильтрованные карточки: [hidden] сильнее display: grid мобильной раскладки */
.tcard[hidden] {
    display: none !important;
}

.residents-empty {
    grid-column: 1 / -1;
    padding: 32px 24px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    text-align: center;
}

.residents-empty p {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--color-text-body);
}

.residents-empty[hidden] {
    display: none;
}

/* «+N резидентов» на телефоне — компактной строкой, а не тёмным блоком в пол-экрана */
@media (max-width: 767px) {
    [data-residents-catalog] .resi-tile--more {
        min-height: 0;
        padding: 18px;
    }
}

/* Описание резидента — с абзацами и пунктами списка, как в данных */
.resident-modal__text {
    white-space: pre-line;
}

/* ---------- Альбом «О квартале»: первые 12 фото, остальные — по кнопке (ПК и телефон) ---------- */
.mini-gallery--album:not(.is-expanded) .mini-gallery__item:nth-child(n + 13) {
    display: none;
}

.gallery-expand {
    display: flex;
    margin: 20px auto 0;
}

.mini-gallery--album.is-expanded + .gallery-expand {
    display: none;
}

/* ---------- Телефон: галереи и зоны нажатия ---------- */

@media (max-width: 767px) {
    /* Галереи — по три миниатюры в ряд (раньше по одной: «О квартале» растягивалась на 27 000 px) */
    .mini-gallery--grid,
    .mini-gallery--album {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .gallery-expand {
        width: 100%;
        margin-top: 12px;
    }

    /* Зоны нажатия не меньше 40px */
    .catalog__filter-title {
        min-height: 44px;
        width: 100%;
        text-align: left;
    }

    .pcard__more,
    .space-offer__deck {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .form-checkbox {
        min-height: 40px;
        align-items: flex-start;
    }

    .form-checkbox input {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }
}

/* Каталог помещений на телефоне: без дубля кнопок, быстрые фильтры — переносом, строгие углы */
@media (max-width: 767px) {
    .landing-nav--catalog {
        display: none;
    }

    .catalog__quick {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .catalog__filters {
        border-radius: 0;
    }
}

/* ---------- ПК: правки по проверке 21.10.2026 ---------- */

/* Каталог помещений — по общей ширине контейнера, края совпадают с заголовками выше */
.container.catalog {
    max-width: var(--container-max);
}

/* Главная, «Наши резиденты»: плитка «+N» одной высоты с логотипами */
.resi-grid .resi-tile--more {
    min-height: 0;
}

/* Поэтажные планы корпуса — крупно, по два в ряд (широкие чертежи не мельчат) */
#plans .space-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 899px) {
    #plans .space-plans {
        grid-template-columns: 1fr;
    }
}

/* Планшет: фильтры резидентов тоже списками (27 кнопок занимали 7 строк) */
@media (max-width: 1024px) {
    [data-residents-chips],
    [data-residents-buildings] {
        display: none;
    }

    .residents-selects {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 240px));
        gap: 12px;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .residents-selects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }
}

/* Резиденты: 3 карточки в ряд на ноутбуке/горизонтальном планшете (было 2 — огромные плашки) */
@media (min-width: 900px) and (max-width: 1200px) {
    [data-residents-catalog] .cards-grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* «Открыто сейчас» у резидентов */
.residents-open { margin-top: 16px; }
.residents-open__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font: inherit;
    font-family: var(--font-medium);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
.residents-open__btn:hover { border-color: var(--color-accent); }
.residents-open__btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.residents-open__dot { width: 8px; height: 8px; border-radius: 50%; background: #3E8E5A; box-shadow: 0 0 0 3px rgba(62, 142, 90, .18); }
.residents-open__btn.is-active .residents-open__dot { background: #fff; box-shadow: none; }
.residents-open__count { color: var(--color-text-caption); font-size: 13px; }
.residents-open__count::before { content: '· '; }
.residents-open__btn.is-active .residents-open__count { color: rgba(255, 255, 255, .8); }
.tcard__status {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(35, 25, 16, .07);
    color: var(--color-text-caption);
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
}
.tcard__status.is-open { background: rgba(62, 142, 90, .12); color: #2F6E45; }
.tcard__status[hidden] { display: none; }
@media (max-width: 1024px) {
    .residents-open { margin-top: 12px; }
}

/* Афиша «Ближайшие события» */
.afisha[hidden] { display: none; }
.afisha__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.afisha__chips { margin: 0; }
.afisha__list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--color-border); }
.afisha__item { border-bottom: 1px solid var(--color-border); }
.afisha__item[hidden] { display: none; }
.afisha__link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    color: inherit;
    text-decoration: none;
    transition: background-color .2s;
}
.afisha__link:hover .afisha__title { color: var(--color-accent); }
.afisha__link:hover .afisha__arrow { transform: translateX(4px); color: var(--color-accent); }
.afisha__date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.afisha__day { font-family: var(--font-demi); font-size: 36px; color: var(--color-accent); }
.afisha__month { margin-top: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-caption); }
.afisha__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.afisha__type { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-caption); }
.afisha__title { font-family: var(--font-demi); font-size: 20px; line-height: 1.3; transition: color .2s; }
.afisha__arrow { font-size: 20px; color: var(--color-text-caption); transition: transform .2s, color .2s; }
.afisha__empty { margin: 24px 0 0; color: var(--color-text-caption); }
@media (max-width: 767px) {
    .afisha__list { margin-top: 20px; }
    .afisha__link { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
    .afisha__day { font-size: 28px; }
    .afisha__title { font-size: 16px; }
    .afisha__arrow { display: none; }
}

/* Обложка публикации: вертикальные картинки (статьи старого сайта) не растягиваем на весь экран */
.event-detail__cover { background: var(--color-bg-alt, #EFE7D6); }
.event-detail__cover img { max-height: min(70vh, 640px); object-fit: contain; }

/* Обложки-баннеры с заголовком сверху: при обрезке показываем верх */
.ecard__img { object-position: center top; }

/* Пометка «Иллюстрация» на сгенерированных обложках */
.ecard__img-wrap,
.event-detail__cover { position: relative; }
.cover-note {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    background: rgba(35, 25, 16, .62);
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .04em;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Сотрудники без фото: текстовые карточки с фирменной линией, на ПК — три в ряд */
.team-card--person.team-card--text {
    grid-template-columns: minmax(0, 1fr);
    border-left: 3px solid var(--color-accent);
}
@media (min-width: 1024px) {
    .team-grid--home.team-grid--text { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .team-card--person.team-card--text { grid-template-columns: minmax(0, 1fr); }
}

/* Резиденты: переключатель «Список / На карте» и «Открыто сейчас» в одной строке */
.residents-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.residents-tools .residents-open { margin-top: 0; }
.residents-view { display: inline-flex; border: 1px solid var(--color-border); background: #fff; }
.residents-view__btn {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-family: var(--font-medium);
    font-size: 14px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.residents-view__btn + .residents-view__btn { border-left: 1px solid var(--color-border); }
.residents-view__btn:hover { color: var(--color-accent); }
.residents-view__btn.is-active { background: var(--color-dark-mid); color: #fff; }
.residents-map[hidden], [data-residents-catalog][hidden] { display: none !important; }
@media (max-width: 1024px) {
    .residents-tools { margin-top: 12px; }
}

/* Режим «На карте»: фильтры списка скрыты, остаётся переключатель вида */
.page-hero--residents.is-map-view .residents-search,
.page-hero--residents.is-map-view .residents-selects,
.page-hero--residents.is-map-view [data-residents-chips],
.page-hero--residents.is-map-view [data-residents-buildings],
.page-hero--residents.is-map-view .residents-open { display: none !important; }

/* Технические характеристики корпуса на телефоне: параметр над значением, длинные слова переносятся
   (таблица в две колонки была шире экрана — горизонтальная прокрутка на /objects/korpus-1/) */
@media (max-width: 767px) {
    .tech-table,
    .tech-table tbody,
    .tech-table tr,
    .tech-table th,
    .tech-table td { display: block; width: auto; }
    .tech-table tr { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
    .tech-table th,
    .tech-table td { padding: 0; border: 0; overflow-wrap: anywhere; }
    .tech-table th { margin-bottom: 4px; font-size: 11px; }
}

/* ---------- Доступность (Lighthouse 22.10.2026) ---------- */
/* Соцсети на странице контактов: стиль подвала (светлое на тёмном) на бежевом фоне не читался */
.contacts-info .site-footer__social a,
.contacts-page .site-footer__social a {
    border-color: var(--color-border);
    color: var(--color-text);
}
.contacts-info .site-footer__social a:hover,
.contacts-page .site-footer__social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Мелкий текст 10px → 11px */
.resi-tile__name,
.resi-tile--more .resi-tile__label { font-size: 11px; }

@media (max-width: 767px) {
    .tcard__cat { font-size: 11px; }

    /* Зоны нажатия не меньше ~32px: телефон и сайт в карточках резидентов, ссылки «Все …», «Подробнее» */
    .tcard__contact-row a { display: inline-block; padding: 6px 0; }
    .section-head__link { display: inline-flex; align-items: center; min-height: 36px; }
    .ecard__more { display: inline-flex; align-items: center; min-height: 36px; }
}

@media (max-width: 767px) {
    /* Телефон в меню и контакты на странице «Контакты» — крупнее зона нажатия */
    .mobile-menu__phone a,
    .contacts-info__value a { display: inline-block; padding: 8px 0; }
    /* Флажок согласия в формах заявки */
    input[type="checkbox"][name="agree"] { width: 22px; height: 22px; flex: 0 0 22px; }
}

[data-residents-featured][hidden] { display: none !important; }

/* ============================================================
   Система навигации квартала на сайте (29.10.2026)
   Источник: «Элементы навигации и оформления экстерьера ТЦ Квартал Полёт» —
   коричневые панели Pantone 476C, белые надписи и пиктограммы, тонкие стрелки и цифры этажей.
   ============================================================ */

/* Трафаретные цифры (tplStencilNum): шрифт KPStencil, размер — от родителя */
.stencil-num {
    font-family: var(--font-stencil);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* Плашки-указатели */
.wayfind {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.wayfind__tile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 18px;
    background: var(--color-brand);
    color: #fff;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.wayfind__tile:hover,
.wayfind__tile:focus-visible {
    background: var(--color-accent-dark);
}

.wayfind__arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding-right: 12px;
    box-sizing: content-box;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.wayfind__label {
    flex: 1;
    font-family: var(--font-book);
    font-size: 18px;
    line-height: 1.2;
}

.wayfind__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.wayfind-building {
    margin-top: 24px;
}

/* Особенности корпуса с пиктограммами */
.feature-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px 32px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.feature-icons__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icons__pict {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--color-brand);
    color: #fff;
}

.feature-icons__pict svg {
    width: 28px;
    height: 28px;
}

.feature-icons__text {
    padding-top: 12px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--color-text-body);
}

/* Секции «как стела»: коричневый фон, белые линии и надписи */
.section--stela {
    background: var(--color-brand);
    color: #fff;
}

.section--stela .space-specs__title,
.section--stela .section-head__title {
    color: #fff;
}

.section--stela .section-head__sub {
    color: rgba(255, 255, 255, 0.75);
}

.section--stela .section-label__text {
    color: var(--color-accent-gold);
}

.section--stela .section-label__line {
    background: var(--color-accent-gold);
}

.section--stela .space-plans__item {
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.section--stela .space-plans__file {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.stela-head {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.section--stela .space-plans__figure figcaption.stela-head {
    margin-top: 0;
    color: #fff;
}

.stela-head__num {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 64px;
    line-height: 0.8;
}

.stela-head__name {
    font-family: var(--font-book);
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* Входы и таблички режима работы */
.entrances {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
    align-items: start;
}

.entrances__map {
    margin: 0;
}

.entrances__map img {
    width: 100%;
    height: auto;
}

.entrances__plates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hours-plate {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.hours-plate__entrance {
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hours-plate__time {
    font-family: var(--font-stencil);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
}

.hours-plate__dash {
    padding: 0 4px;
}

.hours-plate__days {
    font-family: var(--font-book);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    .entrances {
        grid-template-columns: 1fr;
    }

    .entrances__plates {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 560px) {
    .entrances__plates {
        grid-template-columns: repeat(2, 1fr);
    }

    .wayfind__label {
        font-size: 16px;
    }

    .stela-head__num {
        font-size: 48px;
    }
}

/* ── Главная: блоки в стилистике навигации (30.10.2026) ── */

/* Вакантные площади: лёгкая табличка под фото — коричневый только в цифре площади и линиях */
.pcard__plate {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 24px 20px;
    text-align: left;
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
}

.pcard__plate-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pcard__plate-area {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 46px;
    line-height: 1;
    color: var(--color-brand);
}

.pcard__plate-unit {
    font-family: var(--font-book);
    font-size: 16px;
    color: var(--color-text-caption);
}

.pcard__plate-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-brand-gray);
}

.pcard__plate-title {
    margin: 16px 0 4px;
    font-family: var(--font-medium);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
}

.pcard__plate-meta {
    font-family: var(--font-book);
    font-size: 14px;
    color: var(--color-text-caption);
}

.pcard__plate-more {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand);
}

.pcard__plate-more svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}

.pcard__plate:hover .pcard__plate-more svg,
.pcard__plate:focus-visible .pcard__plate-more svg {
    transform: translateX(6px);
}

.pcard__plate:hover .pcard__plate-more {
    color: var(--color-accent);
}

/* На главной ровно три карточки: три колонки от 700 px (планшет тоже), иначе третья остаётся одна в ряду */
@media (min-width: 700px) {
    .pcard-grid--home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .pcard-grid--home {
        gap: 16px;
    }

    .pcard-grid--home .pcard__plate {
        padding: 18px 16px 16px;
    }

    .pcard-grid--home .pcard__plate-area {
        font-size: 38px;
    }
}

@media (max-width: 699px) {
    .pcard-grid--home {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Кнопка звонка в карточке помещения: на телефоне короче — «Позвонить», номер в одну строку */
.btn__label-short {
    display: none;
}

@media (max-width: 640px) {
    .btn__label-long {
        display: none;
    }

    .btn__label-short {
        display: inline;
    }
}

/* Бейдж статуса на фото — спокойный: белая плашка с цветной точкой вместо заливки */
.pcard__badge.badge,
.space-offer__badge.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
}

.pcard__badge.badge::before,
.space-offer__badge.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-status-free);
}

.pcard__badge.badge--negotiation::before,
.space-offer__badge.badge--negotiation::before {
    background: var(--color-status-negotiation);
}

.pcard__badge.badge--soon::before,
.space-offer__badge.badge--soon::before {
    background: var(--color-accent);
}

@media (max-width: 640px) {
    .pcard__plate-area {
        font-size: 40px;
    }
}

/* Объекты квартала: строки — панели, как на стелах (тонкая рамка, номер трафаретом, черта, стрелка) */
.corp-explorer .corp-row {
    grid-template-columns: auto 1fr 26px;
    gap: 0;
    margin-bottom: 8px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.corp-explorer .corp-row:hover,
.corp-explorer .corp-row.is-active {
    padding-left: 20px;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.corp-explorer .corp-row__num {
    padding-right: 18px;
    font-size: 48px;
    color: #fff;
}

.corp-explorer .corp-row:hover,
.corp-explorer .corp-row.is-active {
    border-color: var(--color-accent-light);
}

/* Номер в строке — тем же кирпичным, что и метка корпуса на карте: видно, какая строка какой метке соответствует */
.corp-explorer .corp-row:hover .corp-row__num,
.corp-explorer .corp-row.is-active .corp-row__num {
    color: var(--color-accent-light);
}

.corp-explorer .corp-row__title {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 19px;
}

.corp-explorer .corp-row__go {
    display: block;
    width: 26px;
    height: 26px;
    color: #fff;
    opacity: 0.7;
    transform: none;
}

.corp-explorer .corp-row:hover .corp-row__go,
.corp-explorer .corp-row.is-active .corp-row__go {
    opacity: 1;
}

@media (max-width: 640px) {
    .corp-explorer .corp-row {
        padding: 12px 14px;
    }

    .corp-explorer .corp-row__num {
        padding-right: 12px;
        font-size: 38px;
    }

    .corp-explorer .corp-row__title {
        padding-left: 12px;
        font-size: 16px;
    }

}

/* Преимущества на телефоне: цифра слева, заголовок и текст справа — блок ниже на ~40 % (было ~2100 px).
   Только .adv-grid: в «Условиях аренды» корпуса те же .adv-card без цифры — их не трогаем */
@media (max-width: 640px) {
    .adv-grid {
        gap: 10px;
    }

    .adv-grid .adv-card:not(.adv-card--cta) {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
        padding: 20px 18px;
    }

    .adv-grid .adv-card:not(.adv-card--cta) .adv-card__num {
        grid-row: span 2;
        margin: 0;
        font-size: 40px;
    }

    .adv-grid .adv-card__title {
        margin: 2px 0 6px;
        font-size: 19px;
    }

    .adv-grid .adv-card__text {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Характеристики корпуса — две колонки вместо пяти карточек столбиком */
    .building-about .spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* Указатели под шапкой корпуса — сетка 2×2 вместо столбика */
    .wayfind-building .wayfind {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wayfind-building .wayfind__tile {
        gap: 10px;
        min-height: 56px;
        padding: 12px;
    }

    .wayfind-building .wayfind__arrow {
        width: 20px;
        height: 20px;
        padding-right: 8px;
    }

    .wayfind-building .wayfind__label {
        font-size: 15px;
    }

    .wayfind-building .wayfind__icon {
        display: none;
    }
}

/* End */


/* Start:/local/templates/kvartalpolet/css/forms.css?17932917243769*/
/* ============================================================
   Формы обратной связи
   ============================================================ */

.form-block {
    background: #fff;
    padding: 36px 32px;
    border: 1px solid var(--color-border-light);
}

.form-block__title {
    font-family: var(--font-demi);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-block__sub {
    font-family: var(--font-book);
    font-size: 15px;
    color: var(--color-text-caption);
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.form-field label {
    display: block;
    font-family: var(--font-medium);
    font-size: 12px;
    color: var(--color-text-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    height: 52px;
    background: #fff;
    border: 1px solid #D8CDB6;
    padding: 0 18px;
    font-family: var(--font-book);
    font-size: 16px;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.form-field textarea {
    height: 88px;
    padding: 14px 18px;
    resize: vertical;
    min-height: 88px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent-warm);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-accent-warm);
}

.form-checkbox span {
    font-family: var(--font-book);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--color-text-caption);
}

.form-checkbox a,
.form-note a {
    color: var(--color-accent-warm);
    text-decoration: underline;
}

/* iPhone увеличивает страницу при фокусе на поле со шрифтом меньше 16 px (сортировка помещений 14 px,
   фильтры и поиск резидентов 14–15 px). :is() поднимает специфичность выше классов отдельных полей */
@media (max-width: 1024px) {
    body :is(select, textarea, input:not([type="checkbox"]):not([type="radio"])) {
        font-size: 16px;
    }
}

/* Под кнопкой отправки: ознакомление с политикой ПДн (152-ФЗ) */
.form-note {
    margin: 0;
    font-family: var(--font-book);
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-caption);
}

.form-search {
    width: 100%;
    max-width: 400px;
    height: 52px;
    border: 1px solid var(--color-border);
    padding: 0 18px;
    font-family: var(--font-book);
    font-size: 16px;
    background: #fff;
    margin-bottom: 24px;
}

.form-search:focus {
    outline: none;
    border-color: var(--color-accent-warm);
}

.form-alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    font-family: var(--font-book);
    font-size: 15px;
}

.form-alert--success {
    background: #edf7ed;
    border: 1px solid #b7dfb9;
    color: #1f5f28;
}

.form-alert--error {
    background: #fdeeee;
    border: 1px solid #efb8b8;
    color: #8c2323;
}

@media (max-width: 640px) {
    .form-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .form-block {
        padding: 26px 20px;
    }
}

@media (max-width: 767px) {
    .form-block__sub {
        margin-bottom: 18px;
    }
}

/* End */


/* Start:/local/templates/kvartalpolet/css/header.css?17933431678398*/
/* ============================================================
   Шапка сайта — site-header
   Соответствует макету: Главная Полет v3.dc.html
   ============================================================ */

/* ── Обёртка ────────────────────────────────────────────── */
.site-header {
    position: relative;
    z-index: 40;
    height: var(--header-height); /* 94px */
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad); /* 52px */
}

/* ── Логотип ────────────────────────────────────────────── */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo img {
    display: block;
    height: 36px;
    width: auto;
}

.site-header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-header__logo-name {
    font-family: var(--font-demi);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    letter-spacing: var(--ls-wider); /* .1em → чуть меньше .15em из макета */
    letter-spacing: .15em;
}

.site-header__logo-sub {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 10px; /* было 9px — ниже порога читаемости */
    color: var(--color-text-muted);
    letter-spacing: var(--ls-widest); /* .26em */
    margin-top: 4px;
    text-transform: uppercase;
}

/* ── Правая группа: навигация + телефон ─────────────────── */
.site-header__right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ── Навигация ──────────────────────────────────────────── */
.site-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Сброс стилей Битрикс-списка */
.site-header__nav ul,
.site-header__nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header__nav li {
    margin: 0;
    padding: 0;
}

/* ── Выпадающие подменю (подпункты разделов, как на прежнем сайте) ── */
.site-header__nav li.has-sub {
    position: relative;
}

.site-header__nav li.has-sub > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
}

/* Перекрывает display:flex общего правила .site-header__nav ul */
.site-header__nav ul.site-header__sub {
    position: absolute;
    top: 100%;
    left: -20px;
    z-index: 50;
    display: block;
    min-width: 250px;
    padding: 18px 0 10px;
    background: var(--color-brand);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s linear 0.2s;
}

/* Невидимый «мостик» между пунктом и панелью — курсор не теряет меню */
.site-header__nav ul.site-header__sub::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.site-header__nav li.has-sub:hover > .site-header__sub,
.site-header__nav li.has-sub:focus-within > .site-header__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s;
}

.site-header__sub li {
    display: block;
}

.site-header__nav .site-header__sub a {
    display: block;
    padding: 9px 22px;
    font-family: var(--font-book);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    color: #fff;
    white-space: nowrap;
}

.site-header__nav .site-header__sub a:hover,
.site-header__nav .site-header__sub a:focus-visible {
    color: #fff;
    background: var(--color-accent-dark);
}

.site-header__nav a {
    font-family: var(--font-medium);
    font-size: var(--text-base); /* 15px */
    font-weight: 500;
    color: var(--color-text-mid);
    letter-spacing: var(--ls-wide); /* .02em */
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav li.selected > a,
.site-header__nav li.active > a,
.site-header__nav a.is-active {
    color: var(--color-accent);
}

/* ── Телефон ─────────────────────────────────────────────── */
.site-header__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-left: 1px solid var(--color-border);
    padding-left: 26px;
    flex-shrink: 0;
}

.site-header__phone-link {
    font-family: var(--font-demi);
    font-size: var(--text-base); /* 15px */
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: var(--ls-wide); /* .02em */
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.site-header__phone-link:hover {
    color: var(--color-accent-dark);
}

/* ── Мобильное меню (бургер) — для будущего адаптива ─────── */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Шесть пунктов меню («Правила») и длинное название у логотипа — ужимаем до бургера */
@media (max-width: 1360px) {
    .site-header__nav ul,
    .site-header__nav ol {
        gap: 22px;
    }

    .site-header__nav a {
        font-size: 14px;
    }
}

@media (max-width: 1180px) {
    .site-header__logo-sub {
        display: none;
    }

    .site-header__nav ul,
    .site-header__nav ol {
        gap: 16px;
    }
}

/* Меню из шести пунктов со стрелками подменю и телефон занимают ~1100 px: на узких ноутбуках
   и iPad в альбомной ориентации (1024–1180 px) шапка вылезала за экран — бургер до 1199 px */
@media (max-width: 1199px) {
    .site-header__burger {
        display: flex;
    }

    .site-header__nav,
    .site-header__phone {
        display: none;
    }

    .site-header__inner {
        padding-inline: var(--container-pad);
    }
}

/* Подпись роли над номером («Аренда»). display у .site-header__phone задан выше, до медиазапросов:
   здесь он перебивал display: none на мобильных — номер вылезал за экран и страница ездила вбок */
.site-header__phone-label,
.mobile-menu__phone-label {
    font-family: var(--font-medium);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}
.mobile-menu__phone-label { display: block; margin-bottom: 2px; }

/* End */


/* Start:/local/templates/kvartalpolet/css/mobile-menu.css?17933018124190*/
/* ============================================================
   Мобильное меню
   ============================================================ */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 19, 11, 0.55);
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu.is-open .mobile-menu__overlay {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    padding: calc(var(--header-height) + 16px) var(--gap-md) var(--gap-md);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    outline: none;
}

.mobile-menu__close {
    position: absolute;
    top: calc((var(--header-height) - 44px) / 2);
    right: var(--gap-md);
    width: 44px;
    height: 44px;
    font-size: 32px;
    line-height: 1;
    color: var(--color-text);
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__nav ul,
.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-medium);
    font-size: var(--text-md);
    color: var(--color-text-mid);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-menu__nav a:hover,
.mobile-menu__nav li.selected > a,
.mobile-menu__nav a.is-active {
    color: var(--color-accent);
}

.mobile-menu__phone {
    margin-top: var(--gap-md);
    padding-top: var(--gap-md);
    border-top: 1px solid var(--color-border);
}

.mobile-menu__phone a {
    font-family: var(--font-demi);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

body.is-menu-open {
    overflow: hidden;
}

/* Бургер → крестик */
.site-header__burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Подпункты разделов: строка «ссылка + кнопка раскрытия», список скрыт до нажатия */
.mobile-menu__row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__nav .mobile-menu__row > a {
    flex: 1;
    border-bottom: 0;
}

.mobile-menu__toggle {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--color-text-mid);
}

.mobile-menu__toggle::before,
.mobile-menu__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast);
}

.mobile-menu__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mobile-menu__toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Общее правило «.mobile-menu__nav ul { display: flex }» перебивало атрибут hidden — подменю были раскрыты */
.mobile-menu__nav .mobile-menu__sub[hidden] {
    display: none;
}

.mobile-menu__sub {
    margin: 0;
    padding: 6px 0 10px 14px;
    list-style: none;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__nav .mobile-menu__sub a {
    padding: 9px 0;
    border-bottom: 0;
    font-family: var(--font-book);
    font-size: 16px;
}


/* End */


/* Start:/local/templates/kvartalpolet/css/footer.css?17932958994748*/
/* ============================================================
   Подвал — site-footer
   Макет: Главная Полет v3.dc.html → FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-dark);
    color: #fff;
    padding: 68px var(--container-pad) 38px;
}

.site-footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--gap-lg);
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Бренд ──────────────────────────────────────────────── */
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.site-footer__brand img {
    height: 30px;
    width: auto;
}

.site-footer__brand-name {
    font-family: var(--font-demi);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
}

.site-footer__desc {
    font-family: var(--font-book);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Колонки навигации ────────────────────────────────── */
.site-footer__col-title {
    font-family: var(--font-medium);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__links a,
.site-footer__links span {
    font-family: var(--font-book);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer__links a:hover {
    color: #fff;
}

/* ── Контакты ───────────────────────────────────────────── */
.site-footer__phone {
    font-family: var(--font-demi);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.site-footer__social {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-demi);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.site-footer__social a:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ── Нижняя строка ────────────────────────────────────── */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-md);
    padding-top: 26px;
    flex-wrap: wrap;
}

.site-footer__copy,
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.site-footer__legal a,
.site-footer__legal button {
    font-family: var(--font-light);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer__legal a:hover,
.site-footer__legal button:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 44px var(--container-pad) 28px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
        padding-bottom: 28px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Контраст подвала (Lighthouse): описание 0.45 → 0.6, копирайт и политика 0.3 → 0.55 — читается, но тише основного текста */
.site-footer__desc { color: rgba(255, 255, 255, 0.6); }
.site-footer__copy,
.site-footer__bottom a { color: rgba(255, 255, 255, 0.55); }

/* End */


/* Start:/local/templates/kvartalpolet/css/sections/hero.css?179329589913035*/
/* ============================================================
   Hero «Полёт» (polet-hero-v3) + ticker — главная страница
   Объёмная головка одуванчика — фоновая сцена на весь первый экран; слева сцена плавно
   растворяется в фоне сайта (маска), там — текст из админки нашими шрифтами и кнопками.
   Три отдельных семени (.hero__air) срываются ветром — initHeroWind в main.js.
   ============================================================ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    /* первый экран целиком: шапка + hero = высота окна (на совсем низких окнах — не меньше 600px) */
    min-height: max(600px, calc(100vh - var(--header-height)));
    min-height: max(600px, calc(100svh - var(--header-height)));
    overflow: clip;
    isolation: isolate;
}

/* ---------- Сцена ---------- */

.hero__stage {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.hero__scene {
    position: absolute;
    inset: 0;
    display: block;
    /* левая часть — фон сайта, сцена проявляется к середине: стык цветов не виден */
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, 0.55) 38%, #000 58%);
    mask-image: linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, 0.55) 38%, #000 58%);
}

.hero__scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.hero__air {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

/* Семя — исходно у края головки, «смотрит» по ветру */
.hero__seed {
    position: absolute;
    width: 110px;
    height: auto;
    transform: rotate(15deg);
    transform-origin: 30% 80%;
}

.hero__seed--a { left: 64%; top: 40%; width: 104px; }
.hero__seed--b { left: 70%; top: 25%; width: 66px; }
.hero__seed--c { left: 60%; top: 55%; width: 132px; filter: blur(0.6px); }

/* ---------- Текст ---------- */

.hero__inner {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero__content {
    width: min(620px, 52%);
    padding-block: 48px 40px;
}

.hero__label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero__label-line {
    width: 54px;
    height: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.hero__label-text {
    font-family: var(--font-medium);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* H1 = надпись над заголовком + сам заголовок; оформление у частей прежнее */
.hero__heading {
    margin: 0;
    font: inherit;
}

.hero__title {
    display: block;
    font-family: var(--font-demi);
    font-weight: 700;
    /* самое длинное слово («ВОЗМОЖНОСТЕЙ») целиком помещается в колонку */
    font-size: clamp(44px, 4.7vw, 76px);
    line-height: 1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--color-accent);
}

.hero__line {
    display: block;
}

.hero__desc {
    margin-top: 24px;
    font-family: var(--font-book);
    font-size: 19px;
    line-height: 1.55;
    color: var(--color-text-body);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__actions .btn {
    min-height: 48px;
}

/* ---------- Нижняя строка: подпись, «ветер», «Листайте» ---------- */

.hero__bottom {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    width: 100%;
    padding-block: 18px 22px;
    border-top: 1px solid rgba(89, 68, 51, 0.16);
}

.hero__note {
    margin: 0;
    font-family: var(--font-demi);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.hero__note span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-medium);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-caption);
}

.hero__wind {
    margin-left: auto;
    padding: 10px 18px;
    border: 1px solid rgba(124, 101, 86, 0.3);
    background: rgba(249, 243, 230, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--font-medium);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.hero__wind:hover {
    border-color: var(--color-accent-warm);
    color: var(--color-accent-warm);
    background: rgba(249, 243, 230, 0.92);
}

.hero__wind:focus-visible,
.hero__scroll:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* «Листайте» — пиктограмма по центру нижней строки: мышь, по ней скатывается колёсико,
   под ней по очереди вспыхивают две стрелки вниз */
.hero__scroll {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px;
    transform: translate(-50%, -50%);
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.25s var(--ease-out);
}

.hero__mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 1.5px solid currentColor;
    border-radius: 12px;
    opacity: 0.85;
}

.hero__mouse-wheel {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--color-accent);
    animation: hero-wheel 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}

.hero__chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__chevrons span {
    width: 8px;
    height: 8px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.2;
    animation: hero-chevron 1.8s ease-in-out infinite;
}

.hero__chevrons span + span {
    animation-delay: 0.2s;
}

.hero__scroll:hover {
    color: var(--color-accent);
}

@keyframes hero-wheel {
    0%   { transform: translateY(0); opacity: 0; }
    20%  { opacity: 1; }
    70%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes hero-chevron {
    0%, 30%  { opacity: 0.2; }
    55%      { opacity: 1; }
    100%     { opacity: 0.2; }
}

.hero-next {
    scroll-margin-top: var(--header-height, 94px);
}

/* ---------- Вступление ----------
   html.js-hero-intro ставит inline-скрипт до первой отрисовки; без JS всё видно.
   Заголовок и кнопки — кандидаты LCP / главное действие: не прячем, только сдвигаем. */
.js-hero-intro .hero__label,
.js-hero-intro .hero__desc {
    opacity: 0;
}

.js-hero-intro .hero__title,
.js-hero-intro .hero__actions {
    transform: translateY(14px);
}

/* Ticker */
.ticker {
    background: var(--color-dark-mid);
    overflow: hidden;
    padding: 22px 0;
    border-top: 3px solid var(--color-accent-warm);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-marquee 26s linear infinite;
}

.ticker__item {
    font-family: var(--font-demi);
    font-size: 22px;
    font-weight: 700;
    padding: 0 40px;
    white-space: nowrap;
}

.ticker__item--gold {
    color: var(--color-accent-gold);
}

.ticker__item--white {
    color: #fff;
}

.ticker__sep {
    color: rgba(255, 255, 255, 0.25);
    align-self: center;
}

@keyframes ticker-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ---------- Адаптив ---------- */

@media (max-width: 1199px) {
    .hero__content {
        width: min(560px, 56%);
    }

    .hero__title {
        font-size: clamp(40px, 4.8vw, 56px);
    }

    .hero__scene img {
        object-position: 78% center;
    }
}

/* Планшет и телефон: текст на фоне сайта сверху, сцена — под ним, растворяется вверх */
@media (max-width: 899px) {
    .hero {
        min-height: calc(100vh - var(--header-height));
        min-height: calc(100svh - var(--header-height));
    }

    /* сцена занимает всё место под кнопками до низа окна */
    .hero__stage {
        position: relative;
        order: 2;
        z-index: 0;
        flex: 1 0 auto;
        min-height: clamp(300px, 56vw, 460px);
        margin-top: -72px;
    }

    .hero__inner {
        flex: 0 0 auto;
    }

    .hero__scene {
        -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.6) 22%, #000 42%);
        mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.6) 22%, #000 42%);
    }

    .hero__scene img {
        object-position: 88% center;
    }

    .hero__inner {
        order: 1;
        position: relative;
        z-index: 1;
    }

    .hero__content {
        width: 100%;
        padding-block: 24px 0;
    }

    .hero__seed--a { left: 52%; top: 44%; width: 84px; }
    .hero__seed--b { left: 66%; top: 34%; width: 52px; }
    .hero__seed--c { display: none; }

    .hero__bottom {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        max-width: none;
        border-top: 0;
        background: linear-gradient(to top, rgba(239, 231, 212, 0.85), transparent);
    }
}

@media (max-width: 767px) {
    .hero__inner {
        padding-inline: var(--container-pad);
    }

    .hero__label {
        gap: 12px;
        margin-bottom: 16px;
    }

    .hero__label-line {
        width: 32px;
    }

    .hero__label-text {
        font-size: 12px;
        letter-spacing: 0.18em;
    }

    .hero__title {
        font-size: clamp(30px, 8.6vw, 56px);
    }

    .hero__desc {
        margin-top: 16px;
        font-size: 17px;
    }

    .hero__actions {
        flex-direction: column;
        margin-top: 24px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* мобильный файл уже обрезан вокруг головки */
    .hero__scene img {
        object-position: 72% center;
    }

    .hero__stage {
        min-height: 250px;
        margin-top: -48px;
    }

    .hero__bottom {
        min-height: 68px;
        padding: 8px var(--container-pad) 10px;
    }

    .hero__note {
        display: none;
    }

    .ticker {
        padding-block: 16px;
    }

    .ticker__item {
        font-size: 18px;
        padding-inline: 24px;
    }

    /* на телефоне порыв запускается сам — кнопка не спорит с пиктограммой «Листайте» */
    .hero__wind {
        display: none;
    }

}

/* Появление блоков ниже первого экрана (initRevealOnScroll) */
.reveal {
    transition: opacity 0.45s cubic-bezier(.22, 1, .36, 1), transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

.reveal--pending {
    opacity: 0;
    transform: translateY(16px);
}


/* «Уменьшить движение»: статичная сцена — без вступления и полёта */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal--pending {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .js-hero-intro .hero__label,
    .js-hero-intro .hero__title,
    .js-hero-intro .hero__desc,
    .js-hero-intro .hero__actions {
        opacity: 1;
        transform: none;
    }

    .hero__mouse-wheel,
    .hero__chevrons span {
        animation: none;
        opacity: 1;
    }

    .hero__air {
        transition: none;
        transform: none !important;
    }
}

/* End */


/* Start:/local/templates/kvartalpolet/css/sections/seeds.css?17932958992753*/
/* ============================================================
   Одуванчики — анимация семян (макет Главная v3)
   ============================================================ */

@keyframes seed-drift-a {
    0%   { transform: translate(0, 0) rotate(-8deg); opacity: 0; }
    6%   { opacity: 0.95; }
    28%  { transform: translate(46px, -150px) rotate(40deg); }
    54%  { transform: translate(-24px, -320px) rotate(118deg); }
    80%  { transform: translate(52px, -470px) rotate(180deg); }
    92%  { opacity: 0.5; }
    100% { transform: translate(20px, -600px) rotate(250deg); opacity: 0; }
}

@keyframes seed-drift-b {
    0%   { transform: translate(0, 0) rotate(6deg); opacity: 0; }
    7%   { opacity: 0.9; }
    30%  { transform: translate(-40px, -170px) rotate(-46deg); }
    58%  { transform: translate(30px, -350px) rotate(-120deg); }
    82%  { transform: translate(-46px, -500px) rotate(-186deg); }
    92%  { opacity: 0.45; }
    100% { transform: translate(-18px, -640px) rotate(-250deg); opacity: 0; }
}

@keyframes seed-drift-c {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.92; }
    40%  { transform: translate(22px, -230px) rotate(70deg); }
    70%  { transform: translate(-30px, -410px) rotate(150deg); }
    90%  { opacity: 0.5; }
    100% { transform: translate(34px, -580px) rotate(220deg); opacity: 0; }
}

@keyframes seed-sway {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}

.seeds-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 6;
}

.seed {
    position: absolute;
    pointer-events: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.seed--a { animation-name: seed-drift-a; }
.seed--b { animation-name: seed-drift-b; }
.seed--c { animation-name: seed-drift-c; }

.seed__in {
    transform-origin: 50% 30%;
    animation: seed-sway 3.2s ease-in-out infinite;
}

.seed--tone-earth { color: #9E8E72; }
.seed--tone-clay  { color: #B86B47; }
.seed--tone-dark  { color: #8C6C52; }
.seed--tone-gold  { color: var(--color-accent-gold); }

@media (prefers-reduced-motion: reduce) {
    .seed,
    .seed__in {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* Статичные семена (блоки корпусов и формы): по ТЗ одно движение на главной — в первом экране */
.seeds-layer--static .seed,
.seeds-layer--static .seed__in {
    animation: none;
}

.seeds-layer--static .seed {
    opacity: 0.5;
    transform: rotate(-14deg);
}

/* End */


/* Start:/local/templates/kvartalpolet/css/sections/page-stub.css?1792588196618*/
/* Заглушка страницы */
.page-stub__title {
    font-family: var(--font-demi);
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-text);
    margin-bottom: var(--gap-md);
}

.page-stub__desc {
    font-family: var(--font-book);
    font-size: var(--text-md);
    line-height: var(--lh-loose);
    color: var(--color-text-body);
    margin-bottom: var(--gap-sm);
}

.page-stub__note {
    font-family: var(--font-book);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--gap-lg);
}

/* End */


/* Start:/local/templates/kvartalpolet/css/sections/error-page.css?17925752031491*/
/* Страница 404 */
.error-page__inner {
    max-width: 760px;
    padding-top: var(--gap-lg);
    padding-bottom: var(--gap-lg);
}

.error-page__code {
    font-family: var(--font-demi);
    font-size: clamp(96px, 18vw, 180px);
    line-height: 0.9;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    margin-bottom: var(--gap-md);
}

.error-page__title {
    font-family: var(--font-demi);
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: var(--lh-tight);
    color: var(--color-text);
    margin-bottom: var(--gap-sm);
}

.error-page__desc {
    font-family: var(--font-book);
    font-size: var(--text-md);
    line-height: var(--lh-loose);
    color: var(--color-text-body);
    margin-bottom: var(--gap-md);
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
    margin-bottom: var(--gap-lg);
}

.error-page__link {
    font-family: var(--font-medium);
    font-size: var(--text-sm);
    letter-spacing: var(--ls-wide);
    color: var(--color-text-mid);
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.error-page__link:hover,
.error-page__link:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
}

/* End */


/* Start:/local/templates/kvartalpolet/template_styles.css?1782743679102*/
/* Стили подключаются через SetAdditionalCSS в include/register_assets.php */

/* End */
/* /local/templates/kvartalpolet/css/fonts.css?17932987071827 */
/* /local/templates/kvartalpolet/css/variables.css?17933398365315 */
/* /local/templates/kvartalpolet/css/reset.css?17932917241507 */
/* /local/templates/kvartalpolet/css/layout.css?1782743679476 */
/* /local/templates/kvartalpolet/css/buttons.css?17933431672009 */
/* /local/templates/kvartalpolet/css/components.css?1793364474116542 */
/* /local/templates/kvartalpolet/css/forms.css?17932917243769 */
/* /local/templates/kvartalpolet/css/header.css?17933431678398 */
/* /local/templates/kvartalpolet/css/mobile-menu.css?17933018124190 */
/* /local/templates/kvartalpolet/css/footer.css?17932958994748 */
/* /local/templates/kvartalpolet/css/sections/hero.css?179329589913035 */
/* /local/templates/kvartalpolet/css/sections/seeds.css?17932958992753 */
/* /local/templates/kvartalpolet/css/sections/page-stub.css?1792588196618 */
/* /local/templates/kvartalpolet/css/sections/error-page.css?17925752031491 */
/* /local/templates/kvartalpolet/template_styles.css?1782743679102 */
