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

body {
    font-family: Arial, sans-serif;
    background: #f2f4ef;
    color: #18221b;
    padding: 40px;
}

.container {
    max-width: 1100px;
    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1.5fr 1fr 1.2fr;
    grid-template-rows: 220px 190px 220px;

    gap: 18px;
}

.card {
    padding: 25px;
    border-radius: 20px;
    overflow: hidden;
}

.card h2 {
    font-size: 25px;
    line-height: 1;
}

.card p {
    margin-top: 12px;
    line-height: 1.4;
}


/* CARD 1 */

.card1 {
    background: #d9f99d;
}

.card1 h2 {
    font-size: 30px;
}

.card1 p {
    font-size: 15px;
}

button {
    border: none;
    padding: 12px 20px;
    margin-top: 18px;
    border-radius: 25px;
    background: #18221b;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #3b493d;
}


/* CARD 2 */

.card2 {
    background: #285943;
    color: white;

    grid-column: 2 / 4;
}

.card2 h1 {
    font-size: 42px;
    line-height: 0.95;
}

.card2 h1 span {
    color: #d9f99d;
    font-style: italic;
}

.card2 > p {
    font-size: 15px;
}

.stats {
    display: flex;
    gap: 35px;
    margin-top: 20px;
}

.stats div {
    display: flex;
    flex-direction: column;
}

.stats strong {
    font-size: 22px;
}

.stats small {
    margin-top: 3px;
}


/* CARD 3 */

.card3 {
    background: #dbeafe;
}

.days {
    display: flex;
    gap: 6px;
    margin-top: 25px;
}

.days span {
    background: white;
    padding: 10px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
}

.card3 p {
    font-size: 13px;
}


/* CARD 4 */

.card4 {
    background: #fed7aa;
}

.exercise {
    margin-top: 20px;

    background: white;
    padding: 12px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.exercise div:first-child {
    font-size: 28px;
}

.exercise p {
    margin-top: 5px;
    font-size: 12px;
}


/* CARD 5 */

.card5 {
    background: white;
    border: 1px solid #ddd;
}

.progress {
    margin-top: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress strong {
    font-size: 40px;
}

.progress small {
    display: block;
    margin-top: 5px;
}

.circle {
    width: 75px;
    height: 75px;

    border-radius: 50%;

    background: #d9f99d;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}


/* CARD 6 */

.card6 {
    background: #fbcfe8;
}

.bars {
    height: 90px;

    margin-top: 20px;

    display: flex;
    align-items: end;
    gap: 8px;
}

.bars span {
    width: 18px;
    background: #18221b;
    border-radius: 5px 5px 0 0;
}

.bars span:nth-child(1) {
    height: 35px;
}

.bars span:nth-child(2) {
    height: 50px;
}

.bars span:nth-child(3) {
    height: 42px;
}

.bars span:nth-child(4) {
    height: 70px;
}

.bars span:nth-child(5) {
    height: 58px;
}

.bars span:nth-child(6) {
    height: 80px;
}

.bars span:nth-child(7) {
    height: 65px;
}


/* CARD 7 */

.card7 {
    background: #e9d5ff;
    text-align: center;
}

.big-number {
    font-size: 60px;
    font-weight: bold;
}

.card7 h2 {
    font-size: 25px;
    margin-top: -5px;
}

.card7 p {
    font-size: 14px;
}


/* CARD 8 */

.card8 {
    background: #18221b;
    color: white;

    grid-column: 2 / 5;

    display: grid;

    grid-template-columns: 160px 1fr 1.5fr;

    align-items: center;

    gap: 25px;
}

.calories small {
    font-size: 13px;
}

.calories h2 {
    font-size: 32px;
    margin-top: 5px;
}

.calorie-chart {
    height: 100px;

    display: flex;
    align-items: end;
    gap: 10px;
}

.calorie-chart span {
    width: 24px;

    background: #d9f99d;

    border-radius: 8px 8px 0 0;
}

.calorie-chart span:nth-child(1) {
    height: 30px;
}

.calorie-chart span:nth-child(2) {
    height: 45px;
}

.calorie-chart span:nth-child(3) {
    height: 55px;
}

.calorie-chart span:nth-child(4) {
    height: 70px;
}

.calorie-chart span:nth-child(5) {
    height: 85px;
}

.calorie-chart span:nth-child(6) {
    height: 95px;
}

.message h1 {
    font-size: 32px;
    line-height: 1;
}

.message p {
    font-size: 13px;
}


/* TABLET */

@media (max-width: 900px) {

    body {
        padding: 20px;
    }

    .container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .card2,
    .card8 {
        grid-column: auto;
    }

    .card8 {
        display: block;
    }

    .calorie-chart {
        margin: 20px 0;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    body {
        padding: 12px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        min-height: 210px;
    }

    .card2 h1 {
        font-size: 35px;
    }

    .card8 {
        display: block;
    }

    .message {
        margin-top: 20px;
    }
}
