/*
 * Страница проекта. Контрольные ширины макета: 1920, 1440, 990, 375.
 * Сверху вниз: hero, слайдер + карточка характеристик, «Что входит
 * в стоимость дома», «Хочу этот дом», «Подберём для вас проект».
 */

/* --- Hero: фото на всю ширину, название внизу по центру --- */
.w-project-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 851px;
    overflow: hidden;
    background: #1f3f31;
    color: #fff;
}

.w-project-hero--plain { height: 420px; }

.w-project-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

.w-project-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55) 100%);
}

.w-project-hero .w-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 65px;
}

/* Крошки — как в каталоге (14px, «Главная / Проекты / …»), но поверх фото:
   белые, текущий пункт приглушён. Отступ сверху — как у крошек каталога. */
.w-project-hero__crumbs {
    margin-top: 157px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.w-project-hero__crumbs .w-crumbs__link { color: inherit; text-decoration: none; transition: color var(--w-ease); }
.w-project-hero__crumbs .w-crumbs__current { color: rgba(255, 255, 255, .6); }

.w-project-hero__title {
    margin: 0;
    font-family: var(--w-font-display);
    font-size: 100px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

/* --- Слайдер и карточка характеристик --- */
.w-project-top {
    display: grid;
    grid-template-columns: 1fr 421px;
    gap: 20px;
    align-items: stretch;
    /*
     * Высота из макета — минимальная: проекту со всеми помещениями
     * карточке характеристик нужно больше, и при жёсткой высоте блок
     * переполнялся и наезжал на вкладки под ним.
     */
    min-height: 661px;
    margin-top: 30px;
}


/*
 * Колонка медиа: галерея и лента миниатюр под ней. Высоту задаёт сетка
 * .w-project-top, галерея забирает всё, что осталось от ленты.
 */
.w-project-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    min-height: 0;
}

.w-gallery {
    /*
     * Размер галереи — только от сетки: без contain содержимое слайдов
     * (фото в полный рост) раздувало бы строку выше макета.
     */
    contain: size;
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #e9e9e9;
    /* Точки Swiper — белые, как в макете; неактивные полупрозрачные. */
    --swiper-pagination-color: #fff;
    --swiper-pagination-bullet-inactive-color: #fff;
    --swiper-pagination-bullet-inactive-opacity: .55;
    --swiper-pagination-bullet-size: 15px;
    --swiper-pagination-bullet-horizontal-gap: 4px;
    --swiper-pagination-bottom: 20px;
}

/* Слайд с зумом — курсор-лупа: клик открывает просмотр во весь экран. */
.w-gallery__slide[data-fancybox] { cursor: zoom-in; }

.w-gallery__zoom[hidden] { display: none; }

/*
 * Лента миниатюр — как у ориентира: те же слайды в том же порядке.
 * Swiper со slidesPerView: auto — ширину миниатюры задаёт CSS,
 * активная встаёт в середину (project.js).
 */
.w-thumbs { flex: none; width: 100%; }

.w-thumbs__item {
    position: relative;
    flex: none;
    width: 140px;
    height: 90px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #e9e9e9;
    cursor: pointer;
}

/* Рамка активной — псевдоэлементом, чтобы не сдвигать картинку. */
.w-thumbs__item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 3px solid transparent;
    border-radius: 8px;
    pointer-events: none;
    transition: border-color .2s ease;
}

.w-thumbs__item.is-active::after { border-color: var(--w-green); }
.w-thumbs__item:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

.w-thumbs__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* План не кадрируем: срезанный чертёж на миниатюре не узнать. */
.w-thumbs__item--plan { background: #fff; }
.w-thumbs__item--plan .w-thumbs__img { object-fit: contain; padding: 6px; }

.w-thumbs__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, .55);
    color: #212121;
    text-align: center;
}

.w-thumbs__floor { font-size: 15px; font-weight: 700; text-transform: uppercase; }
.w-thumbs__note { font-size: 11px; line-height: 1.1; }

/* Видео — значок воспроизведения на затемнении. */
.w-thumbs__play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.w-thumbs__play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    transform: translate(-35%, -50%);
}

.w-thumbs__item--card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--w-green);
}

.w-thumbs__text {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

/* Трек и жесты — Swiper (swiper.css): горизонталь ему, вертикаль странице. */
.w-gallery__slide { height: 100%; }
.w-gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

.w-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #212121;
    transform: translateY(-50%);
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-gallery__arrow--prev { left: 20px; }
.w-gallery__arrow--next { right: 20px; }
.w-gallery__arrow .w-icon--chevron { width: 14px; height: 14px; }
.w-gallery__arrow--prev .w-icon--chevron { transform: rotate(90deg); }
.w-gallery__arrow--next .w-icon--chevron { transform: rotate(-90deg); }
.w-gallery__arrow:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

/*
 * Кнопка «во весь экран» — в углу галереи, как у ориентира. На мобильном
 * прячем: там фото и так во всю ширину, а палец закрывает угол.
 */
/* Правый угол галереи: сердечко «сохранить» и лупа в одну строку. */
.w-gallery__tools {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Плашки «Популярный проект» и «Акция» — левый угол, как у ориентира. */
.w-gallery__badges {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.w-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.w-badge .w-icon--badge { width: 16px; height: 16px; flex: none; }
.w-badge--popular { background: linear-gradient(98deg, #3aa874 0%, #1d6646 120%); }
.w-badge--sale { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.w-badge--sale .w-icon--badge { color: #ff7a2f; }

.w-gallery__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #212121;
    cursor: pointer;
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-gallery__zoom:hover { background: #fff; color: var(--w-green); }
.w-gallery__zoom:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }
.w-gallery__zoom .w-icon--zoom { width: 20px; height: 20px; }

/* Точки рисует Swiper; цвет и размер — переменными у .w-gallery. */
.w-gallery__dots .swiper-pagination-bullet:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

.w-specs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 30px 20px;
    border-radius: 10px;
    background: #fff;
}

/* Сетка характеристик: две колонки, между ячейками пунктирные линии. */
.w-specs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
}

.w-specs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 6px;
    border-bottom: 1px dashed #d3d3d3;
    text-align: center;
}

.w-specs__item:nth-child(odd) { border-right: 1px dashed #d3d3d3; }
.w-specs__item:nth-child(-n+2) { padding-top: 0; }
.w-specs__item:nth-last-child(-n+2) { border-bottom: 0; }
.w-specs__item:last-child:nth-child(odd) { border-right: 0; }

.w-specs__label {
    margin: 0;
    color: #6d6d6d;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.w-specs__value {
    margin: 0;
    color: var(--w-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.w-specs__value sup { font-size: .645em; line-height: 0; vertical-align: .35em; }
.w-specs__item--accent .w-specs__value { color: var(--w-green); }

.w-specs__offer { display: flex; flex-direction: column; gap: 30px; }

.w-specs__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 10px;
}

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

.w-specs__price--request { font-size: 36px; }
.w-specs__old-price { color: #9a9a9a; font-size: 20px; font-weight: 600; }

.w-specs__actions { display: flex; flex-direction: column; gap: 14px; }

.w-specs__btn { width: 100%; height: 62px; padding: 0 30px; font-size: 26px; }

/* Контурная кнопка: зелёная рамка и текст, при наведении заливается. */
.w-button--outline {
    border: 1px solid var(--w-green);
    background: transparent;
    color: var(--w-green);
}

/* План этажа — чертёж: на белом, целиком, без обрезки; подпись в углу. */
.w-gallery__slide--plan { background: #fff; }
.w-gallery__slide--plan .w-gallery__img { object-fit: contain; padding: 30px 30px 60px; }

.w-gallery__caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 14px;
    border-radius: 40px;
    background: rgba(33, 33, 33, .72);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.w-gallery__slide { position: relative; }
.w-gallery__slide--plan .w-gallery__caption { background: var(--w-green); }

.w-gallery__slide--video { background: #111; }
.w-gallery__video { display: block; width: 100%; height: 100%; border: 0; }

/* --- Слайды из макета: ипотека с банками и офис города --- */
.w-gallery__slide--card { background: #fff; }

.w-banks {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 46px 40px 40px;
    color: #1b1f1b;
    text-align: center;
}

.w-banks__title {
    margin: 0;
    font-family: var(--w-font-display);
    font-size: 55px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.w-banks__badge {
    margin: 8px 0 0;
    padding: 9px 18px;
    background: var(--w-green);
    color: #fff;
    font-family: var(--w-font-display);
    font-size: 39px;
    line-height: 1;
    text-transform: uppercase;
}

.w-banks__grid {
    display: grid;
    grid-template-columns: repeat(3, 267px);
    gap: 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.w-banks__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 163px;
    border: 1.5px solid var(--w-green);
    border-radius: 11px;
    background: rgba(40, 142, 98, .06);
}

.w-banks__logo { display: block; max-width: 70%; max-height: 62%; object-fit: contain; }
.w-banks__logo--sber, .w-banks__logo--vbrr { max-width: 100%; max-height: 92%; }
.w-banks__logo--metallinvest { max-width: 88%; max-height: 66%; }
.w-banks__logo--centrinvest { max-width: 78%; max-height: 80%; }

.w-banks__escrow {
    width: 836px;
    max-width: 100%;
    margin: auto 0 0;
    padding: 16px 0;
    border-top: 1px dashed #adadad;
    border-bottom: 1px dashed #adadad;
    font-family: var(--w-font-display);
    font-size: 40px;
    line-height: 1;
    text-transform: uppercase;
}

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

.w-office {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
    overflow: hidden;
    color: #1b1f1b;
}

/* Карта — повёрнутый кадр со скруглённым правым верхним углом, как в макете;
   слева и сверху растворяется в белый, чтобы текст читался. */
.w-office__map {
    position: absolute;
    left: 37.5%;
    top: -3%;
    width: 64.6%;
    aspect-ratio: 852 / 682;
    overflow: hidden;
    border-top-right-radius: 32%;
    transform: rotate(-8.59deg);
}

/* Живой виджет не наклоняем: косую карту неудобно двигать, а его подписи
   и бабл поиска висели бы под углом. Наклон — только у кадра из макета. */
.w-office__map:has(.w-office__map-frame) { top: 6%; border-radius: 10px; transform: none; }

.w-office__map-img, .w-office__map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.w-office__map::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 19%), linear-gradient(185deg, #fff 6%, rgba(255, 255, 255, 0) 24%);
}

.w-office__pin {
    position: absolute;
    left: 42%;
    top: 47%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    color: #636262;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.w-office__pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--w-green);
    box-shadow: 0 0 0 4px rgba(40, 142, 98, .25);
}

.w-office__title {
    position: relative;
    z-index: 1;
    max-width: 60%;
    margin: 0;
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.w-office__address {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 32px 0 0;
    color: #363636;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.w-office__phone {
    position: relative;
    z-index: 1;
    margin-top: auto;
    align-self: flex-start;
    color: var(--w-green);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

/* --- Что входит в стоимость дома --- */
/*
 * О проекте: описание из карточки товара, сразу под галереей.
 *
 * Две колонки — основной текст и дополнительный; при одном заполненном
 * поле колонка остаётся одна и текст не растягивается на всю ширину.
 */
/* Вкладки-якоря под первым экраном — обычные ссылки, как у ориентира. */
.w-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.w-tabs__item {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 40px;
    background: #fff;
    color: var(--w-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-tabs__item:hover { background: var(--w-green); color: #fff; }
.w-tabs__item:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

/* Якорь не прячется под шапку. */
#about, #tour, #video, #conditions { scroll-margin-top: 100px; }

/* Подсказка к площади: кружок «?», текст по наведению или нажатию. */
.w-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: none;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.w-hint__text {
    position: absolute;
    z-index: 5;
    width: 250px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
    color: #212121;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}

.w-hint:hover + .w-hint__text,
.w-hint:focus-visible + .w-hint__text,
.w-hint.is-open + .w-hint__text { opacity: 1; visibility: visible; }

.w-specs__label { position: relative; }

/*
 * «О проекте» свёрнуто до 160px с затуханием — как у ориентира.
 * Короткий текст (.is-short) показывается целиком, без затухания.
 */
.w-about__body {
    position: relative;
    max-height: 160px;
    overflow: hidden;
    transition: max-height .6s cubic-bezier(.22, .61, .36, 1);
}

.w-about__body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity .3s ease;
}

.w-about__body.is-open::after,
.w-about__body.is-short::after { opacity: 0; }

.w-about__body.is-short { max-height: none; }

.w-about__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 22px;
    height: 46px;
    border: 0;
    border-radius: 40px;
    background: var(--w-green);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--w-ease);
}

.w-about__more[hidden] { display: none; }
.w-about__more:hover { background: var(--w-green-hover); }
.w-about__more .w-icon--chevron { width: 12px; height: 12px; transition: transform .3s ease; }
.w-about__more.is-open .w-icon--chevron { transform: rotate(180deg); }

/* Преимущества — четыре плитки в ряд. */
.w-advantages { margin-top: 80px; }

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

.w-advantages__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px;
    border-radius: 10px;
    background: #fff;
}

.w-advantages__icon { color: var(--w-green); }
.w-advantages__title { color: var(--w-ink); font-size: 20px; font-weight: 600; line-height: 1.15; }
.w-advantages__text { color: #535353; font-size: 15px; line-height: 1.3; }

/* 3D-тур и видео — рамка 16:9 во всю ширину. */
.w-tour, .w-video { margin-top: 80px; }

.w-tour__title, .w-video__title, .w-conditions__title {
    margin: 0 0 30px;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.w-tour__title span, .w-video__title span, .w-conditions__title span { color: var(--w-green); }

.w-tour__frame, .w-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #e9e9e9;
}

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

/* «С нами надёжно» — три условия и ссылка на ипотеку. */
.w-conditions { margin-top: 80px; }

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

.w-conditions__item { padding: 30px 28px; border-radius: 10px; background: #fff; }
.w-conditions__heading { margin: 0; color: var(--w-ink); font-size: 24px; font-weight: 600; }
.w-conditions__sub { margin: 6px 0 0; color: var(--w-green); font-size: 15px; font-weight: 600; }
.w-conditions__text { margin: 14px 0 0; color: #535353; font-size: 15px; line-height: 1.4; }

.w-conditions__more {
    display: inline-block;
    margin-top: 24px;
    color: var(--w-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

@media (max-width: 989px) {
    .w-advantages, .w-tour, .w-video, .w-conditions { margin-top: 60px; }
    .w-advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .w-conditions__grid { grid-template-columns: 1fr; }
    .w-tour__title, .w-video__title, .w-conditions__title { font-size: 40px; }
}

@media (max-width: 767px) {
    .w-advantages, .w-tour, .w-video, .w-conditions { margin-top: 40px; }
    .w-advantages__grid { gap: 10px; }
    .w-advantages__item { padding: 18px 14px; }
    .w-advantages__title { font-size: 16px; }
    .w-tour__title, .w-video__title, .w-conditions__title { font-size: 32px; margin-bottom: 20px; }
    .w-tabs__item { height: 36px; padding: 0 14px; font-size: 14px; }
    .w-hint__text { width: 220px; }
}

/* Варианты отделки: кадр и переключатели цветом, как у ориентира. */
.w-finish { margin-top: 80px; }

.w-finish__title {
    margin: 0 0 30px;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

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

.w-finish__viewer { position: relative; overflow: hidden; border-radius: 10px; background: #e9e9e9; aspect-ratio: 1704 / 1020; }
.w-finish__slide { position: absolute; inset: 0; margin: 0; }
.w-finish__slide[hidden] { display: none; }
.w-finish__slide picture, .w-finish__img { display: block; width: 100%; height: 100%; }
.w-finish__img { object-fit: cover; }

.w-finish__name {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    color: var(--w-ink);
    font-size: 16px;
    font-weight: 600;
}

/* Переключатели — бруски цвета: панель отделки, а не точка. Лента
   прокручивается, если цветов больше, чем помещается. */
.w-finish__swatches {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.w-finish__swatches::-webkit-scrollbar { display: none; }

.w-finish__swatch {
    flex: none;
    width: 64px;
    height: 28px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--swatch);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Светлому цвету — обводка, иначе он растворяется на светлом фоне. */
.w-finish__swatch.is-light { border-color: #cfcfcf; }

.w-finish__swatch.is-active { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--w-green); }
.w-finish__swatch:focus-visible { outline: 2px solid var(--w-green); outline-offset: 4px; }

@media (max-width: 1439px) { .w-finish__title { font-size: 48px; } }
@media (max-width: 989px) { .w-finish { margin-top: 60px; } .w-finish__title { font-size: 40px; } }
@media (max-width: 767px) {
    .w-finish { margin-top: 40px; }
    .w-finish__title { font-size: 32px; margin-bottom: 20px; }
    .w-finish__swatch { width: 48px; height: 24px; }
}

#finish { scroll-margin-top: 100px; }

/* «Построенные дома» — лента карточек видеообзоров, как у ориентира. */
.w-built { margin-top: 80px; }

.w-built__title {
    margin: 0 0 30px;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

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

.w-built__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    margin: 0;
    padding: 0 0 6px;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; scrollbar-color: var(--w-scroll-thumb) var(--w-scroll-track);
}

.w-built__card { scroll-snap-align: start; }

.w-built__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #d9d9d9;
}

.w-built__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.w-built__media:hover .w-built__img { transform: scale(1.04); }
.w-built__media:focus-visible { outline: 2px solid var(--w-green); outline-offset: 3px; }

.w-built__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    transform: translate(-50%, -50%);
}

.w-built__play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--w-green);
    transform: translate(-35%, -50%);
}

.w-built__name { margin: 14px 0 0; color: var(--w-ink); font-size: 20px; font-weight: 600; line-height: 1.2; }
.w-built__text { margin: 6px 0 0; color: #535353; font-size: 15px; line-height: 1.35; }

.w-built__more {
    display: inline-block;
    margin-top: 24px;
    color: var(--w-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#built-houses { scroll-margin-top: 100px; }

@media (max-width: 1439px) { .w-built__title { font-size: 48px; } }
@media (max-width: 989px) {
    .w-built { margin-top: 60px; }
    .w-built__title { font-size: 40px; }
    .w-built__list { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
    .w-built { margin-top: 40px; }
    .w-built__title { font-size: 32px; margin-bottom: 20px; }
    .w-built__list { grid-auto-columns: 82%; gap: 12px; }
    .w-built__name { font-size: 17px; }
}

/* Камеры стройки — лента по три со стрелками, как у ориентира. */
.w-cameras { margin-top: 80px; }
.w-cameras__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }

.w-cameras__title {
    margin: 0;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

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

.w-cameras__all {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 22px;
    border: 1px solid var(--w-green);
    border-radius: 40px;
    color: var(--w-green);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--w-ease), color var(--w-ease);
}

.w-cameras__all:hover { background: var(--w-green); color: #fff; }

.w-cameras__viewport { position: relative; }

.w-cameras__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.w-cameras__track::-webkit-scrollbar { display: none; }
.w-cameras__track > * { scroll-snap-align: start; }

.w-cameras__arrow {
    position: absolute;
    top: calc(50% - 20px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--w-green);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.w-cameras__arrow:disabled { opacity: .35; cursor: default; }
.w-cameras__arrow--prev { left: -25px; }
.w-cameras__arrow--next { right: -25px; }
.w-cameras__arrow .w-icon--chevron { width: 14px; height: 14px; }
.w-cameras__arrow--prev .w-icon--chevron { transform: rotate(90deg); }
.w-cameras__arrow--next .w-icon--chevron { transform: rotate(-90deg); }

#cameras { scroll-margin-top: 100px; }

@media (max-width: 1439px) { .w-cameras__title { font-size: 48px; } }
@media (max-width: 989px) {
    .w-cameras { margin-top: 60px; }
    .w-cameras__title { font-size: 40px; }
    .w-cameras__track { grid-auto-columns: calc((100% - 20px) / 2); }
    .w-cameras__arrow { display: none; }
}
@media (max-width: 767px) {
    .w-cameras { margin-top: 40px; }
    .w-cameras__title { font-size: 32px; }
    .w-cameras__track { grid-auto-columns: 85%; gap: 12px; }
}

/* «Посетить объекты с прорабом» — текст, кнопка и фото прораба. */
.w-visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 80px;
    padding: 50px;
    border-radius: 10px;
    background: #fff;
}

.w-visit__title {
    margin: 0;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.w-visit__title span { color: var(--w-green); }
.w-visit__list { margin: 24px 0 0; padding-left: 20px; color: #535353; font-size: 17px; line-height: 1.45; }
.w-visit__list li + li { margin-top: 8px; }
.w-visit__city { margin: 20px 0 0; color: var(--w-green); font-weight: 600; }
.w-visit__btn { margin-top: 24px; height: 56px; padding: 0 36px; }
.w-visit__media { overflow: hidden; border-radius: 10px; }
.w-visit__img { display: block; width: 100%; height: 100%; object-fit: cover; }

#visit { scroll-margin-top: 100px; }

/* Прорабы в квизе экскурсии — карточка с фото, датой и временем. */
.w-quiz__options--people { grid-template-columns: repeat(2, 1fr); }
.w-quiz__person { align-items: center; }
.w-quiz__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.w-quiz__when { color: var(--w-green) !important; font-weight: 600; }

@media (max-width: 1439px) { .w-visit__title { font-size: 48px; } }
@media (max-width: 989px) {
    .w-visit { grid-template-columns: 1fr; margin-top: 60px; padding: 30px; }
    .w-visit__title { font-size: 40px; }
}
@media (max-width: 767px) {
    .w-visit { margin-top: 40px; padding: 24px 14px; }
    .w-visit__title { font-size: 32px; }
    .w-quiz__options--people { grid-template-columns: 1fr; }
}

.w-about { margin-top: 80px; }

.w-about__card {
    padding: 50px 60px 40px;
    border-radius: 10px;
    background: #fff;
}

.w-about__title {
    margin: 0;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

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

/* Две колонки одинаковой высоты: текст перетекает из левой в правую.
   Абзацу разрешено переходить в соседнюю колонку — иначе длинный абзац
   целиком оставался слева, и колонки выходили неравными. Не рвутся
   только пункты списков и заголовки (заголовок не остаётся без текста). */
.w-about__columns {
    columns: 2;
    column-gap: 40px;
    column-fill: balance;
    margin-top: 40px;
}

.w-about__columns li { break-inside: avoid; }
.w-about__columns h2,
.w-about__columns h3 { break-after: avoid; }
.w-about__part > :first-child { margin-top: 0; }
/* Основное описание часто без <p> — отделяем части так же, как абзацы. */
.w-about__part + .w-about__part { margin-top: 1em; }

.w-inclusions { margin-top: 80px; }

.w-inclusions__card {
    padding: 50px 60px 40px;
    border-radius: 10px;
    background: #fff;
}

.w-inclusions__title {
    margin: 0 auto;
    max-width: 651px;
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

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

/*
 * «Что входит» на компьютере — табы слева, панель справа, как у ориентира.
 * Панель фиксированной высоты: лишнее подрезает project.js с конца.
 * На телефоне панели нет — там аккордеон .w-inclusions__list.
 */
.w-cost {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 60px;
}

.w-cost__tabs { display: flex; flex-direction: column; gap: 8px; }

.w-cost__tab {
    padding: 16px 20px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    color: var(--w-ink);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--w-ease), color var(--w-ease), border-color var(--w-ease);
}

.w-cost__tab:hover { border-color: var(--w-green); }
.w-cost__tab.is-active { border-color: var(--w-green); background: var(--w-green); color: #fff; }
.w-cost__tab:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

.w-cost__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; height: 480px; }
.w-cost__panel[hidden] { display: none; }

.w-cost__media { position: relative; overflow: hidden; border-radius: 10px; }
.w-cost__media picture, .w-cost__img { display: block; width: 100%; height: 100%; }
.w-cost__img { object-fit: cover; }

.w-cost__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--w-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

/* Высоту задаёт панель; что не влезло — подрезается (не прокручивается). */
.w-cost__content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

.w-cost__heading { margin: 0 0 10px; color: var(--w-ink); font-size: 18px; font-weight: 600; }
.w-cost__heading:not(:first-child) { margin-top: 16px; }
.w-cost__list { margin: 0; padding-left: 18px; color: #535353; font-size: 15px; line-height: 1.4; }
.w-cost__item + .w-cost__item { margin-top: 6px; }
.w-cost__item b { color: var(--w-ink); font-weight: 600; }

/* Подрезка: сокращённый пункт — N строк с многоточием, лишний — скрыт. */
.w-cost__item.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--clamp, 3);
}

.w-cost .is-cut { display: none; }

.w-cost__more { margin: 16px 0 0; color: #535353; font-size: 14px; line-height: 1.35; }
.w-cost__btn { flex: none; align-self: flex-start; margin-top: auto; padding: 0 28px; height: 52px; }

@media (max-width: 1439px) {
    .w-cost { grid-template-columns: 240px 1fr; gap: 20px; }
    .w-cost__panel { gap: 20px; height: 440px; }
}

@media (max-width: 989px) {
    .w-cost { display: none; }
}

.w-inclusions__list { display: flex; flex-direction: column; gap: 24px; margin-top: 80px; }

.w-inclusion { border-bottom: 1px dashed #adadad; padding-bottom: 20px; }

.w-inclusion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: #212121;
    transition: color var(--w-ease);
}

.w-inclusion__head:focus-visible { outline: 2px solid var(--w-green); outline-offset: 4px; border-radius: 4px; }
.w-inclusion.is-open .w-inclusion__head { color: var(--w-green); }

.w-inclusion__name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.w-inclusion__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b1b1b1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.w-inclusion__more .w-icon--chevron { width: 10px; height: 8px; transition: transform var(--w-ease); }
.w-inclusion.is-open .w-inclusion__more .w-icon--chevron { transform: scaleY(-1); }

.w-inclusion__body { display: flex; flex-direction: column; gap: 26px; margin-top: 26px; }
/* display: flex перебил бы атрибут hidden — закрытая секция осталась бы видимой. */
.w-inclusion__body[hidden] { display: none; }

.w-inclusion__picture { display: block; }

.w-inclusion__img {
    display: block;
    width: 100%;
    height: 580px;
    border-radius: 10px;
    object-fit: cover;
}

.w-inclusion__group + .w-inclusion__group { margin-top: 12px; }

.w-inclusion__heading {
    margin: 0 0 12px;
    color: var(--w-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.w-inclusion__items {
    margin: 0;
    padding-left: 27px;
    color: #6d6d6d;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.w-inclusion__item + .w-inclusion__item { margin-top: 16px; }
.w-inclusion__item::marker { color: var(--w-ink); font-weight: 700; }
.w-inclusion__item-name { color: var(--w-ink); font-weight: 700; }
.w-inclusion__item-text { margin-left: .25em; }

.w-inclusion__item--list .w-inclusion__item-name { display: block; font-size: 20px; line-height: 1.4; }

.w-inclusion__sub {
    margin: 16px 0 0;
    padding-left: 24px;
    color: var(--w-ink);
    font-weight: 400;
    list-style: disc;
}

.w-inclusion__sub li + li { margin-top: 16px; }

.w-inclusions__cta { width: 100%; height: 62px; margin-top: 20px; padding: 0 30px; font-size: 26px; }

/* --- Подберём для вас проект --- */
.w-pick {
    position: relative;
    height: 817px;
    margin: 100px 0 64px;
    overflow: hidden;
    border-radius: 10px;
    background: #257351;
    color: #fff;
    text-align: center;
}

/* Кадр из макета: 1760×1003 в блоке 817, сдвинут на 28px вверх — дом
   сидит крупно внизу, а верх кадра с лесом уходит под зелёную заливку. */
.w-pick__img {
    position: absolute;
    left: 0;
    top: -3.4%;
    width: 100%;
    height: 122.8%;
    object-fit: cover;
    object-position: 50% 0;
}

/* Сверху фото гасится в зелёный: 5% сплошной, к 37% прозрачно — как в макете. */
.w-pick::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #257351 5%, rgba(37, 115, 81, 0) 37.255%);
}

.w-pick__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 62px;
}

.w-pick__title {
    margin: 0;
    font-family: var(--w-font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.w-pick__text { max-width: 409px; margin: 24px 0 0; font-size: 16px; line-height: 1.2; }

.w-pick__form { display: flex; flex-direction: column; gap: 24px; width: 418px; max-width: 100%; margin-top: 30px; }

.w-pick__fields { display: flex; gap: 12px; align-items: flex-start; }

.w-pick__field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.w-pick__field--floors { flex: 0 0 68px; }
.w-pick__field--area { flex: 0 0 auto; }
.w-pick__field--phone { flex: 1 1 0; min-width: 0; }

.w-pick__field-label { font-size: 12px; line-height: 1; }

.w-pick__select { position: relative; display: block; }

.w-pick__select select,
.w-pick__input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    background: #1c6545;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.w-pick__select select {
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.w-pick__select .w-icon--chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 10px;
    height: 8px;
    transform: translateY(-50%);
    pointer-events: none;
}

.w-pick__input::placeholder { color: rgba(255, 255, 255, .5); }
.w-pick__input:focus, .w-pick__select select:focus { outline: 2px solid #fff; outline-offset: -1px; }
.w-pick__input.is-invalid { border-color: #ffb4a8; }

.w-pick__error { margin: -12px 0 0; color: #ffd2cb; font-size: 13px; line-height: 1.3; text-align: left; }

.w-pick__submit {
    width: 100%;
    height: 52px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 21px rgba(0, 0, 0, .25);
    color: #257351;
    font-family: var(--w-font-display);
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color var(--w-ease), color var(--w-ease), box-shadow var(--w-ease);
}

.w-pick__submit[disabled] { opacity: .7; }
.w-pick__done { max-width: 409px; margin: 30px 0 0; font-size: 18px; line-height: 1.3; }

@media (hover: hover) {
    .w-project-hero__crumbs .w-crumbs__link:hover { color: var(--w-green-light); }
    .w-gallery__arrow:hover { background: #fff; color: var(--w-green); }
    .w-gallery__dots .swiper-pagination-bullet:hover { opacity: 1; }
    .w-inclusion__head:hover { color: var(--w-green); }
    .w-inclusion__head:hover .w-inclusion__more { color: #8a8a8a; }
    .w-button--outline:hover { background: var(--w-green); color: #fff; box-shadow: 0 8px 20px rgba(40, 142, 98, .28); }
    .w-pick__submit:not([disabled]):hover { background: #eef7f2; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
}

/* --- 1440 --- */
@media (max-width: 1919px) {
    .w-project-hero { height: 660px; }
    .w-project-hero .w-container { padding-bottom: 22px; }
    .w-project-hero__crumbs { margin-top: 148px; }
    .w-project-hero__title { font-size: 80px; }
    .w-project-top { min-height: 589px; margin-top: 30px; }
    .w-gallery__arrow { width: 34px; height: 34px; }
    .w-gallery__arrow--prev { left: 18px; }
    .w-gallery__arrow--next { right: 18px; }
    .w-gallery { --swiper-pagination-bullet-size: 12px; --swiper-pagination-bottom: 16px; }
    .w-specs { gap: 24px; padding: 24px 24px 20px; }
    .w-banks { padding: 34px 30px 30px; }
    .w-banks__title { font-size: 40px; }
    .w-banks__badge { font-size: 28px; padding: 7px 14px; }
    .w-banks__grid { grid-template-columns: repeat(3, 190px); gap: 14px; margin-top: 16px; }
    .w-banks__item { height: 116px; }
    .w-banks__escrow { width: 600px; padding: 12px 0; font-size: 30px; }
    .w-office { padding: 30px; }
    .w-office__title { font-size: 48px; }
    .w-office__address { margin-top: 24px; font-size: 26px; max-width: 360px; }
    .w-office__phone { font-size: 28px; }
    .w-specs__item { padding: 16px 4px; gap: 12px; }
    .w-specs__value { font-size: 28px; }
    .w-specs__price { font-size: 40px; }
    .w-specs__btn { height: 56px; font-size: 24px; }
    .w-about__card { padding: 40px 40px 30px; }
    .w-about__title { font-size: 48px; }
    .w-inclusions__card { padding: 40px 40px 30px; }
    .w-inclusions__title { font-size: 48px; }
    .w-inclusions__list { margin-top: 60px; }
    .w-inclusion__img { height: 480px; }
    .w-pick { margin: 80px 0 48px; }
    .w-pick__title { font-size: 48px; }
}

/* --- 990: карточка характеристик под слайдером, четыре колонки --- */
@media (max-width: 1439px) {
    .w-project-hero { height: 524px; }
    .w-project-hero .w-container { padding-bottom: 30px; }
    .w-project-hero__crumbs { margin-top: 118px; }
    .w-project-hero__title { font-size: 60px; }
    .w-project-top { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
    .w-gallery { height: 466px; flex: none; }
    .w-thumbs__item { width: 120px; height: 78px; }
    .w-banks { padding: 28px 24px 24px; }
    .w-banks__title { font-size: 40px; }
    .w-banks__badge { font-size: 26px; }
    .w-banks__grid { grid-template-columns: repeat(3, 200px); gap: 12px; margin-top: 14px; }
    .w-banks__item { height: 96px; }
    .w-banks__escrow { width: 620px; padding: 10px 0; font-size: 28px; }
    .w-office { padding: 24px 25px; }
    .w-office__map { left: 29%; top: -17%; width: 80%; }
    .w-office__title { font-size: 40px; }
    .w-office__address { margin-top: 20px; font-size: 20px; max-width: 272px; }
    .w-office__phone { font-size: 24px; }
    .w-office__pin { font-size: 12px; }
    .w-specs { flex-direction: column-reverse; gap: 20px; padding: 30px 30px 20px; }
    .w-specs__grid { grid-template-columns: repeat(4, 1fr); padding-top: 10px; border-top: 1px dashed #d3d3d3; }
    .w-specs__item { padding: 16px 4px; border-right: 1px dashed #d3d3d3; }
    .w-specs__item:nth-child(-n+4) { padding-top: 10px; }
    .w-specs__item:nth-child(4n) { border-right: 0; }
    .w-specs__item:nth-last-child(-n+4) { border-bottom: 0; }
    .w-specs__item:last-child { border-right: 0; }
    .w-specs__label { font-size: 12px; }
    .w-specs__value { font-size: 28px; }
    .w-specs__offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
    .w-specs__price-block { padding-bottom: 0; }
    .w-specs__price { font-size: 36px; }
    .w-specs__actions { flex-direction: row; width: 456px; max-width: 60%; }
    .w-specs__btn { height: 52px; padding: 0 20px; font-size: 20px; }
    .w-about { margin-top: 60px; }
    .w-about__card { padding: 30px 30px 24px; }
    .w-about__title { font-size: 40px; }
    .w-about__columns { column-gap: 30px; margin-top: 30px; }
    .w-inclusions { margin-top: 60px; }
    .w-inclusions__card { padding: 30px 30px 24px; }
    .w-inclusions__title { font-size: 40px; }
    .w-inclusions__list { margin-top: 40px; }
    .w-inclusion__name { font-size: 20px; }
    .w-inclusion__more { font-size: 16px; }
    .w-inclusion__img { height: 360px; }
    .w-inclusion__heading { font-size: 18px; }
    .w-inclusion__items { font-size: 16px; }
    .w-inclusion__item--list .w-inclusion__item-name { font-size: 18px; }
    .w-inclusions__cta { height: 52px; font-size: 20px; }
    .w-pick { height: 565px; margin: 60px 0 40px; }
    .w-pick__title { font-size: 40px; }
    .w-pick__content { padding-top: 40px; }
}

/* --- Мобильный --- */
@media (max-width: 989px) {
    .w-project-hero { height: 357px; }
    .w-project-hero .w-container { padding-bottom: 30px; }
    .w-project-hero__crumbs { margin-top: 108px; }
    .w-project-hero__title { font-size: 52px; }
    .w-project-top { margin-top: 30px; }
    /* Выше макетных 194px: слайды с банками и офисом не влезли бы. */
    .w-gallery { height: 320px; }
    .w-thumbs__item { width: 96px; height: 64px; }
    .w-gallery__arrow { display: none; }
    .w-gallery__slide--plan .w-gallery__img { padding: 14px 14px 40px; }
    .w-gallery__caption { left: 12px; bottom: 34px; font-size: 12px; }
    .w-banks { padding: 18px 12px 14px; }
    .w-banks__title { font-size: 24px; }
    .w-banks__badge { margin-top: 6px; padding: 5px 10px; font-size: 16px; }
    .w-banks__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 12px; }
    .w-banks__item { height: 60px; border-radius: 8px; }
    .w-banks__escrow { width: 100%; margin-top: 12px; padding: 8px 0; font-size: 18px; }
    .w-office { padding: 18px 14px; }
    .w-office__map { left: 30%; top: 20%; width: 90%; }
    .w-office__title { max-width: 75%; font-size: 26px; }
    .w-office__address { max-width: 200px; margin-top: 14px; font-size: 15px; line-height: 1.2; }
    .w-office__phone { font-size: 20px; }
    .w-office__pin { padding: 3px 8px 3px 5px; font-size: 11px; }
    .w-office__pin-dot { width: 9px; height: 9px; }
    .w-gallery { --swiper-pagination-bullet-size: 12px; --swiper-pagination-bottom: 10px; }
    .w-gallery__tools { right: 10px; top: 10px; gap: 8px; }
    .w-gallery__zoom { width: 36px; height: 36px; }
    .w-gallery__zoom .w-icon--zoom { width: 17px; height: 17px; }
    .w-gallery__badges { left: 10px; top: 10px; gap: 4px; }
    .w-badge { height: 26px; padding: 0 8px; font-size: 12px; }
    .w-specs { gap: 30px; padding: 20px 14px; }
    .w-specs__grid { grid-template-columns: 1fr 1fr; padding-top: 0; border-top: 0; }
    .w-specs__item { padding: 20px 4px; border-right: 0; }
    .w-specs__item:nth-child(odd) { border-right: 1px dashed #d3d3d3; }
    .w-specs__item:nth-child(-n+2) { padding-top: 0; }
    .w-specs__item:nth-last-child(-n+2) { border-bottom: 0; }
    .w-specs__item:nth-last-child(n+3) { border-bottom: 1px dashed #d3d3d3; }
    .w-specs__value { font-size: 26px; }
    .w-specs__offer { flex-direction: column; align-items: stretch; gap: 14px; }
    .w-specs__price-block { padding-bottom: 10px; }
    .w-specs__price { font-size: 36px; }
    .w-specs__actions { flex-direction: column; width: 100%; max-width: none; gap: 12px; }
    .w-specs__btn { height: 52px; font-size: 20px; }
    .w-about { margin-top: 40px; }
    .w-about__card { padding: 30px 14px; }
    .w-about__title { font-size: 32px; }
    .w-about__columns { columns: 1; margin-top: 24px; }
    .w-inclusions { margin-top: 40px; }
    .w-inclusions__card { padding: 30px 14px; }
    .w-inclusions__title { font-size: 32px; }
    .w-inclusions__list { margin-top: 38px; }
    .w-inclusion__name { font-size: 18px; }
    .w-inclusion__more-text { display: none; }
    .w-inclusion__body { gap: 18px; margin-top: 18px; }
    .w-inclusion__img { height: 171px; }
    .w-inclusion__heading { font-size: 18px; }
    .w-inclusion__items { padding-left: 22px; font-size: 16px; }
    .w-inclusion__item--list .w-inclusion__item-name { font-size: 17px; }
    .w-inclusion__sub { padding-left: 20px; }
    .w-pick { height: 565px; margin: 40px 0 30px; }
    /* На мобильном кадр узкий: 776×442 от 192px сверху, центр сдвинут на 15px вправо. */
    .w-pick__img { left: calc(50% + 15px); top: 192px; width: 776px; height: 442px; transform: translateX(-50%); object-position: 50% 0; }
    .w-pick__content { padding: 36px 14px 0; }
    .w-pick__title { font-size: 32px; }
    .w-pick__text { margin-top: 4px; font-size: 14px; max-width: 281px; }
    .w-pick__form { width: 311px; margin-top: 32px; gap: 24px; }
    .w-pick__fields { flex-wrap: wrap; gap: 12px; }
    .w-pick__field--floors, .w-pick__field--area { flex: 1 1 0; }
    .w-pick__field--phone { flex: 1 1 100%; }
    .w-pick__submit { font-size: 20px; }
    .w-pick__done { font-size: 16px; }
}

/*
 * На компьютере аккордеон «Что входит» не нужен — там панель с табами.
 * В конце файла: базовое правило .w-inclusions__list (display: flex)
 * стоит выше, и правило раньше него проиграло бы по порядку.
 */
@media (min-width: 990px) {
    .w-inclusions__list { display: none; }
}

/*
 * Квиз карточки проекта — окно поверх страницы, как у ориентира:
 * прогресс, вопрос с номером шага, варианты-кнопки, «Назад».
 */
.w-quiz {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 18, 18, .6);
}

.w-quiz[hidden] { display: none; }

.w-quiz__dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px 40px 30px;
    border-radius: 16px;
    background: #fff;
}

.w-quiz__close {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #212121;
    cursor: pointer;
}

.w-quiz__close .w-icon--close { width: 14px; height: 14px; }
.w-quiz__title { margin: 0 40px 0 0; color: var(--w-ink); font-family: var(--w-font-display); font-size: 40px; line-height: 1; text-transform: uppercase; }

.w-quiz__progress { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.w-quiz__progress[hidden] { display: none; }
.w-quiz__bar { flex: 1; height: 6px; overflow: hidden; border-radius: 6px; background: #ececec; }
.w-quiz__fill { display: block; width: 0; height: 100%; background: var(--w-green); transition: width .3s ease; }
.w-quiz__percent { color: #535353; font-size: 14px; white-space: nowrap; }

.w-quiz__step { margin-top: 26px; }
.w-quiz__step[hidden] { display: none; }
.w-quiz__question { margin: 0; color: var(--w-ink); font-size: 22px; font-weight: 600; line-height: 1.25; }
.w-quiz__question span { color: #8a8a8a; font-size: 15px; font-weight: 400; }
.w-quiz__hint { margin: 6px 0 0; color: #8a8a8a; font-size: 14px; }

.w-quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }

.w-quiz__option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    color: var(--w-ink);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.w-quiz__option:hover { border-color: var(--w-green); }
.w-quiz__option.is-selected { border-color: var(--w-green); background: #f1f8f4; }
.w-quiz__option:focus-visible { outline: 2px solid var(--w-green); outline-offset: 2px; }

.w-quiz__mark { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #cfcfcf; border-radius: 50%; }
[data-multi] .w-quiz__mark { border-radius: 5px; }
.w-quiz__option.is-selected .w-quiz__mark { border-color: var(--w-green); background: var(--w-green); box-shadow: inset 0 0 0 3px #fff; }

.w-quiz__label { display: flex; flex-direction: column; gap: 4px; line-height: 1.25; }
.w-quiz__label small { color: #8a8a8a; font-size: 13px; }

.w-quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.w-quiz__back { padding: 0; border: 0; background: none; color: #535353; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.w-quiz__next { height: 48px; padding: 0 28px; }
.w-quiz__next:disabled { opacity: .45; cursor: default; }

.w-quiz__form { display: grid; gap: 12px; margin-top: 18px; }

.w-quiz__input {
    height: 52px;
    padding: 0 18px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
}

.w-quiz__input:focus { outline: none; border-color: var(--w-green); }
.w-quiz__error { margin: 0; color: #d33; font-size: 14px; }
.w-quiz__submit { height: 54px; }
.w-quiz__consent { margin: 0; color: #8a8a8a; font-size: 12px; line-height: 1.35; }
.w-quiz__consent a { color: inherit; }
.w-quiz__done { margin-top: 20px; }
.w-quiz__text { margin: 12px 0 0; color: #535353; font-size: 16px; }

@media (max-width: 767px) {
    .w-quiz { align-items: flex-end; padding: 0; }
    .w-quiz__dialog { max-height: 92vh; padding: 30px 16px 20px; border-radius: 16px 16px 0 0; }
    .w-quiz__title { font-size: 28px; }
    .w-quiz__question { font-size: 18px; }
    .w-quiz__options { grid-template-columns: 1fr; }
}
