.nri-services-page .project-main {
    padding: 0 0 50px;
}

.nri-services-page {
    --nri-strip-bg: linear-gradient(135deg, var(--accent), var(--accent-2));
    --nri-strip-border: color-mix(in srgb, var(--accent-2) 60%, transparent);
    --nri-strip-text: #f8fafc;
    --nri-panel-pad: clamp(20px, 2vw, 26px);
    --nri-strip-pad-y: 8px;
    --nri-strip-pad-x: var(--nri-panel-pad);
    --nri-strip-min-height: 48px;
    --nri-hero-bg: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 12%, var(--surface)),
        color-mix(in srgb, var(--accent-2) 12%, var(--surface))
    );
}

.nri-services-page main {
    gap: var(--home-section-gap);
}

.nri-services-page main > section {
    margin: 0;
}

.nri-services-page .panel {
    padding: var(--nri-panel-pad);
    margin-block: 0;
}

.nri-hero {
    background: var(--nri-hero-bg);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
    align-items: start;
    isolation: isolate;
}

.nri-hero::before,
.nri-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

.nri-hero::before {
    top: -220px;
    right: -220px;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 60%);
}

.nri-hero::after {
    bottom: -240px;
    left: -240px;
    background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--accent-2) 65%, transparent), transparent 60%);
}

.nri-hero-copy {
    min-width: 0;
}

.nri-hero-copy h1 {
    font-size: clamp(2.05rem, 3.2vw, 3.05rem);
    line-height: 1.06;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nri-hero-copy .muted {
    max-width: 66ch;
}

.nri-hero-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nri-hero-actions .cta {
    text-decoration: none;
    padding-inline: 16px;
}

.nri-hero-actions .btn.ghost {
    text-decoration: none;
}

.nri-hero-highlights {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 72ch;
}

.nri-hero-highlights li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    line-height: 1.5;
}

.nri-hero-highlights li::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 6px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), rgba(255,255,255,0) 55%),
        linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 24%, transparent);
}

.nri-hero-card {
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,0.92)),
        rgba(255,255,255,0.92)
    );
    border: 1px solid color-mix(in srgb, var(--accent-2) 22%, var(--border));
    box-shadow: var(--shadow-lift);
}

.nri-hero-card-title {
    margin: 0 0 6px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.01em;
    font-size: 1.08rem;
}

.nri-hero-card-subtitle {
    margin: 0 0 12px;
    color: var(--muted);
}

.nri-hero-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.nri-hero-metric {
    border: 1px solid color-mix(in srgb, var(--accent-2) 16%, var(--border));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 10px 12px;
}

.nri-hero-metric-k {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
    color: var(--text-muted-7);
    margin-bottom: 4px;
}

.nri-hero-metric-v {
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.nri-hero-card-cta {
    width: 100%;
    text-decoration: none;
}

.nri-smart-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
    align-items: center;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 10%, var(--surface)),
        color-mix(in srgb, var(--accent-2) 9%, var(--surface))
    );
}

.nri-smart-subtitle {
    margin: 0;
    color: var(--text-muted-7);
}

.nri-smart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.nri-smart-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent-2) 24%, var(--border));
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nri-smart-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.nri-smart-chip.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
}

.nri-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 20px;
    margin-top: 0;
}

.nri-section,
.nri-inquiry {
    scroll-margin-top: 96px;
}

.nri-section h2 {
    margin: calc(-1 * var(--nri-panel-pad)) calc(-1 * var(--nri-panel-pad)) 20px;
    padding: var(--nri-strip-pad-y) calc(var(--nri-strip-pad-x) + 6px);
    background: var(--nri-strip-bg);
    color: var(--nri-strip-text);
    border: 1px solid var(--nri-strip-border);
    border-radius: 30px 30px 0 0;
    min-height: var(--nri-strip-min-height);
    display: flex;
    align-items: center;
}

.nri-steps {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 8px;
}

.nri-faq-list {
    display: grid;
    gap: 12px;
}

.nri-faq-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-bottom: 12px;
}

.nri-faq-toolbar input {
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 40px;
    padding: 8px 10px;
    background: var(--surface);
}

.nri-faq-toolbar .btn.ghost {
    min-height: 40px;
    padding: 8px 12px;
}

.nri-faq-count {
    align-self: center;
    font-size: 0.82rem;
    color: var(--text-muted-7);
    font-weight: 700;
}

.nri-faq {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}

.nri-faq-question {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    color: var(--text);
}

.nri-faq-toggle {
    font-size: 1.1rem;
    color: var(--accent);
}

.nri-faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px;
    color: var(--text-muted-5);
    transition: max-height 0.35s ease, opacity 0.2s ease, padding 0.2s ease;
}

.nri-faq.open .nri-faq-answer {
    max-height: 600px;
    opacity: 1;
    padding: 0 16px 14px;
}

.nri-inquiry .nri-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.nri-inquiry {
    position: sticky;
    top: 90px;
    align-self: start;
    height: fit-content;
    max-height: none;
    overflow: visible;
}

.nri-inquiry h3::after {
    display: none;
}

.nri-inquiry h3::before {
    content: none;
}

.nri-inquiry h3 {
    margin: 0;
}

.nri-inquiry .panel-head {
    margin: calc(-1 * var(--nri-panel-pad)) calc(-1 * var(--nri-panel-pad)) 14px;
    padding: 6px calc(var(--nri-strip-pad-x) + 4px);
    background: var(--nri-strip-bg);
    border: 1px solid var(--nri-strip-border);
    border-radius: 30px 30px 0 0;
    color: var(--nri-strip-text);
    min-height: 42px;
    display: flex;
    align-items: center;
}

.nri-inquiry .panel-head h3 {
    color: var(--nri-strip-text);
}

.nri-form .field {
    display: grid;
    gap: 6px;
}

.nri-form label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted-7);
    font-weight: 700;
}

.nri-form input,
.nri-form select,
.nri-form textarea {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--text);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nri-form input::placeholder,
.nri-form textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.nri-form input:focus,
.nri-form select:focus,
.nri-form textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.nri-form textarea {
    resize: vertical;
    min-height: 72px;
}

.nri-form .phone-row {
    display: grid;
    grid-template-columns: minmax(90px, 110px) minmax(0, 1fr);
    gap: 8px;
}

.nri-form .phone-row > * {
    min-width: 0;
}

.nri-form select {
    width: 100%;
}

.nri-form .field.full,
.nri-form button {
    grid-column: 1 / -1;
}

.nri-inquiry .cta {
    min-height: 40px;
    padding: 8px 12px;
    width: 100%;
}

@media (max-width: 980px) {
    .nri-hero {
        grid-template-columns: 1fr;
    }
    .nri-smart-panel {
        grid-template-columns: 1fr;
    }
    .nri-hero-card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nri-layout {
        grid-template-columns: 1fr;
    }

    .nri-inquiry {
        position: static;
    }

    .nri-inquiry .nri-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nri-services-page .project-main {
        padding: 0 0 40px;
    }
}

@media (max-width: 520px) {
    .nri-smart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nri-faq-toolbar {
        grid-template-columns: 1fr;
    }
    .nri-faq-count {
        justify-self: start;
    }
    .nri-hero-card-grid {
        grid-template-columns: 1fr;
    }
}
