@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
*{
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: "Rubik", sans-serif;
    font-style: normal;
    font-size: 18px;
}
main{
    background-color: hsl(226, 43%, 10%);
    color: #fff;
    max-width: 1440px;
    margin: 0 auto;
    padding: 253px 0;
}
.container {
    margin: 0 auto;
    max-width: 1110px;
}
.container_of_items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
}
.user_section {
    grid-row: span 2;
    height: 518px;
}
.user_section, .item_info{
    background-color: hsl(235, 46%, 20%);
    border-radius: 15px;
}
.user_info {
    display: flex;
    flex-direction: column;
    background-color: hsl(246, 80%, 60%);
    border-radius: 15px;
    padding: 37px 32px;
}
.user_photo {
    width: 78px;
    height: 78px;
    margin-bottom: 43px;
    border: 4px solid white;
    border-radius: 50%;
}
.span_text {
    font-size: 15px;
    font-weight: 400;
    color: hsl(236, 100%, 87%);
}
h1{
    font-size: 40px;
    font-weight: 100;
    line-height: 47.5px;
    margin-bottom: 46px;
}
.list{
    list-style-type: none;
    padding: 0;
    margin: 26px 32px;
}
 li{
    width: 42px;
    text-decoration: none;
    color: hsl(235, 45%, 61%);
    transition: all 0.5s ease;
    cursor: pointer;
}
.list li:hover{
    color: #fff;
}
li{
    margin-bottom: 21px;
}
.orange{
background-color: hsl(15, 100%, 70%);
}
.blue{
background-color: hsl(195, 74%, 62%);
}
.pink{
background-color: hsl(348, 100%, 68%);
}
.green{
background-color: hsl(145, 58%, 55%);
}
.viollet{
background-color: hsl(264, 64%, 52%);
}
.yellow{
  background-color: hsl(43, 84%, 65%);  
}
.background_of_item {
    border-radius: 15px;
    height: 244px;
    overflow: hidden;
}
.bg_img{
    width: 78px;
    height: 78px;
    margin: -11px 17px 0 auto;
}
.item_info {
    height: 199px;
    margin-top: -22px;
    padding: 29px 30px;
    position: relative;
    z-index: 10;
    transition: all 0.5s ease;
}
.item_info:hover{
    background-color: hsl(236, 41%, 34%);
}
.top_of_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.point{
    width: 21px;
    height: 5px;
    background-image: url(./images/icon-ellipsis.svg);
    background-size: contain;
}
.point:hover{
    cursor: pointer;
}
h2{
    font-size: 56px;
    font-weight: 300;
    margin-top: 24px;
}
p{
    color: hsl(236, 100%, 87%);
    margin-top: 8px;
    font-size: 15px;
}
.active{
    color:#fff;
}

@media (max-width: 850px) {
    .container_of_items {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }
}
@media (max-width: 630px) {
    .container_of_items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
@media (max-width: 375px) {
    main{
        padding: 81px 24px;
    }
    .container_of_items {
        
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .user_section {
        grid-row: 1;
        height: 203px;
    }
    .user_info {
        display: flex;
        flex-direction: row;
        padding: 34px 32px;
    }
    .user_photo {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }
    .user_text{
        margin-left: 20px; 
        max-width: 170px;
    }
    .span_text {
        font-size: 15px;
        font-weight: 400;
        color: hsl(236, 100%, 87%);
    }
    h1{
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 0;
        margin-top: 4px;
        width: 170px;
    }
    .list {
        list-style-type: none;
        padding: 0;
        margin: 26px 28px;
        display: flex;
        gap: 60px;
    }
    .background_of_item {
        height: 160px;
    }
    .item_info {
        height: 122px;
        padding: 28px 24px;
    }
    .cart_text{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    h2{
        font-size: 32px;
        font-weight: 300;
        margin-top: 6px;
    }
    p{
        color: hsl(236, 100%, 87%);
        margin-top: 8px;
        font-size: 15px;
    }
}