/* =========================================
   FINISH SCREEN
========================================= */

.practice-finish {
    width: 100%;
    margin-top: 1.25rem;
}


/* =========================================
   MAIN CARD
========================================= */

.finish-card {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;

    padding: 1.75rem 1.5rem;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fcf9 100%
    );

    border: 1px solid rgba(25, 135, 84, 0.12);
    border-radius: 22px;

    box-shadow:
        0 16px 40px rgba(16, 24, 40, 0.08);
}


/* =========================================
   COMPLETE ICON
========================================= */

.finish-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.finish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: rgba(25, 135, 84, 0.12);
    color: #198754;

    font-size: 1.65rem;
}


/* =========================================
   BADGE
========================================= */

.finish-badge {
    display: inline-block;

    padding: 0.35rem 0.75rem;
    margin-bottom: 0.7rem;

    border-radius: 999px;

    background: rgba(25, 135, 84, 0.1);
    color: #146c43;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* =========================================
   TITLE
========================================= */

.finish-title {
    margin-bottom: 0.6rem;

    color: #17324d;

    font-size: clamp(1.7rem, 2.3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}


/* =========================================
   DESCRIPTION
========================================= */

.finish-text {
    max-width: 540px;

    margin: 0 auto 1.25rem;

    color: #5b6b7d;

    font-size: 0.95rem;
    line-height: 1.55;
}


/* =========================================
   ACTION BUTTONS
========================================= */

.finish-actions {
    margin-bottom: 1.35rem;
}

.finish-actions .btn {
    font-weight: 500;
}


/* =========================================
   DIVIDER
========================================= */

.finish-divider {
    position: relative;

    margin: 1.25rem 0 1rem;

    text-align: center;
}

.finish-divider::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;
    right: 0;

    height: 1px;

    background: #e9ecef;

    transform: translateY(-50%);
}

.finish-divider span {
    position: relative;
    z-index: 1;

    display: inline-block;

    padding: 0 0.8rem;

    background: #ffffff;
    color: #6c757d;

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* =========================================
   RECOMMENDATION
========================================= */

.finish-recommendation {
    display: flex;
    align-items: flex-start;

    gap: 0.85rem;

    width: 100%;
    max-width: 590px;

    margin: 0 auto;
    padding: 0.9rem;

    text-align: left;

    background: #ffffff;

    border: 1px solid #eef2f4;
    border-radius: 16px;
}

.finish-recommendation-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    border-radius: 11px;

    background: rgba(25, 135, 84, 0.1);
    color: #198754;

    font-size: 1.05rem;
}

.finish-recommendation-body {
    min-width: 0;
    flex: 1;
}

.finish-recommendation-title {
    margin-bottom: 0.25rem;

    color: #17324d;

    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.finish-recommendation-text {
    color: #5b6b7d;

    font-size: 0.86rem;
    line-height: 1.5;
}

.finish-recommendation-link {
    display: inline-flex;
    align-items: center;

    gap: 0.3rem;

    color: #198754;

    font-size: 0.86rem;
    font-weight: 700;

    text-decoration: none;
}

.finish-recommendation-link:hover {
    color: #146c43;
    text-decoration: underline;
}


/* =========================================
   AFFILIATE NOTE
========================================= */

.finish-note {
    margin-top: 0.8rem;

    color: #98a2b3;

    font-size: 0.72rem;
}


/* =========================================
   SHARE RESULT
========================================= */

.speaking-share {
    margin-top: 1rem !important;
    padding-top: 0;
}

.speaking-share-title {
    margin-bottom: 0.65rem;

    color: #064e3b;

    font-size: 0.88rem;
    font-weight: 600;
}

.speaking-share .btn {
    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.speaking-share .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.12);
}

.speaking-share-hint {
    margin-top: 0.45rem !important;
    margin-bottom: 0;

    color: #94a3b8;

    font-size: 0.7rem;
}


/* =========================================
   LAPTOP / SHORT SCREEN
   Высота браузера до 850px
========================================= */

@media (min-width: 768px) and (max-height: 850px) {

    .practice-finish {
        margin-top: 0.5rem;
    }

    .finish-card {
        max-width: 590px;

        padding: 1.1rem 1.2rem;

        border-radius: 18px;
    }


    /* Icon */

    .finish-icon-wrap {
        margin-bottom: 0.45rem;
    }

    .finish-icon {
        width: 46px;
        height: 46px;

        font-size: 1.3rem;
    }


    /* Badge */

    .finish-badge {
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.4rem;

        font-size: 0.66rem;
    }


    /* Title */

    .finish-title {
        margin-bottom: 0.4rem;

        font-size: 1.6rem;
    }


    /* Text */

    .finish-text {
        max-width: 480px;

        margin-bottom: 0.8rem;

        font-size: 0.82rem;
        line-height: 1.4;
    }


    /* Buttons */

    .finish-actions {
        margin-bottom: 0.8rem;
    }

    .finish-actions .btn {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;

        font-size: 0.82rem;
    }


    /* Divider */

    .finish-divider {
        margin: 0.8rem 0 0.7rem;
    }

    .finish-divider span {
        font-size: 0.66rem;
    }


    /* Recommendation */

    .finish-recommendation {
        max-width: 540px;

        gap: 0.65rem;

        padding: 0.7rem;

        border-radius: 13px;
    }

    .finish-recommendation-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;

        border-radius: 9px;

        font-size: 0.9rem;
    }

    .finish-recommendation-title {
        margin-bottom: 0.15rem;

        font-size: 0.8rem;
    }

    .finish-recommendation-text {
        margin-bottom: 0.3rem !important;

        font-size: 0.75rem;
        line-height: 1.4;
    }

    .finish-recommendation-link {
        font-size: 0.75rem;
    }


    /* Note */

    .finish-note {
        margin-top: 0.55rem;

        font-size: 0.64rem;
    }


    /* Share */

    .speaking-share {
        margin-top: 0.65rem !important;
    }

    .speaking-share-title {
        margin-bottom: 0.4rem;

        font-size: 0.76rem;
    }

    .speaking-share .btn {
        padding: 0.32rem 0.8rem;

        font-size: 0.72rem;
    }

    .speaking-share-hint {
        margin-top: 0.3rem !important;

        font-size: 0.62rem;
    }
}


/* =========================================
   VERY SHORT LAPTOP
   Например 1366x768
========================================= */

@media (min-width: 768px) and (max-height: 720px) {

    .practice-finish {
        margin-top: 0;
    }

    .finish-card {
        max-width: 560px;
        padding: 0.8rem 1rem;
    }

    .finish-icon {
        width: 40px;
        height: 40px;

        font-size: 1.1rem;
    }

    .finish-icon-wrap {
        margin-bottom: 0.3rem;
    }

    .finish-badge {
        margin-bottom: 0.3rem;
    }

    .finish-title {
        font-size: 1.45rem;
        margin-bottom: 0.3rem;
    }

    .finish-text {
        margin-bottom: 0.65rem;

        font-size: 0.78rem;
    }

    .finish-actions {
        margin-bottom: 0.6rem;
    }

    .finish-divider {
        margin: 0.6rem 0;
    }

    .finish-recommendation {
        padding: 0.6rem;
    }

    .finish-note {
        margin-top: 0.4rem;
    }

    .speaking-share {
        margin-top: 0.45rem !important;
    }

    .speaking-share-title {
        margin-bottom: 0.3rem;
    }

    .speaking-share-hint {
        margin-top: 0.2rem !important;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .practice-finish {
        margin-top: 0.35rem;
    }

    .finish-card {
        max-width: 100%;

        padding: 0.9rem 0.8rem;

        border-radius: 16px;
    }


    /* Icon */

    .finish-icon-wrap {
        margin-bottom: 0.4rem;
    }

    .finish-icon {
        width: 42px;
        height: 42px;

        font-size: 1.15rem;
    }


    /* Badge */

    .finish-badge {
        padding: 0.25rem 0.55rem;
        margin-bottom: 0.35rem;

        font-size: 0.64rem;
    }


    /* Title */

    .finish-title {
        margin-bottom: 0.35rem;

        font-size: 1.5rem;
    }


    /* Text */

    .finish-text {
        margin-bottom: 0.75rem;

        font-size: 0.78rem;
        line-height: 1.4;
    }


    /* Buttons */

    .finish-actions {
        gap: 0.4rem !important;

        margin-bottom: 0.75rem;
    }

    .finish-actions .btn {
        width: 100%;

        padding: 0.45rem 0.7rem;

        font-size: 0.78rem;
    }


    /* Divider */

    .finish-divider {
        margin: 0.7rem 0 0.6rem;
    }

    .finish-divider span {
        padding: 0 0.6rem;

        font-size: 0.64rem;
    }


    /* Recommendation */

    .finish-recommendation {
        /*
         * Оставляем горизонтально.
         * Так карточка занимает меньше высоты.
         */
        flex-direction: row;

        gap: 0.6rem;

        padding: 0.65rem;

        border-radius: 12px;
    }

    .finish-recommendation-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;

        border-radius: 9px;

        font-size: 0.85rem;
    }

    .finish-recommendation-title {
        margin-bottom: 0.15rem;

        font-size: 0.76rem;
        line-height: 1.3;
    }

    .finish-recommendation-text {
        margin-bottom: 0.3rem !important;

        font-size: 0.7rem;
        line-height: 1.35;
    }

    .finish-recommendation-link {
        font-size: 0.7rem;
    }


    /* Note */

    .finish-note {
        margin-top: 0.45rem;

        font-size: 0.6rem;
    }


    /* Share */

    .speaking-share {
        margin-top: 0.55rem !important;
    }

    .speaking-share-title {
        margin-bottom: 0.35rem;

        font-size: 0.72rem;
    }

    .speaking-share .btn {
        padding: 0.32rem 0.75rem;

        font-size: 0.7rem;
    }

    .speaking-share-hint {
        margin-top: 0.25rem !important;

        font-size: 0.6rem;
    }
}