/*
 * Страница «Ход строительства» (pages/construction.php), макет
 * new_pages/sun-hills-layan-construction-exterior-gallery.html.
 * Только под .np--construction; общие классы — pages.css.
 */

.np--construction .npc-hero {
    padding-bottom: 24px;
}

.np--construction .npc-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background: #77d54b;
}

.np--construction .npc-lead {
    max-width: 820px;
    margin: 0 0 28px;
    color: var(--np-muted);
    font-size: 17px;
    line-height: 1.65;
}

.np--construction .npc-note {
    margin: 14px 0 0;
    color: #8a96a1;
    font-size: 13px;
    line-height: 1.6;
}

.np--construction .npc-link {
    display: inline-block;
    color: #286c9b;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.np--construction .npc-link:hover {
    text-decoration: underline;
}

.np--construction .npc-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 99px;
    background: #f1f5f7;
    color: #617989;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.np--construction .npc-tag--green {
    background: #eff7ee;
    color: #367d3b;
}

/* Карточки «Последняя публикация» / «Плановое завершение» */
.np--construction .npc-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 25px;
}

.np--construction .npc-metrics--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

.np--construction .npc-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid var(--np-line);
    border-radius: 27px;
    background: #fff;
}

.np--construction .npc-metric small {
    display: block;
    margin-bottom: 18px;
    color: var(--np-muted);
    font-size: 14px;
}

.np--construction .npc-metric strong {
    display: block;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

.np--construction .npc-metric > span:not(.npc-tag) {
    display: block;
    margin-top: 8px;
    color: #8995a0;
    font-size: 14px;
    line-height: 1.5;
}

.np--construction .npc-metric .npc-link {
    margin-top: 12px;
}

/* Панель с галереей экстерьера */
.np--construction .npc-panel {
    padding: 34px 28px 26px;
    border-radius: 35px;
    background: linear-gradient(115deg, #eaf2f9, #f4f7f9);
}

.np--construction .npc-panel__title {
    margin: 0 14px 20px;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.16;
    letter-spacing: -.05em;
}

.np--construction .npc-panel .npc-note {
    margin-left: 4px;
}

.np--construction .npc-gallery__stage {
    position: relative;
    overflow: hidden;
    border-radius: 27px;
    background: #e2e8ed;
}

.np--construction .npc-gallery__track {
    display: flex;
    height: clamp(260px, 42vw, 540px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.np--construction .npc-gallery__track::-webkit-scrollbar {
    display: none;
}

.np--construction .npc-gallery__slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    cursor: zoom-in;
}

.np--construction .npc-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np--construction .npc-gallery__chip {
    position: absolute;
    left: 20px;
    bottom: 18px;
    padding: 10px 16px;
    border-radius: 99px;
    background: rgba(11, 29, 41, .9);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    pointer-events: none;
}

.np--construction .npc-gallery__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0b1d29;
    font-size: 35px;
    line-height: 1;
    box-shadow: 0 3px 14px rgba(11, 29, 41, .15);
    transform: translateY(-50%);
}

.np--construction .npc-gallery__nav[hidden] {
    display: none;
}

.np--construction .npc-gallery__nav--prev {
    left: 17px;
}

.np--construction .npc-gallery__nav--next {
    right: 17px;
}

.np--construction .npc-gallery__thumbs {
    display: flex;
    gap: 11px;
    margin-top: 13px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.np--construction .npc-gallery__thumbs[hidden] {
    display: none;
}

.np--construction .npc-gallery__thumb {
    flex: 0 0 150px;
    height: 100px;
    padding: 0;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 17px;
    background: #e6eef3;
}

.np--construction .npc-gallery__thumb.is-active {
    border-color: #269cf0;
}

.np--construction .npc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Хронология */
.np--construction .npc-updates {
    display: grid;
    gap: 14px;
}

.np--construction .npc-update {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 25px;
    padding: 27px;
    border: 1px solid var(--np-line);
    border-radius: 27px;
    background: #fff;
}

.np--construction .npc-update__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #6d7f8e;
    font-size: 15px;
    font-weight: 700;
}

.np--construction .npc-update__title {
    margin: 0 0 8px;
    color: var(--np-ink);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.np--construction .npc-update__text {
    margin: 0 0 13px;
    color: var(--np-ink);
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -.02em;
}

/* Ключевые этапы */
.np--construction .npc-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.np--construction .npc-stage {
    padding: 25px;
    border: 1px solid var(--np-line);
    border-radius: 25px;
    background: #fff;
}

.np--construction .npc-stage__step {
    color: #91a0ad;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.np--construction .npc-stage__title {
    margin: 18px 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.np--construction .npc-stage__text {
    margin: 0;
    color: #7f8c98;
    font-size: 14px;
    line-height: 1.6;
}

/* Фотоотчёты (только реальные фото с датами) */
.np--construction .npc-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.np--construction .npc-photo {
    margin: 0;
}

.np--construction .npc-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.np--construction .npc-photo figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    color: #7c8995;
    font-size: 14px;
}

.np--construction .npc-photo figcaption strong {
    color: var(--np-ink);
}

/* Что запросить */
.np--construction .npc-notice {
    padding: 24px 29px;
    border-radius: 27px;
    background: #eef3f7;
    color: #6b7d8c;
    line-height: 1.65;
}

.np--construction .npc-notice strong {
    color: #18354a;
}

/* Запрос отчёта */
.np--construction .npc-request {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: start;
    padding: 48px;
    border-radius: 40px;
    background: #102536;
    color: #fff;
}

.np--construction .npc-request .np-eyebrow {
    color: #93aab9;
}

.np--construction .npc-request .np-h2 {
    font-size: clamp(32px, 4.5vw, 54px);
}

.np--construction .npc-request__copy p {
    margin: 0 0 22px;
    color: #adbeca;
    font-size: 16px;
    line-height: 1.65;
}

.np--construction .npc-request__copy .np-eyebrow {
    margin-bottom: 18px;
    font-size: 13px;
}

.np--construction .npc-request__form {
    max-width: none;
    margin: 0;
    border-radius: 28px;
    background: #fff;
    color: var(--np-ink);
}

/* Источники */
.np--construction .npc-sources {
    display: grid;
    gap: 10px;
}

.np--construction .npc-sources a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--np-line);
    border-radius: 17px;
    background: #fff;
    color: #245781;
    font-weight: 650;
}

.np--construction .npc-sources a:hover {
    background: #f3f8fc;
}

.np--construction .npc-sources__host {
    flex: none;
}

.np--construction .npc-sources__path {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #8a96a1;
    font-weight: 400;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .np--construction .npc-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np--construction .npc-request {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 35px;
    }

    .np--construction .npc-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .np--construction .npc-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .np--construction .npc-metric {
        padding: 20px;
    }

    .np--construction .npc-metric strong {
        font-size: 23px;
    }

    .np--construction .npc-panel {
        padding: 26px 13px 17px;
        border-radius: 28px;
    }

    .np--construction .npc-panel__title {
        margin: 0 10px 16px;
    }

    .np--construction .npc-gallery__stage {
        border-radius: 23px;
    }

    .np--construction .npc-gallery__track {
        height: clamp(230px, 67vw, 360px);
    }

    .np--construction .npc-gallery__chip {
        left: 12px;
        bottom: 12px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .np--construction .npc-gallery__nav {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .np--construction .npc-gallery__nav--prev {
        left: 10px;
    }

    .np--construction .npc-gallery__nav--next {
        right: 10px;
    }

    .np--construction .npc-gallery__thumbs {
        gap: 7px;
        margin-top: 8px;
    }

    .np--construction .npc-gallery__thumb {
        flex-basis: 92px;
        height: 64px;
        border-width: 2px;
        border-radius: 11px;
    }

    .np--construction .npc-update {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 23px;
    }

    .np--construction .npc-update__text {
        font-size: 17px;
    }

    .np--construction .npc-stages {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .np--construction .npc-stage {
        padding: 21px;
    }

    .np--construction .npc-photos {
        grid-template-columns: 1fr;
    }

    .np--construction .npc-request {
        padding: 25px 17px;
        border-radius: 29px;
    }

    .np--construction .npc-request__form {
        padding: 21px 16px;
        border-radius: 24px;
    }

    .np--construction .npc-sources a {
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .np--construction .npc-sources__path {
        flex-basis: 100%;
        order: 3;
    }
}

/* Сброс critical.css (font: inherit у h*, strong) — вес задаём явно */
.np--construction .npc-panel__title,
.np--construction .npc-metric strong,
.np--construction .npc-notice strong,
.np--construction .npc-photo figcaption strong {
    font-weight: 700;
}
