/* Basic styles */

body {
    max-width: 60rem;
    margin: 0 auto;

    padding: 0 1.25rem;

    font: normal 16px/1.5 'Inter', sans-serif;
}

/* Heading */

.header {
    display: block;
    position: relative;

    padding: 2rem 0;
}

@media screen and (max-width: 767px) {
    .header {
        padding: 1rem 0;
    }
}
    .profile {
        display: flex;
        flex-flow: row nowrap;
        position: relative;

        width: 100%;

        margin: 1rem 0 2rem;
    }
        .profile__icon {
            width: 32px;
            height: 32px;
            align-self: flex-start;

            margin-right: 1rem;
        }

        .profile__text {
            display: flex;
            flex-flow: column;
            align-self: center;
        }

            .profile__text-title {
                font-size: 1.5rem;
                font-weight: 600;
                line-height: 1.2;

                margin-bottom: 0.15rem;
            }

    @media screen and (max-width: 767px) {
        .profile {
            margin: 1rem 0;
        }
    }

    @media screen and (max-width: 220px) {
        .profile__icon {
            display: none;
        }
    }

    .bio {
        display: block;
        position: relative;

        width: 80%;
        max-width: 100%;

        margin: 1rem 0 2rem;
    }
        .bio__text {
            font-size: 1.75rem;
            line-height: 1.4;
            font-weight: 400;
            padding: 1rem 0;
        }

        .bio__contact {
            display: block;
            position: relative;
        }
            .bio__contact-link {
                color: #000000;
                line-height: 1.5;

                text-decoration: none;
                margin-right: 1rem;
            }

            .bio__contact-link:hover {
                color: #5856d6;
                transition: all 300ms;
            }

    @media screen and (max-width: 767px) {
        .bio {
            width: 100%;
        }
        .bio__text {
            font-size: 1.5rem;
        }
        .bio__contact-link {
            color: #5856d6;
        }
    }

/*Main part*/

.main {
    display: block;
    position: relative;

    padding: 2rem 0;
}

    .project {
        display: block;
        position: relative;

        margin: 0 0 5rem;
    }
        .project__title {
            display: inline-block;
            position: relative;

            font-size: 2rem;
            font-weight: 600;
            line-height: 1.2;

            border-bottom: 0.15px solid #e5e5ea;
            margin-bottom: 1rem;

            text-decoration: none;
            color: #000000;
        }
            .project__title:hover {
                color: #5856d6;
                border-bottom: none;
            }


        .project__cover {
            width: 100%;
            height: auto;
            object-fit: cover;
            object-position: center;

            border-radius: 0.5rem;

            margin-bottom: 1rem;
        }

        .project__description {
            display: block;
            position: relative;

            width: 60%;
            max-width: 100%;

            margin-bottom: 1rem;
        }

        .project__button {
            display: flex;
            flex-flow: row nowrap;
        }
            .project__button-main {
                display: flex;
                position: relative;

                font-size: 1rem;
                font-weight: 400;
                line-height: 1.2;
                color: #ffffff;

                background: #aeaeb2;
                border-radius: 4px;

                padding: 0.5rem 1.5rem;

                -webkit-appearance: none;
                cursor: pointer;
                outline: none;
                text-decoration: none;

                margin-right: 1rem;
            }
                .project__button-main:hover {
                    color: #ffffff;
                    background: #5856d6;
                    transition: background 0.5s;
                }

            .project__button-secondary {
                display: flex;
                position: relative;

                font-size: 1rem;
                font-weight: 400;
                line-height: 1.2;
                color: #aeaeb2;

                background: #ffffff;
                border: 1px solid #aeaeb2;
                border-radius: 4px;

                padding: 0.5rem 1rem;

                -webkit-appearance: none;
                cursor: pointer;
                outline: none;
                text-decoration: none;

                margin-right: 0.75rem;
            }
                .project__button-secondary:hover {
                    color: #5856d6;
                    border: 1px solid #5856d6;
                    transition: background 0.5s;
                }

    @media screen and (max-width: 767px) {
        .project {
            margin: 0 0 4rem;
        }
        .project__title {
            font-size: 1.5rem;
        }
        .project__description {
            width: 100%;
        }
        .project__button-main {
            color: #ffffff;
            background: #5856d6;
        }
        .project__button-secondary {
            color: #5856d6;
            border: 1px solid #5856d6;
        }
    }

    .column {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;

        margin: 0 0 4rem;
    }
        .card {
            display: block;
            position: relative;

            width: 48%;
        }
            .card__title {
                display: inline-block;
                position: relative;

                font-size: 2rem;
                font-weight: 600;
                line-height: 1.2;

                border-bottom: 0.15px solid #e5e5ea;
                margin-bottom: 1rem;

                text-decoration: none;
                color: #000000;
            }
                .card__title:hover {
                    color: #5856d6;
                    border-bottom: none;
                }

            .card__cover {
                width: 100%;
                height: auto;
                object-fit: cover;
                object-position: center;

                border-radius: 0.25rem;

                margin-bottom: 1rem;
            }

            .card__description {
                display: block;
                position: relative;

                margin-bottom: 1rem;
            }

    @media screen and (max-width: 767px) {
        .column {
            margin: 0;
        }
        .card {
            width: 100%;
            margin: 0 0 4rem;
        }
        .card__title {
            font-size: 1.5rem;
        }
    }


/* Contact information */

.footer {
    display: block;
    position: relative;

    padding: 2rem 0;
}
    .contacts {
        display: flex;
        flex-flow: column;
        align-items: center;

        position: relative;

        /*background: #F2F2F7;*/
        border-radius: 0.5rem 0.5rem 0 0;

        margin-bottom: 4rem;
    }
         .contacts__icon {
             width: 2rem;
             height: auto;
             max-height: 2rem;
             object-fit: cover;
             object-position: center;

             margin-bottom: 1rem;
         }

         .contacts__text {
             font-size: 1.25rem;
             line-height: 1.4;
             font-weight: 400;
         }
            .contacts__text-link {
                color: #000000;
                text-decoration: none;
                border-bottom: 0.15px solid #c7c7cc;
            }
                .contacts__text-link:hover {
                    color: #5856d6;
                    transition: all 300ms;
                    border-bottom: none;
                }

    @media screen and (max-width: 767px) {
        .contacts__text {
            font-size: 1.125rem;
        }
        .contacts__text-link {
            color: #5856d6;
            border-bottom: none;
        }
    }
