:root {
    --color-gold: #BDAE82;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --font-size-18: 18px;
    --font-size-20: 20px;
    --font-size-24: 24px;
    --font-size-28: 28px;
    --font-size-40: 40px;
    --font-size-60: 60px;
    --line-height-36: 36px;
    --line-height-40: 40px;
    --line-height-48: 48px;
    --line-height-50: 50px;
    --line-height-56: 56px;
    --line-height-80: 80px;
    --line-height-120: 120px;
}

@font-face {
    font-family: 'Merriweather';
    src: url("assets/fonts/Merriweather-Bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: 'Inter';
    src: url("assets/fonts/Inter-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: 'Inter';
    src: url("assets/fonts/Inter-Bold.ttf");
    font-weight: 700;
}

body {
    font-family: 'Inter';
    margin: 0 auto;
    background-color: var(--color-black);
}

.container {
    max-width: 1440px; /* ограничивает ширину контента на больших экранах */
    margin: 0 auto; /* центрирует контейнер по горизонтали */
    /* padding: 0 20px; /* чтобы контент не прилипал к краям при уменьшении ширины экрана */ */
    /* flex-basis: fit-content; */
}

html {
    scroll-behavior: smooth;
    /* display: flex; */
}

.button-gold {
    width: 220px;
    height: 55px;
    background: var(--color-gold);
    border-radius: 0px;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--font-size-20);
    line-height: var(--line-height-40);
    color: var(--color-black);
    transition: .3s;
}

.button-gold:hover {
    color: var(--color-white);
}

.section {
    background-color: var(--color-black);
}

.section-title {
    font-family: Merriweather;
    font-size: var(--font-size-40);
    line-height: var(--line-height-80);
    background-color: var(--color-black);
    color: var(--color-gold);
    padding: 0 20px;
    margin: auto;
}

.main-section {
    padding-top: 100px;
    background-color: var(--color-black);
}

.title-wrapper {
    display: flex;
    width: 50%;
    margin: auto;
    margin-bottom: 60px;
    background-image: linear-gradient(to top, #000 39px, #bdae82 39px, #bdae82 41px, #000 41px);
}

.icon {
    fill: var(--color-white);
    transition: .3s;
}

.icon:hover {
    fill: var(--color-gold);
    cursor: pointer;
}

/* Header styles start */

.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 30px;
}

.nav-link {
    line-height: var(--line-height-50);
    text-decoration: none;
    font-family: 'Inter';
    font-weight: 400;
    font-size: var(--font-size-20);
    color: var(--color-white);
    transition: .3s;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-burger {
    display: none;
    width: 50px;
    height: 30px;
    position: relative;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    left: 0;
}

.burger-line-first {
    top: 0;
}

.burger-line-second {
    top: 50%;
    transform: translateY(-50%);
}

.burger-line-third {
    bottom: 0;
}

.lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
}

.lang-link {
    text-decoration: none;
    font-family: 'Inter';
    font-weight: 700;
    font-size: var(--font-size-20);
    line-height: var(--line-height-50);
    color: var(--color-white);
    transition: .3s;
}

.lang-link:hover {
    color: var(--color-gold);
}

.lang-link.active {
    color: var(--color-gold);
}

.lang-active:hover {
    color: var(--color-white);
}

.lang-text {
    display: inline;
    color: var(--color-white);
    font-family: 'Inter';
    font-weight: 700;
    font-size: var(--font-size-20);
    line-height: var(--line-height-50);
}

.header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    left: 0px;
    top: 0px;
    gap: 30px;
    padding: 0 20px;
    background: url('assets/img/header-bg.jpg'); TODO:
    background-repeat: no-repeat; TODO:
    background-position: center 0;
}

.logo {
    background-image: url('assets/svg/logo.svg'); /* добавляем Изменение цвета svg при наведении */
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.3s;
}

.logo:hover {
    cursor: pointer;
    filter: invert(26%) sepia(15%) saturate(638%) hue-rotate(7deg) brightness(92%)
    contrast(87%);
}

/* Header styles end */

/* Main__hero styles start */

.hero-title {
    font-family: 'Merriweather';
    font-size: var(--font-size-60);
    line-height: var(--line-height-120);
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 0;
}

.hero-text {
    font-family: 'Inter';
    font-weight: 400;
    font-size: var(--font-size-20);
    line-height: var(--line-height-40);
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 15px;
    max-width: 470px;
}

.hero-section {
    display: flex;
    flex-direction: column;
    background-image: url('assets/img/header-bg.jpg');
    /* background-size: 100% auto; */
    background-position: center -90px;
    background-repeat: no-repeat;
    padding-top: 160px;
    padding-bottom: 330px;
    gap: 10px;
    padding-left: 80px;
}

/* Main__hero styles end */

/* Main__skills styles start */

.skills-section {
    padding-bottom: 10px;
}

.skills-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* посмотреть, почему не срабатывает */ FIXME:
}

.skills-item {
    width: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-between;
}

.skills-title {
    color: var(--color-white);
    font-size: var(--font-size-20);
    line-height: var(--line-height-40);
    align-self: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.skills-text {
    color: var(--color-white);
    font-size: var(--font-size-18);
    line-height: var(--line-height-36);
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 280px;
    margin-left: 20px;
}

.skills-icon {
    height: 50px;
    width: auto;
    margin-bottom: 50px;
}

.skills-icon:hover {
    cursor: default;
}

/* Main__skills styles end */

/* Main__portfolio styles start */

.button-transparent {
    width: 220px;
    height: 55px;
    background: transparent;
    border: 2px solid var(--color-gold);
    border-radius: 0px;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--font-size-20);
    line-height: var(--line-height-40);
    color: var(--color-gold);
    gap: 5px;
    transition: .3s;
}

.button-transparent:hover {
    color: var(--color-white);
}

.button-transparent.active {
    background: var(--color-gold);
    color: var(--color-black);
}

.inline-block {
    display: inline-block;
}

.portfolio-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 35px;
    gap: 5px;
}

.portfolio-photos {
    padding-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-around;
    gap: 25px;
}

.portfolio-image {
    width: 450px;
    border-radius: 0px;
    transition: 0.3s;
}

.portfolio-image:hover {
    cursor: pointer;
    opacity: 0.5;
}

/* Main__portfolio styles end */

/* Main__video styles start */

.video-player {
    height: 705px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('assets/img/video-player.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.play-button {
    background: transparent;
    border: 0;
    position: absolute;
    transition: 0.3s;
}

.play-button:hover {
    filter: invert(26%) sepia(15%) saturate(638%) hue-rotate(7deg) brightness(92%)
    contrast(87%);
    cursor: pointer;
}

/* Main__video styles end */

/* Main__price styles start */

.price-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding-left: 20px;
    padding-right: 20px;
    gap: 25px;
}

.price-item {
    display: block;
    border: 3px solid var(--color-gold);
    width: 450px;
    justify-content: center;
    padding-top: 39px;
    padding-bottom: 40px;
}

.price-category {
    font-family: Merriweather;
    font-size: var(--font-size-28);
    line-height: var(--line-height-56);
    text-align: center;
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 20px;
}

.price-value {
    font-family: Merriweather;
    font-size: var(--font-size-24);
    line-height: var(--line-height-48);
    text-align: center;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 20px;
}

.price-description {
    font-family: Inter;
    font-weight: 400;
    font-size: var(--font-size-18);
    line-height: 36px;
    text-align: center;
    color: var(--color-white);
    list-style-type: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 40px;
    height: 180px;
}

.button-price {
    display: block;
    margin: 0 auto;
}

/* Main__price styles end */

/* Main__contacts styles start */

.contacts-section {
    position: relative;
    height: 700px;
    background-image: url('assets/img/contacts-bg.jpg');
    background-position: center 100px;
    background-repeat: no-repeat;
}

.contacts-block {
    position: absolute;
    top: 160px;
    right: 20px;
    background-color: transparent;
    max-width: 450px;
}

.contacts-title {
    font-family: Merriweather;
    font-size: var(--font-size-40);
    line-height: var(--line-height-80);
    color: var(--color-gold);
    margin: auto;
    margin-bottom: 40px;
}

.text-input {
    width: 450px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-gold);
    box-sizing: border-box;
    border-radius: 0px;
    margin-bottom: 20px;
    font-family: inherit;
    color: var(--color-gold);
    font-size: var(--font-size-20);
    line-height: var(--line-height-40);
    padding-left: 18px;
}

.textarea {
    height: 100px;
    width: 450px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-gold);
    box-sizing: border-box;
    border-radius: 0px;
    margin-bottom: 26px;
    resize: none;
    font-family: inherit;
    color: var(--color-gold);
    font-size: var(--font-size-20);
    line-height: var(--line-height-40);
    padding-left: 18px;
}

::placeholder {
    font-family: inherit;
    color: var(--color-gold);
    font-size: var(--font-size-20);
    line-height: 40px;
}

/* Main__contacts styles end */

/* Footer styles start */

.footer-container {
    box-sizing: border-box;
    height: 150px;
    background-color: var(--color-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
    padding-left: 20px;
}

.footer-copyright {
    display: flex;
    font-family: Inter;
    font-weight: 400;
    font-size: var(--font-size-20);
    line-height: var(--line-height-50);
    color: var(--color-white);
    gap: 20px;
    align-items: center;
}

.social-list {
    display: flex;
    gap: 20px;
}

.social-icons {
    width: 32px;
    height: auto;
}

.footer-link {
    display: flex;
    text-decoration: none;
    font-family: 'Inter';
    font-weight: 400;
    font-size: var(--font-size-20);
    line-height: var(--line-height-50);
    color: var(--color-white);
    transition: .3s;
    margin-bottom: 2px;
}

.footer-link:hover {
    color: var(--color-gold);
}

.rss {
    margin-left: 57px;
}

.copyright-item {
    margin-top: 0;
    margin-bottom: 0;
}

/* Footer styles end */

/* Media Queries start */

@media (max-width: 1440px) {
    .skills-list {
        row-gap: 75px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-32: 32px;
        --line-height-64: 64px;
    }
    .container {
        /* width: calc(100% - 40px);*/
        max-width: 768px;
        /* margin: 0 auto;
        padding: 0 20px; */
    }
    .main-section {
        padding-top: 100px;
    }
    .title-wrapper {
        margin-bottom: 36px;
        padding-top: 40px;
        padding-bottom: 20px;
    }
    .section-title {
        font-size: 32px;
        line-height: 40px;
    }
    .header-container {
        background: url('assets/img/header-bg-small.jpg');
        background-repeat: no-repeat;
        background-position: center 0;
        padding-left: 60px;
        padding-right: 50px;
        gap: 40px;
    }
    .nav-burger {
        display: block;
    }
    .nav {
        position: fixed;
        width: 600px;
        height: 100%;
        top: 0;
        right: 0;
        background-color: var(--color-black);
        z-index: 1;
        transform: translateX(100%);
        transition: 0.5s;
        padding-top: 120px;
    }
    .nav-open {
        transform: translateX(0);
    }
    .nav-close {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        margin-left: 100px;
        gap: 0;
    }
    .nav-link {
        font-size: 34.8235px;
        line-height: 83px;
    }
    .nav-close {
        width: 50px;
        height: 50px;
        position: absolute;
        top: 20px;
        right: 64px;
        z-index: 2;
    }
    .nav-close-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-white);
        position: absolute;
        top: 50%;
    }
    .nav-close-line:first-child {
        transform: translateY(-50%) rotate(45deg);
    }
    .nav-close-line:last-child {
        transform: translateY(-50%) rotate(-45deg);
    }
    .lang {
        margin-left: auto;
    }
    .hero-section {
        background-image: url('assets/img/header-bg-small.jpg');
        background-repeat: no-repeat;
        padding-top: 78px;
        padding-left: 60px;
        padding-bottom: 152px;
    }
    .hero-title {
        font-size: 32px;
        line-height: 64px;
        margin-bottom: 10px;
    }
    .hero-text {
        font-size: 20px;
        line-height: 24px;
        max-width: 390px;
        margin-bottom: 50px;
    }
    .skills-section {
        padding-top: 60px;
    }
    .skills-list {
        justify-content: space-evenly;
        margin-top: 45px;
        row-gap: 75px;
        padding-right: 10px;
        padding-left: 5px;
    }
    .skills-item {
        width: 50%;
        max-width: 300px;
    }
    .skills-title {
        margin-bottom: 0;
        padding-bottom: 20px;
    }
    .skills-text {
        margin: 0 auto;
        line-height: 22px;
    }
    .skills-icon {
        margin-bottom: 30px;
    }
    .portfolio-section {
        padding-top: 130px;
    }
    .portfolio-buttons {
        max-width: 445px;
        flex-wrap: wrap;
        margin: 50px auto 0;
    }
    .portfolio-photos {
        justify-content: center;
    }
    .video-section {
        padding-top: 60px;
    }
    .video-player {
        height: 418px;
        background-image: url('assets/img/video-player-small.jpg');
        margin-top: 50px;
    }
    .play-button-image {
        width: 50%;
        height: 50%;
    }
    .price-section {
        padding-top: 60px;
    }
    .price-list {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 50px;
        row-gap: 50px;
    }
    .price-item {
        width: 420px;
    }
    .contacts-section {
        display: flex;
        background-image: url('assets/img/contacts-small.jpg');
        height: 600px;
        margin: 0 auto;
        padding-top: 0;
        padding-bottom: 100px;
        align-items: center;
    }
    .contacts-block {
        top: 60px;
        left: 160;
        width: 450px;
        position: static;
        margin: 0 auto;
        padding-top: 150px;
    }
    .contacts-title {
        font-size: 32px;
        line-height: 64px;
        text-align: center;
        margin-bottom: 40px;
    }
    .contacts-button {
        margin-left: 115px;
    }
    .footer-container {
        flex-direction: column;
        align-content: space-around;
        height: 190px;
        padding: 28px 0;
        align-content: space-around;
    }
    .footer-copyright {
        line-height: 24px;
    }
    .footer-link {
        line-height: 24px;
    }
    .social-list {
        list-style-type: none;
        margin: 0;
        padding-right: 30px;
        padding-bottom: 5px;
    }
    .social-icons {
        height: 32px;
    }
    .rss {
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 620px) {
    .nav-open {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 480px;
    }
    .skills-item {
        width: 100%;
    }
    .contacts-block {
        max-width: 300px;
    }
    .text-input,
    .textarea {
        width: 300px;
    }
    .contacts-button {
        margin-left: 0;
    }
}

@media (max-width: 320px) {
    .container {
        max-width: 320px;
    }
    .skills-item {
        width: 100%;
    }
    .contacts-block {
        max-width: 300px;
    }
    .text-input,
    .textarea {
        width: 300px;
    }
    .contacts-button {
        margin-left: 0;
    }
}

/* Media Queries end */