* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Karma', serif;
    font-size: 20px;
    color: #fff;
}

.header {
    background-color: #003b46;
    max-width: 1440px;
    height: 80px;
    margin: 0 auto;
}

.nav {
    height: 100%;
}

.nav-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    height: 100%;
    font-size: 24px;
    margin-left: auto;
}

.nav-list__item {
    padding: 0 16px;
    transition: .2s ease-in-out;
}

.nav-list__item-link,
.nav-list__item-link:active,
.nav-list__item-link:visited {
    text-decoration: none;
    color: #fff;
}

.nav-list__item-link:hover {
    color: #66a5ad;
    text-shadow: 0 0 3px #66a5ad;
}

.toggle-btn {
    display: none;
    width: 40px;
    height: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    margin-left: auto;
    margin-right: 25px;
}

.toggle-btn__line {
    width: 80%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
}

.toggle-btn.collapsed .toggle-btn__line:nth-of-type(1) {
    transform: rotate(-45deg) translate(-4px, 7px);
}

.toggle-btn.collapsed .toggle-btn__line:nth-of-type(2) {
    opacity: 0;
}

.toggle-btn.collapsed .toggle-btn__line:nth-of-type(3) {
    transform: rotate(45deg) translate(-6px, -10px);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #66a5ad;
    display: flex;
}

.aside {
    width: 432px;
    background-color: #003b46;
}

.section {
    padding: 0 48px 48px;
}

.section-aside {
    padding: 0 32px 48px;
}

.section__title {
    font-size: 32px;
    text-transform: uppercase;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 0 4px;
    margin: 0;
    margin-bottom: 48px;
}

.section__subtitle {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}

.main-title {
    font-size: 48px;
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 24px;
    background: none;
    border-bottom: none;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    left: calc(168px - 9%);
    bottom: 0;
    width: 18%;
    height: 2px;
    background-color: #66a5ad;
    box-shadow: 12px 29px 81px 0px rgba(0, 0, 0, 0.75)
}

.image-wrap {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.image-wrap__image {
    box-shadow: 12px 29px 81px 0px rgba(3, 34, 36, 0.75);
    width: 100%;
}

.image-wrap::after {
    content: "";
    width: 300px;
    height: 2px;
    background: #66a5ad;
    position: absolute;
    bottom: 0;
    right: -25px;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    box-shadow: 12px 29px 81px 0px rgba(0, 0, 0, 0.75);
}

.image-wrap::before {
    content: "";
    width: 2px;
    height: 300px;
    background: #66a5ad;
    position: absolute;
    bottom: -25px;
    right: 0;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    box-shadow: 12px 29px 81px 0px rgba(0, 0, 0, 0.75);
}

.contacts__list {
    padding: 0;
    padding-left: 16px;
    margin: 0;
    list-style-type: none;
}

.contacts__list-item {
    margin-bottom: 20px;
    transition: .3s;
    transform-origin: 0;
}

.contacts__list-item:hover {
    transform: scale(1.1);
}

.contacts__list-item:last-child {
    margin-bottom: 0;
}

.contacts__icon {
    fill: #fff;
    vertical-align: middle;
    margin-right: 8px;
}

.contacts__item-link,
.contacts__item-link:active,
.contacts__item-link:visited {
    text-decoration: none;
    color: inherit;
}

.skills__list {
    list-style-type: none;
    padding: 0;
    padding-left: 16px;
    margin: 0;
}

.skills__list-item {
    margin-bottom: 10px;
}

.skills__list-item:last-child {
    margin-bottom: 0;
}

.skills__list-item::before {
    content: '✓';
    margin-right: 16px;
}

.section__text {
    padding: 0 32px;
    margin: 0;
    line-height: 2;
    text-align: justify;
}

.main {
    max-width: 1008px;
    padding-top: 48px;
}

.pre {
    margin: 0;
    line-height: 1.5;
    padding-left: 48px;
}

.pre_small {
    display: none;
}

.projects__wrap {
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -16px;
}

.projects__item {
    width: calc(50% - 16px);
    margin-bottom: 16px;
    background-color: #07575b;
    box-shadow: 0 0 20px 0px rgba(3, 34, 36, 0.25);
    transition: .2s ease-in-out;
}

.projects__link,
.projects__link:active,
.projects__link:visited {
    text-decoration: none;
    color: inherit;
}

.projects__link_disabled {
    pointer-events: none;
}

.projects__item-odd {
    margin-right: 16px;
}
.projects__item-odd:hover {
    transform: scale(1.05) rotate(-1deg);
}

.projects__item-even:hover {
    transform: scale(1.05) rotate(1deg);
}

.projects__item-even {
    margin-left: 16px;
}

.projects__image {
    width: 100%;
}

.projects__text {
    text-align: center;
}

.courses__list {
    list-style-type: none;
    padding: 0 32px;
    margin: 0;
}

.courses__list-item {
    margin-bottom: 10px;
    cursor: pointer;
    transition: .3s;
    transform-origin: 0;
}

.courses__list-item:hover {
    transform: scale(1.1);
}

.courses__list-item a {
    color: inherit;
    text-decoration: none;
}

.courses__list-item:last-child {
    margin-bottom: 0;
}

.courses__list-item::before {
    content: '✓';
    margin-right: 16px;
}

.footer {
    max-width: 1440px;
    min-height: 80px;
    margin: 0 auto;
    padding: 16px 0;
    background-color: #07575b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo-wrap {
    margin-left: 20px;
}

.footer__text-wrap {
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer__link,
.footer__link:active,
.footer__link:visited {
    text-decoration: none;
    color: #fff;
}

.footer__icon {
    fill: #fff;
    margin-right: 10px;
    vertical-align: middle;
}

.footer__text {
    margin: 0;
    transition: .2s ease-in-out;
}

.footer__text:hover .footer__link {
    color: #66a5ad;
    text-shadow: 0 0 3px #66a5ad;
}

.footer__text:hover .footer__icon {
    fill: #66a5ad;
}

@media (max-width: 1280px) {
    .header,
    .container,
    .footer {
        width: 1024px;
    }

    body {
        font-size: 16px;
    }

    .nav-list {
        font-size: 20px;
        margin: 0 auto;
    }

    .section__title {
        font-size: 26px;
    }

    .main-title {
        font-size: 38px;
    }

    .main-title::after {
        left: calc(120px - 9%);
    }

    .section__subtitle {
        font-size: 20px;
    }

    .aside {
        width: 336px;
    }

    .main {
        max-width: 688px;
    }

    .image-wrap {
        width: 240px;
        height: 240px;
    }

    .image-wrap::after {
        width: 240px;
    }

    .image-wrap::before {
        height: 240px;
    }

    .contacts__icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 992px) {
    .header,
    .container,
    .footer {
        width: 100%;
    }

    .header {
        display: flex;
        align-items: center;
    }

    .nav {
        display: none;
    }

    .nav.collapsed {
        display: block;
        background-color: #003b46;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 500px;
        z-index: 1;
    }

    .nav-list.collapsed {
        width: 100%;
        height: 100vh;
        z-index: 2;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
    }

    .nav-list.collapsed .nav-list__item {
        margin-bottom: 16px;
    }

    .toggle-btn {
        display: flex;
        z-index: 3;
    }

    .section {
        padding: 0 32px 48px;
    }

    .section-aside {
        padding: 0 22px 48px;
    }
}

@media (max-width: 860px) {

    .container {
        flex-wrap: wrap;
    }

    .aside {
        width: 100%;
    }

    .main {
        min-width: 100%;
    }

    .main-title::after {
        width: 10%;
        left: 45%;
    }
}

@media (max-width: 499px) {
    .pre {
        padding-left: 8px;
    }

    .pre_large {
        display: none;
    }

    .pre_small {
        display: block;
    }

    .projects__wrap {
        flex-wrap: wrap;
    }

    .projects__item-even,
    .projects__item-odd {
        margin: 0;
    }

    .projects__item {
        width: 100%;
        margin-bottom: 32px;
    }

    .projects__item:last-child {
        margin-bottom: 0;
    }
}