:root {
  --main-bg-color: #fffffa;
  --border-color: #444;
  --padding: 20px;
}

body, html {
  padding: 0;
  margin: 0;
} 
body {
  padding: 20px;
  position: relative;
  font-family: 'Merriweather', serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

a:not(.logo) {
  color: black;
  padding: 0 5px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: background .2s ease, box-shadow .2s ease;
}

a:not(.logo):hover, a:not(.logo):focus {
  background: linear-gradient(225deg, #f00055, #ca0047);
  box-shadow: -10px 10px 30px rgb(190 0 67 / 50%), 10px -10px 30px rgb(255 0 91 / 50%);
  color: white;
  outline: none;
}

canvas {
  position: fixed;
  top: -20px;
  left: -20px;
  width: calc(100vw + 20px);
  height: calc(100vh + 20px);
  z-index: 0;
}

main {
  width: 100%;
  min-height: 100%;
  position: relative;
  z-index: 1;
  color: #1c2103;
}

.block {
  padding: 50px var(--padding);
  background: var(--main-bg-color);
  margin-bottom: 30px;
  position: relative;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.block:first-child {
  background: transparent;
}

.block:first-child:before {
  display: block;
  content: "";
  position: absolute;
  top: 270px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--main-bg-color);
  z-index: -1;
}

h1 {
  font-weight: 300;
  margin-bottom: 100px;
  font-size: 32px;
  color: white;
}

h2 {
  font-weight: 300;
  font-size: 32px;
}

.contentBlock {
  padding-top: 40px;
  max-width: 1000px;
}

.subtitle {
  margin-bottom: -4px;
  font-size: 16px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.-question {
  cursor: help;
  display: inline-block;
}

strong {
  font-weight: 700;
}

.logo {
  top: 10px;
  right: 20px;
  position: fixed;
  position: fixed;
  width: 150px;
  height: 150px;
  display: flex;
  justify-items: center;
  justify-content: center;
  justify-content: center;
  padding-top: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath fill='none' d='M-1-1h802v602H-1z'/%3E%3Cg%3E%3Cpath fill='%23fff' stroke='null' d='M143 39c14 6 27 15 34 26 6 10 6 24 0 36-5 12-16 23-30 27-13 3-30 0-44-4l-36-10c-11-4-25-9-35-18-10-10-18-23-13-33s23-17 38-23c16-5 29-10 43-11 15 0 29 4 43 10z'/%3E%3C/g%3E%3C/svg%3E%0A");
  z-index: 3;
  background-size: cover;
  text-decoration: none;
}

.logo img {
  width: 100px;
  height: 32px;
  display: block;
}

.boxes {
  display: grid;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  grid-gap: 1px;
  grid-template-columns: auto;
  grid-template-rows: auto auto auto auto auto auto;
}

.box {
  padding: var(--padding);
  min-height: 105px;
  background: var(--main-bg-color);
  font-size: 22px;
  position: relative;
  z-index: 1;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.box__content {
  position: absolute;
  padding: var(--padding);
  top: 0;
  left: 0;
  right: 0;
  transition: background .2s ease, box-shadow .2s ease;
}

.box__description {
  display: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.box:hover {
  z-index: 2;
}

.box:hover .box__description {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  margin-top: 10px;
}

.box:hover .box__content {
  background: linear-gradient(225deg, #f00055, #ca0047);
  box-shadow: -20px 20px 60px #be0043, 20px -20px 60px #ff005b;
  z-index: 2;
  color: white;
}

.box__description {
  font-size: 14px;
  font-weight: 300;
}

.block__header {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 29px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.block__description {
  margin: 20px 0 30px 0;
}

.elevated {
  box-shadow: 0 -20px 50px 0 rgba(0, 0, 0, 0.08);
  position: relative;
}

.elevated:after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -51px;
  height: 50px;
  background: var(--main-bg-color);
}

.references {
  display: grid;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  grid-gap: 1px;
  grid-template-columns: auto;
}

.reference__summary {
  background: var(--main-bg-color);
  padding: var(--padding);
}

.reference__description {
  background: var(--main-bg-color);
}

.reference__logo {
  width: 200px;
  filter: grayscale(100%);
}

.reference__summary:hover .reference__logo {
  filter: none;
}

.reference__parts {
  display: flex;
  flex-direction: column;
}

.reference__part {
  flex: 1;
  padding: var(--padding);
  text-align: justify;
  font-size: 18px;
  line-height: 1.3;
  position: relative;
}

.reference__part:after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 80px;
  bottom: 80px;
  width: 1px;
  background: #e0e0e0;
}

.reference__part:last-child:after {
  display: none;
}

.reference__partHeader {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.team {
  display: grid;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  grid-gap: 1px;
  grid-template-columns: auto;
}

.team__member {
  padding: var(--padding);
  background: var(--main-bg-color);
  font-size: 22px;
  cursor: default;
}

.team__memberAvatar {
  width: 200px;
  display: block;
  margin: 0 auto;
}

.team__memberName {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  margin-top: 20px;
}

.team__memberDescription {
  font-size: 18px;
  line-height: 1.3;
}

.technologies__header {
  margin-top: 30px;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 0;
  line-height: 17px;
}

.technologies {
  display: grid;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  grid-gap: 1px;
  grid-template-columns: auto;
  margin-bottom: 50px;
}

.technology__logo {
  text-align: center;
}

.technology__logo, .technology__description {
  padding: var(--padding);
  background: var(--main-bg-color);
  font-size: 22px;
  line-height: 1.55;
}

.technology__logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
}

.technology__logo:hover img {
  filter: none;
}

.contact__mail, .contact__message {
  border: 1px solid var(--border-color);
  display: block;
  margin-bottom: 20px;
  font-size: 18px;
  padding: 20px;
  width: 100%;
  font-family: 'Merriweather', serif;
  position: relative;
}

.contact__message {
  height: 250px;
}

.contact__submit {
  border: 1px solid var(--border-color);
  display: block;
  width: 100%;
  font-size: 24px;
  text-align: center;
  padding: 20px 0;
  cursor: pointer;
  transition: back;
  transition: background .2s ease, box-shadow .2s ease;
  position: relative;
}

.contact__submit:hover, .contact__submit:focus {
  background: linear-gradient(225deg, #f00055, #ca0047);
  box-shadow: -20px 20px 60px #be0043, 20px -20px 60px #ff005b;
  color: white;
  z-index: 2;
  outline: none;
}

footer {
  margin-bottom: 20px;
  text-align: center;
  color: white;
}

footer a:not(.logo) {
  color: white;
  border-color: white;
}

@media screen and (min-width: 720px) {
  :root {
    --main-bg-color: #fffffa;
    --border-color: #444;
    --padding: 40px;
  }

  .boxes {
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 42px;
  }

  .references {
    grid-template-columns: 280px auto;
    grid-template-rows: auto auto auto;
  }

  .reference__parts {
    flex-direction: row;
  }

  .team {
    grid-template-columns: auto auto auto;
  }

  .technologies {
    grid-template-columns: 180px auto;
  }

  .technology__logo {
    text-align: left;
  }
}
