:root {
    --text-color: #2E2E30;
    --background: #ffffff;
    --black: #2E2E30;
    --light-green: #589B97;
    --grey: #EFEFEF;
}

/* -=- 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(--background);
  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 {
  display: flex;
}

.social a {
margin: 0 8px;
}

#hero {
  margin-bottom: 56px;
}

.hero_text {
  width: calc(100% / 12 * 6 - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero_text p {
  margin-bottom: 20px;
}

.hero_img {
  width: calc(100% / 12 * 5 - 32px);
}

.freelance {
  font-size: 24px;
  margin-bottom: 16px;
}

.button a, .button input {
  background: #589B97;
  background: linear-gradient(90deg, rgba(88, 155, 151, 1) 50%, rgba(64, 75, 175, 1) 100%);
  border-radius: 8px;
  width: 100%;
  height: 40px;

  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--background);
  border: none;
}

.button a {
  width: 234px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 24px;
}

.hero_img img {
  width: 388px;
  height: 388px;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--background);
  box-shadow: 5px 5px 0px 0px rgba(241,241,241,1);
}

.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(77, 121, 161, 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:hover{
  opacity: 1;
}

.work_link a {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 8px;
}

.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);
}

.review_text p {
  margin-bottom: 16px;
}

#contacts {
  background: var(--grey);
  padding: 64px 0;
}

.form {
  width: calc(100% / 12 * 5 - 32px);
  background: var(--background);
  border-radius: 8px;
  padding: 32px;
}

.form h3 {
  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-green);
}

.text_field textarea {
  width: 100%;
  height: 200px;
  background: var(--grey);
  border-radius: 8px;
  border: none;
  padding: 16px;
  box-sizing: border-box;
  resize: none; /* Не Ресайзя */
  outline-color: var(--light-green); 
}

.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: #111135;
  padding: 56px 0;
}

.copyright {
  width: calc(100% - 32px);
  text-align: center;
  color: var(--background);
}

@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 a {
    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% - 32px);
    text-align: center;
  }
  .form {
    width: calc(100% - 32px);
  }
  .contact .social {
    margin-bottom: 32px;
  }
}
