main {
    margin-top: 100px;
}

.nmd-m-block {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.nmd-m-block h2 {
    text-align: left;
    font-weight: 600;
    font-size: 24px;
    padding: 10px;
    margin-bottom: 20px;
}

.nmd-m-block p{
    padding: 10px 0 0;
}


.model-cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.model-photo.working {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
}

.model-photo.working img {
    width: 230px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.model-badges {
    display: none;
}


.model-card {
    text-decoration: none;
    border: 1px solid var(--bord);
    border-radius: 10px;
}

.nmd-m-block  .model-name-card {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.model-photo-wrapper {
    position: relative;
    overflow: hidden;
}

.model-photo-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.model-all-info-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.model-photo-wrapper:hover .model-all-info-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmd-m-models-first {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
}

main {
        width: 100%;
    }
    
    .m-text {
        line-height: 1.5;
        text-align: center;
    }
    
    .m-body {
        max-width: 1160px;
        margin: 100px auto 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .m-main-info {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
        padding: 30px 0 20px;
    }
    
    .m-main-info h1 {
        font-size: 36px;
        margin: 0 0 40px;
    }
    
    .m-main-info p {
        line-height: 1.5;
    }
    
    .m-main-info a {
        font-weight: bold;
    }
    
    .m-main-info a:hover {
        color: var(--hov);
    }
    
    .m-block h2{
        text-align: center;
    }
    
    .m-block-about {
        text-align: center;
    }
    
    .m-services {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 30px;
        width: 100%;
        justify-content: center;
    }
    
    .m-services div {
        flex: 1;
        margin: 0;
        text-align: center;
    }
    
    .m-service p{
        margin: 10px 0;
    }
    
    .m-contacts {
        display: flex;
        justify-content: space-evenly;
        gap: 20px;
        margin: 50px auto;
        font-weight: bold;
        flex-direction: column;
        width: fit-content;
    }
    
    .m-contacts a:hover {
        color: var(--hov);
    }
    
    @media (max-width: 1200px) {
        .m-body {
            padding: 0 10px;
            margin: 50px auto 0;
            max-width: 700px;
        }
    }
    
    @media (max-width: 768px) {
        .m-body {
            padding: 0 10px;
            margin: 20px auto 0;
            gap: 10px;
        }
    }