.home {
  padding: 48px 0 120px 0;
  position: relative;
  background-image: url(../img/subpage-top.svg);
  width: 100%;
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.home-box {
  display: flex;
  flex-direction: column;
  max-width: 992px;
  width: 100%;
  z-index: 11;
}

.home-box h1 {
  color: #fff;
}

.home-box .extra-large {
  font-weight: 400;
  margin-top: 8px;
  color: #fff;
}

.home-btns {
  margin-top: 48px;
  display: flex;
  flex-direction: row;
}

.home-pattern {
  background-image: url(../img/home-pattern.svg);
  width: 100%;
  height: 700px;
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  position: absolute;
  right: -520px;
  top: 0;
}

@media all and (max-width: 768px) {
  .home-pattern {
    display: none;
  }

  .home {
    padding: 48px 0 96px 0;
  }
}

.novinky {
  padding: 96px 0;
}

.novinky .container {
  flex-direction: column;
  align-items: center;
}

.novinky-tag-title {
  font-weight: 700;
  text-align: left;
  width: 100%;
  z-index: 12;
}

.novinky-tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  z-index: 12;
}

.novinky-tag {
  margin-top: 24px;
  color: #666666;
  border: 1px solid #666666;
  padding: 8px 24px;
  margin-right: 24px;
  font-weight: 700;
  cursor: pointer;
}

.novinky-tag.active {
  border-color: #4006af;
  color: #fff;
  background-color: #4006af;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.novinky-tag.active:after {
  content: '';
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 16px;
  width: 16px;
  margin-left: 16px;
  background-image: url('../img/article-x.svg');
}

.articles {
  margin-top: 48px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.article.main {
  width: calc(50% - 12px);
}

.article {
  display: flex;
  flex-direction: column;
  -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
  justify-content: space-between;
  height: fit-content;
}

.articles-desktop {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  width: calc(50% - 12px);
}

.articles-desktop .article {
  width: calc(50% - 12px);
}

.articles-desktop .article:nth-child(n + 3) {
  margin-top: 24px;
}

.articles-desktop .article-img {
  height: 148px;
}

.articles-desktop .article-title {
  font-size: 16px;
}

.article-img {
  width: 100%;
  height: 448px;
  object-fit: cover;
}

.article-info {
  padding: 24px;
  height: 100%;
}

.article-date {
  color: #666666;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
}

.article-date:before {
  content: '';
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../img/calendar.svg');
  margin-right: 8px;
}

.article-title {
  font-size: 26px;
  font-weight: 800;
}

.article-desc {
  color: #666666;
  margin-top: 8px;
}

.article-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.article-read-more {
  color: #4006af;
  font-weight: 800;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.article-read-more:after {
  content: '';
  width: 8px;
  height: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../img/read-more-arrow.svg');
  margin-left: 8px;
}

.article-share {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../img/share.svg');
}

.articles-mobile {
  display: none;
}

.novinky .btn {
  margin-top: 48px;
}

.articles-load-more {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.articles-load-more .article {
  width: calc(50% - 12px);
  margin-top: 24px;
}
.articles-load-more .article-title {
  font-size: 16px;
}

.articles-load-more .article .article-img {
  height: 248px;
}

@media all and (max-width: 992px) {
  .articles .article.main {
    display: none;
  }

  .articles-desktop {
    display: none;
  }

  .articles-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .articles-mobile .article {
    width: calc(50% - 12px);
  }

  .article-img {
    height: 248px;
  }

  .article-title {
    font-size: 16px;
  }

  .articles-mobile .article:nth-child(n + 3) {
    margin-top: 24px;
  }
}

@media all and (max-width: 480px) {
  .articles-mobile .article {
    width: 100%;
  }

  .article-img {
    height: 200px;
  }

  .articles-mobile .article:nth-child(n + 2) {
    margin-top: 24px;
  }
  .articles-load-more .article {
    width: 100%;
  }

  .articles-load-more .article .article-img {
    height: 200px;
  }
}
