
:root {
    --bg: #272A24;
    --yellow: #FFBB01;
    --light-yellow: #FDDE76;
    --dark-yellow: #B68500;
    --white: #ffffff;
}




/* reset 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(--bg);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--white);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}


.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.col {
    margin: 0 16px;
}

.between {
    justify-content: space-between;
}

h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 84px;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}
h4 {
    font-size: 24px;
    margin-bottom: 16px;
}

.header {
    height: 124px;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 56px;
}

.social {
    display: flex;
    flex-wrap: wrap;
}

.social a {
    margin: 0 8px;
}

.hero {
    margin-bottom: 56px;
}

.hero_text {
    width: calc(50% - 32px);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

.hero_text p {
 line-height: 1.6em;
 margin-bottom: 24px;
}

.hero_img {
    width: calc(100% / 12 * 5 - 32px);
    text-align: center;
}

.hero_img img {
    width: 390px;
    height: 390px;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid var(--white);
}

.freelacer {
    font-size: 24px;
    color: var(--yellow);
    margin-bottom: 16px;
}
.button input, .button a {
    width: 100%;
    height: 64px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--light-yellow) 0%, var(--yellow) 100%);
    box-shadow: 0px 4px 0px 0px var(--dark-yellow);
    color: var(--bg);
    font-weight: 600;
    border:none;
    
}

.button a {
    width: 284px;
    display: flex;
    justify-content: center;
    align-items: center;



text-decoration: none;
color: var(--bg);
font-weight: 600;
}

#beenefits {
    margin-bottom: 40px;
}

.benefit {
    width: calc(100% / 3 - 32px);
    margin-bottom: 64px;
}

.benefit img {
    margin-bottom: 24px;

}

.work {
    width: calc(100% / 3 - 32px);
    position: relative;
    margin-bottom: 32px;

}

.work::before {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    background: rgba(255, 196, 0, 0.66);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.work:hover::before {
 opacity: 1;
}

.work_link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.work:hover .work_link {
    opacity: 1;
}

.work_link a {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 8px;

}

.work_link .fullscreen {
    background: url("../img/fullscreen.svg") center center no-repeat;
}

.work_link .link {
    background: url("../img/link.svg") center center no-repeat;
}

.review {
    width: calc(100% - 32px);
    margin-bottom: 64px;
}

.review_img {
    width: calc(100% / 3 - 32px);
    text-align: center;
}

.review_img img {
    border-radius: 50%;
    margin-bottom: 32px;
}

.review_text {
    width: calc(100% / 12 * 7 - 32px);
}

.review_text p {
    margin-bottom: 16px;
}

.contact_form {
    width: calc(100% / 12 * 5 - 32px);
    background: var(--white);
    border-radius: 4%;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: -4px 4px 0 0 var(--yellow);
}

.contact_form h3 {
    font-size: 18px;
    text-align: center;
    color: var(--bg);
    margin-bottom: 24px;
}

.input_flield {
    margin-bottom: 16px;
}

.input_flield input {
    width: 100%;
    height: 64px;
    border-radius: 4%;
    background: #F8F8F8;
    box-shadow: 0px 3px 10px 0px rgba(199, 199, 199, 0.25) inset;
    border: none;
    padding: 0 16px 0 48px;
    box-sizing: border-box;
}
.name input {
    background: url("../img/user-icon.svg") 16px center no-repeat;
}

.phone input {
    background: url("../img/phone-icon.svg") 16px center no-repeat;
}

.contact_text {
    width: calc(50% - 32px);
}
.contact_text a {
    text-decoration: none;
    color: var(--white);
}

.contact_phone, .contact_email {
    width: calc(50% - 32px);
    margin-bottom: 64px;
}

.contact_social {
    width: calc(100% - 32px);
    margin-bottom: 64px;
}

.policy a {
    text-decoration: underline;
}

#footer {
    padding: 64px 0;
}

@media screen and (max-width: 959px) { /* от 959 до 768 */
    .header {
        justify-content: center;
    }
    .hero_img {
        order: -1;
        width: calc(100% - 32px);
        margin-bottom: 32px;
    }
    
    .hero_text {
        width: calc(100% - 32px);
        text-align: center;
    }

    .button a {
        margin: 0 auto;
    }
    
    .benefit, .work {
        width: calc(50% - 32px);
    }

    .contact_form {
        width: calc(100% / 12 * 10 - 32px);
        margin-bottom: 32px;
    }

    .center {
        justify-content: center;
    }

    .contact_text {
        width: calc(100% / 12 * 10 - 32px);
    }

    .copyright {
        width: calc(100% - 32px);
        text-align: center;
    }
}


@media screen and (max-width: 767px) { /* от 767 до 576 */
    .hero_img img {
        width: 300px;
        height: 300px;
    }
    h1 {
        font-size: 40px;
    }

    .benefit {
        width: calc(100% - 32px);
        text-align: center;
    }
    .work {
        width: calc(100% - 32px);
    }

    .review_img {
        width: calc(100% - 32px);
        margin-bottom: 32px;
    }
    .review_img img {
        width: 300px;
        height: 300px;
    }
    .review_text {
        width: calc(100% - 32px);
    }
}

@media screen and (max-width: 575px) { /* от 575 до 420 */
    .contact_form, .contact_text {
        width: calc(100% - 32px) 
    }
    .contact_text, .social {
        width: calc(100% - 32px);
        margin-bottom: 32px;
    }
}



