/* ==================================================
   LESSON 2
   Exact Lesson 1 visual base
================================================== */

@import url("lesson-1.css");


/* ==================================================
   LESSON 2 — PHRASE SECTION
================================================== */

.phrase-learning-page {
    min-height: 760px;
}


/* 14 фраз вместо 26 букв */

.phrase-progress-grid {
    grid-template-columns: repeat(7, 1fr);
}


/* Английская фраза */

.phrase-symbol {
    max-width: 450px;

    margin:
        0 auto
        10px;

    font-size:
        clamp(
            36px,
            5vw,
            53px
        );

    line-height: 1.08;
}


/* Украинский перевод */

.phrase-translation {
    font-size: 24px;
}


/* ==================================================
   CURRENT PART
================================================== */

.phrase-part-card {
    width: min(660px, 100%);

    margin:
        0 auto
        24px;

    padding: 18px 20px;

    position: relative;
    z-index: 1;

    background:
        linear-gradient(
            135deg,
            #f5f1fb,
            #f0f5f1
        );

    border: 2px solid #e6dfef;
    border-bottom: 6px solid #d8cfdf;
    border-radius: 27px;

    box-shadow:
        0 12px 26px
        rgba(105, 91, 130, 0.08);

    text-align: left;
}


.phrase-part-top {
    display: flex;
    align-items: center;
    gap: 14px;
}


.phrase-part-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #fffdfa;

    border-radius: 17px;

    font-size: 28px;

    box-shadow:
        0 5px 14px
        rgba(111, 98, 77, 0.08);
}


.phrase-part-counter {
    display: block;

    margin-bottom: 3px;

    color: #8b7da8;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}


#phrasePartTitle {
    display: block;

    color: #625b70;

    font-size: 18px;
}


.phrase-part-description {
    margin:
        10px
        0
        0
        68px;

    color: #817d88;

    font-size: 13px;
    line-height: 1.45;
}


/* ==================================================
   PART COMPLETED
================================================== */

.phrase-part-complete {
    width: min(510px, 100%);

    max-height: 0;

    margin:
        0
        auto;

    padding:
        0
        18px;

    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    overflow: hidden;

    opacity: 0;

    background:
        linear-gradient(
            135deg,
            #f6f0da,
            #eef1e4
        );

    border: 0 solid #e6ddbd;
    border-radius: 20px;

    transform:
        translateY(8px)
        scale(0.97);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        max-height 0.3s ease,
        padding 0.3s ease,
        margin 0.3s ease;
}


.phrase-part-complete.show-part-complete {
    max-height: 100px;

    margin:
        12px
        auto
        16px;

    padding:
        13px
        18px;

    opacity: 1;

    border-width: 2px;

    transform:
        translateY(0)
        scale(1);
}


.phrase-part-complete > span {
    font-size: 27px;
}


.phrase-part-complete strong {
    display: block;

    color: #665f4e;

    font-size: 15px;
}


.phrase-part-complete p {
    margin: 2px 0 0;

    color: #7c7667;

    font-size: 12px;
}


/* ==================================================
   SCREEN 4 — DIALOGUES
================================================== */

.dialogue-success-page {
    justify-content: flex-start;

    padding-top: 45px;
    padding-bottom: 45px;
}


.dialogue-success-page h2 {
    margin-bottom: 15px;
}


.dialogue-success-page
.success-description {
    margin-bottom: 25px;
}


/* ==================================================
   DIALOGUE CARDS
================================================== */

.dialogue-card {
    width: min(690px, 100%);

    margin:
        0 auto
        16px;

    padding: 20px 22px;

    position: relative;
    z-index: 1;

    background:
        rgba(
            255,
            253,
            249,
            0.94
        );

    border: 2px solid #ebe4db;
    border-bottom: 6px solid #ddd4c7;
    border-radius: 27px;

    box-shadow:
        0 10px 25px
        rgba(
            113,
            100,
            82,
            0.06
        );

    text-align: left;
}


.dialogue-number {
    display: inline-block;

    margin-bottom: 14px;
    padding: 7px 10px;

    background: #f0ecf7;

    border-radius: 11px;

    color: #8175a4;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


/* ==================================================
   DIALOGUE ROW
================================================== */

.dialogue-row {
    margin: 10px 0;

    display: flex;
    align-items: center;
    gap: 12px;
}


.left-dialogue {
    justify-content: flex-start;
}


.right-dialogue {
    justify-content: flex-end;
}


.dialogue-avatar {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f3eff9,
            #eef3ec
        );

    border: 2px solid #e5deeb;
    border-radius: 18px;

    font-size: 31px;
}


/* ==================================================
   SPEECH BUBBLES
================================================== */

.speech-bubble {
    max-width: 75%;

    padding: 14px 17px;

    border: 2px solid #e4dde9;
    border-bottom: 5px solid #d3cadb;
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #faf8fd,
            #f4f0f8
        );

    color: #625a72;

    font-family: inherit;
    font-size: 17px;
    font-weight: 600;

    line-height: 1.35;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        background 0.16s ease;
}


.right-dialogue
.speech-bubble {
    background:
        linear-gradient(
            180deg,
            #f5f7ed,
            #edf2e5
        );

    border-color: #dce5cf;
    border-bottom-color: #cad6bb;

    color: #66705a;
}


.speech-bubble span {
    margin-left: 7px;

    font-size: 15px;
}


.speech-bubble:hover {
    transform:
        translateY(-2px);
}


.speech-bubble:active {
    transform:
        translateY(2px)
        scale(0.99);

    border-bottom-width: 2px;
}


.dialogue-speaking {
    animation:
        dialogueSpeaking
        0.48s
        ease;
}


@keyframes dialogueSpeaking {

    50% {
        transform: scale(1.025);

        box-shadow:
            0 7px 16px
            rgba(
                116,
                98,
                151,
                0.12
            );
    }
}


/* ==================================================
   VIDEO SECOND BUTTON
================================================== */

.secondary-video-link {
    margin-top: 12px;

    display: block;
}


/* ==================================================
   GAME — PHRASE ANSWERS
================================================== */

.game-choice {
    padding:
        14px
        12px;

    font-size:
        clamp(
            17px,
            2.3vw,
            23px
        );

    line-height: 1.25;
}


.game-question {
    line-height: 1.35;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 820px) {

    .phrase-progress-grid {
        grid-template-columns:
            repeat(7, 1fr);
    }

}


/* ==================================================
   PHONE
================================================== */

@media (max-width: 560px) {

    .phrase-part-card {
        padding: 14px;
    }


    .phrase-part-icon {
        width: 48px;
        height: 48px;

        font-size: 25px;
    }


    #phrasePartTitle {
        font-size: 16px;
    }


    .phrase-part-description {
        margin-left: 62px;

        font-size: 12px;
    }


    .phrase-progress-grid {
        grid-template-columns:
            repeat(7, 1fr);
    }


    .phrase-symbol {
        font-size: 35px;
    }


    .phrase-translation {
        font-size: 21px;
    }


    .dialogue-success-page {
        padding:
            30px
            17px;
    }


    .dialogue-card {
        padding: 15px;

        border-radius: 22px;
    }


    .dialogue-avatar {
        width: 46px;
        height: 46px;

        font-size: 26px;
    }


    .speech-bubble {
        max-width:
            calc(
                100% - 58px
            );

        padding:
            12px
            13px;

        font-size: 14px;

        border-radius: 17px;
    }


    .game-choice {
        min-height: 70px;

        font-size: 17px;
    }

}

/* ==================================================
   CONNECT THE PAIRS
================================================== */

.connect-game {
    width: min(760px, 100%);
    margin: 0 auto;
}


.connect-progress {
    margin-bottom: 22px;

    color: #817a8c;

    font-size: 14px;
    font-weight: 600;

    text-align: center;
}


.connect-board {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;

    padding: 22px 10px;

    touch-action: none;
}


.connect-lines {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;

    pointer-events: none;

    z-index: 2;
}


.connect-column {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    gap: 18px;
}


.connect-card {
    min-height: 70px;

    padding: 14px 17px;

    display: flex;
    align-items: center;
    gap: 14px;

    background:
        linear-gradient(
            180deg,
            #fffefb,
            #faf7f2
        );

    border: 2px solid #e8e1d8;
    border-bottom: 5px solid #d9d0c4;
    border-radius: 20px;

    color: #625d68;

    font-size: 17px;
    font-weight: 600;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}


.connect-left {
    justify-content: space-between;
}


.connect-right {
    justify-content: flex-start;
}


.connect-point {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    padding: 0;

    position: relative;

    border: 4px solid #bcb0d2;
    border-radius: 50%;

    background: #fff;

    cursor: grab;

    touch-action: none;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}


.connect-point::after {
    content: "";

    position: absolute;

    inset: 4px;

    background: #c6badd;

    border-radius: 50%;
}


.connect-point:hover {
    transform: scale(1.12);
}


.connect-point:active {
    cursor: grabbing;

    transform: scale(1.18);
}


.connection-line {
    fill: none;

    stroke: #9e90bd;
    stroke-width: 5;

    stroke-linecap: round;

    filter:
        drop-shadow(
            0 3px 3px
            rgba(91, 73, 130, 0.13)
        );
}


.drawing-line {
    stroke-dasharray: 8 7;
}


.correct-connection-line {
    stroke: #9fba87;

    animation:
        connectionSuccess
        0.35s
        ease;
}


.wrong-connection-line {
    stroke: #d9a0a0;

    animation:
        wrongConnection
        0.32s
        ease;
}


.connected-card {
    background:
        linear-gradient(
            180deg,
            #f4f8ee,
            #edf4e5
        );

    border-color: #cbdabf;
    border-bottom-color: #b4c9a3;
}


.connected-point {
    border-color: #9fba87;

    background: #edf5e7;

    pointer-events: none;
}


.connected-point::after {
    background: #9fba87;
}


@keyframes connectionSuccess {

    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}


@keyframes wrongConnection {

    0%,
    100% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }
}


/* ==================================================
   TYPING / WORD BUILDING
================================================== */

.typing-task,
.build-task,
.emotion-task {
    width: min(650px, 100%);

    margin: 0 auto;

    text-align: center;
}


.typing-sentence {
    margin:
        25px
        auto;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    color: #5d5867;

    font-size:
        clamp(
            24px,
            4vw,
            36px
        );

    font-weight: 600;
}


.game-text-input {
    width: 150px;

    padding:
        11px
        14px;

    border: 2px solid #dcd4e7;
    border-bottom: 5px solid #c9bed8;
    border-radius: 16px;

    background: #fff;

    color: #5c5669;

    font-family: "Fredoka", sans-serif;
    font-size: 23px;
    font-weight: 600;

    text-align: center;

    outline: none;

    transition: 0.18s ease;
}


.game-text-input:focus {
    border-color: #bbaed2;

    box-shadow:
        0 0 0 5px
        rgba(181, 166, 209, 0.12);
}


.correct-input {
    border-color: #afc89a !important;

    background: #f2f8ec !important;
}


.wrong-input {
    border-color: #dca5a5 !important;

    background: #fff2f2 !important;
}


.sentence-build-zone {
    min-height: 75px;

    margin:
        22px
        auto;

    padding: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #faf8f4;

    border: 2px dashed #d7cfe1;
    border-radius: 20px;

    color: #766e80;

    font-size: 23px;
    font-weight: 600;
}


.word-bank {
    margin-bottom: 25px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


.word-chip {
    padding:
        11px
        17px;

    background:
        linear-gradient(
            180deg,
            #f6f2fb,
            #eee9f5
        );

    border: 2px solid #ddd5e8;
    border-bottom: 5px solid #c9bed8;
    border-radius: 15px;

    color: #665d77;

    font-family: inherit;
    font-size: 18px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.15s ease;
}


.word-chip:hover {
    transform: translateY(-2px);
}


.used-word-chip {
    opacity: 0.4;

    transform: translateY(2px);

    pointer-events: none;
}


/* ==================================================
   FEELINGS
================================================== */

.emotion-face {
    margin-bottom: 18px;

    font-size:
        clamp(
            80px,
            13vw,
            125px
        );

    animation:
        emotionFloat
        2.4s
        ease-in-out
        infinite;
}


@keyframes emotionFloat {

    50% {
        transform:
            translateY(-7px)
            rotate(2deg);
    }
}


.emotion-task h3 {
    margin-bottom: 22px;

    color: #655f70;

    font-size: 25px;
}


.big-listen-button {
    margin:
        10px
        auto
        25px;
}


/* ==================================================
   FIX THE CHAT
================================================== */

.fix-chat-game {
    width: min(680px, 100%);

    margin: 0 auto;

    text-align: center;
}


.chat-window {
    margin-bottom: 28px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    gap: 13px;

    background:
        linear-gradient(
            180deg,
            #fffdfa,
            #f8f5ef
        );

    border: 2px solid #e9e2d8;
    border-radius: 27px;

    box-shadow:
        0 12px 30px
        rgba(90, 76, 60, 0.07);
}


.chat-line {
    max-width: 82%;

    padding:
        12px
        16px;

    border-radius: 18px;

    color: #5e5966;

    font-size: 17px;
    font-weight: 600;
}


.chat-left {
    align-self: flex-start;

    background: #f1edf7;

    border-bottom-left-radius: 6px;
}


.chat-right {
    align-self: flex-end;

    background: #edf3e8;

    border-bottom-right-radius: 6px;
}


.chat-error {
    text-decoration:
        underline
        wavy
        #d99a9a;

    text-decoration-thickness: 2px;
}


.chat-fix-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}


.chat-fix-chip,
.chat-ending-choice {
    padding:
        8px
        13px;

    background: #fff;

    border: 2px solid #ded6e7;
    border-radius: 12px;

    color: #6b6378;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
}


.selected-fix-chip,
.selected-ending {
    background: #edf5e6;

    border-color: #b8ceaa;
}


.chat-input {
    width: 105px;

    padding:
        6px
        8px;

    border: 2px solid #d4ccdf;
    border-radius: 10px;

    background: #fff;

    font-family: inherit;
    font-size: 16px;

    outline: none;
}


.name-input {
    width: 125px;
}


.chat-select {
    padding:
        7px
        10px;

    border: 2px solid #ced9c4;
    border-radius: 11px;

    background: #fff;

    color: #5c6655;

    font-family: inherit;
    font-size: 15px;
}


/* ==================================================
   SMALL GAME INFO
================================================== */

.mini-game-step {
    margin-bottom: 14px;

    color: #91889d;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    text-align: center;
}


/* ==================================================
   MOBILE CONNECT
================================================== */

@media (max-width: 600px) {

    .connect-board {
        gap: 42px;

        padding:
            14px
            0;
    }


    .connect-card {
        min-height: 62px;

        padding:
            10px
            9px;

        gap: 7px;

        font-size: 13px;

        border-radius: 15px;
    }


    .connect-point {
        width: 21px;
        height: 21px;

        border-width: 3px;
    }


    .connection-line {
        stroke-width: 4;
    }


    .typing-sentence {
        font-size: 23px;
    }


    .game-text-input {
        width: 120px;

        font-size: 20px;
    }


    .chat-window {
        padding: 14px;
    }


    .chat-line {
        max-width: 92%;

        font-size: 14px;
    }

}

/* ==================================================
   LESSON 2 — BIG PART CARDS
================================================== */

.lesson-parts-page {
    min-height: 720px;
    padding: 52px 46px 56px;

    background:
        linear-gradient(
            180deg,
            #fffefb 0%,
            #fbf8f3 100%
        );

    border: 2px solid #eee7dc;
    border-radius: var(--card-radius);

    box-shadow:
        0 20px 55px
        rgba(132, 119, 93, 0.08);
}


.lesson-parts-heading {
    max-width: 720px;
    margin: 0 auto 34px;

    text-align: center;
}


.lesson-parts-heading h2 {
    margin:
        0
        0
        12px;

    color: #4f4b58;

    font-size:
        clamp(
            38px,
            5vw,
            54px
        );

    line-height: 1.08;
}


.lesson-parts-heading > p:last-child {
    margin: 0;

    color: #807b87;

    font-size: 16px;
    line-height: 1.55;
}


/* ==================================================
   PART LIST
================================================== */

.lesson-parts-list {
    width: min(760px, 100%);
    margin: 0 auto;
}


/* ==================================================
   BIG PART CARD
================================================== */

.lesson-part-card {
    width: 100%;
    padding: 0;

    display: block;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f1
        );

    border: 2px solid #e8e1d8;
    border-bottom: 7px solid #d9d0c4;
    border-radius: 28px;

    box-shadow:
        0 12px 28px
        rgba(103, 88, 69, 0.07);

    color: inherit;

    font-family: "Fredoka", sans-serif;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        filter 0.18s ease;
}


.lesson-part-card:not(:disabled):hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 34px
        rgba(103, 88, 69, 0.11);
}


.lesson-part-card:not(:disabled):active {
    transform: translateY(2px);

    border-bottom-width: 3px;
}


/* ==================================================
   TOP
================================================== */

.lesson-part-top {
    padding:
        16px
        20px
        12px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom:
        1px solid
        rgba(124, 112, 96, 0.08);
}


.lesson-part-number {
    color: #8a7ca5;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.lesson-part-status {
    padding:
        7px
        11px;

    background: #f0ecf7;

    border-radius: 12px;

    color: #7d70a0;

    font-size: 11px;
    font-weight: 700;
}


/* ==================================================
   MAIN
================================================== */

.lesson-part-main {
    padding: 23px 22px;

    display: flex;
    align-items: center;
    gap: 20px;
}


.lesson-part-icon {
    width: 88px;
    height: 88px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f1edf8,
            #eef4ec
        );

    border: 2px solid #e2dbea;
    border-bottom: 5px solid #d2c7df;
    border-radius: 25px;

    box-shadow:
        0 8px 18px
        rgba(103, 88, 132, 0.08);

    font-size: 45px;
}


.lesson-part-information {
    flex: 1;
}


.lesson-part-information h3 {
    margin:
        0
        0
        8px;

    color: #504a59;

    font-size: 27px;
    font-weight: 700;
}


.lesson-part-information p {
    max-width: 470px;

    margin:
        0
        0
        13px;

    color: #7e7884;

    font-size: 15px;
    line-height: 1.45;
}


.lesson-part-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.lesson-part-meta span {
    padding:
        6px
        10px;

    background: #f5f1f8;

    border-radius: 10px;

    color: #81788e;

    font-size: 11px;
    font-weight: 600;
}


/* ==================================================
   FOOTER
================================================== */

.lesson-part-footer {
    padding:
        13px
        20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background:
        rgba(246, 242, 236, 0.75);
}


.lesson-part-footer > span {
    color: #918a94;

    font-size: 12px;
    font-weight: 600;
}


.lesson-part-footer strong {
    color: #7a6d9e;

    font-size: 13px;
}


/* ==================================================
   DIFFERENT PART ACCENTS
================================================== */

.lesson-part-one {
    border-color: #e5deeb;
    border-bottom-color: #d2c8df;
}


.lesson-part-one .lesson-part-icon {
    background:
        linear-gradient(
            135deg,
            #f1ecfa,
            #edf6f5
        );
}


.lesson-part-two {
    border-color: #dce6eb;
    border-bottom-color: #c9d8df;
}


.lesson-part-two .lesson-part-icon {
    background:
        linear-gradient(
            135deg,
            #eef5f8,
            #f2f0fa
        );

    border-color: #dce5eb;
    border-bottom-color: #c8d6de;
}


.lesson-part-three {
    border-color: #e1e7d8;
    border-bottom-color: #ced8c0;
}


.lesson-part-three .lesson-part-icon {
    background:
        linear-gradient(
            135deg,
            #f3f7ed,
            #fff5e8
        );

    border-color: #e1e8d7;
    border-bottom-color: #cfdbc0;
}


/* ==================================================
   LOCKED
================================================== */

.locked-part {
    opacity: 0.62;

    filter: grayscale(0.2);

    cursor: not-allowed;
}


.locked-part .lesson-part-status {
    background: #efedef;

    color: #9a949e;
}


.locked-part .lesson-part-footer strong {
    color: #a39da6;
}


/* ==================================================
   COMPLETED
================================================== */

.completed-part {
    background:
        linear-gradient(
            180deg,
            #f7faF3,
            #f0f6e9
        );

    border-color: #cbdcbd;
    border-bottom-color: #b4c9a3;
}


.completed-part .lesson-part-status {
    background: #e9f3e2;

    color: #6f865f;
}


.completed-part .lesson-part-footer strong {
    color: #708861;
}


/* ==================================================
   ROAD BETWEEN CARDS
================================================== */

.lesson-part-road {
    height: 48px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


.lesson-part-road span {
    width: 7px;
    height: 7px;

    background: #d4cadf;

    border-radius: 50%;
}


/* ==================================================
   PARTS PROGRESS CARD
================================================== */

.parts-progress-card {
    width: min(620px, 100%);

    margin:
        34px
        auto
        0;

    padding: 17px 18px;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;

    background:
        linear-gradient(
            135deg,
            #f8f4fb,
            #f3f6ef
        );

    border: 2px solid #e4ddeb;
    border-radius: 20px;
}


.parts-progress-card span {
    display: block;

    color: #8c8494;

    font-size: 11px;
}


.parts-progress-card strong {
    display: block;

    margin-top: 2px;

    color: #655d70;

    font-size: 17px;
}


.parts-progress-track {
    height: 12px;
    padding: 2px;

    background: #e8e4ec;

    border-radius: 999px;
}


.parts-progress-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #b8c99f,
            #cedab5
        );

    border-radius: inherit;

    transition: width 0.4s ease;
}


/* ==================================================
   PART LEARNING PAGE
================================================== */

.part-learning-page {
    min-height: 760px;
    padding:
        40px
        44px
        52px;

    position: relative;

    background:
        linear-gradient(
            180deg,
            #fffefb,
            #fbf8f3
        );

    border: 2px solid #eee7dc;
    border-radius: var(--card-radius);

    box-shadow:
        0 20px 55px
        rgba(132, 119, 93, 0.08);
}


/* ==================================================
   BACK BUTTON
================================================== */

.part-back-button {
    margin-bottom: 26px;
}


/* ==================================================
   PART HEADING
================================================== */

.part-learning-heading {
    max-width: 700px;

    margin:
        0
        auto
        25px;

    text-align: center;
}


.part-learning-icon {
    width: 90px;
    height: 90px;

    margin:
        0
        auto
        18px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f0ecf7,
            #eef4ed
        );

    border: 2px solid #e2dbea;
    border-bottom: 6px solid #d1c7dd;
    border-radius: 28px;

    font-size: 47px;
}


.part-learning-heading h2 {
    margin:
        0
        0
        9px;

    color: #514b5b;

    font-size:
        clamp(
            38px,
            5vw,
            52px
        );
}


.part-learning-heading > p:last-child {
    margin: 0;

    color: #7d7784;

    font-size: 15px;
}


/* ==================================================
   PART LEARNING PROGRESS
================================================== */

.part-learning-progress {
    width: min(620px, 100%);

    margin:
        0
        auto
        24px;

    padding: 15px 17px;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 17px;

    background: #faf7f2;

    border: 2px solid #ebe4da;
    border-radius: 19px;
}


.part-learning-progress span {
    display: block;

    color: #8b8490;

    font-size: 11px;
}


.part-learning-progress strong {
    color: #655e6d;

    font-size: 17px;
}


/* ==================================================
   PHRASE CARD IN PART
================================================== */

.part-learning-page
.phrase-learning-card {
    width: min(620px, 100%);

    margin:
        0
        auto;

    min-height: 390px;
}


/* ==================================================
   FINISHED PART
================================================== */

.part-finished-card {
    width: min(560px, 100%);

    margin:
        30px
        auto
        0;

    padding:
        24px
        22px;

    background:
        linear-gradient(
            135deg,
            #f3f8ec,
            #fff8e9
        );

    border: 2px solid #dce5cf;
    border-bottom: 6px solid #c6d5b7;
    border-radius: 24px;

    box-shadow:
        0 10px 24px
        rgba(91, 110, 70, 0.08);

    text-align: center;
}


.part-finished-card[hidden] {
    display: none;
}


.part-finished-icon {
    margin-bottom: 8px;

    font-size: 46px;
}


.part-finished-card strong {
    display: block;

    margin-bottom: 7px;

    color: #627055;

    font-size: 22px;
}


.part-finished-card p {
    margin:
        0
        0
        18px;

    color: #79816f;

    font-size: 14px;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    .lesson-parts-page {
        padding:
            36px
            14px
            42px;
    }


    .lesson-parts-heading h2 {
        font-size: 36px;
    }


    .lesson-part-main {
        padding: 18px 15px;

        gap: 13px;
    }


    .lesson-part-icon {
        width: 67px;
        height: 67px;

        border-radius: 20px;

        font-size: 35px;
    }


    .lesson-part-information h3 {
        font-size: 21px;
    }


    .lesson-part-information p {
        font-size: 13px;
    }


    .lesson-part-meta span {
        font-size: 10px;
    }


    .lesson-part-top,
    .lesson-part-footer {
        padding-left: 15px;
        padding-right: 15px;
    }


    .parts-progress-card {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .part-learning-page {
        padding:
            28px
            14px
            40px;
    }


    .part-learning-icon {
        width: 76px;
        height: 76px;

        font-size: 40px;
    }


    .part-learning-heading h2 {
        font-size: 36px;
    }


    .part-learning-progress {
        grid-template-columns: 1fr;

        gap: 8px;
    }

}


