/* ============================================================================
   Образование МИКМ — чистая современная LMS-тема.
   Фирменные цвета: чернила #0C0538 + зелёный #2FC48D. Синего нет.
   Компактная типографика, мягкие карточки, лёгкие тени.
   ========================================================================== */

:root {
    --ink: #0C0538;
    --ink-soft: #3b3658;
    --muted: #6f6c84;
    --green: #2FC48D;
    --green-dark: #1B9F70;
    --green-soft: #E8F8F1;
    --amber: #F5A623;
    --rose: #E5547F;
    --rose-soft: #FCEAF0;
    --bg: #F5F6F9;
    --surface: #FFFFFF;
    --surface-2: #FBFBFD;
    --line: #E8EAF0;
    --line-strong: #D7DAE3;

    --shadow-sm: 0 1px 2px rgba(12, 5, 56, .06);
    --shadow: 0 12px 32px rgba(12, 5, 56, .08);
    --shadow-lg: 0 24px 60px rgba(12, 5, 56, .14);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1080px;
    --reader: 720px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.e-body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; font-weight: 750; }
h1 { font-size: clamp(28px, 4vw, 34px); }
h2 { font-size: clamp(22px, 3vw, 26px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.e-container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.e-skip {
    position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.e-skip:focus { left: 0; }

/* ----------------------------------------------------------------- Header */
.e-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.e-header__inner { display: flex; align-items: center; gap: 22px; height: 64px; }

.e-brand { display: flex; align-items: center; gap: 11px; font-weight: 750; color: var(--ink); }
.e-brand__mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    color: var(--ink);
}
.e-brand__mark--light { color: #fff; }
.e-logo { width: 30px; height: 30px; }
.e-brand__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.e-brand__text strong { font-size: 16px; color: var(--ink); letter-spacing: -.01em; text-transform: none; }

.e-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.e-nav a {
    padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
    color: var(--ink-soft); transition: background .15s var(--ease), color .15s var(--ease);
}
.e-nav a:hover { background: var(--surface-2); color: var(--ink); }
.e-nav a.is-active { background: var(--green-soft); color: var(--green-dark); }
.e-nav__ext { color: var(--muted) !important; }

.e-header__auth { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.e-avatar { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; }
.e-avatar span {
    width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff;
    display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-sm);
}
.e-avatar em { font-style: normal; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-chip {
    padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px;
    background: var(--ink); color: #fff;
}
.e-chip--admin { background: var(--ink); }

.e-burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--ink); }
.e-mobile-nav { display: none; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.e-mobile-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.e-mobile-nav a:last-child { border-bottom: 0; }
.e-mobile-nav.is-open { display: flex; }

/* ------------------------------------------------------------------ Main */
.e-main { flex: 1; padding-bottom: 72px; }
.e-section { padding-top: 44px; }
.e-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.e-section__head p { color: var(--muted); margin: 4px 0 0; }
.e-eyebrow { display: inline-block; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 8px; }
.e-text-link { color: var(--green-dark); font-weight: 700; white-space: nowrap; }
.e-text-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------- Buttons */
.e-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit;
    transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.e-btn:active { transform: translateY(1px); }
.e-btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47, 196, 141, .35); }
.e-btn--primary:hover { background: var(--green-dark); }
.e-btn--ink { background: var(--ink); color: #fff; }
.e-btn--ink:hover { background: #1a1248; }
.e-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.e-btn--ghost:hover { border-color: var(--ink); }
.e-btn--danger { background: var(--rose); color: #fff; }
.e-btn--sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.e-btn--block { width: 100%; }
.e-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------- Pills/meta */
.e-pill {
    display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px;
    font-weight: 700; background: var(--green-soft); color: var(--green-dark);
}
.e-pill--note { background: #EAF0FF; color: #3552b5; }
.e-pill--webinar { background: #FFEFD9; color: #9a6212; }
.e-pill--test { background: var(--rose-soft); color: var(--rose); }
.e-pill--muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.e-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.e-meta span { display: inline-flex; align-items: center; }
.e-meta span + span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }

/* --------------------------------------------------------------- Hero */
.e-hero { padding: 52px 0 8px; }
.e-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.e-hero h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: .3em; }
.e-hero p { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.e-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.e-hero__art {
    position: relative; aspect-ratio: 1 / .82; border-radius: var(--radius-lg);
    background: radial-gradient(120% 120% at 0% 0%, #14103f 0%, #0C0538 60%);
    display: grid; place-items: center; box-shadow: var(--shadow-lg); overflow: hidden;
}
.e-hero__art .e-logo { width: 46%; color: rgba(255, 255, 255, .92); filter: drop-shadow(0 18px 40px rgba(0,0,0,.4)); }
.e-hero__art::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(60% 100% at 50% 0%, rgba(47,196,141,.45), transparent 70%); }
.e-hero__stats { display: flex; gap: 26px; margin-top: 30px; }
.e-hero__stats div strong { display: block; font-size: 26px; }
.e-hero__stats div span { color: var(--muted); font-size: 13px; }

/* --------------------------------------------------------------- Cards */
.e-grid { display: grid; gap: 18px; }
.e-grid--3 { grid-template-columns: repeat(3, 1fr); }
.e-grid--2 { grid-template-columns: repeat(2, 1fr); }

.e-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .16s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.e-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.e-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.e-card__media img { width: 100%; height: 100%; object-fit: cover; }
.e-card__media .e-logo { width: 38%; color: var(--line-strong); }
.e-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.e-card__top { display: flex; gap: 8px; align-items: center; }
.e-card h3 { margin: 0; }
.e-card__lead { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.e-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.e-card__foot .e-go { font-weight: 700; color: var(--green-dark); }

/* course card with number */
.e-course-card { display: grid; grid-template-columns: 88px 1fr; }
.e-course-card__num {
    display: grid; place-items: center; font-size: 30px; font-weight: 800;
    background: linear-gradient(160deg, #14103f, #0C0538); color: #fff;
}
.e-course-card:hover .e-course-card__num { background: linear-gradient(160deg, var(--green), var(--green-dark)); }

/* feature row on home */
.e-feature {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.e-feature__main { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.e-feature__side { background: var(--ink); color: #fff; padding: 30px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.e-feature__side .e-step { display: flex; gap: 12px; align-items: center; }
.e-feature__side .e-step b { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }

/* ----------------------------------------------------------- List page hero */
.e-pagehero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0; }
.e-pagehero h1 { margin: 8px 0 .2em; }
.e-pagehero p { color: var(--muted); max-width: 60ch; margin: 0; }

/* filters */
.e-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 4px; }
.e-filter {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--surface); font-weight: 650; font-size: 14px; color: var(--ink-soft); cursor: pointer;
}
.e-filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----------------------------------------------------------- Reader (note) */
.e-reader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 36px; align-items: start; }
.e-reader__side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.e-back { color: var(--muted); font-weight: 650; font-size: 14px; }
.e-back:hover { color: var(--ink); }
.e-outline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.e-outline h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.e-outline ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.e-outline li { font-size: 14px; color: var(--ink-soft); }

.e-reader__main { max-width: var(--reader); }
.e-reader__header h1 { margin: 12px 0 .3em; }
.e-reader__header > p { font-size: 18px; color: var(--ink-soft); }
.e-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 22px 0 8px; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16/8; }
.e-cover img { width: 100%; height: 100%; object-fit: cover; }
.e-cover .e-logo { width: 26%; margin: auto; color: var(--line-strong); }

.e-keygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.e-keycard { background: var(--green-soft); border: 1px solid #cfeede; border-radius: var(--radius); padding: 16px; }
.e-keycard strong { display: block; margin-bottom: 4px; }
.e-keycard p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.e-readable { font-size: 17px; color: #221d3d; }
.e-readable section { margin: 28px 0; }
.e-readable h2 { margin-bottom: .5em; }
.e-readable p { margin-bottom: 1.1em; }

/* attached test CTA */
.e-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: linear-gradient(120deg, #14103f, #0C0538); color: #fff;
    border-radius: var(--radius-lg); padding: 26px 28px; margin: 34px 0;
}
.e-cta h2 { margin: 6px 0 6px; }
.e-cta p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 48ch; }
.e-cta .e-pill { background: rgba(255, 255, 255, .14); color: #fff; }

/* --------------------------------------------------------------- Webinar */
.e-player { background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.e-player video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.e-player__big {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
    border: none; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 26px; cursor: pointer;
    display: grid; place-items: center; box-shadow: var(--shadow);
}
.e-player.is-playing .e-player__big { opacity: 0; pointer-events: none; }
.e-player__bar-wrap { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #0b0b0f; color: #fff; }
.e-player__btn { background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 650; font-family: inherit; }
.e-player__track { flex: 1; height: 6px; background: rgba(255,255,255,.2); border-radius: 999px; cursor: pointer; }
.e-player__fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; }
.e-player__time { font-variant-numeric: tabular-nums; font-size: 13px; color: rgba(255,255,255,.8); }

/* --------------------------------------------------------------- Course */
.e-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.e-progress__fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .4s var(--ease); }

.e-lessons { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.e-lesson {
    display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.e-lesson:hover { border-color: var(--line-strong); transform: translateX(2px); }
.e-lesson__num { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.e-lesson.is-done .e-lesson__num { background: var(--green); border-color: var(--green); color: #fff; }
.e-lesson h3 { margin: 0 0 2px; font-size: 16px; }
.e-lesson small { color: var(--muted); }

/* course step chrome */
.e-step-top { position: sticky; top: 64px; z-index: 40; background: rgba(245,246,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.e-step-top__inner { display: flex; align-items: center; gap: 16px; }
.e-step-top__title { font-weight: 700; }
.e-step-top__title small { display: block; color: var(--muted); font-weight: 600; }
.e-step-top .e-progress { flex: 1; max-width: 280px; }
.e-step-nav { display: flex; gap: 10px; margin-left: auto; }
.e-stepwrap { padding-top: 30px; }

/* --------------------------------------------------------------- Tests */
.e-quiz { max-width: var(--reader); margin: 0 auto; }
.e-qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.e-qcard__num { font-size: 13px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.e-qcard h3 { margin: 6px 0 14px; }
.e-qhint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.e-options { display: flex; flex-direction: column; gap: 10px; }
.e-option {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer;
    border: 1.5px solid var(--line-strong); border-radius: 12px; transition: border-color .12s var(--ease), background .12s var(--ease);
}
.e-option:hover { border-color: var(--green); background: var(--green-soft); }
.e-option input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.e-option.is-checked { border-color: var(--green); background: var(--green-soft); }

/* matching */
.e-match { display: flex; flex-direction: column; gap: 10px; }
.e-match__row { display: grid; grid-template-columns: 1fr 16px 1fr; align-items: center; gap: 12px; }
.e-match__left { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.e-match__arrow { color: var(--muted); text-align: center; }
.e-match select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-family: inherit; font-size: 15px; background: var(--surface); color: var(--ink); }
.e-match select:focus { outline: none; border-color: var(--green); }

.e-quiz__submit { position: sticky; bottom: 16px; margin-top: 22px; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.e-quiz__submit span { color: var(--muted); font-size: 14px; }

/* result / review */
.e-result-banner { display: flex; align-items: center; gap: 24px; border-radius: var(--radius-lg); padding: 26px 30px; color: #fff; margin: 12px 0 26px; }
.e-result-banner--pass { background: linear-gradient(120deg, var(--green), var(--green-dark)); }
.e-result-banner--fail { background: linear-gradient(120deg, #59506f, var(--ink)); }
.e-score { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.e-score strong { font-size: 28px; line-height: 1; }
.e-score small { font-size: 12px; opacity: .85; }
.e-result-banner h1 { margin: 0 0 4px; color: #fff; }
.e-result-banner p { margin: 0; color: rgba(255,255,255,.85); }

.e-review-q { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.e-review-q.is-correct { border-left-color: var(--green); }
.e-review-q.is-wrong { border-left-color: var(--rose); }
.e-review-q__status { font-weight: 700; font-size: 13px; }
.is-correct .e-review-q__status { color: var(--green-dark); }
.is-wrong .e-review-q__status { color: var(--rose); }
.e-review-opt { padding: 8px 12px; border-radius: 8px; margin: 6px 0; font-size: 14.5px; display: flex; gap: 8px; }
.e-review-opt--correct { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.e-review-opt--chosen-wrong { background: var(--rose-soft); color: var(--rose); font-weight: 600; }
.e-review-opt--plain { color: var(--ink-soft); }
.e-explain { margin-top: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; font-size: 14.5px; color: var(--ink-soft); }
.e-explain b { color: var(--ink); }

/* --------------------------------------------------------------- Profile */
.e-profile-head { display: flex; align-items: center; gap: 18px; padding: 32px 0 8px; }
.e-profile-head .e-avatar span { width: 64px; height: 64px; font-size: 26px; }
.e-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.e-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.e-stat strong { font-size: 28px; display: block; }
.e-stat span { color: var(--muted); font-size: 13px; }
.e-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.e-list-row:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- Login */
.e-auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.e-auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 38px; width: min(440px, 100%); text-align: center; }
.e-auth-card .e-brand__mark { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--ink); }
.e-auth-card .e-logo { width: 48px; height: 48px; }
.e-tg-btn { background: #229ED9; color: #fff; box-shadow: 0 10px 24px rgba(34,158,217,.35); }
.e-tg-btn:hover { background: #1c8cc2; }
.e-auth-status { margin-top: 18px; font-size: 14px; color: var(--muted); min-height: 20px; }
.e-spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 8px; animation: e-spin .8s linear infinite; }
@keyframes e-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- Notices */
.e-note { background: var(--green-soft); border: 1px solid #cdeede; color: var(--green-dark); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.e-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.e-empty .e-logo { width: 60px; margin: 0 auto 14px; color: var(--line-strong); }

/* --------------------------------------------------------------- Admin */
.e-admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.e-admin__side { background: var(--ink); color: #fff; padding: 24px 16px; }
.e-admin__side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin: 18px 0 8px; }
.e-admin__side a { display: block; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.85); font-weight: 600; }
.e-admin__side a:hover, .e-admin__side a.is-active { background: rgba(255,255,255,.1); color: #fff; }
.e-admin__main { padding: 28px 32px; max-width: 940px; }
.e-admin__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }

.e-form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.e-field { display: flex; flex-direction: column; gap: 6px; }
.e-field label { font-weight: 650; font-size: 14px; }
.e-field small { color: var(--muted); font-size: 12.5px; }
.e-input, .e-textarea, .e-select {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: 10px;
    font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
}
.e-input:focus, .e-textarea:focus, .e-select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.e-textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.e-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.e-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.e-table th, .e-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.e-table th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.e-table tr:last-child td { border-bottom: 0; }
.e-table td .e-btn { margin-right: 6px; }

.e-builder-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--surface-2); }
.e-builder-item__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.e-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.e-opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.e-opt-row .e-input { flex: 1; }
.e-mini { background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-family: inherit; color: var(--ink); }
.e-mini:hover { border-color: var(--ink); }
.e-mini--danger { color: var(--rose); border-color: #f0c6d3; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .e-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .e-hero__grid { grid-template-columns: 1fr; }
    .e-hero__art { order: -1; max-width: 360px; }
    .e-feature, .e-reader { grid-template-columns: 1fr; }
    .e-reader__side { position: static; flex-direction: row; flex-wrap: wrap; }
    .e-outline { flex: 1; }
    .e-admin { grid-template-columns: 1fr; }
    .e-admin__side { display: flex; flex-wrap: wrap; gap: 6px; }
    .e-admin__side h2 { width: 100%; }
}
@media (max-width: 680px) {
    .e-nav, .e-avatar em { display: none; }
    .e-burger { display: block; }
    .e-grid--3, .e-grid--2, .e-statgrid, .e-row { grid-template-columns: 1fr; }
    .e-statgrid { grid-template-columns: repeat(2, 1fr); }
    .e-course-card { grid-template-columns: 64px 1fr; }
    .e-match__row { grid-template-columns: 1fr; gap: 6px; }
    .e-match__arrow { display: none; }
    .e-cta { flex-direction: column; align-items: flex-start; }
    .e-result-banner { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------- Утилиты */
.e-m0 { margin: 0; }
.e-mt-2 { margin-top: 2px; }
.e-mt-10 { margin-top: 10px; }
.e-mt-16 { margin-top: 16px; }
.e-mt-20 { margin-top: 20px; }
.e-mt-24 { margin-top: 24px; }
.e-mb-18 { margin-bottom: 18px; }
.e-ml-auto { margin-left: auto; }
.e-muted { color: var(--muted); }
.e-sm { font-size: 13px; }
.e-lead { font-size: 18px; color: var(--ink-soft); }
.e-measure { max-width: 62ch; }
.e-narrow { max-width: var(--reader); margin-inline: auto; }
.e-static { position: static !important; }
.e-fineprint { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.e-ulink { color: var(--green-dark); text-decoration: underline; font-weight: 600; }
.e-section-sm { padding-top: 30px; }
.e-progress-form { margin-top: 22px; }
.e-review-q__prompt { margin: 6px 0 10px; }
.e-card--list { padding: 4px 18px; }
.e-note--soft { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.e-err { color: var(--rose) !important; }
.e-inline { display: inline; }
.e-nowrap { white-space: nowrap; }
.e-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.e-check input { width: 18px; height: 18px; accent-color: var(--green); }
.e-textarea--tall { min-height: 220px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.e-select--inline { width: auto; display: inline-block; padding: 7px 10px; font-size: 14px; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.e-builder-item__head .e-mini { vertical-align: middle; }
.e-empty--page { padding: 96px 20px; }
.e-course-progress { max-width: 420px; margin-top: 18px; }
.e-course-progress small { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
