.pkca-finish-mask {
    position:absolute; inset:0; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:14px;
    background:rgba(0,0,0,.7); color:#fff; text-align:center;
    z-index: 50; padding:20px; backdrop-filter: blur(2px);
}
.pkca-finish-mask .body {
    padding: 20px;
    border: 1px solid var(--bricks-color-kcvgcp);
    background: var(--bricks-color-kcvgcp);
    box-shadow: 0 0 60px #ec660785;
}
.pkca-finish-mask h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.pkca-finish-mask p  {
    margin:0;
    opacity:.8;
    margin-bottom: 30px;
}
.pkca-finish-mask__btn {
    border:0;
    padding: .5em 1em;
    font-weight:600;
    cursor:pointer;
    border-radius:0px;
    line-height: 1.3;
    background:var(--bricks-color-pdnylw);
    color:#fff;
    transition: all 0.3s ease-in-out;
}
.pkca-finish-mask__btn:hover {
    color:var(--bricks-color-pdnylw);
    background:#fff;
}
.pkca-hidden {
    display:none !important;
}

.training-plan-schedule .view {
    display: none;
}
.training-plan-schedule .view.active {
    display: block;
}
.training-plan-schedule .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.training-plan-schedule .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap:10px;
}
.training-plan-schedule .nav ul li {
    padding: 10px;
    min-width: 35px;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 0;
    cursor: pointer;
}
.training-plan-schedule .nav ul li:hover,
.training-plan-schedule .nav ul li.active{
    color:#fff;
    background:var(--bricks-color-kcvgcp);
}
.training-plan-schedule .nav .title {
    font-size: 18px;
    line-height: 1;
}

.training-plan-schedule .weeks .week {
    grid-gap: 30px;
    display: none;
}
.training-plan-schedule .weeks .week.active {
    display: grid;
}
.training-plan-schedule .thumb {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-width: 100%;
    min-height: 222px;
    background: #ccc;
}
.training-plan-schedule .thumb img {
    width: 100%;
    height: auto;
    max-height: 222px;
    object-fit: cover;
    object-position: center;
    transition: all .4s ease-in-out;
}
.training-plan-schedule .thumb .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bricks-color-kcvgcp);
    font-size: 12px;
    color: #fff;
    line-height: 1;
    padding: 4px 8px;
}
.training-plan-schedule .training:hover .thumb img {
    transform: scale(1.2);
}
.training-plan-schedule .training:hover h5 {
    color: var(--bricks-color-kcvgcp);
}
.training-plan-schedule .duration,
.training-plan-schedule .schedule {
    font-size: 14px;
    color: var(--bricks-color-xjevqa);
}

.training-plan-schedule .show-more {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
.training-plan-schedule .show-more:before,
.training-plan-schedule .show-more:after {
    content: '';
    border-top: 1px solid #dbdbdb;
    width: 100%;
    margin: 0 10px;
}
.training-plan-schedule .show-more button {
    border:0;
    padding: .5em 1em;
    font-weight:600;
    cursor:pointer;
    border-radius:0px;
    line-height: 1.3;
    background: var(--bricks-color-pdnylw);
    color:#fff;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}
.training-plan-schedule .show-more button:hover {
    background: var(--bricks-color-kcvgcp);
}

@media(min-width: 769px) {
    .training-plan-schedule .weeks .week {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media(min-width: 1024px) {
    .training-plan-schedule .weeks .week {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================
   CALENDAR VIEW WRAPPER
========================= */

.calendar-view {
    position: relative;
    width: 100%;
}

.calendar-viewport {
    overflow: hidden;
    width: 100%;
}

.calendar-track {
    display: flex;
    gap: 24px;
    transition: transform .35s ease;
    will-change: transform;
}

/* =========================
   SLIDES
========================= */

.calendar-month {
    flex: 0 0 calc((100% - 48px) / 3); /* desktop 3 */
}

/* tablet */
@media (max-width: 1024px) {
    .calendar-month {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

/* mobile */
@media (max-width: 640px) {
    .calendar-month {
        flex: 0 0 100%;
    }
}

/* =========================
   NAVIGATION
========================= */

.cal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 26px;
    height: 46px;
    border: 1px solid var(--bricks-color-pdnylw);
    background: var(--bricks-color-pdnylw);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: none;
}
.cal-nav:hover {
    border: 1px solid var(--bricks-color-kcvgcp);
    background: var(--bricks-color-kcvgcp);
}


.cal-nav.prev { left: -13px; }
.cal-nav.next { right: -13px; }

.calendar-view.has-slider .cal-nav {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.cal-nav:disabled {
    display: none !important;
}
/* mobile polish */
@media (max-width: 640px) {
    .cal-nav.prev { left: -11px; }
    .cal-nav.next { right: -11px; }
}

/* =========================
   MONTH CARD
========================= */

.calendar-month {
    border: 1px solid #e5e5e5;
    padding: 22px 26px 26px;
    background: #fff;
}

.calendar-month h4 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* =========================
   WEEKDAYS HEADER
========================= */

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

/* =========================
   DAYS GRID
========================= */

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    justify-items: center;
}

/* empty slots before month start */
.day.empty {
    visibility: hidden;
}

/* =========================
   DAY CELL
========================= */

.day {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #bdbdbd;
    background: #f6f6f6;
    user-select: none;
}

/* =========================
   ACTIVE DAY (HAS TRAINING)
========================= */

.day.has-training {
    background: #fff;
    color: var(--bricks-color-kcvgcp);
    border: 1px solid var(--bricks-color-kcvgcp);
    cursor: pointer;
    transition: all .2s ease;
}

.day.has-training:hover {
    background: var(--bricks-color-kcvgcp);
    color: #fff;
}

/* today */
.day.is-today {
    border-width: 2px;
}

/* =========================
   TOOLTIP
========================= */

.calendar-tooltip {
    position: absolute;
    background: #111;
    color: #fff;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 1000;
    display: none;
    width: 340px;
}


/* =========================
   TOOLTIP CONTENT
========================= */

.tooltip-training {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tooltip-training + .tooltip-training {
    margin-top: 10px;
}

.tooltip-training img {
    width: 96px;
    height: 64px;
    border-radius: 0px;
    object-fit: cover;
}

.tooltip-training div strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.tooltip-training span {
    font-size: 12px;
    opacity: .8;
    line-height: 1.1;
}

/* =========================
   MOBILE NAV (OPTIONAL)
========================= */

@media (max-width: 900px) {

    .calendar-month {
        position: relative;
    }

    .calendar-nav {
        position: absolute;
        top: 14px;
        left: 14px;
        right: 14px;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }

    .calendar-nav button {
        pointer-events: auto;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #ddd;
        background: #fff;
        cursor: pointer;
    }
}



.pkca-fitness-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}
@media(min-width: 640px) {
    .pkca-fitness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(min-width: 960px) {
    .pkca-fitness-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.pkca-fitness-grid .item {
    overflow: hidden;
    transition: all .4s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pkca-fitness-grid .item.training_plan {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px -5px #c6c6c6;
    border-radius: 0px;
    overflow: hidden;
    transition: all .4s ease-in-out;
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: unset;
    overflow: hidden;
}
.pkca-fitness-grid .item.training_plan:hover {
   box-shadow: 0 0 30px -5px var(--bricks-color-herfuz);
}
.pkca-fitness-grid .item:hover img {
    transform: scale(1.05);
}
.pkca-fitness-grid .item .thumb {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(221, 221, 221, 1);
    transition: all .3s ease-in-out;
    overflow: hidden;
}
.pkca-fitness-grid .item.training .thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}
.pkca-fitness-grid .item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 50%;
    transition: all .3s ease-in-out;
}
.pkca-fitness-grid .item.training_plan .content {
    z-index: 2;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    color: #ffffffad;
}
.pkca-fitness-grid .item.training .content {
    display: flex;
    flex-direction: column;
}
.pkca-fitness-grid .item div h3 {
    font-size: 21px;
    line-height: 1.3;
    transition: all .3s ease-in-out;
}
.pkca-fitness-grid .item.training_plan div h3 {
    color: #fff;
}
.pkca-fitness-grid .item.training .duration {
    color: var(--bricks-color-xjevqa);
    font-size: 14px;
}
.pkca-fitness-grid .item div .info.active {
    min-height: 25px;
}
.pkca-fitness-grid .item div .info.active span {
     background: var(--bricks-color-kcvgcp);
     color: #fff;
     padding: 5px 10px;
     line-height: 1;
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
 }
.pkca-fitness-grid .item.training div h3 {
    order: 1;
}
.pkca-fitness-grid .item.training div .duration {
    order: 2;
}
.pkca-fitness-grid .item.training:hover h3 {
    color: var(--bricks-color-kcvgcp);
}
.pkca-fitness-grid .item.training:hover .thumb {
    border-color: var(--bricks-color-kcvgcp);
}
.calendar-view .legend {
    list-style: none;
    display: flex;
    margin: 20px 0 0 0;
    padding: 0;
    gap: 20px;
    font-size: 11px;
}
.calendar-view .legend li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.calendar-view .legend li:before {
    content: '';
    width: 13px;
    height: 13px;
    background: #f6f6f6;
    border: 1px solid #f6f6f6;
    display: inline-block;
}
.calendar-view .legend li.planned:before {
    background: #fff;
    border-color: var(--bricks-color-kcvgcp);
}
.calendar-view .legend li.ended:before {
    border-color: var(--bricks-color-kcvgcp);
    background: var(--bricks-color-kcvgcp);
}