html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.main {
    background-image: url(images/silk-4916174_1920.jpg);
    height: 730px;
    background-size: cover;
    color: white;
    font-size: 36px;
    text-align: center;
}
.main img {
    display: block;
    margin: 0 auto;
}
.main h1 {
    margin-top: 0;
}

.SecondPart {
    height: 730px;
}
.SecondPart h1 {
    text-align: center;
    font-size: 32px;
}
.ArticleandPhoto {
    font-size: 36px;
    display: flex;
    justify-content: space-around;
    font-weight: bold;
}
.ArticleandPhoto img {
    width: 45vw;
    height: 45vh;
}
.ArticleandPhoto li {
    list-style: disc;
}
.anotherOne {
    margin-top: 9%;
    color: green;
    margin-bottom: 2%;
}

.Portfolio {
    background-color: #FCECDF;
    min-height: 730px;
    text-align: center;
    color: #6D5F5F;
    margin-top: 2%;
    display: flex;
    flex-direction: column;
}
.carousel-container {
    width: 853px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: auto;
}
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel img {
    width: 853px;
    height: 500px;
    object-fit: cover;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover {
    background: black;
}

.Partners {
    text-align: center;
    font-size: 32px;
    padding: 20px;
}

.Column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin-top: 20px;
}

.Partners img {
    max-width: 100%;
    height: 80px;          
    object-fit: contain;   
    border-radius: 6px;    
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
    transition: transform 0.2s ease-in-out;
}

.Partners img:hover {
    transform: scale(1.05); 
}
.Partners .Column img {
    max-width: 250px;  
    height: 250px;      
    object-fit: contain; 
}

.order {
    border: 0;
    border-radius: 100px;
    background-color: rgb(0, 0, 0);
    line-height: 5;
    width: 300px;
    color: white;
    font-size: 24px;
}
footer {
    background-color: #FCECDF;
    color: #6D5F5F;
    height: 200px;
    font-size: 32px;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .main {
        height: auto;
        padding: 20px;
        font-size: 24px;
        background-position: center;
    }

    .main img {
        width: 80%;
    }

    .SecondPart {
        height: auto;
        padding: 20px;
    }

    .SecondPart h1 {
        font-size: 24px;
    }

    .ArticleandPhoto {
        flex-direction: column;
        align-items: center;
        font-size: 20px;
    }

    .ArticleandPhoto img {
        width: 90%;
        height: auto;
        margin-top: 15px;
    }

    .Portfolio {
        padding: 20px;
    }

    .carousel-container {
        width: 100%;
    }

    .carousel img {
        width: 100%;
        height: auto;
    }

    .Partners {
        font-size: 24px;
        padding: 20px;
    }

    .Column {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    justify-items: center;
}

.Partners img {
    max-width: 100px;
    height: 60px;
    object-fit: contain;
}

    .order {
        width: 90%;
        font-size: 18px;
        padding: 10px;
        line-height: 2;
    }

    footer {
        font-size: 20px;
        height: auto;
        padding: 20px;
    }

    .prev, .next {
        font-size: 14px;
        padding: 5px;
    }
}