/* Variables */
:root {
  --primary-font: "GOST", monospace;
  --primary-color: rgb(20, 20, 28);
  --primary-text-color: #cccccc;
  --accent-text-color: rgb(227, 178, 179);
  --font-size: 30px;
  --padding: 30px;
}

/* Font Face */
@font-face {
  font-family: "GOST";
  font-display: auto;
  font-style: normal;
  font-weight: normal;
  src: url("./fonts/GOST.woff") format("woff"),
    url("./fonts/GOST.woff2") format("woff2");
}

/* Global Styles */
html {
  font-family: var(--primary-font);
  background: var(--primary-color);
  font-size: var(--font-size);
}

/* Navigation */
.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 30px;
  box-sizing: border-box;
  align-items: center;
  background: var(--primary-color);
  z-index: 1;

  div {
    display: flex;
  }
}

#wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 80px;
  border-bottom: 1px solid #cccccc;

  @media (max-width: 850px) {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    height: auto;
  }
}

#row {
  @media (max-width: 850px) {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

#logo-container {
  padding-top: 20px;
  padding-bottom: 30px;
  transition: opacity 0.3s;
  font-size: 30px;
  letter-spacing: 3px;
  line-height: 33px;
  text-transform: uppercase;
  text-decoration: none;
  color: #e4e4e4;

  @media (min-width: 850px) {
    padding-top: 0;
    padding-bottom: 0;

    &:hover {
      opacity: 0.5;
    }
  }
}

#navigation {
  margin-left: auto;

  @media (max-width: 850px) {
    width: 100%;
    border-top: 1px solid #cccccc;
    margin-left: 0;
    justify-content: space-between;
  }
}

#navigation-link {
  font-size: 30px;
  line-height: 71px;
  padding-top: 5px;
  text-transform: uppercase;
  margin-left: 30px;
  text-decoration: none;
  border-bottom: 3px solid transparent;

  color: rgba(204, 204, 204, 1);

  transition: color 0.3s;

  @media (min-width: 850px) {
    &:hover {
      color: rgba(204, 204, 204, 0.5);
    }
  }

  @media (max-width: 850px) {
    margin-left: 0;
  }
}

#navigation-link-active {
  font-size: 30px;
  line-height: 71px;
  padding-top: 5px;
  text-transform: uppercase;
  margin-left: 30px;
  text-decoration: none;
  border-bottom: 3px solid #ccc;

  color: rgba(204, 204, 204, 1);

  transition: color 0.3s;

  @media (min-width: 850px) {
    &:hover {
      color: rgba(204, 204, 204, 0.5);
    }
  }

  @media (max-width: 850px) {
    margin-left: 0;
  }
}


/* Hero */
#first-container {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 80px 30px 0;
  width: 100%;

  box-sizing: border-box;

  @media (max-width: 850px) {
    padding-top: 170px;
  }
}

#first-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  align-items: center;
  width: calc(100vw - 60px);
  min-height: calc(80vh - 80px);
  box-sizing: border-box;
  padding: 60px 0 50px 0;

  @media (max-width: 850px) {
    min-height: calc(100vh - 170px);
  }
}

#first-title {
  line-height: calc(100vw / 23);
  font-size: calc(100vw / 30);
  text-transform: uppercase;

  background-size: 100%;
  background-repeat: repeat;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(55deg, rgb(255, 255, 255) 20%, rgba(245, 192, 192, 0.8) 100%);

  margin-bottom: 30px;

  @media (max-width: 850px) {
    max-width: 100%;
    line-height: 33px;
    font-size: 30px;
  }
}

/* Наши особенности */
#what-container {
  border-top: 1px solid #CCCCCC;
  display: flex;
  position: relative;
  width: 100%;
  background: var(--primary-color);
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

#what-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
  width: calc(100vw - 60px);
  min-height: inherit;
  box-sizing: border-box;
  padding: 50px 0;

  @media (max-width: 850px) {
    min-height: inherit;
  }
}

#what-title {
  line-height: 40px;
  font-size: xx-large;
  text-transform: uppercase;

  color: var(--primary-text-color);

  mix-blend-mode: normal;
  margin-bottom: 30px;
}

#what-content {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 60px;
}

.block-container {
  display: flex;
  flex-direction: column;
  width: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
  margin-bottom: 60px;

  @media (max-width: 850px) {
    width: 100%;
  }
}

.block-title {
  max-width: 200px;
  min-height: 80px;
  line-height: 40px;
  font-size: 28px;
  text-transform: uppercase;
  color: var(--primary-text-color);
  margin-bottom: 15px;
  margin-right: 200px;
}

.block-text {
  max-width: 450px;
  line-height: 40px;
  font-size: 28px;
  padding-right: 50px;

  color: var(--accent-text-color);
}







/* Нам доверяют */
#trusted-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}

#trusted-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
  width: calc(100vw - 60px);
  min-height: calc(100vh - 80px);
  border-top: 1px solid #CCCCCC;
  box-sizing: border-box;
  padding: 50px 0;

  @media (max-width: 850px) {
    min-height: calc(100vh - 170px);
  }
}

#trusted-title {
  line-height: 40px;
  font-size: 30px;
  text-transform: uppercase;

  color: #cccccc;

  mix-blend-mode: normal;
  margin-bottom: 30px;
}

#trusted-content {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 60px;
  margin-bottom: 60px;
}

.trusted-block {
  display: flex;
  position: relative;
  width: 25%;
  flex-shrink: 0;
  padding: 30px 0 90px;
  align-items: center;

  img {
    height: 45px;
  }

  @media (max-width: 850px) {
    width: 50%;
  }
}

#footer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 180px;
  border: 1px solid #CCCCCC;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #CCCCCC;
}

#footer-title {
  line-height: 40px;
  font-size: 30px;
  text-transform: uppercase;

  color: #cccccc;

  mix-blend-mode: normal;
  margin-bottom: 30px;
}

#footer-link {
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  text-decoration-line: underline;

  color: #CCCCCC;

  transition: opacity 0.3s;

  &:after {
    position: absolute;
    content: '';
    right: -35px;
    top: 10px;
    width: 20px;
    height: 25px;
    background: url("./svg/Arrow.svg") no-repeat;
    background-size: contain;
  }

  &:hover {
    opacity: 0.5;
  }
}

/* Projects */
#projects-container {
  display: flex;
  flex-direction: column;

  width: 100%;
  padding-top: 80px;

  box-sizing: border-box;
  align-items: center;

  @media (max-width: 850px) {
    padding-top: 200px;
  }
}

#projects-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
  width: calc(100vw - 60px);
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
  padding: 50px 0;

  @media (max-width: 850px) {
    min-height: calc(100vh - 170px);
  }
}

#projects-title {
  line-height: 40px;
  font-size: xx-large;
  text-transform: uppercase;

  color: #cccccc;

  mix-blend-mode: normal;
  margin-bottom: 30px;
}

#projects-content {
  display: flex;
  position: relative;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 60px;
}


.project-container {
  display: block;
  position: relative;
  width: calc(33% - 15px);
  height: auto;
  margin-bottom: 30px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;

  @media (max-width: 1100px) {
    width: calc(50% - 15px);
  }

  @media (max-width: 850px) {
    width: 100%;

    :before {
      background-blend-mode: normal;
    }
  }
}

.project-image {
  content: "";
  display: block;
  padding-top: 100%;
  transition: background-color 0.3s;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: luminosity;
  background-size: cover;
  cursor: pointer;
}

.project-title .project-arrow {
  display: block;
  height: 25px;
  width: 25px;
  margin: 0 10px 3px;
  background: url("./svg/Arrow_to_bottom.svg") no-repeat center;
  background-size: contain;
  transform: rotate(-90deg);
  transition: transform 0.5s;
}


.project-container:hover .project-title {
  backdrop-filter: invert(0.4);
}

.project-container:hover .project-arrow {
  transform: rotate(-90deg) translateY(10px);
}

.project-title {
  display: flex;
  position: absolute;
  top: 50%;
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  width: 100%;
  backdrop-filter: invert(0.7);
  font-size: 30px;
  line-height: 37px;
  transition: backdrop-filter 0.5s;
  height: 3em;


  text-transform: uppercase;
  /* padding-left: 25px; */
  align-items: center;

  color: var(--primary-text-color);

  cursor: pointer;
}

.project-title span {
  display: flex;
  margin: 1em;
  align-items: center;
}



.project-text {
  font-size: 28px;
  line-height: 37px;
  color: #aaaaaa;
}

/* Contacts */
.contacts-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 110px 30px 0;
  background: var(--primary-color);
  color: var(--primary-text-color);

  box-sizing: border-box;

  @media (max-width: 850px) {
    padding-top: 230px;
  }
}

.contacts-main {
  display: flex;
  flex-grow: 1;
  width: 100%;
  justify-content: space-between;
  padding-bottom: 50px;

  @media (max-width: 1200px) {
    flex-direction: column;
  }
}

.contacts-content {
  width: 33%;

  @media (max-width: 1200px) {
    width: 50%;
    padding-bottom: 30px;
  }

  @media (max-width: 850px) {
    width: 100%;
    padding-bottom: 30px;
  }
}

.contacts-title {
  line-height: 40px;
  font-size: 30px;
  text-transform: uppercase;

  color: #cccccc;

  mix-blend-mode: normal;
  margin-bottom: 30px;

  @media (max-width: 1200px) {
    width: 100%;
  }
}

.contacts-text {
  width: 320px;
  line-height: 40px;
  font-size: 28px;

  color: #CCCCCC;

  mix-blend-mode: normal;

  @media (max-width: 1200px) {
    width: 100%;
  }
}

.contacts-link {
  position: relative;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  text-decoration-line: underline;

  color: #cccccc;

  transition: opacity 0.3s;

  &:hover {
    opacity: 0.5;
  }

  cursor: pointer;
}