:root {
    --color-black: #141414;
    --color-gray: #5A5A5A;
    --color-blue-dark: #1160DF;
    --color-blue-lite: #5596FF;
    --color-sky-dark: #C1D9FF;
    --color-sky-lite: #E7EFFC;
    --color-yellow-dark: #FFC115;
    --color-yellow-lite: #FFF9E8;
    --color-red-dark: #FF3F3F;
    --color-red-lite: #FFECEC;
}

html, body {
    font-size: 18px;
}

body {
    font-family: "VP-Montserrat", sans-serif;
    line-height: 1.4;
    color: var(--color-black);
    background: #FFF;
    min-width: 320px;
    position: relative;
}

img {
    max-width: 100%;
}

.wrapper {
    max-width: 1424px;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    margin: 0 auto;
    z-index: 10;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.666666rem 0;
}

.header__hamburger {
    display: none;
}

.header__logo h1,
.header__logo p {
    font-size: 2.38888888rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-blue-dark)
}

.navigation ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.navigation ul a {
    color: var(--color-black);
    line-height: 1;
    font-weight: 500;
    text-decoration: none;
}

.navigation ul a:hover {
    color: var(--color-blue-dark);
}

.menu-mobile {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 15;
    width: 100%;
    height: 100vh;
    padding-top: calc(2.66666rem * 2 + 2.55555rem);
    display: none;
}

.menu-mobile.open {
    display: block;
}

.menu-mobile__inner ul {
    list-style-type: none;
}

.menu-mobile__inner ul li {
    border-bottom: 1px solid #eee;
}

.menu-mobile__inner ul li:last-child {
    border-bottom: 0;
}

.menu-mobile__inner ul a {
    display: block;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    color: var(--color-black);
    font-size: 1.125rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hamburger {
    border: 0;
    background-color: transparent;
    width: 48px;
    height: 27px;
    position: relative;
}

.hamburger::after,
.hamburger__inner::after,
.hamburger__inner::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all .2s ease;
}

.hamburger::after {
    top: 0
}

.hamburger__inner::after {
    top: calc(50% - 1.5px);
}

.hamburger__inner::before {
    bottom: 0;
}

.hamburger.active .hamburger__inner::after {
    background-color: transparent;
}

.hamburger.active::after,
.hamburger.active .hamburger__inner::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.hamburger.active::after {
    transform: rotate(45deg);
}

.hamburger.active .hamburger__inner::before {
    transform: rotate(-45deg);
}

.hero {
    background-image: url(../img/hero-background.png);
    background-size: cover;
    padding-top: 167px;
    overflow-x: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
} 

.hero__content {
    flex: 0 0 540px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.hero__image {
    flex: 0 0 calc(100% - 540px - 1.5rem);
    max-width: calc(100% - 540px - 1.5rem);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero__image::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    margin: auto;
    background-image: url(../img/hero-decor.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: bottom;
    width: 769px;
    height: 75%;
    z-index: -1;
}

.hero__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__text p {
    font-weight: 500;
    margin-bottom: .5em
}

.hero__text p:last-child {
    margin-bottom: 0;
}

.contacts ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: .66666rem;
}

.contacts li {
    display: flex;
    align-items: center;
    gap: .66666rem;
    font-size: 1rem;
}

.contacts__icon {
    flex: 0 0 1.3333333em;
    max-width: 1.3333333em;
    height: 1.3333333em;
}

.contacts__icon img {
    width: 1.3333333em;
}

.contacts__text {
    flex: 0 0 calc(100% - 1.3333333em - .66666rem);
    max-width: calc(100% - 1.3333333em - .66666rem);
}

.contacts__text span,
.contacts__text a {
    color: var(--color-black);
    text-decoration: none;
    line-height: 1.4;
    font-weight: 500;
}

.button {
    border: 0;
    border-radius: .44444rem; /* 8px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .66666rem; /* 12px  */
    text-decoration: none;
    background-color: var(--color-gray);
    transition: all .2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.button--medium {
    padding: .44444rem 1.33333rem; /* 8px 24px */
}

.button--large {
    padding: 1.11111rem 2.5rem; /* 20px 45px */
}

.button--primary {
    background-color: var(--color-blue-lite);
    color: #FFF;
}

.button--primary:hover {
    background-color: var(--color-blue-dark);
}

.button--primary:active {
    background-color: var(--color-sky-dark);
}

.skills-group {
    width: 100%;
}

.skills-group__title {
    margin-bottom: 1.666666rem
}

.skills-group__title h3,
.skills-group__title p {
    font-weight: 600;
    color: #fff;
    font-size: 1.333333rem;
}

.skills-group__list {
    display: flex;
    flex-direction: column;
    gap: 1.333333rem;
}

.section {
    padding-top: 130px;
    padding-bottom: 130px;
    position: relative;
}

.section__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section__header {
    display: flex;
    flex-direction: column;
    gap: .666666rem;
    margin-bottom: 70px;
}

.section__title h2,
.section__title p {
    font-weight: 700;
    font-size: 2rem;
}

.section__subtitle p {
    font-weight: 500;
}

.section--primary {
    padding-top: 100px;
    padding-bottom: 120px;
}

.section--primary .section__header {
    color: #FFF;
}

.section--dark::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: #222;
    opacity: .96;
}

.section--blue::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(
        to right bottom,
        var(--color-blue-dark),
        var(--color-blue-lite)
    );
    opacity: .8;
}

.section--contacts {
    background: linear-gradient(
        to right,
        rgb(85 150 255 / .02),
        rgb(17 96 223 / .02)
    );
    padding-top: 120px;
    padding-bottom: 120px;
}

.section--contacts::after,
.section--contacts::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    background-image: url(../img/contacts-pattern.png);
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
    height: 100%;
    width: 60%;
}

.section--contacts::after {
    right: 0;
    transform: scaleX(-1);
}

.skill {
    display: flex;
    flex-direction: column;
    gap: .66666rem;
}

.skill__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.skill__title p {
    color: #FFF;
    font-weight: 500;
}

.skill__percent span {
    font-size: .88888rem;
    font-weight: 500;
    color: rgb(255 255 255 / .8)
}

.progressbar {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background-color: var(--color-sky-dark);
    position: relative;
}

.progressbar__inner {
    height: 100%;
    border-radius: 10px;
    background-color: var(--color-blue-dark);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 20px;
}

.row__column {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.case-preview,
.case-preview__content {
    display: flex;
    flex-direction: column;
}

.case-preview {
    gap: 1.33333rem;
}

.case-preview__image img {
    border-radius: .88888rem;
}

.case-preview__content {
    gap: .66666rem;
}

.case-preview__title h3 {
    font-size: 1.33333rem;
    font-weight: 500;
}

.case-preview__description p {
    color: var(--color-gray);
    font-weight: 500;
}

.case-preview__link a {
    display: inline-flex;
    align-items: center;
    gap: .66666rem;
    font-size: .88888rem;
    font-weight: 500;
    color: var(--color-blue-dark);
    text-decoration: none;
}

.case-preview__link a:hover {
    opacity: .85;
}

.case-preview__link a:active {
    opacity: .75;
}

.experience-item {
    background-color: #FFF;
    border-radius: .88888rem;
    padding: 1.33333rem;
}

.experience-item__title {
    margin-bottom: .44444rem;
}

.experience-item__title h3 {
    font-weight: 500;
    font-size: 1.33333rem;
}

.experience-item__period {
    margin-bottom: 1rem;
}

.experience-item__period span {
    font-weight: 500;
    color: #515151;
}

.experience-item__description p {
    font-weight: 500;
}

.row-hobbies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.33333rem;
}

.row-hobbies__column {
    flex: 0 0 540px;
    max-width: 540px;
}

.hobbies-photo {
    position: sticky;
    top: 10%;
}

.hobbies-photo img {
    border-radius: .88888rem;
}

.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hobbie__title {
    margin-bottom: .66666rem;
}

.hobbie__title h3 {
    font-size: 1.33333rem;
    font-weight: 500;
}

.hobbie__description p {
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: .5em;
}

.hobbie__description p:last-child {
    margin-bottom: 0;
}

.contacts-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.33333rem;
}

.icon {
    width: 2.66666rem;
    height: 2.66666rem;
    border-radius: .44444rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon--yellow {
    background-color: var(--color-yellow-lite);
}

.icon--red {
    background-color: var(--color-red-lite);
}

.icon--blue {
    background-color: var(--color-sky-lite);
}

.contact-item:hover {
    opacity: .85;
}

.contact-item:active {
    opacity: .75;
}

.contact-item a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.33333rem;
}

.contact-item__inner {
    display: flex;
    align-items: center;
    gap: .44444rem;
}

.contact-item__icon {
    flex: 0 0 48px;
}

.contact-item__text {
    flex: 0 0 calc(100% - 48px);
}

.footer {
    background-color: #222;
    padding: 50px 0 80px;
    color: #FFF;
}

.footer__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer__name span {
    font-size: 1.33333rem;
    font-weight: 700;
}

.footer__link a {
    color: #FFF;
    text-decoration: none;
    font-size: .88888rem;
    font-weight: 500;
}

.footer__link a:hover {
    text-decoration: underline;
}

.cookies-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    border: 1px solid #D7D7D7;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    gap: 1.5rem;
    max-width: calc(100% - 1rem);
}

.cookies-notification.open {
    display: flex;
}

.cookies-notification__text p {
    font-size: .88888rem;
}

.cookies-notification__text p a {
    text-decoration: underline;
    color: var(--color-blue-dark);
}

.cookies-notification__text p a:hover {
    text-decoration: none;
}