* {
  outline: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #383c4a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-display: swap;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  color: #fff;
}

img {
  max-width: 100%;
}

a {
  color: #fff;
  text-decoration: none;
}
a:hover {
  color: #f45e59;
  text-decoration: underline;
}

h1, h2, h3 {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: normal;
  text-transform: uppercase;
}
h1 small, h2 small, h3 small {
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

.input-txt {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background-color: #fff;
  box-sizing: border-box;
  font-size: 14px;
  color: #161616;
  -webkit-appearance: none;
}
.input-txt:focus {
  border-color: #f45e59;
}

.btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-block;
  border: 0;
  border-radius: 3px;
  box-sizing: border-box;
  background-color: #33363f;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 32px;
}
.btn:hover {
  background-color: #fab649;
  color: #fff;
  text-decoration: none;
}
.btn.btn-alt {
  background-color: #fab649;
  color: #fff;
}
.btn.btn-alt:hover {
  opacity: 0.8;
}
.btn[disabled] {
  pointer-events: none;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex-grow: 1;
}
.content-wrapper > .container {
  max-width: 1920px;
}

.container {
  width: 100%;
  max-width: 1298px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.document-header {
  padding: 2px 0;
  background-color: #33363f;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.document-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.document-header .btn:not(.btn-alt) {
  background-color: #fff;
  color: #161616;
}
.document-header .btn:not(.btn-alt):hover {
  background-color: #fab649;
  color: #fff;
}

.logo {
  width: 224px;
  height: 52px;
  flex-shrink: 0;
}
.logo img {
  display: block;
}

.navbar {
  margin: 0 0 0 12px;
  padding: 0 0 0 15px;
  border-left: 1px solid #dde2e7;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  align-items: center;
  justify-content: space-between;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
}
.navbar ul li {
  margin: 0 10px 0 0;
  padding: 0;
  list-style: none;
}
.navbar ul li:last-child {
  margin-right: 0;
}

.lng, .cats {
  width: auto;
  min-width: 160px;
  background-color: #f0f0f0;
  background-image: url(../images/select.png);
  background-position: right;
  background-repeat: no-repeat;
}

.cats {
  display: none;
}

.toggle {
  width: 32px;
  height: 32px;
  margin: 0 0 0 auto;
  display: none;
  background: url(../images/menu.png) no-repeat center;
  background-size: 32px;
  cursor: pointer;
}
.toggle.toggled {
  background-image: url(../images/close.png);
}

.paginator {
  margin: 8px auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  line-height: 38px;
}
.paginator li {
  margin: 2px;
  padding: 0;
  list-style: none;
}
.paginator .btn {
  min-width: 40px;
  height: 40px;
  font-weight: normal;
  line-height: 40px;
}

.previews {
  margin: 10px -3px;
  display: flex;
  flex-wrap: wrap;
}

.preview {
  width: calc(100% / 4 - 6px);
  margin: 0 3px 6px 3px;
  display: block;
}
.preview-image {
  position: relative;
  padding: 56.25% 0 0 0;
  display: block;
}
.preview-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.preview-title, .preview-keywords {
  height: 24px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
}
.preview-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}
.preview:hover {
  text-decoration: none;
}
.preview:hover .preview-image img {
  outline: 1px solid #f45e59;
  outline-offset: -1px;
}
.preview:hover .preview-title {
  text-decoration: none;
}

.video {
  max-width: 1278px;
  margin: 10px auto;
  display: flex;
}
.video-col {
  flex-grow: 1;
}
.video-player {
  position: relative;
  padding: 56.25% 0 0 0;
}
.video-player > iframe, .video-player .player-code {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.video-aside {
  width: 300px;
  margin: 0 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
.video-aside > div {
  flex-shrink: 0;
  margin-bottom: 10px;
}
.video-aside > div:last-child {
  margin-bottom: 0;
}

.mobile {
  width: 300px;
  margin: 10px auto;
}

.content-blocks {
  margin: 30px 0;
  height: 250px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.content-blocks > div {
  width: 300px;
  height: 250px;
  margin: 0 5px;
  flex-shrink: 0;
}

.document-footer {
  margin-top: 20px;
  padding: 15px 0;
  background-color: #33363f;
  color: #fff;
  text-align: center;
}
.document-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.document-footer a {
  color: #fff;
}
.document-footer a:hover {
  color: #f45e59;
}
.document-footer .footer-navbar {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.document-footer .footer-navbar li {
  margin: 0 10px;
  padding: 0;
  list-style: none;
}
.document-footer .logo {
  margin: 15px 0;
}
.document-footer .copyright {
  margin: 0;
}

@media screen and (max-width: 1199px) {
  .preview {
    width: calc(100% / 3 - 6px);
  }

  .video {
    flex-direction: column;
  }
  .video-aside {
    width: 100%;
/*     height: 250px; */
    margin: 10px 0 0 0;
    overflow: hidden;
    flex-direction: row;
    justify-content: center;
  }
  .video-aside > div {
    margin: 0 5px;
  }
}
@media screen and (max-width: 960px) {
  .container {
    padding: 0 6px;
  }

  .navbar {
    margin: 0;
    padding: 10px 0 8px 0;
    border: 0;
    display: none;
    flex-direction: column;
  }
  .navbar .lng {
    width: 100%;
  }
  .navbar .cats {
    width: 100%;
    margin: 10px 0 0 0;
    display: block;
  }
  .navbar ul {
    width: 100%;
  }
  .navbar ul li {
    margin: 10px 10px 0 0;
  }
  .navbar.open {
    display: flex;
  }

  .toggle {
    display: block;
  }

  .preview {
    width: calc(100% / 2 - 6px);
  }
  .preview-title {
    font-size: 14px;
  }

  .mobile {
    display: block;
  }
}
