.intro {
  padding: 250px 0 90px;
  background: var(--blue);
  color: #fff;
}
.intro .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.intro__asset {
  max-width: 600px;
  min-width: 400px;;
  position: relative;
  -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
          box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}
.intro__asset figcaption {
  position: absolute;
  padding: 5px 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.4rem;
  right: 0;
  top: 100%;
}
.intro__content {
  max-width: 750px;
  margin-right: 20px;
}
h1 {
  font-size: 7.5rem;
  line-height: 8rem;
  font-weight: 300;
}
.promotion  {
  padding: 190px 0;
  background: var(--gray);
  color: #fff;
  overflow: hidden;
}
.promotion .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.promotion__asset {
  position: relative;
  max-width: 750px;
  min-width: 400px;
  margin-right: 80px;
  z-index: 2;
}
.promotion__asset figcaption {
  position: absolute;
  padding: 5px 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.4rem;
  left: 0;
  top: 100%;
}
.promotion__content {
  max-width: 700px;
  z-index: 1;
}
.promotion__content p:nth-of-type(1) {
  position: relative;
  color: var(--blue);
}
.promotion__content p:nth-of-type(1):before {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 200vw;
  height: 100vh;
  margin-top: 10px;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  background: var(--blue);
  z-index: -1;
}
.promotion__content p:not(:last-child) {
  margin-bottom: 40px;
}
.gallery {
  padding: 120px 0 190px;
  background: var(--gray);
}
.gallery .container {
  max-width: none;
  -webkit-columns: 3;
     -moz-columns: 3;
          columns: 3;
  -webkit-column-gap: 50px;
     -moz-column-gap: 50px;
          column-gap: 50px;
}
.gallery__article {
  margin-bottom: 50px;
}
.gallery__asset {
  text-align: center;
  cursor: pointer;
}
.gallery__popup-wrap {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 3;
  padding: 60px 20px;
  overflow: auto;
  display: none;
}
.gallery__popup {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 1300px;
}
.gallery__article.active .gallery__popup-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.gallery__popup figure {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 40px;
  background: var(--blue) ;
}
.gallery__content-wrap {
  position: relative;
  padding: 85px 40px 40px;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 60%;
          flex: 1 0 60%;
  background: #fff;
}
.gallery__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.gallery__close:before,
.gallery__close:after {
  content: '';
  position: absolute;
  left: 0;
  width: 40px;
  height: 4px;
  top: 0;
  background: var(--blue);
}
.gallery__close:before {
  -webkit-transform: rotate(45deg) translate(8px, -3px);
      -ms-transform: rotate(45deg) translate(8px, -3px);
          transform: rotate(45deg) translate(8px, -3px);
  -webkit-transform-origin: top left;
      -ms-transform-origin: top left;
          transform-origin: top left;
}
.gallery__close:after {
  -webkit-transform: rotate(-45deg) translate(-7px, -1px);
      -ms-transform: rotate(-45deg) translate(-7px, -1px);
          transform: rotate(-45deg) translate(-7px, -1px);
  -webkit-transform-origin: top right;
      -ms-transform-origin: top right;
          transform-origin: top right;
}
.gallery__content-wrap h3 {
  margin-bottom: 10px;
  font-size: 2.6rem;
  line-height: 3rem;
  font-weight: bold;
  color: var(--blue);
}
.gallery__description {
  margin-bottom: 40px;
  font-size: 2.2rem;
  line-height: 3rem;
  color: var(--blue);
  list-style-type: none;
}
.gallery__content {
  margin-bottom: 40px;
}

.gallery__content-wrap a {
  font-weight: bold;
}
.history {
  padding: 170px 0;
  color: #fff;
  background-color: var(--blue);
  background-image: url(../../images/content/tehni-2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: multiply;
}
.history .container {
  max-width: 1540px;
}
.history__title {
  margin-bottom: 50px;
  font-size: 6rem;
  line-height: 7rem;
  font-weight: 300;
}
.history__content {
  max-width: 600px;
}
.history__content p:not(:last-child) {
  margin-bottom: 50px;
}
.locations {
  padding-bottom: 80px;
  background: var(--gray);
}
.locations article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 500px;
  color: var(--blue);
}
.locations article:nth-child(even) {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
}
.locations article figure {
  max-width: 50%;
}
.locations article img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}
.locations__content {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  max-width: 550px;
  padding: 0 20px;
  margin: 0 auto;
}
.locations__content h3 {
  margin-bottom: 20px;
  font-size: 5rem;
  line-height: 6rem;
  font-weight: normal;
}

@media only screen and (max-width: 1440px) {
  h1 {
    margin-bottom: 10px;
    font-size: 5rem;
    line-height: 6rem;
  }
}

@media only screen and (max-width: 1024px) {
  .gallery__popup {
    display: block;
  }
  .gallery__popup figure {
    padding: 60px 40px;
  }
  .gallery__content-wrap {
    position: static;
  }
  .gallery__close:before, .gallery__close:after {
    background: #fff;
  }
  .history__title {
    font-size: 4rem;
    line-height: 4.5rem;
  }
  .locations article,
  .locations article:nth-child(even) {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-bottom: 60px;
  }
  .locations article figure {
    max-width: none;
    margin-bottom: 40px;
  }
  .locations__content h3 {
    font-size: 4rem;
    line-height: 5rem;
  }
}

@media only screen and (max-width: 900px) {
  h1 {
    font-size: 3rem;
    line-height: 3.5rem;
  }
  .intro .container,
  .promotion .container {
    display: block;
  }
  .intro__content,
  .promotion__content {
    margin: 0 auto 40px;
  }
  .intro__asset {
    margin: 0 auto;
    min-width: auto;
  }
  .promotion {
    padding: 80px 0 0;
  }
  .promotion__asset {
    margin: 0 auto 60px;
    min-width: auto;
  }
  .promotion__content h2,
  .promotion__content p:nth-of-type(1) {
    color: #fff;
  }
  .promotion__content p:nth-of-type(1):before {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  .gallery .container {
    -webkit-columns: 2;
       -moz-columns: 2;
            columns: 2;
    -webkit-column-gap: 20px;
       -moz-column-gap: 20px;
            column-gap: 20px;
  }
  .gallery__article {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 600px) {
  .intro {
    padding-top: 120px;
  }
  h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  .gallery .container {
    -webkit-columns: 1;
       -moz-columns: 1;
            columns: 1;
  }
  .history {
    padding: 80px 0;
  }
  .history__title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
  .locations {
    padding-top: 80px;
  }
  .locations__content {
    padding: 0;
  }
  .locations__content h3 {
    font-size: 2rem;
    line-height: 3rem;
  } 
  .gallery {
    padding: 80px 0 0;
  }
  .gallery__content-wrap {
    padding: 25px 20px 40px;
  }
  .gallery__popup figure {
    padding: 45px 20px 20px;
  }
  .gallery__close {
    width: 30px;
    height: 30px;
  }
  .gallery__close:before, 
  .gallery__close:after {
    width: 30px;
    height: 2px;
  }
  .gallery__close:before {
    -webkit-transform: rotate(45deg) translate(7px, -1px);
        -ms-transform: rotate(45deg) translate(7px, -1px);
            transform: rotate(45deg) translate(7px, -1px);
  }
  .gallery__close:after {
    -webkit-transform: rotate(-45deg) translate(-6px, 0px);
        -ms-transform: rotate(-45deg) translate(-6px, 0px);
            transform: rotate(-45deg) translate(-6px, 0px);
  }
  .gallery__content-wrap h3 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  .gallery__description {
    font-size: 1.8rem;
    line-height: 2rem;
  }
  .gallery__description {
    margin-bottom: 20px;
  }
}