/* =========================================================
   ProGreek — основной стиль сайта
   ========================================================= */


/* ---------- Переменные ---------- */

:root {
    --emerald-dark: #123f38;
    --emerald: #1d6b5c;
    --emerald-light: #dcece7;
    --emerald-pale: #f3f8f6;

    --gold: #c6a15b;
    --gold-light: #ead9b3;

    --lavender: #eee8f5;
    --lavender-dark: #766287;

    --white: #ffffff;
    --background: #f6f5f1;

    --text-dark: #24312e;
    --text-medium: #65716e;
    --text-light: #89938f;

    --success: #2f8a67;
    --success-light: #e5f5ee;

    --error: #b64f4f;
    --error-light: #faeaea;

    --border: #dfe5e2;

    --shadow-small:
        0 5px 18px rgba(18, 63, 56, 0.07);

    --shadow-medium:
        0 14px 36px rgba(18, 63, 56, 0.11);

    --shadow-large:
        0 22px 55px rgba(18, 63, 56, 0.16);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;

    --transition: 0.28s ease;
}


/* ---------- Сброс ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(198, 161, 91, 0.08),
            transparent 34%
        ),
        var(--background);

    color: var(--text-dark);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.55;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   Шапка
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid rgba(18, 63, 56, 0.08);

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--emerald-dark);

    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.logo-symbol {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--emerald),
            var(--emerald-dark)
        );

    color: var(--white);

    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;

    box-shadow:
        0 7px 18px rgba(18, 63, 56, 0.2);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;

    border-radius: 999px;

    color: var(--text-medium);

    font-size: 14px;
    font-weight: 650;

    transition:
        color var(--transition),
        background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--emerald-pale);
    color: var(--emerald-dark);
}


/* =========================================================
   Страница урока
   ========================================================= */

.lesson-page {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 70px;
}


/* ---------- Верхний блок урока ---------- */

.lesson-hero {
    margin-bottom: 26px;
    padding: 34px;

    border: 1px solid rgba(198, 161, 91, 0.22);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(243, 248, 246, 0.96)
        );

    box-shadow: var(--shadow-medium);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 22px;

    color: var(--emerald);

    font-size: 14px;
    font-weight: 700;
}

.back-link:hover {
    color: var(--emerald-dark);
}


/* Длинное белое окошко урока */

.lesson-title-label {
    display: inline-flex;
    align-items: center;

    width: auto;
    min-width: 360px;
    max-width: 100%;

    min-height: 44px;
    padding: 10px 22px;
    margin-bottom: 22px;

    border: 1px solid rgba(18, 63, 56, 0.1);
    border-radius: 999px;

    background: var(--white);
    color: var(--emerald-dark);

    font-size: 15px;
    font-weight: 750;

    box-shadow: var(--shadow-small);

    white-space: normal;
}

.lesson-hero h1 {
    margin: 0;

    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 70px);
    font-weight: 500;
    line-height: 1.08;
}

.lesson-subtitle {
    max-width: 620px;
    margin: 13px 0 26px;

    color: var(--text-medium);

    font-size: 17px;
}


/* ---------- Прогресс ---------- */

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    color: var(--text-medium);

    font-size: 14px;
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 9px;

    overflow: hidden;

    border-radius: 999px;

    background: #e3e9e6;
}

.progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--emerald),
            #4fa889,
            var(--gold)
        );

    transition: width 0.6s ease;
}


/* ---------- Быстрый переход к тесту ---------- */

.quick-test-button {
    margin-top: 24px;
    padding: 12px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid rgba(198, 161, 91, 0.42);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.86);
    color: var(--emerald-dark);

    font-size: 14px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.quick-test-button:hover {
    transform: translateY(-2px);

    background: var(--white);

    box-shadow: var(--shadow-small);
}


/* =========================================================
   Аккордеон
   ========================================================= */

.lesson-accordion {
    display: grid;
    gap: 14px;
}

.lesson-section {
    overflow: hidden;

    border: 1px solid rgba(18, 63, 56, 0.09);
    border-radius: var(--radius-medium);

    background: var(--white);

    box-shadow: var(--shadow-small);

    transition:
        box-shadow var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.lesson-section:hover {
    border-color: rgba(29, 107, 92, 0.22);
}

.lesson-section.is-open {
    border-color: rgba(29, 107, 92, 0.28);

    box-shadow: var(--shadow-medium);
}

.lesson-section-header {
    width: 100%;
    min-height: 82px;
    padding: 17px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: 0;

    background: transparent;

    text-align: left;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);
}

.lesson-section-header:hover {
    background: var(--emerald-pale);
}

.lesson-section.is-open .lesson-section-header {
    background:
        linear-gradient(
            90deg,
            rgba(220, 236, 231, 0.58),
            rgba(255, 255, 255, 0.95)
        );
}

.section-header-left {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--emerald-pale);
    color: var(--emerald-dark);

    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 700;
}

.lesson-section.is-open .section-icon {
    background:
        linear-gradient(
            145deg,
            var(--emerald),
            var(--emerald-dark)
        );

    color: var(--white);
}

.section-title-group {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.section-title {
    color: var(--text-dark);

    font-size: 17px;
    font-weight: 800;
}

.section-status {
    overflow: hidden;

    color: var(--text-light);

    font-size: 13px;
    font-weight: 550;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--emerald-pale);
    color: var(--emerald-dark);

    font-size: 22px;
    line-height: 1;

    transition:
        transform var(--transition),
        background var(--transition);
}

.lesson-section.is-open .accordion-arrow {
    transform: rotate(180deg);

    background: var(--emerald-light);
}


/* ---------- Содержимое аккордеона ---------- */

.lesson-section-content {
    border-top: 1px solid rgba(18, 63, 56, 0.08);

    background: #fdfdfc;
}

.section-inner {
    padding: 28px;
}


/* =========================================================
   Видео
   ========================================================= */

.video-wrapper {
    position: relative;

    overflow: hidden;

    width: 100%;
    aspect-ratio: 16 / 9;

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            #173f38,
            #0d2723
        );

    box-shadow: var(--shadow-medium);
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;

    border: 0;
}

.video-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 15px;
    font-weight: 700;
}

.video-play-icon {
    width: 72px;
    height: 72px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding-left: 5px;

    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);

    font-size: 28px;

    backdrop-filter: blur(8px);
}


/* =========================================================
   Кнопка завершения раздела
   ========================================================= */

.section-complete-button {
    margin-top: 24px;
    padding: 11px 18px;

    border: 1px solid rgba(29, 107, 92, 0.22);
    border-radius: 999px;

    background: var(--white);
    color: var(--emerald);

    font-size: 14px;
    font-weight: 750;

    cursor: pointer;

    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.section-complete-button:hover {
    transform: translateY(-1px);

    background: var(--emerald-pale);
}

.section-complete-button.is-complete {
    border-color: transparent;

    background: var(--success-light);
    color: var(--success);
}


/* =========================================================
   Интерактивные карточки
   ========================================================= */

.flashcard-app {
    max-width: 700px;
    margin: 0 auto;
}

.flashcard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 14px;

    color: var(--text-medium);

    font-size: 13px;
    font-weight: 700;
}

.flashcard-scene {
    width: 100%;
    min-height: 340px;

    perspective: 1200px;
}

.flashcard {
    width: 100%;
    height: 340px;
    padding: 0;

    border: 0;
    border-radius: var(--radius-large);

    background: transparent;

    cursor: pointer;
}

.flashcard-inner {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;

    transition: transform 0.62s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.flashcard.is-flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    inset: 0;

    padding: 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(18, 63, 56, 0.11);
    border-radius: var(--radius-large);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    box-shadow: var(--shadow-large);
}

.flashcard-front {
    background:
        radial-gradient(
            circle at top right,
            rgba(198, 161, 91, 0.18),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f1f8f5
        );
}

.flashcard-back {
    transform: rotateY(180deg);

    background:
        radial-gradient(
            circle at bottom left,
            rgba(238, 232, 245, 0.5),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            var(--emerald-dark),
            #285e52
        );

    color: var(--white);
}

.flashcard-greek {
    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 7vw, 62px);
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
}

.flashcard-transcription {
    margin-top: 13px;

    color: var(--text-medium);

    font-size: 17px;
}

.flashcard-translation {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 5vw, 45px);
    line-height: 1.2;
    text-align: center;
}

.flashcard-note {
    max-width: 450px;
    margin-top: 15px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 15px;
    text-align: center;
}

.flashcard-hint {
    position: absolute;
    bottom: 23px;

    color: var(--text-light);

    font-size: 12px;
    font-weight: 650;
}

.flashcard-back .flashcard-hint {
    color: rgba(255, 255, 255, 0.56);
}


/* ---------- Управление карточками ---------- */

.flashcard-controls {
    margin-top: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.flashcard-control-button,
.flashcard-audio-button,
.flashcard-known-button {
    min-height: 46px;

    border: 1px solid rgba(18, 63, 56, 0.13);

    background: var(--white);

    cursor: pointer;

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.flashcard-control-button,
.flashcard-audio-button {
    width: 46px;

    border-radius: 50%;

    font-size: 19px;
}

.flashcard-known-button {
    padding: 0 23px;

    border-radius: 999px;

    color: var(--emerald);

    font-size: 14px;
    font-weight: 800;
}

.flashcard-control-button:hover,
.flashcard-audio-button:hover,
.flashcard-known-button:hover {
    transform: translateY(-2px);

    border-color: rgba(29, 107, 92, 0.27);

    background: var(--emerald-pale);
}

.flashcard-known-button.is-known {
    border-color: transparent;

    background: var(--success);
    color: var(--white);
}

.shuffle-cards-button {
    margin: 15px auto 0;
    padding: 9px 16px;

    display: block;

    border: 0;

    background: transparent;
    color: var(--text-medium);

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.shuffle-cards-button:hover {
    color: var(--emerald);
}


/* =========================================================
   Задания
   ========================================================= */

.exercise-card,
.test-question {
    padding: 24px;
    margin-bottom: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--white);

    box-shadow:
        0 7px 20px rgba(18, 63, 56, 0.045);
}

.exercise-card:last-of-type,
.test-question:last-of-type {
    margin-bottom: 0;
}

.exercise-number,
.test-question-number {
    margin: 0 0 7px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.exercise-card h3,
.test-question h3 {
    margin: 0 0 18px;

    color: var(--text-dark);

    font-size: 17px;
    line-height: 1.4;
}

.answer-option {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    width: 100%;
    padding: 13px 15px;
    margin-bottom: 10px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #fdfdfc;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.answer-option:hover {
    transform: translateX(2px);

    border-color: rgba(29, 107, 92, 0.28);

    background: var(--emerald-pale);
}

.answer-option input {
    margin-top: 3px;

    accent-color: var(--emerald);
}

.answer-option:has(input:checked) {
    border-color: var(--emerald);

    background: var(--emerald-pale);
}

.answer-option.is-correct {
    border-color: var(--success);

    background: var(--success-light);
}

.answer-option.is-wrong {
    border-color: var(--error);

    background: var(--error-light);
}

.check-answer-button,
.save-writing-button {
    margin-top: 9px;
    padding: 10px 17px;

    border: 0;
    border-radius: 999px;

    background: var(--emerald);
    color: var(--white);

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.check-answer-button:hover,
.save-writing-button:hover {
    transform: translateY(-1px);

    background: var(--emerald-dark);
}

.answer-result,
.writing-message {
    min-height: 22px;
    margin: 10px 0 0;

    font-size: 13px;
    font-weight: 700;
}

.answer-result.is-correct,
.writing-message.is-success {
    color: var(--success);
}

.answer-result.is-wrong,
.writing-message.is-error {
    color: var(--error);
}


/* =========================================================
   Мини-правило
   ========================================================= */

.mini-rule {
    margin-bottom: 20px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.mini-rule > div {
    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    border: 1px solid rgba(29, 107, 92, 0.14);
    border-radius: var(--radius-medium);

    background: var(--emerald-pale);
}

.mini-rule strong {
    color: var(--emerald-dark);

    font-family: Georgia, serif;
    font-size: 22px;
}

.mini-rule span {
    color: var(--text-medium);

    font-size: 13px;
}


/* =========================================================
   Аудио
   ========================================================= */

.lesson-audio-player {
    margin-bottom: 20px;
    padding: 18px;

    border: 1px solid rgba(29, 107, 92, 0.13);
    border-radius: var(--radius-medium);

    background: var(--emerald-pale);
}

.lesson-audio-player audio {
    width: 100%;
}


/* =========================================================
   Диалог
   ========================================================= */

.dialogue {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dialogue-message {
    max-width: 73%;
    padding: 14px 17px;

    border-radius: 18px;

    box-shadow: var(--shadow-small);
}

.dialogue-left {
    align-self: flex-start;

    border-bottom-left-radius: 5px;

    background: var(--white);
}

.dialogue-right {
    align-self: flex-end;

    border-bottom-right-radius: 5px;

    background: var(--emerald-light);
}

.dialogue-speaker {
    display: block;

    margin-bottom: 3px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dialogue-message p {
    margin: 0;

    color: var(--emerald-dark);

    font-family: Georgia, serif;
    font-size: 19px;
}

.dialogue-translation {
    display: block;

    margin-top: 4px;

    color: var(--text-medium);

    font-size: 12px;
}


/* =========================================================
   Письменная практика
   ========================================================= */

.writing-prompt {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 20px;
}

.writing-prompt span {
    padding: 8px 12px;

    border: 1px solid rgba(29, 107, 92, 0.15);
    border-radius: 999px;

    background: var(--emerald-pale);
    color: var(--emerald-dark);

    font-family: Georgia, serif;
    font-size: 15px;
}

.writing-label {
    display: block;

    margin-bottom: 9px;

    font-size: 14px;
    font-weight: 750;
}

.writing-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    outline: none;

    background: var(--white);
    color: var(--text-dark);

    line-height: 1.65;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.writing-textarea:focus {
    border-color: var(--emerald);

    box-shadow:
        0 0 0 4px rgba(29, 107, 92, 0.09);
}


/* =========================================================
   Финальный тест
   ========================================================= */

.final-test-section {
    border-color: rgba(198, 161, 91, 0.34);
}

.final-test-header {
    background:
        linear-gradient(
            90deg,
            rgba(234, 217, 179, 0.19),
            rgba(255, 255, 255, 0.9)
        );
}

.final-test-section .section-icon {
    background: #f7eedc;
    color: #9c7837;
}

.final-test-section.is-open .section-icon {
    background:
        linear-gradient(
            145deg,
            var(--gold),
            #9f7a3d
        );

    color: var(--white);
}

.test-top {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.test-top > div:first-child {
    display: flex;
    flex-direction: column;
}

.test-top strong {
    color: var(--emerald-dark);

    font-size: 17px;
}

.test-top span {
    color: var(--text-medium);

    font-size: 13px;
}

.best-result {
    padding: 9px 14px;

    border-radius: 999px;

    background: var(--gold-light);
    color: #705426;

    font-size: 13px;
}

.test-dialogue-line {
    padding: 10px 13px;

    border-left: 3px solid var(--gold);

    background: #fbf8f1;
    color: var(--emerald-dark);

    font-family: Georgia, serif;
    font-size: 18px;
}

.test-submit-area {
    padding: 26px;

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            var(--emerald-dark),
            #245f52
        );

    color: var(--white);

    text-align: center;
}

.test-submit-button {
    padding: 13px 25px;

    border: 0;
    border-radius: 999px;

    background: var(--gold);
    color: #2c2416;

    font-size: 14px;
    font-weight: 850;

    cursor: pointer;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.15);

    transition:
        transform var(--transition),
        filter var(--transition);
}

.test-submit-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);
}

.test-submit-area p {
    margin: 11px 0 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;
}


/* ---------- Результат теста ---------- */

.test-result {
    margin-top: 22px;
    padding: 30px;

    border: 1px solid rgba(29, 107, 92, 0.15);
    border-radius: var(--radius-large);

    background: var(--white);

    text-align: center;

    box-shadow: var(--shadow-medium);
}

.test-result.is-passed {
    border-color: rgba(47, 138, 103, 0.3);

    background:
        linear-gradient(
            145deg,
            var(--success-light),
            var(--white)
        );
}

.test-result.is-failed {
    border-color: rgba(182, 79, 79, 0.25);

    background:
        linear-gradient(
            145deg,
            var(--error-light),
            var(--white)
        );
}

.test-result-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gold-light);
    color: #8b682f;

    font-size: 28px;
}

.test-result h3 {
    margin: 0 0 8px;

    color: var(--emerald-dark);
}

.test-score {
    margin: 0 0 7px;

    color: var(--emerald);

    font-size: 32px;
    font-weight: 850;
}

.test-actions {
    margin-top: 17px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.retry-test-button,
.return-to-video-button,
.open-next-lesson-button {
    min-height: 44px;
    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.retry-test-button {
    border: 0;

    background: var(--emerald);
    color: var(--white);
}

.return-to-video-button {
    border: 1px solid rgba(29, 107, 92, 0.2);

    background: var(--white);
    color: var(--emerald);
}

.open-next-lesson-button {
    background: var(--gold);
    color: #322817;
}


/* =========================================================
   Следующий урок
   ========================================================= */

.next-lesson-card {
    margin-top: 26px;
    padding: 24px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;

    border: 1px solid rgba(18, 63, 56, 0.11);
    border-radius: var(--radius-large);

    background: var(--white);

    box-shadow: var(--shadow-small);

    transition:
        opacity var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.next-lesson-card.is-locked {
    opacity: 0.7;
}

.next-lesson-card.is-unlocked {
    border-color: rgba(198, 161, 91, 0.45);

    box-shadow: var(--shadow-medium);
}

.next-lesson-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--emerald-pale);

    font-size: 21px;
}

.next-lesson-label {
    color: var(--gold);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.next-lesson-info h2 {
    margin: 2px 0;

    color: var(--emerald-dark);

    font-size: 20px;
}

.next-lesson-info p {
    margin: 0;

    color: var(--text-medium);

    font-size: 13px;
}

.next-lesson-button {
    padding: 10px 17px;

    border-radius: 999px;

    background: var(--emerald);
    color: var(--white);

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   Подвал
   ========================================================= */

.site-footer {
    border-top: 1px solid rgba(18, 63, 56, 0.08);

    background: rgba(255, 255, 255, 0.65);
}

.footer-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 74px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   Адаптация для планшетов
   ========================================================= */

@media (max-width: 760px) {

    .header-container {
        min-height: 64px;
    }

    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 8px 9px;

        font-size: 12px;
    }

    .lesson-page {
        width: min(100% - 24px, 940px);
        padding-top: 22px;
    }

    .lesson-hero {
        padding: 25px 22px;
    }

    .lesson-title-label {
        min-width: 0;
        width: 100%;

        border-radius: 16px;

        text-align: left;
    }

    .lesson-section-header {
        min-height: 75px;
        padding: 15px 17px;
    }

    .section-inner {
        padding: 21px 17px;
    }

    .flashcard-scene,
    .flashcard {
        min-height: 300px;
        height: 300px;
    }

    .mini-rule {
        grid-template-columns: 1fr;
    }

    .test-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .next-lesson-card {
        grid-template-columns: auto 1fr;
    }

    .next-lesson-button {
        grid-column: 1 / -1;

        width: 100%;
    }
}


/* =========================================================
   Адаптация для телефона
   ========================================================= */

@media (max-width: 540px) {

    .header-container {
        width: min(100% - 22px, 1180px);
    }

    .logo span:last-child {
        display: none;
    }

    .logo-symbol {
        width: 35px;
        height: 35px;
    }

    .main-nav a {
        padding: 7px 8px;

        font-size: 11px;
    }

    .lesson-hero {
        border-radius: 21px;
    }

    .lesson-hero h1 {
        font-size: 44px;
    }

    .lesson-subtitle {
        font-size: 15px;
    }

    .quick-test-button {
        width: 100%;
    }

    .lesson-section {
        border-radius: 15px;
    }

    .lesson-section-header {
        gap: 10px;
    }

    .section-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;

        border-radius: 12px;
    }

    .section-title {
        font-size: 15px;
    }

    .section-status {
        max-width: 215px;

        font-size: 11px;
    }

    .accordion-arrow {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .flashcard-scene,
    .flashcard {
        min-height: 270px;
        height: 270px;
    }

    .flashcard-face {
        padding: 26px 20px;
    }

    .flashcard-greek {
        font-size: 38px;
    }

    .flashcard-controls {
        gap: 8px;
    }

    .flashcard-control-button,
    .flashcard-audio-button {
        width: 43px;
        min-height: 43px;
    }

    .flashcard-known-button {
        min-height: 43px;
        padding: 0 18px;
    }

    .exercise-card,
    .test-question {
        padding: 18px 15px;
    }

    .answer-option {
        padding: 12px;
    }

    .dialogue-message {
        max-width: 88%;
    }

    .test-result {
        padding: 24px 18px;
    }

    .test-actions {
        flex-direction: column;
    }

    .retry-test-button,
    .return-to-video-button,
    .open-next-lesson-button {
        width: 100%;
    }

    .footer-container {
        width: min(100% - 24px, 1180px);
    }
}


/* =========================================================
   Уменьшение анимаций
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   ВИДЕОУРОК
   ========================================================= */

.video-lesson-landing{

    display:flex;
    flex-direction:column;
    gap:32px;

}


/* ---------- Видео ---------- */

.video-player-wrapper{

    position:relative;
    width:100%;
    overflow:hidden;

    border-radius:24px;

    background:#000;

    box-shadow:
        0 25px 60px rgba(0,0,0,.12);

}

.video-player-wrapper::before{

    content:"";

    display:block;

    padding-top:56.25%;

}

.video-player-wrapper iframe{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    border:none;

}


/* ---------- Верхняя карточка ---------- */

.video-lesson-intro {
    display: flex;
    flex-direction: column;
    gap: 28px;

    padding: 0 28px;
}

.video-lesson-heading{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:30px;

}

.video-lesson-label{

    display:inline-block;

    padding:7px 16px;

    border-radius:100px;

    background:#EAF7F4;

    color:#0A7564;

    font-weight:700;

    font-size:.85rem;

    margin-bottom:14px;

}

.video-lesson-heading h3{

    margin:0;

    font-size:2rem;

    color:#18352F;

}

.video-lesson-heading p{

    margin-top:10px;

    color:#61746F;

    max-width:700px;

    line-height:1.7;

}

.video-duration{

    min-width:170px;

    display:flex;

    align-items:center;

    gap:14px;

    background:#fff;

    border-radius:18px;

    padding:18px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

}

.video-duration-icon{

    width:56px;
    height:56px;

    border-radius:50%;

    background:#0A7564;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

}

.video-duration small{

    display:block;

    color:#888;

}

.video-duration strong{

    font-size:1.2rem;

}


/* ---------- Что изучим ---------- */

.video-learning-card{

    background:white;

    border-radius:22px;

    padding:28px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

}

.video-learning-card h4{

    margin:0 0 20px;

}

.video-learning-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:18px;

}

.video-learning-item{

    display:flex;

    gap:14px;

    align-items:flex-start;

    background:#F7FBFA;

    padding:18px;

    border-radius:16px;

}

.video-learning-item span{

    color:#0A7564;

    font-weight:bold;

}


/* ---------- Таймкоды ---------- */

.video-timestamps{

    background:white;

    border-radius:22px;

    padding:30px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

}

.video-block-heading>div{

    display:flex;

    gap:16px;

    align-items:center;

}

.video-block-heading h4{

    margin:0;

}

.video-block-heading p{

    margin-top:4px;

    color:#888;

}

.video-block-icon{

    width:46px;

    height:46px;

    border-radius:14px;

    background:#EAF7F4;

    color:#0A7564;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

}

.timestamp-list{

    margin-top:25px;

    display:flex;

    flex-direction:column;

    gap:12px;

}

.timestamp-button{

    width:100%;

    border:none;

    background:#F8FAFA;

    border-radius:16px;

    padding:18px 22px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    cursor:pointer;

    transition:.25s;

}

.timestamp-button:hover{

    background:#EDF8F6;

    transform:translateX(5px);

}

.timestamp-button.is-active{

    background:#0A7564;

    color:white;

}

.timestamp-time{

    width:90px;

    font-weight:700;

}

.timestamp-title{

    flex:1;

    text-align:left;

    padding-left:20px;

}


/* ---------- Конспект ---------- */

.video-notes{

    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

}

.video-notes summary{

    cursor:pointer;

    list-style:none;

    padding:24px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.video-notes summary::-webkit-details-marker{

    display:none;

}

.video-notes-summary-left{

    display:flex;

    gap:18px;

    align-items:center;

}

.video-notes-summary-left small{

    display:block;

    color:#888;

    margin-top:4px;

}

.video-notes-content{

    padding:0 30px 30px;

}

.phrase-group{

    margin-top:28px;

}

.phrase-group-heading{

    display:flex;

    gap:14px;

    align-items:center;

    margin-bottom:18px;

}

.phrase-group-heading h4{

    margin:0;

}

.phrase-group-heading p{

    margin:3px 0 0;

    color:#888;

}

.phrase-group-icon{

    width:44px;

    height:44px;

    border-radius:50%;

    background:#EAF7F4;

    display:flex;

    justify-content:center;

    align-items:center;

}

.phrase-chips{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.phrase-chip{

    background:#F6F8F8;

    border-radius:100px;

    padding:11px 18px;

    font-weight:600;

    transition:.25s;

}

.phrase-chip:hover{

    background:#0A7564;

    color:white;

}


/* ---------- Заметка ---------- */

.video-language-note{

    margin-top:30px;

    display:flex;

    gap:18px;

    padding:22px;

    border-radius:18px;

    background:#FFFBEF;

}

.video-language-note-icon{

    width:42px;

    height:42px;

    border-radius:50%;

    background:#F4D03F;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

}


/* ---------- Практика ---------- */

.video-practice-card{

    display:flex;

    gap:24px;

    align-items:center;

    background:linear-gradient(135deg,#0A7564,#0F9B84);

    color:white;

    padding:30px;

    border-radius:22px;

}

.video-practice-icon{

    font-size:3rem;

}

.video-practice-label{

    display:block;

    opacity:.8;

    margin-bottom:6px;

}

.video-practice-card h4{

    margin:0;

    font-size:1.45rem;

}

.video-practice-card p{

    margin-top:10px;

    line-height:1.7;

}


/* ---------- Кнопки ---------- */

.video-completion-area{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.video-completion-area button{

    padding:17px 30px;

    border:none;

    border-radius:14px;

    font-size:1rem;

    cursor:pointer;

    transition:.25s;

}

.complete-section-button{

    background:#0A7564;

    color:white;

}

.complete-section-button:hover{

    transform:translateY(-2px);

}

.continue-lesson-button{

    background:white;

    color:#0A7564;

    border:2px solid #0A7564 !important;

}

.continue-lesson-button:hover{

    background:#0A7564;

    color:white;

}


/* ---------- Адаптив ---------- */

.video-lesson-intro {
    padding: 0 18px;
}

.video-lesson-heading{

    flex-direction:column;

}

.video-duration{

    width:100%;

}

.video-practice-card{

    flex-direction:column;

    text-align:center;

}

/* =========================================================
   ОБЛОЖКА ВИДЕО
   ========================================================= */

.video-cover {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #18352f;
}

.video-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(9, 39, 34, 0.92) 0%,
            rgba(9, 39, 34, 0.68) 48%,
            rgba(9, 39, 34, 0.18) 100%
        );
}

.video-cover-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 56px;
    color: #fff;
}

.video-cover-label {
    display: inline-flex;
    padding: 7px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.video-cover-content h3 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.05;
    color: #fff;
}

.video-cover-content p {
    max-width: 520px;
    margin: 20px 0 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.7;
}

.video-play-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0a7564;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.video-play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.video-play-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding-left: 3px;
    border-radius: 50%;
    background: #0a7564;
    color: #fff;
}

.video-cover-duration {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;

    padding: 8px 14px;
    border-radius: 999px;

    background: rgba(13, 34, 30, 0.75);
    color: #fff;

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

    backdrop-filter: blur(10px);
    pointer-events: none;
}
.video-player-wrapper.is-playing {
    min-height: 0;
}

.video-player-wrapper.is-playing iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {

    .video-cover {
        min-height: 440px;
    }

    .video-cover-content {
        padding: 34px 24px 72px;
    }

    .video-cover-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(9, 39, 34, 0.22) 0%,
                rgba(9, 39, 34, 0.94) 75%
            );
    }

    .video-cover-duration {
        right: 20px;
        bottom: 20px;
    }

}
/* =========================================================
   ИГРА «НАЙДИТЕ ПАРЫ»
   ========================================================= */

.matching-game {
    display: flex;
    flex-direction: column;
    gap: 26px;
}


/* ---------- Верхняя карточка ---------- */

.matching-game-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(10, 117, 100, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(204, 174, 88, 0.15),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f5fbf9 0%,
            #ffffff 65%
        );
}

.matching-game-hero::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(10, 117, 100, 0.09);
    border-radius: 50%;
}

.matching-game-heading {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.matching-game-label {
    display: inline-flex;
    padding: 7px 15px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #e4f4f0;
    color: #087160;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.matching-game-heading h3 {
    margin: 0;
    color: #173d35;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.12;
}

.matching-game-heading p {
    max-width: 650px;
    margin: 13px 0 0;
    color: #657872;
    font-size: 1rem;
    line-height: 1.7;
}

.matching-game-badge {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
    min-width: 180px;
    padding: 17px;
    border: 1px solid rgba(10, 117, 100, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(22, 66, 57, 0.08);
    backdrop-filter: blur(8px);
}

.matching-game-badge-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #0a7564;
    font-size: 1.5rem;
}

.matching-game-badge small {
    display: block;
    margin-bottom: 3px;
    color: #80908c;
}

.matching-game-badge strong {
    color: #173d35;
    font-size: 1.12rem;
}


/* ---------- Инструкция ---------- */

.matching-instruction {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 21px;
    border-radius: 17px;
    background: #fff9e9;
    color: #685728;
}

.matching-instruction-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d7b85b;
    color: #fff;
    font-weight: 800;
}

.matching-instruction p {
    margin: 0;
    line-height: 1.55;
}


/* ---------- Прогресс ---------- */

.matching-game-status {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    padding: 22px 25px;
    border: 1px solid #ebf0ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 61, 53, 0.05);
}

.matching-progress-info {
    flex: 1;
}

.matching-progress-title {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 11px;
    color: #657872;
    font-size: 0.92rem;
}

.matching-progress-title strong {
    color: #0a7564;
}

.matching-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9efed;
}

.matching-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #0a7564,
        #19a68f
    );
    transition: width 0.45s ease;
}

.matching-stars {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.matching-star {
    color: #d8dddb;
    font-size: 1.28rem;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.matching-star.is-active {
    color: #d4ad43;
}


/* ---------- Сообщение ---------- */

.matching-feedback {
    min-height: 24px;
    color: #6c7c78;
    font-size: 0.94rem;
    font-weight: 650;
    text-align: center;
}

.matching-feedback.is-correct {
    color: #0a7564;
}

.matching-feedback.is-wrong {
    color: #bd4e4e;
}


/* ---------- Игровое поле ---------- */

.matching-game-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.matching-column {
    padding: 24px;
    border: 1px solid #e9efed;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 61, 53, 0.055);
}

.matching-column-ru {
    border-top: 4px solid #d2af56;
}

.matching-column-gr {
    border-top: 4px solid #0a7564;
}

.matching-column-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.matching-language-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: #edf6f3;
    color: #0a7564;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.matching-column-ru .matching-language-icon {
    background: #fff8e5;
    color: #967522;
}

.matching-column-heading h4 {
    margin: 0;
    color: #173d35;
    font-size: 1.08rem;
}

.matching-column-heading p {
    margin: 3px 0 0;
    color: #899692;
    font-size: 0.86rem;
}

.matching-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


/* ---------- Карточки ---------- */

.matching-card {
    position: relative;
    min-height: 70px;
    padding: 15px 13px;
    border: 1px solid #e1e9e6;
    border-radius: 16px;
    background: #f9fbfa;
    color: #304b45;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(23, 61, 53, 0.035);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.35s ease;
}

.matching-card:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 117, 100, 0.34);
    background: #fff;
    box-shadow: 0 10px 22px rgba(23, 61, 53, 0.09);
}

.matching-card:focus-visible {
    outline: 3px solid rgba(10, 117, 100, 0.22);
    outline-offset: 3px;
}

.matching-card small {
    display: block;
    margin-top: 3px;
    color: #87958f;
    font-size: 0.73rem;
    font-weight: 600;
}

.matching-card-greek {
    color: #153e35;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.04rem;
}


/* Выбранная карточка */

.matching-card.is-selected {
    transform: translateY(-3px);
    border-color: #0a7564;
    background: #e7f5f1;
    color: #075f51;
    box-shadow:
        0 0 0 3px rgba(10, 117, 100, 0.1),
        0 12px 24px rgba(10, 117, 100, 0.12);
}


/* Найденная пара */

.matching-card.is-matched {
    border-color: #26a17b;
    background: #daf3e9;
    color: #087052;
    pointer-events: none;
}

.matching-card.is-matched::after {
    content: "✓";
    position: absolute;
    top: 7px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #13936e;
    color: #fff;
    font-size: 0.72rem;
}


/* Ошибка */

.matching-card.is-wrong {
    border-color: #cf6e6e;
    background: #fff0f0;
    color: #ad4545;
    animation: matchingShake 0.36s ease;
}

@keyframes matchingShake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }
}


/* Подсказка */

.matching-card.is-hint {
    border-color: #d4ad43;
    background: #fff8de;
    box-shadow:
        0 0 0 4px rgba(212, 173, 67, 0.13),
        0 10px 23px rgba(113, 89, 24, 0.1);
    animation: matchingHintPulse 0.8s ease-in-out 2;
}

@keyframes matchingHintPulse {
    50% {
        transform: scale(1.035);
    }
}


/* ---------- Кнопки игры ---------- */

.matching-game-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.matching-game-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.matching-hint-button {
    border: 1px solid #d7b85b;
    background: #fff9e7;
    color: #80671e;
}

.matching-restart-button {
    border: 1px solid #dbe5e2;
    background: #fff;
    color: #61736e;
}

.matching-game-actions button:hover {
    transform: translateY(-2px);
}


/* ---------- Успешное завершение ---------- */

.matching-success {
    padding: 42px 30px;
    border-radius: 25px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 255, 255, 0.18),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #075f51,
            #0d8d76
        );
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 48px rgba(10, 117, 100, 0.2);
}

.matching-success[hidden] {
    display: none;
}

.matching-success-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff;
    color: #0a7564;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.matching-success-label {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.matching-success h3 {
    margin: 15px 0 9px;
    color: #fff;
    font-size: 2rem;
}

.matching-success p {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.81);
    line-height: 1.65;
}

.matching-success-result {
    display: flex;
    justify-content: center;
    gap: 46px;
    margin: 28px 0;
}

.matching-success-result div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.matching-success-result strong {
    font-size: 1.55rem;
}

.matching-success-result span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.matching-continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 25px;
    border: 0;
    border-radius: 15px;
    background: #fff;
    color: #08705f;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.13);
    transition: transform 0.2s ease;
}

.matching-continue-button:hover {
    transform: translateY(-3px);
}


/* ---------- Адаптация для планшета ---------- */

@media (max-width: 950px) {

    .matching-game-board {
        grid-template-columns: 1fr;
    }

    .matching-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ---------- Адаптация для телефона ---------- */

@media (max-width: 700px) {

    .matching-game {
        gap: 20px;
    }

    .matching-game-hero {
        align-items: stretch;
        padding: 25px 21px;
        flex-direction: column;
    }

    .matching-game-badge {
        width: 100%;
        min-width: 0;
    }

    .matching-game-status {
        align-items: stretch;
        flex-direction: column;
    }

    .matching-stars {
        justify-content: center;
    }

    .matching-column {
        padding: 18px;
    }

    .matching-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matching-card {
        min-height: 66px;
        padding: 13px 9px;
        font-size: 0.86rem;
    }

    .matching-card-greek {
        font-size: 0.96rem;
    }

    .matching-success-result {
        gap: 28px;
    }

}


/* ---------- Очень узкие экраны ---------- */

@media (max-width: 400px) {

    .matching-cards {
        grid-template-columns: 1fr;
    }

    .matching-game-actions {
        flex-direction: column;
    }

    .matching-game-actions button {
        width: 100%;
    }

}
.matching-success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.matching-success-restart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 14px 23px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.matching-success-restart:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 520px) {
    .matching-success-actions {
        flex-direction: column;
    }

    .matching-success-actions button {
        width: 100%;
    }
}
/* =========================================================
   ИГРА «СОБЕРИТЕ СЛОВО»
   ========================================================= */

.word-builder-game {
    max-width: 780px;
    margin: 0 auto;
}


/* ---------- Верхняя часть ---------- */

.word-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
}

.word-builder-label {
    display: inline-flex;
    align-items: center;

    padding: 6px 14px;
    margin-bottom: 10px;

    border-radius: 999px;

    background: var(--emerald-light);
    color: var(--emerald-dark);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.word-builder-header h3 {
    margin: 0;

    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.25;
}

.word-builder-header p {
    max-width: 520px;
    margin: 9px 0 0;

    color: var(--text-medium);

    font-size: 14px;
}

.word-builder-round {
    flex: 0 0 auto;

    padding: 10px 16px;

    border: 1px solid rgba(29, 107, 92, 0.15);
    border-radius: 999px;

    background: var(--white);
    color: var(--emerald-dark);

    font-size: 13px;
    font-weight: 800;

    box-shadow: var(--shadow-small);
}


/* ---------- Прогресс ---------- */

.word-builder-progress {
    margin-bottom: 20px;
}

.word-builder-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--text-medium);

    font-size: 13px;
    font-weight: 700;
}

.word-builder-progress-track {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e3e9e6;
}

.word-builder-progress-fill {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--emerald),
            #4fa889,
            var(--gold)
        );

    transition: width 0.45s ease;
}


/* ---------- Игровая карточка ---------- */

.word-builder-card {
    padding: 34px;

    border: 1px solid rgba(29, 107, 92, 0.13);
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at top right,
            rgba(198, 161, 91, 0.13),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f3f8f6
        );

    text-align: center;

    box-shadow: var(--shadow-medium);
}

.word-builder-instruction {
    margin: 0;

    color: var(--text-light);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.word-builder-translation {
    margin: 7px 0 26px;

    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 600;
}


/* ---------- Ячейки ответа ---------- */

.word-builder-answer {
    min-height: 66px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 28px;
}

.word-builder-slot {
    width: 48px;
    height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px dashed rgba(29, 107, 92, 0.28);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.78);
    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.word-builder-slot.is-filled {
    border-style: solid;
    border-color: rgba(29, 107, 92, 0.42);

    background: var(--white);

    box-shadow:
        0 7px 18px rgba(18, 63, 56, 0.08);
}

.word-builder-slot.is-clickable {
    cursor: pointer;
}

.word-builder-slot.is-clickable:hover {
    transform: translateY(-2px);

    background: var(--emerald-pale);
}

.word-builder-space {
    width: 20px;
    height: 56px;
}


/* ---------- Предложенные буквы ---------- */

.word-builder-letters {
    min-height: 58px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.word-builder-letter {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(18, 63, 56, 0.15);
    border-radius: 14px;

    background: var(--white);
    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        opacity var(--transition);
}

.word-builder-letter:hover:not(:disabled) {
    transform: translateY(-3px);

    border-color: var(--emerald);

    background: var(--emerald-pale);
}

.word-builder-letter:disabled {
    opacity: 0.18;

    cursor: default;

    box-shadow: none;
}


/* ---------- Сообщения ---------- */

.word-builder-feedback {
    min-height: 24px;
    margin: 22px 0 0;

    color: var(--text-medium);

    font-size: 14px;
    font-weight: 750;
}

.word-builder-feedback.is-correct {
    color: var(--success);
}

.word-builder-feedback.is-wrong {
    color: var(--error);
}


/* ---------- Кнопки ---------- */

.word-builder-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;

    margin-top: 18px;
}

.word-builder-clear-button,
.word-builder-check-button,
.word-builder-restart-button {
    min-height: 44px;
    padding: 10px 20px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.word-builder-clear-button {
    border: 1px solid rgba(29, 107, 92, 0.22);

    background: var(--white);
    color: var(--emerald);
}

.word-builder-check-button,
.word-builder-restart-button {
    border: 0;

    background: var(--emerald);
    color: var(--white);
}

.word-builder-clear-button:hover,
.word-builder-check-button:hover,
.word-builder-restart-button:hover {
    transform: translateY(-2px);
}

.word-builder-check-button:hover,
.word-builder-restart-button:hover {
    background: var(--emerald-dark);
}

.word-builder-check-button:disabled {
    opacity: 0.55;

    cursor: default;
    transform: none;
}


/* ---------- Неправильный ответ ---------- */

.word-builder-card.is-wrong {
    animation: wordBuilderShake 0.35s ease;
}

@keyframes wordBuilderShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}


/* ---------- Финальный экран ---------- */

.word-builder-success {
    padding: 42px 28px;

    border: 1px solid rgba(47, 138, 103, 0.22);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            var(--success-light),
            var(--white)
        );

    text-align: center;

    box-shadow: var(--shadow-medium);
}

.word-builder-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--success);
    color: var(--white);

    font-size: 30px;
    font-weight: 800;
}

.word-builder-success h3 {
    margin: 0;

    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.word-builder-success p {
    max-width: 520px;
    margin: 10px auto 20px;

    color: var(--text-medium);
}

.word-builder-success-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;

    margin-bottom: 24px;
}

.word-builder-success-words span {
    padding: 9px 15px;

    border-radius: 999px;

    background: var(--white);
    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;

    box-shadow: var(--shadow-small);
}


/* ---------- Телефон ---------- */

@media (max-width: 600px) {

    .word-builder-header {
        flex-direction: column;
        gap: 15px;
    }

    .word-builder-card {
        padding: 26px 15px;
    }

    .word-builder-header h3 {
        font-size: 23px;
    }

    .word-builder-translation {
        font-size: 21px;
    }

    .word-builder-answer {
        gap: 5px;
    }

    .word-builder-slot {
        width: 37px;
        height: 48px;

        border-radius: 10px;

        font-size: 21px;
    }

    .word-builder-space {
        width: 10px;
        height: 48px;
    }

    .word-builder-letter {
        width: 42px;
        height: 42px;

        font-size: 20px;
    }

    .word-builder-actions {
        flex-direction: column;
    }

    .word-builder-clear-button,
    .word-builder-check-button {
        width: 100%;
    }

}
/* ========================================
   ИНТЕРАКТИВНЫЙ ДИАЛОГ
======================================== */

.interactive-dialogue {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(19, 112, 91, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at top right,
            rgba(193, 164, 98, 0.13),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7fbf9 100%
        );
    box-shadow: 0 18px 45px rgba(22, 69, 58, 0.09);
}


.dialogue-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}


.dialogue-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #8a6c27;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.dialogue-round-title {
    margin: 0;
    color: #173d34;
    font-size: 25px;
    line-height: 1.2;
}


.dialogue-progress {
    flex-shrink: 0;
    padding: 8px 13px;
    border-radius: 999px;
    background: #edf7f3;
    color: #176d58;
    font-size: 13px;
    font-weight: 800;
}


.dialogue-progress-track {
    width: 100%;
    height: 7px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4eee9;
}


.dialogue-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #1e8068,
        #c5a45d
    );
    transition: width 0.35s ease;
}


.dialogue-instruction {
    margin: 0 0 22px;
    color: #66756f;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}


.dialogue-stage {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}


.dialogue-bubble {
    position: relative;
    width: fit-content;
    max-width: 78%;
    padding: 15px 52px 15px 18px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(12px);
    animation: dialogueBubbleAppear 0.35s ease forwards;
}


.dialogue-bubble-left {
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    background: #eef7f3;
    color: #173d34;
}


.dialogue-bubble-right {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: #1d765f;
    color: #ffffff;
}


.dialogue-bubble.dialogue-speaking {
    outline: 3px solid rgba(197, 164, 93, 0.34);
    box-shadow: 0 8px 24px rgba(197, 164, 93, 0.2);
}


.dialogue-speaker-name {
    display: block;
    margin-bottom: 5px;
    color: #9b7c35;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}


.dialogue-bubble-right .dialogue-speaker-name {
    color: #f5ddb0;
}


.dialogue-greek-text {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}


.dialogue-russian-text {
    display: block;
    margin-top: 6px;
    color: #6b7772;
    font-size: 13px;
    line-height: 1.45;
}


.dialogue-bubble-right .dialogue-russian-text {
    color: rgba(255, 255, 255, 0.78);
}


.dialogue-sound-button {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: #1c735e;
    font-size: 14px;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.dialogue-sound-button:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}


.dialogue-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}


.dialogue-main-button,
.dialogue-secondary-button {
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.dialogue-main-button {
    border: none;
    background: #1d765f;
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(29, 118, 95, 0.2);
}


.dialogue-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(29, 118, 95, 0.27);
}


.dialogue-secondary-button {
    border: 1px solid rgba(29, 118, 95, 0.22);
    background: #ffffff;
    color: #1d765f;
}


.dialogue-secondary-button:hover {
    background: #edf7f3;
    transform: translateY(-2px);
}


.dialogue-finish {
    padding: 30px 20px 12px;
    text-align: center;
}


.dialogue-finish-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8f6f0;
    color: #1d765f;
    font-size: 30px;
    font-weight: 900;
}


.dialogue-finish h3 {
    margin: 0 0 8px;
    color: #173d34;
    font-size: 25px;
}


.dialogue-finish p {
    margin: 0 0 20px;
    color: #68766f;
}


@keyframes dialogueBubbleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 640px) {

    .interactive-dialogue {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .dialogue-topbar {
        flex-direction: column;
        gap: 10px;
    }

    .dialogue-round-title {
        font-size: 21px;
    }

    .dialogue-bubble {
        max-width: 92%;
    }

    .dialogue-greek-text {
        font-size: 17px;
    }

    .dialogue-controls {
        flex-direction: column;
    }

    .dialogue-main-button,
    .dialogue-secondary-button {
        width: 100%;
    }
}
/* Видео урока */

.lesson-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.lesson-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* =========================================================
   Краткое повторение — соединение карточек
   ========================================================= */

.simple-matching-game {
    margin-top: 24px;
}

.simple-matching-status {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.simple-matching-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.simple-matching-column {
    display: grid;
    gap: 12px;
}

.simple-matching-card {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border: 1px solid rgba(27, 94, 72, 0.18);
    border-radius: 14px;
    background: #ffffff;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.simple-matching-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 94, 72, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.simple-matching-card.is-selected {
    border-color: #b58b2a;
    background: #fff8df;
    box-shadow: 0 0 0 3px rgba(181, 139, 42, 0.15);
}

.simple-matching-card.is-matched {
    border-color: #2f8f67;
    background: #eaf8f1;
    color: #1f694c;
    cursor: default;
}

.simple-matching-card.is-wrong {
    border-color: #c95f5f;
    background: #fff0f0;
    animation: matchingShake 0.3s ease;
}

.simple-matching-success {
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: #eaf8f1;
    color: #1f694c;
    text-align: center;
    font-weight: 700;
}

.simple-matching-restart {
    display: block;
    margin: 20px auto 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #1f694c;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.teacher-tip {
    margin-top: 24px;
    padding: 20px 22px;
    border-left: 4px solid #b58b2a;
    border-radius: 14px;
    background: #fffaf0;
}

.teacher-tip h4 {
    margin: 0 0 8px;
}

.teacher-tip p {
    margin: 0;
    line-height: 1.65;
}

@keyframes matchingShake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 700px) {
    .simple-matching-board {
        grid-template-columns: 1fr;
    }

    .simple-matching-status {
        flex-direction: column;
    }
}
.matching-card.is-hint {
    border-color: #d4a72c;
    background: #fff5c7;
    box-shadow:
        0 0 0 4px rgba(212, 167, 44, 0.2),
        0 10px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.complete-section-button {
    background: #ffffff;
    color: #0a7564;
    border: 2px solid #0a7564 !important;
}

.complete-section-button.is-complete {
    background: #0a7564;
    color: #ffffff;
}
/* =========================================================
   Новые глаголы урока
   ========================================================= */

.lesson-verbs-card {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 247, 239, 0.98)
        );
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.08);
}

.lesson-verbs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.lesson-verbs-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.lesson-verbs-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: white;
    font-size: 23px;
}

.lesson-verbs-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-verbs-title h3 {
    margin: 3px 0 5px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
}

.lesson-verbs-title p {
    max-width: 560px;
    margin: 0;
    color: var(--text-medium);
}

.verbs-translation-toggle {
    min-width: 180px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(29, 107, 92, 0.32);
    border-radius: 999px;
    background: white;
    color: var(--emerald);
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.verbs-translation-toggle:hover {
    transform: translateY(-2px);
    background: var(--emerald-pale);
}

.lesson-verbs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lesson-verb-item {
    min-height: 72px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(18, 63, 56, 0.1);
    border-radius: 16px;
    background: white;
    box-shadow: 0 7px 18px rgba(18, 63, 56, 0.045);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.lesson-verb-item:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 107, 92, 0.25);
}

.lesson-verb-item.is-favorite {
    border-color: rgba(198, 161, 91, 0.65);
    background: #fffaf0;
}

.lesson-verb-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--emerald-dark);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.lesson-verb-content {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
}

.lesson-verb-greek {
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
}

.lesson-verb-translation {
    color: var(--text-dark);
    font-size: 14px;
    text-align: right;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.lesson-verbs-card.translations-hidden
.lesson-verb-translation {
    opacity: 0;
    visibility: hidden;
}

.verb-favorite-button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 50%;
    background: white;
    color: #b58b2a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.verb-favorite-button:hover {
    transform: scale(1.08);
    background: #fff5d6;
}

.verb-favorite-button.is-active {
    background: var(--gold);
    color: white;
}

.lesson-verbs-tip {
    margin-top: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 15px;
    background: var(--emerald-pale);
    color: var(--text-medium);
}

.lesson-verbs-tip p {
    margin: 0;
}

@media (max-width: 760px) {
    .lesson-verbs-header {
        flex-direction: column;
    }

    .verbs-translation-toggle {
        width: 100%;
    }

    .lesson-verbs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .lesson-verbs-card {
        padding: 21px 16px;
    }

    .lesson-verb-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .lesson-verb-translation {
        text-align: left;
    }
}
.verb-speech-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 107, 92, 0.28);
    border-radius: 50%;
    background: #ffffff;
    color: var(--emerald);
    font-size: 17px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.verb-speech-button:hover {
    transform: scale(1.07);
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.verb-speech-button.is-playing {
    background: var(--emerald);
    color: #ffffff;
    border-color: var(--emerald);
}
/* =========================================================
   Упражнение: правильная форма глагола
   ========================================================= */

.verb-form-game {
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.verb-form-intro {
    margin-bottom: 24px;
}

.verb-form-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verb-form-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.verb-form-intro p {
    margin: 0;
    color: var(--text-medium);
}

.verb-form-question {
    position: relative;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(18, 63, 56, 0.11);
    border-radius: 18px;
    background: #fbfcfa;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.verb-form-question.is-correct {
    border-color: rgba(43, 142, 92, 0.55);
    background: #f1fbf5;
}

.verb-form-question.is-wrong {
    border-color: rgba(190, 74, 74, 0.45);
    background: #fff6f6;
}

.verb-form-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.verb-form-sentence {
    margin: 0 45px 4px 0;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.verb-form-base {
    margin: 0 0 16px;
    color: var(--text-medium);
    font-size: 14px;
}

.verb-form-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.verb-form-option {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid rgba(29, 107, 92, 0.22);
    border-radius: 12px;
    background: white;
    color: var(--emerald-dark);
    font-size: 16px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.verb-form-option:hover {
    transform: translateY(-1px);
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.verb-form-option.is-selected {
    border-color: var(--emerald);
    background: var(--emerald);
    color: white;
}

.verb-form-option.is-correct {
    border-color: #2b8e5c;
    background: #2b8e5c;
    color: white;
}

.verb-form-option.is-wrong {
    border-color: #be4a4a;
    background: #be4a4a;
    color: white;
}

.verb-form-feedback {
    min-height: 22px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.verb-form-question.is-correct .verb-form-feedback {
    color: #267a50;
}

.verb-form-question.is-wrong .verb-form-feedback {
    color: #a13b3b;
}

.verb-form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.verb-form-check,
.verb-form-reset {
    min-width: 180px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.verb-form-check {
    border: none;
    background: var(--emerald-dark);
    color: white;
}

.verb-form-reset {
    border: 1px solid rgba(29, 107, 92, 0.28);
    background: white;
    color: var(--emerald);
}

.verb-form-summary {
    margin-top: 20px;
    padding: 17px;
    border-radius: 15px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 700px) {
    .verb-form-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verb-form-actions {
        flex-direction: column;
    }

    .verb-form-check,
    .verb-form-reset {
        width: 100%;
    }
}
/* =========================================================
   Конструктор предложений
   ========================================================= */

.sentence-builder-game {
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.sentence-builder-intro {
    margin-bottom: 25px;
}

.sentence-builder-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentence-builder-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.sentence-builder-intro p {
    margin: 0;
    color: var(--text-medium);
}

.sentence-builder-question {
    position: relative;
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid rgba(18, 63, 56, 0.11);
    border-radius: 18px;
    background: #fbfcfa;
}

.sentence-builder-question.is-correct {
    border-color: rgba(43, 142, 92, 0.55);
    background: #f1fbf5;
}

.sentence-builder-question.is-wrong {
    border-color: rgba(190, 74, 74, 0.45);
    background: #fff6f6;
}

.sentence-builder-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.sentence-builder-russian {
    margin: 0 45px 16px 0;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.sentence-builder-answer {
    min-height: 62px;
    padding: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 2px dashed rgba(29, 107, 92, 0.3);
    border-radius: 14px;
    background: white;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.sentence-builder-answer.is-drag-over {
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.sentence-builder-placeholder {
    margin: auto;
    color: var(--text-medium);
    font-size: 14px;
}

.sentence-builder-bank {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sentence-builder-bank button,
.sentence-builder-answer button {
    padding: 9px 14px;
    border: 1px solid rgba(29, 107, 92, 0.24);
    border-radius: 11px;
    background: white;
    color: var(--emerald-dark);
    font-size: 16px;
    cursor: grab;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.sentence-builder-bank button:hover,
.sentence-builder-answer button:hover {
    transform: translateY(-1px);
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.sentence-builder-answer button {
    background: var(--emerald-pale);
    border-color: rgba(29, 107, 92, 0.42);
}

.sentence-builder-feedback {
    min-height: 22px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.sentence-builder-question.is-correct
.sentence-builder-feedback {
    color: #267a50;
}

.sentence-builder-question.is-wrong
.sentence-builder-feedback {
    color: #a13b3b;
}

.sentence-builder-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sentence-builder-check,
.sentence-builder-reset {
    min-width: 180px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.sentence-builder-check {
    border: none;
    background: var(--emerald-dark);
    color: white;
}

.sentence-builder-reset {
    border: 1px solid rgba(29, 107, 92, 0.28);
    background: white;
    color: var(--emerald);
}

.sentence-builder-summary {
    margin-top: 20px;
    padding: 17px;
    border-radius: 15px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 700px) {
    .sentence-builder-game {
        padding: 20px 15px;
    }

    .sentence-builder-actions {
        flex-direction: column;
    }

    .sentence-builder-check,
    .sentence-builder-reset {
        width: 100%;
    }
}
/* =========================================================
   Упражнение «Впишите глагол»
   ========================================================= */

.verb-input-game {
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.verb-input-intro {
    margin-bottom: 25px;
}

.verb-input-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verb-input-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.verb-input-intro p {
    margin: 0;
    color: var(--text-medium);
}

.verb-input-question {
    position: relative;
    margin-bottom: 16px;
    padding: 21px 55px 18px 20px;
    border: 1px solid rgba(18, 63, 56, 0.11);
    border-radius: 17px;
    background: #fbfcfa;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.verb-input-question.is-correct {
    border-color: rgba(43, 142, 92, 0.55);
    background: #f1fbf5;
}

.verb-input-question.is-wrong {
    border-color: rgba(190, 74, 74, 0.45);
    background: #fff6f6;
}

.verb-input-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.verb-input-sentence {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.7;
}

.verb-input-answer {
    width: 170px;
    min-height: 43px;
    padding: 7px 11px;
    border: 1px solid rgba(29, 107, 92, 0.35);
    border-radius: 10px;
    background: #ffffff;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.verb-input-answer:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(29, 107, 92, 0.1);
}

.verb-input-question.is-correct
.verb-input-answer {
    border-color: #2b8e5c;
    background: #ffffff;
}

.verb-input-question.is-wrong
.verb-input-answer {
    border-color: #be4a4a;
    background: #ffffff;
}

.verb-input-base {
    color: var(--gold);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
}

.verb-input-feedback {
    min-height: 21px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.verb-input-question.is-correct
.verb-input-feedback {
    color: #267a50;
}

.verb-input-question.is-wrong
.verb-input-feedback {
    color: #a13b3b;
}

.verb-input-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.verb-input-check,
.verb-input-reset {
    min-width: 180px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.verb-input-check {
    border: none;
    background: var(--emerald-dark);
    color: #ffffff;
}

.verb-input-reset {
    border: 1px solid rgba(29, 107, 92, 0.28);
    background: #ffffff;
    color: var(--emerald);
}

.verb-input-summary {
    margin-top: 20px;
    padding: 17px;
    border-radius: 15px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 700px) {
    .verb-input-game {
        padding: 20px 15px;
    }

    .verb-input-question {
        padding-right: 48px;
    }

    .verb-input-answer {
        width: 145px;
    }

    .verb-input-actions {
        flex-direction: column;
    }

    .verb-input-check,
    .verb-input-reset {
        width: 100%;
    }
}
/* =========================================================
   Игра на перевод глаголов
   ========================================================= */

.verb-meaning-game {
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.verb-meaning-intro {
    margin-bottom: 24px;
}

.verb-meaning-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verb-meaning-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.verb-meaning-intro p {
    margin: 0;
    color: var(--text-medium);
}

.verb-meaning-progress {
    margin-bottom: 18px;
}

.verb-meaning-progress > span {
    display: block;
    margin-bottom: 7px;
    color: var(--emerald-dark);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.verb-meaning-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 107, 92, 0.12);
}

.verb-meaning-progress-fill {
    width: 5%;
    height: 100%;
    border-radius: inherit;
    background: var(--emerald);
    transition: width 0.35s ease;
}

.verb-meaning-card {
    padding: 30px;
    border: 1px solid rgba(18, 63, 56, 0.12);
    border-radius: 20px;
    background: #fbfcfa;
    text-align: center;
}

.verb-meaning-card.is-correct {
    border-color: rgba(43, 142, 92, 0.55);
    background: #f1fbf5;
}

.verb-meaning-card.is-wrong {
    border-color: rgba(190, 74, 74, 0.45);
    background: #fff6f6;
}

.verb-meaning-direction {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--emerald-pale);
    color: var(--emerald);
    font-size: 12px;
    font-weight: 800;
}

.verb-meaning-word {
    min-height: 60px;
    margin-bottom: 25px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.3;
}

.verb-meaning-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.verb-meaning-option {
    min-height: 54px;
    padding: 11px 15px;
    border: 1px solid rgba(29, 107, 92, 0.23);
    border-radius: 13px;
    background: #ffffff;
    color: var(--emerald-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.verb-meaning-option:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.verb-meaning-option:disabled {
    cursor: default;
}

.verb-meaning-option.is-correct {
    border-color: #2b8e5c;
    background: #2b8e5c;
    color: #ffffff;
}

.verb-meaning-option.is-wrong {
    border-color: #be4a4a;
    background: #be4a4a;
    color: #ffffff;
}

.verb-meaning-feedback {
    min-height: 24px;
    margin: 17px 0 0;
    font-size: 15px;
    font-weight: 800;
}

.verb-meaning-card.is-correct
.verb-meaning-feedback {
    color: #267a50;
}

.verb-meaning-card.is-wrong
.verb-meaning-feedback {
    color: #a13b3b;
}

.verb-meaning-result {
    padding: 35px 25px;
    border-radius: 20px;
    background: var(--emerald-pale);
    text-align: center;
}

.verb-meaning-result-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: #ffffff;
    font-size: 27px;
}

.verb-meaning-result h3 {
    margin: 0 0 8px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.verb-meaning-result-score {
    margin: 0 0 7px;
    color: var(--emerald-dark);
    font-size: 22px;
    font-weight: 800;
}

.verb-meaning-result p {
    color: var(--text-medium);
}

.verb-meaning-restart {
    margin-top: 10px;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    background: var(--emerald-dark);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 700px) {
    .verb-meaning-game {
        padding: 20px 15px;
    }

    .verb-meaning-card {
        padding: 24px 15px;
    }

    .verb-meaning-word {
        font-size: 29px;
    }

    .verb-meaning-options {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Повторение: распределение глаголов Α и Β2
   ========================================================= */

.verb-sort-game {
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.verb-sort-intro {
    margin-bottom: 24px;
}

.verb-sort-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verb-sort-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.verb-sort-intro p {
    margin: 0;
    color: var(--text-medium);
}

.verb-sort-status {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 13px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 700;
}

.verb-sort-bank {
    min-height: 120px;
    margin-bottom: 23px;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px dashed rgba(29, 107, 92, 0.35);
    border-radius: 17px;
    background: #fbfcfa;
}

.verb-sort-card {
    padding: 10px 16px;
    border: 1px solid rgba(29, 107, 92, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    cursor: grab;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.verb-sort-card:hover {
    transform: translateY(-2px);
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.verb-sort-card:active {
    cursor: grabbing;
}

.verb-sort-card.is-selected {
    border-color: var(--gold);
    background: #fff9e9;
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.16);
}

.verb-sort-card.is-correct {
    border-color: #2b8e5c;
    background: #eaf8f0;
    color: #267a50;
}

.verb-sort-card.is-wrong {
    border-color: #be4a4a;
    background: #fff0f0;
    color: #a13b3b;
}

.verb-sort-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.verb-sort-column {
    overflow: hidden;
    border: 1px solid rgba(18, 63, 56, 0.13);
    border-radius: 19px;
    background: #ffffff;
}

.verb-sort-column-header {
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--emerald-pale);
}

.verb-sort-column-letter {
    min-width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
}

.verb-sort-column-header h4 {
    margin: 0 0 3px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.verb-sort-column-header p {
    margin: 0;
    color: var(--text-medium);
    font-size: 13px;
}

.verb-sort-dropzone {
    min-height: 245px;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.verb-sort-dropzone.is-drag-over {
    background: var(--emerald-pale);
    box-shadow: inset 0 0 0 2px rgba(29, 107, 92, 0.22);
}

.verb-sort-placeholder {
    width: 100%;
    margin: auto;
    color: rgba(18, 63, 56, 0.45);
    text-align: center;
    font-size: 14px;
}

.verb-sort-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.verb-sort-check,
.verb-sort-reset {
    min-width: 170px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.verb-sort-check {
    border: none;
    background: var(--emerald-dark);
    color: #ffffff;
}

.verb-sort-reset {
    border: 1px solid rgba(29, 107, 92, 0.28);
    background: #ffffff;
    color: var(--emerald);
}

.verb-sort-result {
    margin-top: 19px;
    padding: 17px;
    border-radius: 15px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 700px) {
    .verb-sort-game {
        padding: 20px 15px;
    }

    .verb-sort-status {
        flex-direction: column;
    }

    .verb-sort-columns {
        grid-template-columns: 1fr;
    }

    .verb-sort-dropzone {
        min-height: 180px;
    }

    .verb-sort-actions {
        flex-direction: column;
    }

    .verb-sort-check,
    .verb-sort-reset {
        width: 100%;
    }
}
/* =========================================================
   Повторение переводов: найдите пару
   ========================================================= */

.translation-match-game {
    margin-top: 30px;
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.translation-match-intro {
    margin-bottom: 22px;
}

.translation-match-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.translation-match-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.translation-match-intro p {
    margin: 0;
    color: var(--text-medium);
}

.translation-match-status {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 14px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 700;
}

.translation-match-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.translation-match-column {
    padding: 17px;
    border: 1px solid rgba(18, 63, 56, 0.13);
    border-radius: 18px;
    background: #fbfcfa;
}

.translation-match-column h4 {
    margin: 0 0 14px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    text-align: center;
}

.translation-match-cards {
    display: grid;
    gap: 10px;
}

.translation-match-card {
    min-height: 54px;
    padding: 11px 14px;
    border: 1px solid rgba(29, 107, 92, 0.23);
    border-radius: 13px;
    background: #ffffff;
    color: var(--emerald-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        opacity 0.25s ease;
}

.translation-match-card:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.translation-match-card.is-selected {
    border-color: var(--gold);
    background: #fff9e8;
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.14);
}

.translation-match-card.is-wrong {
    border-color: #be4a4a;
    background: #fff0f0;
    color: #a13b3b;
}

.translation-match-card.is-matched {
    border-color: #2b8e5c;
    background: #eaf8f0;
    color: #267a50;
    opacity: 0.55;
    cursor: default;
}

.translation-match-round-result {
    margin-top: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    background: #eaf8f0;
    color: #267a50;
    font-weight: 800;
}

.translation-match-round-result p {
    margin: 0;
}

.translation-match-final {
    padding: 34px 24px;
    border-radius: 20px;
    background: var(--emerald-pale);
    text-align: center;
}

.translation-match-final-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: #ffffff;
    font-size: 27px;
}

.translation-match-final h3 {
    margin: 0 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
}

.translation-match-final p {
    color: var(--text-medium);
}

.translation-match-restart {
    margin-top: 10px;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    background: var(--emerald-dark);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 700px) {
    .translation-match-game {
        padding: 20px 15px;
    }

    .translation-match-status {
        flex-direction: column;
    }

    .translation-match-board {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Повторение: выбор глагола по смыслу
   ========================================================= */

.meaning-verb-game {
    margin-top: 30px;
    padding: 28px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(18, 63, 56, 0.07);
}

.meaning-verb-intro {
    margin-bottom: 24px;
}

.meaning-verb-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meaning-verb-intro h3 {
    margin: 5px 0 7px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
}

.meaning-verb-intro p {
    margin: 0;
    color: var(--text-medium);
}

.meaning-verb-note {
    margin-top: 8px !important;
    color: var(--emerald) !important;
    font-size: 13px;
    font-weight: 700;
}

.meaning-verb-question {
    position: relative;
    margin-bottom: 16px;
    padding: 22px 20px 20px 60px;
    border: 1px solid rgba(18, 63, 56, 0.12);
    border-radius: 17px;
    background: #fbfcfa;
}

.meaning-verb-question.is-correct {
    border-color: rgba(43, 142, 92, 0.55);
    background: #f1fbf5;
}

.meaning-verb-question.is-wrong {
    border-color: rgba(190, 74, 74, 0.45);
    background: #fff6f6;
}

.meaning-verb-number {
    position: absolute;
    top: 19px;
    left: 18px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.meaning-verb-sentence {
    margin: 0 0 5px;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 600;
}

.meaning-verb-translation {
    margin: 0 0 16px;
    color: var(--text-medium);
    font-size: 14px;
}

.meaning-verb-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.meaning-verb-option {
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid rgba(29, 107, 92, 0.23);
    border-radius: 12px;
    background: #ffffff;
    color: var(--emerald-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.meaning-verb-option:hover {
    border-color: var(--emerald);
    background: var(--emerald-pale);
}

.meaning-verb-option.is-selected {
    border-color: var(--gold);
    background: #fff9e8;
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.13);
}

.meaning-verb-option.is-correct {
    border-color: #2b8e5c;
    background: #2b8e5c;
    color: #ffffff;
}

.meaning-verb-option.is-wrong {
    border-color: #be4a4a;
    background: #be4a4a;
    color: #ffffff;
}

.meaning-verb-feedback {
    min-height: 22px;
    margin: 13px 0 0;
    font-size: 14px;
    font-weight: 800;
}

.meaning-verb-question.is-correct
.meaning-verb-feedback {
    color: #267a50;
}

.meaning-verb-question.is-wrong
.meaning-verb-feedback {
    color: #a13b3b;
}

.meaning-verb-actions {
    margin-top: 23px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.meaning-verb-check,
.meaning-verb-reset {
    min-width: 180px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.meaning-verb-check {
    border: none;
    background: var(--emerald-dark);
    color: #ffffff;
}

.meaning-verb-reset {
    border: 1px solid rgba(29, 107, 92, 0.28);
    background: #ffffff;
    color: var(--emerald);
}

.meaning-verb-summary {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: var(--emerald-pale);
    color: var(--emerald-dark);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 800px) {
    .meaning-verb-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .meaning-verb-game {
        padding: 20px 15px;
    }

    .meaning-verb-question {
        padding: 58px 15px 18px;
    }

    .meaning-verb-options {
        grid-template-columns: 1fr;
    }

    .meaning-verb-actions {
        flex-direction: column;
    }

    .meaning-verb-check,
    .meaning-verb-reset {
        width: 100%;
    }
}

/* =========================================================
   Закреплённая линия прогресса
   ========================================================= */

.lesson-progress {
    position: sticky;
    top: 72px;
    z-index: 99;

    width: 100%;
    margin: 0;
    padding: 13px max(24px, calc((100% - 1180px) / 2));

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(18, 63, 56, 0.1);
    box-shadow: 0 4px 16px rgba(18, 63, 56, 0.07);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        padding 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* Верхняя строка */

.lesson-progress .progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1180px;
    margin: 0 auto 7px;

    color: var(--emerald-dark);
    font-size: 13px;
    font-weight: 700;

    transition:
        margin 0.25s ease,
        opacity 0.2s ease,
        max-height 0.25s ease;
}


/* Линия */

.lesson-progress .progress-track {
    width: 100%;
    max-width: 1180px;
    height: 7px;
    margin: 0 auto;

    overflow: hidden;

    border-radius: 999px;
    background: rgba(29, 107, 92, 0.13);

    transition: height 0.25s ease;
}


.lesson-progress .progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;
    background: var(--emerald);

    transition: width 0.45s ease;
}


/* Компактный вид после прокрутки */

.lesson-progress.is-compact {
    padding-top: 6px;
    padding-bottom: 6px;

    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 12px rgba(18, 63, 56, 0.1);
}


.lesson-progress.is-compact .progress-top {
    max-height: 0;
    margin-bottom: 0;

    overflow: hidden;
    opacity: 0;
}


.lesson-progress.is-compact .progress-track {
    height: 5px;
}


/* На телефоне */

@media (max-width: 700px) {
    .lesson-progress {
        padding-right: 16px;
        padding-left: 16px;
    }

    .lesson-progress .progress-top {
        font-size: 12px;
    }

    .lesson-progress.is-compact {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .lesson-progress.is-compact .progress-track {
        height: 4px;
    }
}
@media (max-width: 760px) {
    .lesson-progress {
        top: 64px;
    }
}
/* ===========================================
   ГЛАВНАЯ СТРАНИЦА
=========================================== */

.home-page {

    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding: 48px 0 80px;
}


/* ---------- Hero ---------- */

.home-hero {

    padding: 72px 56px;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.95),
            rgba(245,243,236,.95)
        );

    border: 1px solid rgba(198,161,91,.22);

    text-align: center;

    box-shadow: var(--shadow-medium);

    margin-bottom: 56px;
}

.home-hero-label {

    display: inline-block;

    padding: 8px 18px;

    border-radius: 999px;

    background: rgba(24,90,77,.08);

    color: var(--color-primary);

    font-weight: 700;

    margin-bottom: 22px;
}

.home-hero h1 {

    font-size: clamp(2.2rem,4vw,3.5rem);

    line-height: 1.15;

    margin-bottom: 24px;
}

.home-hero p {

    max-width: 720px;

    margin: 0 auto 36px;

    color: var(--color-text-light);

    font-size: 1.1rem;

    line-height: 1.7;
}

.home-hero-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 16px 34px;

    border-radius: 999px;

    background: var(--color-primary);

    color: white;

    text-decoration: none;

    font-weight: 700;

    transition: .25s;
}

.home-hero-button:hover {

    transform: translateY(-2px);

    background: var(--color-primary-dark);
}


/* ---------- Заголовок ---------- */

.courses-heading {

    text-align: center;

    margin-bottom: 36px;
}

.courses-heading span {

    color: var(--color-accent);

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.courses-heading h2 {

    margin: 10px 0 14px;

    font-size: 2rem;
}

.courses-heading p {

    color: var(--color-text-light);
}


/* ---------- Карточка курса ---------- */

.course-card {

    background: rgba(255,255,255,.95);

    border-radius: var(--radius-large);

    border: 1px solid rgba(198,161,91,.18);

    margin-bottom: 26px;

    overflow: hidden;

    box-shadow: var(--shadow-soft);
}

.course-card-header {

    width: 100%;

    background: transparent;

    border: none;

    cursor: pointer;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 28px 34px;
}

.course-card-main {

    display: flex;

    gap: 20px;

    align-items: center;
}

.course-level {

    min-width: 64px;

    text-align: center;

    padding: 10px 0;

    border-radius: 12px;

    background: rgba(24,90,77,.08);

    color: var(--color-primary);

    font-weight: 700;
}

.course-card-title {

    display: flex;

    flex-direction: column;

    gap: 8px;

    text-align: left;
}

.course-card-title strong {

    font-size: 1.35rem;
}

.course-card-title small {

    color: var(--color-text-light);

    font-size: .95rem;
}

.course-card-arrow {

    font-size: 1.8rem;

    transition: .3s;
}

.course-card.is-open .course-card-arrow {

    transform: rotate(180deg);
}


/* ---------- Содержимое ---------- */

.course-card-content {

    border-top: 1px solid rgba(0,0,0,.08);

    padding: 34px;
}

.course-description {

    margin-bottom: 30px;
}

.course-description h3 {

    margin-bottom: 14px;
}

.course-description p {

    line-height: 1.7;

    color: var(--color-text-light);
}


/* ---------- Метки ---------- */

.course-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 36px;
}

.course-meta span {

    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(198,161,91,.12);

    color: var(--color-accent-dark);

    font-size: .9rem;
}


/* ---------- Уроки ---------- */

.course-lessons h3 {

    margin-bottom: 18px;
}

.course-lesson-row {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid rgba(0,0,0,.08);

    text-decoration: none;

    color: inherit;

    transition: .2s;
}



.course-lesson-number {

    width: 46px;

    height: 46px;

    border-radius: 50%;

    background: rgba(24,90,77,.08);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    color: var(--color-primary);
}

.course-lesson-text {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 6px;
}

.course-lesson-text small {

    color: var(--color-text-light);
}


/* ---------- Низ ---------- */

.course-card-footer {

    margin-top: 40px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.course-price-label {

    display: block;

    color: var(--color-text-light);

    margin-bottom: 6px;
}

.course-price {

    font-size: 1.7rem;
}

.course-buy-button {

    border: none;

    cursor: pointer;

    padding: 16px 34px;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #c6a15b,
        #d8b56f
    );

    color: white;

    font-weight: 700;

    transition: .25s;
}

.course-buy-button:hover {

    transform: translateY(-2px);
}


/* ---------- Скоро ---------- */

.course-card-coming {

    opacity: .65;
}

.course-coming-label {

    color: var(--color-accent);

    font-weight: 700;
}


/* ---------- Телефон ---------- */

@media (max-width:760px){

    .home-page{

        width:calc(100% - 22px);
    }

    .home-hero{

        padding:44px 24px;
    }

    .course-card-header{

        padding:22px;
    }

    .course-card-content{

        padding:22px;
    }

    .course-card-footer{

        flex-direction:column;

        align-items:flex-start;
    }

    .course-card-main{

        gap:14px;
    }

}
/* =========================================================
   Адаптированные книги
   ========================================================= */

.books-section {
    margin-top: 65px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.book-card {
    position: relative;

    padding: 28px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(198, 161, 91, 0.24);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7faf8
        );

    box-shadow: var(--shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.book-card:hover {
    transform: translateY(-4px);

    border-color: rgba(198, 161, 91, 0.5);

    box-shadow: var(--shadow-medium);
}

.book-level {
    position: absolute;
    top: 22px;
    right: 22px;

    min-width: 48px;
    padding: 7px 12px;

    border-radius: 999px;

    background: var(--emerald-dark);
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    text-align: center;
}

.book-category {
    color: var(--gold);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-card h3 {
    margin: 8px 70px 10px 0;

    color: var(--emerald-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
}

.book-card p {
    margin: 0;

    color: var(--text-medium);

    line-height: 1.7;
}

.book-meta {
    margin-top: 22px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.book-meta span {
    padding: 7px 11px;

    border-radius: 999px;

    background: var(--emerald-pale);
    color: var(--emerald-dark);

    font-size: 12px;
    font-weight: 700;
}

.book-button {
    margin-top: 26px;
    padding: 12px 19px;

    align-self: flex-start;

    border: 1px solid rgba(29, 107, 92, 0.25);
    border-radius: 999px;

    background: #ffffff;
    color: var(--emerald);

    font-size: 14px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.book-button:hover {
    transform: translateY(-2px);

    background: var(--emerald);
    color: #ffffff;
}


@media (max-width: 760px) {

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        padding: 24px 20px;
    }
}
.hero {
    position: relative;
    min-height: 520px;

    display: flex;
    align-items: center;

    padding: 80px;

    border-radius: 24px;

    overflow: hidden;

    background-image: url("../images/hero-banner.png");
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(10, 18, 28, 0.72) 0%,
        rgba(10, 18, 28, 0.45) 38%,
        rgba(10, 18, 28, 0.12) 65%,
        rgba(10, 18, 28, 0) 100%
    );
}
.hero h1 {
    margin-bottom: 24px;

    font-size: 3.3rem;
    line-height: 1.15;
}
.hero p {
    margin-bottom: 36px;

    font-size: 1.2rem;
    line-height: 1.7;

    opacity: .95;
}
.hero-button {
    display: inline-block;

    margin-top: 24px;
    padding: 14px 30px;

    background: #d4af37;
    color: #ffffff;

    border-radius: 30px;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

    transition: 0.25s ease;
}

.hero-button:hover {
    background: #c39b2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
@media (max-width:760px){

    .hero{
        min-height:420px;
        padding:40px 24px;
        border-radius:18px;
    }

    .hero h1{
        font-size:2.1rem;
    }

    .hero p{
        font-size:1rem;
    }

}
.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-content h1 {
    color: #d4af37;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.home-hero {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 50px;
}
.home-hero {
    color: #0f5a4a;
}
.home-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #c6a15b;
    color: #173f36;

    padding: 14px 28px;
    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);

    transition: 0.2s ease;
}

.home-hero-button:hover {
    background: #d8b76a;
    transform: translateY(-2px);
}
/* =========================================================
   Повторение — три группы глаголов
   ========================================================= */

.verb-sort-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.verb-sort-column {
    min-width: 0;
}

.verb-sort-dropzone {
    min-height: 300px;
}

/* На планшете тоже оставляем три рядом */
@media (max-width: 900px) {
    .verb-sort-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .verb-sort-column-header {
        padding: 12px 8px;
    }

    .verb-sort-column-letter {
        min-width: 39px;
        width: 39px;
        height: 39px;
        font-size: 14px;
    }

    .verb-sort-column-header h4 {
        font-size: 16px;
    }

    .verb-sort-column-header p {
        font-size: 11px;
    }

    .verb-sort-dropzone {
        min-height: 260px;
        padding: 10px;
    }

    .verb-sort-card {
        padding: 8px 11px;
        font-size: 15px;
    }
}

/* Только на совсем узком телефоне ставим друг под другом */
@media (max-width: 560px) {
    .verb-sort-columns {
        grid-template-columns: 1fr;
    }

    .verb-sort-dropzone {
        min-height: 130px;
    }
}
.verb-sort-next {
    margin-top: 20px;
    text-align: center;
}

.verb-sort-next-button {
    min-height: 48px;
    padding: 12px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    border-radius: 999px;

    background: var(--emerald-dark);
    color: #ffffff;

    font-weight: 800;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.verb-sort-next-button:hover {
    transform: translateY(-2px);
    background: var(--emerald);
}
/* ΑΒ — 4 колонки: 2 сверху, 2 снизу */

.verb-sort-columns-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin-top: 24px;
}

.verb-sort-columns-4 .verb-sort-column {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.verb-sort-columns-4 .verb-sort-dropzone {
    min-height: 170px;
}

@media (max-width: 700px) {
    .verb-sort-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Шапка раздела курсов
   ========================================================= */

.courses-heading {
    position: relative;

    max-width: 760px;
    margin: 0 auto 52px;

    text-align: center;
}


/* декоративная линия */

.courses-heading-decoration {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 16px;
}

.courses-heading-decoration > span:first-child,
.courses-heading-decoration > span:last-child {
    width: 54px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #c7a75b
    );
}

.courses-heading-decoration > span:last-child {
    background: linear-gradient(
        90deg,
        #c7a75b,
        transparent
    );
}

.courses-heading-greek {
    color: #c7a75b;

    font-size: 11px;
    transform: rotate(45deg);
}


/* маленькая надпись */

.courses-heading-label {
    display: block;

    margin-bottom: 10px;

    color: #b3944f;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.18em;
}


/* заголовок */

.courses-heading h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;

    font-weight: 700;

    color: #243b36;
}


/* описание */

.courses-heading p {
    max-width: 620px;

    margin: 16px auto 0;

    font-size: 17px;
    line-height: 1.7;

    color: #687873;
}


/* Видео · Практика · Тесты */

.courses-heading-features {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 22px;

    color: #45665e;

    font-size: 14px;
    font-weight: 700;
}

.courses-heading-features i {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #c7a75b;
}


/* мобильная версия */

@media (max-width: 600px) {

    .courses-heading {
        margin-bottom: 36px;
    }

    .courses-heading h2 {
        font-size: 34px;
    }

    .courses-heading p {
        font-size: 16px;
    }

    .courses-heading-decoration > span:first-child,
    .courses-heading-decoration > span:last-child {
        width: 36px;
    }

}
/* =========================================================
   Продающее описание курса
   ========================================================= */

.course-description-sales {
    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(244, 249, 247, 0.95),
            rgba(255, 255, 255, 1)
        );

    border: 1px solid rgba(52, 105, 91, 0.12);
}


.course-description-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #b08b3e;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.course-description-sales h3 {
    max-width: 650px;

    margin: 0 0 16px;

    color: #24483f;

    font-size: 27px;
    line-height: 1.25;
}


.course-description-lead {
    max-width: 720px;

    margin: 0;

    color: #596d67;

    font-size: 16px;
    line-height: 1.75;
}


.course-description-lead strong {
    color: #345e54;
    font-weight: 700;
}


/* Результат */

.course-result-box {
    margin-top: 24px;
    padding: 22px 24px;

    border-radius: 16px;

    background: #ffffff;

    border: 1px solid rgba(190, 158, 82, 0.25);

    box-shadow:
        0 8px 24px rgba(32, 69, 60, 0.05);
}


.course-result-title {
    display: block;

    margin-bottom: 15px;

    color: #294e45;

    font-size: 16px;
    font-weight: 800;
}


.course-result-list {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 13px 24px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.course-result-list li {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #566b65;

    font-size: 15px;
    line-height: 1.55;
}


.course-result-list strong {
    color: #345e54;
}


.course-result-check {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    margin-top: 1px;

    border-radius: 50%;

    background: rgba(45, 112, 92, 0.1);

    color: #2d705c;

    font-size: 12px;
    font-weight: 900;
}


/* Как проходит обучение */

.course-description-method {
    margin: 22px 0 0;
    padding-left: 18px;

    border-left: 3px solid #c7a75b;

    color: #65766f;

    font-size: 14px;
    line-height: 1.7;
}


@media (max-width: 700px) {

    .course-description-sales {
        padding: 22px 18px;
    }

    .course-description-sales h3 {
        font-size: 23px;
    }

    .course-result-list {
        grid-template-columns: 1fr;
    }

}
.course-buy-button-main {
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}
/* =========================================================
   Короткое продающее описание курса
   ========================================================= */

.course-description-sales {
    padding: 32px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #f5faf8,
            #ffffff
        );

    border: 1px solid rgba(44, 101, 86, 0.12);
}


.course-description-label {
    display: block;

    margin-bottom: 10px;

    color: #b08b3e;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.course-description-sales h3 {
    max-width: 700px;

    margin: 0;

    color: #24483f;

    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}


.course-description-lead {
    max-width: 600px;

    margin: 13px 0 0;

    color: #687b75;

    font-size: 16px;
    line-height: 1.55;
}


/* Три результата */

.course-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 26px;
}


.course-benefit {
    position: relative;

    padding: 20px;

    border-radius: 16px;

    background: #ffffff;

    border: 1px solid rgba(190, 158, 82, 0.22);
}


.course-benefit > span {
    display: block;

    margin-bottom: 10px;

    color: #c2a153;

    font-size: 12px;
    font-weight: 800;
}


.course-benefit strong {
    display: block;

    color: #2d554b;

    font-size: 16px;
    line-height: 1.3;
}


.course-benefit small {
    display: block;

    margin-top: 6px;

    color: #7b8a85;

    font-size: 13px;
}


@media (max-width: 700px) {

    .course-description-sales {
        padding: 23px 19px;
    }

    .course-benefits {
        grid-template-columns: 1fr;
    }

    .course-benefit {
        padding: 16px 18px;
    }

}
/* =========================================================
   Превью страницы книги
   ========================================================= */

.book-description {
    margin-bottom: 18px;

    line-height: 1.65;
}


.book-page-preview {
    margin-top: 24px;
}


.book-preview-label {
    display: block;

    margin-bottom: 10px;

    color: #9b7d3f;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.03em;
}


.book-preview-frame {
    position: relative;

    padding: 12px;

    border-radius: 16px;

    background: #f4efe4;

    border: 1px solid rgba(181, 148, 75, 0.25);

    box-shadow:
        0 12px 30px rgba(54, 48, 34, 0.09);

    overflow: hidden;
}


.book-preview-frame img {
    display: block;

    width: 100%;
    height: 360px;

    object-fit: contain;

    border-radius: 8px;

    background: #ffffff;
}


@media (max-width: 700px) {

    .book-preview-frame img {
        height: 300px;
    }

}
/* =========================================================
   Две страницы книги
   ========================================================= */

.book-page-preview {
    margin-top: 26px;
}


.book-preview-label {
    display: block;

    margin-bottom: 12px;

    color: #9b7d3f;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.03em;
}


.book-preview-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.book-preview-item {
    padding: 10px 10px 12px;

    border-radius: 15px;

    background: #f5f1e7;

    border: 1px solid rgba(181, 148, 75, 0.24);

    box-shadow:
        0 10px 25px rgba(55, 47, 31, 0.08);

    text-align: center;
}


.book-preview-item img {
    display: block;

    width: 100%;
    height: 310px;

    object-fit: contain;

    border-radius: 7px;

    background: #ffffff;

    transition:
        transform 0.25s ease;
}


.book-preview-item:hover img {
    transform: scale(1.02);
}


.book-preview-item > span {
    display: block;

    margin-top: 9px;

    color: #71807b;

    font-size: 11px;
    font-weight: 600;
}


@media (max-width: 600px) {

    .book-preview-pages {
        gap: 9px;
    }

    .book-preview-item {
        padding: 7px 7px 9px;
    }

    .book-preview-item img {
        height: 230px;
    }

}
/* =========================================================
   Цена адаптированной книги
   ========================================================= */

.book-price-block {
    margin-top: 26px;
    padding: 18px 20px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f8f4e9,
            #fffdf8
        );

    border: 1px solid rgba(181, 148, 75, 0.28);
}


.book-price-special {
    display: block;

    margin-bottom: 7px;

    color: #9b7b38;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.book-price-row {
    display: flex;
    align-items: center;

    gap: 12px;
}


.book-price-current {
    color: #285247;

    font-size: 30px;
    line-height: 1;
}


.book-price-old {
    color: #9ca5a1;

    font-size: 16px;

    text-decoration: line-through;
}


.book-price-after {
    display: block;

    margin-top: 7px;

    color: #788680;

    font-size: 12px;
}
/* =========================================================
   Кнопка покупки книги справа
   ========================================================= */

.book-card .book-button {
    width: auto;
    min-width: 190px;

    margin-top: 18px;
    margin-left: auto;

    padding: 14px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    align-self: flex-end;

    white-space: nowrap;
}
@media (max-width: 600px) {

    .book-card .book-button {
        width: 100%;
        min-width: 0;

        margin-left: 0;

        align-self: stretch;
    }

}
/* =========================================================
   Страница доступа к материалам
   ========================================================= */

.access-page {
    min-height: 100vh;

    padding: 80px 20px;

    background:
        linear-gradient(
            145deg,
            #f4f8f6,
            #fffdf8
        );
}


.access-section {
    width: min(100%, 720px);

    margin: 0 auto;
}


.access-card {
    padding: 48px;

    border-radius: 26px;

    background: #ffffff;

    border: 1px solid rgba(44, 94, 80, 0.12);

    box-shadow:
        0 24px 65px rgba(34, 71, 61, 0.10);

    text-align: center;
}


.access-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 52px;
    height: 34px;

    margin-bottom: 16px;
    padding: 0 15px;

    border-radius: 999px;

    background: #2d5b50;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}


.access-label {
    display: block;

    margin-bottom: 9px;

    color: #aa8844;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.access-card h1 {
    margin: 0;

    color: #264a41;

    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.15;
}


.access-description {
    max-width: 520px;

    margin: 15px auto 0;

    color: #6e7e79;

    font-size: 16px;
    line-height: 1.65;
}


/* Доступ открыт */

.access-success {
    display: flex;
    align-items: center;

    gap: 15px;

    max-width: 470px;

    margin: 30px auto;
    padding: 17px 20px;

    border-radius: 16px;

    background: #f1f7f4;

    text-align: left;
}


.access-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #2d5b50;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}


.access-success strong {
    color: #2c5147;

    font-size: 15px;
}


.access-success p {
    margin: 3px 0 0;

    color: #74837e;

    font-size: 13px;
}


/* Главная кнопка */

.access-main-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    width: min(100%, 470px);

    margin: 0 auto;
    padding: 17px 24px;

    border-radius: 14px;

    background: #d4b45e;

    color: #243f38;

    text-decoration: none;

    font-size: 16px;
    font-weight: 800;

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


.access-main-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(79, 64, 28, 0.15);
}


.access-main-button span {
    font-size: 21px;
}


.access-note {
    margin: 15px 0 0;

    color: #8b9793;

    font-size: 12px;
}


.access-home-link {
    display: inline-block;

    margin-top: 32px;

    color: #58736b;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


/* Ошибка */

.access-error {
    padding: 50px 30px;

    border-radius: 24px;

    background: #ffffff;

    text-align: center;
}


@media (max-width: 600px) {

    .access-page {
        padding: 45px 16px;
    }

    .access-card {
        padding: 35px 20px;
    }

}

.header-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 999px;

    background: #123f39;
    color: #ffffff;

    font-weight: 800;
    text-decoration: none;
}

.header-account-link:hover {
    background: #0f5047;
}
html.course-access-checking body {
    visibility: hidden;
}
/* =========================================================
   Страница оформления курса
   ========================================================= */

.checkout-page {
    min-height: calc(100vh - 170px);
    padding: 64px 24px 80px;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(216, 174, 88, 0.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f8f6f0 0%,
            #f1eee5 100%
        );
}

.checkout-section {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    color: #49645e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.checkout-back:hover {
    color: #0d4b3e;
    transform: translateX(-4px);
}

.checkout-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.75fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(13, 75, 62, 0.1);
    border-radius: 32px;
    box-shadow:
        0 24px 70px rgba(26, 53, 47, 0.12);
}

.checkout-main {
    padding: 56px;
}

.checkout-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 36px;
    padding: 0 18px;
    margin-right: 10px;
    color: #ffffff;
    background: #0d4b3e;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.checkout-label {
    color: #b48731;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-main h1 {
    max-width: 760px;
    margin: 25px 0 18px;
    color: #153f37;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.checkout-description {
    max-width: 760px;
    margin: 0;
    color: #5f716d;
    font-size: 19px;
    line-height: 1.7;
}

.checkout-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 38px 0 46px;
}

.checkout-stats > div {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #f2f6f4;
    border: 1px solid rgba(13, 75, 62, 0.08);
    border-radius: 18px;
    text-align: center;
}

.checkout-stats strong {
    margin-bottom: 6px;
    color: #0d4b3e;
    font-size: 25px;
    line-height: 1;
}

.checkout-stats span {
    color: #6b7c78;
    font-size: 14px;
}

.checkout-includes {
    padding-top: 34px;
    border-top: 1px solid #e5ebe8;
}

.checkout-includes h2 {
    margin: 0 0 22px;
    color: #153f37;
    font-size: 27px;
}

.checkout-includes ul {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-includes li {
    position: relative;
    padding-left: 33px;
    color: #425651;
    font-size: 17px;
    line-height: 1.55;
}

.checkout-includes li::first-letter {
    color: #b48731;
    font-weight: 800;
}

.checkout-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 42px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(225, 184, 98, 0.25),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            #123f37 0%,
            #082e28 100%
        );
}

.checkout-offer::before {
    content: "Π";
    position: absolute;
    top: 18px;
    right: 28px;
    color: rgba(255, 255, 255, 0.06);
    font-family: Georgia, serif;
    font-size: 130px;
    line-height: 1;
    pointer-events: none;
}

.checkout-offer-label {
    position: relative;
    color: #e1bd72;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-price {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
}

.checkout-price strong {
    color: #ffffff;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
}

.checkout-price span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 25px;
}

.checkout-launch-note {
    position: relative;
    margin: 0 0 24px;
    color: #e6cc94;
    font-size: 15px;
    line-height: 1.5;
}

.checkout-full-price {
    position: relative;
    margin: 0 0 34px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
}

.checkout-full-price strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 18px;
}

.checkout-payment-title {
    position: relative;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.checkout-payment-button {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    margin-top: 13px;
    padding: 14px 18px;
    color: #153f37;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    text-decoration: none;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.13);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.checkout-payment-button:hover {
    transform: translateY(-3px);
    background: #fffdf8;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.2);
}

.checkout-payment-button:focus-visible {
    outline: 3px solid #e1bd72;
    outline-offset: 3px;
}

.checkout-payment-symbol {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #c99c45;
    border-radius: 14px;
    font-size: 23px;
    font-weight: 800;
}

.checkout-payment-button strong,
.checkout-payment-button small {
    display: block;
}

.checkout-payment-button strong {
    margin-bottom: 4px;
    color: #153f37;
    font-size: 17px;
}

.checkout-payment-button small {
    color: #74827f;
    font-size: 13px;
}

.checkout-payment-arrow {
    color: #b48731;
    font-size: 25px;
}

.checkout-payment-note {
    position: relative;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
    line-height: 1.55;
}

.checkout-error {
    max-width: 700px;
    margin: 50px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(26, 53, 47, 0.1);
    text-align: center;
}

.checkout-error h1 {
    color: #153f37;
}

.checkout-error a {
    color: #b48731;
    font-weight: 700;
}


/* =========================================================
   Планшеты
   ========================================================= */

@media (max-width: 980px) {

    .checkout-card {
        grid-template-columns: 1fr;
    }

    .checkout-main,
    .checkout-offer {
        padding: 42px;
    }

    .checkout-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   Телефоны
   ========================================================= */

@media (max-width: 600px) {

    .checkout-page {
        padding: 32px 15px 50px;
    }

    .checkout-card {
        border-radius: 22px;
    }

    .checkout-main,
    .checkout-offer {
        padding: 30px 22px;
    }

    .checkout-main h1 {
        margin-top: 20px;
        font-size: 37px;
    }

    .checkout-description {
        font-size: 16px;
    }

    .checkout-stats {
        gap: 9px;
        margin: 30px 0 36px;
    }

    .checkout-stats > div {
        min-height: 90px;
    }

    .checkout-price strong {
        font-size: 31px;
    }

    .checkout-payment-button {
        grid-template-columns: 42px 1fr auto;
        padding: 13px;
    }

    .checkout-payment-symbol {
        width: 42px;
        height: 42px;
    }

}
/* Временно скрываем оплату в евро */

#checkoutPriceEuro,
#checkoutEuroPayment,
.checkout-price > span {
    display: none;
}
/* Длительность видео на мобильном */

@media (max-width: 600px) {

    .video-cover-duration {
        display: none;
    }

}
/* =========================================================
   Страница бонусных заданий
   ========================================================= */

.bonus-development-card {
    max-width: 760px;
    margin: 30px auto 80px;
    padding: 64px 48px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(15, 82, 72, 0.16);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(24, 68, 61, 0.08);
}

.bonus-development-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    font-size: 36px;
    background: #edf8f5;
    border-radius: 50%;
}

.bonus-development-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 16px;
    color: #12675b;
    font-size: 14px;
    font-weight: 700;
    background: #edf8f5;
    border-radius: 999px;
}

.bonus-development-card h2 {
    margin: 0 0 18px;
    color: #153f38;
    font-size: 34px;
    line-height: 1.2;
}

.bonus-development-card p {
    max-width: 590px;
    margin: 0 auto 16px;
    color: #62736f;
    font-size: 18px;
    line-height: 1.7;
}

.bonus-development-message {
    font-weight: 600;
}

.bonus-development-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.bonus-development-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    text-decoration: none;
}


@media (max-width: 600px) {

    .bonus-development-card {
        margin: 20px 0 50px;
        padding: 42px 22px;
        border-radius: 22px;
    }

    .bonus-development-card h2 {
        font-size: 27px;
    }

    .bonus-development-card p {
        font-size: 16px;
    }

    .bonus-development-actions {
        flex-direction: column;
    }

    .bonus-development-actions a {
        width: 100%;
    }
}
/* =========================================================
   Бесплатный тест на определение уровня
   ========================================================= */

.level-test-promo {
    position: relative;
    width: 100%;
    margin: 48px 0 42px;
}

.level-test-promo-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 36px;
    align-items: center;
    overflow: hidden;
    padding: 36px 46px;
    background:
        linear-gradient(
            135deg,
            #0d5147 0%,
            #146b5e 100%
        );
    border-radius: 30px;
    box-shadow: 0 22px 55px rgba(12, 76, 67, 0.2);
}

.level-test-promo-content::before {
    position: absolute;
    top: -110px;
    right: -80px;
    width: 320px;
    height: 320px;
    content: "";
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.level-test-promo-content::after {
    position: absolute;
    bottom: -130px;
    left: 35%;
    width: 260px;
    height: 260px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.level-test-promo-decoration {
    position: absolute;
    top: -18px;
    right: 52px;
    z-index: 2;
    padding: 9px 20px;
    color: #775d21;
    font-family: Georgia, serif;
    font-size: 16px;
    font-style: italic;
    background: #f5e5b9;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(64, 48, 12, 0.13);
}

.level-test-promo-text,
.level-test-promo-action {
    position: relative;
    z-index: 1;
}

.level-test-promo-label {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 7px 14px;
    color: #f7df9c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
}

.level-test-promo h2 {
    max-width: 620px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(28px, 3.5vw, 39px);
    line-height: 1.12;
}

.level-test-promo-text > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.55;
}

.level-test-promo-features {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.level-test-promo-features span {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.level-test-promo-features strong {
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 20px;
}

.level-test-promo-features i {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
}

.level-test-promo-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.level-test-levels {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.level-test-levels span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #0d5147;
    font-weight: 800;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.level-test-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 50px;
    padding: 14px 22px;
    color: #153f38;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    background: #f5e5b9;
    border-radius: 15px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.level-test-start-button:hover {
    background: #ffedbd;
    box-shadow: 0 12px 25px rgba(32, 23, 4, 0.18);
    transform: translateY(-2px);
}

.level-test-start-button span {
    font-size: 22px;
}

.level-test-promo-action small {
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
}


/* =========================================================
   Бесплатный тест — мобильная версия
   ========================================================= */

@media (max-width: 760px) {

    .level-test-promo {
    margin: 34px 0 28px;
}

    .level-test-promo-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 34px 20px 22px;
        border-radius: 24px;
    }

    .level-test-promo-decoration {
        top: -14px;
        right: 30px;
        font-size: 14px;
    }

    .level-test-promo h2 {
        font-size: 30px;
    }

    .level-test-promo-text > p {
        font-size: 16px;
    }

    .level-test-promo-features {
        justify-content: space-between;
        gap: 10px;
    }

    .level-test-promo-features span {
        flex: 1;
        text-align: center;
    }

    .level-test-promo-features i {
        height: 28px;
    }

    .level-test-promo-action {
        padding: 26px 18px;
    }

    .level-test-levels span {
        width: 50px;
        height: 50px;
    }
}
/* =========================================================
   Тест на определение уровня
   ========================================================= */

.level-test-page {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 80px;
}


/* ---------- Верхняя часть ---------- */

.level-test-hero {
    margin-bottom: 30px;
    text-align: center;
}

.level-test-hero .back-link {
    display: inline-flex;
    margin-bottom: 28px;
}

.level-test-page-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 16px;
    color: var(--emerald);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--emerald-light);
    border-radius: 999px;
}

.level-test-hero h1 {
    margin: 0 0 16px;
    color: var(--emerald-dark);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.level-test-hero > p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 18px;
    line-height: 1.65;
}


/* ---------- Общая карточка ---------- */

.placement-test {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-medium);
}

.placement-test-start,
.placement-test-questions,
.placement-email-screen,
.placement-result-screen {
    padding: 48px 54px;
}


/* ---------- Стартовый экран ---------- */

.placement-test-start {
    text-align: center;
}

.placement-start-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    color: var(--white);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    background:
        linear-gradient(
            135deg,
            var(--emerald),
            var(--emerald-dark)
        );
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(18, 63, 56, 0.2);
}

.placement-test-start h2 {
    margin: 0 0 14px;
    color: var(--emerald-dark);
    font-size: 32px;
}

.placement-test-start > p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 17px;
    line-height: 1.65;
}

.placement-start-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 570px;
    margin: 30px auto;
    overflow: hidden;
    background: var(--emerald-pale);
    border: 1px solid var(--emerald-light);
    border-radius: 18px;
}

.placement-start-info > div {
    display: flex;
    flex-direction: column;
    padding: 21px 14px;
}

.placement-start-info > div + div {
    border-left: 1px solid var(--emerald-light);
}

.placement-start-info strong {
    color: var(--emerald-dark);
    font-size: 23px;
}

.placement-start-info span {
    margin-top: 3px;
    color: var(--text-medium);
    font-size: 13px;
}

.placement-start-notice {
    display: flex;
    gap: 14px;
    max-width: 650px;
    margin: 0 auto 28px;
    padding: 18px 20px;
    text-align: left;
    background: #fffaf0;
    border: 1px solid var(--gold-light);
    border-radius: 16px;
}

.placement-start-notice > span {
    flex: 0 0 auto;
    font-size: 21px;
}

.placement-start-notice p {
    margin: 0;
    color: #6f6148;
    font-size: 14px;
    line-height: 1.55;
}

.placement-start-button,
.placement-next-button,
.placement-result-button,
.placement-courses-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 13px 28px;
    color: var(--white);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    background: var(--emerald-dark);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition:
        transform var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.placement-start-button:hover,
.placement-next-button:hover,
.placement-result-button:hover,
.placement-courses-button:hover {
    background: var(--emerald);
    box-shadow: 0 10px 24px rgba(18, 63, 56, 0.18);
    transform: translateY(-2px);
}


/* ---------- Прогресс ---------- */

.placement-progress {
    margin-bottom: 30px;
}

.placement-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 700;
}

#placementCurrentLevel {
    padding: 5px 11px;
    color: var(--emerald);
    background: var(--emerald-light);
    border-radius: 999px;
}

.placement-progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: var(--emerald-pale);
    border-radius: 999px;
}

.placement-progress-fill {
    width: 0;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--emerald)
        );
    border-radius: inherit;
    transition: width 0.35s ease;
}


/* ---------- Карточка вопроса ---------- */

.placement-question-card {
    min-height: 330px;
    padding: 36px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--emerald-pale)
        );
    border: 1px solid var(--border);
    border-radius: 22px;
}

.placement-question-type {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    color: var(--lavender-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--lavender);
    border-radius: 999px;
}

.placement-question-card h2 {
    margin: 0 0 26px;
    color: var(--emerald-dark);
    font-size: 25px;
    line-height: 1.45;
}

.placement-answer-options {
    display: grid;
    gap: 12px;
}

.placement-answer-option {
    width: 100%;
    padding: 15px 18px;
    color: var(--text-dark);
    font: inherit;
    font-size: 16px;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition:
        border-color var(--transition),
        background-color var(--transition),
        transform var(--transition);
}

.placement-answer-option:hover {
    border-color: var(--emerald);
    transform: translateX(3px);
}

.placement-answer-option.is-selected {
    color: var(--emerald-dark);
    font-weight: 700;
    background: var(--emerald-light);
    border-color: var(--emerald);
}


/* ---------- Кнопки вопроса ---------- */

.placement-question-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.placement-previous-button,
.placement-restart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 23px;
    color: var(--emerald);
    font: inherit;
    font-weight: 750;
    background: var(--white);
    border: 1px solid var(--emerald-light);
    border-radius: 14px;
    cursor: pointer;
    transition:
        background-color var(--transition),
        border-color var(--transition);
}

.placement-previous-button:hover,
.placement-restart-button:hover {
    background: var(--emerald-pale);
    border-color: var(--emerald);
}

.placement-previous-button:disabled,
.placement-next-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}


/* ---------- Форма email ---------- */

.placement-email-screen {
    text-align: center;
}

.placement-email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 31px;
    font-weight: 800;
    background: var(--success);
    border-radius: 50%;
}

.placement-email-label,
.placement-result-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.placement-email-screen h2,
.placement-result-screen h2 {
    margin: 0 0 14px;
    color: var(--emerald-dark);
    font-size: 32px;
}

.placement-email-screen > p {
    max-width: 580px;
    margin: 0 auto 28px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
}

.placement-email-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.placement-email-form > label:first-child {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
}

.placement-email-form input[type="email"] {
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    color: var(--text-dark);
    font: inherit;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
}

.placement-email-form input[type="email"]:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(29, 107, 92, 0.1);
}

.placement-newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 18px;
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.placement-newsletter-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--emerald);
}

.placement-privacy-note {
    margin: 15px 0 22px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
}

.placement-privacy-note a {
    color: var(--emerald);
}

.placement-result-button {
    width: 100%;
}


/* ---------- Результат ---------- */

.placement-result-screen {
    text-align: center;
}

.placement-result-level {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 105px;
    margin: 4px auto 22px;
    color: var(--white);
    font-size: 35px;
    font-weight: 900;
    background:
        linear-gradient(
            135deg,
            var(--emerald),
            var(--emerald-dark)
        );
    border: 7px solid var(--emerald-light);
    border-radius: 50%;
}

.placement-result-description {
    max-width: 650px;
    margin: 0 auto 28px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.65;
}

.placement-result-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 28px;
    overflow: hidden;
    background: var(--emerald-pale);
    border: 1px solid var(--emerald-light);
    border-radius: 18px;
}

.placement-result-scores > div {
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
}

.placement-result-scores > div + div {
    border-left: 1px solid var(--emerald-light);
}

.placement-result-scores span {
    color: var(--text-medium);
    font-size: 13px;
}

.placement-result-scores strong {
    margin-top: 5px;
    color: var(--emerald-dark);
    font-size: 21px;
}

.placement-recommendation {
    margin-bottom: 28px;
    padding: 22px;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: left;
    background: #fffaf0;
    border: 1px solid var(--gold-light);
    border-radius: 17px;
}

.placement-result-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}


/* =========================================================
   Тест на уровень — мобильная версия
   ========================================================= */

@media (max-width: 650px) {

    .level-test-page {
        width: min(100% - 24px, 920px);
        padding: 26px 0 55px;
    }

    .level-test-hero {
        margin-bottom: 22px;
    }

    .level-test-hero .back-link {
        margin-bottom: 22px;
    }

    .level-test-hero h1 {
        font-size: 30px;
    }

    .level-test-hero > p {
        font-size: 16px;
    }

    .placement-test {
        border-radius: 21px;
    }

    .placement-test-start,
    .placement-test-questions,
    .placement-email-screen,
    .placement-result-screen {
        padding: 30px 18px;
    }

    .placement-start-icon {
        width: 70px;
        height: 70px;
        font-size: 21px;
    }

    .placement-test-start h2,
    .placement-email-screen h2,
    .placement-result-screen h2 {
        font-size: 27px;
    }

    .placement-test-start > p {
        font-size: 15px;
    }

    .placement-start-info {
        margin: 24px auto;
    }

    .placement-start-info > div {
        padding: 17px 7px;
    }

    .placement-start-info strong {
        font-size: 19px;
    }

    .placement-start-info span {
        font-size: 11px;
    }

    .placement-start-notice {
        padding: 15px;
    }

    .placement-start-button {
        width: 100%;
    }

    .placement-question-card {
        min-height: 0;
        padding: 24px 17px;
    }

    .placement-question-card h2 {
        font-size: 21px;
    }

    .placement-answer-option {
        padding: 14px;
        font-size: 15px;
    }

    .placement-question-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .placement-previous-button,
    .placement-next-button {
        min-width: 0;
        padding: 11px 10px;
        font-size: 13px;
    }

    .placement-result-scores > div {
        padding: 17px 7px;
    }

    .placement-result-scores strong {
        font-size: 17px;
    }

    .placement-result-actions {
        flex-direction: column;
    }

    .placement-courses-button,
    .placement-restart-button {
        width: 100%;
    }
}
/* =========================================================
   Кнопка создания кабинета после теста
   ========================================================= */

.placement-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 14px 28px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0f5b4d,
            #197864
        );

    color: #ffffff;
    text-decoration: none;
    text-align: center;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;

    box-shadow:
        0 12px 28px
        rgba(15, 91, 77, 0.22);

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

.placement-account-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 34px
        rgba(15, 91, 77, 0.3);

    background:
        linear-gradient(
            135deg,
            #0d5145,
            #15836b
        );
}

.placement-account-button:active {
    transform: translateY(0);
}

.placement-account-button:focus-visible {
    outline: 3px solid
        rgba(25, 120, 100, 0.28);

    outline-offset: 3px;
}

@media (max-width: 650px) {

    .placement-account-button {
        width: 100%;
        padding: 13px 18px;
    }

}
/* =========================================================
   БЕСПЛАТНЫЕ ЗАДАНИЯ НА ГЛАВНОЙ
   ========================================================= */

.free-practice-section {
    width: 100%;
    margin: 54px 0 46px;
}

.free-practice-heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.free-practice-label,
.free-practice-card-label {
    display: inline-block;

    color: #b18434;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.free-practice-heading h2 {
    margin: 9px 0 12px;

    color: #123f38;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.free-practice-heading p {
    margin: 0;

    color: #65716e;

    font-size: 16px;
    line-height: 1.6;
}

.free-practice-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
    align-items: stretch;
}

.free-practice-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 470px;
    padding: 24px;

    box-sizing: border-box;

    border: 1px solid rgba(18, 63, 56, 0.12);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 16px 40px
        rgba(25, 56, 49, 0.07);
}

.free-practice-card-level {
    background:
        linear-gradient(
            145deg,
            #0f5147,
            #197463
        );

    color: #ffffff;
}

.free-practice-card-alphabet {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f3f8f6
        );
}

.free-practice-card-coming {
    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f7f0df
        );
}

.free-practice-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    margin-bottom: 20px;
}

.free-practice-card-number {
    color: rgba(18, 63, 56, 0.45);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.free-practice-card-level
.free-practice-card-number {
    color: rgba(255, 255, 255, 0.55);
}

.free-practice-card-badge,
.free-practice-coming-badge,
.alphabet-counter {
    padding: 7px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}

.free-practice-card-badge {
    color: #684e17;
    background: #f4dda5;
}

.free-practice-coming-badge {
    color: #765d27;
    background: #f4e4bd;
}

.alphabet-counter {
    color: #17584d;
    background: #e1f0eb;
}

.free-practice-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;
    margin-bottom: 22px;

    border-radius: 20px;

    color: #ffffff;

    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 800;

    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.free-practice-card-coming
.free-practice-card-icon {
    color: #755c28;
    background: #f5e4bb;
    border-color: rgba(117, 92, 40, 0.12);
}

.free-practice-card-level
.free-practice-card-label {
    color: #f2d38b;
}

.free-practice-card h3 {
    margin: 10px 0 12px;

    color: #123f38;

    font-size: 25px;
    line-height: 1.17;
}

.free-practice-card-level h3 {
    color: #ffffff;
}

.free-practice-card > p,
.free-practice-card-level > p {
    margin: 0;

    color: #65716e;

    font-size: 15px;
    line-height: 1.58;
}

.free-practice-card-level > p {
    color: rgba(255, 255, 255, 0.77);
}

.free-practice-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    margin: 22px 0;
}

.free-practice-card-meta span {
    padding: 8px 11px;

    border-radius: 999px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 12px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.1);
}

.free-practice-button,
.alphabet-next-button,
.alphabet-restart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 18px;

    box-sizing: border-box;

    border: 0;
    border-radius: 14px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    cursor: pointer;

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

.free-practice-card-level
.free-practice-button {
    gap: 10px;

    color: #123f38;
    background: #f4dda5;
}

.free-practice-button:hover,
.alphabet-next-button:hover,
.alphabet-restart-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px
        rgba(24, 64, 56, 0.14);
}

.free-practice-button-disabled {
    color: #8c8065;
    background: rgba(177, 132, 52, 0.12);

    cursor: default;
}

.free-practice-button-disabled:hover {
    transform: none;
    box-shadow: none;
}


/* =========================================================
   ИГРА «ГРЕЧЕСКИЙ АЛФАВИТ»
   ========================================================= */

.alphabet-progress {
    width: 100%;
    height: 6px;
    margin-bottom: 17px;

    overflow: hidden;

    border-radius: 999px;

    background: #dce9e5;
}

.alphabet-progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #196c5e,
            #c6a15b
        );

    transition: width 0.3s ease;
}

.alphabet-question-card {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
}

.alphabet-letter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    margin: 15px 0 10px;
}

.alphabet-letter {
    color: #123f38;

    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    line-height: 1;
}

.alphabet-audio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    padding: 9px 11px;

    border: 1px solid rgba(20, 100, 86, 0.18);
    border-radius: 12px;

    color: #165f52;
    background: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.alphabet-audio-button:hover,
.alphabet-audio-button.is-playing {
    color: #ffffff;
    background: #176b5c;
}

.alphabet-audio-button svg {
    width: 18px;
    height: 18px;

    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alphabet-question-card h3 {
    margin: 9px 0 14px;

    font-size: 18px;
}

.alphabet-options {
    display: grid;
    gap: 8px;
}

.alphabet-option {
    width: 100%;
    padding: 11px 13px;

    border: 1px solid rgba(18, 63, 56, 0.14);
    border-radius: 12px;

    color: #173f38;
    background: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.alphabet-option:hover:not(:disabled) {
    border-color: #1d6b5c;
    background: #eef7f4;

    transform: translateY(-1px);
}

.alphabet-option.is-correct {
    border-color: #2f8a67;
    color: #176346;
    background: #e5f5ee;
}

.alphabet-option.is-wrong {
    border-color: #b64f4f;
    color: #9c3e3e;
    background: #faeaea;
}

.alphabet-option:disabled {
    cursor: default;
}

.alphabet-feedback {
    min-height: 22px;
    margin: 10px 0;

    color: #1d6b5c;

    font-size: 13px;
    font-weight: 800;
}

.alphabet-question-card.is-wrong
.alphabet-feedback {
    color: #a44444;
}

.alphabet-next-button,
.alphabet-restart-button {
    color: #ffffff;
    background: #123f38;
}

.alphabet-result {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.alphabet-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;
    margin-bottom: 18px;

    border-radius: 24px;

    color: #ffffff;

    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 800;

    background:
        linear-gradient(
            145deg,
            #123f38,
            #1d7564
        );
}

.alphabet-result h3 {
    margin-bottom: 8px;
}

.alphabet-result-score {
    display: block;

    margin-bottom: 12px;

    color: #123f38;

    font-size: 24px;
}

.alphabet-result p {
    margin: 0 0 20px;

    color: #65716e;

    font-size: 14px;
    line-height: 1.5;
}

.free-practice-preview {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 7px;
    margin: 22px 0;
}

.free-practice-preview span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    border: 1px solid rgba(117, 92, 40, 0.13);
    border-radius: 12px;

    color: #755c28;

    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   БЕСПЛАТНЫЕ ЗАДАНИЯ — АДАПТИВ
   ========================================================= */

@media (max-width: 1050px) {
    .free-practice-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .free-practice-card-coming {
        grid-column: 1 / -1;
        min-height: 340px;
    }
}

@media (max-width: 700px) {
    .free-practice-section {
        margin: 38px 0 32px;
    }

    .free-practice-heading {
        margin-bottom: 22px;
        padding: 0 10px;
    }

    .free-practice-heading h2 {
        font-size: 29px;
    }

    .free-practice-grid {
        grid-template-columns: 1fr;
    }

    .free-practice-card {
        min-height: 0;
        padding: 20px;

        border-radius: 20px;
    }

    .free-practice-card-coming {
        grid-column: auto;
        min-height: 0;
    }

    .alphabet-letter {
        font-size: 52px;
    }
}

@media (max-width: 390px) {
    .alphabet-letter-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .alphabet-audio-button {
        width: 100%;
    }

    .free-practice-preview {
        grid-template-columns:
            repeat(2, 1fr);
    }
}
/* =========================================================
   ИГРА «ДИФТОНГИ И ДИГРАФЫ»
   ========================================================= */

.free-practice-card-digraph {
    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f7f0df
        );
}

.digraph-counter {
    padding: 7px 11px;

    border-radius: 999px;

    color: #755c28;
    background: #f4e4bd;

    font-size: 12px;
    font-weight: 800;
}

.digraph-progress {
    width: 100%;
    height: 6px;
    margin-bottom: 17px;

    overflow: hidden;

    border-radius: 999px;
    background: #eadfc6;
}

.digraph-progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #b18434,
            #1d6b5c
        );

    transition: width 0.3s ease;
}

.digraph-question-card {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
}

.digraph-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 105px;
    margin: 15px 0 10px;

    border: 1px solid rgba(117, 92, 40, 0.13);
    border-radius: 20px;

    color: #755c28;

    font-family: Georgia, serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;

    background: rgba(255, 255, 255, 0.68);
}

.digraph-question-card h3 {
    margin: 9px 0 14px;

    color: #123f38;
    font-size: 18px;
}

.digraph-options {
    display: grid;
    gap: 8px;
}

.digraph-option {
    width: 100%;
    padding: 11px 13px;

    border: 1px solid rgba(18, 63, 56, 0.14);
    border-radius: 12px;

    color: #173f38;
    background: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.digraph-option:hover:not(:disabled) {
    border-color: #b18434;
    background: #fff8e9;

    transform: translateY(-1px);
}

.digraph-option.is-correct {
    border-color: #2f8a67;
    color: #176346;
    background: #e5f5ee;
}

.digraph-option.is-wrong {
    border-color: #b64f4f;
    color: #9c3e3e;
    background: #faeaea;
}

.digraph-option:disabled {
    cursor: default;
}

.digraph-feedback {
    min-height: 38px;
    margin: 10px 0 0;

    color: #1d6b5c;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.digraph-question-card.is-wrong
.digraph-feedback {
    color: #a44444;
}

.digraph-result {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.digraph-result[hidden] {
    display: none;
}

.digraph-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;
    margin-bottom: 18px;

    border-radius: 24px;

    color: #ffffff;

    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 800;

    background:
        linear-gradient(
            145deg,
            #a57b2d,
            #d0aa60
        );
}

.digraph-result h3 {
    margin-bottom: 8px;
}

.digraph-result-score {
    display: block;

    margin-bottom: 12px;

    color: #123f38;
    font-size: 24px;
}

.digraph-result p {
    margin: 0 0 20px;

    color: #65716e;

    font-size: 14px;
    line-height: 1.5;
}

.digraph-restart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 18px;

    border: 0;
    border-radius: 14px;

    color: #ffffff;
    background: #123f38;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.digraph-restart-button:hover {
    background: #1d6b5c;
}

/* =========================================================
   БЕСПЛАТНОЕ ЗАДАНИЕ МЕСЯЦА
   ========================================================= */

.monthly-task-section {
    padding: 74px 20px;

    background:
        linear-gradient(
            180deg,
            #f5f3ee 0%,
            #edf4f0 100%
        );
}

.monthly-task-container {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.monthly-task-card {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, 0.75fr);
    gap: 52px;
    align-items: center;

    padding: 56px;

    border: 1px solid rgba(18, 63, 57, 0.12);
    border-radius: 32px;

    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(181, 138, 59, 0.17),
            transparent 30%
        ),
        #ffffff;

    box-shadow:
        0 22px 70px rgba(20, 50, 44, 0.09);
}

.monthly-task-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 56px;

    width: 100px;
    height: 5px;

    border-radius: 0 0 999px 999px;

    background: #b58a3b;
}


/* Декоративные буквы */

.monthly-task-decoration {
    position: absolute;
    right: -16px;
    bottom: -32px;

    display: flex;
    gap: 4px;

    color: rgba(18, 63, 57, 0.035);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 125px;
    font-weight: 700;

    pointer-events: none;
}


/* Основной текст */

.monthly-task-content {
    position: relative;
    z-index: 2;
}

.monthly-task-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.monthly-task-label {
    color: #b58a3b;

    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.monthly-task-badge {
    padding: 7px 11px;

    border-radius: 999px;

    background: #eaf5f1;
    color: #176b5b;

    font-size: 12px;
    font-weight: 850;
}

.monthly-task-content h2 {
    max-width: 620px;
    margin: 0 0 17px;

    color: #123f39;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(37px, 5vw, 56px);
    line-height: 1.06;
}

.monthly-task-lead {
    max-width: 620px;
    margin: 0;

    color: #667873;

    font-size: 17px;
    line-height: 1.65;
}


/* Преимущества */

.monthly-task-benefits {
    display: grid;
    gap: 11px;

    margin: 27px 0 31px;
}

.monthly-task-benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #355751;

    font-size: 14px;
    font-weight: 750;
}

.monthly-task-benefit-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #eaf5f1;
    color: #176b5b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 900;
}


/* Кнопка и подпись */

.monthly-task-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 17px 22px;
}

.monthly-task-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 53px;
    padding: 14px 24px;

    border-radius: 999px;

    background: #123f39;
    color: #ffffff;

    font-size: 15px;
    font-weight: 850;
    text-decoration: none;

    box-shadow:
        0 12px 25px rgba(18, 63, 57, 0.18);

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

.monthly-task-button:hover {
    background: #176b5b;

    box-shadow:
        0 15px 30px rgba(18, 63, 57, 0.23);

    transform: translateY(-2px);
}

.monthly-task-button span {
    font-size: 19px;
    line-height: 1;
}

.monthly-task-update-note {
    max-width: 310px;
    margin: 0;

    color: #7a8986;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   ПРАВАЯ ДЕКОРАТИВНАЯ ЧАСТЬ
   ========================================================= */

.monthly-task-visual {
    position: relative;
    z-index: 2;

    padding: 26px;

    border: 1px solid rgba(18, 63, 57, 0.11);
    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            #edf8f3,
            #fbf6ea
        );

    box-shadow:
        0 18px 42px rgba(27, 65, 57, 0.10);

    text-align: center;

    transform: rotate(1.5deg);
}

.monthly-task-visual-label {
    display: inline-block;

    margin-bottom: 19px;
    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.80);
    color: #b58a3b;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.monthly-task-visual-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 215px;
    height: 215px;
    margin: 0 auto;

    border: 1px solid rgba(23, 107, 91, 0.14);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #176b5b,
            #123f39
        );

    color: #ffffff;

    box-shadow:
        0 18px 35px rgba(18, 63, 57, 0.20);
}

.monthly-task-visual-circle strong {
    margin: 5px 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
}

.monthly-task-visual-circle > span:last-child {
    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    font-weight: 750;
}

.monthly-task-visual-small {
    color: #ddc27e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
}

.monthly-task-visual-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;

    margin-top: 21px;
}

.monthly-task-visual-tags span {
    padding: 8px 11px;

    border: 1px solid rgba(18, 63, 57, 0.09);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.76);
    color: #48655f;

    font-size: 12px;
    font-weight: 750;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    .monthly-task-card {
        grid-template-columns: 1fr;
        gap: 38px;

        padding: 44px;
    }

    .monthly-task-visual {
        width: min(100%, 500px);

        transform: none;
    }

}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 600px) {

    .monthly-task-section {
        padding: 48px 14px;
    }

    .monthly-task-card {
        gap: 31px;

        padding: 34px 20px 22px;

        border-radius: 24px;
    }

    .monthly-task-card::before {
        left: 20px;
    }

    .monthly-task-content h2 {
        font-size: 37px;
    }

    .monthly-task-lead {
        font-size: 15px;
    }

    .monthly-task-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .monthly-task-button {
        width: 100%;
    }

    .monthly-task-update-note {
        max-width: none;

        text-align: center;
    }

    .monthly-task-visual {
        padding: 21px 14px;

        border-radius: 21px;
    }

    .monthly-task-visual-circle {
        width: 185px;
        height: 185px;
    }

    .monthly-task-visual-circle strong {
        font-size: 25px;
    }

}
/* Компактный баннер главной страницы */
.home-page .hero {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1200px;
  min-height: 340px;
  height: auto;
  margin: 24px auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;

  background: #f8f6ef url("../images/hero-yulia.png")
    center center / cover no-repeat;
}

.home-page .hero-overlay {
  display: none;
}

.home-page .hero-content {
  position: relative;
  width: 58%;
  max-width: 640px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.home-page .hero h1 {
  margin: 0 0 16px;
  color: #17463e;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  text-shadow: none;
}

.home-page .hero p {
  margin: 0 0 22px;
  color: #425c55;
  font-size: 16px;
  line-height: 1.6;
  text-shadow: none;
}

.home-page .hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: #196b59;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.home-page .hero-button:hover {
  background: #145446;
}

/* На телефоне фото сверху, текст ниже */
@media (max-width: 600px) {
  .home-page .hero {
    min-height: 0;
    margin: 16px auto;
    padding: 190px 20px 24px;
    border-radius: 16px;
    background-position: right top;
    background-size: auto 180px;
  }

  .home-page .hero-content {
    width: 100%;
    max-width: none;
  }

  .home-page .hero h1 {
    font-size: 26px;
  }

  .home-page .hero p {
    font-size: 14px;
  }

  .home-page .hero p br {
    display: none;
  }
}

/* Яркая карточка бесплатного задания */
.monthly-task-card.monthly-task-card--play {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 30px;
  min-height: 0;
  padding: 32px;
  overflow: hidden;

  background: linear-gradient(120deg, #fff0df, #fff8ec 60%, #e8f4ef);
  border: 1px solid #ecdcc8;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(50, 74, 61, 0.07);
}

.monthly-task-card--play::before,
.monthly-task-card--play::after {
  content: none;
}

.monthly-task-card--play .monthly-task-content {
  position: relative;
  width: auto;
  max-width: none;
  padding: 0;
}

.monthly-task-card--play .monthly-task-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.monthly-task-card--play .monthly-task-label {
  padding: 7px 12px;
  background: #176c58;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: none;
}

.monthly-task-card--play .monthly-task-badge {
  padding: 7px 12px;
  background: #ffffffb3;
  color: #56685f;
  border-radius: 8px;
  font-size: 12px;
}

.monthly-task-card--play h2 {
  margin: 0 0 12px;
  color: #17463e;
  font-family: inherit;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.monthly-task-card--play .monthly-task-lead {
  max-width: 600px;
  margin: 0 0 18px;
  color: #52665e;
  font-size: 16px;
  line-height: 1.6;
}

.monthly-task-card--play .monthly-task-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.monthly-task-card--play .monthly-task-benefit {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  background: #ffffffb3;
  border-radius: 8px;
  color: #365b4e;
  font-size: 13px;
  font-weight: 600;
}

.monthly-task-card--play .monthly-task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0;
}

.monthly-task-card--play .monthly-task-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 20px;
  background: #176c58;
  color: #ffffff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(23, 108, 88, 0.15);
  transition: background 0.2s;
}

.monthly-task-card--play .monthly-task-button:hover {
  background: #125341;
}

.monthly-task-card--play .monthly-task-button:focus-visible {
  outline: 3px solid #b78324;
  outline-offset: 4px;
}

.monthly-task-card--play .monthly-task-update-note {
  max-width: none;
  margin: 0;
  color: #627369;
  font-size: 12px;
  line-height: 1.5;
}

/* Декоративные карточки с греческими буквами */
.monthly-play-visual {
  position: relative;
  width: 300px;
  height: 250px;
  justify-self: center;
}

.monthly-play-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 108px;
  height: 126px;
  border: 3px solid #ffffff;
  border-radius: 20px;
  font-size: 40px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(37, 71, 57, 0.12);
}

.monthly-play-tile--alpha {
  top: 35px;
  left: 12px;
  background: #f8cc66;
  color: #624819;
  transform: rotate(-14deg);
}

.monthly-play-tile--beta {
  top: 15px;
  left: 99px;
  background: #64b6a2;
  color: #ffffff;
  transform: rotate(7deg);
}

.monthly-play-tile--gamma {
  top: 85px;
  left: 175px;
  background: #f2a88e;
  color: #663e32;
  transform: rotate(16deg);
}

.monthly-play-spark {
  position: absolute;
  top: 0;
  left: 28px;
  color: #d69b24;
  font-size: 32px;
}

.monthly-play-question {
  position: absolute;
  top: 8px;
  right: 15px;
  color: #287b68;
  font-size: 40px;
  font-weight: 800;
  transform: rotate(12deg);
}

.monthly-play-check {
  position: absolute;
  top: 157px;
  left: 113px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #176c58;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 700;
}

.monthly-play-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #365b4e;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 760px) {
  .monthly-task-card.monthly-task-card--play {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .monthly-play-visual {
    order: -1;
    transform: scale(0.8);
    height: 210px;
    margin: -12px 0;
  }
}

@media (max-width: 420px) {
  .monthly-task-card.monthly-task-card--play {
    padding: 20px 16px;
  }

  .monthly-task-card--play .monthly-task-lead {
    font-size: 14px;
  }

  .monthly-task-card--play .monthly-task-button {
    width: 100%;
    box-sizing: border-box;
  }

  .monthly-play-visual {
    width: 300px;
    max-width: 100%;
    transform: scale(0.7);
    height: 200px;
  }
}
/* Course photo cards — 2026-10-20 */
.pg-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.pg-course-grid>.course-card{display:contents}
.pg-course-grid .course-card-header{grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;min-width:0;width:100%;height:100%;overflow:hidden;border:1px solid #dbe6e0;border-radius:22px;background:#fff;color:#17463e;text-align:left;box-shadow:0 8px 26px #123f3810;cursor:pointer;opacity:1;transition:transform .2s,box-shadow .2s}
.pg-course-grid .course-card-header:hover{transform:translateY(-4px);box-shadow:0 14px 32px #123f3820}
.pg-course-grid .course-card-header:focus-visible{outline:3px solid #c6a15b;outline-offset:4px}
.pg-course-grid .course-card-header[aria-expanded=true]{outline:3px solid #23836e;outline-offset:2px}
.pg-course-photo{position:relative;display:block;height:180px;overflow:hidden}
.pg-course-photo img{width:100%;height:100%;object-fit:cover;display:block}
.pg-course-level{position:absolute;top:14px;left:14px;padding:7px 11px;border-radius:8px;background:#fffffff2;color:#17463e;font-size:11px;font-weight:800;letter-spacing:.06em}
.pg-course-copy{display:flex;flex:1;flex-direction:column;gap:12px;padding:22px;background:#edf7f0;border-top:4px solid #2e9778}
.pg-course-copy>strong{font-size:23px;line-height:1.22;font-weight:800}
.pg-course-copy>span:not(.pg-course-open){font-size:14px;line-height:1.5;color:#50675f}
.pg-course-open{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:16px;font-size:14px;font-weight:750;color:#196b59}
.pg-course-open>span{font-size:24px}
.pg-course-grid>.course-card:nth-of-type(2) .pg-course-copy{background:#eaf3fc;border-color:#3b85c2}
.pg-course-grid>.course-card:nth-of-type(3) .pg-course-copy{background:#fff0e5;border-color:#d98860}
.pg-course-grid .course-card-content{grid-column:1/-1;grid-row:2;box-sizing:border-box;width:100%;margin:0;padding:28px;border:1px solid #dce7df;border-radius:22px;background:#fff;box-shadow:0 8px 25px #123f380c}
.pg-course-grid .course-card-content[hidden]{display:none!important}
.pg-panel-photo{display:block;width:100%;height:210px;object-fit:cover;border-radius:14px;margin:0 0 24px}
@media(max-width:700px){
.pg-course-grid{grid-template-columns:1fr;gap:18px}
.pg-course-grid>.course-card{display:block;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.pg-course-grid .course-card-header{grid-row:auto;min-height:0}
.pg-course-photo{height:170px}
.pg-course-copy{padding:20px}
.pg-course-copy>strong{font-size:22px}
.pg-course-grid .course-card-content{margin-top:16px;padding:18px}
.pg-panel-photo{height:160px}
}
@media(prefers-reduced-motion:reduce){.pg-course-grid .course-card-header{transition:none}}

/* Compact four-course catalogue */
.pg-course-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.pg-course-photo{height:155px}
.pg-course-copy{padding:20px;gap:10px}
.pg-course-copy>strong{font-size:21px}
.pg-course-grid>.course-card:nth-of-type(4) .pg-course-copy{background:#f2edfc;border-color:#9380bf}
.pg-course-grid>.course-card:nth-of-type(4) .pg-course-open{color:#70579d}
@media(min-width:701px) and (max-width:1000px){
.pg-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pg-course-grid>.course-card:nth-of-type(n+3) .course-card-header{grid-row:3}
.pg-course-grid>.course-card:nth-of-type(n+3) .course-card-content{grid-row:4}
}
@media(max-width:700px){.pg-course-grid{grid-template-columns:1fr}.pg-course-photo{height:165px}}

