@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Merriweather:wght@400;700&display=swap');

/*
font-family: 'Inter', sans-serif;
font-family: 'Merriweather', serif;
*/

/*---------------- Html ----------------*/
:root {
    --gold-color: #bdae82;
    --hero-background: url('assets/img/bg.jpg');
    --hero-background-light: url('assets/img/bg-light.jpg');
    --contacts-background: url('assets/img/contacts.jpg');
    --contacts-background-light: url('assets/img/contacts-light.jpg');
    --text-color: #ffffff;
}

* {
    box-sizing: border-box;
    font: 400 20px/30px 'Inter', sans-serif;
    color: var(--text-color);
}

::-webkit-scrollbar {
    width: 0;
    background: transparent; 
}

html {
    scroll-behavior: smooth;
}



/*---------------- Body ----------------*/
body {
    background-color: #000000;
    margin: 0;
    overflow-x: hidden;
}

body.light-theme {
    background-color: #ffffff;
}

svg,
a {
    transition: 0.4s;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--gold-color);
}

h1,
p {
    margin: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.display-block {
    display: block;
}

/* .header,
.main,
.footer {
    padding: 0 20px;
} */



/*--------------- Header ---------------*/
.header .container {
    display: flex;
    align-items: center;
    background: var(--hero-background);
    background-repeat: no-repeat;
    background-position: center 0;
    margin-bottom: 0;
}

.header .container.light-theme {
    background: var(--hero-background-light);
    background-repeat: no-repeat;
    background-position: center 0;
    margin-bottom: 0;
}

.header__logo,
.header__theme {
    display: block;
    width: 50px;
    height: 50px;
    margin: 20px;
    fill: var(--text-color);
}

.header__theme {
    width: 40px;
    height: 40px;
}

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

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

.header-nav {
    margin-left: auto;
    transition: 0.5s;
    z-index: 9;
}

.header-nav__list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0; 
    margin: 0;
    list-style: none;
}

.header-nav__item {
    font: 400 20px/50px 'Inter', sans-serif;
    color: var(--text-color);
}

.header-nav__link {
    margin: 0 15px;
    line-height: 50px;
    font-size: 20px;
}

.hamburger-button {
    display: none;
    cursor: pointer;
    position: absolute;
    z-index: 10;
}

.hamburger-button__line {
    width: 50px;
    height: 3px;
    margin: 9.5px 0;
    display: block;
    background-color: var(--text-color);
    transition: 0.5s;
}

.hamburger-button.open .hamburger-button__line:nth-child(1) {
    transform: translateY(12.75px) rotate(-45deg);
}

.hamburger-button.open .hamburger-button__line:nth-child(2) {
    transform: translateX(200px);
}

.hamburger-button.open .hamburger-button__line:nth-child(3) {
    transform: translateY(-12.75px) rotate(45deg);
}



/*---------------- Main ----------------*/
.main > .container {
    margin-bottom: 0;
}

.section-title{
    display: flex;
    justify-content: center;
    width: 42vw;
    max-width: 1440px;
    height: 80px;
    padding: 0 20px;
    margin: 0 auto 60px auto;
    overflow: hidden;
    font: 700 40px 'Merriweather', serif;
    color: var(--gold-color);
    font-size: 40px;
    line-height: 80px;
}

.section-title::after,
.section-title::before {
    width: 400px;
    height: 0px;

    margin: 39px 20px;

    content: '';
    border: 1px solid var(--gold-color);
}

.section-title.light-theme {
    color: #1c1c1c;
}

.section-title.light-theme::after,
.section-title.light-theme::before {
    border-color: #1c1c1c;
}



/*---------------- Hero ----------------*/
.hero .container {
    height: 820px;
    background-image: var(--hero-background);
    background-position: center -90px;
    background-repeat: no-repeat;
}

.hero .container.light-theme {
    background-image: var(--hero-background-light);
}

.hero__block {
    padding: 160px 0 0 80px;
}

.hero__title {
    font: 700 60px/120px 'Merriweather', serif;
}

.hero__text {
    max-width: 400px;
    min-width: 200px;
    font: 400 20px/40px 'Inter', sans-serif;
    margin: 10px 0 25px 0;
}



/*--------------- Skills ---------------*/
.skills .container {
    margin-bottom: 102px;
}

.skills__row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 40px
}
.skills-item {
    width: 320px;
    height: 240px;
    /* padding: 0 20px 2px 20px; */
}

/* .skills-item__image {} */

.skills-item__title {
    font: 700 20px/40px 'Inter', sans-serif;
    margin: 42px 0 21px 0;
}

.skills-item__text {
    font: 400 18px/36px 'Inter', sans-serif;
}



/*------------- Portfolio --------------*/
.portfolio .container {
    text-align: center;
}

.portfolio__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-buttons__row {
        margin: 0 3px;
}

.portfolio__images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 60px;
}

.portfolio__image {
    width: 450px;
}



/*--------------- Video ----------------*/
.video .container {
    text-align: center;
}

.video-player {
    width: 1400px;
    height: 705px;
    margin: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .video-player__image {} */

.video-player__button {
    position: absolute;
    width: 130px;
    fill: #ffffff;
}

.video-player__button:hover {
    fill: var(--gold-color)
}




/*--------------- Price ----------------*/
/* .price {} */

.price__row {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    gap: 25px
}

.price-item {
    width: 450px;
    height: 505px;
    border: 3px solid var(--gold-color);
    text-align: center;
}

.price-item span:last-of-type {
    margin-bottom: 37px;
}

.price-item__title {
    font: 700 28px/56px 'Merriweather', serif;
    margin-top: 40px;
    margin-bottom: 22px;
}

.price-item__text {
    font: 400 18px/36px 'Inter', sans-serif;
}

.price-item__text {
    font: 400 18px/36px 'Inter', sans-serif;
}

.price-text {
    font: 700 24px/48px 'Merriweather', serif;
    color: var(--gold-color);
    margin: 20px 0;
}



/*-------------- Contacts --------------*/
.contacts .container {
    height: 700px;
    background-image: var(--contacts-background);
    margin-bottom: 0;
}

.contacts .container.light-theme {
    background-image: var(--contacts-background-light);
}

.contacts__block {
    padding: 60px 20px 195px 970px;
}

.contacts__title {
    margin: 0 0 40px 0;
    font: 700 40px/80px 'Merriweather', serif;
    color: var(--gold-color);
}

.contacts__title.light-theme {
    color: #1c1c1c;
}

.contacts__item ::placeholder {
    font-family: inherit;
    color: var(--gold-color);
    font-size: 20px;
}

.contacts__input-email,
.contacts__input-tel,
.contacts__textarea {
    border: 2px solid var(--gold-color);
    background: rgba(0, 0, 0, 0.5);
    width: 450px;
    height: 50px;
    padding: 7.5px 18px;
    margin-bottom: 20px;
}

.contacts__textarea {
    height: 100px;
    resize: none;
    margin-bottom: 22px;
}

.contacts__item.light-theme * {
    background-color: rgba(255, 255, 255, 0.5);
}

.contacts__item.light-theme input::placeholder,
.contacts__item.light-theme textarea::placeholder {
    color: #1c1c1c;
}



/*--------------- Footer ---------------*/
.footer .container {
    height: 150px;
    margin-bottom: 0;
}

.footer__row {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 400 20px/50px 'Inter', sans-serif;
}

.footer__item {
    margin: 0 20px;
}

.footer__social-list {
    display: flex;
    list-style: none;
    padding: 0;
}

.social-list__link {
    display: block;
    height: 32px;
    margin-left: 20px;
}

.social-list__icon{
    fill: var(--text-color);
    width: 32px;
    height: 32px;
}

.social-list__icon:hover{
    fill: var(--gold-color);
}

.social-list__icon:last-child {
    margin-right: 0;
}



/*--------------- Other ----------------*/
.button {
    font: 400 20px/40px 'Inter', sans-serif;
    color: var(--gold-color);
    background-color: #000000;
    border: 2px solid var(--gold-color);
    width: 220px;
    height: 55px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 1px 1px 2px var(--gold-color) ;
}

.button.light-theme {
    background-color: #ffffff;
    color: var(--gold-color);
}

.button:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.button.light-theme:hover {
    color: #000000;
}

.button_active {
    color: #000000;
    background-color: var(--gold-color);
}

.portfolio-buttons__row .button_active {
    color: #000000;
    background-color: var(--gold-color);
}

.button-language,
.button-theme {
    /* cursor: pointer; */
    font: 700 20px/50px 'Inter', sans-serif;
    background: none;
    border: none;
    margin: 0 12px;
}

.button-language span {
    font: 700 20px/50px 'Inter', sans-serif;
    transition: 0.3s;
}

.button-language span:hover,
.button-language_active {
    cursor: pointer;
    color: var(--gold-color);
}

.color-gold{
    font-weight: inherit;
    font-size: inherit;
    color: var(--gold-color);
}



@media (max-width: 1439px) {
    .video-player {
        width: 100vw;
        height: auto;
    }

    .video-player__image {
        margin-top: 4px;
        width: 100vw;
        height: 54.5vw;
    }

    .video-player__button {
        width: 100px;
        height: 100px;
    }

    .price__row {
        flex-direction: column;
        align-items: center;
        gap: 50px
    }

    .contacts__block {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .contacts__title {
        margin-top: 60px;
        font: 700 32px/64px 'Merriweather', serif;
    }

    .portfolio-buttons__row {
        margin: 3px;
    }

    .portfolio-buttons__row:last-child {
        margin-bottom: 0;
    }
}



@media (max-width: 768px) {
    /*---------------- Body ----------------*/
    .container {
        margin-bottom: 80px;
    }



    /*--------------- Header ---------------*/
    .header .container {
        background-size: 980px;
        background-position: 2% -30px;
    }

    .header .container.light-theme {
        background-size: 980px;
        background-position: 2% -30px;
    }

    .header__logo {
        margin-left: 60px;
    }

    .button-language {
        margin-left: auto;
    }

    .header-nav {
        position: fixed;
        width: 620px;
        height: 100vh;
        background-color: #000000;
        top: 0;
        right: -620px;
    }

    .header .container.light-theme .header-nav{
        background-color: #ffffff;
    }

    .header-nav.open {
        right: 0;
    }

    .header-nav__list {
        flex-direction: column;
        align-items: flex-start;
        width: 150px;
        margin: 134px 344px auto 127px;
    }

    .header-nav__item {
        margin-bottom: 12px;
    }

    .header-nav__link {
        font: 400 35px/73px 'Inter', sans-serif;
    }

    /* когда-нибудь надо будет убрать все эти костыли */
    /* .header .container.light-theme a {
        color: #ffffff;
    }
    
    .header .container.light-theme a:hover {
        color: var(--gold-color);
    } */

    .button-theme {
        margin-right: 130px;
        margin-left: 0;
    }

    .hamburger-button {
        display: block;
        position: fixed;
        right: 64px;
    }



    /*---------------- Main ----------------*/
    .section-title {
        font-size: 32px;
        margin-bottom: 45px;
        width: 58vw;
        max-width: 786px;
    }

    .section-title::after,
    .section-title::before {
    width: 115px;
    }



    /*---------------- Hero ----------------*/
    .hero .container {
        background-size: 980px;
        background-position: 2% -120px;
        height: auto;
    }

    .hero__block {
        padding: 78px 60px 150px 60px;
    }

    .hero__title {
        font: 400 32px/64px 'Merriweather', serif;
    }

    .hero__text {
        line-height: 24.2px;
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 60px;
    }



    /*--------------- Skills ---------------*/
    .skills .container {
        margin-bottom: 100px;
    }

    .skills__row {
        gap: 25px;
    }

    .skills-item__title {
        margin: 19px 0 19px 0;
    }

    .skills-item__text {
        line-height: 21.78px;
    }



    /*------------- Portfolio --------------*/

    .portfolio__image {
        min-width: 320px;
    }



    /*--------------- Video ----------------*/
    .video-player {
        width: 100vw;
        height: auto;
    }

    .video-player__image {
        margin-top: 4px;
    }

    .video-player__button {
        width: 65px;
        height: 65px;
    }



    /*--------------- Price ----------------*/
    .price-item {
        width: 420px;
        max-width: 100%;
    }

    .price-item:first-child {
        margin-top: 5px;
    }



    /*------------- Contacts ---------------*/
    .contacts .container {
        max-height: 600px;
        background-size: 1237px;
        
        background-position: -31vw 0vw;
    }

    .contacts__item {
        max-width: 100%;
    }

    .contacts__input-email,
    .contacts__input-tel,
    .contacts__textarea {
        max-width: 100%;
    }



    /*------------- Footer ---------------*/
    .footer .container {
        height: 200px;
    }

    .footer__row {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 25px;
    }

    .footer__social-list {
        margin-top: 17px;
    }

    .social-list__link {
        margin: 0 10px;
    }
}

@media (max-width: 619px) {
    .header-nav {
        width: 100vw;
    }

    .header-nav__list{
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}
