.chess {
  padding-top: 40px;
}

.chess .row.grey {
  background-color: var(--bg-grey);
  padding: 40px 0 20px;
  background-image: url("../images/chess/greyElementsMob.svg");
  background-repeat: no-repeat;
  background-position: 130% -5%;
}

.chess .row.mb40 {
  margin-bottom: 40px;
}

.chess .sectionTitle {
  padding: 0 20px;
}

.chess p {
  color: var(--main-grey);
}

.chess .col:first-child {
  margin-bottom: 30px;
}

.chess .col:last-child {
  margin-bottom: 40px;
}

.chess .col .shadowFix {
  margin: -15px;
  width: calc(100% + 20px);
  max-width: calc(100% + 20px);
}

.chess .tabsCont .tab {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0.1;
  }

  to {
    opacity: 1;
  }
}

.chess .tabsCont .tab.active {
  display: block;
  animation-name: fade;
  animation-duration: 1s;
}

.chess .tabsCont .tabs {
  display: flex;
  margin-bottom: 30px;
}

.chess .tabsCont .tabs a {
  display: block;
  padding-bottom: 10px;
  color: var(--main-grey);
  font-weight: 500;
  font-size: 18px;
}

.chess .tabsCont .tabs a:not(:last-child) {
  margin-right: 30px;
}

.chess .tabsCont .tabs a.active {
  border-bottom: 2px solid var(--main-green);
  color: var(--main-black);
}


@media (min-width: 768px) {
  .chess .sectionTitle {
    padding: 0 30px;
  }

  .chess .row .container {
    display: flex;
    align-items: center;
  }

  .chess .row.grey {
    background-position: 50%;
  }

  .chess .tabsCont .container {
    align-items: flex-start;
  }

  .chess .row .col {
    width: calc(50% - 15px);
  }

  .chess .row .col:first-child {
    margin-right: 30px;
  }

  .chess .row:nth-of-type(2n+2) .col:first-child {
    order: 2;
    margin-right: 0;
    margin-left: 50px;
  }

  .chess .row:nth-of-type(2n+2) .col:last-child {
    order: 1;
  }

  .chess .col:last-child {
    margin-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .chess {
    padding-top: 80px;
  }
  .chess .row {
    margin-bottom: 80px;
  }

  .chess .row.mb0 {
    margin-bottom: 0;
  }

  .chess .row.mb40 {
    margin-bottom: 80px;
  }

  .chess .row.topBorder .container {
    padding-top: 80px;
    position: relative;
  }

  .chess .row.topBorder .container::before {
    content: "";
    height: 1px;
    width: 100%;
    background-color: #D9D9D9;
    position: absolute;
    top: 0;
  }

  .chess .row.grey {
    background-image: url("../images/chess/greyElementsDesk.svg");
    background-position: 50% 35%;
    padding: 80px 0;
  }

  .chess .row .col {
    width: calc(50% - 25px);
    margin-bottom: 0;
  }

  .chess .row .col:first-child {
    margin-right: 50px;
  }

  .chess .ticks {
    margin-bottom: 10px;
  }
}

@media (min-width: 1440px) {
  .chess .col .shadowFix {
    margin: -40px -50px;
    width: calc(100% + 50px);
    max-width: calc(100% + 50px);
  }
  .chess .row.grey {
    background-position: 50% 40%;
  }
}