*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "DMSans-Variable";
    src: url(assets/fonts/DMSans-VariableFont_opsz,wght.ttf);
    font-weight: 1 999; 
    font-optical-sizing: auto;
}

@font-face {
    font-family: "DMSans-Italic";
    src: url(assets/fonts/DMSans-Italic-VariableFont_opsz,wght.ttf);
    font-weight: 1 999; 
    font-optical-sizing: auto; 
}


div:not(.main_grid_div){
    border-radius: 12px;
}

:root{
    --beige: hsl(31, 66%, 93%);
    --orange: hsl(39, 100%, 71%);
    --light-purple: hsl(254, 88%, 90%);
    --dark-purple: hsl(256, 67%, 59%);
    --black: hsl(0, 0%, 7%);
}

body{
    background-color: lightgray;
}

.main_grid_div{
    padding: 50px 100px 50px 100px;
    display: grid;
    margin: 50px 150px 100px 150px;
    max-width: 80%;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(10, 1fr);
}


.create_and_schedule_div{
    background-color: var(--beige);
    padding: 70px 30px 70px 30px;
    grid-column: 1;
    grid-row: 1/6;
    
}

.create_text{
    font-family: "DMSans-Variable";
    font-weight: 550;
    font-variation-settings: "opsz" 50;
    font-size: 35px;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.CreatePost{
    max-width: 100%;
    height: auto;
}

.purple_italic{
    color: var(--dark-purple);
    font-family: "DMSans-Italic";
}

.social_media_div{
    display:flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 30px 0 30px;
    background-color: var(--dark-purple);
    padding-bottom: 50px;
    grid-column: 2 / 4;
    grid-row: 1 / 5;

}

.social_text{
    text-align: center;
    color: white;
    font-family: "DMSans-Variable";
    font-size: 50px;
    font-weight: 450;
    line-height: 0.9;
    margin-bottom: 20px;
}

.orange{
    color: var(--orange);
}

.italic{
    font-family: "DMSans-Italic";
}

.stars_img{
    max-width: 40%;
    height: auto;
    margin-bottom: 5px;
}

.reviews{
    font-family: "DMSans-Variable";
    font-size: 18px;
    font-weight: 300;
    color: white;
}

.schedule_div{
    overflow: hidden;
    padding: 40px 30px 0 30px;
    background-color: var(--light-purple);
    grid-column: 4;
    grid-row: 1/8;
}

.schedule_text{
    font-family: "DMSans-Variable";
    font-size: 25px;
    font-weight: 600;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.schedule_img{
    width: 185%;
    margin-bottom: 15px;
}

.schedule_p{
    font-family: "DMSans-Variable";
    font-size: 16px;
    line-height: 1;
    font-weight: 450;
}

.multiple_accounts_div{
    background-color: white;
    grid-column: 2/3;
    grid-row: 5 / 8;
    padding: 10px 20px 10px 20px;
    overflow: hidden;
}

.accounts_img{
    width: 150%;
    padding-bottom: 10px;
}

.accounts_text{
    font-family: "DMSans-Variable";
    line-height: 0.9;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.maintain_text{
    font-family: "DMSans-Variable";
    line-height: 0.85;
    font-size: 28px;
    font-weight: 550;
    letter-spacing: -1.5px;
    margin-bottom: 30px

}

.maintain_div{
    position: relative;
    overflow: hidden;
    background-color: var(--orange);
    padding: 20px 20px 0 20px;
    grid-column: 3 / 4;
    grid-row: 5 / 8;
}

.maintain_div .maintain_img {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 80%);
}

.AI_content_div{
    background-color: var(--orange);
    padding: 25px;
    grid-column: 1;
    grid-row: 6 / 11;
}

.AI_content_img{
    width: 105%;
}

.AI_content_text{
    font-family: "DMSans-Variable";
    line-height: 0.85;
    font-size: 38px;
    font-weight: 550;
    letter-spacing: -2px;
    margin-bottom: 40px

}

.audience_growth_div{
    background-color: white;
    padding: 20px;
    grid-column: 2;
    grid-row: 8 / 11;
}

.audience_growth_img{
    width: 80%;
}

.percents{
    font-family: "DMSans-Variable";
    line-height: 0.85;
    font-size: 60px;
    font-weight: 550;
    letter-spacing: -2px;
    margin-bottom: 20px
}

.audience_growth_text{
    font-family: "DMSans-Variable";
    line-height: 0.85;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 40px;
}

.followers_growth_div{
    background-color: var(--dark-purple);
    display: flex;
    flex-direction: row;
    grid-column: 3 / 5;
    grid-row: 8 / 11;
    align-items: center;
    padding: 20px;
}

.followers_growth_text{
    color: white;;
    font-family: "DMSans-Variable";
    line-height: 0.9;
    font-size: 36px;
    font-weight: 450;
    letter-spacing: -1px;
}

.followers_growth_img{
    width: 50%;
}


@media (max-width: 1200px) {
    .main_grid_div {
        margin: 30px;
        padding: 0;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(12, 1fr);
        gap: 20px;
    }


    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        line-height: 1.1;
    }

    .create_and_schedule_div { grid-column: 1; grid-row: 1 / 5; }
    .social_media_div { grid-column: 2; grid-row: 1 / 3; }
    .schedule_div { grid-column: 2; grid-row: 3 / 7; }
    .multiple_accounts_div { grid-column: 1; grid-row: 5 / 7; }
    .maintain_div { grid-column: 2; grid-row: 7 / 9; }
    .AI_content_div { grid-column: 1; grid-row: 7 / 10; }
    .audience_growth_div { grid-column: 1; grid-row: 10 / 12 ; }
    .followers_growth_div { grid-column: 2; grid-row: 9 / 12; }


    .maintain_div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .maintain_div .maintain_img {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%; 
        max-width: 300px; 
        margin-top: auto; 
    }

    .schedule_div {
        padding: 20px 20px 0 20px; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .schedule_img {
        width: 80%;         
        max-width: 300px;   
        height: auto;
        margin-bottom: 15px;
    }

    .schedule_text, 
    .schedule_p {
        text-align: center; 
    }

}


@media (max-width: 768px) {
    .main_grid_div {
        grid-template-rows: repeat(8, auto);
        grid-template-columns: 1fr;
        margin: 20px;
        gap: 20px;
    }

    .social_media_div { order: 1; }
    .multiple_accounts_div { order: 2; }
    .maintain_div { order: 3; }
    .schedule_div { order: 4; }
    .followers_growth_div { order: 5; }
    .audience_growth_div { order: 6; }
    .create_and_schedule_div { order: 7; }
    .AI_content_div { order: 8; }


    h1 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .main_grid_div > div {
        grid-column: 1;
        grid-row: auto; /* Элементы будут занимать только нужное место */
    }

    .followers_growth_div {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 480px) {
    h1 {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
}