/*
 * Страница «Актуальные предложения и цены» (pages/offers.php) — по макету
 * new_pages/sun-hills-layan-offers-visible.html. Всё под .np--offers.
 * Переменные и базовые классы (.np-wrap, .np-btn, .np-chip…) — pages.css.
 */

.np--offers .np-btn {
    white-space: normal;
    text-align: center;
}

.np--offers .of-btn-navy {
    min-height: 54px;
    background: var(--np-navy);
    color: #fff;
}

.np--offers .of-btn-light {
    background: #fff;
    border: 1px solid #cdd5dc;
    color: var(--np-ink);
}

.np--offers .of-btn-pale {
    background: #eaf3f9;
    color: #2d6b9c;
}

.np--offers .of-btn-outline {
    background: transparent;
    border: 1px solid #50687c;
    color: #fff;
}

.np--offers .np-btn--green:hover {
    background: #5cc026;
}

/* ---------- Первый экран ---------- */
.np--offers .of-hero {
    padding-bottom: 40px;
}

.np--offers .of-h1 {
    margin: 0 0 24px;
    max-width: 1000px;
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}

.np--offers .of-hero .np-lead {
    margin-bottom: 24px;
}

.np--offers .of-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--np-green);
}

.np--offers .of-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.np--offers .of-panel {
    padding: 34px;
    border-radius: 32px;
    background: var(--np-soft);
}

.np--offers .of-panel-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.np--offers .of-panel-text {
    margin: 0 0 24px;
    color: #818a94;
    font-size: 17px;
    line-height: 1.6;
}

.np--offers .of-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 18px 34px;
    border-radius: 32px;
    background: #0b1c29;
    color: #fff;
}

.np--offers .of-stat {
    padding: 18px 0;
    border-bottom: 1px solid #2a3c4a;
}

.np--offers .of-stat:last-child {
    border-bottom: 0;
}

.np--offers .of-stat dt {
    color: #9fb0bd;
    font-size: 14px;
}

.np--offers .of-stat dd {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
}

/* ---------- Фильтры ---------- */
.np--offers .of-list .np-lead {
    margin-bottom: 0;
}

.np--offers .of-controls[hidden] {
    display: none;
}

.np--offers .of-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
}

.np--offers .of-type {
    padding: 12px 19px;
    border: 1px solid #dce2e6;
    border-radius: 35px;
    background: #f4f5f6;
    color: #56616d;
    line-height: 1.2;
}

.np--offers .of-type:hover {
    border-color: #c3ccd4;
}

.np--offers .of-type.is-active {
    background: var(--np-navy);
    border-color: var(--np-navy);
    color: #fff;
}

.np--offers .of-search {
    margin: 22px 0;
    padding: 25px;
    border-radius: 30px;
    background: #f4f5f6;
}

.np--offers .of-search-title {
    margin: 0 0 16px;
    font-weight: 700;
}

.np--offers .of-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.np--offers .of-range label {
    display: block;
    min-width: 0;
    color: #7e8993;
    font-size: 13px;
}

.np--offers .of-range input,
.np--offers .of-range select {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border: 1px solid #dce2e6;
    border-radius: 14px;
    background: #fff;
    color: var(--np-ink);
    font-size: 16px;
}

.np--offers .of-reset {
    padding: 12px 0 0;
    border: 0;
    background: transparent;
    color: #27618e;
    text-decoration: underline;
}

.np--offers .of-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: var(--np-muted);
}

.np--offers .of-toolbar b {
    color: var(--np-ink);
}

.np--offers .of-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.np--offers .of-sort select {
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--np-line);
    border-radius: 16px;
    background: #fff;
    color: var(--np-ink);
}

/* ---------- Карточки юнитов ---------- */
.np--offers .of-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.np--offers .of-controls:not([hidden]) + .of-cards {
    margin-top: 0;
}

.np--offers .of-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe3e6;
    border-radius: 28px;
    background: #fff;
    content-visibility: auto;
    contain-intrinsic-size: auto 560px;
}

.np--offers .of-card[hidden] {
    display: none;
}

.np--offers .of-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 18px;
    background: #f6f6f6;
}

.np--offers .of-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.np--offers .of-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 30px;
    background: #fff2d9;
    color: #a45c09;
    font-size: 13px;
    font-weight: 700;
}

.np--offers .of-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.np--offers .of-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #8b959e;
    font-size: 14px;
}

.np--offers .of-line span:last-child:not(:first-child) {
    text-align: right;
    overflow-wrap: anywhere;
}

.np--offers .of-title {
    margin: 14px 0 6px;
    font-size: 26px;
    letter-spacing: -.035em;
    line-height: 1.2;
    font-weight: 650;
}

.np--offers .of-title a:hover {
    color: var(--np-navy);
}

.np--offers .of-meta {
    margin: 0;
    color: var(--np-muted);
    font-size: 16px;
}

.np--offers .of-pg {
    margin-top: auto;
    padding: 24px 0 18px;
}

.np--offers .of-price {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.np--offers .of-sqm {
    margin-top: 4px;
    color: #6f7d88;
    font-size: 15px;
}

.np--offers .of-btns {
    display: grid;
    gap: 10px;
}

.np--offers .of-btns .np-btn {
    width: 100%;
    padding: 13px 14px;
    font-size: 14px;
}

.np--offers .of-empty {
    margin: 0;
    padding: 25px 29px;
    border-radius: 27px;
    background: #f3f4f5;
    color: #7c8791;
    line-height: 1.65;
}

.np--offers .of-empty[hidden],
.np--offers .of-more[hidden] {
    display: none;
}

.np--offers .of-more {
    display: block;
    margin: 28px auto 0;
    padding: 16px 48px;
    border: 1px solid #cbd4db;
    border-radius: 40px;
    background: #fff;
    color: var(--np-ink);
    font-weight: 700;
}

.np--offers .of-more:hover {
    border-color: var(--np-navy);
}

/* ---------- Сравнение форматов ---------- */
.np--offers .of-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.np--offers .of-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 240px;
    padding: 25px;
    border: 1px solid var(--np-line);
    border-radius: 25px;
    background: #fff;
}

.np--offers .of-tile-num {
    color: #a2afbc;
}

.np--offers .of-tile-title {
    margin: 22px 0 6px;
    font-size: 23px;
    letter-spacing: -.035em;
    font-weight: 650;
}

.np--offers .of-tile-muted {
    margin: 0;
    color: var(--np-muted);
    font-size: 14px;
}

.np--offers .of-tile-bottom {
    margin-top: auto;
    padding-top: 16px;
}

.np--offers .of-tile-bottom strong {
    display: block;
    font-size: 22px;
    font-weight: 750;
}

.np--offers .of-tile-bottom span {
    display: block;
    margin-top: 2px;
    color: #4f5c67;
    font-size: 14px;
}

.np--offers .of-tile .np-btn {
    margin-top: 16px;
    padding: 12px;
    font-size: 14px;
}

/* ---------- План оплаты ---------- */
.np--offers .of-pay-wrap > * {
    max-width: 860px;
}

.np--offers .of-pay-name {
    color: var(--np-ink);
    font-weight: 600;
}

.np--offers .of-payrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--np-line);
}

.np--offers .of-payrow span {
    min-width: 0;
}

.np--offers .of-payrow small {
    display: block;
    margin-top: 2px;
    color: var(--np-muted);
    font-size: 13px;
}

.np--offers .of-payrow strong {
    flex: none;
    font-size: 22px;
    white-space: nowrap;
}

.np--offers .of-sub {
    margin: 12px 0 0;
    color: #8a949d;
    font-size: 13px;
    line-height: 1.5;
}

.np--offers .of-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--np-link);
    font-weight: 600;
}

/* ---------- Заявка и дисклеймер ---------- */
.np--offers .of-cta-section {
    padding-top: 0;
}

.np--offers .of-cta {
    padding: 42px;
    border-radius: 32px;
    background: #102233;
    color: #fff;
}

.np--offers .of-cta-eyebrow {
    color: #aebdcb;
}

.np--offers .of-cta-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.np--offers .of-cta-text {
    margin: 0 0 22px;
    color: #b4c0c9;
    line-height: 1.65;
}

.np--offers .of-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.np--offers .of-cta-actions .np-btn {
    min-height: 54px;
}

.np--offers .of-disclaimer {
    margin: 22px 0 0;
    color: #8d9ba5;
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
    .np--offers .of-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .np--offers .of-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .np--offers .of-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .np--offers .of-panel {
        padding: 25px;
        border-radius: 25px;
    }

    .np--offers .of-panel .np-btn {
        width: 100%;
    }

    .np--offers .of-stats {
        padding: 8px 25px;
        border-radius: 25px;
    }

    .np--offers .of-types {
        gap: 7px;
    }

    .np--offers .of-type {
        padding: 10px 14px;
        font-size: 14px;
    }

    .np--offers .of-search {
        padding: 18px;
        border-radius: 24px;
    }

    .np--offers .of-range {
        gap: 10px;
    }

    .np--offers .of-sort {
        width: 100%;
    }

    .np--offers .of-sort select {
        flex: 1;
        min-width: 0;
    }

    .np--offers .of-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .np--offers .of-art {
        height: 280px;
        padding: 14px;
    }

    .np--offers .of-body {
        padding: 22px;
    }

    .np--offers .of-tiles {
        gap: 10px;
    }

    .np--offers .of-tile {
        min-height: 210px;
        padding: 16px;
    }

    .np--offers .of-tile-title {
        font-size: 19px;
    }

    .np--offers .of-tile-bottom strong {
        font-size: 18px;
    }

    .np--offers .of-tile-bottom span {
        font-size: 12px;
    }

    .np--offers .of-tile .np-btn {
        font-size: 13px;
        padding: 11px 8px;
    }

    .np--offers .of-payrow strong {
        font-size: 18px;
    }

    .np--offers .of-cta {
        padding: 28px 22px;
        border-radius: 26px;
    }

    .np--offers .of-cta-actions .np-btn {
        width: 100%;
    }
}

/* Фото проекта в первом экране (макет: панель + визуал), плашка с цифрами — третьей колонкой */
.np--offers .of-hero-grid--photo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
}

.np--offers .of-visual {
    position: relative;
    min-height: 280px;
    margin: 0;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(130deg, #dfe7e4, #b3c9c3);
}

.np--offers .np-wrap .of-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np--offers .of-visual-tag {
    position: absolute;
    left: 22px;
    bottom: 20px;
    padding: 12px 17px;
    border-radius: 25px;
    background: #0b1c29d9;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .np--offers .of-hero-grid--photo {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .np--offers .of-hero-grid--photo .of-stats {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .np--offers .of-hero-grid--photo {
        grid-template-columns: minmax(0, 1fr);
    }
}
