:root {
  --black: #000000;
  --white: #ffffff;
  --text-color: #2E2E30;
  --blue: rgb(27, 27, 194);
  --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(--white);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--text-color);
}

h1 {
  font-size: 50px;
  margin-bottom: 24px;

  background: var(--black);
  padding: 8px 16px;
  font-weight: bold;
  color: var(--white);
}

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;
}

#header {
  background: url("../images/bg.jpg") center center / cover no-repeat;
  height: 100vh;
  position: relative;
}

.header {
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 32px;
  border: 10px solid var(--white);
  box-shadow: 8px 8px 4px 2px rgba(0, 0, 0, 0.3);
}

.desription {
  background: rgba(0, 0, 128, 0.5);
  padding: 16px;
  color: var(--white);
  max-width: 540px;
}

#menu {
  background: var(--black);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

}

#menu ul {
  justify-content: center;
  align-items: center;
  height: 50px;
}

#menu ul li a {
  text-decoration: none;
  color: var(--white);
  text-transform: uppercase;
  font-weight: bold;
  padding: 0 16px;
}

.about {
  width: calc(100% - 32px);
  padding: 64PX 0;
  font-size: 24px;
  text-align: center;
}

.about h2 {
  margin-bottom: 32px;
}

#progress {
  margin-bottom: 56px;
}

.progress {
  width: calc(100% / 12 * 4 - 32px);
  box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
  margin-bottom: 32px;
}

.progress p {
  margin-bottom: 16px;
}

.text {
  padding: 16px;
}

.button a, .button input {
  background: var(--blue);
  width: 100%;
  height: 64px;
  color: var(--white);
  border: none;
  cursor: pointer;
}

.button a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.work {
  width: calc(100% / 3 - 32px);
  margin-bottom: 32px;
  position: relative;
}

.work::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.work:hover::before {
  opacity: 1;
}

.work_link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.work_link:hover {
  opacity: 1;
}

.work_link a {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 8px;
}

.link {
  background: url("../img/link.svg") center center no-repeat;
}

.furllscreen {
  background: url("../img/fullscreen.svg") center center no-repeat;
}

#reviews {
  margin: 64px 0;
}

.review {
  width: calc(100% - 32px);

}

.review_img {
  width: calc(100% / 12 * 05 - 32px);
  text-align: center;
}

.review_img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.review_text {
  width: calc(100% / 12 * 7 - 32px);
}

.review_text p {
  margin-bottom: 16px;
}

#contact {
  background: var(--grey);
  padding: 64px 0;
}

.form {
  width: calc(100% / 12 * 5 - 32px);
  background: var(--white);
  padding: 32px;
  border-radius: 4px;
}

.form h3 {
  font-size: 18px;
  text-align: center;
}

.input_field {
  margin-bottom: 16px;
}

.input_field input {
  width: 100%;
  height: 64px;
  padding: 0 16px 0 48px;
  box-sizing: border-box;

  background: var(--grey);
  border: none;
  box-shadow: 0px 4px 8px 0px rgba(124, 120, 120, 0.2) inset;
}

.input_field.username input {
  background: url("../img/user-icon.svg") 20px center no-repeat;
}

.input_field.userphone input {
  background: url("../img/phone-icon.svg") 20px center no-repeat;
}

.contact {
  width: calc(100% / 12 * 6 - 32px);
}

.phone, .email {
  width: calc(100% / 12 * 6 - 32px);
  margin-bottom: 56px;
}

.contact a {
  text-decoration: none;
  color: var(--text-color);
}

.soceal_links {
  width: calc(100% - 32px);
  margin-bottom: 56px;
}

#footer {
  background: #292929;
  color: var(--white);
}

.copyright {
  width: calc(100% - 32px);
  padding: 64px 0;
  text-align: center;
}

.mobile_button, .mobile_menu {
  display: none;
}


@media screen and (max-width: 991px) {
  #menu {
    display: none;
  }

  .progress, .work {
    width: calc(100% / 2 - 32px);
  }

  .phone, .email {
    width: calc(100% - 32px);
  }
}


@media screen and (max-width: 959px) {
  #menu {
    display: none;
  }

  .mobile_button {
    display: block;
    background: rgba(0, 0, 0, 0.9) url('../img/burger.svg') center center no-repeat;
    border: none;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
  }

  .mobile_button.active {
    background: rgba(0, 0, 0, 0.9) url('../img/close.svg') center center no-repeat;
  }

  .mobile_menu.active {
    background: rgba(0, 0, 0, 0.9);
    padding: 50px;
    box-sizing: border-box;
    width: 320px;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
  }

  .mobile_menu a {
    display: block;
    height: 50px;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 3.4em;
    color: #ffffff;
    border-bottom: 1px solid #333333;
  }

  .review_text, .review_img {
    width: calc(100% - 32px);
  }

  .review_img {
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 32px;
    text-align: center;
  }

  .progress, .work {
    width: calc(100% - 32px);
  }

  .form, .contact {
    width: calc(100% - 32px);
    margin-bottom: 32px;
  }

  h2 {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .about {
    font-size: 16px;
  }
}