/* ===== Alfa-Engineer · современная тема (цвета «Альфы»: индиго → фиолетовый → бирюза) =====
   Подключать после Bootstrap 5.3 и Bootstrap Icons. */
:root {
  --a-primary: #4f46e5; --a-primary-600: #4338ca; --a-primary-50: #eef2ff;
  --a-violet: #7c3aed; --a-cyan: #06b6d4;
  --a-ink: #0b1020; --a-ink-2: #131a33;
  --a-bg: #f6f7fb; --a-surface: #ffffff; --a-text: #0f172a; --a-muted: #5b6478; --a-border: #e7e9f2;
  --a-success: #10b981; --a-warning: #f59e0b; --a-danger: #ef4444;
  --a-radius: 20px; --a-radius-sm: 12px;
  --a-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --a-shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --a-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --a-grad-wide: linear-gradient(120deg, #4f46e5, #7c3aed 50%, #06b6d4);
  --nav-h: 68px;
  --bs-primary: var(--a-primary); --bs-primary-rgb: 79, 70, 229;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--a-bg); --bs-body-color: var(--a-text); --bs-border-color: var(--a-border);
  --bs-link-color: var(--a-primary); --bs-link-color-rgb: 79, 70, 229; --bs-link-hover-color: var(--a-primary-600);
  --bs-border-radius: var(--a-radius-sm);
}
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
body { background: var(--a-bg); color: var(--a-text); font-size: .97rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.025em; color: var(--a-text); line-height: 1.15; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.15rem; letter-spacing: -.01em; }
a { text-decoration: none; }
.text-muted { color: var(--a-muted) !important; }
.email-wrap { overflow-wrap: anywhere; }

/* ---------- верхняя навигация ---------- */
.nav-glass { position: sticky; top: 0; z-index: 1030; transition: background .2s, box-shadow .2s, border-color .2s;
  background: rgba(246,247,251,.72); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; }
.nav-glass.scrolled { background: rgba(255,255,255,.85); border-bottom-color: var(--a-border); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.nav-inner { max-width: 1240px; margin: 0 auto; height: var(--nav-h); padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--a-text); letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { color: var(--a-text); }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--a-grad-wide);
  box-shadow: 0 6px 18px rgba(79,70,229,.4); }
.logo-dot { color: var(--a-primary); margin: 0 1px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { color: #334155; font-weight: 600; font-size: .93rem; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { color: var(--a-text); background: rgba(15,23,42,.05); }
.nav-links a.active { color: var(--a-primary); background: var(--a-primary-50); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; font-weight: 700; background: var(--a-grad); box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.nav-burger { display: none; border: 0; background: transparent; font-size: 1.5rem; color: var(--a-text); padding: 4px 6px; }
.nav-mobile { display: none; }
.dropdown-menu { border: 1px solid var(--a-border); border-radius: 14px; box-shadow: var(--a-shadow-lg); padding: 6px; min-width: 240px; }
.dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 8px 12px; font-weight: 500; }
.dropdown-item i { color: var(--a-muted); }
.dropdown-header { font-size: .78rem; }

/* ---------- кнопки ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1.05rem; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn-sm { padding: .35rem .75rem; border-radius: 10px; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn-primary { background: var(--a-primary); border-color: var(--a-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--a-primary-600); border-color: var(--a-primary-600); }
.btn-gradient { color: #fff; border: 0; background: var(--a-grad); box-shadow: 0 8px 22px rgba(79,70,229,.32); }
.btn-gradient:hover, .btn-gradient:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,.4); }
.btn-ghost { color: var(--a-text); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(15,23,42,.05); color: var(--a-text); }
.btn-soft { color: var(--a-primary); background: var(--a-primary-50); border: 1px solid transparent; }
.btn-soft:hover { color: #fff; background: var(--a-primary); }
.btn-outline-secondary { border-color: var(--a-border); color: #334155; background: #fff; }
.btn-outline-secondary:hover { background: #f1f5f9; border-color: #d6dae6; color: var(--a-text); }
.btn-white { background: #fff; color: var(--a-ink); border: 0; }
.btn-white:hover { background: #eef2ff; color: var(--a-ink); transform: translateY(-1px); }
.btn-glass { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.btn-glass:hover { color: #fff; background: rgba(255,255,255,.16); }

/* ---------- страница и заголовки ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 36px 24px 72px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.page-head .subtitle { color: var(--a-muted); margin: 8px 0 0; max-width: 680px; font-size: 1.02rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-primary); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--a-muted); margin-bottom: 10px; }
.crumbs a { color: var(--a-muted); } .crumbs a:hover { color: var(--a-primary); }
.crumbs i { font-size: .7rem; } .crumbs span { color: var(--a-text); font-weight: 600; }

/* ---------- тёмный герой ---------- */
.hero-dark { position: relative; overflow: hidden; color: #fff; background: var(--a-ink); margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 72px) 24px 88px; }
.hero-dark::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(124,58,237,.55), transparent 70%); filter: blur(10px); }
.hero-dark::after { content: ""; position: absolute; inset: auto auto -40% -10%; width: 60%; height: 110%;
  background: radial-gradient(closest-side, rgba(6,182,212,.35), transparent 70%); filter: blur(10px); }
.hero-grid-bg { position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #dbe1ff; }
.hero-badge b { background: var(--a-grad-wide); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .78rem; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 20px 0 18px; }
.hero-title .grad { background: linear-gradient(90deg, #a5b4fc, #c4b5fd 45%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #b8c0dc; font-size: 1.12rem; max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stats .num { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.hero-stats .cap { color: #8f99bd; font-size: .86rem; }
.hero-card { position: relative; border-radius: 24px; padding: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hero-card .lesson { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); margin-top: 10px; color: #dbe1ff; font-size: .92rem; }
.hero-card .lesson i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(129,140,248,.18); color: #c7d2fe; flex-shrink: 0; }
.hero-card .lesson .done { background: rgba(16,185,129,.2); color: #6ee7b7; }
.hero-card .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin: 8px 0 4px; }
.hero-card .bar span { display: block; height: 100%; width: 68%; background: var(--a-grad-wide); border-radius: 999px; }
.hero-card .ai { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: .9rem; color: #e0e7ff;
  background: linear-gradient(135deg, rgba(79,70,229,.35), rgba(6,182,212,.18)); border: 1px solid rgba(165,180,252,.25); }
body.has-hero .nav-glass:not(.scrolled) { background: transparent; }
body.has-hero .nav-glass:not(.scrolled) .logo, body.has-hero .nav-glass:not(.scrolled) .nav-links a,
body.has-hero .nav-glass:not(.scrolled) .btn-ghost, body.has-hero .nav-glass:not(.scrolled) .nav-burger { color: #e2e8ff; }
body.has-hero .nav-glass:not(.scrolled) .nav-links a:hover, body.has-hero .nav-glass:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
body.has-hero .nav-glass:not(.scrolled) .nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- карточки ---------- */
.card { border: 1px solid var(--a-border); border-radius: var(--a-radius); box-shadow: var(--a-shadow); background: var(--a-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--a-border); font-weight: 700; padding: 16px 20px; border-radius: var(--a-radius) var(--a-radius) 0 0 !important; }
.card-body { padding: 20px; }
.course-card { position: relative; overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--a-shadow-lg); border-color: #dcdff0; }
.course-card .cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #eef2ff, #e0f2fe); }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.course-card:hover .cover img { transform: scale(1.05); }
.course-card .cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(11,16,32,.35)); pointer-events: none; }
.course-card .cover-empty { display: grid; place-items: center; height: 100%; font-size: 2.4rem; color: var(--a-primary); }
.course-card .cover .tag { position: absolute; z-index: 1; top: 12px; left: 12px; }
.course-card.is-soon .cover img { filter: grayscale(.7) contrast(.9); opacity: .8; }
.course-card .card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.course-card h3 { font-size: 1.12rem; margin: 0; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--a-muted); font-size: .86rem; }
.course-card .meta i { margin-right: 4px; color: var(--a-primary); }
.course-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.course-card .price { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.stretched-cover { position: absolute; inset: 0; z-index: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.4; }
.pill-glass { color: #fff; background: rgba(11,16,32,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.pill-success { color: #047857; background: #d1fae5; }
.pill-primary { color: var(--a-primary); background: var(--a-primary-50); }
.pill-muted { color: #475569; background: #f1f5f9; }
.badge-soft { background: var(--a-primary-50); color: var(--a-primary); }

/* ---------- особенности (фичи) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px 0 0; }
.feature { padding: 24px; border-radius: var(--a-radius); background: #fff; border: 1px solid var(--a-border); box-shadow: var(--a-shadow); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--a-grad); margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(79,70,229,.3); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--a-muted); margin: 0; }

.cta-band { margin-top: 56px; padding: 40px; border-radius: 28px; color: #fff; position: relative; overflow: hidden; background: var(--a-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band::before { content: ""; position: absolute; inset: -50% auto auto 40%; width: 60%; height: 200%; background: radial-gradient(closest-side, rgba(124,58,237,.5), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 6px; } .cta-band p { color: #b8c0dc; margin: 0; }

/* ---------- формы, таблицы, алерты ---------- */
.form-control, .form-select { border-radius: 12px; border-color: var(--a-border); padding: .62rem .9rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.form-label { font-weight: 600; font-size: .9rem; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { background: #f8fafc; color: var(--a-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; white-space: nowrap; }
.table td, .table th { padding: .85rem 1rem; vertical-align: middle; border-color: var(--a-border); }
.alert { border-radius: 14px; border: 1px solid transparent; }
.progress { height: 8px; border-radius: 999px; background: #e9edf5; }
.progress-bar { background: var(--a-grad-wide); border-radius: 999px; }
.empty { text-align: center; padding: 56px 16px; }
.empty-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem;
  color: var(--a-primary); background: linear-gradient(135deg, #eef2ff, #e0f2fe); }
.empty p { color: var(--a-muted); }

/* ---------- подвал ---------- */
.site-footer { background: var(--a-ink); color: #8f99bd; padding: 48px 24px 32px; font-size: .9rem; }
.site-footer .inner { max-width: 1240px; margin: 0 auto; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .logo { color: #fff; } .site-footer .logo:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer a { color: #b8c0dc; } .site-footer a:hover { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 48px; }
.site-footer .cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .socials { display: flex; gap: 8px; margin-top: 14px; }
.site-footer .socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
.site-footer .socials a:hover { background: rgba(255,255,255,.12); }
.site-footer .bottom { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .82rem; }

/* ---------- адаптив ---------- */
@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-burger { display: inline-block; }
  .nav-glass.open .nav-mobile { display: grid; gap: 4px; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--a-border); }
  .nav-mobile a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--a-text); font-weight: 600; }
  .nav-mobile a:not(.btn):hover { background: #f1f5f9; }
  .nav-mobile i { color: var(--a-primary); }
  body.has-hero .nav-glass.open { background: #fff; }
  body.has-hero .nav-glass.open .logo, body.has-hero .nav-glass.open .btn-ghost, body.has-hero .nav-glass.open .nav-burger { color: var(--a-text); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .page { padding: 24px 16px 56px; }
  .hero-dark { padding: calc(var(--nav-h) + 40px) 16px 56px; }
  .hero-lead { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .cta-band { padding: 28px 22px; }
}

/* ---------- вход и регистрация ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin: 8px auto 0; border-radius: 28px; overflow: hidden;
  background: #fff; border: 1px solid var(--a-border); box-shadow: var(--a-shadow-lg); }
.auth-side { position: relative; overflow: hidden; background: var(--a-ink); color: #b8c0dc; padding: 48px 44px; }
.auth-side::before { content: ""; position: absolute; inset: -30% -30% auto auto; width: 90%; height: 90%; background: radial-gradient(closest-side, rgba(124,58,237,.55), transparent 70%); }
.auth-side::after { content: ""; position: absolute; inset: auto auto -30% -30%; width: 80%; height: 80%; background: radial-gradient(closest-side, rgba(6,182,212,.35), transparent 70%); }
.auth-side-inner { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 2rem; margin: 22px 0 12px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: #dbe1ff; font-weight: 500; }
.auth-points i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(129,140,248,.18); color: #c7d2fe; }
.auth-card { padding: 48px 44px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.input-icon .form-control { padding-left: 42px; height: 48px; }
.field-error { color: var(--a-danger); font-size: .84rem; margin-top: 6px; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { padding: 32px 22px; }
}

/* ---------- чипы-фильтры ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--a-border); background: #fff; color: #334155; border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 600; transition: all .15s; }
.chip:hover { border-color: #c7d2fe; color: var(--a-primary); }
.chip.active { background: var(--a-text); border-color: var(--a-text); color: #fff; }

/* ---------- задания (работа) ---------- */
.job-list { display: grid; gap: 14px; }
.job-card { display: flex; flex-direction: row; gap: 24px; align-items: center; padding: 22px 24px; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.job-card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--a-shadow-lg); border-color: #dcdff0; }
.job-card h3 { font-size: 1.08rem; margin: 6px 0 6px; }
.job-main { flex: 1; min-width: 0; }
.job-meta { display: inline-flex; align-items: center; gap: 5px; color: var(--a-muted); font-size: .85rem; }
.job-side { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 150px; }
.job-price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.job-go { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--a-primary-50); color: var(--a-primary); transition: background .15s, color .15s; }
.job-card:hover .job-go { background: var(--a-primary); color: #fff; }
@media (max-width: 767.98px) {
  .job-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
  .job-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; min-width: 0; }
}
.job-card { overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.job-price { white-space: normal; max-width: 240px; line-height: 1.25; }
@media (max-width: 767.98px) { .job-price { max-width: 70%; font-size: 1.1rem; } }

/* ---------- выбор цели при регистрации ---------- */
.goal-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal-option { position: relative; cursor: pointer; margin: 0; }
.goal-option input { position: absolute; opacity: 0; pointer-events: none; }
.goal-card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--a-border); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.goal-card i { font-size: 1.35rem; color: var(--a-primary); margin-bottom: 4px; }
.goal-card b { font-size: .95rem; }
.goal-card small { color: var(--a-muted); line-height: 1.35; }
.goal-option:hover .goal-card { border-color: #c7d2fe; }
.goal-option input:checked + .goal-card { border-color: var(--a-primary); background: var(--a-primary-50); box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.goal-option input:focus-visible + .goal-card { outline: 2px solid #a5b4fc; outline-offset: 2px; }
@media (max-width: 400px) { .goal-pick { grid-template-columns: 1fr; } }

/* ---------- работа: фильтры и направления ---------- */
.job-filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; padding: 12px; margin-bottom: 14px; }
.job-search { position: relative; }
.job-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.job-search .form-control { padding-left: 40px; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.cat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--a-border);
  color: #334155; font-weight: 600; font-size: .88rem; white-space: nowrap; transition: all .15s; }
.cat-chip i { color: var(--a-primary); }
.cat-chip:hover { border-color: #c7d2fe; color: var(--a-primary); }
.cat-chip.active { background: var(--a-text); border-color: var(--a-text); color: #fff; }
.cat-chip.active i { color: #a5b4fc; }
.cat-chip .cnt { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--a-primary-50); color: var(--a-primary); font-size: .75rem; text-align: center; }
.cat-chip.active .cnt { background: rgba(255,255,255,.15); color: #fff; }
.job-meta.hot { color: #c2410c; font-weight: 600; } .job-meta.hot i { color: #f97316; }
@media (max-width: 991.98px) { .job-filters { grid-template-columns: 1fr 1fr; } .job-search { grid-column: 1 / -1; } }

/* ---------- работа: табло торгов ---------- */
.auction { position: relative; overflow: hidden; border-radius: 28px; background: var(--a-ink); color: #b8c0dc; padding: 32px; }
.auction::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(124,58,237,.5), transparent 70%); }
.auction::after { content: ""; position: absolute; inset: auto auto -50% -10%; width: 50%; height: 120%; background: radial-gradient(closest-side, rgba(6,182,212,.3), transparent 70%); }
.auction-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.auction h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.auction .cap { display: block; color: #8f99bd; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.auction-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.auction-facts b { color: #fff; font-size: 1.2rem; font-weight: 800; }
.auction-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.auction .panel-big { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 4px 0 6px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 16px; }
.countdown div { text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 0 6px; }
.countdown b { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown span { font-size: .72rem; color: #8f99bd; }
.countdown.urgent b { color: #fca5a5; animation: pulseText 1s ease-in-out infinite; }
.leader { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.leader b { display: block; color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.leader .delta { color: #6ee7b7; font-size: .85rem; font-weight: 600; }
.my-bid { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(129,140,248,.15); color: #e0e7ff; font-weight: 600; font-size: .92rem; }
.my-bid i { margin-right: 8px; color: #a5b4fc; }
.my-bid.lead { background: rgba(16,185,129,.18); color: #d1fae5; } .my-bid.lead i { color: #fcd34d; }
.auction .hint { color: #8f99bd; font-size: .82rem; margin: 12px 0 0; }
.live-pill { color: #fff; background: rgba(239,68,68,.2); border: 1px solid rgba(239,68,68,.45); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
@keyframes pulseText { 50% { opacity: .55; } }

.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: none; }
.board li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--a-border); background: #fff; transition: transform .15s; }
.board li:hover { transform: translateX(2px); }
.board .rank { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: #f1f5f9; color: #475569; }
.board li.first { border-color: #fcd34d; background: linear-gradient(90deg, #fffbeb, #fff); }
.board li.first .rank { background: #fef3c7; color: #d97706; }
.board li.mine { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.board .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.board .who small { overflow-wrap: anywhere; }
.board .amount { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.plaque-soft { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #f1f5f9; color: #475569; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 16px; border-radius: 14px; background: #f8fafc; }
.facts-grid .cap, .summary dt { color: var(--a-muted); font-size: .8rem; font-weight: 600; }
.facts-grid b { display: block; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.sticky-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.job-text { overflow-wrap: break-word; }
@media (max-width: 991.98px) { .auction-inner { grid-template-columns: 1fr; } .sticky-side { position: static; } }
@media (max-width: 767.98px) { .auction { padding: 22px 18px; border-radius: 22px; } .countdown b { font-size: 1.35rem; } }
@media (prefers-reduced-motion: reduce) { .live-dot, .countdown.urgent b { animation: none; } }

/* ---------- анимация главной ---------- */
.hero-anim::before, .hero-anim::after { display: none; } /* статичные свечения заменены живыми .orb */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; will-change: transform; }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #7c3aed; animation: orbA 18s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; left: -160px; bottom: -220px; background: #06b6d4; opacity: .4; animation: orbB 22s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; left: 38%; top: 30%; background: #4f46e5; opacity: .35; animation: orbC 16s ease-in-out infinite; }
@keyframes orbA { 50% { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes orbB { 50% { transform: translate(140px, -80px) scale(1.1); } }
@keyframes orbC { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(90px, -60px) scale(.9); } 66% { transform: translate(-70px, 40px) scale(1.1); } }
.hero-anim .hero-grid-bg { animation: gridDrift 30s linear infinite; }
@keyframes gridDrift { to { background-position: 48px 48px, 48px 48px; } }
.hero-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(165,180,252,.16), transparent 60%); }
.hero-anim:hover .hero-spot { opacity: 1; }

.rotator { display: inline-grid; vertical-align: top; }
.rot-word { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .6s, transform .6s, filter .6s; white-space: nowrap; }
.rot-word.is-on { opacity: 1; transform: none; filter: none; }
.rot-word.is-off { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }

.hero-card.tilt { transition: transform .25s ease-out; transform-style: preserve-3d; animation: cardFloat 6s ease-in-out infinite; }
.hero-card.tilt:hover { animation-play-state: paused; }
@keyframes cardFloat { 50% { translate: 0 -10px; } }
.js-anim .hero-card .bar span { animation: barFill 1.6s .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes barFill { from { width: 0; } }
.js-anim .hero-card .step { animation: stepIn .5s both; }
.js-anim .hero-card .step:nth-of-type(1) { animation-delay: .7s; }
.js-anim .hero-card .step:nth-of-type(2) { animation-delay: 1s; }
.js-anim .hero-card .step:nth-of-type(3) { animation-delay: 1.3s; }
.js-anim .hero-card .ai.step { animation-delay: 1.8s; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.hero-card .lesson.now { border: 1px solid rgba(165,180,252,.35); background: rgba(129,140,248,.12); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: auto; }
.eq b { width: 3px; background: #a5b4fc; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: .2s; } .eq b:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #c7d2fe; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.js-anim .hero-inner > div:first-child > * { animation: heroIn .8s both; }
.js-anim .hero-inner > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.js-anim .hero-inner > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.js-anim .hero-inner > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.js-anim .hero-inner > div:first-child > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.feature .ico { transition: transform .3s; } .feature:hover .ico { transform: rotate(-8deg) scale(1.08); }
.btn-white .bi-arrow-right, .btn-gradient .bi-arrow-right { transition: transform .2s; }
.btn-white:hover .bi-arrow-right, .btn-gradient:hover .bi-arrow-right { transform: translateX(4px); }
@media (max-width: 767.98px) { .rot-word { white-space: normal; } .orb { filter: blur(48px); } }
@media (prefers-reduced-motion: reduce) {
  .orb, .hero-anim .hero-grid-bg, .hero-card.tilt, .eq b, .typing::after { animation: none !important; }
}
.hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .9fr); }
.rot-word { white-space: normal; }
@media (max-width: 991.98px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-title { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 767.98px) { .hero-title { font-size: clamp(1.8rem, 8.6vw, 2.4rem); } }

/* ---------- подписка: карточка цены ---------- */
.plan-card { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; color: #b8c0dc; background: var(--a-ink); box-shadow: var(--a-shadow-lg); max-width: 460px; }
.plan-glow { position: absolute; inset: -40% -30% auto auto; width: 90%; height: 90%; background: radial-gradient(closest-side, rgba(124,58,237,.6), transparent 70%); pointer-events: none; }
.plan-card > * { position: relative; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.plan-price b { color: #fff; font-size: 3rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.plan-price span { color: #8f99bd; font-size: 1.05rem; }
.plan-lead { color: #dbe1ff; margin: 0 0 18px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 12px; align-items: center; color: #e2e8ff; }
.plan-list i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(129,140,248,.18); color: #c7d2fe; }
.plan-active { margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(16,185,129,.18); color: #d1fae5; font-weight: 600; }
.plan-active i { margin-right: 6px; }
.plan-pay { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: .82rem; color: #8f99bd; }
.plan-pay a { color: #c7d2fe; } .plan-pay a:hover { color: #fff; }
.landing-plan { display: flex; justify-content: center; margin: 8px 0 24px; }
.landing-plan .plan-card { width: 100%; }
.pricing-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 24px 0; }
.pricing-card-col { display: flex; justify-content: center; }
.pricing-card-col .plan-card { width: 100%; }
.pricing-features { grid-template-columns: 1fr 1fr; margin-top: 28px; }
@media (max-width: 991.98px) { .pricing-wrap { grid-template-columns: 1fr; gap: 28px; } .pricing-features { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .plan-card { padding: 22px; } .plan-price b { font-size: 2.4rem; } }
.plan-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 24px; border-radius: 20px; color: #dbe1ff; background: var(--a-ink);
  background-image: radial-gradient(circle at 85% 0%, rgba(124,58,237,.55), transparent 55%); }
.plan-banner b { color: #fff; }
.plan-banner .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--a-grad-wide); color: #fff; font-size: 1.2rem; }

/* ---------- главная: цена и авторы ---------- */
.split-band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.split-card { position: relative; overflow: hidden; padding: 32px; border-radius: 28px; }
.split-card h2 { margin: 10px 0 8px; }
.price-teaser { background: #fff; border: 1px solid var(--a-border); box-shadow: var(--a-shadow); }
.price-teaser p { color: var(--a-muted); }
.teaser-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.teaser-price span { font-size: 1rem; font-weight: 500; color: var(--a-muted); }
.author-card { background: var(--a-ink); color: #b8c0dc; background-image: radial-gradient(circle at 90% 0%, rgba(124,58,237,.55), transparent 55%), radial-gradient(circle at 0% 100%, rgba(6,182,212,.3), transparent 50%); }
.author-card h2 { color: #fff; } .author-card .eyebrow { color: #a5b4fc; }
@media (max-width: 991.98px) { .split-band { grid-template-columns: 1fr; } .split-card { padding: 24px; } }
.plan-card { text-align: left; }
@media (prefers-reduced-motion: reduce) { .hero-card .step, .hero-card .bar span, .hero-inner > div > * { animation: none !important; } }

/* ---------- два тарифа ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.plans .plan-card { max-width: none; display: flex; flex-direction: column; }
.plans .plan-card .btn { margin-top: auto; }
.plan-light { background: #fff; color: var(--a-text); border: 1px solid var(--a-border); box-shadow: var(--a-shadow); }
.plan-light .plan-price b { color: var(--a-text); }
.plan-light .plan-price span, .plan-light .plan-lead { color: var(--a-muted); }
.plan-light .plan-list li { color: var(--a-text); }
.plan-light .plan-list i { background: var(--a-primary-50); color: var(--a-primary); }
.plan-light .plan-pay a { color: var(--a-primary); }
.plan-flag { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: #fff; background: var(--a-grad-wide); box-shadow: 0 6px 18px rgba(124,58,237,.45); }
.plans-note { text-align: center; color: var(--a-muted); font-size: .86rem; margin: 16px 0 0; }
.pricing-head { justify-content: center; text-align: center; }
.pricing-head .subtitle { margin-left: auto; margin-right: auto; }
.pricing-features { grid-template-columns: repeat(3, 1fr); }
.teaser-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.teaser-prices > div { flex: 1 1 160px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--a-border); background: #f8fafc; }
.teaser-prices > div.best { border-color: #c7d2fe; background: var(--a-primary-50); }
.teaser-prices span { display: block; color: var(--a-muted); font-size: .82rem; font-weight: 600; }
.teaser-prices b { font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.teaser-prices small { color: var(--a-muted); }
@media (max-width: 767.98px) { .plans { grid-template-columns: 1fr; } .pricing-features { grid-template-columns: 1fr; } }
.plans, .plans .plan-card { text-align: left; }
.plans .plan-card > .pill { align-self: flex-start; }
.plans .plan-card .plan-price { margin-top: 14px; }
.plans .plan-list li { justify-content: flex-start; }

/* ---------- ракета «Хочу такой курс» ---------- */
.fx-rocket, .fx-spark, .fx-smoke, .fx-plus { position: fixed; pointer-events: none; z-index: 5000; }
.fx-rocket { font-size: 2.2rem; color: #7c3aed; filter: drop-shadow(0 6px 14px rgba(124,58,237,.55)); }
.fx-rocket i { background: linear-gradient(135deg, #4f46e5, #ec4899 60%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-spark { width: 8px; height: 8px; border-radius: 2px; }
.fx-smoke { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(251,191,36,.9), rgba(148,163,184,.5) 55%, transparent 70%); }
.fx-plus { font-weight: 800; font-size: 1.1rem; color: var(--a-primary); }
.fx-rocket { font-size: 3.4rem; }
.fx-spark { width: 10px; height: 10px; }
.fx-smoke { width: 22px; height: 22px; }
.fx-plus { font-size: 1.5rem; }
.trial-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.trial-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: inherit; }
.trial-item:hover { color: inherit; box-shadow: var(--a-shadow-lg); }
.trial-item .go { margin-top: auto; color: var(--a-primary); font-weight: 600; }

/* QA: ставки на телефоне, селекты фильтров, кнопка-ссылка «Выйти», тарифы в карточке «Нужна подписка» */
.board .who b { overflow-wrap: anywhere; }
@media (max-width: 575px) {
  .board li { flex-wrap: wrap; }
  .board li form { margin-left: 48px !important; width: 100%; }
  .board li form .btn { width: 100%; }
}
.job-filters .form-select, .filters .form-select { padding-right: 2.25rem; text-overflow: ellipsis; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.dropdown-item { cursor: pointer; }
.notice-card:has(.plans) { max-width: 980px; }
.notice-card .plans { text-align: left; margin-top: 24px; }
.plan-card:not(.plan-light) .plan-lead, .plan-card:not(.plan-light) .plan-list li { color: #d5dbee; }
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main, body > .main, body > .page { flex: 1 0 auto; }

/* Статус ИИ-обработки урока */
.ai-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #f1f5f9; color: #475569; max-width: 100%; }
.ai-status i { flex: 0 0 auto; }
.ai-status.is-ok { background: #ecfdf5; color: #047857; }
.ai-status.is-wait { background: #eef2ff; color: #4338ca; }
.ai-status.is-err { background: #fef2f2; color: #b91c1c; }
.form-shell > .ai-status { margin: 0 0 16px; }

/* ---------- Отзывы (звёзды) ---------- */
.stars { display: inline-flex; gap: 2px; color: #f59e0b; font-size: 1rem; line-height: 1; }
.stars.sm { font-size: .82rem; }
.course-rating { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: .9rem; color: var(--a-muted, #64748b); }
.course-rating b { color: var(--a-ink, #0f172a); }
.course-rating.is-new { color: #4f46e5; font-weight: 600; font-size: .82rem; }
.hero-rating { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; color: #e2e8f0; text-decoration: none; font-size: .95rem; }
.hero-rating b { color: #fff; }
.hero-rating:hover span { text-decoration: underline; }
.review-head-score { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.landing-review .stars { margin-bottom: 8px; }
.landing-review figcaption { margin-top: 10px; font-size: .85rem; color: var(--a-muted, #64748b); }

.review-card { margin-top: 16px; }
.review-summary { display: flex; align-items: center; gap: 12px; }
.review-summary small { display: block; color: var(--a-muted, #64748b); font-size: .82rem; margin-top: 2px; }
.review-score { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--a-ink, #0f172a); }
.review-form { margin-top: 16px; display: grid; gap: 10px; }
.review-form-title { font-weight: 700; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.7rem; color: #cbd5e1; cursor: pointer; transition: color .12s, transform .12s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid #6366f1; border-radius: 4px; }
.review-hint { margin: 12px 0 0; font-size: .85rem; color: var(--a-muted, #64748b); }
.review-mini { list-style: none; padding: 14px 0 0; margin: 16px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--a-border, #e2e8f0); }
.review-mini p { margin: 4px 0 2px; font-size: .88rem; }
.review-mini small { color: var(--a-muted, #64748b); }

/* ---------- Обсуждение урока ---------- */
.lesson-comments { margin-top: 16px; padding: 22px; }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lc-head h2 { font-size: 1.15rem; font-weight: 800; margin: 0; display: flex; gap: 8px; align-items: center; }
.lc-count { color: var(--a-muted, #64748b); font-size: .85rem; }
.lc-form { display: grid; gap: 8px; margin-bottom: 18px; }
.lc-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-hint, .lc-note, .lc-loading, .lc-empty { color: var(--a-muted, #64748b); font-size: .85rem; }
.lc-error { color: #b91c1c; font-size: .88rem; background: #fef2f2; border-radius: 10px; padding: 8px 12px; }
.lc-list, .lc-replies { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.lc-replies { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--a-border, #e2e8f0); }
.lc-item { display: flex; gap: 12px; }
.lc-avatar { flex: 0 0 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #4338ca; background: #eef2ff; }
.lc-item.is-author > .lc-avatar { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lc-body { flex: 1; min-width: 0; }
.lc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.lc-meta time { color: var(--a-muted, #64748b); font-size: .8rem; }
.lc-text { margin-top: 4px; overflow-wrap: anywhere; }
.lc-actions { display: flex; gap: 14px; margin-top: 6px; }
.lc-actions button { background: none; border: 0; padding: 0; color: var(--a-muted, #64748b); font-size: .8rem; font-weight: 600; cursor: pointer; }
.lc-actions button:hover { color: #4f46e5; }
.lc-reported { font-size: .8rem; color: var(--a-muted, #64748b); }
.lc-item.is-hidden > .lc-body > .lc-text { opacity: .55; }
.lc-hidden-note { font-size: .8rem; color: #b45309; margin-top: 4px; }
.lc-reply-form { margin: 10px 0 0; }
@media (max-width: 575px) { .lesson-comments { padding: 16px; } }

/* ---------- Чат поддержки ---------- */
.sp { position: fixed; right: 20px; bottom: 20px; z-index: 1080; font-size: .95rem; }
.sp-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; font-size: 1.45rem; cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 12px 30px rgba(79,70,229,.35); position: relative;
  display: grid; place-items: center; transition: transform .15s; }
.sp-fab:hover { transform: translateY(-2px) scale(1.04); }
.sp-fab .sp-ico-close, .sp.is-open .sp-fab .sp-ico-open { display: none; }
.sp.is-open .sp-fab .sp-ico-close { display: inline; font-size: 1.15rem; }
.sp-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #ef4444; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.sp-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,.25); border: 1px solid var(--a-border, #e2e8f0); }
.sp-panel[hidden] { display: none; }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; color: #fff; background: var(--a-ink, #0f172a); }
.sp-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.sp-title { flex: 1; min-width: 0; line-height: 1.2; }
.sp-title small { display: block; color: #a5b4fc; font-size: .78rem; margin-top: 2px; }
.sp-icon { background: none; border: 0; color: #cbd5e1; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.sp-icon:hover { background: rgba(255,255,255,.08); color: #fff; }
.sp-body { flex: 1; overflow-y: auto; padding: 16px; background: #f8fafc; }
.sp-hello p { margin: 0 0 12px; }
.sp-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-quick button { border: 1px solid #c7d2fe; background: #fff; color: #4338ca; border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; }
.sp-quick button:hover { background: #eef2ff; }
.sp-msgs { display: flex; flex-direction: column; gap: 10px; }
.sp-msg { max-width: 85%; padding: 9px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--a-border, #e2e8f0); align-self: flex-start; }
.sp-msg.is-user { align-self: flex-end; background: #4f46e5; color: #fff; border-color: #4f46e5; border-bottom-right-radius: 6px; }
.sp-msg.is-ai, .sp-msg.is-staff { border-bottom-left-radius: 6px; }
.sp-msg.is-staff { border-color: #a7f3d0; background: #ecfdf5; }
.sp-msg.is-system { align-self: center; max-width: 95%; background: none; border: 0; text-align: center; color: #64748b; font-size: .8rem; padding: 2px 8px; }
.sp-who { font-size: .72rem; font-weight: 700; color: #6366f1; margin-bottom: 2px; }
.sp-msg.is-staff .sp-who { color: #047857; }
.sp-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-msg time { display: block; text-align: right; font-size: .68rem; opacity: .6; margin-top: 2px; }
.sp-msg.is-system time { display: none; }
.sp-typing { display: flex; gap: 4px; padding: 12px 14px; }
.sp-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; animation: spDot 1s infinite ease-in-out; }
.sp-typing span:nth-child(2) { animation-delay: .15s; } .sp-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes spDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.sp-email { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--a-border, #e2e8f0); background: #fffbeb; }
.sp-email[hidden] { display: none; }
.sp-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--a-border, #e2e8f0); }
.sp-form textarea { flex: 1; resize: none; border: 1px solid var(--a-border, #e2e8f0); border-radius: 14px; padding: 9px 12px; max-height: 120px; font: inherit; outline: none; }
.sp-form textarea:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.sp-send { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 12px; color: #fff; background: #4f46e5; cursor: pointer; }
.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 14px 10px; font-size: .8rem; color: #64748b; }
.sp-foot [hidden] { display: none; }
.sp-error { color: #b91c1c; text-align: right; }
@media (max-width: 575px) {
  .sp { right: 12px; bottom: 12px; }
  .sp-fab { width: 52px; height: 52px; }
  .sp.is-open { inset: 0; }
  .sp.is-open .sp-fab { display: none; }
  .sp.is-open .sp-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
}
@media print { .sp { display: none; } }

/* Входящие поддержки */
.sp-inbox { display: grid; gap: 10px; }
.sp-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; }
.sp-row:hover { border-color: #a5b4fc; }
.sp-row .who { font-weight: 700; }
.sp-row .last { color: #64748b; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-row .main { flex: 1; min-width: 0; }
.sp-row time { color: #64748b; font-size: .8rem; white-space: nowrap; }
.sp-conv { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #f8fafc; border-radius: 18px; }

/* body — flex-колонка: без этого main растягивается под ширину горизонтальных лент */
body > main, body > .page { width: 100%; min-width: 0; }
.cat-strip, .chips-scroll { max-width: 100%; }
@media (max-width: 575px) { .sp-row { flex-wrap: wrap; } .sp-row .main { flex: 1 0 100%; } }
.sp-msg.is-user .sp-who { color: #c7d2fe; }

/* Плеер: водяной знак и полный экран */
.learn-player video { width: 100%; height: 100%; display: block; background: #000; }
.player-mark { position: absolute; z-index: 3; pointer-events: none; user-select: none; color: rgba(255,255,255,.35);
  font-size: .8rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.5); white-space: nowrap; transition: left 1.5s ease, top 1.5s ease; }
.player-fs { position: absolute; z-index: 4; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  color: #fff; font-size: 1.1rem; background: rgba(15,23,42,.6); opacity: .85; transition: opacity .2s, background .2s; cursor: pointer; }
.player-fs:hover, .player-fs:focus-visible { opacity: 1; background: rgba(79,70,229,.9); }
.learn-player:fullscreen { aspect-ratio: auto; border-radius: 0; }
.learn-player:fullscreen .player-mark { font-size: 1.1rem; }
.player-error { position: absolute; inset: auto 12px 12px 12px; z-index: 5; padding: 10px 14px; border-radius: 12px; background: rgba(185,28,28,.9); color: #fff; font-size: .9rem; }

/* ---------- Своя панель плеера ---------- */
.learn-player { user-select: none; }
.pc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 22px 12px 8px; color: #fff;
  background: linear-gradient(to top, rgba(2,6,23,.85), rgba(2,6,23,0)); opacity: 0; transition: opacity .25s; }
.learn-player.pc-show .pc, .learn-player:not(.is-playing) .pc { opacity: 1; }
.learn-player.is-playing:not(.pc-show) { cursor: none; }
.pc-progress { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; }
.pc-progress::before, .pc-buf, .pc-fill { content: ""; position: absolute; left: 0; height: 4px; border-radius: 4px; pointer-events: none; transition: height .15s; }
.pc-progress::before { right: 0; background: rgba(255,255,255,.25); }
.pc-buf { background: rgba(255,255,255,.4); width: 0; }
.pc-fill { background: #818cf8; width: 0; }
.pc-progress:hover::before, .pc-progress:hover .pc-buf, .pc-progress:hover .pc-fill { height: 6px; }
.pc-progress input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pc-row { display: flex; align-items: center; gap: 2px; }
.pc-btn { background: none; border: 0; color: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.25rem; cursor: pointer; flex: 0 0 auto; }
.pc-btn:hover, .pc-btn:focus-visible { background: rgba(255,255,255,.14); }
.pc-btn.pc-txt { width: auto; padding: 0 10px; font-size: .9rem; font-weight: 700; }
.pc-vol { width: 80px; accent-color: #818cf8; margin: 0 6px; }
.pc-time { font-size: .85rem; font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; opacity: .9; }
.pc-spacer { flex: 1; }
.pc-menu-wrap { position: relative; }
.pc-menu-wrap[hidden] { display: none; }
.pc-menu { position: absolute; right: 0; bottom: 44px; min-width: 96px; padding: 6px; border-radius: 12px; background: rgba(15,23,42,.95);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); display: grid; }
.pc-menu[hidden] { display: none; }
.pc-menu button { background: none; border: 0; color: #e2e8f0; text-align: left; padding: 7px 12px; border-radius: 8px; font-size: .88rem; cursor: pointer; }
.pc-menu button:hover { background: rgba(255,255,255,.1); }
.pc-menu button.on { color: #a5b4fc; font-weight: 700; }
.pc-big { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
  border: 0; color: #fff; font-size: 2.2rem; display: grid; place-items: center; cursor: pointer;
  background: rgba(79,70,229,.85); box-shadow: 0 10px 30px rgba(79,70,229,.45); transition: transform .15s, opacity .2s; }
.pc-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.learn-player.is-playing .pc-big { opacity: 0; pointer-events: none; }
.learn-player.is-fs .player-mark { font-size: 1.1rem; }
@media (max-width: 575px) {
  .pc-hide-sm { display: none; }
  .pc-btn { width: 34px; height: 34px; font-size: 1.1rem; }
  .pc-time { font-size: .78rem; }
  .pc-big { width: 60px; height: 60px; font-size: 1.8rem; }
}

/* ---------- Профиль: имя в шапке и напоминание ---------- */
.avatar-btn-wrap { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--a-ink, #0f172a); font-weight: 600; cursor: pointer; }
.avatar-btn-wrap .avatar-btn { position: relative; display: grid; place-items: center; flex: 0 0 38px; font-size: .9rem; letter-spacing: .02em; }
.avatar-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-dot { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: #f59e0b; border: 2px solid #fff; }
.profile-nudge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; border-radius: 16px;
  background: linear-gradient(90deg, #eef2ff, #faf5ff); border: 1px solid #c7d2fe; }
.profile-nudge[hidden] { display: none; }
.profile-nudge > i { font-size: 1.4rem; color: #4f46e5; }
.profile-nudge > div { flex: 1; min-width: 200px; }
.profile-nudge-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: #64748b; cursor: pointer; }
body.has-hero .nav-glass:not(.scrolled):not(.open) .avatar-btn-wrap { color: #e2e8ff; }
.avatar-btn-wrap .avatar-btn { box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 4px 12px rgba(79,70,229,.35); }

/* ---------- Закрытые модули ---------- */
.module-lock { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #fef3c7; color: #92400e; font-size: .74rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.module-visibility { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 10px 14px; margin-bottom: 14px;
  border-radius: 12px; background: #f8fafc; border: 1px solid var(--a-border, #e2e8f0); }
.module-visibility .form-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.module-visibility .form-check-label { font-weight: 600; margin-left: 4px; }
.mv-date { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; }
.mv-date.is-off { opacity: .45; }
.mv-date input { width: auto; }
.mv-hint { flex: 1 1 260px; font-size: .82rem; color: var(--a-muted, #64748b); }

/* ---------- Панель статистики ---------- */
.an-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.an-period { padding: 18px; }
.an-period-name { font-weight: 800; margin-bottom: 10px; }
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.an-grid b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.an-grid span { font-size: .78rem; color: var(--a-muted, #64748b); }
.an-card { padding: 18px; margin-bottom: 16px; }
.an-card h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; }
.an-chart { position: relative; height: 300px; }
.an-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.an-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.an-table th { text-align: left; font-size: .78rem; color: var(--a-muted, #64748b); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--a-border, #e2e8f0); }
.an-table td { padding: 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.an-path { max-width: 360px; overflow-wrap: anywhere; }
.an-funnel { display: grid; gap: 10px; }
.an-step { position: relative; background: #f1f5f9; border-radius: 12px; overflow: hidden; min-height: 44px; }
.an-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c7d2fe, #a5b4fc); }
.an-step-text { position: relative; padding: 11px 14px; }
.an-step-text span { color: #4338ca; font-weight: 700; margin-left: 6px; }
.an-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px; margin-bottom: 16px; }
.an-filter input { flex: 1 1 260px; }
.an-list { padding-left: 18px; margin: 0 0 8px; }
.an-timeline { list-style: none; padding: 0; margin: 0; max-height: 640px; overflow-y: auto; display: grid; gap: 6px; }
.an-timeline li { display: grid; grid-template-columns: 22px 120px 1fr; gap: 8px; font-size: .88rem; align-items: baseline; }
.an-timeline li.is-muted { color: var(--a-muted, #64748b); }
.an-timeline time { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--a-muted, #64748b); }
.an-timeline span { overflow-wrap: anywhere; }

/* ---------- SEO-страницы ---------- */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.seo-card { padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.seo-card:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.seo-card h2, .seo-card h3 { font-size: 1.1rem; font-weight: 800; margin: 4px 0 0; }
.seo-card p { color: var(--a-muted, #64748b); margin: 0; font-size: .92rem; }
.seo-card .pill { align-self: flex-start; }
.seo-card .go { margin-top: auto; color: #4f46e5; font-weight: 700; font-size: .9rem; }
.seo-article { max-width: 820px; margin: 0 auto; }
.seo-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 10px 0 12px; }
.seo-intro { font-size: 1.12rem; color: #334155; }
.seo-meta { color: var(--a-muted, #64748b); font-size: .85rem; }
.seo-body { font-size: 1.04rem; line-height: 1.7; }
.seo-body h2 { font-size: 1.45rem; font-weight: 800; margin: 32px 0 12px; }
.seo-body h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; }
.seo-body ul, .seo-body ol { padding-left: 22px; }
.seo-body li { margin: 4px 0; }
.seo-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; margin: 28px 0;
  background: linear-gradient(90deg, #eef2ff, #faf5ff); border-color: #c7d2fe; }
.seo-cta p { color: #475569; }
.seo-faq h2 { font-size: 1.45rem; font-weight: 800; margin: 32px 0 12px; }
.seo-faq details { border: 1px solid var(--a-border, #e2e8f0); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; background: #fff; }
.seo-faq summary { font-weight: 700; cursor: pointer; }
.seo-faq p { margin: 8px 0 0; color: #334155; }
.seo-other { margin-top: 40px; }
.seo-other h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
