:root {
    --yellow: #FFBB01;
    --light-yellow: #FDDE76;
    --dark-yellow-border: #B68500;
    --white: #ffffff;
    --gray: #f8f8f8;
    --bg: hwb(278 0% 32%);
}

/* -=- 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 {
    min-height: 100vh;
    background: rgb(2, 1, 27) no-repeat;
    background-size: cover;
    background-position: center;
    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: 40px;
  margin-bottom: 24px;

}

h2 {
  font-size: 36px;
  margin-bottom: 80px;
  text-align: center;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px; 
  
}

.header {
  height: 118px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 64px;
}

.social {
  display: flex;

}

.social a {
  margin: 0 10px;

}

#hero {
  margin-bottom: 154px;
}

.hero_text {
  width: calc(50% - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero_text p {
  line-height: 1.6em;
  margin-bottom: 16px;
}

.freelancer {
  font-style: 24px;
  color: var(--yellow);
  margin-bottom: 16px;

}

.button a, .button input {
  width: 100%;
  height: 64px;

  background: linear-gradient(180deg, var(--light-yellow) 0%, var(--yellow) 100%);
  box-shadow: 0 4px 0 0 var(--dark-yellow-border);
  border-radius: 8px;

  font-size: 12px;
  font-weight: 600;

  text-transform: uppercase;
  color: var(--bg);
  border: none;
  cursor: pointer;

}

.button a {
  width: 284px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  
}

.hero_img {
  width: calc(100% / 12 * 5 - 32px);
  text-align: center;
}

.hero_img img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-sizing: border-box;
}

.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(187, 191, 238, 0.60);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.work:hover::before {
  opacity: 1;
}

.work_link {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.work_link:hover {
  opacity: 1;
}

.work_link a {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 8px;
}

.fullscreen {
  background: url('../img/fullscreen.svg') no-repeat;
}

.link {
  background: url('../img/link.svg') no-repeat;
}

.review {
  width: calc(100% - 32px);
  margin-bottom: 64px;

}

.review_img {
  width: calc(100% / 3 - 32px);
  text-align: center;
}

.review_img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin-bottom: 32px;
  
}

.review_text {
  width: calc(100% / 12 * 8 - 32px);

}

.review_text h4{
  font-size: 24px;
  margin-bottom: 32px;
}

.review_text p {
  margin-bottom: 16px;
}

.form {
  width: calc(100% / 12 * 5 - 32px);
  background: white;
  color: var(--bg);
  padding: 40px;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: -5px 5px 0 0 var(--yellow);
  margin-bottom: 32px;
} 

.form h3 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 24px;
  color: #000;
  
}

.input_field {
  margin-bottom: 16px;
}

.input_field input {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  border: black 1px solid;
  box-shadow: 0 4px 10px 0 rgba(199, 199, 199, 0.25) inset;
  padding: 0 16px 0 48px;
  box-sizing: border-box;
  outline-color: var(--yellow);
}

.input_field.name input {
  background: var(--gray) url('../img/user-icon.svg') 20px center no-repeat;
}

.input_field.tel input {
  background: var(--gray) url('../img/phone-icon.svg') 20px center no-repeat;
}

/* .button input {
  width: 284px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, var(--light-yellow) 0%, var(--yellow) 100%);
  box-shadow: 0 4px 0 0 var(--dark-yellow-border);
  border-radius: 8px;
  border: none;

  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--bg);
} */

.contact {
  width: calc(50% - 32px);
}

.contact h4 {
  font-size: 24px;
  margin-bottom: 16px;
}

.contact a {
  font-size: 16px;
  text-decoration: none;
  color: var(--white);
}

.phone, .email {
  width: calc(50% - 32px);
  margin-bottom: 54px;
}

.social_link {
  width: calc(100% - 32px);
  margin-bottom: 54px;
}

.social_link a {
  margin-right: 32px; 
}

.policy a {
  text-decoration: underline;
  
}

#footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

@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;
    align-items: center;
  }

  .hero_text p {
    margin-bottom: 32px;
  }

  #hero {
    margin-bottom: 112px;
  }

  .benefit, .work{
    width: calc(50% - 32px);
  }

  .review_img {
    width: calc(100% - 32px);
    margin-bottom: 32px;
  }

  .review_text {
    width: calc(100% - 32px);
    margin-bottom: 32px;
  }

  .center {
    justify-content: center;
  }

  .form {
    width: calc(100% / 12 * 10 - 32px);
  }

  .contact {
    width: calc(100% / 12 * 10 - 32px);
  }
}

@media screen and (max-width: 575px){ /* от 575 до 420 */
  .benefit, .work{
    width: calc(100% - 32px);
    text-align: center  ;
  }

  .form, .contact{
    width: calc(100% - 32px);
  }

  .social {
    margin-bottom: 32px;
  }
}