/*
 * Страница «Условия оплаты» (pages/payment.php), макет
 * new_pages/sun-hills-layan-payment-terms-whatsapp.html.
 * Только под .np--payment; переменные и база — pages.css.
 */

.np--payment .pt-h1 {
    max-width: 900px;
}

.np--payment .pt-lead {
    max-width: 760px;
}

.np--payment .pt-pills {
    margin: 28px 0 0;
}

.np--payment .pt-desc {
    margin: 0 0 34px;
    max-width: 780px;
    color: var(--np-muted);
    font-size: 18px;
    line-height: 1.65;
}

.np--payment .pt-btn-navy {
    background: var(--np-navy);
    color: #fff;
    min-height: 54px;
    padding: 16px 24px;
    white-space: normal;
    text-align: center;
}

.np--payment .pt-btn-navy:hover {
    background: #173a5b;
}

/* ---- Hero: депозит и «первый взнос» ---- */
.np--payment .pt-intro {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    margin-top: 36px;
}

.np--payment .pt-intro--single {
    grid-template-columns: 1fr;
}

.np--payment .pt-introbox {
    background: var(--np-soft);
    border-radius: var(--np-radius);
    padding: 38px;
}

.np--payment .pt-introbox__title {
    font-weight: 700;
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.16;
    letter-spacing: -.04em;
}

.np--payment .pt-introbox p {
    margin: 0 0 23px;
    color: #7b858f;
    font-size: 18px;
    line-height: 1.62;
}

.np--payment .pt-introbox strong {
    font-weight: 700;
    color: var(--np-ink);
}

.np--payment .pt-art {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 270px;
    padding: 36px;
    border-radius: var(--np-radius);
    background: #0d2537;
    color: #fff;
}

.np--payment .pt-art__label {
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #a9b9c6;
    font-size: 13px;
}

.np--payment .pt-art__big {
    font-size: clamp(50px, 7vw, 88px);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: 1;
}

.np--payment .pt-art__big span {
    font-size: .5em;
}

.np--payment .pt-art__big--sum {
    font-size: clamp(36px, 4.6vw, 58px);
    letter-spacing: -.04em;
}

.np--payment .pt-art p {
    margin: 10px 0 0;
    color: #b7c5cf;
    line-height: 1.5;
}

.np--payment .pt-art__bar {
    display: flex;
    gap: 4px;
    height: 9px;
    border-radius: 20px;
    overflow: hidden;
}

.np--payment .pt-art__bar span {
    display: block;
    min-width: 4px;
    background: #d9e7ee;
}

.np--payment .pt-art__bar span:nth-child(8n+1) { background: #4a9bd0; }
.np--payment .pt-art__bar span:nth-child(8n+2) { background: #71b2d8; }
.np--payment .pt-art__bar span:nth-child(8n+3) { background: #9ac6df; }
.np--payment .pt-art__bar span:nth-child(8n+4) { background: #bedae9; }
.np--payment .pt-art__bar span:nth-child(8n+6) { background: #3b7fae; }
.np--payment .pt-art__bar span:nth-child(8n+7) { background: #5e9fc9; }
.np--payment .pt-art__bar span:nth-child(8n+8) { background: #86b8d6; }

/* ---- Как проходит покупка ---- */
.np--payment .pt-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.np--payment .pt-step {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 27px 23px 30px;
    border: 1px solid var(--np-line);
    border-radius: 27px;
    background: #fff;
}

.np--payment .pt-step__num {
    margin-bottom: 27px;
    color: #9baab8;
    font-size: 15px;
}

.np--payment .pt-step__title {
    font-weight: 700;
    margin: 0 0 15px;
    font-size: 23px;
    line-height: 1.17;
    letter-spacing: -.035em;
}

.np--payment .pt-step p {
    margin: 0;
    color: #85919c;
    font-size: 15px;
    line-height: 1.6;
}

.np--payment .pt-step__foot {
    margin-top: auto;
    padding-top: 18px;
    color: #527b9e;
    font-size: 13px;
}

.np--payment .pt-depositnote {
    margin-top: 22px;
    padding: 22px 28px;
    border-radius: 24px;
    background: #eef4f7;
    color: #6e7e8a;
    line-height: 1.6;
}

.np--payment .pt-depositnote b {
    font-weight: 700;
    color: var(--np-ink);
}

/* ---- График платежей ---- */
.np--payment .pt-terms {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 34px;
    align-items: start;
}

.np--payment .pt-terms__text {
    padding-top: 4px;
}

.np--payment .pt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.np--payment .pt-tabs[hidden] {
    display: none;
}

.np--payment .pt-tab {
    padding: 11px 18px;
    border: 1px solid var(--np-line);
    border-radius: 999px;
    background: #fff;
    color: #394957;
    font-size: 14px;
    font-weight: 600;
}

.np--payment .pt-tab.is-active {
    border-color: var(--np-navy);
    background: var(--np-navy);
    color: #fff;
}

.np--payment .pt-schedule {
    padding: 34px;
    border-radius: 32px;
    background: #f5f6f7;
}

.np--payment .pt-schedule + .pt-schedule {
    margin-top: 16px;
}

.np--payment .pt-schedule[hidden] {
    display: none;
}

.np--payment .pt-schedule__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
    color: #8b969f;
    font-size: 14px;
}

.np--payment .pt-bar {
    display: flex;
    gap: 4px;
    height: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 30px;
}

.np--payment .pt-bar span {
    display: block;
    min-width: 4px;
    background: #c0d4e3;
}

.np--payment .pt-bar span:nth-child(8n+1) { background: #214f7b; }
.np--payment .pt-bar span:nth-child(8n+2) { background: #4d82b3; }
.np--payment .pt-bar span:nth-child(8n+3) { background: #7da4c5; }
.np--payment .pt-bar span:nth-child(8n+4) { background: #98b8d3; }
.np--payment .pt-bar span:nth-child(8n+6) { background: #2f6a9a; }
.np--payment .pt-bar span:nth-child(8n+7) { background: #6592bb; }
.np--payment .pt-bar span:nth-child(8n+8) { background: #adc6dc; }

.np--payment .pt-payrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #dce2e6;
}

.np--payment .pt-payrow strong {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
}

.np--payment .pt-payrow small {
    display: block;
    margin-top: 7px;
    color: #89949f;
    font-size: 13px;
}

.np--payment .pt-payrow__value {
    font-size: 25px;
    font-weight: 750;
    white-space: nowrap;
}

.np--payment .pt-payrow__value--sum {
    font-size: 19px;
}

.np--payment .pt-schedule__foot {
    margin: 20px 0 0;
    color: #8a959e;
    font-size: 13px;
    line-height: 1.55;
}

/* ---- Калькулятор ---- */
.np--payment .pt-types {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin: 32px 0 25px;
}

.np--payment .pt-types--1 { grid-template-columns: minmax(0, 300px); }
.np--payment .pt-types--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np--payment .pt-types--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.np--payment .pt-type {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px 20px;
    border: 1px solid var(--np-line);
    border-radius: 26px;
    background: #fff;
    color: var(--np-ink);
    text-align: left;
    transition: border-color .2s, background .2s;
}

.np--payment .pt-type:hover {
    border-color: #9db6cb;
}

.np--payment .pt-type.is-selected {
    padding: 23px 19px;
    border: 2px solid #225580;
    background: #f3f8fb;
}

.np--payment .pt-type__num {
    color: #9ba9b5;
    font-size: 14px;
}

.np--payment .pt-type__name {
    margin: 24px 0 12px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.np--payment .pt-type__area {
    color: #8b969f;
    font-size: 14px;
}

.np--payment .pt-type__cost {
    margin-top: auto;
    padding-top: 24px;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -.04em;
}

.np--payment .pt-type__more {
    margin-top: 15px;
    color: #3976a6;
    font-size: 13px;
}

.np--payment .pt-calc {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: 32px;
    background: #fff;
    scroll-margin-top: 110px;
}

.np--payment .pt-calc__side {
    padding: 38px;
    background: #0e2639;
    color: #fff;
}

.np--payment .pt-calc__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #9fb4c4;
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.np--payment .pt-calc__title {
    font-weight: 700;
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -.035em;
}

.np--payment .pt-calc__price {
    margin: 18px 0 10px;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.1;
}

.np--payment .pt-calc__hint {
    color: #b1c0cb;
    font-size: 14px;
    line-height: 1.6;
}

.np--payment .pt-calc__unit {
    display: inline-block;
    margin-top: 12px;
    color: #8ccaf5;
    font-size: 14px;
    font-weight: 600;
}

.np--payment .pt-calc__unit:hover {
    text-decoration: underline;
}

.np--payment .pt-calc__unit[hidden] {
    display: none;
}

.np--payment .pt-calc__plan {
    margin: 14px 0 0;
    color: #d1dce4;
    font-size: 14px;
}

.np--payment .pt-calc__label {
    display: block;
    margin-top: 31px;
    color: #d1dce4;
    font-size: 14px;
}

.np--payment .pt-calc__input {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 14px;
    border: 1px solid #607486;
    border-radius: 14px;
    background: #19394e;
    color: #fff;
    font-size: 17px;
}

.np--payment .pt-calc__smallprint {
    margin: 18px 0 0;
    color: #a8bac7;
    font-size: 12px;
    line-height: 1.55;
}

.np--payment .pt-calc__rows {
    padding: 32px 34px;
}

.np--payment .pt-calc__rows-title {
    font-weight: 700;
    margin: 0 0 18px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.np--payment .pt-calcrow {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--np-line);
}

.np--payment .pt-calcrow > div:first-child {
    min-width: 0;
}

.np--payment .pt-calcrow strong {
    display: block;
    font-size: 17px;
}

.np--payment .pt-calcrow small {
    display: block;
    margin-top: 5px;
    color: #929ca5;
    font-size: 12px;
}

.np--payment .pt-calcrow__amt {
    font-size: 17px;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.np--payment .pt-calc__total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 2px solid #c9d5dd;
    font-size: 20px;
    font-weight: 750;
}

.np--payment .pt-calc__cta {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    white-space: normal;
    text-align: center;
}

.np--payment .pt-calc__fine {
    margin: 14px 0 0;
    color: #929ca5;
    font-size: 12px;
    line-height: 1.55;
}

/* ---- Запрос расчёта ---- */
.np--payment .pt-request {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 35px;
    align-items: start;
    padding: 46px;
    border-radius: 34px;
    background: #102435;
    color: #fff;
}

.np--payment .pt-request__eyebrow {
    color: #9fb1c0;
}

.np--payment .pt-request .np-h2 {
    color: #fff;
}

.np--payment .pt-request__text p {
    color: #b4c3ce;
    font-size: 17px;
    line-height: 1.6;
}

.np--payment .pt-request__text .pt-request__note {
    color: #9aafbd;
    font-size: 14px;
}

.np--payment .pt-request__wa {
    margin-top: 8px;
    min-height: 54px;
    white-space: normal;
    text-align: center;
}

.np--payment .pt-form {
    max-width: none;
    margin: 0;
    padding: 28px;
    border-radius: 25px;
    background: #fff;
    color: var(--np-ink);
}

.np--payment .pt-form .lead-form__inputs {
    flex-direction: column;
}

/* ---- FAQ ---- */
.np--payment .pt-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}

.np--payment .pt-faq__item {
    align-self: start;
    padding: 20px 23px;
    border: 1px solid var(--np-line);
    border-radius: 20px;
    background: #fff;
}

.np--payment .pt-faq__item summary {
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.np--payment .pt-faq__item p {
    margin: 14px 0 0;
    color: #818b96;
    font-size: 15px;
    line-height: 1.65;
}

/* ---- Адаптив ---- */
@media (max-width: 900px) {
    .np--payment .pt-intro,
    .np--payment .pt-terms,
    .np--payment .pt-request {
        grid-template-columns: 1fr;
    }

    .np--payment .pt-steps,
    .np--payment .pt-types,
    .np--payment .pt-types--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np--payment .pt-calc {
        grid-template-columns: 1fr;
    }

    .np--payment .pt-art {
        min-height: 240px;
    }
}

@media (max-width: 560px) {
    .np--payment .pt-intro {
        gap: 14px;
        margin-top: 30px;
    }

    .np--payment .pt-introbox,
    .np--payment .pt-art {
        padding: 26px;
        border-radius: 27px;
    }

    .np--payment .pt-introbox p,
    .np--payment .pt-desc {
        font-size: 16px;
    }

    .np--payment .pt-art {
        min-height: 210px;
    }

    .np--payment .pt-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .np--payment .pt-step {
        min-height: 0;
        padding: 24px;
    }

    .np--payment .pt-step__num {
        margin-bottom: 14px;
    }

    .np--payment .pt-step__foot {
        margin-top: 8px;
    }

    .np--payment .pt-schedule {
        padding: 24px 20px;
        border-radius: 27px;
    }

    .np--payment .pt-payrow__value {
        font-size: 21px;
    }

    .np--payment .pt-payrow__value--sum {
        font-size: 16px;
    }

    .np--payment .pt-types {
        gap: 10px;
    }

    .np--payment .pt-types--1 {
        grid-template-columns: 1fr;
    }

    .np--payment .pt-type {
        min-height: 200px;
        padding: 17px 14px;
        border-radius: 23px;
    }

    .np--payment .pt-type.is-selected {
        padding: 16px 13px;
    }

    .np--payment .pt-type__name {
        margin: 18px 0 8px;
        font-size: 19px;
    }

    .np--payment .pt-type__area {
        font-size: 13px;
    }

    .np--payment .pt-type__cost {
        font-size: 17px;
        letter-spacing: -.02em;
    }

    .np--payment .pt-type__more {
        font-size: 12px;
    }

    .np--payment .pt-calc {
        border-radius: 27px;
    }

    .np--payment .pt-calc__side {
        padding: 27px 22px;
    }

    .np--payment .pt-calc__rows {
        padding: 24px 20px;
    }

    .np--payment .pt-calcrow {
        gap: 12px;
    }

    .np--payment .pt-calcrow strong {
        font-size: 15px;
    }

    .np--payment .pt-calcrow__amt {
        font-size: 15px;
    }

    .np--payment .pt-calc__total {
        font-size: 18px;
    }

    .np--payment .pt-request {
        gap: 18px;
        padding: 26px 18px;
        border-radius: 27px;
    }

    .np--payment .pt-form {
        padding: 22px 16px;
    }

    .np--payment .pt-faq {
        grid-template-columns: 1fr;
    }
}
