/* ===== Sub Top ===== */
#sub-top img {
    position: absolute;
    left: -2%;
    top: 80px;
    width: 46%;
    height: auto !important;
}

#sub-top > .content_wrapper {
    display: block;
    position: relative;
}

#sub-top div .right {
    width: 52%;
    right: 0;
    top: 374px;
}

#sub-top .about {
    left: -5rem;
}

@media (max-width: 980px) {
    #sub-top img {
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        width: 100%;
        max-width: 360px;
        display: block;
        margin: 0 auto 32px;
    }

    #sub-top div .right {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #sub-top img {
        max-width: 280px;
    }
}

/* ===== Section Common ===== */
.section-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 680px;
    margin: 32px auto 0;
    text-align: center;
}

/* ===== Intro: Value Grid ===== */
.nsa-intro {
    padding-bottom: 40px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 72px;
}

.value-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: #F8F9FC;
    transition: all 0.35s ease;
}

.value-item:hover {
    background: #fff;
    box-shadow: 0 12px 40px rgba(34, 36, 119, 0.08);
    transform: translateY(-4px);
}

.value-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(39, 39, 251, 0.06);
    color: #2727FB;
}

.value-item h4 {
    font-family: 'Gothic A1';
    font-size: 18px;
    font-weight: 700;
    color: #181822;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 14px;
    line-height: 1.65;
    color: #707070;
}

/* ===== Products ===== */
.nsa-products {
    background: #0A0A1A;
    padding: 120px 0;
}

.product-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-info {
    flex: 1;
}

.product-badge {
    display: inline-block;
    font-family: 'Gothic A1';
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #2727FB;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.product-info h4 {
    font-family: 'Gothic A1';
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.nsa-products .product-info > p {
    font-size: 15px;
    line-height: 1.75;
    color: #B0B0C0;
    margin-bottom: 32px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-meta div {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 14px;
}

.nsa-products .product-meta strong {
    font-family: 'Gothic A1';
    font-weight: 700;
    color: #888;
    min-width: 72px;
    flex-shrink: 0;
}

.nsa-products .product-meta span {
    color: #D0D0E0;
}

.product-visual {
    flex: 0 0 320px;
}

.phone-mockup {
    background: #1A1A2E;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.phone-mockup img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.product-row.reverse {
    flex-direction: row-reverse;
}

/* ===== Process ===== */
.nsa-process {
    padding: 120px 0;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-top: 72px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 36px 20px;
    background: #F8F9FC;
    border-radius: 16px;
    transition: all 0.35s ease;
}

.process-step:hover {
    background: #fff;
    box-shadow: 0 8px 32px rgba(34, 36, 119, 0.08);
    transform: translateY(-4px);
}

.step-num {
    font-family: 'Montserrat';
    font-size: 32px;
    font-weight: 800;
    color: #2727FB;
    margin-bottom: 16px;
}

.process-step h4 {
    font-family: 'Gothic A1';
    font-size: 16px;
    font-weight: 700;
    color: #181822;
    margin-bottom: 12px;
    line-height: 1.4;
}

.process-step p {
    font-size: 13px;
    line-height: 1.65;
    color: #707070;
}

.process-arrow {
    display: flex;
    align-items: center;
    padding-top: 40px;
    flex-shrink: 0;
}


/* ===== Why Motiv ===== */
.nsa-why {
    padding: 120px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 80px;
}

.why-item {
    padding: 40px;
    border-left: 3px solid #2727FB;
}

.why-item strong {
    font-family: 'Montserrat';
    font-size: 36px;
    font-weight: 800;
    color: #2727FB;
    display: block;
    margin-bottom: 16px;
}

.why-item h4 {
    font-family: 'Gothic A1';
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.nsa-why .why-item p {
    font-size: 15px;
    line-height: 1.75;
    color: #B0B0C0;
}

/* ===== CTA ===== */
.nsa-cta {
    background: linear-gradient(135deg, #222477 0%, #2727FB 100%);
    padding: 120px 0 !important;
    text-align: center;
}

.nsa-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    text-align: center;
    display: block;
    width: 100%;
}

.nsa-cta .cta-buttons {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 48px;
}

.nsa-cta .btn.blue {
    font-size: 18px;
    padding: 1.2em 3em;
    width: auto;
    background: #fff;
    color: #222477;
    border: none;
}

.nsa-cta .btn.blue:hover {
    background: #F0F0FF;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1495px) {
    .value-grid {
        gap: 20px;
        margin-top: 56px;
    }

    .value-item {
        padding: 32px 20px;
    }

    .product-row {
        gap: 48px;
        margin-top: 60px;
        padding-bottom: 60px;
    }

    .product-visual {
        flex: 0 0 260px;
    }

    .product-info h4 {
        font-size: 24px;
    }

    .process-steps {
        gap: 8px;
        margin-top: 56px;
    }

    .process-step {
        padding: 28px 16px;
    }

    .step-num {
        font-size: 26px;
    }

    .why-grid {
        gap: 32px;
        margin-top: 60px;
    }

    .why-item {
        padding: 32px;
    }

    .why-item strong {
        font-size: 28px;
    }
}

/* ===== Responsive: Tablet Small ===== */
@media (max-width: 980px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
    }

    .product-row,
    .product-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-top: 48px;
        padding-bottom: 48px;
    }

    .product-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Process - horizontal scroll on tablet too */
    .process-steps {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 0;
        padding-bottom: 12px;
    }

    .process-steps::-webkit-scrollbar {
        height: 4px;
    }

    .process-steps::-webkit-scrollbar-track {
        background: #EDEDF5;
        border-radius: 2px;
    }

    .process-steps::-webkit-scrollbar-thumb {
        background: #2727FB;
        border-radius: 2px;
    }

    .process-step {
        flex: 0 0 45%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .process-step:first-child {
        scroll-snap-align: start;
    }

    .process-arrow {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .why-item {
        padding: 24px;
    }

}

/* ===== Responsive: Mobile ===== */
@media (max-width: 767px) {
    /* Hero */
    #sub-top img {
        position: relative;
        top: auto;
        left: auto;
        width: 80%;
        max-width: 300px;
        display: block;
        margin: 0 auto 1rem;
    }

    #sub-top div .right {
        width: 100%;
    }

    /* Sections: sub.css sets section { padding: 2.5rem 1.5rem } at this breakpoint.
       We override only vertical padding, keeping 1.5rem horizontal from sub.css. */
    .nsa-intro {
        padding: 2.5rem 1.5rem;
    }

    .nsa-products {
        padding: 3rem 1.5rem;
    }

    .nsa-process {
        padding: 2.5rem 1.5rem;
    }

    .nsa-why {
        padding: 3rem 1.5rem;
    }

    .nsa-cta {
        padding: 3rem 1.5rem !important;
    }

    /* Section desc */
    .section-desc {
        font-size: 14px;
        margin-top: 16px;
        text-align: left;
        padding: 0 !important;
    }

    /* Value Grid */
    .value-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .value-item {
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .value-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .value-icon svg {
        width: 24px;
        height: 24px;
    }

    .value-item h4 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .value-item p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Products */
    .product-row,
    .product-row.reverse {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
        padding-bottom: 32px;
    }

    .product-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .product-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .product-info h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .nsa-products .product-info > p {
        font-size: 13px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .product-meta {
        gap: 8px;
    }

    .product-meta div {
        font-size: 12px;
        gap: 8px;
    }

    .nsa-products .product-meta strong {
        min-width: 56px;
        font-size: 12px;
    }

    .nsa-products .product-meta span {
        font-size: 12px;
    }

    .phone-mockup {
        padding: 10px;
        border-radius: 16px;
    }

    /* Process - inherits horizontal scroll from 980px, wider cards on mobile */
    .process-steps {
        scroll-padding-left: 0;
        margin-top: 24px;
    }

    .process-step {
        flex: 0 0 78%;
        padding: 24px 20px;
    }

    .step-num {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .process-step h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .process-step p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Why Motiv */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .why-item {
        padding: 20px;
    }

    .why-item strong {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .why-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .nsa-why .why-item p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* CTA */
    .nsa-cta h3 {
        text-align: center;
    }

    .nsa-cta p {
        font-size: 14px;
    }

    .nsa-cta .cta-buttons {
        margin-top: 32px;
    }

    .nsa-cta .btn.blue {
        font-size: 15px;
        padding: 0.9em 2em;
    }
}
