.training-wrapper {
  display: flex;
  flex-direction: column;
  padding-bottom: 74px;

  /* Рекламный баннер */

  .ad-banner-slider {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 40px;

    .ad-track {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease-in-out;

      .ad-slide {
        position: relative;
        width: 100%;
        height: 100%;
        flex-shrink: 0;

        .ad-link {
          display: block;
          width: 100%;
          height: 100%;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 12px;
        }

        .ad-label {
          position: absolute;
          bottom: 8px;
          right: 12px;
          background-color: rgba(255, 255, 255, 0.85);
          color: #333;
          font-size: 12px;
          padding: 2px 8px;
          border-radius: 6px;
          border: none;
          cursor: pointer;
          z-index: 2;
        }
      }
    }
  }

  .ad-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;

    .ad-dot {
      width: 8px;
      height: 8px;
      background: #fff;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s;
    }
  }

  .ad-dot.active {
    background: linear-gradient(135deg, #7EF29D 0%, #34D17B 100%);
  }

  /* Ближайшие тренировки */

  .users-trainings {
    h2 {
      font-size: 16px;
      text-align: center;
      font-weight: 500;
      margin: 0 0 20px 0;
    }

    .training-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: relative;
      margin-bottom: 20px;

      .training-row {
        display: flex;
        align-items: center;
        position: relative;

        .dot-line {
          margin-right: 10px;
          position: relative;

          .circle {
            width: 12px;
            height: 12px;
            border: 1px solid #9e9e9e;
            border-radius: 50%;
            z-index: 1;
            position: relative;
            animation: pulse 3s infinite;
            background-color: white;

            &::after {
              content: '';
              position: absolute;
              top: 50%;
              left: 50%;
              width: 6px;
              height: 6px;
              background-color: #9e9e9e;
              border-radius: 50%;
              transform: translate(-50%, -50%);
            }
          }

          .line {
            position: absolute;
            top: 15px;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 46px;
            background-image: repeating-linear-gradient(
                    to bottom,
                    #9e9e9e,
                    #9e9e9e 4px,
                    transparent 4px,
                    transparent 8px
            );
            z-index: 0;
          }
        }
      }

      .training-card {
        flex-grow: 1;
        background: white;
        border-radius: 14px;
        padding: 12px 16px;
        font-weight: 400;
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

        .card-left {
          display: flex;
          align-items: center;
          gap: 12px;

          img {
            width: 24px;
            height: 24px;
          }
        }

        .card-right {
          img {
            width: 24px;
            height: 24px;
          }
        }
      }
    }
  }

  .start-train-wrapper {
    position: relative;
    display: block;
    width: 100%;
    min-width: 280px;
    height: 56px;
    margin-bottom: 20px;

    .start-train-bg {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      border-radius: 22px;
    }

    .start-train-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-weight: 600;
      color: white;
      font-size: 16px;
      text-decoration: none;
      white-space: nowrap;
      z-index: 1;
    }
  }

  /* Календарь */

  .calendar {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    height: 370px;
    margin-bottom: 20px;

    .calendar-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      animation-duration: 0.4s;
      animation-fill-mode: both;

      .calendar-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 400;
        font-size: 14px;
        margin: 30px 55px 15px 55px;
        color: #333;

        button {
          background: none;
          border: none;
          color: #34D17B;
          font-size: 32px;
          cursor: pointer;
          transition: transform 0.2s;
        }
      }

      .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-weight: 200;
        font-size: 14px;
        color: #B5BEC6;
        margin-bottom: 15px;
      }

      .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);

        .calendar-day {
          display: flex;
          justify-content: center;
          align-items: center;
          aspect-ratio: 1 / 1;
          border-radius: 50%;
          font-size: 14px;
          color: #4a5660;
          font-weight: 400;
          background: transparent;
          text-decoration: none;
          transition: background-color 0.3s, color 0.3s;
        }

        .today {
          color: #fff;
          position: relative;
          z-index: 1;

          &::before {
            content: '';
            position: absolute;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: linear-gradient(135deg, #7EF29D 0%, #34D17B 100%);
            z-index: -1;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
          }
        }

        .marked {
          position: relative;

          &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background: linear-gradient(135deg, #7EF29D 0%, #34D17B 100%);
            border-radius: 50%;
          }
        }
      }
    }
  }
}

/* Плавный свайп календаря */
@keyframes slide-left {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-right {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Тач-эффекты */
