/* roboto-400normal - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    local('Roboto Regular '),
    local('Roboto-Regular'),
    url('../fonts/roboto/roboto-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/roboto/roboto-latin-400.woff') format('woff'); /* Modern Browsers */
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    local('Roboto Medium '),
    local('Roboto-Medium'),
    url('../fonts/roboto/roboto-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/roboto/roboto-latin-500.woff') format('woff'); /* Modern Browsers */
}

@font-face {
  font-family: 'Archive';
  src: url('../fonts/archive/Archive-Regular.woff2') format('woff2'),
  url('../fonts/archive/Archive-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #0bcaa2;
  --color-secondary: #1b90b5;
  --color-header-bg: #272727;
}

body {
  font-family: "Roboto", sans-serif;
}

.main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 150px;
}

h1 {
  font-family: "Archive", "Roboto", sans-serif;
  font-size: 36px;
}

h2 {
  font-family: "Roboto", sans-serif;
  line-height: 1.2;
  font-weight: 400;
  font-size: 20px;
}

header {
  padding: 36px 0;
  background-color: var(--color-header-bg);
}
header .main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo img {
  height: 45px;
  width: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:active {
  color: var(--color-secondary);
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  padding: 14px 32px 13px;
  background-image: linear-gradient(124deg, var(--color-primary) -10%, var(--color-secondary) 111%);;
  border-radius: 7px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 15px;
}

.color-secondary {
  color: var(--color-secondary);
}

.head-area {
  display: flex;
  justify-content: space-between;
  margin: 30px -150px;
  padding: 0 150px;
  /*background: transparent url("../img/person-background.svg") no-repeat;*/
  background-position-x: 90%;
  background-size: 550px;
}
.head-area .button {
  margin-top: 15px;
}
.head-area .left {
  padding-top: 70px;
  flex: 0 0 480px;
}
.head-area .right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.person img {
  position: relative;
  left: 50px;
  height: 341px;
  width: auto;
  margin-top: 58px;
}

footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 1344px) {
  .person img {
    height: 300px;
    margin-top: 78px;
  }
}



@media (max-width: 1050px) {

  .main {
    padding: 0 48px;
  }
  .head-area {
    margin: 30px 0;
    padding: 0 0;
    text-align: center;
    flex-direction: column;
    background-position: 80% 80%;
  }
  .head-area .left {
    padding-top: 70px;
    flex: 1 1;
  }
  .head-area .right {
    padding-top: 70px;
  }
  .person {
    margin:  0 auto;
  }
  .person img {
    position: relative;
    left: 0;
    height: 341px;
    width: auto;
    margin: 58px auto 0;
  }
}

@media (max-width: 650px) {
  .main {
    padding: 0 24px;
  }
  .head-area {
    margin: 30px -24px;
    padding: 0 8px;
  }
  .person img {
    height: auto;
    width: 90%;
  }
}

@media (max-width: 550px) {
  header .button {
    display: none;
  }
  .head-area .left {
    padding-top: 0px;
  }
}
