@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');

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

:root {
    --dark: #21243D;
}

@font-face {
    font-family: CustomFont;
    font-weight: 400;
    font-style: normal;
    src: url('fonts/TAWOGTheSpoon-Regular.otf'), url('fonts/TAWOGTheSpoon-Regular.woff2') format('woff2');
}

html {
    font-family: "Heebo", sans-serif;
}

h1 {
    /* font-family: "CustomFont", sans-serif; */
}

body {
    color: var(--dark);
}

a {
    color: #000;
    text-decoration: none;
}

.link-blue {
    color: #00A8CC;
}

.active {
    color: #FF6464;
}

.menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

header {
    display: flex;
    justify-content: end;
    padding-block: 27px;
    padding-right: 60px;
}

.container {
    margin: 0 auto;
    max-width: 856px;
    width: calc(100% - 30px - 30px);
}

.about__container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.about {
    padding-block: 127px 68px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 500px;
    align-items: start;
}

.image {
    width: 243px;
    height: 243px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: -5px 13px 0 #EDF7FA;
    flex-shrink: 0;
}

.title {
    font-size: 44px;
    font-weight: bold;
    color: var(--dark);
}

.text {
    font-size: 16px;
    font-weight: normal;
    color: var(--dark);
}

.button {
    background-color: #FF6464;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    border-radius: 2px;
    padding: 9px 20px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    /* outline: none; */
}

/* Начинаем стилизовать блок recent*/

.recent {
    background-color: #EDF7FA;
    padding-block: 21px 32px;
}

.recent__top {
    display: flex;
    justify-content: space-between;
}

.recent__items {
    display: flex;
    gap: 20px;
}

.recent .post {
    flex-grow: 1;
}

.recent__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    padding: 24px;
    border-radius: 4px;
}

.post__meta {
    display: flex;
    gap: 26px;
    font-size: 18px;
}

.recent__title {
    font-size: 22px;
    font-weight: normal;
}

.recent__link {
    color: #00A8CC;
    font-size: 16px;
}

.post__title {
    font-size: 26px;
    font-weight: bold;
}

.post__text,
.work__text {
    font-size: 16px;
}

@media (max-width: 768px) {
    .image {
        width: 180px;
        height: 180px;
    }

    .title {
        font-size: 36px;
    }

    .about {
        padding-top: 60px;
    }

    .info {
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .about__container {
        flex-direction: column-reverse;
    }

    .about {
        padding-top: 12px;
    }

    .image {
        align-self: center;
    }

    .info {
        max-width: unset;
    }
}

@media (max-width: 576px) {
   header {
    justify-content: center;
    padding-right: 15px;
   }

   .container {
    width: calc(100% - 15px - 15px);
   }

   .title {
    font-size: 28px;
   }

    .info {
        gap: 16px;
    }
}