:root{
    --main-font: 'IBM Plex Sans', sans-serif;
    --title-font: 'Roboto Slab', serif;
    --white: #ffffff;
    --light: #FDF7E8;
    --beige: #F2E4C4;
    --main-color: #0B3A16;
    --yellow: #F7C12B;
    --black: #000000;
    --section-distance: 96px;
    --border-radius-1: 10px;
    --border-radius-2: 20px;
    --size-1: 24px;
    --size-2: 48px
}


/* common styles */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
html{
    font-size: 10px
}
body{
    font-size: 1.6rem;
    font-family: var(--main-font);
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-color);
    background-color: var(--light)
}
address{
    font-style: normal
}
strong{
    font-weight: 500
}
.container{
    width: 100%;
    max-width: 1744px;
    padding: 0 38px;
    margin: 0 auto
}
a{
    text-decoration: none
}
section >.container .content{
    padding: var(--size-1);
    background-color: var(--beige);
    border-radius: var(--border-radius-2)
}
section a:not(.btn), footer a:not(.btn){
    color: var(--main-color)
}

h1{
    font-family: var(--title-font);
    font-size: 5rem;
    font-weight: 600
}

h2{
    font-family: var(--title-font);
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    max-width: 524px;
    margin: 0 auto var(--size-2)
}

h3, .team-item .name{ 
    font-family: var(--main-font);
    font-size: 2.4rem;
    font-weight: 500
}
blockquote{
    font-weight: 500;
    text-align: center
}
section p:not(:first-child){
    margin-top: var(--size-1)
}


/* end of common styles */



/* common class styles */

/* buttons */
.btn, input[type="submit"]{
    font-family: var(--title-font);
    padding: 21px 70px;
    font-weight: 600;
    color: var(--main-color);
    font-size: 3rem;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    height: 83px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    border-radius: var(--border-radius-1);
    background-color: var(--yellow)
}
.btn:hover{
    cursor: pointer
}


/* end of buttons */
.grid-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--size-1)
}
.grid-1-2{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--size-1)
}
.grid-3{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--size-1)
}


.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%
}


/* end of common class styles */

/* social */
.social{
    display: flex;
    align-items: center;
    gap: 28px
}
.social a{
    display: inline-block;
    width: 20px;
    height: 20px
}

.i{
    background: url("../img/icons/i.svg");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat
}
.f{
    background: url("../img/icons/f.svg");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat
}
.tt{
    background: url("../img/icons/tt.svg");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat
}
.tel{
    position: relative;
    padding-left: 33px;
    color: var(--main-color);
    font-weight: 500
}
.tel:before{
    content: '';
    background: url("../img/icons/tel.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    width: 15px;
    height: 24px;
    position: absolute;
    left: 0;
    top: -1px

}
.location{
    position: relative;
    padding-left: 35px;
    color: var(--main-color);
    font-weight: 500
}
.location:before{
    content: '';
    background: url("../img/icons/location.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    width: 18px;
    height: 22.21px;
    position: absolute;
    left: 0;
    top: -1px

}



/* end of top banner */

/* header */
header{
   position: fixed;
   width: 100%;
   z-index: 1
}
header.scroll{
    display: none
}
.header .logo{
    height: 48px
}
.main-menu a:not(.btn){
    color: var(--main-color)
}
.main-menu >nav >ul{
    display: flex;
    align-items: center;
    gap: var(--size-1)
}
.main-menu li{
    list-style: none
}

.header .container .content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--size-1);
    background-color: var(--beige);
    border-radius: 0 0 var(--border-radius-2) var(--border-radius-2);
    padding: var(--size-1);
    width: 100%
}
.header .container .content >*:first-child{
    margin-right: auto
}
.header .container .content >*:last-child{
    margin-left: auto
}
.contacts-header{
    display: flex;
    align-items: center;
    gap: 30.5px
}


/* end of header */

section:not(:first-of-type), footer{
    margin-top: var(--section-distance)
}
.popup, .popup-tel{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5
}
.popup__content, .popup-tel .popup__content{
    background-color: var(--beige);
    position: relative;
    width: 70%;
    max-width: 1072px;
    border-radius: var(--border-radius-2);
    padding: 48px 24px
}
.popup-tel .popup__content{
    width: 572px;
    display: flex;
    flex-direction: column;
    align-items: center
}
.popup-tel button{
    margin-top: 48px;
    width: 100%;
    border: none
}
.popup-tel .btn{
    font-family: var(--main-font);
    font-size: 1.6rem;
    font-weight: 500
}
#copyMessage{
   color: var(--main-color);
   margin-top: 8px;
   display: none; 
   text-align: left;
   width: 100%
}
.popup-tel .tel{
    font-size: 2.4rem
}
.popup-tel .tel:before{
    top: 6px
}
.popup-tel .btn:last-child{
    margin-top: var(--size-1);
    width: 100%
}
.popup .overlay, .popup-tel .overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fdf7e852;
    backdrop-filter: blur(10px)
}
.popup__content h3{
    font-family: var(--title-font);
    margin-bottom: 24px
}
.consult-form label{
    font-weight: 500;
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: block
}
.consult-form label:not(:first-child){
    margin-top: 24px
}
input{
    font-family: var(--main-font);
    background-color: var(--white);
    width: 100%;
    border-radius: var(--border-radius-1);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--black);
    padding: 10px;
    outline: none;
    border: none;
    font-family: var(--main-font)
}
input::placeholder{
    font-family: var(--main-font);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--black)
}
.popup .btn, .consult-form input[type="submit"]{
    width: 100%;
    margin-top: 24px;
    font-size: 1.6rem;
    font-weight: 500;
    font-family: var(--main-font)
}
.popup .btn{
    margin-top: var(--size-1)
}


.success-modal {
  background-color: #fdf7e852;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  z-index: 5;
  transition: 0.3s
}
.success-modal .title, .success-modal .title + p{
    font-size: 4rem;
    font-family: var(--title-font);
    font-weight: 600
}
.success-modal .title + p{
    font-size: 2.4rem;
    margin-top: 48px
}
.success-modal .btn{
    margin-top: 24px
}
.success-modal.active {
  display: block
}

.success-box {
  background: var(--beige);
  padding: 48px 24px;
  border-radius: var(--border-radius-2);
  text-align: center;
  max-width: 572px;
  transition: 0.3s;
}




/* footer */
.footer .logo{
    padding: var(--size-1);
    border-radius: var(--border-radius-2) 0 var(--border-radius-2) 0;
    position: relative;
    width: fit-content;
    z-index: 1;
    background-color: var(--beige)
}
.footer .logo{
    width: 524px
}
.footer .container{
    position: relative
}
.footer .map{
    height: 278px;
    width: calc(100% - 76px);
    position: absolute;
    top: 0;
    left: 38px
}
.footer .map iframe{
    border: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-2) var(--border-radius-2) 0 0;
    overflow: hidden
}
.footer address{
    position: absolute;
    top: 0;
    right: 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top-right-radius: var(--border-radius-2)
}
.footer .social, .footer .tel, .footer .location{
    width: fit-content;
    padding: var(--size-1) var(--size-1) 0 var(--size-1);
    background-color: var(--beige)
}
.footer .tel:before{
    top: 16px;
    left: 24px
}
.footer .location:before{
    top: 19px;
    left: 24px
}
.footer .tel{
    padding-left: 57px;
    border-radius: var(--size-1) 0 0 0
}
.footer .location{
    padding-left: 59px;
    padding-bottom: var(--size-1);
    border-radius: var(--size-1) 0 0 var(--size-1);
    text-align: right
}
.footer .social{
    position: relative
}
.footer .social:before{
    content: url(../img/triangle.svg);
    position: absolute;
    top: 0;
    left: -16px;
    /* transform: rotate(-90deg); */
    width: 16px;
    height: 16px
}
.footer .social:after{
    content: url(../img/triangle.svg);
    position: absolute;
    bottom: 0;
    left: -16px;
    transform: rotate(90deg);
    width: 16px;
    height: 16px
}
.footer .tel:after{
    content: url(../img/triangle.svg);
    position: absolute;
    bottom: 0;
    left: -16px;
    transform: rotate(90deg);
    width: 16px;
    height: 16px
}
.footer .location:after{
    content: url(../img/triangle.svg);
    position: absolute;
    bottom: -16px;
    right: 0;
    width: 16px;
    height: 16px
}
.footer .logo:before{
    content: url(../img/triangle.svg);
    position: absolute;
    top: 0;
    right: -16px;
    transform: rotate(-90deg);
    width: 16px;
    height: 16px
}
.footer .logo:after{
    content: url(../img/triangle.svg);
    position: absolute;
    bottom: -16px;
    left: 0;
    transform: rotate(-90deg);
    width: 16px;
    height: 16px
}

/* end of footer */