body{
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}
*{
    text-decoration: none;
    color: black;
    margin: 0;
    padding: 0;
}

.container{
    position: relative;
    margin: 0 auto 40px auto;
    width: min(1000px, 92%);
    height: 600px;
    background-color: #555;
}


.container .slide{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.container .slide .item{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-position: 50% 50%;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .4s ease, transform .4s ease;
}

.container .slide .item.active{
    opacity: 1;
    transform: scale(1);
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0,0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}




.item .content{
    position: absolute;
    top: 50%;
    right: 70px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0,50%);
    font-family: system-ui;
    display: none;
    background-color: white;
    padding: 10px;
}

.slide .item.active .content{
    display: block;
}


.content .name{
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: slider 1s ease-in-out 1 forwards;
}

.content .descript{
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: slider 1s ease-in-out .3s 1 forwards;

}
.content button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: slider 1s ease-in-out .6s 1 forwards;
}

@keyframes slider {
    from{
        opacity: 0;
        transform: translate(0,100px);
        filter: blur(30px);
    }  
    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }    
}

.button-group{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}


.button-group button{
    width: 50px;
    height: 50px;
    font-size: 25px;
    border: none;
    cursor: pointer;
    margin: 0 3px;
    transition: .6s;
}

.button-group .prev{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.button-group  .next{

    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.button-group button:hover{
    background-color: #000;
    color: #fff;
}

@media (max-width: 900px){
    .container{
        width: 94%;
        height: 520px;
        margin-top: 80px;
    }
    .item .content{
        right: 24px;
        width: min(70%, 260px);
    }
    .content .name{
        font-size: 24px;
        line-height: 1.2;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 560px){
    .container{
        height: 420px;
    }
    .item .content{
        right: 16px;
        width: 72%;
    }
    .content .name{
        font-size: 18px;
        line-height: 1.2;
    }
}
