:root{
  --text-color:#E5E7EA;
  --white:#151515;
  --light-grey:#1E1E1E; 
  --blue:#5064FF;
  --turquoise:#2CC5B3;
}




/* -=- 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(--white);
    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: 84px;
}
h3{
    font-size: 24px;
    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: 126px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 56px;
}
.social{
  display: flex;
}

.social a {
  margin: 0 10px;
}

.hero_text{
  width: calc(100% / 12 * 6 - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.freelancer{
  font-size: 24px;
  margin-bottom: 16px;
}

.hero_text p {
  margin-bottom: 16px;
}

.button a, .button input{
  width: 100%;
  border-radius: 4px;
  height: 64px;
  background: linear-gradient(90deg, var(--turquoise), var(--blue) 50%, var(--turquoise)) var(--x, 0) / 200%;
  transition: 1s;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  border: none;
  cursor: pointer;
}

.button a {
  width: 243px;
  height: 40px;
  border-radius: 20px;   
  display: flex;
  align-items: center;
  justify-content: center;
 
  text-decoration: none;
}

.button a:hover, .button input:hover{
  --x: 100%
}

.hero_img{
  width: calc(100% / 12 * 6 - 32px);
  text-align: right;
}

.hero_img img{
  width: 390px;
  height: 390px;
  border-radius: 50%;
  border: 10px solid var(--white);
  filter: drop-shadow(8px 8px 4px rgba(0, 0, 0, 0.25));
  object-fit: cover;
    
}

#benefit, #work ,#reviews {
  margin-bottom: 64px;
}


.benefit{
  width: calc(100% / 12 * 4 - 32px);
  margin-bottom: 64px; 
}

.benefit img{
  margin-bottom: 24px;
}

#hero{
  margin-bottom: 80px;
}

.work{
  width: calc(100% / 12 * 4 - 32px);
  position: relative;
  margin-bottom: 32px;
}

.work::before{
  content: "";
  background: rgba(77, 121, 161, 0.7);
  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 a {  
  height: 64px;
  width: 64px;
  display: block;
  margin: 0 8px;
}


.work_link{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;


  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out
}

.work_link:hover{
  opacity: 1;
}

.work_link .fullscreen{
  background: url("../img/fullscreen.svg") center center no-repeat ;
}

.work_link .link{
  background: url("../img/link.svg") center center no-repeat ;
}

.review{
  width: calc(100% - 32px);
}

.review_img{
  width: calc(100% / 12 * 4 - 32px);
  text-align: center;
}
.review_text{
  width: calc(100% / 12 * 8 - 32px);
}
.review_img img{
  border-radius: 50%;
  margin-bottom: 24px;
  width: 280px;
  height: 280px;
}

.review_text h4 {
  font-size: 24px;
  margin-bottom: 24px;
}

.review_text p{
  margin-bottom: 16px ;
}

#contacts{
  background: var(--light-grey);
  padding: 64px 0;
}

.form{
  width: calc(100% / 12 * 5 - 32px);
  background: var(--white);
  padding: 40px;
  box-sizing: border-box;
}

.form h3{
  text-align: center;
  font-size: 18px;
}
.input_field input{
  border-radius: 4px;
  background: var(--light-grey);
  box-shadow: 0px 3px 10px 0px rgba(199, 199, 199, 0.25) inset;
  height: 64px;
  width: 100%;
  border: none;
  padding: 0 16px;
  box-sizing: border-box;
  outline-color: var(--turquoise);
}


.input_field{
  margin-bottom: 16px;
}

.contact{
  width: calc(100% / 12 * 6 - 32px);
}

.contact a {
  text-decoration: none;
  color: var(--text-color);
}


.contact .phone, .contact .email{
  width: calc(100% / 12 * 6 - 32px);
  margin-bottom: 56px;
}

.social_links {
  width: calc(100% - 32px);
  margin-bottom: 56px;
}

.policy a {
  text-decoration: underline;
}

#footer{
  background: linear-gradient(90deg, var(--turquoise), var(--blue) 50%, var(--turquoise)) var(--x, 0) / 200%;
}

.footer {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
}

@media screen and (max-width:1023px){ /* от 1023 до 960 */
  .work {
    width: calc(100% / 12 * 6 - 32px);
  } 
}


@media screen and (max-width:959px){ /* от 959 до 768 */
  .header{
    justify-content: center;
  }
  .hero_img{
    order: -1;
    width: calc(100% - 32px);
    text-align: center;
    margin-bottom: 32px;
  }
  .hero_text{
    width: calc(100% - 32px);
    text-align: center;
  }
  .button a {
    margin: 0 auto  ;
  }
  h2{
    text-align: center;
  }
  .benefit {
    width: calc(100% / 12 * 6 - 32px);
  }
  .review_img {
    width: calc(100% - 32px);
    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:575px){ /* от 575 до 420 */
  .hero_img img {
    width: 300px;
    height: 300px;
  }
  h1{
    font-size: 42px;
  }
  .benefit{
    width: calc(100% - 32px);
    text-align: center;
  }
  .work, .form, .contact, .phone, .email{
    width: calc(100% - 32px);
    } 
  .contact .phone , .contact .email{
    width: calc(100% - 32px);
  }
  .contact .social{
    margin-bottom: 32px;
  }
}

/* ----- Dark Theme Extras ----- */

body {
  background: #0f0f10;
  color: var(--text-color);
}

header, 
.wrapper, 
section {
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
}

/* карточки */
.benefit,
.work,
.form,
.review,
.contact {
  background: #151515 !important;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
  box-sizing: border-box;
}

/* кнопки ярче */
.button a,
.button input {
  background: linear-gradient(90deg, var(--turquoise), var(--blue));
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.button a:hover,
.button input:hover {
  filter: brightness(1.2);
  transform: scale(1.03);
}

/* картинки */
.hero_img img,
.review_img img {
  border-color: #1a1a1a;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* input'ы */
.input_field input {
  background: #1e1e1e;
  color: var(--text-color);
  border: 1px solid #2b2b2b;
}

/* footer */
#footer {
  background: linear-gradient(90deg, var(--turquoise), var(--blue));
}
   