/*
 * Карточка проекта в новом дизайне (v2): web/projects/show-v2.blade.php.
 *
 * Подключается ПОСЛЕ project.css и catalog-v2.css и только при v2
 * (App\Support\CatalogV2). Источник — утверждённый макет
 * www/dublin/kartochka.html; варианты макета сведены к выбранным
 * (карточка характеристик «A» с 3D-иконками, вкладки-карточки «B»,
 * 3D-иконки преимуществ, новые интерьеры). Классы прежней карточки
 * (галерея, «Что входит», «С нами надёжно», нижнее меню) перебиваются
 * обёрткой .w-project2 / .w-page--v2, без !important.
 */

.w-project2 {
    padding-bottom: 100px;
    color: var(--w-ink);
}

.w-project2 p,
.w-project2 .w-prose { line-height: 1.4; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.w-project2 [id] { scroll-margin-top: 20px; }

/* Кнопка-пилюля на светлом: серая, с кружком справа. */
.w-button--soft {
    justify-content: space-between;
    gap: 18px;
    height: 56px;
    padding: 0 6px 0 24px;
    border-radius: 40px;
    background: #f1f1f1;
    color: var(--w-ink);
    font-family: var(--w-font);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.w-button--soft:hover { background: #e6e6e6; box-shadow: none; }

.w-button--soft::after {
    content: '';
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D6047' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* «Презентация проекта» — значок PDF в кружке. */
.w-info2__btn--doc::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D6047' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Ctext x='12' y='17.2' text-anchor='middle' font-family='Arial' font-weight='700' font-size='6.4' fill='%231D6047' stroke='none'%3EPDF%3C/text%3E%3C/svg%3E");
    background-size: 26px;
}

/* Круглая стрелка поверх картинки (план, интерьеры, похожие). */
.w-arrow2 {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--w-ink);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color var(--w-ease), color var(--w-ease), opacity var(--w-ease);
}

.w-arrow2:hover { background: var(--w-green); color: #fff; }
.w-arrow2:focus-visible { outline: 3px solid var(--w-green); outline-offset: 2px; }
.w-arrow2[disabled] { opacity: 0; pointer-events: none; }
.w-arrow2 .w-icon--chevron { width: 14px; height: 12px; }
.w-arrow2--prev { left: 14px; }
.w-arrow2--prev .w-icon--chevron { transform: rotate(90deg); }
.w-arrow2--next { right: 14px; }
.w-arrow2--next .w-icon--chevron { transform: rotate(-90deg); }

/* Переключатель-пилюля (виды плана, варианты интерьера). */
.w-pill2 {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #ececec;
    border-radius: 40px;
    background: #fff;
    color: var(--w-ink);
    font: 600 14px var(--w-font);
    cursor: pointer;
}

.w-pill2[aria-pressed="true"] { border-color: var(--w-green); background: var(--w-green); color: #fff; }
.w-pill2:focus-visible { outline: 3px solid #c0a380; outline-offset: 2px; }

/* =====================================================================
   Заголовок секции: Bebas по центру, зелёная часть, подзаголовок
   ===================================================================== */

.w-sect2 { padding-top: var(--w-section-gap); }

.w-sect2__title,
.w-project2 .w-conditions__title {
    margin: 0;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
}

.w-sect2__title span { color: var(--w-green); }

.w-sect2__lead {
    max-width: 860px;
    margin: 6px auto 0;
    color: #535353;
    font-size: 17px;
    text-align: center;
}

.w-sect2__frame {
    position: relative;
    margin-top: 26px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #e9e9e9;
}

.w-sect2__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =====================================================================
   Первый экран: крошки и заголовок над галереей, карточка справа
   ===================================================================== */

.w-head2 { padding-bottom: 18px; }

.w-head2__crumbs { margin-top: 20px; color: var(--w-ink); }
.w-head2__crumbs .w-crumbs__link { color: inherit; text-decoration: none; }
.w-head2__crumbs .w-crumbs__link:hover { color: var(--w-green); }
.w-head2__crumbs .w-crumbs__current { color: #9a9a9a; }

.w-head2__title {
    margin: 26px 0 0;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-wrap: balance;
}

.w-project-top--v2 { margin-top: 0; }

@media (min-width: 990px) {
    .w-project-top--v2 {
        grid-template-columns: 1fr clamp(360px, 30%, 440px);
        gap: 30px;
        min-height: 0;
        height: clamp(560px, calc(100vh - 230px), 760px);
    }
}

/*
 * 990–1439: project.css (прежняя карточка в одну колонку) ставит галерее
 * height: 466px; flex: none. В v2 здесь уже две колонки, и галерея с лентой
 * кончались выше карточки характеристик — серая дыра (26.10, Анастасия:
 * «нэ красиво»). Галерея забирает остаток колонки, низ ленты — вровень с карточкой.
 */
@media (min-width: 990px) and (max-width: 1439px) {
    .w-project-top--v2 .w-gallery { height: auto; flex: 1 1 auto; min-height: 320px; }
}

/* Плашка «Хит продаж» — оранжевая, огонёк. */
.w-project2 .w-badge--hit {
    gap: 7px;
    background: linear-gradient(98deg, #ff9a3c 0%, #f2541b 100%);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.w-project2 .w-badge--hit .w-icon--badge {
    width: 20px;
    height: 20px;
    color: #fff;
    filter: drop-shadow(0 0 3px rgba(255, 214, 140, .9));
}

/* Слайды «ипотека» и «офис»: галерея ниже прежней — компактнее. */
@media (min-width: 990px) {
    .w-project2 .w-banks { justify-content: center; padding: 22px 24px 18px; }
    .w-project2 .w-banks__title { font-size: 38px; }
    .w-project2 .w-banks__badge { padding: 5px 12px; font-size: 22px; }
    .w-project2 .w-banks__grid { grid-template-columns: repeat(3, minmax(0, 180px)); gap: 10px; margin-top: 12px; }
    .w-project2 .w-banks__item { height: clamp(64px, 10vh, 96px); }
    .w-project2 .w-banks__escrow { width: auto; max-width: 560px; margin-top: 18px; padding: 8px 0; font-size: 24px; }
    .w-project2 .w-office { padding: 24px; }
    .w-project2 .w-office__title { font-size: 40px; }
}

/* --- Карточка характеристик --- */
.w-info2 {
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
    border-radius: 10px;
    background: #fff;
    color: var(--w-ink);
}

.w-info2__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #6d6d6d;
    font-size: 14px;
    font-weight: 500;
}

.w-info2__area {
    margin: 4px 0 18px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.w-info2__area sup { font-size: .6em; line-height: 0; vertical-align: .4em; }

.w-info2__text { margin: 4px 0 20px; font-size: 17px; font-weight: 600; }

.w-info2__icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
    margin: 0 0 22px;
    padding: 18px 0;
    border-top: 1px dashed #d3d3d3;
    border-bottom: 1px dashed #d3d3d3;
}

.w-info2__icon {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
}

.w-info2__icon-label { color: #6d6d6d; font-size: 14px; font-weight: 500; }

.w-info2__icon-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
}

.w-info2__icon-img { display: block; width: 80px; height: 80px; margin: -12px 0 -6px; }

.w-info2__price { display: flex; flex-direction: column; margin-bottom: 18px; }
.w-info2__price-label { margin-bottom: 6px; color: #6d6d6d; font-size: 14px; }

.w-info2__price-value {
    color: var(--w-green);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.w-info2__price-value--request { font-size: 32px; }
.w-info2__price-old { margin-top: 6px; color: #8b8b8b; font-size: 18px; }

.w-info2__actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.w-info2__btn { width: 100%; justify-content: space-between; }

@media (max-width: 1199px) {
    .w-info2__price-value { font-size: 34px; }
}

/* =====================================================================
   Вкладки — карточки с иконкой и подписью; полоска разделов внизу
   ===================================================================== */

.w-tabs2 {
    display: grid;
    grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr));
    gap: 10px;
    margin-top: 72px;
}

.w-tabs2__item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: var(--w-ink);
    text-decoration: none;
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-tabs2__icon {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f1f1;
    color: var(--w-green);
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-tabs2__icon svg { width: 22px; height: 22px; }
.w-tabs2__name { font-size: 16px; font-weight: 700; }
.w-tabs2__hint { color: #6d6d6d; font-size: 13px; transition: color var(--w-ease); }

.w-tabs2__item:hover { background: var(--w-green); color: #fff; }
.w-tabs2__item:hover .w-tabs2__icon { background: rgba(255, 255, 255, .2); color: #fff; }
.w-tabs2__item:hover .w-tabs2__hint { color: rgba(255, 255, 255, .85); }
.w-tabs2__item:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

.w-sticky2 {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    transition: transform .3s ease;
}

.w-sticky2[hidden] { display: block; visibility: hidden; }
.w-sticky2.is-on { visibility: visible; transform: none; }

.w-sticky2__in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.w-sticky2__link {
    padding: 8px 14px;
    border-radius: 40px;
    color: var(--w-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-sticky2__link:hover { background: #f1f1f1; }
.w-sticky2__link.is-current { background: var(--w-green); color: #fff; }

/* =====================================================================
   «Что входит в стоимость дома» (секции из админки)
   ===================================================================== */

.w-project2 .w-inclusions--v2 { margin-top: 20px; }
/* Панель высотой ровно с колонку вкладок: картинка кончается вместе с последней вкладкой,
   лишний текст подрезает project.js (как раньше при фиксированной высоте). */
@media (min-width: 990px) {
    .w-project2 .w-cost { align-items: stretch; }
    .w-project2 .w-cost__panels { position: relative; }
    .w-project2 .w-cost__panel { position: absolute; inset: 0; height: auto; }
}

@media (min-width: 1200px) {
    .w-project2 .w-inclusions__title { max-width: none; white-space: nowrap; }
}

.w-project2 .w-cost__tab {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.w-project2 .w-cost__tab .w-inc-icon { flex: none; width: 22px; height: 22px; color: var(--w-green); }

.w-project2 .w-cost__tab.is-active {
    border-color: var(--w-green);
    background: #fff;
    color: var(--w-green);
    box-shadow: inset 0 0 0 1px var(--w-green);
}

.w-cost__link {
    align-self: flex-start;
    margin-top: auto;
    padding: 4px 0 14px;
    border: 0;
    background: none;
    color: var(--w-green);
    font: 500 20px var(--w-font);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 9px;
    cursor: pointer;
}

.w-cost__link:hover { color: var(--w-green-hover); }

.w-project2 .w-inclusions__cta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    height: 56px;
    margin: 20px auto 0;
    padding: 0 6px 0 28px;
    font-size: 17px;
}

.w-inclusion__icon { display: none; }

/* =====================================================================
   Преимущества — 3D-иконки по центру
   ===================================================================== */

.w-adv2 { margin-top: var(--w-section-gap); }

.w-adv2__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.w-adv2__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 24px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.w-adv2__icon { display: block; width: 80px; height: 80px; mix-blend-mode: multiply; }
.w-adv2__title { color: var(--w-ink); font-size: 20px; font-weight: 600; line-height: 1.15; text-wrap: balance; }
.w-adv2__text { color: #535353; font-size: 15px; line-height: 1.3; }
.w-adv2__short { display: none; }

/* =====================================================================
   Конструктор фасада
   ===================================================================== */

.w-cfg__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    margin-top: 26px;
}

.w-cfg__media { position: relative; display: flex; flex-direction: column; min-height: 0; }

.w-cfg__stage {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #dfe3df;
    aspect-ratio: 3 / 2;
}

.w-cfg__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s ease;
}

.w-cfg__tag {
    position: absolute;
    left: 14px;
    top: 16px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 40px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
}

.w-cfg__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }

.w-cfg__thumb {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

.w-cfg__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-cfg__thumb[aria-pressed="true"] { border-color: var(--w-green); }
.w-cfg__thumb:focus-visible { outline: 3px solid #c0a380; outline-offset: 2px; }

.w-cfg__panel {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 14px;
    border-radius: 10px;
    background: #fff;
}

.w-cfg__step { margin-bottom: 14px; }
.w-cfg__step[hidden] { display: none; }

.w-cfg__step-title { margin: 0 0 8px; color: #535353; font-size: 14px; font-weight: 700; }

.w-cfg__step-title i {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--w-green);
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

.w-cfg__opts { display: flex; flex-wrap: wrap; gap: 8px; }

.w-cfg__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px 8px 8px;
    border: 1px solid #ececec;
    border-radius: 40px;
    background: #fff;
    color: var(--w-ink);
    font: 600 14px var(--w-font);
    cursor: pointer;
}

.w-cfg__opt[aria-pressed="true"] { border-color: var(--w-green); }
.w-cfg__opt:focus-visible { outline: 3px solid #c0a380; outline-offset: 2px; }

.w-cfg__swatch {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.w-cfg__specs {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.w-cfg__spec { display: flex; flex: 1; flex-direction: column; }
.w-cfg__spec[hidden] { display: none; }
.w-cfg__spec-title { margin: 0 0 4px; font-size: 19px; font-weight: 600; }

.w-cfg__rows { display: flex; flex: 1; flex-direction: column; justify-content: space-between; margin: 0; }

.w-cfg__row {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
    border-bottom: 1px dashed #e3e3e3;
}

.w-cfg__row:last-child { padding-bottom: 0; border-bottom: 0; }
.w-cfg__row dt { color: #6d6d6d; font-size: 13px; line-height: 1.2; }
.w-cfg__row dd { margin: 3px 0 0; font-size: 15px; font-weight: 500; line-height: 1.3; }

.w-cfg__calc { flex: none; width: 100%; justify-content: space-between; margin-top: 16px; }
/* Панель прокручивается, когда вариантов много (подгруппа цветов кирпича), а кнопка
   расчёта всегда видна внизу. */
@media (min-width: 990px) {
    .w-cfg__calc { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -12px 0 #fff, 0 14px 0 #fff; }
}

/* Компьютер: блок в один экран, миниатюры поверх фото снизу. */
@media (min-width: 990px) {
    /* Не выше экрана: фото и кнопка расчёта видны целиком, длинное описание прокручивается в панели. */
    .w-cfg__grid { height: min(var(--cfg-h, 640px), calc(100vh - 110px), 620px); }
    .w-cfg__stage { flex: 1; aspect-ratio: auto; }

    .w-cfg__stage::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: 34%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 100%);
        pointer-events: none;
    }

    .w-cfg__thumbs {
        position: absolute;
        left: 16px;
        bottom: 16px;
        z-index: 2;
        grid-template-columns: repeat(4, 128px);
        margin: 0;
    }

    .w-cfg__thumb {
        width: 128px;
        height: 80px;
        border-color: rgba(255, 255, 255, .75);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
        aspect-ratio: auto;
    }

    .w-cfg__thumb::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        transition: opacity var(--w-ease);
    }

    .w-cfg__thumb[aria-pressed="true"] { border-color: #fff; outline: 2px solid var(--w-green); }
    .w-cfg__thumb[aria-pressed="true"]::after,
    .w-cfg__thumb:hover::after { opacity: 0; }

    .w-cfg__panel { overflow-y: auto; }
}

/* =====================================================================
   Планировка
   ===================================================================== */

.w-plan2__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--w-card-gap);
    margin-top: 26px;
    align-items: start;
}

.w-plan2__grid--wide { grid-template-columns: minmax(0, 1fr); }

.w-plan2__box { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-radius: 10px; background: #fff; }

.w-plan2__bar { display: flex; flex-wrap: wrap; gap: 8px; }

.w-plan2__note { margin: 12px 0 0; color: #535353; font-size: 13px; }

.w-plan2__view { position: relative; margin-top: 12px; }
.w-plan2__view[hidden] { display: none; }
.w-plan2__view > .w-plan2__note:first-child { margin: 0 0 12px; }

.w-plan2__big {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #fff;
    cursor: zoom-in;
}

.w-plan2__img { display: block; width: 100%; height: auto; }

.w-plan2__rooms,
.w-plan2__poly { position: absolute; z-index: 1; pointer-events: none; }

.w-plan2__room {
    position: absolute;
    border-radius: 6px;
    pointer-events: auto;
    transition: background-color .2s, box-shadow .2s;
}

.w-plan2__room.is-hl { background: rgba(29, 96, 71, .32); box-shadow: inset 0 0 0 3px var(--w-green); }

.w-plan2__poly polygon {
    fill: transparent;
    stroke: transparent;
    stroke-width: 3;
    stroke-linejoin: round;
    pointer-events: auto;
    transition: fill .2s, stroke .2s;
}

.w-plan2__poly polygon.is-hl { fill: rgba(29, 96, 71, .35); stroke: var(--w-green); }

.w-plan2__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }

.w-plan2__thumb {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.w-plan2__thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.w-plan2__thumb[aria-pressed="true"] { border-color: var(--w-green); }
.w-plan2__view .w-arrow2 { width: 44px; height: 44px; }

.w-plan2__expl { padding: 18px; border-radius: 10px; background: #fff; }
.w-plan2__expl-title { margin: 0 0 6px; font-size: 19px; font-weight: 600; }

.w-plan2__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.w-plan2__table td { padding: 7px 0; border-bottom: 1px solid #ececec; transition: color .2s; }
.w-plan2__table td:last-child { font-weight: 700; text-align: right; white-space: nowrap; }

.w-plan2__group th {
    padding: 14px 0 7px;
    color: #535353;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.w-plan2__total td { padding-top: 12px; border-bottom: 0; font-size: 15px; }

.w-plan2__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--w-green);
    vertical-align: 1px;
}

.w-plan2__table tr[data-area] { transition: background-color .2s; }
.w-plan2__table tr.is-hl { background: var(--w-green); }
.w-plan2__table tr.is-hl td { color: #fff; }
.w-plan2__table tr.is-hl td:first-child { padding-left: 8px; border-radius: 6px 0 0 6px; }
.w-plan2__table tr.is-hl td:last-child { padding-right: 8px; border-radius: 0 6px 6px 0; }
.w-plan2__table tr.is-hl .w-plan2__dot { background: #fff; }

/* Компьютер: план на высоту экспликации, картинка целиком, миниатюры поверх. */
@media (min-width: 990px) {
    .w-plan2__grid:not(.w-plan2__grid--wide) { align-items: stretch; height: var(--plan-h, 640px); }
    .w-plan2__expl { position: sticky; top: 20px; align-self: start; }
    .w-plan2__grid:not(.w-plan2__grid--wide) .w-plan2__box { min-height: 0; overflow: hidden; }

    .w-plan2__grid:not(.w-plan2__grid--wide) .w-plan2__view:not([hidden]) {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }

    .w-plan2__grid:not(.w-plan2__grid--wide) .w-plan2__big { flex: 1; min-height: 0; }

    .w-plan2__grid:not(.w-plan2__grid--wide) .w-plan2__img {
        position: absolute;
        inset: 0;
        height: 100%;
        object-fit: contain;
    }

    .w-plan2__thumbs {
        position: absolute;
        left: 12px;
        bottom: 12px;
        z-index: 2;
        display: flex;
        margin: 0;
    }

    .w-plan2__thumb {
        width: 104px;
        height: 66px;
        border-color: rgba(255, 255, 255, .9);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    }

    .w-plan2__thumb img { height: 100%; aspect-ratio: auto; }
    .w-plan2__thumb[aria-pressed="true"] { border-color: var(--w-green); }
}

/* =====================================================================
   Интерьеры
   ===================================================================== */

.w-int2__grid {
    display: grid;
    grid-template-areas: 'label top' 'side main';
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    gap: 12px 22px;
    align-items: start;
    margin-top: 22px;
}

@media (min-width: 1500px) {
    .w-int2__grid {
        width: min(1760px, calc(100vw - 64px));
        margin-left: calc(50% - min(1760px, calc(100vw - 64px)) / 2);
    }
}

.w-int2__label { grid-area: label; align-self: end; padding: 0 4px 10px; color: #8b8b8b; font: 600 15px var(--w-font); }
.w-int2__top { grid-area: top; align-self: end; min-width: 0; }
.w-int2__side { position: sticky; top: 12px; grid-area: side; padding: 16px; border-radius: 16px; background: #fff; }
.w-int2__main { grid-area: main; min-width: 0; }

.w-int2__plan { position: relative; overflow: hidden; border-radius: 8px; }
.w-int2__plan-img { display: block; width: 100%; height: auto; }

.w-int2__plan button {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(29, 96, 71, 0);
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.w-int2__plan button:hover { background: rgba(29, 96, 71, .18); }
.w-int2__plan button[aria-pressed="true"] { background: rgba(29, 96, 71, .28); box-shadow: inset 0 0 0 2px var(--w-green); }

.w-int2__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }

.w-int2__list button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--w-ink);
    font: 500 15px var(--w-font);
    text-align: left;
    cursor: pointer;
}

.w-int2__list button span:last-child { color: #8b8b8b; white-space: nowrap; }
.w-int2__list button:hover { background: #f3f3f3; }
.w-int2__list button[aria-pressed="true"] { background: var(--w-green); color: #fff; }
.w-int2__list button[aria-pressed="true"] span:last-child { color: #d7e6df; }

.w-int2__group {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px 4px;
    color: #8b8b8b;
    font: 600 12px var(--w-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.w-int2__sub button { padding-left: 22px; font-size: 14px; }

.w-int2__sub button span:first-child::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    background: #c9c9c9;
}

.w-int2__sub button[aria-pressed="true"] span:first-child::before { background: #fff; }

.w-int2__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.w-int2__pills:last-child { margin-bottom: 0; }
.w-int2__pills[hidden] { display: none; }

.w-int2__pills button {
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #e6e6e6;
    color: var(--w-ink);
    font: 600 14px var(--w-font);
    cursor: pointer;
}

.w-int2__pills button[aria-pressed="true"] { background: var(--w-green); color: #fff; }

.w-int2__pills--walls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 12px;
    border: 1px solid #cfe3d8;
    border-radius: 14px;
    background: #eef5f1;
    scrollbar-width: thin; scrollbar-color: var(--w-scroll-thumb) var(--w-scroll-track);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.w-int2__pills--walls button,
.w-int2__plab { flex: 0 0 auto; }

.w-int2__pills--walls button {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #d6d6d6;
    background: #fff;
    font-size: 13px;
}

.w-int2__pills--walls button[aria-pressed="true"] { border-color: #21302a; background: #21302a; color: #fff; }
.w-int2__plab { align-self: center; margin-right: 4px; color: var(--w-green); font: 700 15px var(--w-font); }
.w-int2__plab::before { content: "✦ "; }
.w-int2__rooms { display: none; }

.w-int2__stage {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
    aspect-ratio: 3 / 2;
    touch-action: pan-y;
}

/* На компьютере кадр во всю ширину, но ниже: блок остаётся 3:2 (точки товаров стоят
   в процентах кадра и не съезжают), а сверху и снизу срезается по 8% высоты —
   clip-path плюс отрицательные поля (8% от высоты 3:2 = 5,33% ширины). */
@media (min-width: 990px) {
    /* Срез по 12% сверху и снизу (12% от высоты 3:2 = 8% ширины): кадр ≈ 2:1, чтобы фото,
       миниатюры и сумма по комнате вставали в один экран. */
    .w-int2__stage { margin-block: -8% -8%; clip-path: inset(12% 0 12% 0 round 16px); border-radius: 0; }
    .w-int2__stage .w-int2__count { top: calc(12% + 14px); }
    /* Точки у самого верха и низа кадра попадали под срез — прижимаем их в видимую полосу. */
    .w-int2__stage .w-int2__dot { top: clamp(14%, var(--y, 50%), 86%) !important; }
    .w-int2__stage .w-arrow2 { top: 50%; }
    .w-project2 .w-int2__thumbs button { width: 92px; }
    .w-int2__thumbs { position: relative; z-index: 1; }
}
/* Кадры 16:9 (у «Праги»): блок той же пропорции — точки в процентах кадра не съезжают;
   кадр и так ≈ 2:1, срез сверху и снизу на компьютере не нужен. */
.w-int2--wide .w-int2__stage { aspect-ratio: 16 / 9; }
@media (min-width: 990px) {
    .w-int2--wide .w-int2__stage { margin-block: 0; clip-path: none; border-radius: 16px; }
    .w-int2--wide .w-int2__stage .w-int2__count { top: 14px; }
    .w-int2--wide .w-int2__stage .w-int2__dot { top: var(--y, 50%) !important; }
}
.w-sect2__title .w-int2__title-d, .w-sect2__title .w-int2__title-m { color: inherit; }
.w-int2__title-m { display: none; }
@media (max-width: 989px) {
    .w-int2__title-d { display: none; }
    .w-int2__title-m { display: inline; }
}

.w-int2__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }

.w-int2__count {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 4;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font: 600 13px var(--w-font);
}

.w-int2__count:empty { display: none; }

.w-int2__dot {
    position: absolute;
    z-index: 3;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6), 0 2px 8px rgba(0, 0, 0, .18);
    cursor: pointer;
}

.w-int2__dot::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: rgba(255, 255, 255, .95); }
.w-int2__dot.is-on { background: rgba(29, 96, 71, .55); }
@media (hover: hover) { .w-int2__dot:hover { background: rgba(29, 96, 71, .55); } }

.w-int2__pop {
    position: absolute;
    z-index: 5;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
    color: var(--w-ink);
    font: 500 13px/1.35 var(--w-font);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s;
}

.w-int2__pop.is-on { opacity: 1; }
.w-int2__pop span { color: #8b8b8b; }
.w-int2__pop b { display: block; margin-top: 2px; color: var(--w-green); font-size: 16px; }

.w-int2__thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--w-scroll-thumb) var(--w-scroll-track); }

.w-int2__thumbs button {
    position: relative;
    flex: 0 0 auto;
    width: 108px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: none;
    opacity: .65;
    cursor: pointer;
    transition: opacity .15s;
}

.w-int2__thumbs img { display: block; width: 108px; height: 72px; object-fit: cover; }

.w-int2__thumbs span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 6px 4px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    color: #fff;
    font: 600 11px var(--w-font);
    text-align: left;
}

.w-int2__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 0 0 3px var(--w-green); }
.w-int2__thumbs button:hover { opacity: 1; }

.w-int2__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
}

.w-int2__sum { font: 500 16px var(--w-font); }
.w-int2__sum b { margin-left: 4px; color: var(--w-green); font-size: 22px; white-space: nowrap; }
.w-int2__sum small { display: block; margin-top: 2px; color: #8b8b8b; font-size: 13px; }

.w-int2__more {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
    font: 600 14px var(--w-font);
    cursor: pointer;
}

.w-int2__more[hidden],
.w-int2__items[hidden] { display: none; }

.w-int2__items { margin: 8px 0 0; padding: 6px 18px 12px; border-radius: 14px; background: #fff; columns: 2; column-gap: 28px; list-style: none; }

.w-int2__items li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    break-inside: avoid;
}

.w-int2__items a { color: var(--w-ink); text-decoration: underline; text-decoration-color: #cfcfcf; text-underline-offset: 3px; }
.w-int2__items li span { color: #8b8b8b; white-space: nowrap; }
.w-int2__items li.is-alt,
.w-int2__items li.is-alt a { color: #8b8b8b; }

.w-int2__note { margin: 10px 2px 0; color: #6b6b6b; font-size: 14px; line-height: 1.45; }

.w-int2__house {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 24px;
    align-items: center;
    margin-top: 22px;
    padding: 22px 26px;
    border-radius: 16px;
    background: var(--w-green);
    color: #fff;
}

.w-int2__house-title { margin: 0; font: 400 30px/1.05 var(--w-font-display); letter-spacing: .04em; text-transform: uppercase; }
.w-int2__house-text { margin: 6px 0 0; color: #d7e6df; font-size: 15px; }
/* «Хочу так же — посчитать»: белая пилюля, заметная на зелёном, с ховером как у кнопок тёплого контура. */
.w-project2 .w-int2__house-btn { background: #fff; color: var(--w-green); }

.w-int2__tricks { margin-top: 14px; padding: 6px 22px; border-radius: 16px; background: #fff; }

.w-int2__tricks summary {
    display: flex;
    justify-content: space-between;
    align-items: center; /* текст по центру по высоте рядом с крупным «+» */
    padding: 14px 0;
    font: 600 17px var(--w-font);
    list-style: none;
    cursor: pointer;
}

.w-int2__tricks summary::-webkit-details-marker { display: none; }
.w-int2__tricks summary::after { content: '+'; color: var(--w-green); font-size: 22px; line-height: 1; }
.w-int2__tricks[open] summary::after { content: '–'; }

.w-int2__tricks ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0 0 14px; padding: 0; list-style: none; }
.w-int2__tricks li { padding-top: 10px; border-top: 1px solid #f0f0f0; font-size: 14px; line-height: 1.4; }
.w-int2__tricks li b { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.w-int2__tricks li b span { color: var(--w-green); white-space: nowrap; }
.w-int2__tricks li small { color: #8b8b8b; }

/* =====================================================================
   3D-тур
   ===================================================================== */

.w-tour2__box {
    position: relative;
    /* В один экран вместе с заголовком: экран минус шапка раздела (~200px). */
    height: clamp(380px, calc(100vh - 200px), 720px);
    margin-top: 26px;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
}

.w-tour2__img,
.w-tour2__ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.w-tour2__img { will-change: transform; }
.w-tour2__ghost { z-index: 1; }

.w-tour2__where {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 40px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.w-tour2__where:empty { display: none; }
.w-tour2__hots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.w-tour2__hot {
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px 10px 12px;
    border: 0;
    border-radius: 40px;
    background: rgba(255, 255, 255, .92);
    color: var(--w-ink);
    font: 700 14px var(--w-font);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
}

.w-tour2__hot::before {
    content: '';
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--w-green) center / 14px no-repeat;
    box-shadow: 0 0 0 6px rgba(29, 96, 71, .25);
    animation: w-tour2-pulse 1.8s infinite;
}

.w-tour2__hot--up::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }
.w-tour2__hot--l::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.w-tour2__hot--r::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.w-tour2__hot--back::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
.w-tour2__hot:focus-visible { outline: 3px solid #c0a380; outline-offset: 2px; }

@keyframes w-tour2-pulse {
    50% { box-shadow: 0 0 0 12px rgba(29, 96, 71, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .w-tour2__hot::before { animation: none; }
}

.w-tour2__map { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

.w-tour2__map button {
    height: 40px;
    padding: 0 18px;
    border: 1px solid #ececec;
    border-radius: 40px;
    background: #fff;
    color: var(--w-ink);
    font: 500 15px var(--w-font);
    cursor: pointer;
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-tour2__map button:hover,
.w-tour2__map button[aria-pressed="true"] { border-color: var(--w-green); background: var(--w-green); color: #fff; }

/* Компьютер: комнаты — поверх кадра внизу, на мягком затемнении. */
@media (min-width: 990px) {
    .w-tour2__box::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: 30%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
        pointer-events: none;
    }

    .w-tour2__map { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 3; margin: 0; }
    /* Переходы не опускаются в полосу комнат внизу: иначе кнопка «назад» наезжала на пилюли. */
    .w-tour2__hot { top: min(var(--y, 50%), 72%); }
    .w-tour2__map button { border: 0; }
}

/* =====================================================================
   «Тёплый контур»
   ===================================================================== */

.w-warm__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: stretch;
    margin-top: 24px;
}

.w-warm__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 34px;
    margin: 0;
    padding: 10px 26px;
    border-radius: 16px;
    background: #fff;
    list-style: none;
}

.w-warm__item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 2px 10px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.w-warm__item::before {
    content: '';
    grid-row: span 2;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--w-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.w-warm__item:last-child { border-bottom: 0; }
@media (min-width: 990px) {
    /* Две колонки: без линии под последним рядом. */
    .w-warm__item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .w-warm__card .w-warm__facts { margin-bottom: auto; padding-bottom: 22px; }
}
.w-warm__item-title { font: 600 16px/1.3 var(--w-font); }
.w-warm__item-text { color: #6b6b6b; font-size: 14px; line-height: 1.45; }

.w-warm__card {
    /* Карточка во всю высоту списка, кнопки прижаты к низу. */
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 16px;
    background: var(--w-green);
    color: #fff;
}

.w-warm__kicker { margin: 0; color: #cfe0d8; font-size: 14px; }
.w-warm__price { margin: 10px 0 6px; font: 400 54px/1 var(--w-font-display); letter-spacing: .02em; white-space: nowrap; }

.w-warm__facts { display: grid; gap: 8px; margin: 16px 0 22px; padding: 0; font-size: 15px; list-style: none; }
.w-warm__facts li::before { content: '— '; color: #9fc3b2; }

.w-warm__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 56px;
    margin: 10px 0 0;
    padding: 0 8px 0 22px;
    border-radius: 999px;
    font: 600 17px var(--w-font);
    cursor: pointer;
}

.w-warm__btn::after {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--w-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.w-warm__btn--white { border: 0; background: #fff; color: #143528; }
.w-warm__btn--outline { border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; }

.w-warm__btn--outline::after {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D6047' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Наведение заметно: кнопка чуть приподнимается, фон меняется, стрелка уезжает вправо и кружок растёт. */
.w-warm__btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.w-warm__btn::after { transition: transform .25s ease, background-color .2s; }
/* Ховер — как у всех кнопок-пилюль сайта (layout-v2.css): меняется фон, стрелка сдвигается на 3px. */
.w-warm__btn:hover::after { transform: translateX(3px); }
.w-warm__btn--white:hover { background: #fff; }
.w-warm__btn--white:hover::after { background-color: #f0f0f0; }
.w-warm__btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.w-warm__btn:focus-visible { outline: 3px solid #c0a380; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .w-warm__btn, .w-warm__btn::after { transition: none; }
    .w-warm__btn:hover::after { transform: none; }
}
.w-warm__note { margin: 12px 4px 0; color: #8b8b8b; font-size: 13px; line-height: 1.45; }

/* =====================================================================
   «С нами надёжно» — заголовок v2, белые карточки
   ===================================================================== */

.w-project2 .w-conditions { margin-top: 0; padding-top: var(--w-section-gap); }
.w-project2 .w-conditions__title { margin-bottom: 26px; }
.w-project2 .w-conditions__item { border-radius: 10px; background: #fff; }
.w-project2 .w-conditions__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.w-project2 .w-conditions__icon { display: block; width: 72px; height: 72px; margin: -6px 0 10px; }
.w-project2 .w-conditions__more--in { align-self: center; margin-top: auto; padding-top: 12px; }

/* =====================================================================
   Похожие проекты — лента карточек каталога v2
   ===================================================================== */

.w-similar2__wrap { position: relative; margin-top: 28px; }

.w-similar2__track {
    display: flex;
    gap: 16px;
    /* Запас снизу под тень карточки при наведении (0 14px 30px ≈ 44px), иначе лента её обрезает;
       отрицательный margin возвращает вёрстку на место (28.10, Анастасия). */
    margin: -10px 0 -34px;
    padding: 10px 0 48px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.w-similar2__track::-webkit-scrollbar { display: none; }
.w-similar2__item { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.w-similar2__wrap .w-arrow2 { top: 40%; }

/* =====================================================================
   Описание проекта — белая карточка в самом низу
   ===================================================================== */

.w-desc2 { margin-top: var(--w-section-gap); padding: var(--w-card-pad); border-radius: 10px; background: #fff; }
.w-desc2__title { text-align: left; }
.w-desc2__text { margin-top: 24px; columns: 2; column-gap: 48px; }
.w-desc2__part > :first-child { margin-top: 0; }
/* Свёрнутое описание: первые строки с растворением, одной колонкой. */
/* Градиент свёрнутого текста гаснет плавно (layout.js W45Expand): доля «тумана» — регистрируемое свойство, его можно анимировать. */
@property --w-fade { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.w-desc2__text { --w-fade: 0%; transition: --w-fade .32s ease-out; -webkit-mask-image: linear-gradient(#000 calc(100% - var(--w-fade)), transparent); mask-image: linear-gradient(#000 calc(100% - var(--w-fade)), transparent); }
.w-desc2__text.is-clamped,
.w-desc2__text.is-collapsing { --w-fade: 45%; }
.w-desc2__text.is-clamped { columns: auto; max-height: 8.4em; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .w-desc2__text { transition: none; } }
.w-desc2__more { margin-top: 12px; padding: 0; border: 0; border-bottom: 1px dashed currentColor; background: none; color: var(--w-green); font: 600 15px var(--w-font); cursor: pointer; }
.w-desc2__more[hidden] { display: none; }

/* =====================================================================
   Нижнее меню телефона: звонок кружком с подписью
   ===================================================================== */

@media (max-width: 989px) {
    .w-page--v2 .w-mobile-menu {
        grid-template-columns: 1fr 92px 1fr;
        align-items: end;
        padding: 8px 18px calc(10px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
        overflow: visible;
    }

    .w-page--v2 .w-mobile-menu__item { gap: 5px; padding: 4px 0 0; color: var(--w-ink); font-size: 14px; font-weight: 600; line-height: 19px; }
    .w-page--v2 .w-mobile-menu__item .w-icon { width: 28px; height: 28px; color: var(--w-green); }

    .w-page--v2 .w-mobile-menu__call {
        position: relative;
        align-self: start;
        justify-self: center;
        width: 60px;
        height: 60px;
        margin-top: -30px;
        border: 3px solid #fff;
        box-shadow: 0 6px 16px rgba(29, 96, 71, .3);
        overflow: visible;
    }

    .w-page--v2 .w-mobile-menu__call::after {
        content: 'Позвонить';
        position: absolute;
        bottom: -29px;
        left: 50%;
        color: var(--w-ink);
        font: 600 14px/19px var(--w-font);
        white-space: nowrap;
        transform: translateX(-50%);
    }
}

/* =====================================================================
   1439 и ниже
   ===================================================================== */

@media (max-width: 1439px) {
    .w-sect2__title,
    .w-project2 .w-conditions__title { font-size: 48px; }
}

@media (max-width: 1199px) {
    .w-tabs2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   Телефон и планшет — до 989px
   ===================================================================== */

@media (max-width: 989px) {
    .w-project2 { padding-bottom: 60px; }

    .w-sect2__title,
    .w-project2 .w-conditions__title { font-size: 40px; }

    .w-head2 { padding-bottom: 0; }
    .w-head2__crumbs { margin-top: 16px; }
    .w-head2__title { margin: 16px 0 12px; font-size: 40px; }

    .w-info2 { margin-top: 10px; padding: 20px; }
    .w-info2__area { font-size: 34px; }
    .w-info2__label--extra,
    .w-info2__text--extra { display: none; }

    .w-tabs2,
    .w-sticky2 { display: none; }

    .w-adv2__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .w-adv2__item { justify-content: center; gap: 10px; padding: 18px 10px; }
    /* Вторая строка карточек — не длиннее двух строк на 360–390 px (26.10). */
    .w-adv2__title { font-size: clamp(15px, 4.2vw, 17px); line-height: 1.2; }
    .w-adv2__full { display: none; }
    .w-adv2__short { display: inline; }
    .w-adv2__text { display: none; }

    /* «Что входит» на телефоне — аккордеон карточками с иконками. */
    .w-project2 .w-inclusions__list { gap: 10px; margin-top: var(--w-group-gap); }
    .w-project2 .w-inclusion { padding: 0; border: 1px solid #e6e6e6; border-radius: 14px; background: #fff; transition: border-color .2s; }
    .w-project2 .w-inclusion.is-open { border-color: var(--w-green); }
    .w-project2 .w-inclusion__head { gap: 12px; padding: 12px; }

    .w-project2 .w-inclusion__name {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--w-ink);
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        text-transform: none;
    }

    .w-project2 .w-inclusion.is-open .w-inclusion__name { color: var(--w-green); }

    .w-inclusion__icon {
        display: grid;
        flex: none;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #f1f1f1;
        color: var(--w-green);
    }

    .w-inclusion__icon .w-inc-icon { width: 22px; height: 22px; }

    .w-project2 .w-inclusion__more {
        display: grid;
        flex: none;
        place-items: center;
        gap: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #f1f1f1;
        color: var(--w-ink);
        font-size: 0;
    }

    .w-project2 .w-inclusion.is-open .w-inclusion__more { background: var(--w-green); color: #fff; }
    .w-project2 .w-inclusion__body { margin: 0; padding: 4px 16px 18px; }
    .w-project2 .w-inclusion__heading { font-size: 16px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
    .w-project2 .w-inclusions__cta { max-width: none; }

    .w-cfg__grid,
    .w-plan2__grid,
    .w-warm__grid { grid-template-columns: minmax(0, 1fr); }

    .w-cfg__spec-title,
    .w-cfg__rows { display: none; }
    .w-cfg__specs { padding-top: 0; border-top: 0; }
    .w-cfg__calc { margin-top: 0; }

    .w-int2__grid { grid-template-areas: 'top' 'main'; grid-template-columns: 1fr; gap: 12px; }
    .w-int2__side,
    .w-int2__label,
    .w-int2__thumbs { display: none; }

    .w-int2__rooms,
    .w-int2__pills {
        display: flex;
        flex-wrap: nowrap;
        margin-left: calc(-1 * var(--w-gutter, 16px));
        margin-right: calc(-1 * var(--w-gutter, 16px));
        padding: 0 var(--w-gutter, 16px) 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .w-int2__pills button { flex: 0 0 auto; }
    .w-int2__stage { border-radius: 12px; }
    .w-int2__stage .w-arrow2 { width: 40px; height: 40px; }
    .w-int2__stage .w-arrow2--prev { left: 8px; }
    .w-int2__stage .w-arrow2--next { right: 8px; }
    .w-int2__dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
    .w-int2__dot::after { inset: 7px; }
    .w-int2__pop { max-width: 200px; padding: 8px 11px; font-size: 12px; }
    .w-int2__pop b { font-size: 14px; }
    .w-int2__items { padding: 4px 14px 10px; columns: 1; }
    .w-int2__house { grid-template-columns: 1fr; padding: 18px; }
    .w-int2__house-title { font-size: 26px; }
    .w-int2__tricks { padding: 4px 16px; }
    .w-int2__tricks ol { grid-template-columns: 1fr; }

    .w-tour2__box { height: auto; aspect-ratio: 3 / 2; }
    .w-tour2__hot { gap: 6px; min-height: 36px; padding: 6px 12px 6px 6px; font-size: 12px; white-space: nowrap; }
    .w-tour2__hot::before { box-shadow: none; }
    .w-tour2__hot--l { left: 10px; transform: translate(0, -50%); }
    .w-tour2__hot--r { left: auto; right: 10px; transform: translate(0, -50%); }
    .w-tour2__hot--back { top: auto; bottom: 12px; left: 50%; transform: translateX(-50%); }
    .w-tour2__map button { height: 36px; padding: 0 14px; font-size: 13px; }

    .w-warm__list { grid-template-columns: 1fr; padding: 4px 18px; }
    .w-warm__card { position: static; }
    .w-warm__price { font-size: 44px; }

    .w-similar2__item { flex-basis: 84%; }
    .w-similar2__wrap .w-arrow2 { display: none; }

    .w-desc2__text { columns: 1; }
}

/* Планы этажей из админки (без пакета): чертёж целиком, не выше экрана. */
.w-plan2__grid--wide .w-plan2__img {
    width: auto;
    max-width: 100%;
    max-height: min(640px, 80vh);
    margin: 0 auto;
}

/* «Как сделать интерьер дороже»: подпись под заголовком, комната в строке приёма, приём — ссылка на кадр. */
.w-int2__tricks-lead { margin: 4px 0 14px; color: #6d6d6d; font-size: 14px; }
.w-int2__tricks small em { color: var(--w-green); font-style: normal; font-weight: 600; }
.w-int2__tricks [data-int2-go] { cursor: pointer; border-radius: 8px; transition: background-color .15s; }
.w-int2__tricks [data-int2-go]:hover { background: #f3f7f4; }
.w-int2__tricks [data-int2-go]:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

/* «Что входит» в v2: текст панели крупнее — 15px читался тяжело. */
@media (min-width: 990px) {
    .w-project2 .w-cost__heading { font-size: 20px; }
    .w-project2 .w-cost__list { font-size: 16px; line-height: 1.45; }
}

/* Варианты в одну строку, листаются стрелками ‹ › (полосу прокрутки не находили). */
.w-int2__vwrap { position: relative; display: flex; align-items: center; gap: 6px; }
.w-int2__vwrap > .w-int2__pills { flex: 1; min-width: 0; }
.w-project2 .w-int2__pills--walls { scrollbar-width: none; -webkit-mask-image: none; mask-image: none; scroll-behavior: smooth; }
.w-project2 .w-int2__pills--walls::-webkit-scrollbar { display: none; }
.w-int2__vstep {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid #cfe3d8; border-radius: 50%; background: #fff; color: var(--w-green);
    font: 700 22px/1 var(--w-font); cursor: pointer;
}
.w-int2__vstep[hidden] { display: none; }
.w-int2__vstep:disabled { opacity: .35; cursor: default; }

/* «Посетить объекты с прорабом» в v2: белая карточка, фото справа, кнопка-пилюля. */
.w-project2 .w-visit { margin-top: var(--w-section-gap); }
.w-project2 .w-visit__btn { height: 56px; padding: 0 6px 0 24px; }
.w-project2 .w-int2__house-btn::after { background-color: var(--w-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
@media (hover: hover) {
    /* Белая пилюля на зелёном: фон не красим (20.10 — без зелёной подложки), темнеет только кружок. */
    .w-project2 .w-int2__house-btn:hover { background: #fff; }
    .w-project2 .w-int2__house-btn:hover::after { background-color: var(--w2-green-hover, #154535); }
}

/* Экскурсия: фото невысокое — блок в полэкрана, текст по центру по вертикали. */
@media (min-width: 990px) {
    .w-project2 .w-visit { align-items: center; padding: 40px 50px; }
    .w-project2 .w-visit__media { height: 340px; }
}



/* Интерьеры: переключатель «Стильный / Спокойный» ближе к фото (20.10). */
.w-int2__top .w-int2__pills { margin-bottom: 0; }
.w-int2__grid { row-gap: 10px; }
.w-int2__label { padding-bottom: 4px; }

/* =====================================================================
   Интерьеры на телефоне (26.10, Анастасия: «каша, неудобно, непонятно»)
   1) комнаты — одна лента с затуханием и шевроном справа, со щелчком по
      кнопкам (scroll-snap), один раз «подмигивает» при показе;
   2) стиль — компактный переключатель «Стиль: Стильный | Спокойный»,
      не похожий на ленту комнат;
   3) отделка стены — плашка на фото и шторка снизу вместо ленты со стрелками;
   4) счётчик на фото — мельче.
   ===================================================================== */
.w-int2__wallchip,
.w-int2__sheet { display: none; }
.w-int2__seglab { display: none; }

@media (max-width: 989px) {
    .w-int2__roomswrap { position: relative; }
    .w-int2__rooms { scroll-snap-type: x proximity; scroll-padding: 0 var(--w-gutter, 16px); }
    .w-int2__rooms button { scroll-snap-align: start; }
    .w-int2__roomswrap.is-scrollable:not(.is-end) .w-int2__rooms {
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent calc(100% - 8px));
        mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent calc(100% - 8px));
    }
    .w-int2__roomswrap::after {
        content: '';
        position: absolute;
        top: 50%;
        right: calc(-1 * var(--w-gutter, 16px) + 6px);
        width: 28px;
        height: 28px;
        margin-top: -16px;
        border-radius: 50%;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D6047' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
    }
    .w-int2__roomswrap.is-scrollable:not(.is-end)::after { opacity: 1; }

    /* Стиль — сегментный переключатель, по ширине содержимого. */
    .w-int2__vwrap > .w-int2__pills--seg { flex: 0 0 auto; }
    .w-project2 .w-int2__pills--seg {
        display: inline-flex;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 3px;
        overflow: visible;
        border-radius: 999px;
        background: #fff;
        box-shadow: inset 0 0 0 1px #dfe5e2;
    }
    .w-int2__pills--seg .w-int2__seglab { display: inline; padding: 0 10px 0 9px; color: #6b6b6b; font: 600 12px var(--w-font); }
    .w-int2__pills--seg button { min-height: 32px; padding: 6px 14px; background: transparent; font-size: 13px; }
    .w-int2__pills--seg button[aria-pressed="true"] { background: var(--w-green); color: #fff; }

    /* Лента отделки над фото не нужна — её заменяют плашка и шторка. */
    .w-int2__vwrap.is-walls { display: none; }

    .w-int2__wallchip {
        position: absolute;
        left: 10px;
        bottom: 10px;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: calc(100% - 20px);
        padding: 7px 12px;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
        color: var(--w-green);
        font: 700 13px/1.2 var(--w-font);
        text-align: left;
        cursor: pointer;
    }
    .w-int2__wallchip[hidden] { display: none; }
    .w-int2__wallchip b { color: var(--w-ink); font-weight: 600; font-size: 12px; }

    .w-int2__sheet {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: flex;
        align-items: flex-end;
        background: rgba(0, 0, 0, 0);
        transition: background-color .2s;
    }
    .w-int2__sheet[hidden] { display: none; }
    .w-int2__sheet.is-on { background: rgba(0, 0, 0, .45); }
    .w-int2__sheet-box {
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
        padding: 16px var(--w-gutter, 16px) calc(20px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
        background: #fff;
        transform: translateY(100%);
        transition: transform .22s ease-out;
    }
    .w-int2__sheet.is-on .w-int2__sheet-box { transform: none; }
    .w-int2__sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 17px var(--w-font); color: var(--w-ink); }
    .w-int2__sheet-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f1f1; color: var(--w-ink); font: 400 24px/1 var(--w-font); cursor: pointer; }
    .w-int2__sheet-sub { margin: 6px 0 12px; color: #6b6b6b; font-size: 13px; }
    .w-int2__sheet-list { display: grid; gap: 8px; }
    .w-int2__sheet-list button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
        padding: 10px 14px;
        border: 1px solid #dfe5e2;
        border-radius: 12px;
        background: #fff;
        color: var(--w-ink);
        font: 600 14px var(--w-font);
        text-align: left;
        cursor: pointer;
    }
    .w-int2__sheet-list button b { flex: none; color: var(--w-green); font-weight: 700; }
    .w-int2__sheet-list button[aria-pressed="true"] { border-color: var(--w-green); box-shadow: inset 0 0 0 1px var(--w-green); background: #eef5f1; }

    .w-int2__count { left: 10px; top: 10px; padding: 4px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .w-int2__sheet, .w-int2__sheet-box { transition: none; }
}
