.timetable {
  margin-top: 200px;
  margin-bottom: 100px;

  &::before {
    content: "";
    position: absolute;

    background: linear-gradient(0deg, #000 0.01%, rgba(0, 0, 0, 0) 41.92%),
      url(../assets/images/coache-team/coach-team-bg.jpg),
      lightgray 0px -250.242px / 100% 124.334% no-repeat;
    background-position: top;
    background-repeat: no-repeat;

    opacity: 0.1;
    top: -15%;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
  }

  @media (max-width: 1270px) {
    margin-top: 150px;
  }
}

.timetable > .timetable__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin-top: 100px;
}

.timetable__wrapper h4 {
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  letter-spacing: 1rem;
  color: var(--color-red);
}

.timetable__wrapper h1 {
  font-size: 42px;
  line-height: 130%;
  margin-top: 10px;
  text-transform: uppercase;
  text-align: center;

  @media (max-width: 425px) {
    font-size: 32px;
  }
}

.timetable__days li {
  padding: 20px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
}

.timetable__days-wrapper {
  display: flex;
  margin-top: 60px;

  @media (max-width: 1480px) {
    display: none;
  }
}

.timetable__days-wrapper button {
  z-index: 3;
  padding: 35px 16px;
  background: var(--color-red);
  border-radius: var(--border-radius-md);

  transition: all 0.2s ease;

  &:hover {
    background: var(--color-red-opacity);
  }

  &:focus {
    background: none;
    border: 1px solid var(--color-red);
  }
}

.timetable__days-wrapper button:first-child {
  margin-right: 15px;
}

.timetable__days-wrapper button:last-child {
  margin-left: 15px;
}

.swiper-slide.active {
  background: var(--color-red);
}

.swiper-slide {
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.timetable__days ul {
  height: 150px !important;
}

.timetable__days ul > li {
  width: 154px !important;
  height: 105px !important;
}

.timetable__days-wrapper button {
  z-index: 99;
}

.swiper-slide:hover {
  background: rgba(255, 255, 255, 0.05);
}

.timetable__table {
  margin-top: 30px;
}

.timetable__table > ul {
  justify-content: center;
  align-items: center;
}

.timetable__table > ul:first-child {
  display: flex;
  justify-content: space-between;
}

.timetable__table > ul:first-child > li {
  width: 312px;
}

.timetable__table ul:last-child {
  display: flex;
  flex-direction: column;
}

.timetable__table ul:last-child > li {
  display: flex;
}

.timetable__table ul:last-child > li > p,
.timetable__table > ul:first-child > li {
  display: flex;
  justify-content: space-between;
}

.timetable__table > ul:first-child > li,
.timetable__table ul:last-child > li > p {
  width: 312px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timetable__table ul:last-child {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.timetable__table ul:last-child > li {
  padding: 30px 0;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.table-red {
  background: var(--color-red) !important;
}

.table-gray {
  background: rgba(255, 255, 255, 0.15) !important;
}

.timetable__desctop {
  @media (max-width: 1480px) {
    display: none;
  }
}

.timetable__mobile {
  display: none;

  @media (max-width: 1480px) {
    display: block;
  }
}

.timetable__wrapper > .container {
  @media (max-width: 800px) {
    width: 100%;
  }
}

.timetable__days-mobile li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: var(--border-radius-md);

  width: 100% !important;
}

.timetable__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.timetable__mobile-list > li {
  display: flex;
  flex-direction: column;

  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #333;

  background: rgba(255, 255, 255, 0.05);
}

.timetable__mobile-list > li > div {
  display: flex;
  justify-content: space-between;
}

.timetable__mobile-list > li > div > p {
  line-height: 180%;

  @media (max-width: 320px) {
    font-size: 14px;
  }
}

.timetable__mobile-list > li > div > p:first-child {
  opacity: 0.5;
}
