/* ==== nmt ==== */
.default-wave {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    /* max-height: 1300px; */
    top: 0;
    background: url("../img/default-wave.png") no-repeat center/cover;
    background-position: center -300px;
    opacity: 0.25;
}

.nmt-section {
    width: 100%;
    max-width: 1900px;
    border-radius: 50px;
    margin: 100px auto 40px;
    color: white;
    background-image: url('../img/light-bg-nmt.png');
    background-size: cover;
    position: relative;
    overflow: hidden;
}


.nmt-container {
    width: 90%;
    margin: 100px auto 40px;
    position: relative;
    z-index: 5;
}

.nmt-text {
    margin-bottom: 40px;
}

.nmt-text h2 {
    font-size: 48px;
    text-align: center;
    margin: 0;
}

.nmt-text h3 {
    margin-bottom: 60px;
    font-size: 22px;
    text-align: center;
    color: #ccc;
    /* color: #fff; */
    /* line-height: 1.5; */
}

.nmt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nmt-card {
    position: relative;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1 1 calc(40% - 20px);
    /* min-height: 180px; */
    padding: 25px;
    overflow: hidden;
    /* display: flex;
    align-items: flex-start; */
    transition: transform 0.3s ease, background 0.3s ease;
}

.nmt-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nmt-card:first-child {
    flex: 1 1 calc(60% - 20px);
}

.nmt-card:nth-child(2) {
    flex: 1 1 calc(20% - 20px);
}

.nmt-card:nth-child(2) img {
    border-radius: 23px;
    transform: rotateZ(-16deg);
    bottom: -30px;
    right: -20px;
    opacity: 0.7;
}

.nmt-card:nth-child(2)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-35deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    z-index: 1;
}

.nmt-content {
    z-index: 2;
    position: relative;
}

.nmt-card h3 {
    font-size: 1.3rem;
    font-family: 'MontserratAlternate-Bold', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a2a4a;
}

.nmt-card p {
    width: 70%;
    color: #1a2a4a;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.nmt-card:nth-child(2) p {
    width: 60%;
}

.edflix-link {
    color: #E50D49;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: 0.4s;
}

.edflix-link:hover {
    border-bottom: 2px solid #E50D49;
}

.nmt-card span {
    padding-top: 6px;
    font-size: 0.8rem;
    color: #6b8fcf;
}

.nmt-card video {
    max-width: 250px;
}

.nmt-card img {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 260px;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.nmt-card:not(:first-child) img {
    right: -60px;
    bottom: -40px;
}

.nmt-card:hover img {
    transform: scale(1.05);
}

.nmt-card:nth-child(2):hover img {
    transform: scale(1.05) rotateZ(-14deg);
}

.nmt-info .primary-btn {
    margin: 14px 0;
    background: linear-gradient(35deg, #507ec4, #97CBEB);
    box-shadow: 0 0 12px rgba(94, 139, 167, 0.6);
}

.nmt-info .new-price {
    font-size: 19px;
    font-weight: bold;
    color: #00144F;
}

/* 🔹 Мобільна адаптація */
@media screen and (max-width: 1500px) {
    .nmt-card h3 {
        width: 80%;
    }

    .nmt-card img {
        opacity: 0.7;
        right: -60px;
        bottom: -40px;
    }
}

@media screen and (max-width: 1100px) {

    .nmt-card {
        min-height: 200px;
    }

    .nmt-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .nmt-card p {
        width: 80%;
    }

    .nmt-card:not(:first-child) img {
        width: 220px;
        right: -60px;
        bottom: -40px;
    }

}

@media screen and (max-width: 900px) {
    .nmt-section {
        background-size: cover;
        background-position: center center;
    }

    .default-wave {
        background-position: center top;
        background-size: 100%;
    }

    .nmt-section h2 {
        font-size: 36px;
    }

    .nmt-card,
    .nmt-card:first-child,
    .nmt-card:nth-child(2) {
        flex: 1 1 100%;
        min-height: 0;
    }

    .nmt-card:nth-child(2)::before {
        background: none;
    }

}

@media (max-width: 768px) {
    .nmt-card {
        flex: 1 1 100%;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.5);
    }

    .nmt-card:hover {
        background: rgba(255, 255, 255, 0.6);
    }

    .nmt-card img {
        width: 140px;
        right: -10px;
        bottom: -10px;
    }

}

@media screen and (max-width: 475px) {
    .nmt-section {
        width: 100%;
    }

    .nmt-card:nth-child(2) img {
        width: 180px;
    }
}

@media screen and (max-width: 360px) {

    .nmt-card video {
        width: 100%;
    }
}