/*------------------------------ таск #802 ------------------------------*/
/*------------------------------ SWIPER барабан с карточками Выбор аттестации ------------------------------*/
.swiper {
    width: 100%;
    padding: 2rem 0;
}

.swiper-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
}

.swiper-slide.plan-card-shell {
    width: 26rem;
    transition: all 0.3s ease;
}

.swiper-slide.plan-card-shell:not(.swiper-slide-active) {
    filter: brightness(0.85);
}
.swiper-slide.plan-card-shell > article {
    width: 100%;
}

@media (min-width: 87.5rem) {
    .swiper-slide.plan-card-shell {
        width: 28rem;
        font-size: 1.15rem;
    }
}

/*------------------------------ CARDS таск #802 ------------------------------*/
.plan-card-shell {
    position: relative;
}

.attestation-card {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0.625rem 1.56rem rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .25s ease;
    min-height: 100%;
    backdrop-filter: blur(6px);
    position: relative;
}

.attestation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.attestation-card:hover {
    transform: translateY(-0.25rem) ;
    box-shadow: 0 1rem 2.5rem rgba(24, 39, 75, .14);
    border-color: rgba(47, 93, 143, .2);
}

.attestation-card .card-header-custom {
    background: transparent;
    border: 0;
    text-align: center;
}

.attestation-card .plan-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a !important;
}

.attestation-card .plan-footer {
    margin-top: auto;
    margin-bottom: 1rem;
}

.attestation-card .illustration {
    width: 6.75rem;
    height: 6.75rem;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef5ff, #dbeafe);
    display: grid;
    place-items: center;
    border: 0.625rem solid #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06), 0 8px 24px rgba(47, 93, 143, .12);
    transition: transform .25s ease;
}

.attestation-card:hover .illustration {
    transform: scale(1.04) rotate(-1.5deg);
}

.attestation-card .illustration i,
.attestation-card .illustration svg{
    font-size: 3rem;
    color: #35679a;
    filter: drop-shadow(0 4px 14px rgba(53, 103, 154, .18));
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .35rem .75rem;
    background: rgba(47, 93, 143, .08);
    color: #35679a;
    font-weight: 700;
    font-size: .82rem;
}

.card-lesson-item {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
}
.card-lesson-item img {
    width: 1.375rem;
    height: 1.375rem;
    object-fit: contain;
    flex-shrink: 0;
}

a[data-bs-toggle="collapse"] {
    cursor: pointer;
}

a[data-bs-toggle="collapse"]:hover span {
    text-decoration: underline;
}

.plan-card-shell--inactive .attestation-card .row,
.plan-card-shell--inactive .attestation-card .card-header-custom p,
.plan-card-shell--inactive .attestation-card .plan-footer {
    filter: blur(3px);
    opacity: .35;
    pointer-events: none;
    user-select: none;
}

/* для неактивного состояния, подпись сверху карточки */
.plan-card-note {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(2px);
    margin-top: 3.125rem;
}

.plan-card-shell:not(.plan-card-shell--inactive) .plan-card-note {
    display: none;
}

@media (max-width: 48rem) {
    .attestation-card {
        min-height: 37.5rem;
    }

    .swiper-slide.plan-card-shell {
        max-width: 22.5rem;
        width: calc(100vw - 2rem);
    }

    .swiper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .swiper-wrapper {
        height: auto;
    }

    .plan-card-note {
        margin-top: 1rem;
    }
}

/* -------------------------------- Выбор языка для аттестации --------------------------------- */
.selection-card {
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(34, 60, 80, .10);
    background: #fff;
}

.list-group.option-list {
    border-radius: 3rem;
}

.option-list .list-group-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-color: #dce8fb;
    padding: .9rem 1rem;
    transition: .15s ease;
}

.option-list .list-group-item:hover {
    background: #f8fbff;
}

.option-label {
    cursor: pointer;
    width: 100%;
}

.list-lang-img img {
    width: 2.2rem;
}

.option-title {
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1.2;
}

.option-meta {
    color: #6d7b92;
    font-size: .88rem;
    line-height: 1.25;
}

.helper-box {
    background: #f5f9ff;
    border: 1px solid #dce8fb;
    border-radius: 1rem;
}

.request-panel {
    border: 1px solid #dce8fb;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    border-radius: 1.5rem;
    box-shadow: 0 0.625rem 1.875rem rgba(34, 60, 80, .08)
}

.radio-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .15rem;
}

@media (max-width: 62rem) {
    .package-mini {
        position: static;
    }
}

@media (max-width: 36rem) {
    .list-group.option-list .list-group-item{
        padding: 1rem 0.625rem;
    }
    .list-lang-img img {
        width: 1.5rem;
    }

    .option-title {
        line-height: 1.2;
        font-size: .9rem;
    }

    .option-meta {
        font-size: .80rem;
    }

    .option-list .list-group-item {
        flex-wrap: wrap;
        gap: .5rem;
    }
}

/* ------------------------------ на странице заявка на добавление контента -------------------- */

.dropdown-users {
    width: 20rem;
    border-radius: 1rem;
    border: 1px solid #dce8fb;
    box-shadow: 0 1rem 2.25rem rgba(34, 60, 80, 0.12);
}

.dropdown-users .search-input {
    border-radius: 0.75rem;
    border: 1px solid #dce8fb;
    padding: 0.5rem 0.75rem;
}

.dropdown-users .users-list {
    max-height: 16.25rem;
    overflow-y: auto;
}

.dropdown-users .user-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    text-decoration: none;
    color: #2b3b56;
    transition: 0.15s;
}

.dropdown-users .user-item:hover {
    background: #f5f9ff;
}

/* Аватар */
.dropdown-users .users-list .user-item .avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef3fb;
}

.dropdown-users .users-list .user-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-users .users-list .user-item .avatar-sm {
    width: 2rem;
    height: 2rem;
}

/* это элементы списка с доступными предметами из модалки + - */
.test-item {
    transition: all .2s ease;
    display: flex;
    align-items: center;
    padding: 0.625rem;
    gap: 1rem;
    background-color: #f6f8fc;
    border-radius: 0.375rem;
    overflow: hidden;
}

.test-item--selected {
    background-color: #ffffff;
}

.test-item--available {
    background-color: #f6f8fc;
}

/* ============================ task#821 ========================================================= */
/* ----------------------------------------- текущие результаты аттестации --------------------------------------------- */
.section-block {
    background: #ffffff;
    border: 1px solid #d9e3f3;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.course-card {
    height: 100%;
    border: 1px solid #d9e3f3;
    border-radius: 0.75rem;
    padding: 1rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 6.25rem;
}

.carousel-shell {
    position: relative;
    padding: 0 2.75rem;
}

.course-title {
    font-size: 1.08rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

.course-status {
    margin: 0;
    color: #6d7b92;
    font-size: .95rem;
}

@media (max-width: 62rem) {
    .carousel-shell {
        padding: 0 1.25rem;
    }
}

/* картинка когда завершены тесты по аттестации  */
.completion-card {
    min-height: 47.5rem;
}

.completion-bg {
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.documents-img {
    max-width: 28.125rem;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 3.125rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 62rem) {
    .completion-card {
        min-height: auto;
    }

    .documents-img {
        max-width: 20rem;
    }
}

@media (max-width: 36rem) {
    .documents-img {
        max-width: 15rem;
    }
}

/* -------------------- списки с иконками с галочками и крестиками ------------------ */
.appeal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appeal-list li {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .75rem;
    line-height: 1.45;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.appeal-list li:last-child {
    margin-bottom: 0;
}

.success-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bs-success);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1em;
}

.danger-list li::before {
    content: "\f05e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bs-danger);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1em;
}

/* ------------------------- поле добавления файла --------------------------- */

.upload-box {
    min-height: 8.125rem;
    cursor: pointer;
    transition: .2s ease;
    border-color: #cfdcf3 !important;
    background: #f9fbff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #5a8df6 !important;
    background: #f4f8ff;
}

.upload-icon {
    font-size: 2.5rem;
    color: #35679a;
}

/* ================================= таймер обратного отсчета ================================================= */
.countdown {
    margin: 7.5rem 0;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.countdown-item {
    display: flex;
    flex-direction: column-reverse;
    background-color: #dce8fb;
    border: 1px solid #ced9ec;
    width: 9.375rem;
    border-radius: 1rem;
    padding: 1.25rem 0;
}

.countdown-dots {
    font-size: 3.75rem;
    font-weight: 600;
    margin-bottom: 3.75rem;
}
.countdown-item dt {
    font-size: 1.5rem;
    color: #6d7b92;
    font-weight: normal;
    margin-bottom: 1rem;
}
.countdown-item dd {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* ==================================================================================================== */

.delivery-card {
    border-color: #dce8fb !important;
    transition: .2s ease;
    padding: 1.25rem 0.625rem;
    background-color: #ffffff;
}

.delivery-card:hover {
    border-color: #96b2e9 !important;
    box-shadow: 0 0 0 1px #96b2e9;
}

.delivery-icon {
    width: 4.5rem;
    height: 4.5rem;
    min-width: 3.25rem;
    border-radius: 50%;
    background: #f3f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #35679a;
    font-size: 2rem;
    flex-shrink: 0;
}

/* ---------------------- выбор радио кнопки (в основном для доставка оригинальных документов) ----------------------- */
.radio-card-wrapper {
    display: block;
    cursor: pointer;
    margin: 0;
}

.radio-card-input {
    display: none;
}

.radio-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 0.625rem;
    border: 2px solid #dce8fb !important;
    border-radius: 0.875rem;
    background: #ffffff;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.radio-card:hover {
    border-color: #8aaeff !important;
}

.radio-card-check {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: 50%;
    border: 2px solid #8aaeff !important;
    background: #ffffff;
    transition: .2s ease;
}

.radio-card-check::after {
    content: "";
    position: absolute;
    inset: 0.25rem;
    border-radius: 50%;
    background: #35679a;
    transform: scale(0);
    transition: transform .2s ease;
}

.radio-card-content {
    flex: 1;
    min-width: 0;
}

.radio-card-content .d-flex {
    gap: 0.75rem;
}
.radio-card-content img {
    max-width: 3.125rem;
}

.radio-card-input:checked + .radio-card {
    border-color: #8fb3dc !important;
    background: #fcfdff;
}

.radio-card-input:checked + .radio-card .radio-card-check {
    border-color: #35679a !important;
}

.radio-card-input:checked + .radio-card .radio-card-check::after {
    transform: scale(1);
}

.radio-content {
    transition: .3s ease;
}

.radio-content.is-inactive {
    filter: blur(4px) brightness(0.5);
    opacity: .5;
    pointer-events: none;
}

.delivery-layout .delivery-region:hover,
.delivery-layout .delivery-methods:hover,
.delivery-layout .delivery-services:hover,
.delivery-layout .delivery-sidebar:hover {
    border-color: #96b2e9 !important;
    box-shadow: 0 0 0 1px #96b2e9;
}

/* ------------------------ роадмап --------------------------- */
.roadmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 1rem;
    column-gap: 0;
}

.roadmap-step {
    min-height: 3.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 0 2rem;

    color: #ffffff;
    font-weight: 600;
    font-size: .95rem;
    background: linear-gradient(90deg, #6d9cc7, #4372b8);

    clip-path: polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 50%,
        calc(100% - 18px) 100%,
        0 100%,
        18px 50%
    );
}

/* первый без выреза слева */
.roadmap-step:first-child {
    clip-path: polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 50%,
        calc(100% - 18px) 100%,
        0 100%
    );
}

/* последний без наконечника */
.roadmap .roadmap-step:last-child {
    clip-path: polygon(
        0 0,
        calc(100% - 18px) 0,
        calc(100% - 18px) 100%,
        0 100%,
        18px 50%
    );
}
.step-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #ffffff;
    color: #2f59d7;
    font-size: .75rem;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 100rem) {
    .col-3xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .col-3xl-9 {
        flex: 0 0 auto;
        width: 75%;
    }
}

@media (max-width: 48rem) {
    .roadmap {
        grid-template-columns: repeat(2, 1fr);
    }
    .roadmap-step {
        min-height: 3rem;
        font-size: 0.875rem;
    }
    .step-number {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.875rem;
    }

    .upload-box {
        min-height: 6.25rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .countdown-dots.seconds, .countdown-item.seconds {
        display: none !important;
    }

    .delivery-card {
        padding: 1rem !important;
    }

    .delivery-icon {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        font-size: 1.2rem;
    }

}
@media (max-width: 576px) {
    .countdown {
        gap: 0.625rem;
    }
    .countdown-dots {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .countdown-item dd {
        font-size: 2.5rem;
    }
    .countdown-item dt {
        font-size: 1.125rem;
    }
}

/* ========================== для корзины ========================= */

.product-thumb {
    width: 5rem;
    min-width: 5rem;
}

.product-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
}

.product-thumb .btn-close {
    padding-top: 0.625rem;
}

.product-thumb-checkwrapper {
    position: absolute;
    background-color: #ffffff;
    padding: 0.5rem;
    padding-bottom: 0;
    border-radius: 0.5rem;
    top: -0.5rem;
    left: -0.5rem;
}
@media (max-width: 48rem) {
    .product-thumb img {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 36rem) {
    .product-thumb .btn-close {
        padding: 0;
        padding-top: 0.625rem;
    }
}

/* ========================== карточки для контента ======================== */
.resource-card {
    position:relative;
    overflow:hidden;
    background:#fff;
    border:1px solid #dce8fb;
    border-radius:.75rem;
    box-shadow:1px 3px 5px rgba(204,204,204,.8);
    transition:
        border-color .3s,
        box-shadow .3s,
        transform .3s;
}

.resource-card:hover {
    transform:translateY(-3px);
    border-color:#8aaeff;
    box-shadow:0 8px 20px rgba(51,130,233,.25);
}

.resource-card__image {
    aspect-ratio:16/10;
}

.resource-card__image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
}

.resource-card__body{
    display:grid;
    min-height:10rem;
    padding:1rem;
    position:relative;
}

.resource-card__content,
.resource-card__actions{
    grid-area:1/1;
    transition:opacity .25s ease;
}

.resource-card__content{
    display:flex;
    flex-direction:column;
    gap:.5rem;
    pointer-events: auto;
    opacity: 1;
}

.resource-card__tags{
    margin-top:auto;
}

.resource-card__actions{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:.75rem;
    opacity:0;
    pointer-events: none;
}

.resource-card:hover .resource-card__content {
    opacity: 0;
    pointer-events: none;
}

.resource-card:hover .resource-card__actions {
    opacity: 1;
    pointer-events: auto;
}

.resource-card__check{
    position:absolute;
    top:.75rem;
    left:.75rem;
    z-index:2;
}


/* ================= сетка для карточек контента мб потом удалю ================ */
.grid-content-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 36rem) {
    .grid-content-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 48rem) {
    .grid-content-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 87.5rem) {
    .grid-content-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* АВАТАРКА ПРОФИЛЯ */
.header-avatar {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background-color: var( --bs-orange );
    color: var(--white);
}

.header-avatar.big {
    width: 65px;
    height: 65px;
    font-size: 32px;
    background-color: var( --bs-orange );
}
