:root {
    --white: #ffffff;
    --text-color: #2E2E30;
    --violet: #404BAF;
    --energetic: #E68E3C;
    --grey: #D6D2C9;
    --light-grey: #F8F8F8;
}

body,
div,
dl,
dt,
dd,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td,
menu {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset,
img,
abbr {
    border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
th,
var {
    font-style: normal;
    font-weight: normal;
}

ul li {
    list-style: none;
}

caption,
th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
}

sup {
    vertical-align: text-top;
}

sub {
    vertical-align: text-bottom;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

legend {
    color: #000;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
main {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}


html, body {
    background: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-color);
}

h1 {
    font-size: 50px;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    margin-bottom: 84px;
    text-align: center;
}

h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.between {
    justify-content: space-between;
}

.col {
    margin: 0 16px;
}

#header {
    margin-bottom: 56px;
}

.menu {
    width: calc(100% - 32px);
}

.menu ul {
    height: 60px;
    justify-content: center;
    align-items: center;
}

.menu a {
    color: var(--text-color);
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}


.menu a:hover {
    width: 100%;
    color: var(--violet);    
}


.hero_text {
    width: calc(50% - 32px);
    height: 528px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hero_text p {
    margin-bottom: 24px;
    line-height: 1.6em;
}

.profession {
    font-size: 24px;
    margin-bottom: 24px;
}


.button input, .button a {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--white);
    border: none; /* убирает оконтовку */
    cursor: pointer;
    background: linear-gradient(89.84deg, var(--energetic) 0.14%, var(--violet) 64.08%, var(--violet) 101.00%);
    transition: 1s;
}

.button a {
    width: 234px;
    display: block;
    line-height: 3.4em;
    text-decoration: none;
    text-align: center;
}

.button a:hover, .button input:hover {
    --x: 100%;
}


.hero_img {
    width: calc(50% - 32px);
    text-align: center;
    position: relative;
}

.hero_img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin-top: -18px;
}
  

.video {
    background: url(../images/youtube.svg) center center / 80px 80px no-repeat;
    display: block;
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

#benefits {
    background: #ffffff linear-gradient(180deg, #F5F6F8 0%, rgba(245, 246, 248, 0) 100%);
    padding: 64px 0 0;
}


.benefit {
    width: calc(100% / 3 - 32px);
    margin-bottom: 64px;
}

.benefit img {
    margin-bottom: 24px;
}

#work {
    margin-bottom: 32px;
}

.work {
    width: calc(100% / 3 - 32px);
    /* height: 280px; */
    position: relative;
    margin-bottom: 32px;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.work::before {
    content: "";
    background: rgba(77, 121, 161, 0.70);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    opacity: 0;
}

.work:hover:before {
    opacity: 1;
}

.work_link {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0; /* прозрачность */
}

.work_link:hover {
    opacity: 1;
}

.work_link a {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
}


.work_link .fullscreen {
    background: var(--white) url('../images/fullscreen.svg') center center no-repeat;
}

.work_link .link {
    background: var(--white) url('../images/link.svg') center center no-repeat;
}

.review {
    width: calc(100% - 32px);
    margin-bottom: 64px;
}

.review_img {
    width: calc(100% / 12 * 4 - 32px);
    text-align: center;
}

.review_img h3 {
    margin-bottom: 8px;
}

.review_img img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin-bottom: 24px;
}


.review_text {
    width: calc(100% / 12 * 8 - 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review_text p {
    line-height: 1.6em;
}

#footer {
    background: var(--light-grey);
    padding: 64px 0 0;
}


.input_field, .text_field {
    margin-bottom: 16px
}

.input_field input, .text_field textarea {
    width: 100%;
    height: 64px;
    background: var(--light-grey);
    box-shadow: inset 0px 3px 10px rgba(199, 199, 199, 0.25);
    border: none;
    border-radius: 32px;
    padding: 0 32px;
    box-sizing: border-box;
    outline-color: var(--violet);
}


.text_field textarea {
    height: 150px;
    border-radius: 32px;
    padding: 32px;
    resize: none;
}

.contact {
    width: calc(50% - 32px);
}


.contact a {
    color: var(--text-color);
    text-decoration: none;
}

.email {
    width: calc(50% - 32px);
    margin-bottom: 56px;
}

.social_link {
    width: calc(100% - 32px);
    margin-bottom: 40px;
}

.social_link a {
    padding-right: 24px;
}

.icons a {
    padding-right: 22px;
}

.icons img { 
    width: 24px;
    margin-bottom: 40px;
}

#policy {
    display: none;
}

#policy p {
    margin-bottom: 24px;
}

#content_security {
    display: block;
    background: var(--violet);
    padding: 30px 0;    
    font-size: 16px;
    color: #ffffff;
    text-align: center;
}   

.content_security {
    width: calc(100% - 32px)
}

#form{
    display: none;
}

/*

1200px
992px
768px
480px
320px

*/

@media screen and (max-width: 992px) {
    h1 {
        font-size: 44px;
    }
}


@media screen and (max-width: 991px) {
    .hero_text {
        width: calc(100% - 32px);
        text-align: center;
        height: 100%;
        margin-bottom: 32px;
    }

    .hero_text .button a {
        margin: 0 auto;
    }

    .hero_img {
        width: calc(100% - 32px);
        text-align: center;
    }

    .benefit {
        width: calc(50% - 32px);
    }

    .work {
        width: calc(50% - 32px); 
    }

    .review_img {
        width: calc(100% - 32px); 
        margin-bottom: 32px;
    }

    .review_text {
        width: calc(100% - 32px); 
    }

    .form {
        width: calc(100% - 32px); 
        margin-bottom: 56px;
    }
    .contact {
        width: calc(100% - 32px); 
    }
}

.mobile_button, .mobile_menu {
     display: none;
}

@media screen and (max-width: 767px) {
    .menu {
        display: none;
    }

    .mobile_button {
        background: rgba(0, 0, 0, 0.9) url('../images/burger.svg') center center no-repeat;
        display: block;
        border: none;
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 50px;
        z-index: 2;
    }

    .mobile_button.active {
        background: rgba(0, 0, 0, 0.9) url('../images/close.svg') center center no-repeat;
    }

    .mobile_menu.active {
        background: rgba(0, 0, 0, 0.9);
        padding: 50px;
        box-sizing: border-box;
        width: 320px;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 1;
    }

    .mobile_menu a {
        display: block;
        height: 50px;
        font-size: 16px;
        text-decoration: none;
        text-transform: uppercase;
        line-height: 3.4em;
        color: var(--white);
        border-bottom: 1px solid var(--text-color);
    }
}

@media screen and (max-width: 575px) {
    .benefit {
        width: calc(100% - 32px);
        text-align: center;
    }
    .work {
        width: calc(100% - 32px);
    }
    .social_link a {
        display: inline-block;
        margin-bottom: 16px;
    }
    .icons {
        width: calc(100% - 32px);
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 419px) {
    .form {
        padding: 24px;
    }
    .tel, .email {
        width: calc(100% - 32px);
    }
    h1 {
        font-size: 36px;
    }
}

