main.layout-detailed-object {
    --zhk-accent: #42c4b2;
    --zhk-accent-dark: #188f83;
    --zhk-text: #253147;
    --zhk-muted: #7d8da2;
    --zhk-line: #e6ecf1;
    --zhk-soft: #f5f8fa;
    --zhk-radius: 15px;
    --zhk-shadow: 0 5px 24px rgba(29, 52, 74, .045);
    color: var(--zhk-text);
}

/* 1. Сохраняем существующий слайдер и его JS-крючки. */
main.layout-detailed-object > .PhotoSliderInfoItem {
    position: relative;
    overflow: hidden;
    background: #263447;
}
main.layout-detailed-object .PhotoSliderInfoItem__slider-wrapper,
main.layout-detailed-object .PhotoSliderInfoItem__slider {
    min-height: 360px;
}
main.layout-detailed-object .PhotoSliderInfoItem__slider img {
    object-fit: cover;
}
main.layout-detailed-object .PhotoSliderInfoItem__title h1 {
    letter-spacing: -.025em;
    line-height: 1.13;
}
main.layout-detailed-object .PhotoSliderInfoItem__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
main.layout-detailed-object .PhotoSliderInfoItem__actions button {
    transition: transform .2s ease, box-shadow .2s ease;
}
main.layout-detailed-object .PhotoSliderInfoItem__actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

/* 2. Две существующие колонки. Не переопределяем сетку проекта. */
main.layout-detailed-object > .layout-double {
    align-items: start;
}
main.layout-detailed-object > .layout-double > :first-child {
    min-width: 0;
}

/* 3. Общая система секций. */
main.layout-detailed-object .layout-double .NewbuildSection {
    margin: 0 0 24px;
    padding: 27px 29px 30px;
    background: #fff;
    border: 1px solid var(--zhk-line);
    border-radius: var(--zhk-radius);
    box-shadow: var(--zhk-shadow);
    min-width: 0;
}
main.layout-detailed-object .NewbuildSection__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 23px;
    padding: 0 0 18px;
}
main.layout-detailed-object .NewbuildSection__head h2 {
    margin: 0;
    color: var(--zhk-text);
    font-size: clamp(23px, 2vw, 29px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
}
main.layout-detailed-object .NewbuildSection__sub,
main.layout-detailed-object .NewbuildSection p {
    color: #536174;
    line-height: 1.65;
}
main.layout-detailed-object .NewbuildGroupTitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 14px;
    color: #273548;
    font-weight: 650;
    font-size: 16px;
}
main.layout-detailed-object .NewbuildGroupTitle::after {
    content: '';
    height: 1px;
    background: var(--zhk-line);
    flex: 1;
}

/* 4. Ключевые показатели ЖК и характеристики по корпусам. */
main.layout-detailed-object .NewbuildGeneralMainGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
main.layout-detailed-object .NewbuildGeneralMainItem {
    display: flex;
    align-items: center;
    min-height: 104px;
    padding: 17px 20px;
    border: 1px solid #e9eff2;
    border-radius: 11px;
    background: #f7fafb;
    box-sizing: border-box;
}
main.layout-detailed-object .NewbuildGeneralMainItem__label {
    color: var(--zhk-muted);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 7px;
}
main.layout-detailed-object .NewbuildGeneralMainItem__value {
    color: #27364a;
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.3;
    font-weight: 700;
}
main.layout-detailed-object .NewbuildGeneralPairs {
    display: grid;
    grid-template-columns: 1fr;
}
main.layout-detailed-object .NewbuildGeneralPair {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 2px;
    border-bottom: 1px solid #ebeff3;
    color: #68788d;
    line-height: 1.5;
    font-size: 14px;
}
main.layout-detailed-object .NewbuildGeneralPair > :first-child {
    min-width: 0;
}
main.layout-detailed-object .NewbuildGeneralPair b,
main.layout-detailed-object .NewbuildGeneralPair strong {
    color: #2c3b50;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

/* 5. Карточки корпусов. */
main.layout-detailed-object .NewbuildComplexPage__corpus-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
main.layout-detailed-object .NewbuildComplexPage__corpus-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 21px;
    border: 1px solid var(--zhk-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(40, 60, 80, .035);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
main.layout-detailed-object .NewbuildComplexPage__corpus-card:hover {
    border-color: #b7ded8;
    box-shadow: 0 9px 25px rgba(24, 72, 81, .08);
    transform: translateY(-2px);
}
main.layout-detailed-object .NewbuildComplexPage__corpus-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
}
main.layout-detailed-object .NewbuildComplexPage__corpus-head h3 {
    margin: 0;
    color: var(--zhk-text);
    font-size: 19px;
    line-height: 1.3;
}
main.layout-detailed-object .NewbuildComplexPage__corpus-card > a {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 8px;
    color: var(--zhk-accent-dark);
    font-weight: 650;
    text-decoration: none;
}
main.layout-detailed-object .NewbuildComplexPage__corpus-card > a:hover {
    text-decoration: underline;
}

/* 6. Фильтр и предложения квартир. Без изменения логики форм. */
main.layout-detailed-object .ZhkApartmentsSearch {
    display: block;
    padding: 19px;
    border: 1px solid var(--zhk-line);
    border-radius: 12px;
    background: var(--zhk-soft);
}
main.layout-detailed-object .ZhkApartmentsSearch .ApartmentsListFilter__line {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 17px;
}
main.layout-detailed-object .ZhkApartmentsSearch .ApartmentsListFilter__line:last-child {
    margin-bottom: 0;
}
main.layout-detailed-object .ZhkApartmentsSearch .ApartmentsListFilter__group {
    flex: 1 1 210px;
    min-width: 0;
}
main.layout-detailed-object .ZhkApartmentsSearch .CheckboxTab {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
main.layout-detailed-object .ZhkApartmentsSearch .CheckboxTab__item {
    margin: 0;
}
main.layout-detailed-object .ZhkApartmentsSearch .CheckboxTab__item span {
    border-radius: 8px;
    transition: border-color .2s ease, background .2s ease;
}
main.layout-detailed-object .ZhkApartmentsSearch input[type='number'],
main.layout-detailed-object .ZhkApartmentsSearch select {
    width: 100%;
    max-width: 165px;
    min-height: 39px;
    padding: 8px 11px;
    border: 1px solid #dbe4eb;
    border-radius: 8px;
    background: #fff;
    color: var(--zhk-text);
    box-sizing: border-box;
}
main.layout-detailed-object .ZhkApartmentsSearch input:focus-visible,
main.layout-detailed-object .ZhkApartmentsSearch select:focus-visible {
    outline: 2px solid rgba(66,196,178,.5);
    outline-offset: 2px;
}
main.layout-detailed-object .ZhkApartmentsSearch button[type='submit'] {
    cursor: pointer;
}
main.layout-detailed-object #zhk-offers.ApartmentsSaleSection .ApartmentsListTable {
    margin-top: 22px;
    min-width: 0;
}
main.layout-detailed-object #zhk-offers.ApartmentsSaleSection .ApartmentsListTable__item {
    transition: background .15s ease;
}
main.layout-detailed-object #zhk-offers.ApartmentsSaleSection .ApartmentsListTable__item:hover {
    background: #f7fbfa;
}

/* 7. Квартирография и прочие таблицы. */
main.layout-detailed-object .NewbuildTable {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--zhk-line);
    border-radius: 11px;
    background: #fff;
}
main.layout-detailed-object .NewbuildTable__head {
    background: #f4f8f9;
    color: #65778a;
    font-weight: 650;
}
main.layout-detailed-object .NewbuildTable__row {
    border-bottom: 1px solid var(--zhk-line);
}
main.layout-detailed-object .NewbuildTable__row:last-child {
    border-bottom: 0;
}
main.layout-detailed-object .NewbuildTable__strong {
    color: #26374b;
    font-weight: 700;
}

/* 8. Инфраструктура, карта и показатели экологии. */
main.layout-detailed-object .NewbuildMapWrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--zhk-line);
    background: #edf3f4;
}
main.layout-detailed-object .NewbuildMap {
    width: 100%;
    height: 350px;
    min-height: 350px;
}
main.layout-detailed-object .NewbuildLocationIndexes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 18px 0 8px;
}
main.layout-detailed-object .NewbuildLocationIndex {
    border-radius: 11px;
    border: 1px solid var(--zhk-line);
    background: #f7fafb;
    padding: 15px;
}
main.layout-detailed-object .NewbuildLocationIndex__score {
    font-size: 22px;
    color: var(--zhk-accent-dark);
    font-weight: 750;
}
main.layout-detailed-object .NewbuildLocationIndex__title {
    margin-top: 4px;
    font-size: 13px;
    color: #748297;
}

/* 9. Застройщик и документы. */
main.layout-detailed-object .NewbuildDeveloper__card {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--zhk-line);
    background: #f9fbfc;
}
main.layout-detailed-object .NewbuildDeveloper__name {
    color: #27384c;
    font-weight: 700;
}
main.layout-detailed-object .NewbuildDocuments__list {
    display: grid;
    gap: 10px;
}
main.layout-detailed-object .NewbuildDocuments__item {
    padding: 16px 18px;
    background: #f9fbfc;
    border: 1px solid var(--zhk-line);
    border-radius: 10px;
}
main.layout-detailed-object .NewbuildDocuments__title {
    color: #26374b;
    font-weight: 650;
}
main.layout-detailed-object .NewbuildDocuments__meta {
    color: var(--zhk-muted);
    font-size: 13px;
}

/* 10. Правая колонка — прежний sticky PanelRc. */
main.layout-detailed-object .layout-detailed-object__top {
    min-width: 0;
}
main.layout-detailed-object .PanelRc__panel {
    border-radius: 14px;
    border: 1px solid var(--zhk-line);
    background: #fff;
    box-shadow: var(--zhk-shadow);
    overflow: hidden;
}
main.layout-detailed-object .PanelRc__title {
    color: #26374b;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}
main.layout-detailed-object .PanelRc__address {
    margin: 10px 0;
    color: var(--zhk-muted);
    line-height: 1.5;
    font-size: 13px;
}
main.layout-detailed-object .PanelRc__footer {
    border-top-color: var(--zhk-line);
}

/* Разделители, ссылки и клавиатурная навигация. */
main.layout-detailed-object .NewbuildSection a:not(.button--large):not(.button--bordered) {
    text-underline-offset: 3px;
}
main.layout-detailed-object :where(a, button, input, select):focus-visible {
    outline: 2px solid var(--zhk-accent-dark);
    outline-offset: 3px;
}

/* Уплотняем карточки на средних экранах — ширина колонки важнее viewport. */
@media (max-width: 1250px) {
    main.layout-detailed-object .NewbuildComplexPage__corpus-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1050px) {
    main.layout-detailed-object .layout-double .NewbuildSection {
        padding: 22px;
    }
    main.layout-detailed-object .NewbuildGeneralMainGrid,
    main.layout-detailed-object .NewbuildLocationIndexes {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    main.layout-detailed-object .PhotoSliderInfoItem__slider-wrapper,
    main.layout-detailed-object .PhotoSliderInfoItem__slider {
        min-height: 260px;
    }
    main.layout-detailed-object .layout-double .NewbuildSection {
        margin-bottom: 16px;
        padding: 19px 16px;
        border-radius: 12px;
    }
    main.layout-detailed-object .NewbuildSection__head h2 {
        font-size: 23px;
    }
    main.layout-detailed-object .NewbuildGeneralPair {
        gap: 12px;
        font-size: 13px;
    }
    main.layout-detailed-object .ZhkApartmentsSearch {
        padding: 14px;
    }
    main.layout-detailed-object .NewbuildMap {
        height: 280px;
        min-height: 280px;
    }
}
@media (prefers-reduced-motion: reduce) {
    main.layout-detailed-object .NewbuildComplexPage__corpus-card,
    main.layout-detailed-object .PhotoSliderInfoItem__actions button {
        transition: none;
        transform: none;
    }
}

main.layout-detailed-object .ZhkCorpusTableWrap {
    width: 100%;
    overflow-x: auto;
}

main.layout-detailed-object .ZhkCorpusTable {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
    color: #26374b;
}

main.layout-detailed-object .ZhkCorpusTable th,
main.layout-detailed-object .ZhkCorpusTable td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e6edf3;
    vertical-align: middle;
}

main.layout-detailed-object .ZhkCorpusTable th {
    background: #f2f8fa;
    font-size: 12px;
    font-weight: 600;
    color: #7d8da9;
    white-space: nowrap;
}

main.layout-detailed-object .ZhkCorpusTable tbody tr:hover {
    background: #f0faf8;
}

main.layout-detailed-object .ZhkCorpusTable td:first-child a {
    color: #009b90;
    font-weight: 700;
    text-decoration: none;
}

main.layout-detailed-object .ZhkCorpusTable td:first-child a:hover {
    text-decoration: underline;
}


/* Вкладки корпусов */

main.layout-detailed-object .NewbuildGeneral__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}

main.layout-detailed-object .NewbuildGeneral__tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #dfe8ed;
    border-radius: 8px;
    background: #f7fafb;
    color: #344659;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

main.layout-detailed-object .NewbuildGeneral__tab:hover {
    border-color: #42cdb9;
    color: #188f83;
}

main.layout-detailed-object .NewbuildGeneral__tab.is-active {
    border-color: #188f83;
    background: #eaf7f4;
    color: #188f83;
    font-weight: 650;
}

/* Скрытые вкладки и дополнительные характеристики */

main.layout-detailed-object .NewbuildGeneral__panel[hidden],
main.layout-detailed-object .NewbuildGeneral__extra[hidden] {
    display: none !important;
}

main.layout-detailed-object .NewbuildGeneral__more {
    margin-top: 12px;
}

/* Кнопка «Показать еще» / «Свернуть» */

main.layout-detailed-object .NewbuildGeneral__more-button {
    display: block;
    width: 192px;
    height: 50px;
    margin: 30px auto 0;
    padding: 0 18px;
    box-sizing: border-box;

    border: 2px solid #42cdb9;
    border-radius: 10px;
    background: #fff;

    color: #42cdb9;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;
    transition: background .2s, color .2s;
}

main.layout-detailed-object .NewbuildGeneral__more-button:hover {
    background: #42cdb9;
    color: #fff;
}

main.layout-detailed-object .NewbuildGeneral__more-button:focus-visible {
    outline: 2px solid #188f83;
    outline-offset: 3px;
}


/* Преимущества ЖК — вариант 1: единая мягкая поверхность без рамок */
main.layout-detailed-object #zhk-advantages .ZhkAdvantagesGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #f3f9f8;
}

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 62px;
    padding: 7px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background-color .2s ease;
}

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard::before {
    content: none;
}

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 10px;
    background: #e0f2ee;
    color: #079c96;
}

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard__icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard__label {
    min-width: 0;
    color: #253147;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    overflow-wrap: break-word;
}

@media (hover: hover) {
    main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard:hover {
        background: rgba(215, 239, 234, .55);
        box-shadow: none;
        border: 0;
        transform: none;
    }
}

@media (max-width: 950px) {
    main.layout-detailed-object #zhk-advantages .ZhkAdvantagesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    main.layout-detailed-object #zhk-advantages .ZhkAdvantagesGrid {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 8px;
    }

    main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard {
        min-height: 56px;
        padding: 6px 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard {
        transition: none;
    }
}


/* ЖК: отдельная карта и три рейтинга, остальные разделы не затрагиваем. */
main.layout-detailed-object #zhk-location .NewbuildMapFilters {
    display: flex; gap: 9px; flex-wrap: wrap; padding: 15px 15px 5px;
}
main.layout-detailed-object #zhk-location .NewbuildMapFilters button {
    cursor: pointer; border: 1px solid #dfe8ed; border-radius: 8px;
    padding: 9px 13px; background: #f7fafb; color: #344659;
    font-size: 13px; font-weight: 600;
}
main.layout-detailed-object #zhk-location .NewbuildMapFilters button span {
    margin-left: 5px; color: #8695a7;
}
main.layout-detailed-object #zhk-location .NewbuildMapFilters button.is-active {
    color: #188f83; border-color: #42c4b2; background: #eaf7f4;
}
main.layout-detailed-object #zhk-location .NewbuildLocationIndexes--zhk {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin: 22px 0 0;
}
main.layout-detailed-object #zhk-location .NewbuildLocationIndexes--zhk .NewbuildLocationIndex {
    min-width: 0; display: flex; gap: 12px; align-items: center;
    padding: 14px 12px; border: 1px solid #e6ecf1;
    border-radius: 11px; background: #f9fbfc;
}
main.layout-detailed-object #zhk-location .NewbuildLocationIndexes--zhk .NewbuildLocationIndex__score {
    width: 48px; height: 48px; flex: 0 0 48px;
    box-sizing: border-box; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 20px; font-weight: 700;
    color: var(--rate-color); background: var(--rate-bg);
    border: 2px solid var(--rate-color);
}
main.layout-detailed-object #zhk-location .NewbuildLocationIndexes--zhk .NewbuildLocationIndex__title {
    font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; color: #35455a;
}
main.layout-detailed-object #zhk-location .NewbuildLocationIndex--low { --rate-color: #ca7969; --rate-bg: #fcf0ec; }
main.layout-detailed-object #zhk-location .NewbuildLocationIndex--fair { --rate-color: #b79b47; --rate-bg: #fcf7e6; }
main.layout-detailed-object #zhk-location .NewbuildLocationIndex--good { --rate-color: #899f4b; --rate-bg: #f5f8e8; }
main.layout-detailed-object #zhk-location .NewbuildLocationIndex--high { --rate-color: #359a7e; --rate-bg: #eaf8f2; }
@media (max-width: 850px) {
    main.layout-detailed-object #zhk-location .NewbuildLocationIndexes--zhk { grid-template-columns: 1fr; }
}



/* Экология и благоустройство: квадратные WebP в круглой маске */
main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}
main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 132px;
    gap: 17px;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #e1eaf1;
    border-radius: 14px;
    background: linear-gradient(115deg, #ffffff 20%, #f6fbff 100%);
    box-shadow: 0 4px 12px rgba(36, 68, 96, .025);
}
main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 114px;
    width: 114px;
    height: 114px;
    padding: 9px;
    box-sizing: border-box;
    border-radius: 50%;
    overflow: hidden;
    background: #e4f4f0;
}
main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__icon img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}
main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__content {
    flex: 1;
    min-width: 0;
    padding: 0;
}
main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__name {
    margin: 0;
    color: #20334c;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: break-word;
}
@media (max-width: 950px) {
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__item {
        min-height: 104px;
        padding: 10px;
        gap: 10px;
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__icon {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
        padding: 6px;
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__name {
        font-size: 14px;
    }
}
@media (max-width: 700px) {
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__item {
        min-height: 104px;
        gap: 14px;
        padding: 10px 13px;
    }
}

/* Застройщики ЖК */

main.layout-detailed-object #zhk-developers .NewbuildDeveloper__card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

main.layout-detailed-object #zhk-developers .NewbuildDeveloper__main {
    margin-bottom: 16px;
}

main.layout-detailed-object #zhk-developers .NewbuildDeveloper__name {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #253147;
}

main.layout-detailed-object #zhk-developers .NewbuildGeneralPair b {
    max-width: 65%;
}

main.layout-detailed-object #zhk-developers .NewbuildGeneralPair a {
    color: #188f83;
    text-decoration: none;
}

main.layout-detailed-object #zhk-developers .NewbuildGeneralPair a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    main.layout-detailed-object #zhk-developers .NewbuildGeneralPair b {
        max-width: 60%;
    }
}

/* Документы ЖК */

main.layout-detailed-object #zhk-documents .ZhkDocuments__source {
    margin: -7px 0 20px;
    color: #8b98aa;
    font-size: 12px;
    line-height: 1.5;
}

main.layout-detailed-object #zhk-documents .ZhkDocuments__source a {
    color: #188f83;
    text-decoration: none;
}

main.layout-detailed-object #zhk-documents .ZhkDocuments__source a:hover {
    text-decoration: underline;
}

main.layout-detailed-object #zhk-documents .ZhkDocuments__count {
    margin-bottom: 15px;
    color: #8b98aa;
    font-size: 13px;
}

main.layout-detailed-object #zhk-documents .ZhkDocuments__panel[hidden],
main.layout-detailed-object #zhk-documents .ZhkDocuments__item[hidden] {
    display: none !important;
}

main.layout-detailed-object #zhk-documents .ZhkDocuments__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

main.layout-detailed-object #zhk-documents .NewbuildDocuments__content {
    flex: 1;
    min-width: 0;
}

main.layout-detailed-object #zhk-documents .NewbuildDocuments__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 7px;
}

main.layout-detailed-object #zhk-documents .NewbuildDocuments__download {
    flex: 0 0 auto;
    color: #188f83;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

main.layout-detailed-object #zhk-documents .NewbuildDocuments__download:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    main.layout-detailed-object #zhk-documents .ZhkDocuments__item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}


/* Описание жилого комплекса */

main.layout-detailed-object #zhk-about .BasicHtmlContent {
    max-width: 100%;
    color: #344257;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Заголовки подразделов */

main.layout-detailed-object #zhk-about .BasicHtmlContent h3 {
    margin: 28px 0 12px;
    padding: 0;
    color: #24344c;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

main.layout-detailed-object #zhk-about .BasicHtmlContent h3:first-child {
    margin-top: 0;
}

/* Основной текст */

main.layout-detailed-object #zhk-about .BasicHtmlContent p {
    margin: 0 0 11px;
    padding: 0;
    color: #44536a;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Последний абзац перед следующим заголовком */

main.layout-detailed-object #zhk-about .BasicHtmlContent p:has(+ h3) {
    margin-bottom: 0;
}

main.layout-detailed-object #zhk-about .BasicHtmlContent p:last-child {
    margin-bottom: 0;
}

/* Разделение смысловых блоков */

main.layout-detailed-object #zhk-about .BasicHtmlContent h3:not(:first-child) {
    padding-top: 20px;
    border-top: 1px solid #edf1f5;
}

/* Мобильные устройства */

@media (max-width: 767px) {
    main.layout-detailed-object #zhk-about .BasicHtmlContent {
        font-size: 14px;
        line-height: 1.65;
    }

    main.layout-detailed-object #zhk-about .BasicHtmlContent h3 {
        margin-top: 22px;
        margin-bottom: 10px;
        font-size: 18px;
    }

    main.layout-detailed-object #zhk-about .BasicHtmlContent p {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.65;
    }

    main.layout-detailed-object #zhk-about .BasicHtmlContent h3:not(:first-child) {
        padding-top: 17px;
    }
}


/* Кратко о ЖК — три равные карточки в ряд. */
main.layout-detailed-object #zhk-summary {
    container-type: inline-size;
    container-name: zhk-summary;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem,
main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured {
    grid-column: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 94px;
    padding: 14px 15px;
    box-sizing: border-box;
    border: 1px solid #e8eef2;
    border-radius: 12px;
    background: #f9fbfc;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--wide {
    grid-column: 1 / -1;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__icon,
main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured .NewbuildGeneralMainItem__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 12px;
    background: #e3f6f5;
    color: #06a69c;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__icon svg,
main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured .NewbuildGeneralMainItem__icon svg {
    width: 28px;
    height: 28px;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__body {
    min-width: 0;
    flex: 1;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__label,
main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured .NewbuildGeneralMainItem__label {
    margin: 0 0 5px;
    color: #7a8ba2;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__value,
main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured .NewbuildGeneralMainItem__value {
    color: #142544;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
}

main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__unit {
    color: inherit;
    font: inherit;
}

@container zhk-summary (max-width: 690px) {
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container zhk-summary (max-width: 460px) {
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainGrid {
        grid-template-columns: 1fr;
    }
}

/* Только правый блок ЖК */
main.layout-detailed-object .PanelRc__feature-id {
    margin: 8px 0;
    color: #8794a7;
    font-size: 12px;
}
main.layout-detailed-object .PanelRc__developer-logo {
    display: block;
    max-width: 105px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}
main.layout-detailed-object .PanelRc__developer .DeveloperSmallBlock__body {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Вся секция преимуществ — мятный фон */

main.layout-detailed-object .layout-double #zhk-advantages.NewbuildSection {
    background: #eef7fa;
    border-color: #dcebf1;
}

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard__icon {
    background: #dceff1;
}

/* Убираем отдельную плашку под иконками */

main.layout-detailed-object #zhk-advantages .ZhkAdvantagesGrid {
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
}

/* Сами элементы без фона и обводок */

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 8px 4px;
}

/* Оставляем мятные плашки только под иконками */

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard__icon {
    background: #d9f0eb;
}

/* Убираем эффекты отдельных карточек */

main.layout-detailed-object #zhk-advantages .ZhkAdvantageCard:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}

main.layout-detailed-object .layout-double #zhk-about.NewbuildSection {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Обзор группы компаний: общая голубая плитка, логотип слева,
   заголовок и кнопка сверху, компактные показатели в одной линии. */
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview {
    display: flex;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
    margin-bottom: 25px;
    padding: 19px;
    border: 1px solid #dbe8fb;
    border-radius: 16px;
    background: #e7f0ff;
    box-shadow: none;
    box-sizing: border-box;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    overflow: hidden;
    border-radius: 11px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__content {
    flex: 1 1 auto;
    min-width: 0;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__identity {
    min-width: 0;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__eyebrow {
    font-size: 12px;
    line-height: 1.3;
    color: #455a79;
    font-weight: 600;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__name {
    margin: 3px 0;
    color: #122a51;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.16;
    overflow-wrap: anywhere;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__founded,
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__site {
    display: inline-block;
    margin: 2px 12px 0 0;
    color: #647a98;
    font-size: 12px;
    line-height: 1.4;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__site {
    color: #1366d9;
    text-decoration: none;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__site:hover { text-decoration: underline; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 13px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    background: #1268ef;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone:hover { background: #0755d1; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone svg { width: 15px; height: 15px; flex: 0 0 15px; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 17px;
    border-top: 0;
    padding: 0;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 10px;
    border-left: 1px solid #d4e2f5;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat:first-child {
    padding-left: 0;
    border-left: 0;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #d9f1f0;
    color: #129e96;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon svg { width: 19px; height: 19px; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-body { min-width: 0; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-label {
    display: block;
    color: #68809b;
    font-size: 11px;
    line-height: 1.3;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-value {
    display: block;
    margin-top: 3px;
    color: #172b4b;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.25;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperLegal__heading {
    margin: 24px 0 17px;
    color: #253147;
    font-size: 18px;
    font-weight: 700;
}
@media (max-width: 1200px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview { gap: 13px; padding: 16px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo { width: 70px; height: 70px; flex-basis: 70px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat { padding: 0 6px; gap: 6px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon { width: 29px; height: 29px; flex-basis: 29px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-value { font-size: 15px; }
}
@media (max-width: 720px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview { gap: 11px; padding: 13px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo { width: 52px; height: 52px; flex-basis: 52px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__header { flex-wrap: wrap; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__name { font-size: 21px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone { width: 100%; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats { gap: 12px 0; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon { flex-basis: 27px; width: 27px; height: 27px; }
}

/* Карточка компании: итоговая компоновка, только #zhk-developers */
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(115deg, #e6f1ff 0%, #eaf3ff 100%);
    border: 1px solid #dbe8f8;
    border-radius: 17px;
    box-shadow: 0 6px 23px rgba(39, 74, 113, .045);
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo {
    width: 116px;
    height: 116px;
    flex-basis: auto;
    border-radius: 12px;
    background: #162232;
    color: #fff;
    overflow: hidden;
    align-self: start;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo img {
    width: 100%; height: 100%; object-fit: contain;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo-placeholder {
    display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
    color: #fff; font-size: 48px; font-weight: 700;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__content { min-width: 0; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__header {
    min-height: 56px; gap: 18px; align-items: center;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__name {
    font-size: 27px; font-weight: 750; line-height: 1.17; margin: 4px 0;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__eyebrow { font-size: 12px; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone {
    min-height: 42px; padding: 11px 16px; font-size: 13px; border-radius: 9px;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px; gap: 0; align-items: center;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat {
    padding: 0 12px; gap: 9px; min-height: 51px;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon {
    width: 38px; height: 38px; flex-basis: 38px;
    background: #d9f1ef; border-radius: 10px;
}
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon svg { width: 20px; height: 20px; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-label { font-size: 11px; }
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-value { font-size: 19px; }
@media (max-width: 1100px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview {
        grid-template-columns: 86px minmax(0, 1fr); gap: 17px; padding: 20px;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo { width: 86px; height: 86px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat { padding: 0 7px; gap: 6px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-icon { width: 32px; height: 32px; flex-basis: 32px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-value { font-size: 17px; }
}
@media (max-width: 740px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__header { flex-wrap: wrap; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 15px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview { grid-template-columns: 66px minmax(0, 1fr); gap: 11px; padding: 15px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo { width: 66px; height: 66px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__name { font-size: 21px; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone { width: auto; }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats { grid-column: 1 / -1; }
}




/* Корпуса ЖК — иллюстрированная шапка и таблица, без влияния на другие блоки */
main.layout-detailed-object .layout-double #zhk-corpuses.NewbuildSection {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
}
main.layout-detailed-object #zhk-corpuses::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -12px;
    right: 0;
    width: min(75%, 640px);
    height: 168px;
    background: url('/img/other/zhk-corpuses/corpuses-bg.webp')
    right top / cover no-repeat;
    pointer-events: none;
}
main.layout-detailed-object #zhk-corpuses .NewbuildSection__head {
    position: relative;
    min-height: 101px;
    box-sizing: border-box;
    align-items: flex-start;
    padding-top: 10px;
    margin-bottom: 21px;
}
main.layout-detailed-object #zhk-corpuses .NewbuildSection__head h2 {
    position: relative;
    z-index: 1;
    max-width: 76%;
    text-shadow: 0 1px 1px rgba(255,255,255,.6);
}
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTableWrap {
    position: relative;
    z-index: 1;
    border: 1px solid #e4ebf1;
    border-radius: 14px;
    overflow-x: auto;
    background: #fff;
}
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
}
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable th {
    background: #f1f7f9;
    color: #7b8ba2;
    font-weight: 650;
    font-size: 12px;
}
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable th,
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable td {
    padding: 16px 11px;
    border-bottom: 1px solid #e7edf2;
    vertical-align: middle;
}
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable tr:last-child td { border-bottom: 0; }
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable tbody tr:hover { background: #f6fbfb; }
main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable td:first-child a {
    color: #009b90;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 767px) {
    main.layout-detailed-object #zhk-corpuses::before { height: 120px; width: 85%; opacity: .65; }
    main.layout-detailed-object #zhk-corpuses .NewbuildSection__head { min-height: 83px; }
    main.layout-detailed-object #zhk-corpuses .NewbuildSection__head h2 { max-width: 85%; }
}



/* Документы ЖК: фон встроен в секцию, без белого зазора сверху.
   Не затрагивает корпуса, вкладки других блоков и скрипты. */
main.layout-detailed-object .layout-double #zhk-documents.NewbuildSection {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
}
main.layout-detailed-object #zhk-documents::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: min(66%, 560px);
    height: 244px;
    background: url('/img/other/zhk-documents/documents-header.webp') right top / contain no-repeat;
    pointer-events: none;
}
main.layout-detailed-object #zhk-documents > .NewbuildSection__head,
main.layout-detailed-object #zhk-documents > .ZhkDocuments__source,
main.layout-detailed-object #zhk-documents > .ZhkDocuments__tabs,
main.layout-detailed-object #zhk-documents > .ZhkDocuments__panel {
    position: relative;
    z-index: 1;
}
main.layout-detailed-object #zhk-documents > .NewbuildSection__head {
    align-items: flex-start;
    box-sizing: border-box;
    min-height: 118px;
    margin-bottom: 12px;
    padding: 3px 0 0;
    border-bottom: 0;
}
main.layout-detailed-object #zhk-documents .NewbuildSection__head > div {
    min-width: 0;
    max-width: 73%;
}
main.layout-detailed-object #zhk-documents .NewbuildSection__head h2 {
    margin: 0 0 9px;
}
main.layout-detailed-object #zhk-documents .NewbuildSection__sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #677a95;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__source {
    margin: -12px 0 24px;
    color: #7386a0;
    font-size: 13px;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__tabs {
    margin-bottom: 23px;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__tabs .NewbuildGeneral__tab {
    min-height: 43px;
    padding: 10px 15px;
    background: #f8fbfd;
    border: 1px solid #dce8f0;
    border-radius: 10px;
    color: #2f4563;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__tabs .NewbuildGeneral__tab.is-active {
    background: #e6f7f5;
    border-color: #16a99d;
    color: #13877e;
    font-weight: 700;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__count {
    margin: 0 0 13px;
    font-size: 13px;
}
main.layout-detailed-object #zhk-documents .NewbuildDocuments__list {
    gap: 12px;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 18px 19px;
    border: 1px solid #e0e9f0;
    border-radius: 13px;
    background: linear-gradient(112deg, #fff, #fbfdff);
    box-shadow: 0 5px 14px rgba(29,52,74,.03);
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__typeIcon {
    display: flex;
    flex: 0 0 53px;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 12px;
    background: #e5f6f4;
    color: #109b91;
}
main.layout-detailed-object #zhk-documents .ZhkDocuments__typeIcon svg {
    width: 27px;
    height: 27px;
}
main.layout-detailed-object #zhk-documents .NewbuildDocuments__title {
    display: block;
    margin-bottom: 7px;
    color: #1d2d48;
    font-size: 15px;
    line-height: 1.35;
}
main.layout-detailed-object #zhk-documents .NewbuildDocuments__meta {
    margin-top: 0;
    gap: 5px 14px;
    color: #7386a0;
    font-size: 12px;
    line-height: 1.5;
}
main.layout-detailed-object #zhk-documents .NewbuildDocuments__download {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #188f83;
    font-size: 13px;
    white-space: nowrap;
}
main.layout-detailed-object #zhk-documents .NewbuildDocuments__download svg {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 5px;
    background: #eaf3fa;
    color: #506984;
}
@media (max-width: 740px) {
    main.layout-detailed-object #zhk-documents::before {
        width: 75%;
        height: 205px;
        opacity: .72;
    }
    main.layout-detailed-object #zhk-documents > .NewbuildSection__head { min-height: 115px; }
    main.layout-detailed-object #zhk-documents .NewbuildSection__head > div { max-width: 78%; }
}
@media (max-width: 480px) {
    main.layout-detailed-object #zhk-documents::before { width: 88%; opacity: .34; }
    main.layout-detailed-object #zhk-documents .NewbuildSection__head > div { max-width: 100%; }
    main.layout-detailed-object #zhk-documents .ZhkDocuments__item { gap: 10px; padding: 14px; }
    main.layout-detailed-object #zhk-documents .ZhkDocuments__typeIcon { width: 44px; height: 44px; flex-basis: 44px; }
}


/* Подробнее о корпусах. Вёрстка как в согласованном макете.
   Контейнерные условия зависят от ширины СЕКЦИИ, а не экрана. */
main.layout-detailed-object #zhk-general {
    container-type: inline-size;
    container-name: zhk-general;
}
main.layout-detailed-object #zhk-general .NewbuildSection__head {
    margin-bottom: 23px;
}
main.layout-detailed-object #zhk-general .NewbuildGeneral__tabs {
    margin-bottom: 25px;
}
main.layout-detailed-object #zhk-general .NewbuildGeneral__tab {
    min-height: 48px;
    padding: 12px 17px;
    font-size: 14px;
    border-radius: 11px;
    background: #f9fbfc;
}
main.layout-detailed-object #zhk-general .NewbuildGeneral__tab.is-active {
    background: #dff5f1;
    border-color: #26beb1;
    color: #078b83;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    min-width: 0;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo {
    position: relative;
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg,#d9eaf5,#eef6f8);
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo-caption {
    position: absolute;
    z-index: 1;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 30px);
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(240,255,252,.95);
    color: #20334c;
    box-shadow: 0 4px 14px rgba(25,48,72,.05);
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo-caption strong {
    font-size: 17px;
    line-height: 1.3;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo-caption span {
    color: #15a69c;
    font-size: 13px;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-template-rows: repeat(4, minmax(0,1fr));
    gap: 12px;
    min-width: 0;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 88px;
    padding: 13px 14px;
    border: 1px solid #e1ebf1;
    border-radius: 14px;
    background: linear-gradient(110deg,#fff,#f8fcfd);
    box-sizing: border-box;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__icon {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #e1f5f2;
    color: #079e96;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__icon svg {
    display: block;
    width: 27px;
    height: 27px;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__statText {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__label {
    color: #7589a2;
    font-size: 13px;
    line-height: 1.35;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__value {
    color: #20304c;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: break-word;
}
main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
main.layout-detailed-object #zhk-general .NewbuildGeneral__more {
    margin-top: 6px;
}
@container zhk-general (max-width: 720px) {
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview {
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 12px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat {
        gap: 8px;
        padding: 10px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__icon svg {
        width: 22px;
        height: 22px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__value {
        font-size: 15px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__label {
        font-size: 12px;
    }
}
@container zhk-general (max-width: 570px) {
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview {
        grid-template-columns: 1fr;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo {
        min-height: 280px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__grid {
        grid-template-rows: auto;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat {
        min-height: 78px;
    }
}
@container zhk-general (max-width: 390px) {
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__grid {
        grid-template-columns: 1fr;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

/* Адаптив ЖК: добавлять после существующих правил.
   Desktop-дизайн не изменяется. */

main.layout-detailed-object #zhk-advantages,
main.layout-detailed-object #zhk-ecology,
main.layout-detailed-object #zhk-developers {
    container-type: inline-size;
}

/* На широком экране левая колонка может быть уже всего viewport. */
@container (max-width: 650px) {
    main.layout-detailed-object #zhk-advantages .ZhkAdvantagesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__grid {
        grid-template-columns: 1fr;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    /* Только ЖК: отказываемся от двухколоночного desktop-layout. */
    main.layout-detailed-object > .layout-double {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        min-width: 0;
    }
    main.layout-detailed-object > .layout-double > * {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    main.layout-detailed-object .layout-detailed-object__sticky {
        position: static;
        top: auto;
    }
    main.layout-detailed-object .layout-double .NewbuildSection {
        min-width: 0;
    }
    main.layout-detailed-object .NewbuildSection__head {
        gap: 8px;
        min-width: 0;
    }
    main.layout-detailed-object .NewbuildSection__head h2 {
        overflow-wrap: anywhere;
        font-size: clamp(21px, 5.8vw, 25px);
    }
    main.layout-detailed-object > .PhotoSliderInfoItem .PhotoSliderInfoItem__slider-wrapper,
    main.layout-detailed-object > .PhotoSliderInfoItem .PhotoSliderInfoItem__slider {
        min-height: 260px;
    }
    main.layout-detailed-object .NewbuildGeneralPair {
        gap: 10px;
    }
    main.layout-detailed-object .NewbuildGeneralPair > * {
        min-width: 0;
    }
    /* Таблица горизонтально листается внутри себя, не растягивает страницу. */
    main.layout-detailed-object #zhk-corpuses .ZhkCorpusTableWrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    main.layout-detailed-object #zhk-corpuses .ZhkCorpusTable {
        min-width: 760px;
    }
    main.layout-detailed-object #zhk-corpuses::before {
        width: 82%;
        height: 128px;
        opacity: .58;
    }
    main.layout-detailed-object #zhk-corpuses .NewbuildSection__head h2 {
        max-width: 92%;
    }
    main.layout-detailed-object #zhk-general .NewbuildGeneral__tabs,
    main.layout-detailed-object #zhk-documents .ZhkDocuments__tabs {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    main.layout-detailed-object #zhk-general .NewbuildGeneral__tab,
    main.layout-detailed-object #zhk-documents .NewbuildGeneral__tab {
        min-height: 44px;
        white-space: nowrap;
    }
    main.layout-detailed-object #zhk-location .NewbuildLocationIndexes--zhk {
        grid-template-columns: 1fr;
    }
    main.layout-detailed-object #zhk-documents .ZhkDocuments__item {
        flex-wrap: wrap;
        min-width: 0;
    }
    main.layout-detailed-object #zhk-documents .NewbuildDocuments__content {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__header {
        flex-wrap: wrap;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    /* Summary: на телефоне одна карточка, не мельчим текст и иконки. */
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainGrid {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem,
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured {
        min-height: 75px;
        padding: 11px 13px;
        gap: 12px;
    }
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__icon,
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem--featured .NewbuildGeneralMainItem__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
    main.layout-detailed-object #zhk-summary .NewbuildGeneralMainItem__value {
        font-size: 16px;
        overflow-wrap: anywhere;
    }
    /* У корпуса изображение сверху, характеристики ниже. */
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo {
        min-height: 0;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 9px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat,
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__stat:last-child:nth-child(odd) {
        grid-column: auto;
        min-height: 69px;
        padding: 10px 12px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo-caption {
        top: 11px;
        left: 11px;
        padding: 9px 11px;
    }
    main.layout-detailed-object #zhk-general .ZhkGeneralOverview__photo-caption strong {
        font-size: 15px;
    }
    main.layout-detailed-object #zhk-general .NewbuildGeneral__more-button {
        max-width: 100%;
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__grid,
    main.layout-detailed-object #zhk-advantages .ZhkAdvantagesGrid {
        grid-template-columns: 1fr;
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__item {
        min-height: 93px;
        gap: 11px;
    }
    main.layout-detailed-object #zhk-ecology .NewbuildEcologyCards__icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        padding: 5px;
    }
    /* Последние desktop-переопределения застройщика больше не сжимают цифры. */
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__logo {
        width: 72px;
        height: 72px;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__content,
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats {
        grid-column: 1 / -1;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 0;
        margin-top: 14px;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat-value {
        font-size: 16px;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone {
        width: 100%;
    }
    main.layout-detailed-object #zhk-documents::before {
        opacity: .24;
        width: 100%;
    }
    main.layout-detailed-object #zhk-documents > .NewbuildSection__head {
        min-height: 92px;
    }
    main.layout-detailed-object #zhk-documents .NewbuildSection__head > div {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    main.layout-detailed-object .layout-double .NewbuildSection {
        padding: 17px 12px;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stats {
        grid-template-columns: 1fr;
    }
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__stat {
        border-left: 0;
        padding-left: 0;
    }
}


/* ЖК: фиксированная нижняя панель на телефоне */
@media (max-width: 767px) {
    main.layout-detailed-object {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }

    main.layout-detailed-object .PanelRc__footer {
        position: fixed;
        z-index: 100;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 70px;
        margin: 0;
        padding: 9px max(16px, env(safe-area-inset-right, 0px))
        calc(9px + env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
        border: 0;
        border-top: 1px solid #e3ebf1;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -5px 20px rgba(25, 48, 77, .08);
    }

    main.layout-detailed-object .PanelRc__footer .PanelRc__developer {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 68px);
        margin: 0;
        padding: 0;
    }

    main.layout-detailed-object .PanelRc__footer .DeveloperSmallBlock,
    main.layout-detailed-object .PanelRc__footer .DeveloperSmallBlock__body {
        display: flex;
        align-items: center;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 9px;
    }

    main.layout-detailed-object .PanelRc__footer .DeveloperSmallBlock__body > div {
        flex: 1 1 auto;
        min-width: 0;
    }

    main.layout-detailed-object .PanelRc__footer .DeveloperSmallBlock__name {
        display: block;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.3;
        color: #253147;
    }

    main.layout-detailed-object .PanelRc__footer .DeveloperSmallBlock__about {
        display: none;
    }

    main.layout-detailed-object .PanelRc__footer .PanelRc__developer-logo {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
        object-fit: contain;
    }

    main.layout-detailed-object .PanelRc__footer .PanelRc__panel-actions {
        position: static;
        display: block;
        flex: 0 0 54px;
        width: 54px;
        min-width: 54px;
        margin: 0;
        padding: 0;
    }

    main.layout-detailed-object .PanelRc__footer .PanelRc__panel-actions .js-lead-promo-open {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: #12264d;
        box-shadow: none;
        cursor: pointer;
    }

    main.layout-detailed-object .PanelRc__footer .PanelRc__panel-actions .js-lead-promo-open span {
        display: none;
    }

    main.layout-detailed-object .PanelRc__footer .PanelRc__panel-actions .js-lead-promo-open img {
        display: block;
        width: 23px;
        height: 23px;
        max-width: none;
        margin: 0;
        object-fit: contain;
    }
}

/* Правая карточка ЖК: остаётся на экране при прокрутке левой колонки. */
@media (min-width: 768px) {
    main.layout-detailed-object > .layout-double > .layout-detailed-object__top {
        align-self: stretch;
        min-width: 0;
    }

    main.layout-detailed-object > .layout-double > .layout-detailed-object__top > .layout-detailed-object__sticky {
        position: sticky;
        top: 20px;
        z-index: 5;
    }
}
/* Кнопка телефона в блоке застройщика */
main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 11px 17px;

    background: #fff;
    border: 1px solid #42c4b2;
    border-radius: 10px;

    color: #188f83;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;
    white-space: nowrap;

    transition: background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke: currentColor;
}

@media (hover: hover) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone:hover {
        background: #eaf7f4;
        border-color: #188f83;
        color: #117e75;
    }
}

main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone:focus-visible {
    outline: 2px solid #188f83;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    main.layout-detailed-object #zhk-developers .ZhkDeveloperOverview__phone {
        width: 100%;
        min-height: 46px;
    }
}

/* =========================================
   НОВОСТИ ЖИЛОГО КОМПЛЕКСА
   ========================================= */

main.layout-detailed-object #zhk-news {
    container-type: inline-size;
    min-width: 0;
}

main.layout-detailed-object #zhk-news .ZhkNews__header {
    margin-bottom: 25px;
}

main.layout-detailed-object #zhk-news .ZhkNews__header h2 {
    margin: 0 0 10px;
    color: #101c3b;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.03em;
}

main.layout-detailed-object #zhk-news .ZhkNews__header p {
    margin: 0;
    color: #72819d;
    font-size: 15px;
    line-height: 1.5;
}

/* Общие карточки */

main.layout-detailed-object #zhk-news .ZhkNewsCard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ecf1;
    border-radius: 13px;
    box-shadow: 0 5px 22px rgba(30, 55, 85, .045);
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #edf4f5;
    aspect-ratio: 16 / 7;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

@media (hover: hover) {
    main.layout-detailed-object #zhk-news .ZhkNewsCard:hover .ZhkNewsCard__image img {
        transform: scale(1.035);
    }
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 19px 21px 22px;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-bottom: 13px;
    color: #72819d;
    font-size: 12px;
    line-height: 1.4;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__category {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 30px;
    background: #e4f7f4;
    color: #009e95;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__category--blue {
    color: #2364c8;
    background: #e9f0ff;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard h3 a {
    color: #111e3f;
    text-decoration: none;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard h3 a:hover {
    color: var(--zhk-accent-dark, #188f83);
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__body p {
    margin: 0 0 17px;
    color: #72819d;
    font-size: 14px;
    line-height: 1.55;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__read {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    align-self: flex-start;
    margin-top: 0;
    color: #00a69b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__read span {
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__read:hover span {
    transform: translateX(4px);
}

/* Главная новость */

main.layout-detailed-object #zhk-news .ZhkNewsCard--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    background: linear-gradient(110deg, #fff 70%, #f4fbfd);
}

main.layout-detailed-object #zhk-news .ZhkNewsCard--featured .ZhkNewsCard__image {
    height: 100%;
    min-height: 300px;
    aspect-ratio: auto;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__featured-label {
    position: absolute;
    left: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 25px;
    background: #00a99f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard--featured .ZhkNewsCard__body {
    justify-content: center;
    padding: 27px 32px;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard--featured h3 {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard--featured .ZhkNewsCard__body p {
    font-size: 15px;
}

/* Остальные новости */

main.layout-detailed-object #zhk-news .ZhkNews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

main.layout-detailed-object #zhk-news .ZhkNews__grid .ZhkNewsCard__image {
    aspect-ratio: 16 / 7.2;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard[hidden] {
    display: none !important;
}

/* Кнопка как в остальных разделах */

main.layout-detailed-object #zhk-news .ZhkNews__more-button {
    display: block;
    width: 192px;
    height: 50px;
    margin: 30px auto 0;
    padding: 0 18px;
    box-sizing: border-box;
    border: 2px solid #42cdb9;
    border-radius: 10px;
    background: #fff;
    color: #42cdb9;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}

main.layout-detailed-object #zhk-news .ZhkNews__more-button:hover {
    background: #42cdb9;
    color: #fff;
}

main.layout-detailed-object #zhk-news .ZhkNews__more-button:focus-visible {
    outline: 2px solid #188f83;
    outline-offset: 3px;
}

main.layout-detailed-object #zhk-news .ZhkNews__more-button[hidden] {
    display: none !important;
}

/* Адаптивность именно по ширине секции */

@container (max-width: 900px) {
    main.layout-detailed-object #zhk-news .ZhkNews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main.layout-detailed-object #zhk-news .ZhkNewsCard--featured .ZhkNewsCard__body {
        padding: 22px;
    }
}

@container (max-width: 620px) {
    main.layout-detailed-object #zhk-news .ZhkNewsCard--featured {
        grid-template-columns: 1fr;
    }

    main.layout-detailed-object #zhk-news .ZhkNewsCard--featured .ZhkNewsCard__image {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    main.layout-detailed-object #zhk-news .ZhkNews__grid {
        grid-template-columns: 1fr;
    }

    main.layout-detailed-object #zhk-news .ZhkNewsCard__image,
    main.layout-detailed-object #zhk-news .ZhkNews__grid .ZhkNewsCard__image {
        aspect-ratio: 16 / 9;
    }

    main.layout-detailed-object #zhk-news .ZhkNewsCard__body {
        padding: 17px;
    }

    main.layout-detailed-object #zhk-news .ZhkNewsCard h3 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main.layout-detailed-object #zhk-news .ZhkNewsCard__image img,
    main.layout-detailed-object #zhk-news .ZhkNewsCard__read span,
    main.layout-detailed-object #zhk-news .ZhkNews__more-button {
        transition: none;
    }
}

/* Хештеги новостей ЖК */

main.layout-detailed-object #zhk-news .ZhkNewsCard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 12px;
    padding-top: 0;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__tags a {
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #00a69b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__tags a:hover {
    color: #188f83;
    text-decoration: underline;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__body p {
    margin-bottom: auto;
    padding-bottom: 18px;
}

/* Компактное расположение ссылки и хештегов */

main.layout-detailed-object #zhk-news .ZhkNewsCard__read {
    margin-top: 0;
    line-height: 1.2;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__tags {
    gap: 2px 8px;
    margin-top: 4px;
    padding: 0;
    line-height: 1.2;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__tags a {
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
}

main.layout-detailed-object #zhk-news .ZhkNewsCard__body p {
    margin-bottom: auto;
    padding-bottom: 10px;
}


main.layout-detailed-object #zhk-news .ZhkNews__more-button:disabled {
    opacity: .65;
    cursor: wait;
}

main.layout-detailed-object #zhk-news .ZhkNews__more-button[hidden] {
    display: none !important;
}