/* Layout: app shell modeled on the reference app — fixed 288px sidebar, centered content column (940px lists / 860px reading), floating pill tab bar on phones. */
:root {
  --bg: #F7F7F5; --card: #FFFFFF; --secondary: #F0F0EE; --border: #E5E5E3;
  --fg: #1A1A1A; --fg-body: #2A2A28; --fg-soft: #55554F; --muted: #6E6E68;
  --accent: #A98BFA; --accent-2: #5CC8F2; --accent-fg: #0E1530; --accent-text: #6143D6; --accent-soft: #ECE6FE;
  --grad: linear-gradient(135deg, #B9A4FF 0%, #6CC9F2 100%); --glow: rgba(120,140,245,.35);
  --free: #A98BFA; --free-fg: #0E1530; --novice: #C8F05A; --mid: #B39BFF; --pro: #FF9A5C; --lime: #D4F36A;
  --code-bg: #1A1A1A; --code-fg: #F1F1EC;
  --t1: #ECE6FE; --t2: #DDF6F1; --t3: #F2FAD2; --t4: #FFE6D6;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-promo: "Unbounded", "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18171C; --card: #222028; --secondary: #2D2A35; --border: #3A3644;
    --fg: #F6F6F2; --fg-body: #E2E2DC; --fg-soft: #B9B9B1; --muted: #9A9A94;
    --accent: #A98BFA; --accent-2: #5CC8F2; --accent-fg: #0E1530; --accent-text: #BCA8FF; --accent-soft: #272340;
    --grad: linear-gradient(135deg, #B9A4FF 0%, #6CC9F2 100%); --glow: rgba(110,140,245,.38);
    --novice: #C8F05A; --mid: #B39BFF; --pro: #FF9A5C; --lime: #D4F36A;
    --code-bg: #121212; --code-fg: #F1F1EC;
    --t1: #2A2540; --t2: #1D3331; --t3: #2E3420; --t4: #3A2A20;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18171C; --card: #222028; --secondary: #2D2A35; --border: #3A3644;
  --fg: #F6F6F2; --fg-body: #E2E2DC; --fg-soft: #B9B9B1; --muted: #9A9A94;
  --accent: #A98BFA; --accent-2: #5CC8F2; --accent-fg: #0E1530; --accent-text: #BCA8FF; --accent-soft: #272340;
    --grad: linear-gradient(135deg, #B9A4FF 0%, #6CC9F2 100%); --glow: rgba(110,140,245,.38);
  --novice: #C8F05A; --mid: #B39BFF; --pro: #FF9A5C; --lime: #D4F36A;
  --code-bg: #121212; --code-fg: #F1F1EC;
  --t1: #2A2540; --t2: #1D3331; --t3: #2E3420; --t4: #3A2A20;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ===== shell ===== */
.side { position: fixed; top: 0; bottom: 0; left: 0; width: 288px; z-index: 50; background: var(--card); border-right: 1px solid color-mix(in srgb, var(--border) 50%, transparent); display: flex; flex-direction: column; padding: 28px 16px 20px; overflow-y: auto; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.brand i { width: 7px; height: 7px; border-radius: 2px; background: var(--grad); display: inline-block; }
.side .logo { padding: 0 8px 24px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a, .side-nav span { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; font-size: 16px; line-height: 1; font-weight: 500; color: color-mix(in srgb, var(--fg) 70%, transparent); text-decoration: none; transition: background-color .15s; }
.side-nav a:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); color: var(--fg); }
.side-nav a[aria-current="page"] { background: var(--grad); color: var(--accent-fg); font-weight: 600; }
.side-nav span { color: color-mix(in srgb, var(--fg) 40%, transparent); }
.side-nav small { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ico { width: 20px; height: 20px; flex: 0 0 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.promo { background: var(--grad); color: var(--accent-fg); border-radius: 20px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.promo .eyebrow { color: var(--accent-fg); opacity: .65; font-size: 10px; }
.promo .eyebrow::before { display: none; }
.promo strong { font-family: var(--font-promo); font-weight: 600; font-size: 13px; line-height: 1.35; }
.promo a { height: 40px; border-radius: 999px; background: #1C1636; color: #E7E0FF; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.theme-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font: 500 15px var(--font); cursor: pointer; }
.theme-row:hover { background: var(--secondary); }
.theme-row .sw { margin-left: auto; width: 42px; height: 24px; border-radius: 999px; background: var(--secondary); border: 1px solid var(--border); position: relative; }
.theme-row .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.theme-row[aria-pressed="true"] .sw { background: var(--grad); border-color: var(--accent); }
.theme-row[aria-pressed="true"] .sw::after { left: 21px; background: #1A1A1A; }

.main { margin-left: 288px; min-height: 100vh; display: flex; flex-direction: column; }
.draft-bar { background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; text-align: center; padding: 7px 16px; }
main { padding: 32px 40px 32px; flex: 1 0 auto; }
.wrap { max-width: 940px; margin: 0 auto; }
.wrap-read { max-width: 860px; margin: 0 auto; }
.topbar, .tabbar { display: none; }
.site-footer { padding: 24px 40px 32px; font-size: 12px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 20px; }

/* ===== type ===== */
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
.page-head h1, h1.h-page { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.lead { margin: 12px 0 0; max-width: 448px; font-size: 15px; line-height: 1.625; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 85%, transparent); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); flex: 0 0 7px; }
.eyebrow.plain::before { display: none; }
.back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--fg); margin-bottom: 20px; }
.back:hover { background: var(--secondary); }
.display { font-weight: 700; letter-spacing: -0.02em; }

/* ===== badges ===== */
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1; border: 1px solid var(--border); color: var(--muted); background: transparent; white-space: nowrap; }
.badge-solid, .badge-accent { background: var(--fg); color: var(--bg); border-color: transparent; padding: 6px 12px; font-size: 11px; }
.badge-gold, .badge-free { background: #FFFFFF; color: #15131C; border-color: transparent; }
.badge-novice { background: var(--novice); color: #171717; border-color: transparent; }
.badge-mid { background: var(--mid); color: #171717; border-color: transparent; }
.badge-pro { background: var(--pro); color: #171717; border-color: transparent; }
.badge-dark { background: var(--secondary); color: var(--fg); border-color: transparent; }
.badge-new { background: var(--grad); color: var(--accent-fg); border-color: transparent; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font: 600 14.5px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.4; }
.btn-primary { background: var(--grad); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline, .btn-ghost { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--secondary); }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 13px var(--font); cursor: pointer; padding: 8px 4px; }
.link-btn:hover, .link-muted:hover { color: var(--accent-text); }
.link-muted { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }

/* ===== section rows (Материалы) ===== */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.view-switch button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.rows { display: flex; flex-direction: column; gap: 16px; }
.rows.as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rows.as-grid .row { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
.rows.as-grid .chev { display: none; }
.row { display: flex; align-items: center; gap: 20px; padding: 20px 24px 20px 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--fg); transition: transform .2s, box-shadow .2s; }
a.row:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10,10,10,.07); }
.tile { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; background: var(--secondary); border: 1px solid var(--border); display: grid; place-items: center; transition: background-color .15s; }
a.row:hover .tile { background: var(--grad); border-color: transparent; color: var(--accent-fg); }
.row-text { min-width: 0; flex: 1; }
.row strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.375; }
.row .sub { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .plus { color: var(--lime-text, var(--accent-text)); font-weight: 600; margin-left: 8px; }
.chev { margin-left: auto; color: var(--muted); display: grid; }
a.row:hover .chev { color: var(--accent-text); }
.row.soon { opacity: .55; }
.all-link { display: flex; justify-content: center; margin: 32px 0 8px; }
.all-link a { color: var(--accent-text); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; }

/* ===== cards grid (каталог) ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; align-items: center; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font: 600 13px var(--font); cursor: pointer; }
.chip:hover { background: var(--secondary); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.group-head { margin: 36px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--fg); min-width: 0; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10,10,10,.06); }
.card-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.375; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card-num { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== home ===== */
.hello { display: flex; align-items: center; gap: 14px; margin: 8px 0 28px; }
.hello .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; }
.hello h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.tasks { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 40px; }
.task { border-radius: 20px; padding: 16px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--fg); border: 1px solid transparent; transition: transform .2s; }
a.task:hover { transform: translateY(-2px); }
.task-count { background: var(--card); border-color: var(--border); }
.task-count b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.task-count b span { color: var(--muted); font-weight: 600; }
.task .tnum { font-size: 12px; font-weight: 600; color: var(--muted); }
.task .ttitle { font-size: 14px; font-weight: 600; line-height: 1.3; }
.task .tcheck { align-self: flex-end; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--fg) 25%, transparent); display: grid; place-items: center; font-size: 13px; color: transparent; }
.task.is-done .tcheck { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.task:nth-child(2) { background: var(--t1); } .task:nth-child(3) { background: var(--t2); } .task:nth-child(4) { background: var(--t3); } .task:nth-child(5) { background: var(--t4); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-top: 1px solid var(--border); text-decoration: none; color: var(--fg); }
.list-item:first-child { border-top: 0; }
.list-item:hover .li-title { color: var(--accent-text); }
.li-thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; background: var(--secondary); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.li-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.li-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.continue-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--fg); margin-top: 12px; }
.continue-card:hover .li-title { color: var(--accent-text); }
.home-section { margin-bottom: 40px; }
.home-section .section-bar { margin-top: 0; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.price-card.hl { border-color: var(--accent); }
.price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.note { margin: 14px 0 0; padding: 16px 20px 16px 23px; border-radius: 16px; background: color-mix(in srgb, var(--secondary) 60%, transparent); color: var(--fg-soft); font-size: 14px; line-height: 1.6; }
.faq details { border-top: 1px solid var(--border); padding: 14px 4px; }
.faq summary { font-weight: 600; font-size: 15px; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ===== course page ===== */
.course-head h1 { margin: 12px 0 0; font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.course-head .tags { margin-top: 14px; }
.course-head .count { font-size: 13px; color: var(--muted); margin-left: 4px; }
.cover { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 24px; overflow: hidden; background: #15131B; color: #F6F6F2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  background-image: radial-gradient(ellipse at 50% 120%, rgba(150,120,240,.35), transparent 60%), radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0); background-size: auto, 22px 22px; }
.cover-brand { position: absolute; top: 18px; left: 22px; font-size: 13px; font-weight: 700; display: inline-flex; gap: 5px; align-items: baseline; }
.cover-brand i { width: 6px; height: 6px; border-radius: 2px; background: var(--grad); display: inline-block; }
.cover-title { font-size: clamp(28px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cover-sub { color: #CFC2FA; font-size: 14px; font-weight: 500; }
.course-desc { position: relative; margin-top: 28px; border-radius: 16px; background: color-mix(in srgb, var(--secondary) 60%, transparent); padding: 16px 20px 16px 24px; font-size: 15px; font-weight: 500; line-height: 1.625; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.course-desc::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); }
.progress-box { margin-top: 24px; display: flex; align-items: center; gap: 20px; border-radius: 28px; background: color-mix(in srgb, var(--secondary) 60%, transparent); padding: 28px; }
.progress-box .pb-main { flex: 1; min-width: 0; }
.progress-box strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.progress-box .progress { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.progress > div { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }
.modules { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
.module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.module-head h2 { margin: 6px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.module-head .mmeta { font-size: 13px; color: color-mix(in srgb, var(--muted) 85%, transparent); font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 2px; }
.module-list { list-style: none; margin: 12px 0 0; padding: 0; border-radius: 20px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.module-list li + li { border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.module-list a, .module-list .mrow { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--fg); transition: background-color .15s; }
.module-list a:hover { background: color-mix(in srgb, var(--secondary) 50%, transparent); }
.module-list a:hover .mtitle { color: var(--accent-text); }
.module-list .soon { opacity: .5; }
.mnum { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--secondary); color: var(--muted); display: grid; place-items: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mtext { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mtitle { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmeta-l { font-size: 12px; color: color-mix(in srgb, var(--muted) 80%, transparent); }
.mfree { flex: 0 0 auto; }
.mcheck { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; color: transparent; font-size: 13px; }
.module-list a.is-done .mcheck { background: var(--grad); border-color: var(--accent); color: var(--accent-fg); }
.module-list a.is-done .mnum { background: var(--accent-soft); color: var(--accent-text); }
.continue-box { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 28px; background: color-mix(in srgb, var(--secondary) 60%, transparent); padding: 28px; }
.continue-box p { margin: 8px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* ===== lesson ===== */
.lesson-head h1 { margin: 12px 0 0; font-size: 34px; font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.lesson-head .tags { margin-top: 16px; }
.lesson-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-progress .bar { flex: 1; height: 4px; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.lesson-progress .bar > div { height: 100%; background: var(--grad); }
.lesson-meta { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lesson-body { margin-top: 28px; color: var(--fg-body); font-size: 17px; line-height: 28px; }
.lesson-body > p:first-child { font-size: 19px; line-height: 30px; color: var(--fg-soft); }
.lesson-body p { margin: 0 0 18px; }
.lesson-body h2 { margin: 44px 0 14px; font-size: 24px; line-height: 31px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.lesson-body h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; color: var(--fg); }
.lesson-body strong { color: var(--fg); font-weight: 600; }
.lesson-body ol, .lesson-body ul { padding-left: 24px; margin: 0 0 18px; }
.lesson-body li { margin: 6px 0; }
.lesson-body li::marker { color: var(--muted); }
.lesson-body a { color: var(--accent-text); text-underline-offset: 3px; }
.lesson-body blockquote { margin: 18px 0; padding: 16px 20px 16px 23px; border-radius: 16px; background: color-mix(in srgb, var(--secondary) 60%, transparent); color: var(--fg-soft); font-size: 16px; line-height: 26px; border-left: 3px solid var(--accent); }
.lesson-body blockquote p:last-child { margin-bottom: 0; }
.lesson-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.lesson-body th, .lesson-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.lesson-body th { background: var(--secondary); color: var(--fg); font-weight: 600; }
.lesson-body code { font-family: var(--font-mono); font-size: .86em; background: var(--secondary); padding: 2px 6px; border-radius: 6px; }
.code-wrap { position: relative; margin: 0 0 18px; }
.lesson-body pre { margin: 0; background: var(--code-bg); color: var(--code-fg); border-radius: 16px; padding: 20px; overflow-x: auto; white-space: pre-wrap; line-height: 1.7; border: 1px solid var(--border); }
.lesson-body pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 7px 14px; border-radius: 999px; border: 0; background: var(--grad); color: var(--accent-fg); font: 600 12px var(--font); cursor: pointer; }
.shot { min-height: 160px; border: 1.5px dashed var(--border); border-radius: 16px; display: grid; place-items: center; padding: 20px; color: var(--muted); text-align: center; font-size: 13px; margin: 0 0 18px; }
.author-note { border: 1.5px dashed var(--accent); border-radius: 16px; padding: 14px 18px; margin: 16px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--fg-soft); background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.author-note strong { color: var(--accent-text); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.author-note p, .author-note ul, .author-note ol { margin: 0; }
.author-note ul, .author-note ol { padding-left: 20px; }
.next-box { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 28px; border: 1px solid var(--border); background: color-mix(in srgb, var(--secondary) 60%, transparent); padding: 28px; }
.next-box .nb-text { min-width: 0; }
.next-box p { margin: 8px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-link { margin-top: 16px; }

/* ===== quiz (Старт) ===== */
.quiz { max-width: 640px; margin: 0 auto; padding: 16px 0 40px; display: flex; flex-direction: column; gap: 18px; }
.quiz .display { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.quiz .lead { max-width: none; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { text-align: left; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font: 500 15px var(--font); cursor: pointer; transition: transform .15s; }
.option:hover { transform: translateY(-1px); border-color: var(--accent); }
.result-box { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.result-box ol { margin: 0; padding-left: 20px; }
.result-box a { color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ===== cases ===== */
.case-card .tags { margin-bottom: 4px; }

/* ===== phones ===== */
@media (max-width: 1024px) {
  .side { display: none; }
  .main { margin-left: 0; }
  .topbar { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-bottom: 1px solid var(--border); padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 45; background: var(--card); }
  .topbar .theme-row { width: auto; padding: 8px 12px; font-size: 13px; gap: 8px; }
  .topbar .theme-row .tr-label { display: none; }
  main { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }
  .site-footer { padding: 0 16px 120px; }
  .tabbar { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 50; gap: 2px; padding: 6px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 6px 8px; border-radius: 18px; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
  .tabbar a .tb-ico { width: 46px; height: 30px; border-radius: 999px; display: grid; place-items: center; }
  .tabbar a[aria-current="page"] { color: var(--fg); }
  .tabbar a[aria-current="page"] .tb-ico { background: var(--grad); color: var(--accent-fg); }
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-count { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-head h1, h1.h-page { font-size: 34px; }
  .course-head h1 { font-size: 30px; }
  .lesson-head h1 { font-size: 28px; }
  .rows.as-grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .row { padding: 16px; gap: 14px; border-radius: 20px; }
  .row strong { font-size: 17px; }
  .progress-box, .continue-box, .next-box { flex-direction: column; align-items: stretch; padding: 22px; }
  .next-box p { white-space: normal; }
  .mfree { display: none; }
  .lesson-body { font-size: 16px; line-height: 26px; }
  .lesson-body > p:first-child { font-size: 17px; line-height: 27px; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .tabbar a { min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== start ===== */
.start-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.start-left { margin: 0; }
.start-left b { color: var(--fg); }
.overview { margin-top: 32px; border-radius: 24px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.ov-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; max-height: 420px; width: 100%; background: #15131B; background-image: radial-gradient(ellipse at 50% 110%, rgba(150,120,240,.3), transparent 60%), radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: auto, 22px 22px; display: grid; place-items: center; }
.ov-play { width: 66px; height: 66px; border-radius: 50%; background: var(--grad); color: var(--accent-fg); display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.ov-time { position: absolute; right: 12px; bottom: 12px; border-radius: 999px; background: rgba(246,246,242,.85); color: #1A1A1A; font-size: 12px; font-weight: 600; padding: 4px 10px; }
.ov-body { padding: 20px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ov-body h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.ov-body p { margin: 0; font-size: 14px; line-height: 1.6; }
.ov-body h3 { margin: 14px 0 4px; font-size: 13px; }
.ov-list { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--fg-soft); display: flex; flex-direction: column; gap: 6px; }
.ov-list b { color: var(--fg); font-weight: 600; }
.start-section { margin-top: 44px; display: flex; flex-direction: column; gap: 6px; }
.h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.quiz-card { margin-top: 8px; border-radius: 24px; border: 1px solid var(--border); background: var(--card); padding: 24px; }
.qz-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.qz-step { margin: 18px 0 0; }
.qz-q { margin: 6px 0 12px; font-size: 17px; font-weight: 600; }
.qz-list { border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
.qz-opt { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border: 0; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.qz-opt + .qz-opt { border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.qz-opt:hover { background: color-mix(in srgb, var(--secondary) 50%, transparent); }
.qz-opt:hover .mtitle { color: var(--accent-text); }
.qz-opt .mtitle { white-space: normal; }
.tracks { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.track summary { list-style: none; cursor: pointer; padding: 16px 20px 16px 16px; gap: 16px; }
.track summary::-webkit-details-marker { display: none; }
.track summary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10,10,10,.07); }
.track summary:hover .tile { background: var(--grad); border-color: transparent; color: var(--accent-fg); }
.track[open] summary { border-color: var(--accent); }
.track[open] .chev { transform: rotate(90deg); }
.tile-sm { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
.track-list { margin: 8px 0 4px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); }
.base-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.base-card { border-radius: 24px; border: 1px solid var(--border); background: var(--card); overflow: hidden; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.base-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10,10,10,.08); }
.bc-cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #15131B; color: #F6F6F2; display: grid; place-items: center; padding: 18px; text-align: center; background-image: radial-gradient(ellipse at 50% 120%, rgba(150,120,240,.35), transparent 60%); }
.bc-brand { position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 700; display: inline-flex; gap: 4px; align-items: baseline; }
.bc-brand i { width: 5px; height: 5px; border-radius: 2px; background: var(--grad); display: inline-block; }
.bc-title { font-size: 17px; font-weight: 600; line-height: 1.25; }
.bc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bc-body .card-title { font-size: 16px; }
.base-card.is-done .bc-cover::after { content: "✓ пройдено"; position: absolute; right: 10px; bottom: 10px; background: var(--grad); color: #0E1530; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 4px 10px; }
@media (max-width: 900px) { .base-cards { grid-template-columns: minmax(0, 1fr); } }

.practice { margin: 40px 0 8px; padding: 22px 24px; border-radius: 24px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--card)); display: flex; flex-direction: column; gap: 8px; }
.practice p { margin: 0; color: var(--fg); }
.practice .pr-ok { margin-top: 10px; color: var(--accent-text); }

/* ===== color system: gradient = brand/AI, level colors = teal / lime / orange ===== */
.badge-novice, .badge-mid, .badge-pro { color: #171717; }
.side-nav a[aria-current="page"], .btn-primary, .tabbar a[aria-current="page"] .tb-ico { box-shadow: 0 8px 22px -10px var(--glow); }
.btn-primary { color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.06); }
.chev { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); place-items: center; color: var(--fg-soft); transition: background .2s, color .2s, border-color .2s; }
.chev .ico { width: 16px; height: 16px; flex-basis: 16px; }
a.row:hover .chev, .track summary:hover .chev, .continue-card:hover .chev { background: var(--grad); color: var(--accent-fg); border-color: transparent; }
a.row:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.tile { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }
a.card:hover .card-title, .base-card:hover .card-title { color: var(--accent-text); }
.progress > div, .lesson-progress .bar > div { box-shadow: 0 0 12px var(--glow); }
.page-head h1 .grad-word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* catalog card covers, tinted by level */
.card.has-cover { padding: 0; overflow: hidden; gap: 0; }
.card.has-cover .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ccover { position: relative; aspect-ratio: 16 / 5.5; max-width: 100%; display: grid; place-items: center; background: #15131B; border-bottom: 1px solid var(--border); overflow: hidden; }
.ccover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, var(--lc, var(--glow)), transparent 62%); opacity: .55; }
.ccover.l-novice { --lc: var(--novice); } .ccover.l-mid { --lc: var(--mid); } .ccover.l-pro { --lc: var(--pro); }
.ccover .cnum { position: relative; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: #F6F6F2; }
.ccover .cnum small { display: block; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,246,242,.6); }
.ccover .cbrand { position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 700; color: #F6F6F2; display: inline-flex; gap: 4px; align-items: baseline; }
.ccover .cbrand i { width: 5px; height: 5px; border-radius: 2px; background: var(--grad); display: inline-block; }
.ccover .clock { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 10px; background: rgba(246,246,242,.92); color: #1A1A1A; display: grid; place-items: center; }
.ccover .clock svg { width: 15px; height: 15px; }
.ccover .cnew { position: absolute; left: 10px; bottom: 10px; }
a.card:hover .ccover::before { opacity: .8; }

:root { --lime-text: #5E7A00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lime-text: #D4F36A; } }
:root[data-theme="dark"] { --lime-text: #D4F36A; }
.base-card.is-done .bc-cover::after { background: var(--lime); color: #1A2205; }

/* ===== favorites / profile ===== */
.card-wrap { position: relative; min-width: 0; display: flex; }
.card-wrap > a { flex: 1; }
.fav { position: absolute; right: 12px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: color .15s, background .15s; }
.fav:hover { color: var(--fg); background: var(--secondary); }
.fav[aria-pressed="true"] { color: var(--lime-text); }
.fav[aria-pressed="true"] .ico { fill: currentColor; }
.card-wrap .card .card-foot { padding-right: 36px; }
.base-cards .card-wrap .fav { bottom: 12px; }
.fav-big { position: static; width: auto; height: auto; padding: 8px 14px 8px 12px; border-radius: 999px; border-color: var(--border); background: var(--card); gap: 8px; display: inline-flex; align-items: center; font: 600 13px var(--font); color: var(--fg-soft); }
.lesson-actions { margin-top: 14px; }
.empty { margin: 40px auto; max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h2 { margin: 6px 0 0; font-size: 22px; }
.empty p { margin: 0; font-size: 14px; }
.empty-ic { width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); display: grid; place-items: center; }
.empty-ic .ico { width: 28px; height: 28px; }
.fav-list { margin-top: 8px; }
.fav-list .list-item { position: relative; padding-right: 48px; }
.fav-list .fav { bottom: auto; top: 50%; transform: translateY(-50%); }
.me { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-decoration: none; color: var(--fg); }
.me:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.me-av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; }
.me-text { display: flex; flex-direction: column; line-height: 1.3; }
.me-text b { font-weight: 600; font-size: 15px; } .me-text small { color: var(--muted); font-size: 13px; }
.pf-hero { display: flex; align-items: center; gap: 24px; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, #CFC2FF, #A9DDF5); color: #17142A; }
.pf-hero .eyebrow { color: #17142A; opacity: .7; }
.pf-hero .eyebrow::before { background: #17142A; }
.pf-av { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 50%; background: #17142A; color: #CFC2FF; display: grid; place-items: center; font-size: 44px; font-weight: 700; border: 4px solid rgba(255,255,255,.5); }
.pf-hero h1 { margin: 6px 0 12px; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-edit { border: 0; background: transparent; color: #17142A; opacity: .55; cursor: pointer; padding: 4px; display: grid; } .pf-edit:hover { opacity: 1; }
.pf-badge { border-color: rgba(23,20,42,.35); color: #17142A; padding: 7px 14px; font-size: 11px; }
.pf-about { margin-top: 16px; padding: 24px 32px; border-radius: 28px; background: #D6EEDD; color: #12261B; display: flex; flex-direction: column; gap: 12px; }
.pf-about .eyebrow { color: #12261B; opacity: .7; } .pf-about .eyebrow::before { background: #12261B; }
.pf-about-head { display: flex; justify-content: space-between; align-items: center; }
.pf-link { color: #12261B; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.pf-level { font-size: 19px; font-weight: 600; }
.pf-chip { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(18,38,27,.3); font-size: 14px; font-weight: 500; }
.pf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.pf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.pf-form input, .pf-form select, .pf-form textarea { font: 500 15px var(--font); padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(18,38,27,.25); background: rgba(255,255,255,.75); color: #12261B; width: 100%; }
.pf-form textarea { resize: vertical; }
.pf-wide { grid-column: 1 / -1; }
.pf-form .link-btn { color: #12261B; }
.pf-sec { display: flex; margin: 36px 0 12px; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat .st-small { font-size: 17px; line-height: 1.3; }
.stat .progress { margin-top: 4px; }
.pf-cbar { display: block; width: min(320px, 100%); margin-top: 8px; height: 5px; }
.pf-cbar > span { display: block; height: 100%; background: var(--lime); border-radius: 999px; }
.pf-row { cursor: default; }
.pf-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-danger { background: #E5484D; color: #fff; padding: 10px 18px; }
.reset-confirm { display: inline-flex; gap: 8px; align-items: center; }
.pf-note { margin-top: 24px; text-align: center; }
@media (max-width: 760px) {
  .pf-hero { flex-direction: column; align-items: flex-start; padding: 22px; gap: 14px; }
  .pf-av { width: 84px; height: 84px; flex-basis: 84px; font-size: 32px; }
  .pf-hero h1 { font-size: 32px; }
  .pf-about { padding: 20px; }
  .pf-form, .pf-stats { grid-template-columns: minmax(0, 1fr); }
  .pf-row { flex-wrap: wrap; }
  .pf-right { margin-left: 66px; }
  .tabbar a { min-width: 0; flex: 1 1 0; padding: 6px 2px; font-size: 9px; }
  .tabbar a .tb-ico { width: 40px; }
}

/* ===== home v2 (reference: bright task cards, continue list, horizontal "new") ===== */
.tasks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 14px 0 36px; }
.task { min-height: 210px; padding: 20px; border-radius: 26px; color: #15131C; justify-content: space-between; }
.task .t-top { display: flex; justify-content: space-between; align-items: flex-start; }
.task .t-ic .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.task .tnum { font-size: 28px; font-weight: 700; color: rgba(21,19,28,.18); letter-spacing: -0.02em; }
.task .ttitle { font-size: 16px; font-weight: 600; line-height: 1.3; margin-top: auto; }
.task .tcheck { width: 38px; height: 38px; border: 0; background: rgba(21,19,28,.12); color: #15131C; }
.task .tcheck .ico { width: 16px; height: 16px; }
.task.is-done .tcheck { background: #15131C; color: #fff; }
.task.is-done .tcheck .ico { display: none; }
.task.is-done .tcheck::after { content: "✓"; font-size: 15px; }
.task:nth-child(2) { background: #CFC2FF; } .task:nth-child(3) { background: #BFEFE6; } .task:nth-child(4) { background: #E6F7A4; } .task:nth-child(5) { background: #FFC8A6; }
.task-count { background: #FFFFFF !important; border: 1px solid var(--border); color: #15131C; }
.task-count b { font-size: 46px; color: #15131C; } .task-count b span { color: rgba(21,19,28,.35); }
.task-count .muted { color: #55554F; }
.tc-all { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; }
.tc-all .ico { width: 16px; height: 16px; }
.cont-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cont-item { display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--fg); transition: border-color .2s; }
.cont-item:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.cont-item:hover .li-title { color: var(--accent-text); }
.cont-item:hover .chev { background: var(--grad); color: var(--accent-fg); border-color: transparent; }
.ci-thumb { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 18px; background: #15131B; position: relative; overflow: hidden; display: grid; place-items: center; color: #F6F6F2; font-weight: 700; font-size: 20px; }
.ci-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, var(--novice), transparent 65%); opacity: .55; }
.ci-thumb span, .ci-thumb .ico { position: relative; }
.ci-course::before { background: radial-gradient(ellipse at 50% 120%, var(--accent), transparent 65%); }
.ci-type { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-text); }
.ci-desc { font-size: 13px; color: var(--muted); }
.ci-bar { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ci-bar .progress { flex: 1; margin: 0; height: 5px; }
.ci-bar .progress > span { display: block; height: 100%; background: var(--lime); border-radius: 999px; }
.link-acc { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; margin-top: 14px; }
.hscroll .hs-item { scroll-snap-align: start; }
.hscroll .ccover { aspect-ratio: 16 / 10; }
.ccover .cnew { position: absolute; left: 10px; top: 10px; bottom: auto; }
.ccover .cnew + .cnum { }
.hscroll .cbrand { display: none; }
.h-count { font-size: 28px; color: var(--muted); font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.empty { margin: 24px 0; max-width: none; padding: 48px 20px; border: 1.5px dashed var(--border); border-radius: 26px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--secondary); color: var(--fg); }
@media (max-width: 1024px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .task-count { grid-column: 1 / -1; min-height: 0; } .hscroll { grid-auto-columns: minmax(240px, 80%); } }
@media (max-width: 640px) { .ci-thumb { width: 64px; height: 64px; flex-basis: 64px; } .cont-item { gap: 12px; padding: 12px; } .cont-item .chev { display: none; } }

/* ===== details: dots, arrows, progress, steps ===== */
.start-left { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.sl-top { display: flex; align-items: center; gap: 14px; }
.sl-top b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sl-bar { width: 220px; margin: 0; height: 6px; display: block; }
.sl-bar > span { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .3s; }
.start-left a { color: var(--fg-soft); text-decoration: underline; text-underline-offset: 3px; }
.start-left a:hover { color: var(--accent-text); }
.ov-list, .lesson-body ul, .author-note ul, .faq ul { list-style: none; padding-left: 0; }
.ov-list li, .lesson-body ul > li, .author-note ul > li { position: relative; padding-left: 22px; }
.ov-list li::before, .lesson-body ul > li::before, .author-note ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }
.author-note ul > li::before { background: var(--accent); }
.lesson-body li:has(> input[type=checkbox])::before, .author-note li:has(> input[type=checkbox])::before { display: none; }
.lesson-body ol { padding-left: 0; list-style: none; counter-reset: li; }
.lesson-body ol > li { counter-increment: li; position: relative; padding-left: 36px; }
.lesson-body ol > li::before { content: counter(li); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.quiz-card { position: relative; }
.qz-dots { position: absolute; top: 30px; right: 26px; display: flex; gap: 6px; }
.qz-dots i { width: 22px; height: 4px; border-radius: 999px; background: var(--secondary); display: block; }
.qz-dots i.on { background: var(--lime); }
.qz-dots i.cur { background: var(--grad); width: 30px; }
.all-link a u { text-underline-offset: 4px; }
.qz-opt .mnum { transition: background .15s, color .15s; }
.qz-opt:hover .mnum { background: var(--grad); color: var(--accent-fg); }
@media (max-width: 760px) { .start-left { align-items: flex-start; text-align: left; } .sl-bar { width: 140px; } .qz-dots { position: static; margin-bottom: 12px; } }

/* ===== draft accent switch ===== */
.draft-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; }
.acc-switch { display: inline-flex; align-items: center; gap: 4px; }
.acc-switch button { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font: 600 11.5px var(--font); cursor: pointer; opacity: .7; }
.acc-switch button[aria-pressed="true"] { background: var(--accent-text); color: var(--bg); border-color: var(--accent-text); opacity: 1; }

/* ===== variant: lime as the main accent ===== */
:root[data-accent="lime"] {
  --accent: #C6E85A; --accent-fg: #172003; --accent-text: #5A7400; --accent-soft: #EEF8CC;
  --grad: linear-gradient(135deg, #E2F77E 0%, #A9E36C 100%); --glow: rgba(180,225,90,.35);
  --mid: #B9A4FF; --lime: #B9A4FF; --lime-text: #6143D6;
}
@media (prefers-color-scheme: dark) { :root[data-accent="lime"]:not([data-theme="light"]) { --accent-text: #D4F36A; --accent-soft: #263018; --glow: rgba(200,240,100,.28); --lime-text: #BCA8FF; } }
:root[data-accent="lime"][data-theme="dark"] { --accent-text: #D4F36A; --accent-soft: #263018; --glow: rgba(200,240,100,.28); --lime-text: #BCA8FF; }
:root[data-accent="lime"] .badge-free, :root[data-accent="lime"] .badge-gold { background: linear-gradient(135deg, #B9A4FF, #6CC9F2); color: #0E1530; }
:root[data-accent="lime"] .pf-hero { background: linear-gradient(135deg, #E2F77E, #B6EC86); }
:root[data-accent="lime"] .me-av, :root[data-accent="lime"] .hello .avatar { color: #172003; }
:root[data-accent="lime"] .promo a { background: #172003; color: #E2F77E; }
:root[data-accent="lime"] .pf-cbar > span, :root[data-accent="lime"] .ci-bar .progress > span, :root[data-accent="lime"] .sl-bar > span { background: var(--grad); }
:root[data-accent="lime"] .qz-dots i.on { background: #B9A4FF; }

/* ===== Маршрут по профессиям ===== */
.home-hero { margin: 8px 0 36px; }
.hh-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.hh-lead { margin: 8px 0 0; color: var(--fg-soft, var(--muted)); max-width: 640px; font-size: 15px; line-height: 1.5; }
.prof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.prof-card { display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 18px; border-radius: 24px; text-decoration: none; color: #15131C; transition: transform .2s, box-shadow .2s; }
.prof-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,16,40,.14); }
.pc-0 { background: #CFC2FF; } .pc-1 { background: #BFEFE6; } .pc-2 { background: #E6F7A4; } .pc-3 { background: #FFC8A6; }
.pc-ic { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.55); display: grid; place-items: center; margin-bottom: 6px; }
.pc-ic .ico { width: 22px; height: 22px; stroke: #15131C; }
.pc-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.pc-sub { font-size: 13px; color: rgba(21,19,28,.62); line-height: 1.35; }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: rgba(21,19,28,.7); }
.pc-foot .ico { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(21,19,28,.1); stroke: #15131C; }
.prof-card:hover .pc-foot .ico { background: #15131C; stroke: #fff; }

.myroute-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin: 4px 0 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--fg); position: relative; overflow: hidden; }
.myroute-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--grad); }
.myroute-card[hidden] { display: none; }
.mr-ic { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; }
.mr-ic .ico { width: 26px; height: 26px; stroke: var(--accent-fg); }
.mr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mr-text b { font-size: 18px; letter-spacing: -0.01em; }
.mr-bar { display: flex; align-items: center; gap: 10px; max-width: 360px; }
.mr-bar .progress { flex: 1; }
.mr-btn { flex: 0 0 auto; }

.qz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qz-grid .qz-opt + .qz-opt { border-top: 0; }
.qz-grid .qz-opt { border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.qz-grid .qz-opt:nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.qz-opt[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.qz-opt[aria-pressed="true"] .mnum { background: var(--grad); color: var(--accent-fg); }
.qz-other { display: flex; gap: 10px; align-items: flex-end; margin: 14px 0 6px; flex-wrap: wrap; }
.qz-other label { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.qz-other input { font: inherit; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--fg); }
.qz-other input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rb-sum { margin: 2px 0 0; }
.rb-stages { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fg-soft, var(--fg)); }

.mr-hero { display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: 30px; background: var(--grad); color: var(--accent-fg); margin: 8px 0 28px; flex-wrap: wrap; }
.mr-hero-ic { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.45); display: grid; place-items: center; }
.mr-hero-ic .ico { width: 30px; height: 30px; stroke: var(--accent-fg); }
.mr-hero-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.mr-hero-text h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.mr-hero-text .eyebrow { color: inherit; opacity: .7; }
.mr-hero-side { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.mr-big { font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.mr-big small { font-size: 18px; opacity: .6; }
.mr-hero-side .progress { background: rgba(255,255,255,.45); }
.mr-hero-side .progress span { background: var(--accent-fg); }
.mr-hero .btn-primary { background: var(--accent-fg); color: #fff; border-color: transparent; }
.mr-stages { display: flex; flex-direction: column; gap: 18px; }
.mr-stage { border-radius: 26px; background: var(--card); border: 1px solid var(--border); padding: 8px; }
.mr-stage-head { display: flex; align-items: center; gap: 14px; padding: 12px 12px 10px; }
.mr-snum { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: var(--secondary); display: grid; place-items: center; font-weight: 700; }
.mr-stage.is-done .mr-snum { background: var(--grad); color: var(--accent-fg); }
.mr-stage-head .row-text { flex: 1; display: flex; flex-direction: column; }
.mr-stage-head .sub { font-size: 13px; color: var(--muted); }
.mr-list { display: flex; flex-direction: column; }
.mr-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; text-decoration: none; color: var(--fg); }
.mr-item:hover { background: color-mix(in srgb, var(--secondary) 60%, transparent); }
.mr-item:hover .li-title { color: var(--accent-text); }
.mr-dot { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.mr-item.is-done .mr-dot { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.mr-item.is-done .li-title { color: var(--muted); }
.mr-item.is-cur { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mr-item.is-cur .mr-dot { background: var(--grad); border-color: transparent; color: var(--accent-fg); }
.mr-item .li-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-meta { font-size: 12px; color: var(--muted); }
.mr-meta b { color: var(--accent-text); }
.mr-lock { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.mr-lock svg { width: 16px; height: 16px; }

.lesson-profs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.lesson-profs .pf-chip { padding: 4px 11px; font-size: 12px; border-color: var(--border); color: var(--fg); text-decoration: none; }
.lesson-profs .pf-chip:hover { border-color: var(--accent); color: var(--accent-text); }
.route-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 13px; }
.route-bar[hidden] { display: none; }
.route-bar a { margin-left: auto; color: var(--accent-text); font-weight: 600; }
.rb-ic { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); color: var(--accent-fg); display: grid; place-items: center; font-size: 12px; }

@media (max-width: 1024px) { .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .prof-card { min-height: 150px; padding: 14px; border-radius: 20px; }
  .pc-title { font-size: 14px; } .pc-sub { font-size: 12px; }
  .qz-grid { grid-template-columns: 1fr; } .qz-grid .qz-opt:nth-child(odd) { border-right: 0; }
  .myroute-card { flex-wrap: wrap; } .mr-btn { width: 100%; text-align: center; }
  .mr-hero { padding: 20px; border-radius: 24px; } .mr-hero-text h1 { font-size: 24px; } .mr-hero-side { width: 100%; }
}
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ===== Тарифы: периоды подписки ===== */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 46px 22px 22px; border-radius: 28px; border: 1px solid rgba(255,255,255,.07); background: radial-gradient(120% 70% at 30% 0%, #2B2840 0%, #16151C 60%); color: #F4F2FA; min-height: 400px; }
.plan-tag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 9px 18px; border-radius: 999px; background: var(--grad); color: var(--accent-fg); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan-term { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.plan-goal { font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.plan-save { font-size: 13px; color: #D4F36A; font-weight: 600; }
.plan-price { margin-top: auto; font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { font-size: 18px; letter-spacing: 0; opacity: .7; }
.plan-per { font-size: 13px; opacity: .65; }
.plan-btn { margin-top: 12px; justify-content: center; text-align: center; background: var(--grad); color: var(--accent-fg); border: 0; border-radius: 999px; padding: 14px; font-weight: 700; cursor: default; }
.plan-hl { background: var(--grad); color: var(--accent-fg); }
.plan-hl .plan-tag { background: #16151C; color: #F4F2FA; }
.plan-hl .plan-save { color: #2B2546; }
.plan-hl .plan-btn { background: #16151C; color: #F4F2FA; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .plan { min-height: 0; } .plan-price { font-size: 40px; } }

/* ===== Covers (27.10, v2) ===== */
.ban { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); align-items: center; gap: 0; border-radius: 24px; overflow: hidden; margin: 0 0 20px; background: var(--card); border: 1px solid var(--border); width: 100%; }
.ban img { grid-column: 2; grid-row: 1; display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ban-text { grid-column: 1; grid-row: 1; padding: 26px 30px; display: flex; flex-direction: column; gap: 8px; }
.ban-text h1, .ban-text .ban-h { margin: 0; font-size: 38px; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--fg); text-wrap: balance; }
.ban-text .ban-sub { font-size: 15px; color: var(--muted); max-width: 460px; line-height: 1.45; }
.page-head.has-ban { width: 100%; }
.page-head.has-ban .lead { margin-top: 0; }
.course-head .ban { margin-top: 8px; }
.ccover.ccover-img { aspect-ratio: 16 / 9; background: #EDEDEA; display: block; }
.ccover.ccover-img::before { display: none; }
.ccover.ccover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-grid:has(.prof-card.has-img) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1200px) { .prof-grid:has(.prof-card.has-img) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prof-card.has-img { display: grid; grid-template-columns: 60px minmax(0, 1fr) 26px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 0; padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--card); color: var(--fg); border: 1px solid var(--border); }
.prof-card.has-img:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.prof-card.has-img .pc-img { grid-column: 1; grid-row: 1 / 3; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; background: #0E0D12; }
.prof-card.has-img .pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.35); display: block; }
.prof-card.has-img .pc-title { grid-column: 2; grid-row: 1; font-size: 14.5px; line-height: 1.25; align-self: end; }
.prof-card.has-img .pc-sub { display: none; }
.prof-card.has-img .pc-foot { grid-column: 2 / 4; grid-row: 2; margin: 0; align-self: start; font-size: 12px; color: var(--muted); }
.prof-card.has-img .pc-foot .ico { position: relative; top: -14px; width: 24px; height: 24px; padding: 5px; background: color-mix(in srgb, var(--fg) 8%, transparent); stroke: var(--fg); }
.prof-card.has-img:hover .pc-foot .ico { background: var(--accent); stroke: #15131C; }
.ccards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ccard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--fg); transition: transform .2s; }
.ccard:hover { transform: translateY(-2px); }
.cc-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #0E0D12; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-title { position: absolute; top: 14px; left: 12px; right: 12px; text-align: center; color: #F6F6F2; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.cc-body strong { font-size: 16px; line-height: 1.3; }
.cc-body .sub { font-size: 13px; color: var(--muted); }
.lvl-ban { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; border-radius: 20px; overflow: hidden; margin: 28px 0 14px; background: var(--card); border: 1px solid var(--border); }
.lvl-ban img { grid-column: 2; grid-row: 1; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lvl-ban-text { grid-column: 1; grid-row: 1; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; }
.lvl-ban-text h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.lvl-ban-text .small { color: var(--muted); }
@media (max-width: 900px) {
  .ccards { grid-template-columns: 1fr; }
  .ban { grid-template-columns: 1fr; }
  .ban img { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
  .ban-text { grid-column: 1; grid-row: 2; padding: 16px 18px 18px; }
  .ban-text h1, .ban-text .ban-h { font-size: 28px; }
  .lvl-ban { grid-template-columns: minmax(0, 1fr) 128px; }
  .lvl-ban-text { padding: 12px 14px; }
  .lvl-ban-text h2 { font-size: 18px; }
  .prof-grid:has(.prof-card.has-img) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .prof-card.has-img { grid-template-columns: 44px minmax(0, 1fr); padding: 8px; column-gap: 10px; }
  .prof-card.has-img .pc-img { width: 44px; height: 44px; border-radius: 11px; }
  .prof-card.has-img .pc-title { font-size: 13px; }
  .prof-card.has-img .pc-foot .ico { display: none; }
}

/* profession rows with icons */
.prof-grid:has(.pc-row) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1200px) { .prof-grid:has(.pc-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prof-card.pc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 0; padding: 12px 12px 12px 12px; border-radius: 16px; background: var(--card); color: var(--fg); border: 1px solid var(--border); }
.prof-card.pc-row:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--pcc) 70%, var(--border)); }
.prof-card.pc-row .pc-ic { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; border-radius: 12px; background: color-mix(in srgb, var(--pcc) 18%, transparent); display: grid; place-items: center; }
.prof-card.pc-row .pc-ic .ico { width: 22px; height: 22px; stroke: var(--pcc); }
.prof-card.pc-row .pc-title { grid-column: 2; grid-row: 1; font-size: 14.5px; line-height: 1.25; align-self: end; }
.prof-card.pc-row .pc-sub { display: none; }
.prof-card.pc-row .pc-foot { grid-column: 2; grid-row: 2; margin: 0; align-self: start; font-size: 12px; font-weight: 500; color: var(--muted); display: block; }
.prof-card.pc-row .pc-go { grid-column: 3; grid-row: 1 / 3; display: grid; }
.prof-card.pc-row .pc-go .ico { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 8%, transparent); stroke: var(--fg); }
.prof-card.pc-row:hover .pc-go .ico { background: var(--pcc); stroke: #15131C; }
.pci-0 { --pcc: #FF7A4D; } .pci-1 { --pcc: #5CB8FF; } .pci-2 { --pcc: #FF5FA8; } .pci-3 { --pcc: #3FD9B8; }
.pci-4 { --pcc: #FFC23C; } .pci-5 { --pcc: #A98BFA; } .pci-6 { --pcc: #A8E03A; } .pci-7 { --pcc: #7FA8FF; }
@media (max-width: 900px) {
  .prof-grid:has(.pc-row) { gap: 8px; }
  .prof-card.pc-row { grid-template-columns: 36px minmax(0, 1fr); padding: 10px; column-gap: 10px; }
  .prof-card.pc-row .pc-ic { width: 36px; height: 36px; border-radius: 10px; }
  .prof-card.pc-row .pc-ic .ico { width: 18px; height: 18px; }
  .prof-card.pc-row .pc-title { font-size: 13px; }
  .prof-card.pc-row .pc-go { display: none; }
}

.ci-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ci-thumb:has(img)::before { display: none; }

/* ===== Brand Yedi AI (27.10) ===== */
:root { --bmbg: #FFFFFF; --bm1: #7B5CF0; --bm2: #2E9FD6; }
[data-theme="dark"] { --bmbg: #15131C; --bm1: #B9A4FF; --bm2: #6CC9F2; }
.brand { align-items: center; gap: 10px; }
.brand .bmark { width: 34px; height: 34px; flex: none; display: block; border-radius: 9px; box-shadow: 0 0 0 1px var(--line, rgba(127,127,127,.18)); }
.brand .wm { font-family: 'Unbounded', var(--font-display, sans-serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .wm b { font-weight: 600; background: linear-gradient(90deg, var(--bm1), var(--bm2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .brand .bmark { width: 30px; height: 30px; }
.topbar .brand .wm { font-size: 17px; }

/* ===== «Первые шаги»: квадратные карточки (27.10) ===== */
.tasks .task { aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; }
@media (max-width: 1024px) { .tasks .task-count { aspect-ratio: auto; } }
@media (max-width: 420px) { .tasks .task { padding: 14px; border-radius: 22px; } .task .ttitle { font-size: 14px; } .task .tnum { font-size: 22px; } .task .t-ic .ico { width: 28px; height: 28px; } .task .tcheck { width: 32px; height: 32px; } }
.tasks .task { gap: 6px; }
.tasks .task .tcheck, .tasks .task .t-top, .tasks .task .tc-all { flex: none; }
.tasks .task .ttitle { margin-top: auto; }
@media (max-width: 1500px) { .tasks .task { padding: 16px; } .tasks .task .ttitle { font-size: 15px; } .tasks .task .t-ic .ico { width: 28px; height: 28px; } .tasks .task .tnum { font-size: 24px; } .tasks .task .tcheck { width: 32px; height: 32px; } }

/* ===== G4 logo (27.10) ===== */
.brand .wm b{background:#C8F05A;-webkit-background-clip:initial;background-clip:initial;color:#15131C;padding:0 .18em .04em;border-radius:.22em}
[data-theme="dark"] .brand .wm b{background:none;color:#C8F05A;padding:0}
.brand .bmark{box-shadow:none}
