:root {
  --black: #000000;
  --orange: #b38405;
  --light-yellow: #FDDE76;
  --yellow: #FFBB01;
  --white: #ffffff;
}


/* RESERT CSS */
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(--black);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--white);
}

h1 {
    font-size: 50px;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    margin-bottom: 80px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.col {
    margin: 0 16px;
    
}

.between {
    justify-content: space-between;
}

.header {
    justify-content: flex-end;
}

.social {
    display: flex;
    height: 124px;
    flex-wrap: wrap;
    align-items: center;

}

.social a {
    margin: 0 8px;
}

.hero {
    height: 592px;
    align-items: center;
}

.hero_text {
    width: calc(50% - 32px);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    height: 592px;
}

.hero_text p {
    margin-bottom: 24px;
}

.freelancer {
    font-size: 24px;
    color: var(--orange);
    margin-bottom: 16px;
}

.button a, .button input {
    background: linear-gradient(180deg, var(--light-yellow) 0%, var(--yellow) 100%);
    box-shadow: 0px 4px 0px 0px var(--orange);
    border-radius: 4px;
    height: 64px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: var(--black);
    cursor: pointer;
    width: 100%;
    border: none;
}

.button a  {
   
    display: flex;
    width: 284px;   
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-decoration: none;       
}

.hero_img {
    width: calc(50% - 32px);
    text-align: center;

}

.hero_img img {
    width: 368px;
    height: 368px;
    border-radius: 50%;
    border: 10px solid var(--white);
    box-sizing: border-box;
}

.benefit {
    width: calc(100% / 3 - 32px);
    margin-bottom: 64px;
}

.benefit img {
    margin-bottom: 24px;
}

.benefit h3 {
    margin-bottom: 16px;
}

.work {
    width: calc(100% / 3 - 32px);
    position: relative;
    cursor: pointer;
    margin-bottom: 32px;
    
}

.work::before {
    content: "";
    background: rgba(253, 222, 118, 0.66);
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.work:hover::before {
    opacity: 1;
}
    
    .work a {
        background: var(--black);
        width: 64px;
        height: 64px;
        display: block;
        border-radius: 50%;
        margin: 0 8px;
    }

    .work a.link {
        background: var(--black) url(../img/link.svg) center center no-repeat; 
    }

    .work a.fullscreen {
        background: var(--black) url(../img/fullscreen.svg)center center no-repeat;
    }

    .links {
        position: absolute;
        left: 0;
        top: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.4s ease-in-out;
    }

    .work:hover .links {
        opacity: 1;
    }

    #reviews {
       padding: 64px 0;
    } 

    .reivew {
        width: calc(100% - 32px);
    }

    .reviews_img {
      width: calc(100% / 12 * 4 - 32px);
      text-align: center;
    }

    .reviews_img img {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        margin: 0 auto 16px;
        display: block;
    }

    .review_text {
      width: calc(100% / 12 * 8 - 32px);
    }

    .review_text p {
      margin-bottom: 8px;
    }

    .contacts_form {
        background: var(--white);
        width: calc(100% / 12 * 5 - 32px);
        border-radius: 4px;
        filter: drop-shadow(-5px 5px 0px var(--yellow));
        padding: 48px;
        box-sizing: border-box;
    }

    .contacts_form h3 {
        font-size: 18px;
        color: var(--black);
        margin-bottom: 24px;
        text-align: center;
    }

    .input_field {
      margin-bottom: 16px;
    }

    .input_field input {
        width: 100%;
        height: 64px;
        border-radius: 4px;
        box-shadow: 0px 3px 10px 0px rgba(199, 199, 199, 0.25) inset;
        border: none;
        background: #F8F8F8;
        padding-left: 48px;
        box-sizing: border-box;
    }

    .yourname input {
       background: url(../img/user-icon.svg) 20px 24px no-repeat;
    }

    .yourtel input {
        background: url(../img/phone-icon.svg) 20px 24px no-repeat;
    }

    .contact_text {
        width: calc(100% / 12 * 6 - 32px);
    }

    .contact_text h4 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 16px;

    }

    .contact_text a {
        text-decoration: none;
        color: var(--white);
    }

    .phone, .email {
        width: calc(100% / 12 * 6 - 32px);
        margin-bottom: 56px;
    }

    .social_links {
        width: calc(100% - 32px);
    }

    .social_links a {
        padding-right: 32px;
    }

    .contact_text .social {
        width: calc(100% - 32px);
    }

    .policy a {
        color: #A5A5A5;
        text-decoration: underline;
    }

    .copyright {
        width: calc(100% - 32px);
        padding: 64px;
        text-align: center;
    }

    #policy {
        display: none;
        color: var(--black);
    }

    #policy h2 {
        font-size: 18px;
        margin-bottom: 24px;
    }

    #policy p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    @media screen and (max-width: 959px) {
        .header {
            justify-content: center;
        }

        .hero {
            height: 100%;
        }

        .hero_text {
        width: calc(100% - 32px);
        text-align: center;
        }

        .hero_img {
            width: calc(100% - 32px);
            order: -1;
            margin-bottom: 32px;
        }

        .button a {
            margin: 0 auto 64px;
        }

        .benefit {
            width: calc(50% - 32px);
        }

        .work {
            width: calc(50% - 32px);
        }

        .reviews_img {
            width: calc(100% - 32px);
            margin-bottom: 32px;
        }

        .review_text {
            width: calc(100% - 32px);
        }

       .contacts_form {
        width: calc(100% - 32px);
        margin-bottom: 56px;
       }

       .contact_text {
        width: calc(100% - 32px);
       }

    }

    @media screen and (max-width: 767px) {
        .benefit {
            width: calc(100% - 32px);
            text-align: center;
        }

        .work {
            width: calc(100% - 32px);
        }
    }


    @media screen and (max-width: 419px) {
         .hero_img img {
            width: 300px;
            height: 300px;
         }

         h1 {
            font-size: 36px;
         }

         .phone, .email {
            width: calc(100% - 32px);
         }
    }