@font-face {
  font-family: "MuseoRegular";
  src: url("fonts/museo/regular.eot");
  src: url("fonts/museo/regular.eot?#iefix") format("embedded-opentype"), url("fonts/museo/regular.woff") format("woff"), url("fonts/museo/regular.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  max-height: 1100px;
}
body {
  margin: 0 auto;
  line-height: 1.4;
  max-width: 1920px;
  font-family: 'MuseoRegular', serif;
}
h1 {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.5px;
}
.header {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.header__logo {
  width: 68px;
  margin: 0 auto 6px;
}
.main {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.main__link {
  display: flex;
  font-size: 18px;
  color: #e5b04a;
  flex-basis: 50%;
  overflow: hidden;
  letter-spacing: 0.8px;
  position: relative;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  box-sizing: border-box;
}
.main__link:before {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 3;
  transition: all 0.4s;
  background: url("img/pattern.png");
}
.main__link_shkafy:before {
  left: 0;
}
.main__link_shtory:before {
  right: 0;
}
.main__link_shkafy:hover:before {
  left: 100%;
}
.main__link_shtory:hover:before {
  right: 100%;
}
.main__link:hover:after {
  opacity: 1;
}
.main__link_shtory {
  padding: 110px 0 0;
  background-image: url("img/shtory-xs.jpg");
  background-position: center;
  background-size: cover;
}
.main__link_shtory:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.4s;
  background-image: url("img/shtory-xs-c.jpg");
  background-position: center;
  background-size: cover;
}
.main__link_shkafy {
  background-image: url("img/shkafy-xs.jpg");
  background-position: center;
  background-size: cover;
}
.main__link_shkafy:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.4s;
  background-image: url("img/shkafy-xs-c.jpg");
  background-position: center;
  background-size: cover;
}
.main__link-text {
  z-index: 5;
  position: relative;
  text-align: center;
}

@media screen and (min-width: 560px) {
  .main {
    flex-direction: row;
  }
  .main__link_shtory {
    padding: 0;
    background-image: url("img/shtory-sm.jpg");
  }
  .main__link_shtory:after {
    background-image: url("img/shtory-sm-c.jpg");
  }
  .main__link_shkafy {
    background-image: url("img/shkafy-sm.jpg");
  }
  .main__link_shkafy:after {
    background-image: url("img/shkafy-sm-c.jpg");
  }
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 16px;
  }
  .header {
    top: 30px;
  }
  .header__logo {
    width: 90px;
    margin: 0 auto 15px;
  }
  .main__link {
    font-size: 28px;
  }
}

@media screen and (min-width: 1024px) {
  h1 {
    font-size: 18px;
  }
  .header {
    top: 40px;
  }
  .header__logo {
    width: 110px;
    margin: 0 auto 20px;
  }
  .main__link {
    font-size: 38px;
  }
  .main__link_shtory {
    background-image: url("img/shtory-md.jpg");
  }
  .main__link_shtory:after {
    background-image: url("img/shtory-md-c.jpg");
  }
  .main__link_shkafy {
    background-image: url("img/shkafy-md.jpg");
  }
  .main__link_shkafy:after {
    background-image: url("img/shkafy-md-c.jpg");
  }
}

@media screen and (min-width: 1400px) {
  h1 {
    font-size: 22px;
  }
  .header__logo {
    width: 130px;
    margin: 0 auto 20px;
  }
  .main__link {
    font-size: 46px;
  }
  .main__link_shtory {
    background-image: url("img/shtory-lg.jpg");
  }
  .main__link_shtory:after {
    background-image: url("img/shtory-lg-c.jpg");
  }
  .main__link_shkafy {
    background-image: url("img/shkafy-lg.jpg");
  }
  .main__link_shkafy:after {
    background-image: url("img/shkafy-lg-c.jpg");
  }
}
@media screen and (min-width: 1600px) {
  .main__link {
    font-size: 56px;
  }
}