:root{
    --main-font: 'Open Sans', sans-serif;
    --title-font: 'Marcellus', serif;
    --gold: #AC914A;
    --gold-light: #F0EBDE;
    --gold-light-light: #FFFBEE;
    --white: #FFFFFF;
    /* --dark: #001C25; */
    --dark: #212121;
    --section-distance: 60px;
    --size-1: 12px;
    --size-2: 24px;
    --size-3: 48px
}


/* common styles */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
html{
    font-size: 10px
}
body{
    font-size: 1.8rem;
    font-family: var(--main-font);
    font-weight: 400;
    line-height: 1.65;
    color: var(--dark)
}
address{
    font-style: normal
}
.container{
    width: 100%;
    max-width: 1304px;
    padding: 0 var(--size-1);
    margin: 0 auto
}
a{
    text-decoration: none
}
section a:not(.btn), footer a:not(.btn){
    color: var(--gold)
}
.subtitle{
    font-family: var(--main-font);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: var(--size-1);
    letter-spacing: normal;
    letter-spacing: 4px
}

h1{
    font-family: var(--title-font);
    font-size: 7.8rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px
}

h2{ 
    font-family: var(--title-font);
    font-size: 4.4rem;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -2px
}

h3, .advantages__item .title .text{
    font-family: var(--title-font);
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -1px
}
section ul:not(:first-child){
    margin-top: var(--size-1)
}
ul li{
    list-style: none
}
ul li:not(nav ul li){
    padding-left: 20px;
    position: relative
}
ul li:not(nav ul li):before{
    content: '';
    width: var(--size-1);
    height: var(--size-1);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--gold)
}
ul li:not(nav ul li):not(:first-child), ol li:not(:first-child){
    margin-top: 8px
}

ol{
    counter-reset: item
}
ol li{
    list-style: none;
    padding-left: 27px;
    position: relative;
    counter-increment: item
}
ol li:before{
    content: counter(item)'.';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: 600
}

section p:not(:first-child){
    margin-top: var(--size-1)
}

input{
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0 var(--size-2);
    outline: none;
    border: 1px solid var(--gold);
    border-radius: 50%
}
input::placeholder{
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--gold)
}
section{
    overflow: hidden
}

::selection {
    background: var(--gold);
    color: var(--white)
}

/* end of common styles */



/* common class styles */

/* buttons */
.btn, input[type="button"]{
    font-family: var(--title-font);
    /* font-family: var(--main-font); */
    /* font-weight: 600; */
    text-transform: uppercase;
    padding: 0 var(--size-2);
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    height: 55px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background-color: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
    transition: 0.3s
}
.btn:hover{
    border: 1px solid var(--white);
    color: var(--gold);
    background: var(--white);
    cursor: pointer;
    transition: 0.3s
}

.empty-btn{
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white)
}

.empty-btn:hover, .btn:not(.main-block .btn):hover{
    background: transparent;
    color: var(--gold);
    border-color: var(--gold)
}


/* end of buttons */
.grid-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px
}
.grid-3{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 64px
}


.none{
    display: none!important
}


.img-container{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}
.img-container img, .img-container video{
    object-fit: cover;
    width: 100%;
    height: 100%
}

section .overlay{
    width: 100%;
    height: 100%;
    /* background: #0000008C; */
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 55%), linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 55%);
    position: absolute;
    top: 0;
    left: 0
}
.bg-wrap{
    position: relative
}
.bg{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0
}

/* end of common class styles */



/* header */
header{
   position: fixed;
   width: 100%;
   z-index: 4
}
header.scroll{
    background-color: var(--dark)
}
header:not(.scroll) .menu-btn-open img{
    filter: brightness(0) invert(1)
}
header.scroll .header .container{
    align-items: center
}
header.scroll .header .container > .logo {
    height: 70px
}
header.scroll .main-menu a{
    color: var(--white);
    font-size: 1.4rem
}
.header .container > .logo{
    height: 145px
}

.main-menu a{
    font-family: var(--main-font);
    font-size: 1.6rem;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 500
}
.main-menu a:hover{
    color: var(--gold)
}

.main-menu >nav >ul{
    display: flex;
    align-items: center;
    gap: 38px
}
.header{
    padding: var(--size-1) 0
}
.header .container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--size-2);
    max-width: 100dvw
}


/* end of header */





/* footer */
.border-top{
    display: flex;
    align-items: center
}
.border-top .line{
    width: 100%;
    height: 2px;
    background-color: var(--gold)
}
.border-top .line:first-child{
    transform: skewX(-80deg)
}
.border-top .line:last-child{
    transform: skewX(80deg)
}
.border-top img{
    margin: -18px -10px 0
}
.footer__items{
    padding: var(--section-distance) 0
}
.footer__items h3{
    color: var(--gold)
}
.footer__item:first-child p, .footer__item .main-menu,
.footer__item address
{
    margin-top: var(--size-2)
}
.footer__item .main-menu{
    margin-top: var(--size-2)
}
.footer__item .main-menu >nav >ul{
    flex-direction: column;
    gap: 8px;
    align-items: flex-start
}
.footer__item .main-menu a, .footer__item address a{
    color: var(--dark)
}
.footer__item .main-menu a:hover, .footer__item address a:hover{
    color: var(--gold)
}
.footer__item address{
    display: flex;
    flex-direction: column;
    gap: var(--size-1)
}
address a{
    position: relative;
    padding-left: 28px
}
.email:before{
    content: url('../img/icons/email-dark.svg');
    position: absolute;
    left: 0;
    top: 2px
}
.tel:before{
    content: url('../img/icons/tel-dark.svg');
    position: absolute;
    left: 0;
    top: 2px
}
.location:before{
    content: url('../img/icons/location-dark.svg');
    position: absolute;
    left: 0;
    top: 2px
}
.email:hover:before{
    content: url('../img/icons/email-gold.svg');
    position: absolute;
    left: 0
}
.tel:hover:before{
    content: url('../img/icons/tel-gold.svg');
    position: absolute;
    left: 0
}
.location:hover:before{
    content: url('../img/icons/location-gold.svg');
    position: absolute;
    left: 0
}

/* end of footer */