@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: local(''),
        url('assets/fonts/lato-v23-latin-300.woff2') format('woff2'),
        url('assets/fonts/lato-v23-latin-300.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('assets/fonts/lato-v23-latin-regular.woff2') format('woff2'),
        url('assets/fonts/lato-v23-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    src: local(''),
        url('assets/fonts/lato-v23-latin-900.woff2') format('woff2'),
        url('assets/fonts/lato-v23-latin-900.woff') format('woff');
}

@font-face {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 300;
    src: local(''),
        url('assets/fonts/spectral-v13-latin-300.woff2') format('woff2'),
        url('assets/fonts/spectral-v13-latin-300.woff') format('woff');
}

@font-face {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 500;
    src: local(''),
        url('assets/fonts/spectral-v13-latin-500.woff2') format('woff2'),
        url('assets/fonts/spectral-v13-latin-500.woff') format('woff');
}

@font-face {
    font-family: 'Spectral';
    font-style: italic;
    font-weight: 500;
    src: local(''),
        url('assets/fonts/spectral-v13-latin-500italic.woff2') format('woff2'),
        url('assets/fonts/spectral-v13-latin-500italic.woff') format('woff');
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 20px;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Lato', Verdana, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.4rem;
    color: #242424;
}

/***FONTS***/
h1 {
    margin: 0;
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 500;
    font-size: 3rem;
    line-height: 4.6rem;
}

h3 {
    margin: 0;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.2rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: #DB9291;
}

h4 {
    margin: 0;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.3rem;
    letter-spacing: -0.03rem;
    color: #2D3E5B;
}

.body-light-font {
    margin: 0;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.2rem;
    color: #242424;
}

.body-font {
    margin: 0;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4rem;
    color: #242424;
}

/***HEADER***/
.navigation {
    height: 100%;
}

.navigation__list {
    display: flex;
    justify-content: space-between;
    padding: 0;
    list-style: none;
    margin: 0;
}

.navigation__list-link {
    text-decoration: none;
}

.navigation__list-link {
    position: relative;
}

.navigation__list-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: #2D3E5B;
    transition: width 0.5s;
}

.navigation__list-link:hover:before {
    width: 100%;
}

/***MAIN***/
.wrapper {
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    max-width: 1440px;
    min-height: 50px;
}

.main__wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
}

/***PROFILE***/
.profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

.profile__logo {
    width: 275px;
    height: 275px;
    border-radius: 50%;
}

.profile__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    margin-left: 50px;
}

.profile__title {
    margin: 0;
    letter-spacing: -0.05rem;
    color: #2D3E5B;
}

/***CONTACTS***/
.contacts {
    margin-top: 16px;
}

.contacts__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
}

.contacts__item {
    margin: 10px 10px 10px 0;
    text-align: center;
}

.contacts__item-icon {
    position: relative;
    text-decoration: none;
    color: #242424;
}

.contacts__item:not(:first-child) .contacts__item-icon:hover,
.courses__certificate:hover {
    color: #DB9291;
}

.contacts__item-icon:before,
.experience__item-icon::before,
.education__item::before,
.courses__course-name-icon::before,
.courses__period-icon::before,
.courses__certificate::before {
    content: "";
    position: absolute;
    top: 0px;
    left: -1.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.contacts__location::before {
    background-image: url(assets/icons/location.svg);
}

.contacts__email::before {
    background-image: url(assets/icons/mail.svg);
}

.contacts__telegram::before {
    background-image: url(assets/icons/telegram.svg);
}

.contacts__github::before {
    background-image: url(assets/icons/github.svg);
}

.contacts__instagram::before {
    background-image: url(assets/icons/instagram.svg);
}

.contacts__linkedin::before {
    background-image: url(assets/icons/linkedin.svg);
}

.contacts__leetcode::before {
    background-image: url(assets/icons/leetcode.svg);
}

.contacts__codewars::before {
    background-image: url(assets/icons/codewars.svg);
}

/***SUMMARY***/
.summary {
    padding-left: 16px;
    padding-right: 16px;
    margin: 35px 0;
    background-color: #F7F8F8;
}

.summary_about-me {
    margin: 16px 0;
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 130%;
    letter-spacing: -0.05rem;
    color: #242424;
}

/***EXPERIENCE***/
.experience {
    margin-bottom: 35px;
}

.experience__title,
.skills__title,
.education__title,
.education_grade,
.courses__title,
.courses__subtitle,
.projects__title {
    margin-bottom: 16px;
}

.experience__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
}

.experience__item {
    position: relative;
    margin-left: 30px;
    margin-bottom: 12px;
}

.experience__item-icon:nth-of-type(1)::before {
    background-image: url(assets/icons/company.svg);
}

.experience__item-icon:nth-of-type(2)::before {
    background-image: url(assets/icons/calendar.svg);
}

/***SKILLS***/
.skills {
    margin-bottom: 24px;
}

.skills__list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skills__item {
    padding: 16px 0;
    border-bottom: 1px solid #EDEDED;
}

.education-courses {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 35px;
}

.skills-education {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

/***EDUCATION***/
.education {
    margin-bottom: 24px;
    border-bottom: 1px solid #EDEDED;
}

.education_info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    list-style: none;
}

.education__item {
    position: relative;
    margin-bottom: 16px;
}

.education__item:nth-of-type(1) {
    margin-right: 50px;
}

.education__item-icon:nth-of-type(1)::before,
.courses__course-name-icon::before {
    background-image: url(assets/icons/book.svg);
}

.education__item-icon:nth-of-type(2)::before,
.courses__period-icon::before {
    background-image: url(assets/icons/calendar.svg);
}

/***COURSES***/
.courses {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.courses__list {
    margin-bottom: 24px;
    border-bottom: 1px solid #EDEDED;
}

.courses__course-name,
.courses__period {
    position: relative;
}

.courses__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-left: 30px;
    margin-bottom: 16px;
}

.courses__certificate {
    display: block;
    position: relative;
    margin-bottom: 16px;
    padding-left: 30px;
    text-decoration: none;
    color: #242424;
}

.courses__certificate::before {
    left: 0;
    background-image: url(assets/icons/certificate.svg);
}

/***PROJECTS***/
.projects {
    margin-bottom: 40px;
}

.projects__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
    gap: 40px;
}

.projects__info {
    margin: 0;
}

.projects__image {
    width: 400px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: .5s ease-in;
}

.projects__image:hover {
    transform: scale(1.05);
}

.projects__description {
    text-align: center;
}