/* Задача №334. Наставник новичка в мобильном кабинете. */

.mentor {
    position: relative;
    overflow: hidden;
    margin: 0 0 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8ecf5;
    box-shadow: 0 2px 4px rgba(11, 16, 32, .03), 0 14px 30px rgba(11, 16, 32, .07);
}

.mentor::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #4338ca, #0891b2, #34d399);
}

.mentor__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
    cursor: pointer;
}

.mentor__face {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #4338ca, #22d3ee);
    box-shadow: 0 6px 16px rgba(67, 56, 202, .3);
}

.mentor__who b {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    color: #0b1020;
    letter-spacing: -.01em;
}

.mentor__who span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8b95ab;
}

.mentor__toggle {
    margin-left: auto;
    border: none;
    background: none;
    color: #8b95ab;
    font-size: 14px;
    padding: 6px;
    cursor: pointer;
    transition: transform .18s ease;
}

.mentor.is-closed .mentor__toggle {
    transform: rotate(180deg);
}

.mentor.is-closed .mentor__body {
    display: none;
}

.mentor__body {
    padding: 0 18px 18px;
}

.mentor__progress {
    margin-bottom: 14px;
}

.mentor__bar {
    height: 8px;
    border-radius: 5px;
    background: #eef2f7;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(11, 16, 32, .06);
}

.mentor__bar i {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #4338ca, #22d3ee);
    transition: width .4s ease;
}

.mentor__progress-cap {
    display: block;
    margin-top: 7px;
    font-size: 11.5px;
    color: #8b95ab;
}

.mentor__progress-cap b {
    color: #0b1020;
    font-weight: 800;
}

/* Следующий шаг — главный акцент карточки. */
.mentor__step {
    border-radius: 16px;
    padding: 15px 16px;
    background: linear-gradient(160deg, #f5f3ff, #ecfeff);
    border: 1px solid #ddd6fe;
}

.mentor__step-title {
    font-size: 15px;
    font-weight: 800;
    color: #0b1020;
    line-height: 1.35;
}

.mentor__step-text {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.55;
    color: #56607a;
}

.mentor__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, #4338ca, #0891b2);
    box-shadow: 0 8px 20px rgba(67, 56, 202, .26);
}

.mentor__cta:hover,
.mentor__cta:focus {
    color: #fff;
    filter: brightness(1.06);
}

.mentor__lock {
    display: flex;
    gap: 10px;
    margin-top: 13px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px dashed #cbd5e1;
    font-size: 12.5px;
    line-height: 1.5;
    color: #56607a;
}

.mentor__lock i {
    color: #047857;
    font-size: 15px;
    margin-top: 1px;
}

.mentor__tips {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mentor__tip {
    border: 1px solid #e8ecf5;
    border-radius: 13px;
    background: #f7f9fc;
    overflow: hidden;
}

.mentor__tip summary {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0b1020;
    cursor: pointer;
    list-style: none;
}

.mentor__tip summary::-webkit-details-marker {
    display: none;
}

.mentor__tip summary::before {
    content: '▸ ';
    color: #4338ca;
}

.mentor__tip[open] summary::before {
    content: '▾ ';
}

.mentor__tip p {
    margin: 0;
    padding: 0 14px 13px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #56607a;
}

.mentor__kb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4338ca;
    text-decoration: none;
}

.mentor__kb:hover {
    text-decoration: underline;
}

/* Предупреждения перед публикацией. */
.mentor-warn {
    margin: 0 0 14px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ecf5;
    box-shadow: 0 2px 4px rgba(11, 16, 32, .03), 0 12px 26px rgba(11, 16, 32, .06);
}

.mentor-warn__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    background: linear-gradient(120deg, #4338ca, #0891b2);
    color: #fff;
}

.mentor-warn__head b {
    font-size: 14.5px;
    font-weight: 800;
}

.mentor-warn__head span {
    display: block;
    font-size: 11.5px;
    opacity: .85;
    margin-top: 2px;
}

.mentor-warn__list {
    padding: 6px 0;
}

.mentor-warn__item {
    display: flex;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f3f5fa;
}

.mentor-warn__item:last-child {
    border-bottom: none;
}

.mentor-warn__ico {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    background: #94a3b8;
}

.mentor-warn__item--must .mentor-warn__ico {
    background: linear-gradient(135deg, #b91c1c, #f87171);
}

.mentor-warn__item--warn .mentor-warn__ico {
    background: linear-gradient(135deg, #b45309, #fbbf24);
}

.mentor-warn__item--info .mentor-warn__ico {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
}

.mentor-warn__text b {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #0b1020;
    line-height: 1.35;
}

.mentor-warn__text span {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #56607a;
}

@media (prefers-color-scheme: dark) {
    .mentor,
    .mentor-warn {
        background: #0a1120;
        border-color: #1c2740;
    }

    .mentor__who b,
    .mentor__step-title,
    .mentor__tip summary,
    .mentor-warn__text b,
    .mentor__progress-cap b {
        color: #e8ecf7;
    }

    .mentor__step {
        background: linear-gradient(160deg, #171a3a, #0c2b33);
        border-color: #312e81;
    }

    .mentor__tip,
    .mentor__lock {
        background: #0d1526;
        border-color: #1c2740;
    }

    .mentor__bar {
        background: #131c30;
    }

    .mentor__step-text,
    .mentor__tip p,
    .mentor__lock,
    .mentor-warn__text span {
        color: #cbd5e1;
    }

    .mentor-warn__item {
        border-color: #141d31;
    }
}

/* Экран наставника. */
.mentor-page {
    padding-bottom: 20px;
}

.mentor-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #312e81, #0e7490 55%, #0891b2);
    box-shadow: 0 14px 32px rgba(49, 46, 129, .28);
}

.mentor-hero__ava {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}

.mentor-hero__who b {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
}

.mentor-hero__who span {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.45;
    opacity: .85;
}

.mentor-hero__day {
    margin-left: auto;
    text-align: center;
    flex: 0 0 auto;
}

.mentor-hero__day b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.mentor-hero__day span {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .8;
}

.mentor-page__note {
    margin: 12px 2px 16px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #8b95ab;
}

.mentor-card {
    margin-bottom: 14px;
    padding: 16px 18px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8ecf5;
    box-shadow: 0 2px 4px rgba(11, 16, 32, .03), 0 12px 26px rgba(11, 16, 32, .06);
}

.mentor-card__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8b95ab;
}

.mentor-card__count {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4338ca;
    letter-spacing: 0;
    text-transform: none;
    font-size: 11px;
}

.mentor-figs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mentor-fig {
    text-align: center;
    padding: 12px 6px;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px solid #eef2f7;
}

.mentor-fig b {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0b1020;
    letter-spacing: -.02em;
}

.mentor-fig span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #8b95ab;
}

.mentor-lessons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mentor-lesson {
    border: 1px solid #e8ecf5;
    border-radius: 14px;
    background: #f7f9fc;
    overflow: hidden;
}

.mentor-lesson summary,
.mentor-lesson--locked {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.mentor-lesson summary::-webkit-details-marker {
    display: none;
}

.mentor-lesson--locked {
    cursor: default;
    opacity: .62;
}

.mentor-lesson__num {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #4338ca, #22d3ee);
}

.mentor-lesson--locked .mentor-lesson__num {
    background: #cbd5e1;
}

.mentor-lesson__ttl b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b1020;
    line-height: 1.35;
}

.mentor-lesson__ttl span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #8b95ab;
}

.mentor-lesson p {
    margin: 0;
    padding: 0 14px 14px 54px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #56607a;
}

.mentor-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mentor-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #e8ecf5;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b1020;
    text-decoration: none;
}

.mentor-links a i {
    color: #4338ca;
}

@media (prefers-color-scheme: dark) {
    .mentor-card,
    .mentor-links a {
        background: #0a1120;
        border-color: #1c2740;
    }

    .mentor-fig,
    .mentor-lesson {
        background: #0d1526;
        border-color: #1c2740;
    }

    .mentor-fig b,
    .mentor-lesson__ttl b,
    .mentor-links a {
        color: #e8ecf7;
    }

    .mentor-lesson p {
        color: #cbd5e1;
    }
}
