@font-face {
    font-family: 'Roboto';
    src:
        local('Roboto Bold'),
        local('Roboto-Bold'),
        url('fonts/roboto-bold.woff2') format('woff2'),
        url('fonts/roboto-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src:
        local('Roboto Medium'),
        local('Roboto-Medium'),
        url('fonts/roboto-medium.woff2') format('woff2'),
        url('fonts/roboto-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

html {
    height: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 18px;
    line-height: 27px;
    background-color: #fcf9dc;

    margin: 0;
    padding: 0;
    text-rendering: optimizeSpeed;
}

a {
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
}

a:hover {
    opacity: 0.6;
}

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

h1 {
    text-transform: uppercase;
    font-size: 35px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: #3d5247;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav__link {
    padding: 20px;
    line-height: 60px;
    color: #fcf9dc;
}

.main a {
    color: #7d7a63;
}

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

.main__item {
    width: 48.5%;
    padding-left: 10px;
    padding-bottom: 35px;
    border-bottom: 2px solid #000000;
}

@media (max-width: 930px) {
    .main__item {
        width: 100%;
    }
}

.main__item:last-child {
    border-bottom: none;
}

.profile {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 30px 0;
    border-bottom: 10px solid #b8cfc2;
}

.profile__caption {
    text-align: center;
}

.profile__caption b {
    font-weight: 500;
    text-transform: uppercase;
}

.contacts__list {
    padding: 0;
    padding-left: 25px;
    margin: 0;
}

.skills__list {
    padding: 0;
    padding-left: 25px;
    margin: 0;
}

.code__pre {
    margin-top: -20px;
    margin-bottom: -50px;
}

.code__pre code {
    white-space: pre-wrap;
}

.footer {
    padding: 30px 0;
    background-color: #3d5247;
    color: #fcf9dc;
}

.footer__inner {
    display: flex;
}

.footer__github {
    margin-left: 30px;
    color: #fcf9dc;
}

.footer__rs-link {
    margin-left: auto;
}

