@font-face {
    font-family: "Lexend-Light";
    src: url("../fonts/Lexend-Light.ttf");
}

@font-face {
    font-family: "Lexend-Medium";
    src: url("../fonts/Lexend-Medium.ttf");
}

@font-face {
    font-family: "Lexend-Bold";
    src: url("../fonts/Lexend-Bold.ttf");
}

@font-face {
    font-family: "Lexend-Regular";
    src: url("../fonts/Lexend-Regular.ttf");
}

@font-face {
    font-family: "Lexend-ExtraBold";
    src: url("../fonts/Lexend-ExtraBold.ttf");
}

@font-face {
    font-family: "Lato-Black";
    src: url("../fonts/Lato-Black.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(46deg, #C6C7C7 0%, #DCDCDC 12%, #FEFFF6 75%, #C6C7C7 100%);
}

main {
    background-image: url("../img/back.png");
    background-size: cover;
    padding: 16px;
    background-repeat: no-repeat;

}

section {
    width: 100%;
    border: 1px solid white;
    border-radius: 8px;
}

@media screen and (max-width: 769px) {
    section {
        border: none;
    }
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 47px;
}


.title p {
    font-family: "Lexend-Light";
    font-size: 325px;
    height: 228px;
    line-height: 65%;
    letter-spacing: -1.7%;
}

.title img {
    width: 200px;
    height: 228px;
}

@media screen and (max-width: 1350px) {
    .title p {
        font-size: 240px;
        height: 170px;
    }

    .title img {
        height: 170px;
        width: auto;
    }
}


@media screen and (max-width: 1040px) {
    .title p {
        font-size: 180px;
        height: 130px;
    }

    .title img {
        height: 130px;
        width: auto;
    }
}

@media screen and (max-width: 769px) {
    .title {
        margin-top: 45px;
    }

    .title p {
        font-size: 120px;
        height: 85px;
    }

    .title img {
        height: 85px;
        width: auto;
    }
}

@media screen and (max-width: 530px) {
    .title p {
        font-size: 100px;
        height: 72px;
    }

    .title img {
        height: 72px;
        width: auto;
    }
}

@media screen and (max-width: 418px) {
    .title p {
        font-size: 85px;
        height: 60px;
    }

    .title img {
        height: 60px;
        width: auto;
    }
}


/* Middle part */

.middle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 150px 60px 0;
}

.text_left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: "Lexend-Medium";
    font-size: 18px;
    max-width: 400px;
    width: 100%;
}

.text_left ul {
    list-style: none;
    padding: 0;
}

.pastiles {
    position: relative;
    width: 410px;
}

.pastiles1 {
    position: relative;
    width: 410px;
    display: none;
}

.eronex {
    position: absolute;
    height: 480px;
    top: -230px;
    left: 40px;
}

.tabl {
    position: absolute;
    width: 255px;
    bottom: -335px;
    left: -20px;
}

form {
    border: 3px solid white;
    border-radius: 16px;
    padding: 16px 24px;
    background-color: #D0D0D0;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 8px;
}

.price p:nth-child(1) {
    font-family: "Lexend-ExtraBold";
    font-size: 25px;
    text-decoration: line-through;
    color: white;
}

.price p:nth-child(2) {
    font-family: "Lato-Black";
    font-size: 30px;
    color: #000000;
}

.price p:nth-child(3) {
    font-family: "Lexend-ExtraBold";
    font-size: 32px;
    color: #FF4800;
}

.input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Lexend-Medium";
    font-size: 14px;
}

.input input {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
}

.input1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Lexend-Medium";
    font-size: 14px;
    margin-top: 16px;
}

.input1 input {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
}

.command {
    margin-top: 20px;
    background-color: #C59312;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    width: 100%;
    gap: 8px;

}

.arrow {
    background-color: white;
    padding: 8px;
    width: 32px;
    height: 32px;
    border-radius: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow img {
    width: 16px;
    height: 16px;
}

.command p {
    font-family: "Lexend-Bold";
    color: white;
    font-size: 24px;
}

@media screen and (max-width: 1350px) {
    .middle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 24px;
        margin-top: 60px;
    }

    .pastiles {
        display: none;
    }

    .pastiles1 {
        display: block;
        grid-column: 1/3;
        justify-self: center;
        height: 500px;
    }

    .eronex {
        top: -30px;
    }

    .tabl {
        bottom: -35px;
    }

    .text_left {
        grid-column: 1;
    }

    form {
        grid-column: 2;
    }
}

@media screen and (max-width: 1040px) {
    .middle {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 24px;
    }

    .text_left {
        margin-top: 18px;
        text-align: center;
    }
}

@media screen and (max-width: 769px) {
    .middle{
        margin: 60px 0 0;
    }
    .pastiles1 {
        width: 300px;
        height: 360px;
    }

    .eronex {
        height: 356px;
    }

    .tabl {
        width: 190px;
    }
}

@media screen and (max-width: 418px) {
    .pastiles1 {
        width: 280px;
        height: 325px;
    }

    .eronex {
        height: 336px;
    }

    .tabl {
        width: 170px;
    }

    form{
        padding: 16px;
    }

    .price p:nth-child(1){
        font-size: 20px;
    }

    .price p:nth-child(2){
        font-size: 24px;
    }

    .price p:nth-child(3){
        font-size: 28px;
    }

    .command p{
        font-size: 20px;
    }
}

/* End of middle part */


/* Comments */

.comments {
    display: flex;
    align-items: center;
    overflow-x: auto;
    justify-content: space-between;
    margin: 195px 55px 16px;
}

.comment {
    flex: 0 0 auto;
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 395px;
    min-height: 190px;
}

.comment_top {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

.comment_top img {
    width: 60px;
}

.name {
    display: flex;
    flex-direction: column;
    font-family: "Lexend-Bold";
}

.stars {
    display: flex;
    align-items: center;
}

.stars img {
    width: 24px;
}

.comment_text {
    font-family: "Lexend-Regular";
    font-size: 14px;
}

@media screen and (max-width: 1350px) {
    .comments {
        gap: 24px;
    }

    .comments::-webkit-scrollbar {
        display: none;
    }
}

@media screen and (max-width: 769px) {
    .comments {
        margin: 40px 0 50px;
    }

    .comment {
        max-width: 334px;
        min-height: 206px;
    }
}

@media screen and (max-width: 370px) {
    .comment {
        max-width: 320px;
        min-height: 206px;
    }
}



/* End comments */