[id^=wait_] {
    display: none !important;
}

/* Готовая квартира для большой семьи — видео над планировками */
.family-flat {
    margin-top: 48px;
    margin-bottom: 48px;
}

.family-flat__inner {
    max-width: var(--container-width-with-padding);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-inline-padding);
    padding-left: var(--container-inline-padding);
}

.family-flat__head {
    margin-bottom: 24px;
}

.family-flat__title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--secondary-color, #122a4b);
}

.family-flat__head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.family-flat__benefit {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--secondary-color, #122a4b);
}

.family-flat__action {
    width: 100%;
    max-width: 280px;
}

.family-flat__media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #dfe6f0;
    aspect-ratio: 16 / 9;
}

.family-flat__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.family-flat__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: var(--play-btn-size, 72px);
    height: var(--play-btn-size, 72px);
    border-radius: 50%;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230000F8'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-position: 54% center;
    background-repeat: no-repeat;
    background-size: 42%;
    box-shadow: 0 8px 28px rgba(18, 42, 75, 0.18);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.family-flat__media:hover .family-flat__play {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 10px 32px rgba(18, 42, 75, 0.24);
}

@media (min-width: 992px) {
    .family-flat {
        margin-top: 72px;
        margin-bottom: 72px;
    }

    .family-flat__head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px 40px;
        margin-bottom: 32px;
    }

    .family-flat__head-right {
        align-items: flex-end;
        margin-top: 0;
        text-align: right;
    }

    .family-flat__benefit {
        font-size: 18px;
    }

    .family-flat__media {
        border-radius: 30px;
    }
}

@media (min-width: 1400px) {
    .family-flat__benefit {
        font-size: 20px;
    }

    .family-flat__action {
        min-width: 290px;
    }
}


/* Шапка: меню всегда в одну строку, на узком десктопе — меньше лого */
.header__nav {
    flex-wrap: nowrap;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header__logo img {
        width: 148px;
    }

    .header__inner {
        gap: 12px;
        padding-right: 12px;
        padding-left: 20px;
    }

    .header__nav {
        column-gap: 14px;
    }

    .header__nav-link {
        font-size: 14px;
    }

    .header__phone {
        font-size: 15px;
    }

    .header__callback-btn {
        width: auto;
        min-width: 0;
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .header__logo img {
        width: 200px;
    }

    .header__nav {
        column-gap: 22px;
    }
}


/* Футер по макету: 3 колонки, полная ширина */
.footer-main {
    margin-top: 50px;
    padding: 36px 0;
    background: var(--secondary-color, #122a4b);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.footer-main__inner {
    max-width: var(--container-width-with-padding);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-inline-padding);
    padding-left: var(--container-inline-padding);
}

.footer-main__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-main__copy {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.72);
}

.footer-main__legal {
    flex: 0 1 auto;
    max-width: 34em;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
}

.footer-main__legal-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-main__legal-link:hover {
    color: #fff;
}

.footer-main__links {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 10px;
    align-items: flex-end;
    width: max-content;
    max-width: 100%;
    text-align: right;
}

.footer-main__links-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 28px;
}

.footer-main__link {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-wrap: pretty;
}

.footer-main__link:hover {
    color: #fff;
}

.footer-main__link_list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    max-width: none;
    white-space: normal;
}

.footer-main__link_list span {
    display: block;
}

@media (max-width: 1099px) {
    .footer-main__row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .footer-main__copy {
        order: 1;
    }

    .footer-main__links {
        order: 2;
        margin-left: auto;
    }

    .footer-main__legal {
        order: 3;
        flex: 1 1 100%;
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 32px 0 56px;
    }

    .footer-main__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-main__copy,
    .footer-main__legal,
    .footer-main__links {
        order: 0;
        margin-left: 0;
        text-align: left;
        align-items: flex-start;
        white-space: normal;
        width: 100%;
        max-width: none;
    }

    .footer-main__links-top {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }

    .footer-main__link_list {
        align-items: flex-start;
    }
}


/* якоря (#ml-promo и др.): учитываем фиксированное меню */
html {
    scroll-padding-top: calc(
        var(--header-height, 44px)
        + var(--header-top-offset, 12px)
        + 16px
    );
}

/* Comfort-галерея: плашка по высоте текста + плавная смена */
.comfort__topbar-content-items {
    position: relative;
    display: block;
    overflow: hidden;
    transition: height 0.4s ease;
}

.comfort__topbar-content-item {
    grid-column: auto;
    grid-row: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.comfort__topbar-content-item._visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* до JS: видимый слайд даёт естественную высоту */
.comfort__topbar-content-items:not(.is-height-ready) .comfort__topbar-content-item._visible {
    position: relative;
}

.comfort__slide-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ml-text, #122a4b);
}

@media (min-width: 992px) {
    .comfort__topbar {
        align-items: center;
        min-height: 0;
        height: auto;
    }

    .comfort__slide-text {
        font-size: 17px;
        line-height: 1.4;
    }
}

@media (min-width: 1400px) {
    .comfort__slide-text {
        font-size: 18px;
    }
}

/* Генплан: кнопка в карточке дома */
.genplan__card-btn {
    margin-top: 16px;
    width: 100%;
}

@media (min-width: 992px) {
    .genplan__card-btn {
        margin-top: 20px;
        width: auto;
        min-width: 200px;
    }
}

/* Подписка: синяя полоса на всю ширину сайта */
.subscribe-banner {
    background: var(--secondary-color, #122a4b);
    color: #fff;
}

.subscribe-banner__card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    min-height: 0;
    margin: 0;
    padding: 28px 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.subscribe-banner__card-bg {
    display: none;
}

.subscribe-banner__text {
    position: relative;
    z-index: 1;
    flex: 1 1 240px;
    min-width: 0;
    max-width: none;
    padding: 0;
    align-self: center;
}

.subscribe-banner__sub {
    margin-top: 8px;
}

.subscribe-banner__btn {
    margin-top: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-width: min(100%, 280px);
}

@media (min-width: 992px) {
    .subscribe-banner__card {
        flex-wrap: nowrap;
        gap: 24px 40px;
        padding: 36px 0;
        min-height: 0;
    }

    .subscribe-banner__text {
        flex: 1 1 auto;
    }

    .subscribe-banner__title {
        font-size: 40px;
        white-space: nowrap;
    }

    .subscribe-banner__btn {
        min-width: 300px;
    }
}

@media (min-width: 1400px) {
    .subscribe-banner__title {
        font-size: 44px;
    }
}

/* Офис продаж + такси (как старый subscribe: картинка без паддингов справа/снизу) */
.sales-office {
    margin-top: 20px;
}

.sales-office__inner {
    max-width: var(--container-width-with-padding);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-inline-padding);
    padding-left: var(--container-inline-padding);
}

.sales-office__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
    border-radius: 30px;
    background: var(--secondary-color, #122a4b);
    color: #fff;
    overflow: hidden;
}

.sales-office__info {
    min-width: 0;
}

.sales-office__title {
    margin: 0 0 16px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.sales-office__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.sales-office__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sales-office__meta-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: #fff;
}

.sales-office__meta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sales-office__meta-text {
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.sales-office__taxi {
    display: grid;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.sales-office__taxi-text {
    margin: 0;
    max-width: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.sales-office__taxi-btn {
    width: 100%;
    max-width: 220px;
}

.sales-office__media {
    display: none;
}

.sales-office__media picture,
.sales-office__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom right;
}

@media (min-width: 768px) {
    .sales-office__card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0;
        padding: 36px 32px;
    }

    .sales-office__info {
        flex: 1 1 52%;
        padding-right: 28px;
    }

    .sales-office__taxi {
        flex: 1 1 40%;
        padding-top: 0;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
        padding-left: 28px;
        align-content: center;
        align-self: center;
    }
}

@media (min-width: 992px) {
    .sales-office {
        margin-top: 28px;
    }

    .sales-office__card {
        flex-wrap: nowrap;
        align-items: stretch;
        min-height: 422px;
        padding: 40px 0 0 40px;
        gap: 0;
    }

    .sales-office__info {
        flex: 0 1 32%;
        max-width: 380px;
        padding-right: 24px;
        padding-bottom: 40px;
        align-self: center;
    }

    .sales-office__meta-text {
        font-size: 16px;
    }

    .sales-office__taxi {
        flex: 0 1 32%;
        max-width: 360px;
        min-width: 280px;
        padding-left: 28px;
        padding-right: 20px;
        padding-bottom: 40px;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
        align-self: center;
    }

    .sales-office__taxi-text {
        max-width: none;
        font-size: 20px;
    }

    .sales-office__media {
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 622px;
        height: 422px;
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
        pointer-events: none;
        flex: none;
        max-width: none;
    }

    .sales-office__media picture,
    .sales-office__media img {
        width: 622px;
        height: 422px;
        object-fit: cover;
        object-position: bottom right;
    }
}

@media (min-width: 1400px) {
    .sales-office__card {
        padding-left: 48px;
    }

    .sales-office__info {
        flex-basis: 30%;
        max-width: 400px;
    }

    .sales-office__taxi {
        max-width: 380px;
        min-width: 300px;
    }

    .sales-office__taxi-text {
        max-width: none;
        font-size: 22px;
    }
}

/* Проекты в Тюмени: кликабельные логотипы */
.partners__link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.partners__link:hover {
    opacity: 0.75;
}

/* Коммерция: подстрочник под заголовком */
.commerce__head {
    align-items: flex-start;
}

.commerce__head-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.commerce__subtitle {
    margin: 0;
    max-width: 36em;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(14, 37, 69, 0.7);
}

.commerce__subtitle-accent {
    color: var(--brand-color, #0000f8);
}

@media (min-width: 992px) {
    .commerce__head-text {
        gap: 10px;
    }

    .commerce__subtitle {
        font-size: 18px;
    }
}

@media (min-width: 1400px) {
    .commerce__subtitle {
        font-size: 20px;
    }
}

/* Способы покупки: подстрочник в карточках + лигл в попапах */
.buy__item {
    align-items: center;
}

.buy__item-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
    min-width: 0;
}

.buy__item-label {
    flex-grow: 0;
}

.buy__item-sub {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(14, 37, 69, 0.65);
}

@media (min-width: 768px) {
    .buy__item-sub {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .buy__item-sub {
        font-size: 18px;
        max-width: 28em;
    }
}

@media (min-width: 1400px) {
    .buy__item-sub {
        font-size: 20px;
    }
}

.finishing-repair-form__types {
    margin: 20px 0 48px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.finishing-repair-form__types-title {
    margin: 0 0 12px;
    padding: 0;
    float: none;
    width: auto;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(18, 42, 75, 0.55);
}

.finishing-repair-form__types-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.finishing-repair-form__type-item {
    --checkbox-size: 22px;
    --check-size: 14px;
    align-items: flex-start;
    margin: 0;
    max-width: none;
}

.finishing-repair-form__type-item .checkbox-item__label-text {
    font-size: 15px;
    line-height: 1.3;
    color: var(--ml-text, #122a4b);
}

@media (max-width: 479px) {
    .finishing-repair-form__types-list {
        grid-template-columns: 1fr;
    }
}

.popup-form-body__legal {
    margin: 16px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(14, 37, 69, 0.55);
    text-align: left;
}

.popup-form-body__legal a {
    color: inherit;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .popup-form-body__legal {
        margin-top: 18px;
        font-size: 12px;
    }
}

/* Инфра-меню: текст тёмно-синий, ярко-синие только круглые значки */
.infra__category-item,
.infra__category-item.is-active {
    color: var(--secondary-color, #122a4b);
}

.infra__category-item .infra__menu-category-icon {
    background-color: var(--brand-color, #0000f8);
}

.infra__category-item:not(.is-active) .infra__menu-category-icon {
    background-color: var(--secondary-color, #122a4b);
}

@media (hover: hover) {
    .infra__category-item:hover {
        color: var(--secondary-color, #122a4b);
    }

    .infra__category-item:hover .infra__menu-category-icon {
        background-color: var(--brand-color, #0000f8);
    }
}

/* ---------- Планировки месяца ---------- */
.month-plans {
    margin-top: 48px;
}

@media (min-width: 992px) {
    .month-plans {
        margin-top: 70px;
    }
}

@media (min-width: 1400px) {
    .month-plans {
        margin-top: 103px;
    }
}

.month-plans__inner {
    max-width: var(--container-width-with-padding, 1580px);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-inline-padding, 16px);
    padding-left: var(--container-inline-padding, 16px);
}

.month-plans__head {
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .month-plans__head {
        margin-bottom: 28px;
    }
}

.month-plans__title {
    margin: 0;
    font-size: var(--section-title-font-size, 34px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--secondary-color, #122a4b);
}

.month-plans__sub {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.35;
    color: var(--ml-text, #122a4b);
}

@media (min-width: 992px) {
    .month-plans__sub {
        margin-top: 10px;
        font-size: 20px;
    }
}

.month-plans__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .month-plans__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .month-plans__grid {
        gap: 20px;
    }
}

.month-plans-card {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px 16px;
    border-radius: var(--ml-r-lg, 16px);
    background: #fff;
    box-shadow: var(--ml-card-shadow, 0 8px 32px rgba(15, 30, 60, 0.12));
}

@media (min-width: 992px) {
    .month-plans-card {
        padding: 18px 18px 20px;
    }
}

.month-plans-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ml-r-sm, 8px);
    overflow: hidden;
    background: #fff;
}

.month-plans-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.month-plans-card__discount {
    margin: 12px 0 0;
    width: 100%;
    text-align: center;
    font-size: clamp(20px, 9.6cqi, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: var(--secondary-color, #122a4b);
}

@media (min-width: 992px) {
    .month-plans-card__discount {
        margin-top: 14px;
    }
}

.month-plans-card__btn {
    margin-top: 12px;
    width: 100%;
}

@media (min-width: 992px) {
    .month-plans-card__btn {
        margin-top: 14px;
    }
}

/* ---------- Успешная отправка формы ---------- */
.csw-callback-form-success {
    --csw-success-brand: var(--secondary-color, #122A4B);
    --csw-success-text: var(--base-text-color, #0E2545);
    --csw-success-mute: var(--text-soft-color, #9AA4B4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    min-height: 180px;
    padding: 28px 12px 20px;
    margin: 0;
    font-size: inherit;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.csw-callback-form-success.is-ready {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.csw-callback-form-success__icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--csw-success-brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.csw-callback-form-success__icon::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(18, 42, 75, 0.25);
    opacity: 0;
    transform: scale(0.7);
}

.csw-callback-form-success.is-ready .csw-callback-form-success__icon::before {
    animation: csw-success-ring 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.csw-callback-form-success__icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.csw-callback-form-success__check {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}

.csw-callback-form-success.is-ready .csw-callback-form-success__check {
    animation: csw-success-draw 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

.csw-callback-form-success__title {
    font-family: var(--ml-font-display, "NAMU", system-ui, sans-serif);
    font-size: clamp(22px, 3.2vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--csw-success-text);
    margin: 0;
}

.csw-callback-form-success__text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--csw-success-mute);
    max-width: 28ch;
    margin: 0;
}

@media (min-width: 992px) {
    .csw-callback-form-success {
        min-height: 210px;
        padding: 36px 16px 24px;
        gap: 12px;
    }

    .csw-callback-form-success__icon {
        width: 84px;
        height: 84px;
    }

    .csw-callback-form-success__icon svg {
        width: 40px;
        height: 40px;
    }

    .csw-callback-form-success__text {
        font-size: 18px;
    }
}

/* В попапе — чуть компактнее и без лишней высоты */
.base-modal .csw-callback-form-success,
.popup-form-body .csw-callback-form-success {
    min-height: 160px;
    padding-top: 12px;
    padding-bottom: 8px;
}

@keyframes csw-success-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes csw-success-ring {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .csw-callback-form-success,
    .csw-callback-form-success.is-ready .csw-callback-form-success__icon::before,
    .csw-callback-form-success.is-ready .csw-callback-form-success__check {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* ---------- AJAX-каталог планировок ---------- */
.rooms-checkbox-group__item.disabled {
    opacity: 0.35;
}

.rooms-checkbox-group__item.disabled .rooms-checkbox-group__label-text {
    cursor: not-allowed;
}

.plans[aria-busy="true"] [data-miriady-plans-result] {
    opacity: 0.55;
    pointer-events: none;
}

.plans__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px;
    text-align: center;
}

.miriady-plans-extended {
    display: contents;
}

.miriady-plans-extended[hidden] {
    display: none;
}

.catalog-filter__footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalog-filter__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalog-filter__more-btn-arrow {
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.catalog-filter__more-btn[aria-expanded="true"] .catalog-filter__more-btn-arrow {
    transform: rotate(180deg);
}

@media (max-width: 575px) {
    .catalog-filter__more-btn {
        display: none;
    }

    /* На мобиле группы и так свёрнуты — при раскрытии сразу все особенности */
    .miriady-plans-extended[hidden] {
        display: contents;
    }
}

.favorite-cards-section__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 40px 16px;
    text-align: center;
    color: #0e2545cc;
}

.page-options-section__share:disabled,
.page-options-section__action[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.base-modal_type_complete .base-modal__subtitle {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 16px;
    line-height: 1.35;
}

@media (min-width: 992px) {
    .base-modal_type_complete .base-modal__subtitle {
        font-size: 20px;
    }
}

.compare-section__empty {
    margin: 0;
    padding: 40px 16px;
    text-align: center;
    color: #0e2545cc;
}

.page-title-section__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.page-title-section__title-row .page-title {
    margin: 0;
    line-height: 1.1;
}

.page-title-section__back {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 1.1em;
    margin-left: -8px;
    color: var(--ml-text, #0e2545);
    font-size: 34px;
    transform: translateY(0.06em);
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-title-section__back svg {
    display: block;
    width: 0.95em;
    height: 0.7em;
}

@media (hover: hover) {
    .page-title-section__back:hover {
        color: #0000f8;
        transform: translate(-3px, 0.06em);
    }
}

@media (min-width: 992px) {
    .page-title-section__back {
        font-size: 70px;
        transform: translateY(0.08em);
    }

    .page-title-section__back:hover {
        transform: translate(-3px, 0.08em);
    }
}

.product-details-section__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-details-section__title-row .flat-card__heart {
    flex-shrink: 0;
    margin-top: 0.35em;
}

@media (min-width: 992px) {
    .product-details-section__title-row .flat-card__heart {
        width: 40px;
        height: 40px;
        margin-top: 0.45em;
    }
}

.catalog-filter__options-section_name_deadline {
    --option-bg-color: #f6f7f9;
    --checked-option-bg-color: #e5e8ee;
    --accent-option-bg-color: #fe5112cc;
    --checked-accent-option-bg-color: #fe5112;
}

.flat-card__chip_more {
    position: relative;
    min-width: 42px;
    justify-content: center;
    cursor: help;
    outline: none;
}

.flat-card__chips-tooltip {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: min(280px, 80vw);
    display: none;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(14, 34, 64, 0.2);
    font-size: 14px;
    line-height: 1.3;
}

.flat-card__chip_more:hover .flat-card__chips-tooltip,
.flat-card__chip_more:focus .flat-card__chips-tooltip {
    display: grid;
    gap: 6px;
}

.flat-card__chips-tooltip-item {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 31px;
    padding: 0 1em;
    overflow: hidden;
    border-radius: 9999px;
    background-color: #88baff33;
    color: var(--ml-text, #122a4b);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flat-card__chips-tooltip-item_accent {
    background-color: #88ff9633;
}

.miriady-share {
    position: relative;
}

.miriady-share__items {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    display: flex;
    gap: 8px;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(14, 34, 64, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.miriady-share:hover .miriady-share__items,
.miriady-share:focus-within .miriady-share__items,
.miriady-share.is-open .miriady-share__items {
    opacity: 1;
    pointer-events: auto;
}

.miriady-share__items a {
    width: 32px;
    height: 32px;
    display: block;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: #f6f7f9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.miriady-share__items a:hover,
.miriady-share__items a:focus-visible {
    background-color: #eef1f5;
    transform: translateY(-2px);
}

/* ---------- Ход строительства: вёрстка как на основном сайте, цвета ленда ---------- */
#ml-progress .build-process-section__inner {
    max-width: var(--container-width-with-padding, 1440px);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-inline-padding, 16px);
    padding-left: var(--container-inline-padding, 16px);
}

#ml-progress .build-process-section__title {
    font-size: var(--section-title-font-size, 34px);
    line-height: 1.1;
    color: var(--base-text-color, #0e2545);
    margin: 0;
}

/* ---------- Галерея хода строительства ---------- */
#progress-gallery .gallery-popup__next-btn {
    align-self: center;
    width: auto;
    margin-top: 4px;
    margin-bottom: 24px;
    padding-left: 32px;
    padding-right: 32px;
}

#progress-gallery .gallery-popup__next-btn[hidden] {
    visibility: hidden;
}
#progress-gallery .gallery-popup__media-box {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.base-modal_type_gallery .base-modal__close {
    top: 16px;
    right: 16px;
}

@media (max-width: 991px) {
    .base-modal_type_gallery .base-modal__close {
        top: 2px;
        right: 2px;
    }
}

#progress-gallery .gallery-popup__media-box .swiper,
#progress-gallery .gallery-popup__slide {
    aspect-ratio: auto;
}

#progress-gallery .gallery-popup__slide {
    height: 70vh;
}

#progress-gallery .gallery-popup__slide img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

#progress-gallery .gallery-popup__footer {
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 16px;
}
#progress-gallery .gallery-popup__slide img {
    border-radius: 20px;
}

@media (min-width: 992px) {
    #progress-gallery .gallery-popup__slide img {
        border-radius: 40px;
    }
}

@media (max-width: 991px) {
    #progress-gallery .gallery-popup__media-box {
        padding-right: 12px;
        padding-left: 12px;
    }

    #progress-gallery .slider-nav-block .slide-btn_prev {
        left: 12px;
    }

    #progress-gallery .slider-nav-block .slide-btn_next {
        right: 12px;
    }

    #progress-gallery .gallery-popup__footer {
        padding-top: 9px;
    }

    #progress-gallery .gallery-popup__slide {
        height: auto;
    }

    #progress-gallery .gallery-popup__slide img {
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: contain;
    }
}

#progress-gallery .gallery-popup__slide-tag {
    border: none;
    background: rgba(14, 37, 69, 0.55);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding-top: 4px;
    padding-bottom: 8px;
}
#progress-gallery .gallery-popup__media-box {
    position: relative;
}

#progress-gallery .slider-nav-block {
    display: contents;
}

#progress-gallery .slide-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    visibility: hidden;
}

#progress-gallery .slide-btn_prev {
    left: 0;
}

#progress-gallery .slide-btn_next {
    right: 0;
}

#progress-gallery .swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#ml-progress .build-process-section__title-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

#ml-progress .build-process-section__header-right {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

#ml-progress .build-process-section__bottom-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: flex-end;
    margin-bottom: 24px;
}

#ml-progress .build-process-section__btn-filter-container .input-item__label-text,
#ml-progress .build-process-section__select-filter .input-item__label-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--ml-text-mute, #6f7c8f);
}

#ml-progress .build-process-section__btn-filter-container .input-item__label-text {
    padding-left: 16px;
}

#ml-progress .build-process-section__select-filter .input-item__label-text {
    padding-left: 18px;
}

#ml-progress .progress-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(14, 37, 69, 0.4);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    color: var(--ml-text-mute, #6f7c8f);
    cursor: help;
}

#ml-progress .progress-hint::after {
    content: attr(data-hint);
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    transform: translateY(-50%);
    width: max-content;
    max-width: 220px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--secondary-color, #122a4b);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
}

#ml-progress .progress-hint:hover::after,
#ml-progress .progress-hint:focus-visible::after {
    opacity: 1;
}

#ml-progress .build-process-section__filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#ml-progress .categories-nav-item {
    padding: 10px 16px;
    border: 1px solid rgba(14, 37, 69, 0.25);
    border-radius: 9999px;
    background: #fff;
    color: var(--base-text-color, #0e2545);
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#ml-progress .categories-nav-item.selected {
    background: #0000f8;
    border-color: #0000f8;
    color: #fff;
}

#ml-progress .build-process-section__select-filter {
    min-width: min(320px, 100%);
}

#ml-progress .build-process-section__select-filter label {
    display: block;
}

#ml-progress .build-process-section__select-filter select {
    width: 100%;
}

/* SlimSelect под ленд */
#ml-progress .ss-main {
    border: 1px solid rgba(14, 37, 69, 0.25);
    border-radius: 21px;
    min-height: 42px;
    padding: 4px 12px;
    transition: border-radius 0.2s ease;
    outline: none;
}

/* При раскрытии список — продолжение инпута: смежные углы прямые, остальные без изменений */
#ml-progress .ss-main.ss-open-below {
    border-radius: 21px 21px 0 0;
}

#ml-progress .ss-main.ss-open-above {
    border-radius: 0 0 21px 21px;
}

#ml-progress .ss-main:focus {
    box-shadow: none;
}

#ml-progress .ss-main .ss-values .ss-value {
    background: #0000f8;
    border-radius: 9999px;
    font-size: 13px;
}

/* Важно: список SlimSelect лежит в body, а не в секции */
.ss-content.progress-gp-list {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(14, 37, 69, 0.25);
}

.ss-content.progress-gp-list.ss-open-below {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.ss-content.progress-gp-list.ss-open-above {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

#ml-progress .build-process-section__slider-container {
    position: relative;
}

#ml-progress .build-process-section__slider {
    overflow: hidden;
}

#ml-progress .build-process-slide {
    cursor: pointer;
}

#ml-progress .build-process-slide__fig {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: #eef1f5;
}

#ml-progress .build-process-slide__fig img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ml-progress .build-process-slide__content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
}

#ml-progress .build-process-slide__title {
    font-size: 18px;
    line-height: 1.3;
    color: #0000f8;
}

#ml-progress .build-process-slide__quantity-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--ml-text-mute, #6f7c8f);
    font-size: 14px;
    white-space: nowrap;
}

#ml-progress .build-process-section .hidden {
    display: none;
}

#ml-progress .build-process-section__inset-nav-btn {
    position: absolute;
    top: 38%;
    z-index: 2;
    transform: translateY(-25%);
}

#ml-progress .build-process-section__inset-nav-btn_prev {
    left: 8px;
}

#ml-progress .build-process-section__inset-nav-btn_next {
    right: 8px;
}

@media (max-width: 991px) {
    #ml-progress .build-process-section__inset-nav-btn {
        display: inline-flex;
    }
}

#ml-progress .build-process-section__footer-nav-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

#ml-progress .slider-nav-block__btn-set {
    display: none;
}

#ml-progress .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(14, 37, 69, 0.2);
    background: #fff;
    color: var(--base-text-color, #0e2545);
    cursor: pointer;
}

#ml-progress .nav-btn:hover {
    border-color: #0000f8;
    color: #0000f8;
}

/* Swiper сам вешает этот класс на стрелки в крайних положениях */
#ml-progress .swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#ml-progress .slider-nav-block__counter {
    font-size: 14px;
    font-weight: 600;
    color: #0000f8;
    background: rgba(0, 0, 248, 0.08);
    border-radius: 9999px;
    padding: 6px 18px;
}

#ml-progress .build-progress__dynamic[aria-busy="true"] {
    opacity: 0.55;
    pointer-events: none;
}

#ml-progress .build-progress__loading,
#ml-progress .build-progress__empty {
    margin: 0;
    padding: 32px 16px;
    text-align: center;
}

@media (min-width: 992px) {
    #ml-progress .build-process-slide__fig {
        border-radius: 30px;
    }

    #ml-progress .build-process-slide__title {
        font-size: 22px;
    }
}

/* ---------- Результат ипотечного калькулятора в попапе ---------- */
.mortgage-calc-result {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f7fb;
}

.mortgage-calc-result__payment {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(14, 37, 69, 0.1);
}

.mortgage-calc-result__payment-label {
    font-size: 13px;
    color: rgba(14, 37, 69, 0.65);
}

.mortgage-calc-result__payment-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #0e2545;
}

.mortgage-calc-result__params {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mortgage-calc-result__params li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #0e2545;
}

.mortgage-calc-result__params li span:first-child {
    color: rgba(14, 37, 69, 0.65);
}

.mortgage-calc-result__params li span:last-child {
    text-align: right;
    font-weight: 600;
}

.mortgage-calc-result__star {
    margin-left: 2px;
}

.mortgage-calc-result__note {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(14, 37, 69, 0.55);
}

@media (min-width: 992px) {
    .mortgage-calc-result {
        margin-bottom: 22px;
        padding: 18px 20px;
    }

    .mortgage-calc-result__payment-value {
        font-size: 28px;
    }

    .mortgage-calc-result__params li {
        font-size: 14px;
    }

    .mortgage-calc-result__note {
        margin-top: 14px;
        font-size: 12px;
    }
}

/* ---------- Hero: фоновое видео поверх фото ---------- */
.hero__bg-layer {
    position: absolute;
    inset: 0;
}

.hero__bg-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero__bg-video.is-ready {
    opacity: 1;
}

.hero.is-video-ready .hero__bg {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg-video {
        display: none;
    }
}

/* ---------- Кнопка «Наверх» ---------- */
.scroll-top-btn {
    --scroll-top-size: 48px;
    --scroll-top-gap: 12px;
    position: fixed;
    z-index: 600;
    /* при широком экране — в поле справа от контента; иначе у края вьюпорта */
    right: max(
        16px,
        calc(
            (100vw - var(--container-width-with-padding, 1580px)) / 2
            - var(--scroll-top-size)
            - var(--scroll-top-gap)
        )
    );
    bottom: max(48px, calc(env(safe-area-inset-bottom, 0px) + 48px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--scroll-top-size);
    height: var(--scroll-top-size);
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand-color, #0000f8);
    color: #fff;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn__icon {
    display: block;
    width: 18px;
    height: 18px;
}

@media (hover: hover) {
    .scroll-top-btn:hover {
        background: #fff;
        border-color: var(--brand-color, #0000f8);
        color: var(--brand-color, #0000f8);
    }
}

.scroll-top-btn:active {
    filter: brightness(0.92);
}

@media (min-width: 992px) {
    .scroll-top-btn {
        --scroll-top-size: 54px;
        --scroll-top-gap: 16px;
        bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    }

    .scroll-top-btn__icon {
        width: 20px;
        height: 20px;
    }
}
