main {
    margin-top: 100px;
}

.nmd-m-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.nmd-m-banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmd-m-banner img {
    width: 100%;
    height: 700px;
    display: block;
    object-fit: cover;
    max-width: 1920px;
}

.nmd-m-banner-text {
    position: absolute;
    bottom: 50px;
    left: 300px;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    background: #ffffff80;
    border-radius: 30px;
}

.nmd-m-banner-text h1 {
    margin: 10px;
    font-weight: 400;
    color: var(--hov);
    font-size: 42px;
    line-height: 100%;
}

.nmd-m-banner-text p {
    font-size: 20px;
    color: var(--text);
    font-weight: 300;
}

.nmd-m-banner-text a {
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    border-radius: 30px;
}

.nmd-m-banner-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0;
}

.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;
}

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


.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 10px 0 0;
}

.model-badges {
    display: none;
}


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

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

.nmd-advantages {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.nmd-advantage-item {
    padding: 10px;
    max-width: 570px;
}

.nmd-reviews {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.nmd-review-item {
    padding: 10px;
}

.nmd-faq {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nmd-faq-item {
    padding: 10px;
    max-width: 570px;
}

.nmd-contacts {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.nmd-contacts a {
    padding: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
}

.nmd-m-start-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 20px;
    gap: 10px
}

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

.nmd-review-text {
    font-style: italic;
}

.nmd-review-author {
    color: var(--text);
    font-weight: 400;
}

.nmd-m-picture-block img{
    width: 1160px;
    height: 500px;
    object-fit: cover;
    object-position: center;
}


.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 10px 0 0;
}

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

.model-all-info-card p{
    color: white;
    text-indent: 0;
}

.nmd-m-block-about {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nmd-m-block-about img {
    height: 500px;
    width: auto;
}

.nmd-m-block-contacts {
    max-width: 880px;
    text-align: center;
    border: 1px solid var(--bord);
    border-radius: 10px;
    padding: 20px 0;
}

.nmd-m-block-contacts h2 {
    text-align: center;
}

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

.nmd-m-models-first form{
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    
    gap: 5px;
    padding: 10px;
}

@media (max-width: 1400px) {
    .nmd-m-picture-block img {
        width: 960px;
        height: 500px;
    }
    
    .nmd-advantage-item {
        max-width: 470px;
    }
    
    .nmd-faq-item {
        max-width: 470px;
    }
}

@media (max-width: 1040px) {
    .nmd-m-picture-block img {
        width: 660px;
        height: 300px;
    }
    
    .nmd-reviews {
        flex-direction: column;
    }
    
    .nmd-m-block h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    
    .nmd-m-block-models p {
        text-align: center;
    }
    
    .nmd-m-picture-block img {
        width: 260px;
        height: 300px;
    }
    
    .nmd-m-banner img {
        display: none;
    }
    
    .nmd-m-banner-text {
        position: static;
        transform: none;
    }
    
    .nmd-m-block h2 {
        font-size: 24px;
    }
    
    .nmd-m-block h3 {
        font-size: 20px;
        text-align: center;
    }
    
    .nmd-contacts a {
        text-align: center;
    }
    
    .nmd-m-block-about img {
        padding: 0 20px;
    }
    
    .nmd-m-block-about {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .model-cards-container {
        gap: 10px;
    }
}