/* ==========================================================================
   Fundamental Health Web — Learning
   Dashboard, lessons, rank verification and exam.
   ========================================================================== */

/* -------------------------------------------------- */
/* LESSONS                                             */
/* -------------------------------------------------- */
.fh-lesson-list {
    display: grid;
    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.fh-lesson-item {
    display: flex;

    min-height: 72px;

    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-md);

    background: var(--fh-surface);

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

.fh-lesson-item--available:hover {
    border-color: #b3c9c0;

    box-shadow: var(--fh-shadow-sm);

    transform: translateY(-1px);
}

.fh-lesson-item--locked {
    background: #f2f4f3;

    opacity: 0.72;
}

.fh-lesson-item--completed {
    border-color: #c6dfd4;
    background: #fbfdfc;
}

.fh-lesson-item__icon {
    display: inline-flex;

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

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

    border-radius: 12px;

    background: var(--fh-surface-subtle);
    color: var(--fh-text-muted);
}

.fh-lesson-item--completed
.fh-lesson-item__icon {
    background: var(--fh-success-soft);
    color: var(--fh-success);
}

.fh-lesson-item__content {
    min-width: 0;
    flex: 1;
}

.fh-lesson-item__eyebrow {
    margin-bottom: 2px;

    color: var(--fh-text-muted);
    font-size: 0.75rem;
}

.fh-lesson-item__title {
    color: var(--fh-text);
    font-weight: 620;

    text-decoration: none;
}

.fh-lesson-block {
    margin-bottom: 20px;
}

.fh-lesson-text {
    padding: 22px;

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);

    background: var(--fh-surface);

    line-height: 1.75;
    white-space: pre-wrap;
}

.fh-disclosure {
    overflow: hidden;

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);

    background: var(--fh-surface);
}

.fh-disclosure summary {
    padding: 16px 18px;

    color: var(--fh-text);

    font-weight: 620;

    cursor: pointer;
}

.fh-disclosure__body {
    padding: 0 18px 18px;
}

.fh-document-frame {
    display: block;

    width: 100%;
    height: min(80vh, 820px);

    margin-top: 12px;

    border: 0;
    border-radius: var(--fh-radius-md);

    background: #f2f3f3;
}

/* -------------------------------------------------- */
/* EXAM                                                */
/* -------------------------------------------------- */
.fh-exam-shell {
    max-width: 900px;
}

.fh-exam-meta {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 22px;
}

.fh-exam-options {
    display: grid;
    gap: 11px;

    margin-block: 24px;
}

.fh-exam-option {
    position: relative;

    display: flex;

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

    padding: 15px 17px;

    border: 1px solid var(--fh-border-strong);
    border-radius: var(--fh-radius-md);

    background: var(--fh-surface);

    color: var(--fh-text-soft);

    cursor: pointer;

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

.fh-exam-option:hover {
    border-color: #aec5bb;
}

.fh-exam-option:has(input:checked) {
    border-color: var(--fh-primary);

    background: var(--fh-primary-soft);

    box-shadow:
        0 0 0 3px
        rgb(18 107 89 / 0.08);
}

.fh-exam-option input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    margin-top: 2px;

    accent-color: var(--fh-primary);
}

.fh-exam-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-top: 24px;
}

/* -------------------------------------------------- */
/* RESPONSIVE 2                                       */
/* -------------------------------------------------- */
@media (max-width: 850px) {
.fh-speaker {
        grid-template-columns: 1fr;
    }

.fh-speaker__image {
        max-width: 260px;
    }
}

@media (max-width: 620px) {
.fh-exam-navigation {
        align-items: stretch;
        flex-direction: column;
    }

.fh-exam-navigation .fh-button {
        width: 100%;
    }
}

.fh-dashboard-state > section {
    margin: 0;
    padding: 24px;

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);

    background: var(--fh-surface);

    box-shadow: var(--fh-shadow-sm);
}

.fh-dashboard-state > section > h2:first-child {
    margin-bottom: 10px;
}

.fh-dashboard-state nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 16px;
}

.fh-dashboard-state nav a {
    display: inline-flex;

    min-height: 40px;

    align-items: center;

    border: 1px solid var(--fh-border-strong);
    border-radius: 10px;

    padding: 8px 12px;

    background: var(--fh-surface);

    text-decoration: none;
}

/* -------------------------------------------------- */
/* EXAM                                                */
/* -------------------------------------------------- */
.fh-exam-status {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fh-exam-score {
    display: flex;

    align-items: baseline;
    gap: 8px;

    margin-block: 8px 18px;
}

.fh-exam-score__value {
    color: var(--fh-text);

    font-size:
        clamp(
            2.5rem,
            7vw,
            4.5rem
        );

    font-weight: 720;
    line-height: 1;
    letter-spacing: -0.06em;
}

.fh-exam-score__total {
    color: var(--fh-text-muted);

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

.fh-exam-score__caption {
    margin: 0;

    color: var(--fh-text-muted);
    font-size: 0.875rem;
}

.fh-exam-wrong-list {
    display: grid;
    gap: 10px;

    margin: 14px 0 0;
    padding: 0;

    list-style: none;
}

.fh-exam-wrong-item {
    padding: 12px 14px;

    border: 1px solid #f1cfc9;
    border-radius: 11px;

    background: #fff8f7;

    color: var(--fh-text-soft);
}

.fh-exam-question-card {
    padding: clamp(22px, 5vw, 34px);

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-xl);

    background: var(--fh-surface);

    box-shadow: var(--fh-shadow-sm);

    scroll-margin-top: 88px;
}

.fh-exam-question-title {
    margin-bottom: 22px;

    font-size:
        clamp(
            1.35rem,
            4vw,
            1.9rem
        );

    line-height: 1.35;
}

/* -------------------------------------------------- */
/* RANK VERIFICATION                                   */
/* -------------------------------------------------- */
.fh-rank-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fh-rank-page > section {
    margin: 0;

    padding: 24px;

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);

    background: var(--fh-surface);

    box-shadow: var(--fh-shadow-sm);
}

.fh-rank-upload {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.fh-rank-example {
    display: grid;

    grid-template-columns:
        minmax(180px, 330px)
        minmax(0, 1fr);

    gap: 22px;

    align-items: start;

    padding: 18px;

    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);

    background: var(--fh-surface-subtle);
}

.fh-rank-example__image {
    display: block;

    width: 100%;

    border-radius: var(--fh-radius-md);

    box-shadow: var(--fh-shadow-sm);
}

.fh-rank-example__content p:last-child {
    margin-bottom: 0;
}

.fh-rank-status {
    margin: 0;

    color: var(--fh-text-muted);
}

/* -------------------------------------------------- */
/* RESPONSIVE FEATURE                                  */
/* -------------------------------------------------- */
@media (max-width: 700px) {
.fh-rank-example {
        grid-template-columns: 1fr;
    }

.fh-rank-example__image {
        max-width: 360px;
    }
}

/* ================================================== */
/* DASHBOARD                                          */
/* ================================================== */
.fh-dashboard-current-card {
    display: grid;

    gap: 20px;
}

.fh-dashboard-action {
    display: grid;

    justify-items: start;

    gap: 10px;
}

.fh-dashboard-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 9px;
}

.fh-dashboard-countdown {
    display: flex;

    min-height: 74px;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 15px 17px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-surface-subtle);
}

.fh-dashboard-countdown__label {
    color:
        var(--fh-text-muted);

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

.fh-dashboard-countdown__value {
    color:
        var(--fh-text);

    font-size: clamp(
        1.05rem,
        3vw,
        1.35rem
    );

    font-variant-numeric:
        tabular-nums;

    letter-spacing:
        -0.02em;

    white-space:
        nowrap;
}

.fh-dashboard-deadline {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 11px 13px;

    border-radius:
        var(--fh-radius-sm);

    background:
        var(--fh-surface-subtle);

    color:
        var(--fh-text-muted);

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

.fh-dashboard-deadline svg {
    flex:
        0 0 auto;

    color:
        var(--fh-primary);
}

/* Dashboard navigation cards */
.fh-dashboard-links {
    display: grid;

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

    gap: 10px;
}

.fh-dashboard-link-card {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 11px;

    min-width: 0;

    padding: 13px 14px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-surface-subtle);

    color:
        var(--fh-text);

    text-decoration:
        none;

    transition:
        border-color 140ms ease,
        background 140ms ease,
        transform 140ms ease;
}

a.fh-dashboard-link-card:hover {
    border-color:
        var(--fh-primary);

    background:
        var(--fh-primary-soft);

    color:
        var(--fh-text);

    text-decoration:
        none;

    transform:
        translateY(-1px);
}

.fh-dashboard-link-card__icon {
    display: inline-flex;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius:
        11px;

    background:
        var(--fh-surface);

    color:
        var(--fh-primary);
}

.fh-dashboard-link-card__content {
    display: flex;

    min-width: 0;

    flex-direction: column;

    gap: 2px;
}

.fh-dashboard-link-card__content strong {
    overflow: hidden;

    color:
        var(--fh-text);

    font-size: 0.87rem;

    text-overflow:
        ellipsis;
}

.fh-dashboard-link-card__content small {
    color:
        var(--fh-text-muted);

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

.fh-dashboard-link-card > svg {
    color:
        var(--fh-text-muted);
}

.fh-dashboard-link-card--disabled {
    opacity: 0.68;

    cursor: default;
}

/* Dashboard history */
.fh-dashboard-history {
    display: grid;

    gap: 16px;

    padding-top: 4px;
}

.fh-dashboard-history__header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.fh-dashboard-history__header h2 {
    margin:
        3px 0 0;

    color:
        var(--fh-text);

    font-size: 1.25rem;
}

.fh-dashboard-history__header > div > p:last-child {
    max-width: 720px;

    margin:
        6px 0 0;

    color:
        var(--fh-text-muted);

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

.fh-dashboard-history__grid {
    display: grid;

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

    gap: 12px;
}

.fh-dashboard-history-card {
    display: flex;

    min-width: 0;

    flex-direction: column;

    padding: 17px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-surface);

    box-shadow:
        var(--fh-shadow-sm);
}

.fh-dashboard-history-card__header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 13px;

    border-bottom:
        1px solid
        var(--fh-border);
}

.fh-dashboard-history-card__header h3 {
    margin: 0;

    color:
        var(--fh-text);

    font-size: 0.95rem;
}

.fh-dashboard-history-card__period {
    margin:
        4px 0 0;

    color:
        var(--fh-text-muted);

    font-size: 0.75rem;
}

.fh-dashboard-history-card__meta {
    display: grid;

    gap: 10px;

    padding:
        14px 0;
}

.fh-dashboard-history-card__meta-item {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;
}

.fh-dashboard-history-card__meta-item > span:first-child {
    min-width: 90px;

    color:
        var(--fh-text-muted);

    font-size: 0.76rem;
}

.fh-dashboard-history-card__meta-item > strong {
    color:
        var(--fh-text);

    font-size: 0.83rem;

    font-variant-numeric:
        tabular-nums;
}

.fh-dashboard-history-card__footer {
    display: flex;

    align-items: center;

    margin-top: auto;

    padding-top: 13px;

    border-top:
        1px solid
        var(--fh-border);
}

@media (max-width: 700px) {
.fh-dashboard-countdown {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }

.fh-dashboard-countdown__value {
        white-space: normal;
    }

.fh-dashboard-actions {
        align-items: stretch;

        flex-direction: column;
    }

.fh-dashboard-actions .fh-button,
.fh-dashboard-action .fh-button {
        width: 100%;
    }

.fh-dashboard-action {
        justify-items: stretch;
    }

.fh-dashboard-links {
        grid-template-columns: 1fr;
    }

.fh-dashboard-history__header {
        flex-direction: column;
    }

.fh-dashboard-history__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
.fh-dashboard-link-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        padding: 12px;
    }

.fh-dashboard-link-card > svg {
        display: none;
    }

.fh-dashboard-history-card__header {
        flex-direction: column;
    }
}

/* ================================================== */
/* EXAM PROGRESS                                      */
/* ================================================== */
.fh-exam-progress-panel {
    display: grid;

    gap: 14px;

    padding: 16px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-surface);

    box-shadow:
        var(--fh-shadow-sm);
}

.fh-exam-progress-panel__header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.fh-exam-progress-panel__header > div {
    display: flex;

    min-width: 0;

    flex-direction: column;

    gap: 3px;
}

.fh-exam-progress-panel__label {
    color:
        var(--fh-text-muted);

    font-size: 0.72rem;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.fh-exam-progress-panel__count {
    color:
        var(--fh-text);

    font-size: 0.9rem;

    font-variant-numeric:
        tabular-nums;
}

/* Native progress keeps semantics/accessibility. */
.fh-exam-progress-bar {
    display: block;

    width: 100%;
    height: 8px;

    overflow: hidden;

    border: 0;
    border-radius: 999px;

    background:
        var(--fh-surface-subtle);

    appearance: none;
}

.fh-exam-progress-bar::-webkit-progress-bar {
    border-radius: 999px;

    background:
        var(--fh-surface-subtle);
}

.fh-exam-progress-bar::-webkit-progress-value {
    border-radius: 999px;

    background:
        var(--fh-primary);
}

.fh-exam-progress-bar::-moz-progress-bar {
    border-radius: 999px;

    background:
        var(--fh-primary);
}

/* Question navigation */
.fh-exam-progress-nav {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.fh-exam-progress-nav__item {
    display: inline-flex;

    min-width: 34px;
    height: 34px;

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

    gap: 3px;

    padding:
        0 8px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        9px;

    background:
        var(--fh-surface-subtle);

    color:
        var(--fh-text-muted);

    font-size: 0.78rem;
    font-weight: 650;

    font-variant-numeric:
        tabular-nums;

    text-decoration: none;

    transition:
        border-color 140ms ease,
        background 140ms ease,
        color 140ms ease;
}

a.fh-exam-progress-nav__item:hover {
    border-color:
        var(--fh-primary);

    color:
        var(--fh-primary);

    text-decoration: none;
}

.fh-exam-progress-nav__item--answered {
    border-color:
        var(--fh-primary);

    background:
        var(--fh-primary-soft);

    color:
        var(--fh-primary);
}

.fh-exam-progress-nav__item--current {
    border-color:
        var(--fh-primary);

    background:
        var(--fh-primary);

    color: #fff;

    box-shadow:
        0 0 0 3px
        var(--fh-primary-soft);
}

.fh-exam-progress-nav__item--current
svg {
    color: currentColor;
}

.fh-exam-submit {
    display: grid;

    justify-items: start;

    gap: 10px;
}

/* Timer */
.fh-exam-timer[data-expired="true"] {
    border-color:
        var(--fh-danger);

    background:
        var(--fh-danger-soft);

    color:
        var(--fh-danger);
}

@media (max-width: 620px) {
.fh-exam-progress-panel {
        padding: 13px;
    }

.fh-exam-progress-panel__header {
        align-items: flex-start;

        flex-direction: column;
    }

.fh-exam-progress-nav {
        gap: 6px;
    }

.fh-exam-progress-nav__item {
        width: 32px;
        height: 32px;
        min-width: 32px;
        flex: 0 0 32px;

        padding: 0;
    }

.fh-exam-progress-nav__item--answered svg {
        display: none;
    }

.fh-exam-question-card {
        scroll-margin-top: 80px;
    }

.fh-exam-submit {
        justify-items: stretch;
    }

.fh-exam-submit .fh-button {
        width: 100%;
    }

.fh-exam-timer {
        white-space: normal;
    }
}

/* ==========================================================================
   Lessons — clickable rows
   ========================================================================== */
.fh-lesson-item--available {
    padding: 0;
}

.fh-lesson-item__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.fh-lesson-item__link .fh-lesson-item__title {
    color: inherit;
    text-decoration: none;
}

.fh-lesson-item__arrow {
    display: inline-flex;
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.fh-lesson-item__link:focus-visible {
    outline: 3px solid rgba(18, 107, 89, 0.24);
    outline-offset: 2px;
}

@media (hover: hover) {
.fh-lesson-item--available {
        transition:
            border-color 160ms ease,
            box-shadow 160ms ease,
            transform 160ms ease;
    }

.fh-lesson-item--available:hover {
        border-color: rgba(18, 107, 89, 0.28);
        box-shadow: 0 8px 26px rgba(21, 45, 39, 0.07);
        transform: translateY(-1px);
    }

.fh-lesson-item__link:hover .fh-lesson-item__arrow {
        transform: translateX(3px);
    }
}

/* ==========================================================================
   Lesson intro
   ========================================================================== */
.fh-lesson-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(18, 107, 89, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(18, 107, 89, 0.08),
            rgba(18, 107, 89, 0.025)
        );
}

.fh-lesson-intro__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: rgba(18, 107, 89, 0.11);
    color: #126b59;
}

.fh-lesson-intro__content {
    min-width: 0;
}

.fh-lesson-intro__content .fh-eyebrow {
    margin-top: 1px;
    margin-bottom: 8px;
}

.fh-lesson-intro__text {
    line-height: 1.7;
}

/* ==========================================================================
   Lesson disclosure
   ========================================================================== */
.fh-disclosure__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fh-disclosure__summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #126b59;
}

/* ==========================================================================
   Lesson PDF materials
   ========================================================================== */
.fh-lesson-material-card {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.fh-lesson-material-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.fh-lesson-material-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: rgba(18, 107, 89, 0.09);
    color: #126b59;
}

.fh-lesson-material-card__title {
    display: block;
    margin-bottom: 4px;
}

.fh-lesson-material-card__description {
    margin: 0;
    line-height: 1.55;
    opacity: 0.72;
}

.fh-lesson-material-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fh-lesson-material-save-hint {
    margin: -4px 0 0;
    color: var(--fh-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.fh-lesson-document-preview {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
}

.fh-lesson-document-preview .fh-document-frame {
    display: block;
    width: 100%;
    min-height: 680px;
    border: 0;
}

/* ==========================================================================
   Lesson speaker
   ========================================================================== */
.fh-speaker {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    min-width: 0;
}

.fh-speaker__visual {
    min-width: 0;
}

.fh-speaker__image {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0;
    border-radius: 18px;
    object-fit: cover;
}

.fh-speaker__content {
    min-width: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.fh-speaker__line {
    min-height: 1.65em;
}

.fh-speaker__line + .fh-speaker__line {
    margin-top: 5px;
}

.fh-speaker__line--empty {
    min-height: 12px;
}

.fh-speaker__link {
    color: #126b59;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.fh-speaker__link:hover {
    text-decoration-thickness: 2px;
}

/* ==========================================================================
   Lesson mobile
   ========================================================================== */
@media (max-width: 720px) {
.fh-lesson-item__link {
        gap: 12px;
        padding: 15px 14px;
    }

.fh-lesson-item__arrow {
        align-self: center;
    }

.fh-lesson-intro {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 17px;
        border-radius: 18px;
    }

.fh-lesson-intro__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

.fh-lesson-material-card {
        gap: 14px;
    }

.fh-lesson-material-card__header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

.fh-lesson-material-card__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

.fh-lesson-material-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

.fh-lesson-material-actions .fh-button {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }

/*
     * Встроенный PDF viewer на iPhone/PWA неудобен:
     * маленький viewport, внутренний scroll и browser-specific controls.
     *
     * На телефоне оставляем две явные операции:
     * открыть PDF и сохранить PDF.
     */
.fh-lesson-document-preview {
        display: none;
    }

.fh-speaker {
        grid-template-columns: 1fr;
        gap: 18px;
    }

.fh-speaker__visual {
        display: flex;
        justify-content: center;
    }

.fh-speaker__image {
        width: min(100%, 280px);
        max-width: 280px;
        margin-inline: auto;
        border-radius: 20px;
    }

.fh-speaker__content {
        font-size: 0.97rem;
        line-height: 1.65;
    }

.fh-speaker__link {
        display: inline;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 420px) {
.fh-lesson-item__link {
        grid-template-columns: auto minmax(0, 1fr);
    }

.fh-lesson-item__arrow {
        display: none;
    }

.fh-lesson-intro {
        padding: 15px;
    }

.fh-lesson-material-card__header {
        grid-template-columns: 1fr;
    }

.fh-lesson-material-card__icon {
        width: 38px;
        height: 38px;
    }
}
