:root {
    --text-color: #ffffff;
    --bg: #20202D;
    --yellow: #FFBB01;
    --ligyt-yellow: #FDDE76;
    --brown: #B68500;
    --gray: #F8F8F8;
}


/* -=- 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(--text-color);
}


h1 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 24px;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 80px;
}

h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -16px;
}

.between{
  justify-content: space-between;
}

.col {
  margin: 0 16px;
}

.header {
  height: 126px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 56px;
}

.social {
  display: flex;
}

.social a{
  margin: 0 8px;
}

#hero {
  margin-bottom: 56px;
}

.hero_text {
  width: calc(50% - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero_img{
width: calc( 100% /12 * 5 - 32px);
}

.freelancer {
  font-size: 24px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.hero_text p {
  margin-bottom: 36px;
  
}

.button a, .button input {
  background: rgb(255,187,1);
  background: linear-gradient(0deg, rgba(255,187,1,1) 0%, rgba(253,222,118,1) 100%);
  width: 100%;
  height: 64px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  border: none;
}


.button a {
  width: 264px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  
}

.hero_img img {
      width: 354px;
      height: 354px;
      border-radius: 50%;
      border: 10px solid var(--text-color);


}

.benefit {
  width: calc( 100% / 3 - 32px);
  margin-bottom: 64px;
}

.benefit img {
  margin-bottom: 24px;
}

.work{
  width: calc(100% / 3 - 32px);
  margin-bottom: 32px;
  position: relative;
}

.work::before {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(255, 187, 1, 0.66);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0; /*prozrachnost*/


}

.work:hover::before {
  opacity: 1;
  transition: all 0.4s ease-in-out;
}
.work_link {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}


.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; 
}

.work_link:hover {
  opacity: 1;
}

.review {
  width: calc(100% - 32px);
  margin-bottom: 64px;
}

.review_img {
  width: calc(100% / 12 * 5 - 32px);
  text-align: center;
}

.review_img img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 32px;
}

.review_text {
  width: calc(100% / 12 * 7 - 32px);
}

.review_text p {
  margin-bottom: 16px;
}

.form {
  width: calc(100% / 12 * 5  - 32px);
  background: var(--text-color);
  border-radius: 8px;
  box-shadow: -5px 5px 0px 0px var(--yellow);
  padding: 32px;
  box-sizing: border-box;
}

.form h3 {
  font-size: 18px;
  color: var(--bg);
  text-align: center;
}

.input_field {
  margin-bottom: 16px;

}

.input_field input{
  width: 100%;
  height: 64px;
  border-radius: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  border: none;
  box-shadow: inset 5px 5px 5px 0px rgba(153,153,153,1);
  background: var(--gray);
  outline-color: var(--yellow);
}

.phone, .email {
  width: calc(50% - 32px);
  margin-bottom: 56px;
}

.contact {
  width: calc(100% / 12 * 6 - 32px);
}

.contact a {
  color: var(--text-color);
  text-decoration: none;
}

.social_links {
  width: calc(100% - 32px);
  margin-bottom: 56px;
}

#policy {
  width: 576px;
}

#policy p {
  margin-bottom: 16px;
}

#footer {
  padding: 64px;
  text-align: center;
}

.copyright {
  width: calc(100% - 32px);
}

@media screen and (max-width: 959px) { /*от 353 до 768*/
  .header {
    justify-content: center;
  }
.hero_img {
  width: calc(100% - 32px);
  order: -1;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.hero_text {
  width: calc(100% - 32px);
  text-align: center;
}
.hero_text .button a {
  margin: 0 auto;
}
h2 {
  text-align: center;
}
.work {
  width: calc(50% - 32px);
}
.review_img {
  width: calc(100% - 32px);
  text-align: center;
  margin-bottom: 32px;
}
.review_text {
  width: calc(100% - 32px);
}
.form {
  width: calc(100% / 12 * 10 - 32px);
  margin-bottom: 32px;
}
.center {
  justify-content: center;
}
.contact {
  width: calc(100% /12 * 10 - 32px);
}

}

@media screen and (max-width: 767px){ /*от 767 до 576*/
  .benefit {
    width: calc(50% - 32px);
  }
}  

@media screen and (max-width: 767px){ /*от 575 до 420*/
  .hero_img img {
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 40px;
  }

  .benefit, .work {
    width: calc(100% - 32px );
    text-align: center;
  }

  .form, .contact {
    width: calc(100% - 32px);
  }

  .phone .email {
    width: calc(100% - 32px);
    margin-bottom: 32px;
  }

 .contact .social {
  margin-bottom: 32px;
}
