:root {
  --text-color: #ffffff;
  --bg: #20202D;
  --yellow: #FFBB01;
  --light-yellow: #FDDE76;
  --grey: #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-size: 16px;
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
}

h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

h2 {
  font-size: 36px;
  margin-bottom: 80px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;

}

h4 {
  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 {
  height: 126px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 56px;
}

.social a {
  margin: 0 5px;

}

.social {
  display: flex;
}

.hero_text {
  width: calc(100% / 12 * 6 - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero_text p {
  margin-bottom: 20px;
}

#hero {
  margin-bottom: 56px;
}

.hero_img {
  width: calc(100% / 12 * 5 - 32px);
}

.freelance {
  font-style: 24px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.button a,
.button input {
  background: #FDDE76;
  background: linear-gradient(180deg, rgba(253, 222, 118, 1) 0%, rgba(255, 187, 1, 1) 50%);
  border-radius: 8px;
  width: 100%;
  height: 64px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--bg);
  border: none;
  cursor: pointer;


}

.button a {
  width: 284px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
}

.hero_img img {
  width: 388px;
  height: 388px;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--text-color);
  box-shadow: 10px 10px 0px 0px rgb(0, 0, 0);
}

.benefit {
  width: calc(100% / 3 - 32px);
  margin-bottom: 64px;
}

.benefit img {
  margin-bottom: 22px;
}

.work {
  width: calc(100% / 3 - 32px);
  margin-bottom: 32px;
  position: relative;
}

.work::before {
  content: "";
  background: rgba(255, 187, 1, 0.66);
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.work:hover::before {
  opacity: 1;
}

.work_link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.work_link a {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 8px;

}

.work_link:hover {
  opacity: 1;
}

.link {
  background: url("../img/link.svg") center center no-repeat;
}

.fullscreen {
  background: url("../img/fullscreen.svg") center center no-repeat;
}

.review {
  width: calc(100% - 32px);
}

.review_img {
  width: calc(100% /12 * 5 - 32px);
  text-align: center;

}

.review_img img {
  width: 300px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.review_text {
  width: calc(100% / 12 * 7 - 32px);
}

#contacts {

  padding: 64px 0;
}

.form {
  width: calc(100% / 12 * 5 - 32px);
  background: var(--text-color);
  border-radius: 8px;
  padding: 32px;

}

.form h3 {
  color: var(--bg);
  font-size: 18px;
  text-align: center;
  margin-bottom: 32px;

}

.input_field,
.text_field {
  margin-bottom: 16px;


}

.input_field input {
  width: 100%;
  height: 64px;
  background: var(--grey);
  border-radius: 8px;
  border: none;
  padding: 0 16px;
  box-sizing: border-box;

  box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, 0.30) inset;
  outline-color: var(--light-yellow);


}

.text_field textarea {
  width: 100%;
  height: 200px;
  background: var(--grey);
  border: none;
  padding: 16px;
  box-sizing: border-box;
  resize: none;
  outline-color: var(--yellow);
  box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, 0.30) inset;

}

.contact {
  width: calc(100% / 12 * 6 - 32px);
}

.contact a {
  color: var(--text-color);
  text-decoration: none;
}

.phone,
.email {
  width: calc(100% / 12 * 6 - 32px);
  margin-bottom: 56px;
}

.social_links {
  width: calc(100% - 32px);
  margin-bottom: 56px;
}

.policy a {
  cursor: pointer;
  text-decoration: underline;
}

#policy {
  width: 576px;
  display: none;
}

#policy ul {
  margin-left: 32px;
  margin-bottom: 32px;


}

#policy ul li {
  list-style: disc;
  margin-bottom: 8px;
}

#footer {
  background: #0c0c1e;
  padding: 56px 0;

}

.copyright {
  width: calc(100% - 32px);
  text-align: center;
}


@media screen and (max-width: 991px) {
  .hero_img img {
    width: 320px;
    height: 320px;

  }

}

@media screen and (max-width: 959px) {
  .header {
    justify-content: center;

  }

  .hero_text {
    width: calc(100% - 32px); 
    text-align: center;
  }
  .hero_img {
    width: calc(100% - 32px);
    order: -1;
    text-align: center;
    margin-bottom: 32px;
  }
  .button {
    margin: 0 auto;
  }
  .work {
  width: calc(100% / 2 - 32px);
  }
  .review_img {
    width: calc(100% - 32px);
    text-align: center;
    margin-bottom: 32px;
  }
  .review_text {
    width: calc(100% - 32px);
  }
  h2 {
    text-align: center;
  }
 .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(100% / 2 - 32px);
 
}
}
@media screen and (max-width: 575px) {
  .benefit, .work {
    width: calc(100%);
    text-align: center;
   
  }
  .form, .contact {
    width: calc(100%);
}
.contact  .social {
  margin-bottom: 32px;
}
}