* {
  outline: none;
}

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

body {
  background-color: #151515;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-display: swap;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  color: #9b9a9b;
}

img {
  max-width: 100%;
}

a {
  color: #fff;
  text-decoration: none;
}
a:hover {
  color: #fa5f4f;
  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: #9b9a9b;
}

.input {
  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: #333;
  -webkit-appearance: none;
}
.input:focus {
  border-color: #fa5f4f;
}

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

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

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

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

.header-main {
  padding: 10px 0;
  background-color: #262626;
}
.header-main .container {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-align-items: center;
          align-items: center;
}

.logo {
  width: 212px;
  height: 42px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.logo img {
  margin: 0 0 -4px 0;
  display: block;
}

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

.languages, .categories {
  width: auto;
  min-width: 160px;
  background-image: url(../images/select.png);
  background-position: right;
  background-repeat: no-repeat;
}

.categories {
  display: none;
}

.nav-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;
}
.nav-toggle.toggled {
  background-image: url(../images/close.png);
}

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

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

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

.video {
  max-width: 1278px;
  margin: 10px auto;
  display: -webkit-flex;
  display: flex;
}
.video-col {
  -webkit-flex-grow: 1;
          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: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-flex-direction: column;
          flex-direction: column;
}
.video-aside > div {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  margin-bottom: 10px;
}
.video-aside > div:last-child {
  margin-bottom: 0;
}

.helper-small {
  width: 300px;
  margin: 10px auto;
}

.helper-blocks {
  margin: 30px 0;
  overflow: hidden;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-justify-content: center;
          justify-content: center;
}
.helper-blocks .block {
  width: 300px;
  margin: 0 5px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.footer-main {
  margin-top: 20px;
  padding: 15px 0;
  background-color: #262626;
  text-align: center;
}
.footer-main .container {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: center;
          align-items: center;
}
.footer-main-menu {
  margin: 0;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
          justify-content: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.footer-main-menu li {
  margin: 0 10px;
  padding: 0;
  list-style: none;
}
.footer-main .logo {
  margin: 15px 0;
}
.footer-main .copyright {
  margin: 0;
}

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

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

  .nav {
    margin: 0;
    padding: 10px 0 0 0;
    border: 0;
    display: none;
    -webkit-flex-direction: column;
            flex-direction: column;
  }
  .nav .languages {
    width: 100%;
  }
  .nav .categories {
    width: 100%;
    margin: 10px 0 0 0;
    display: block;
  }
  .nav ul {
    width: 100%;
  }
  .nav ul li {
    margin: 10px 10px 0 0;
  }
  .nav.open {
    display: -webkit-flex;
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .helper-small {
    display: block;
  }
}
