:root {
  --bg: #272A24;
  --text-color: #ffffff;
  --yellow: #FDDE76;
  --dark-yellow: #FFBB01;
  --grey: #F8F8F8;
  --dark-grey: #949494;
  --brown: #B68500;
}

/* -=- 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;
}

/* -=- Global Styles -=- */
html,
body {
  background: var(--bg);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--text-color);
}

h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

h2 {
  font-size: 36px;
  margin-bottom: 80px;
  text-align: center;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

h4 {
  font-size: 22px;
  margin-bottom: 16px;
}

.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;
}

.header {
  height: 128px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 56px;
}

.social ul {
  display: flex;
}

.social ul li {
  margin: 0 8px;
}

.hero_text {
  width: calc(100% /12 * 6 - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero_text p {
  margin-bottom: 16px;
}



.hero_img {
  width: calc(100% /12 * 5 - 32px);

}

.hero_img img {
  width: 368px;
  height: 368px;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--text-color);
  margin: 0 auto;
  display: block;
}

.freelancer {
  font-size: 24px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.button a,
.button input {
  background: var(--yellow);
  background: linear-gradient(180deg, rgba(253, 222, 118, 1) 0%, rgba(255, 187, 1, 1) 50%);
  width: 100%;
  height: 64px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  color: var(--bg);
  box-shadow: 0px 4px 0px 0px var(--brown);
  border: none;
  cursor: pointer;
}

.button a {
  width: 284px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 32px;

}

#benefits {
  margin: 64px 0;
}

.benefit {
  width: calc(100% / 12 * 4 - 32px);
  margin-bottom: 64px;
}

.benefit img {
  margin-bottom: 22px;
}

.work {
  width: calc(100% / 12 * 4 - 32px);
  margin-bottom: 32px;
  position: relative;
}

.work::before {
  content: "";
  background: rgba(255, 196, 0, 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 {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.work_link:hover {
  opacity: 1;
}

.work_link a {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 8px;
}

.fullscreen {
  background: url("../img/fullscreen.svg") center center no-repeat;
}

.link {
  background: url("../img/link.svg") center center no-repeat;
}

#reviews {
  margin: 64px 0;
}

.review_img {
  width: calc(100% / 12 * 5 - 32px);
  text-align: center;
}

.review_img img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.review_text {
  width: calc(100% / 12 * 7 - 32px);

}

.review_text p {
  margin-bottom: 16px;
}

#contacts {
  margin-bottom: 56px;
}

.form {
  width: calc(100% / 12 * 5 - 32px);
  background: var(--text-color);
  border-radius: 4px;
  padding: 32px;
}


.form h3 {
  font-size: 24px;
  color: var(--bg);
  margin-bottom: 16px;
  text-align: center;
}

.input_field {
  margin-bottom: 16px;
}

.input_field input {
  width: 100%;
  height: 64px;
  border-radius: 4px;
  padding: 0 16px 0 48px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px 0px rgba(199, 199, 199, 0.25) inset;
  border: none;
  outline-color: var(--dark-yellow);
}

.input_field.name input {
  background: url("../img/user-icon.svg") 20px center no-repeat;
}

.input_field.phone input {
  background: url("../img/phone-icon.svg") 20px center no-repeat;
}

.contact {
  width: calc(100% / 12 * 6 - 32px);

}

.tel,
.email {
  width: calc(100% / 12 * 6 - 32px);
  margin-bottom: 54px;
}

.tel {
  width: calc(100% / 12 * 5 - 32px);
}

.email {
  width: calc(100% / 12 * 7 - 32px);
}

.contact a {
  text-decoration: none;
  color: var(--text-color);

}

.social_links {
  width: calc(100% - 32px);
  margin-bottom: 54px;
}

#footer {
  background: #161815;
}

.copyright {
  width: calc(100% - 32px);
  padding: 64px 0;
  text-align: center;
}

@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;
    margin-bottom: 32px;
  }

  .button a {
    margin: 0 auto;
  }

  .benefit,
  .work {
    width: calc(100% /12 * 6 - 32px);

  }

  .review_img,
  .review_text {
    width: calc(100% - 32px);

  }

  .review_img {
    margin-bottom: 32px;
  }

  .form {
    width: calc(100% / 12 *10 - 32px);
    margin-bottom: 32px;
  }

  .center {
    justify-content: center;
  }

  .contact {
    width: calc(100% / 12 *10 - 32px);
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 575px) {
  .hero_img img {
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 42px;
  }

  .benefit,
  .work {
    width: calc(100% - 32px);
    text-align: center;
  }

  .review_img img {
    width: 280px;
    height: 280px;
  }

  .form,
  .contact {
    width: calc(100% - 32px);
  }

  .tel,
  .email {
    width: calc(100% - 32px);
    margin-bottom: 16px;
  }

  .contact .social {
    margin-bottom: 16px;
  }

  

}