*,
::before,
::after
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root
{
    --white: #fff;
    --black: #000;
    --gray: #EFEFF9;
    --yellow: #F7EA54;

    --px35: 35px;
    --px65: 65px;

    --two-cl: 50%;
    --three-cl: calc(100% / 3);
    --four-cl: 25%;
    --five-cl: 20%;
    --flex-direction: row;
}

@media (max-width: 767px)
{
    :root
    {
        --px35: 15px;
        --px65: 15px;

        --two-cl: 100%;
        --three-cl: 100%;
        --four-cl: 100%;
        --five-cl: 100%;
        --flex-direction: column;
    }
}

body
{
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

img,
iframe
{
    max-width: 100%;
    height: auto;
}

section
{
    padding: var(--px35) 0;
}

p:not([class]),
h2:not([class])
{
	margin-bottom: 15px;
	line-height: 1.5;
}
ul:not([class])
{
    padding-left: 25px;
    margin: 15px 0;
}
a,
button
{
    transition: all .3s;
}
.container
{
    max-width: 1280px;
    margin: 0 auto;
}



/*#region Шапка*/
.header 
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 5;
}
.header__wrapper 
{
    display: flex;
    flex-direction: var(--flex-direction);
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
}
.header__logo {
}
.header__logo-link {
}

.header__list 
{

}

.header__item
{
    margin-bottom: 10px;
    text-align: right;
}
.header__item:last-child
{
    margin-bottom: 0;
}
.header__mobile {
}
.header__link 
{
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}
.header__link:hover
{
    color: var(--yellow)
}
/*#endregion*/


.main {
}

/*#region Блоки*/

.title 
{
    line-height: 1.2;
    text-align: center;
}
.title--h1 
{
    font-size: 36px;
    color: var(--white);
}
.title--h2
{   
    margin-bottom: 10px;
    font-size: 32px;   
}

.list
{
    list-style: none;
}
.button 
{

}
.button__btn
{
    padding: 5px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.button__btn--red
{
    background: var(--red);
    color: var(--white);
}
.button__btn--yellow
{
    background: var(--yellow);
    color: var(--black);
}
.button__btn--yellow:hover
{
    background: var(--gray);
}
/*#endregion*/


.first-bx 
{
    position: relative;
    background: url(../img/bg-first.jpg) no-repeat center center / cover;
}
.first-bx::before,
.form-bx::before
{
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.first-bx__wrapper
{
    position: relative;
    display: flex;
    align-items: center;
    max-width: 850px;
    min-height: 400px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;

}
/*#endregion*/

/*#region Преимущества*/

.adve 
{
    background: #ededed;
}
.adve__list,
.product__list 

{
    display: flex;
    justify-content: space-between;
    flex-direction: var(--flex-direction);
    list-style: none;
}
.adve__item 
{
    width: var(--five-cl);
}
.adve__item-bx,
.product__item-bx 
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px;
    text-align: center;
}
.adve__img 
{
    margin-bottom: 10px;
}
.adve__text 
{

}

/*#endregion*/

/*#region Product*/

.product {
}
.product__list 
{
    justify-content: center;
    align-items: center;
}
.product__item 
{
    max-width: 250px;
}
.product__item-bx 
{
    padding: 15px;
}
.product__item--two-cl 
{
    width: var(--two-cl);
}
.product__item--three-cl 
{
    width: var(--three-cl);
}
.product__item--four-cl 
{
    width: var(--four-cl);
}
.product__img {
}
.product__name {
}
.product__cost
{
    display: block;
    color: #e10000;
}
/*#endregion*/

.contact 
{
    padding: var(--px35);
    background: url(../img/form-bg.jpg) no-repeat center center / cover;
    
    
}
.contact__wrapper
{
    max-width: 500px;
    margin: 0 auto;
    padding: var(--px65);
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
}
.contact__title
{
    margin-bottom: 5;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    
}
.contact__sub-title
{
    margin-bottom: var(--px35);
}
.contact__link 
{
    color: var(--white);
    font-size: 22px;
    line-height: 1.4;
    text-decoration: none;
}
.contact__link:hover
{
    color: var(--yellow);
}

.contact__link--mobile {
}
.contact__link--email {
}
.form-bx
{
    position: relative;
    padding: var(--px35);
    background: url(../img/bg-form.jpg) no-repeat center center / cover;
    
    
}

.form-bx__wrapper
{
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: var(--px65);
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}
.form-bx__title 
{
    margin-bottom: 5;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    
}
.form-bx__sub-title
{
    margin-bottom: var(--px35);
}
.form-bx__form 
{
    display: flex;
    flex-direction: column;
}
.form-bx__field 
{
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--white);
    transition: .3s;
    outline: none;
}
.form-bx__field:active,
.form-bx__field:focus
{
    border: 0;
    border-bottom: 1px solid var(--yellow);
    outline: none;
} 
.form-bx__btn {
}

::-webkit-input-placeholder {color:#fff;}
::-moz-placeholder          {color:#fff;}
:-moz-placeholder           {color:#fff;}
:-ms-input-placeholder      {color:#fff;}


/*#endregion*/

/*#region Преимущества*/



/*#endregion*/

/*#region Портфолио*/
.portfolio 
{
    
}
.portfolio__list 
{
    display: flex;
    justify-content: space-between;
    flex-direction: var(--flex-direction);
    flex-wrap: wrap;
}
.portfolio__item 
{
    width: var(--three-cl);
    padding: 5px;
}
.portfolio__wrapper 
{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #000;
    background: #efeff9;
    
    
}
.portfolio__wrapper:hover,
.portfolio__wrapper:hover .portfolio__info-bx 
{
    background: var(--yellow);
}
.porfolio__img 
{
    width: 100%;
    object-fit: cover;
}
.portfolio__info-bx 
{
    padding: 10px;
    background: var(--gray);
    transition: all .3s;
}
.porfolio__time 
{
    margin-bottom: 10px;
    font-size: 14px;
}
.porfolio__item-title 
{
    padding: 10px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}
.portfolio__char-list {
}
.portfolio__char-item 
{
    font-size: 14px;
}
.portfolio__btn
{
    margin-top: var(--px35);
    text-align: center;
}
.portfolio__btn-link
{
    padding: 20px;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 22px;
    
}
.portfolio__btn-link:hover
{
    opacity: 0.7;
    background: var(--gray);
}
/*#endregion*/



/*#region Подвал*/
.footer 
{
    padding: 15px 0;
}
.footer__copyright 
{
    color: var(--black);
    text-align: center;
}
/*#endregion*/


.overlay {

	opacity: 0;
	visibility: hidden;
	
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .5);
	z-index: 20;
	transition: .3s all;
 }
 
 

 
 .modal {
	

	opacity: 0;
	visibility: hidden;
	width: 100%;
	max-width: 400px;
	max-height: 400px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 150;
	overflow: auto;
	box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2); 
	text-align: left;
	padding: 30px;
	border-radius: 3px;
	background-color: #333;
	transition: 0.3s all;
 }
 
  .modal.active,
 .overlay.active{
	opacity: 1;
	visibility: visible;
 }
 
 
 .modal__cross {
	width: 15px;
	height: 15px;
	position: absolute;
	top: 20px;
	right: 20px;
	fill: var(--yellow);
	cursor: pointer;
 }
 .modal__cross:hover
 {
    fill: var(--white);
 }

 .modal-bx
{
    text-align: center;
    color: var(--white);
}
.modal-bx__title 
{
    margin-bottom: 5px;
    font-size: 22px;
    font-weight: 600;
    
}
.modal-bx__sub-title
{
    font-size: 14px;
    margin-bottom: 15px;
}
.modal-bx__form 
{
    display: flex;
    flex-direction: column;
}
.modal-bx__field 
{
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--white);
    transition: .3s;
    outline: none;
}
.modal__field:active,
.modal__field:focus
{
    border: 0;
    border-bottom: 1px solid var(--yellow);
    outline: none;
} 
.modal-bx__btn {
}
@media (max-width: 767px)
{
    .container
    {
        padding: 0 15px;
    }
    .title--h1
    {
        font-size: 26px;
    }
    .header__item
    {
        text-align: center;
    }
    .first-bx__wrapper
    {
        align-items: center;
        padding: 0 15px;
        margin-top: 65px;
    }
    .adve__list 
    {
       align-items: center;
    }
    .adve__item
    {
        margin-bottom: 10px;
    } 
    .adve__item:last-child
    {
        margin-bottom: 0;
    } 
}