/* site.css — витрина, кабинет, курс, урок, тест. Редакция «Apple»:
   центрированные герои, карточки с мягкими тенями, списки в духе iOS. */

::selection { background: #FFE18F; }

/* ── Герой: по центру, много воздуха ── */
.hero { padding: 84px 0 72px; text-align: center;
  background: radial-gradient(58% 90% at 50% 0%, #FFF7DE 0%, rgba(255,247,222,0) 70%); }
.hero .wrap { display: block; max-width: 780px; }
.hero-app-icon { width: 96px; height: 96px; border-radius: 26px; background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; }
.hero-app-icon img { width: 62px; }
.hero-lead { font-size: 19px; line-height: 1.5; color: var(--ink-68); margin: 22px auto 32px;
  max-width: 560px; letter-spacing: -.01em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ── Полоса цифр: одна карточка с разделителями ── */
.stats-band { padding: 8px 0 24px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm); }
.stat { text-align: center; padding: 30px 14px 26px; }
.stat:not(:first-child) { border-left: 1px solid var(--hairline); }
.stat .n { font-size: 40px; font-weight: 700; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.stat .t { font-size: 13px; color: var(--ink-56); margin-top: 9px; line-height: 1.4; }
@media (max-width: 760px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 12px 20px; }
  .stat:not(:first-child) { border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--hairline); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ── Почему бесплатно ── */
.why-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.why-text { font-size: 16px; line-height: 1.65; color: var(--ink-68); margin-top: 16px; max-width: 540px; }
.why-text a { color: var(--ink); font-weight: 600; }
.why-card { text-align: center; padding: 30px; display: flex; flex-direction: column; gap: 14px;
  align-items: center; background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--ring), var(--shadow-sm); }
.why-card img { width: 110px; animation: cheer 4s ease-in-out infinite; }
.why-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-80); max-width: 280px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-wrap { max-width: 760px; }
.faq-list { margin-top: 28px; border-bottom: 1px solid var(--hairline); }
.faq { border-top: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 19px 2px; font-weight: 600; font-size: 16.5px;
  letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--ink-50);
  transition: transform .25s var(--ease); flex-shrink: 0; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 40px 20px 2px; color: var(--ink-68); font-size: 15px; line-height: 1.6; }

/* ── Финальный призыв ── */
.cta-band { background: linear-gradient(160deg, #FFD34D, #FFB800); border-radius: 28px;
  padding: 60px 32px; text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { max-width: 560px; margin: 0 auto; }
.cta-band p { margin: 14px 0 26px; font-size: 16px; color: rgba(29,29,31,.72); }
.cta-mascot { width: 86px; margin: 0 auto 18px; animation: cheer 3.4s ease-in-out infinite; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #000000; }

/* ── Секции ── */
.section { padding: 72px 0; }
.section-sand { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; gap: 16px; justify-content: space-between;
  margin-bottom: 34px; flex-wrap: wrap; }
.section-head .label { display: block; margin-bottom: 8px; }
.section-more { font-size: 14px; font-weight: 500; color: var(--ink-68); text-decoration: none; white-space: nowrap; }
.section-more:hover { color: var(--ink); }

/* ── Карточки курсов ── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: var(--card); border-radius: var(--r-lg); padding: 14px 14px 22px;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.course-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md); }
.course-card h3, .course-card p { padding: 0 10px; }
.course-card .course-meta, .course-card .course-progress { padding: 0 10px; }
.course-cover { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/8; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; }
.course-cover img.photo { width: 100%; height: 100%; object-fit: cover; }
.course-cover img.placeholder { width: 60px; opacity: .85; }
.course-card h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.course-card p { font-size: 14px; color: var(--ink-56); line-height: 1.5; }
.course-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.course-meta .mono { font-size: 13px; }
.course-progress { display: flex; align-items: center; gap: 10px; }
.course-progress .mono { font-size: 13px; white-space: nowrap; }
.course-progress .progress-track { flex: 1; }

/* ── Как устроено ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md); }
.step-num { display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--banana);
  font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.015em; }
.step-card p { font-size: 14px; color: var(--ink-56); line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── Лента материалов ── */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.feed-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--card); border-radius: var(--r-lg); padding: 14px 14px 22px;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feed-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md); }
.feed-card time, .feed-card h3, .feed-card p { padding: 0 10px; }
.feed-card time { font-size: 12.5px; color: var(--ink-50); font-weight: 500; }
.feed-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.feed-card p { font-size: 14px; color: var(--ink-56); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feed-cover { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/8; background: var(--bg-alt); }
.feed-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Страница курса ── */
.course-hero { padding: 56px 0 52px; }
.course-hero h1 { margin-top: 16px; }
.course-hero .subtitle { font-size: 18px; color: var(--ink-68); margin-top: 16px; max-width: 640px;
  line-height: 1.55; letter-spacing: -.01em; }
.course-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.author-card { display: flex; gap: 16px; align-items: center; margin-top: 24px;
  max-width: 560px; padding: 20px 24px; }
.author-card .ac-info { display: flex; flex-direction: column; gap: 4px; }
.author-card b { font-size: 16px; letter-spacing: -.01em; }
.ac-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.ac-links a { font-size: 13px; font-weight: 600; color: var(--ink-68); text-decoration: none; }
.ac-links a:hover { color: var(--ink); }
.lock-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; max-width: 620px; padding: 20px 24px;
  background: var(--card-hi); box-shadow: inset 0 0 0 1.5px var(--ring), var(--shadow-sm); }
.lock-banner svg { width: 30px; height: 30px; color: var(--banana-press); flex-shrink: 0; }
.lock-banner .lb-text { flex: 1; min-width: 220px; font-size: 14.5px; line-height: 1.5; color: var(--ink-80); }
.progress-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 26px; max-width: 560px; padding: 20px 24px; }
.progress-card .pc-info { flex: 1; min-width: 220px; }
.progress-card .pc-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.course-desc { max-width: 700px; font-size: 15.5px; line-height: 1.65; color: var(--ink-80); }
.course-desc p { margin-bottom: 12px; }

.stage-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.stage-card { padding: 22px 22px 10px; }
.stage-card.locked { opacity: .55; }
.stage-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.stage-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--banana);
  font-weight: 700; font-size: 13px; color: var(--ink); }
.stage-card.locked .stage-num { background: rgba(0,0,0,.08); color: var(--ink-56); }
.stage-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.stage-lock { margin-left: auto; font-size: 12.5px; color: var(--ink-50); display: flex; gap: 6px; align-items: center; }
.stage-desc { font-size: 14px; color: var(--ink-56); margin: 4px 0 12px 44px; }
.lesson-rows { display: flex; flex-direction: column; margin-left: 44px; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 2px;
  border-top: 1px solid var(--hairline); text-decoration: none; position: relative;
  transition: background .2s var(--ease); }
.lesson-row:hover { background: rgba(0,0,0,.02); }
.lesson-row.disabled { pointer-events: none; }
.lesson-row .num { font-size: 13px; color: var(--ink-50); width: 26px; font-weight: 500;
  font-variant-numeric: tabular-nums; }
.lesson-row .title { font-weight: 500; font-size: 15px; flex: 1; letter-spacing: -.01em; }
.lesson-row .dur { font-size: 12.5px; color: var(--ink-50); }
.lesson-row::after { content: '›'; font-size: 18px; color: var(--ink-50); font-weight: 400;
  margin-left: 2px; }
.lesson-row.disabled::after { content: ''; }
.lesson-done { width: 22px; height: 22px; border-radius: 50%; background: var(--banana);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.lesson-todo { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--field); flex-shrink: 0; }
@media (max-width: 700px) {
  .stage-desc, .lesson-rows { margin-left: 0; }
}

/* ── Страница урока ── */
.lesson-page { padding: 48px 0 32px; max-width: 860px; }
.crumbs { font-size: 13.5px; color: var(--ink-56); margin-bottom: 26px; }
.crumbs a { color: var(--ink-68); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.lesson-head { padding-bottom: 26px; border-bottom: 1px solid var(--hairline); margin-bottom: 30px; }
.lesson-pos { margin-top: 18px; max-width: 280px; height: 4px; }
.lesson-head h1 { font-size: 42px; margin: 16px 0 18px; }
@media (max-width: 760px) { .lesson-head h1 { font-size: 30px; } }
.lesson-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.video-box { margin: 28px 0; border-radius: var(--r-lg); overflow: hidden; background: #000;
  aspect-ratio: 16/9; box-shadow: var(--shadow-md); }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; display: block; }
.lesson-body { font-size: 16px; line-height: 1.7; color: var(--ink-80); max-width: 700px;
  letter-spacing: -.008em; }
.lesson-body h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin: 30px 0 10px; color: var(--ink); }
.lesson-body p { margin-bottom: 14px; }
.lesson-body ul { margin: 0 0 14px 20px; }
.lesson-body li { margin-bottom: 7px; }
.lesson-nav { display: flex; gap: 12px; align-items: center; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.lesson-nav .spacer { flex: 1; }
.lesson-cheer { display: none; align-items: center; gap: 16px; margin-top: 26px;
  background: var(--card-hi); border-radius: var(--r-lg); padding: 18px 22px;
  box-shadow: inset 0 0 0 1px var(--ring); }
.lesson-cheer.show { display: flex; }
.lesson-cheer img { width: 76px; animation: cheer 3s ease-in-out infinite; }
.lesson-cheer p { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
@keyframes cheer { 0%,100% { transform: translateY(0) rotate(0); } 22% { transform: translateY(-9px) rotate(-3deg); }
  44% { transform: translateY(0); } 62% { transform: translateY(-5px) rotate(2deg); } 80% { transform: translateY(0); } }

/* ── Кабинет ── */
.lk-head { padding: 52px 0 8px; }
.lk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lk-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.verify-banner { margin-top: 22px; background: var(--card-hi);
  box-shadow: inset 0 0 0 1.5px var(--ring), var(--shadow-sm); padding: 20px 24px; }
.verify-banner .vb-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-80); margin-bottom: 14px; }
.vb-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vb-form .field { max-width: 170px; letter-spacing: 3px; font-weight: 700; }
.lk-head p { color: var(--ink-68); margin-top: 12px; font-size: 16px; }
.continue-card { display: flex; align-items: center; gap: 20px; background: var(--card-hi);
  box-shadow: inset 0 0 0 1px var(--ring), var(--shadow-sm); flex-wrap: wrap; }
.continue-card .info { flex: 1; min-width: 220px; }
.continue-card .label { margin-bottom: 8px; }
.continue-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.02em; }
.continue-card p { font-size: 14px; color: var(--ink-56); }

/* ── Материалы ── */
.tabs { display: flex; gap: 8px; margin: 8px 0 30px; background: var(--bg-alt);
  border-radius: 980px; padding: 4px; width: fit-content; }
.tab { border: 0; background: transparent; border-radius: 980px; padding: 9px 20px;
  font-weight: 600; font-size: 14px; color: var(--ink-56);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.tab.active { background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-sm); }
.post-feed { display: flex; flex-direction: column; gap: 22px; max-width: 700px; }
.post-card time { font-size: 12.5px; color: var(--ink-50); font-weight: 500; }
.post-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 10px; }
.post-body { font-size: 15px; line-height: 1.65; color: var(--ink-80); }
.post-body p { margin-bottom: 10px; }
.post-body ul { margin: 0 0 10px 20px; }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.post-images img { border-radius: var(--r-sm); width: 100%; }

/* ── Статья ── */
.article-page { padding: 52px 0; max-width: 740px; }
.article-page time { font-size: 13px; color: var(--ink-50); font-weight: 500; display: block; margin: 14px 0 28px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.article-body { font-size: 16px; line-height: 1.7; color: var(--ink-80); letter-spacing: -.008em; }
.article-body h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 30px 0 10px; color: var(--ink); }
.article-body p { margin-bottom: 14px; }
.article-body ul { margin: 0 0 14px 20px; }

/* ── Вход/регистрация ── */
.auth-page { padding: 64px 0; display: flex; justify-content: center; }
.auth-card { width: 400px; max-width: 100%; padding: 32px; }
.auth-card h1 { font-size: 27px; margin-bottom: 8px; }
.auth-card .sub { font-size: 14px; color: var(--ink-56); margin-bottom: 24px; line-height: 1.5; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-switch { margin-top: 18px; font-size: 13.5px; color: var(--ink-56); }
.auth-switch button { border: 0; background: none; font-weight: 600; color: var(--ink); text-decoration: underline; font-size: 13.5px; }

/* ── Картинки в текстах ── */
.md-img { margin: 30px 0; }
.md-img img { border-radius: var(--r-lg); width: 100%; box-shadow: inset 0 0 0 1px var(--hairline); }
.md-img figcaption { font-size: 13px; color: var(--ink-50); margin-top: 10px; text-align: center; }

/* ── Нумерованные шаги ── */
.step-list { list-style: none; margin: 18px 0 20px; counter-reset: step; }
.step-list li { position: relative; padding: 0 0 18px 52px; counter-increment: step; }
.step-list li::before { content: counter(step);
  position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--banana); color: var(--ink); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.step-list li::after { content: ''; position: absolute; left: 15.5px; top: 34px; bottom: 2px;
  width: 1.5px; background: var(--hairline); }
.step-list li:last-child { padding-bottom: 0; }
.step-list li:last-child::after { display: none; }

/* ── Фирменная кнопка-переход в тексте ── */
.md-cta-wrap { margin: 8px 0 22px; }
.md-cta { padding: 15px 30px; font-size: 15.5px; box-shadow: var(--shadow-sm); }

/* ── Задание с проверкой ── */
.task-card { margin-top: 40px; background: var(--card-hi); border-radius: var(--r-lg);
  padding: 26px; box-shadow: inset 0 0 0 1.5px var(--ring), var(--shadow-sm); }
.task-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.task-head .badge { display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--banana); font-size: 16px; }
.task-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; flex: 1; }
.task-text { font-size: 15px; line-height: 1.65; color: var(--ink-80); margin-bottom: 16px; }
.task-text p { margin-bottom: 10px; }
.task-card textarea.field { min-height: 110px; resize: vertical; line-height: 1.55; background: #FFFFFF; }
.task-actions { display: flex; gap: 14px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.task-hint { font-size: 12.5px; color: var(--ink-56); }

/* ── Появление при прокрутке ── */
.rv { opacity: 0; transform: translateY(16px);
  transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ── Блок теста на странице курса ── */
.quiz-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.quiz-card.ready { background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--ring), var(--shadow-sm); }
.quiz-card.locked { opacity: .55; }
.quiz-card .info { flex: 1; min-width: 240px; }
.quiz-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.quiz-card p { font-size: 14px; color: var(--ink-56); line-height: 1.5; }
.quiz-score { font-size: 13px; color: var(--ink-56); font-weight: 500; }

/* ── Страница теста ── */
.quiz-page { padding: 48px 0 32px; max-width: 720px; }
.quiz-q { margin-bottom: 20px; }
.quiz-q .q-num { font-size: 13px; font-weight: 600; color: var(--ink-50); margin-bottom: 8px; }
.quiz-q h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 14px; line-height: 1.35; }
.quiz-opt { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--field); margin-bottom: 10px; cursor: pointer;
  font-size: 15px; line-height: 1.45;
  transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.quiz-opt:hover { background: rgba(0,0,0,.025); }
.quiz-opt input { margin-top: 3px; accent-color: var(--banana-press); }
.quiz-opt.sel { box-shadow: inset 0 0 0 2px var(--banana-press); background: var(--card-hi); }
.quiz-opt.ok { box-shadow: inset 0 0 0 2px var(--ok); background: rgba(29,154,108,.06); cursor: default; }
.quiz-opt.err { box-shadow: inset 0 0 0 2px var(--error); background: rgba(229,72,77,.06); cursor: default; }
.quiz-explain { font-size: 13.5px; color: var(--ink-68); background: var(--bg-alt); border-radius: var(--r-sm);
  padding: 11px 14px; margin: 4px 0 6px; line-height: 1.5; }
.quiz-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.quiz-result { text-align: center; padding: 28px 20px 10px; }
.quiz-result .pct { font-weight: 700; font-size: 68px; letter-spacing: -.04em; line-height: 1; }
.quiz-result .pct.fail { color: var(--error); }
.quiz-result .sub { margin: 14px auto 0; max-width: 460px; font-size: 15px; color: var(--ink-68); line-height: 1.55; }
.quiz-result img { width: 100px; margin: 0 auto 16px; animation: cheer 3s ease-in-out infinite; }

/* ── Каталог: дорожка курсов ── */
.course-path { display: flex; flex-direction: column; align-items: stretch; max-width: 860px; margin: 0 auto; }
.path-card { position: relative; display: flex; gap: 26px; padding: 26px; align-items: flex-start; }
.path-num { position: absolute; top: -14px; left: 26px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--banana); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.path-cover { width: 280px; flex-shrink: 0; aspect-ratio: 16/9; }
.path-info { flex: 1; min-width: 0; }
.path-info h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 12px 0 8px; }
.path-info p { font-size: 14.5px; color: var(--ink-56); line-height: 1.55; margin-bottom: 12px; }
.path-link { width: 2px; height: 34px; margin: 0 auto;
  background: repeating-linear-gradient(to bottom, var(--banana-press) 0 6px, transparent 6px 12px); }
@media (max-width: 760px) {
  .path-card { flex-direction: column; gap: 16px; }
  .path-cover { width: 100%; }
}

/* ── Видео ── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.video-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: var(--card); border-radius: var(--r-lg); padding: 14px 14px 20px;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md); }
.video-card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; padding: 0 8px; }
.vc-cover { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; background: #1D1D1F; }
.vc-cover > img { width: 100%; height: 100%; object-fit: cover; }
.vc-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); }
.vc-placeholder img { width: 54px; opacity: .8; }
.vc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease); }
.vc-play svg { width: 24px; height: 24px; margin-left: 2px; }
.video-card:hover .vc-play { transform: translate(-50%, -50%) scale(1.1); }
.vc-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(29,29,31,.82);
  color: #FFFFFF; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 9px; }

/* ── Скелетоны загрузки ── */
.sk { background: linear-gradient(90deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.09) 50%, rgba(0,0,0,.05) 75%);
  background-size: 200% 100%; animation: skShine 1.4s ease infinite; border-radius: 8px; }
@keyframes skShine { to { background-position: -200% 0; } }
.sk-card { background: var(--card); border-radius: var(--r-lg); padding: 14px 14px 22px;
  box-shadow: inset 0 0 0 1px var(--hairline); display: flex; flex-direction: column; gap: 12px; }
.sk-cover { aspect-ratio: 16/8; border-radius: var(--r-md); }
.sk-line { height: 12px; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; } .sk-line.w90 { width: 90%; }
.card .sk-line { margin-bottom: 12px; }

/* ── Тост ── */
.site-toast { position: fixed; bottom: 26px; left: 50%; z-index: 100;
  transform: translateX(-50%) translateY(10px); max-width: calc(100vw - 40px);
  background: var(--ink); color: #FFFFFF; border-radius: 980px; padding: 12px 22px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease); }
.site-toast.show { opacity: 1; transform: translateX(-50%); }
.site-toast.err { background: var(--error); }

/* ── Ачивки ── */
.tab-badge { font-size: 11px; font-weight: 700; background: var(--banana); border-radius: 999px;
  padding: 2px 8px; margin-left: 6px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.ach { background: var(--card); border-radius: var(--r-lg); padding: 24px 20px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm); opacity: .5; filter: grayscale(1);
  transition: transform .3s var(--ease); }
.ach.on { opacity: 1; filter: none; }
.ach.on:hover { transform: translateY(-3px); }
.ach-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.ach.on .ach-icon { background: linear-gradient(160deg, #FFD34D, #FFB800); box-shadow: var(--shadow-sm); }
.ach-icon svg { width: 34px; height: 34px; stroke: var(--ink); fill: none; }
.ach-title { font-weight: 700; font-size: 15px; letter-spacing: -.015em; }
.ach-desc { font-size: 12.5px; color: var(--ink-56); margin-top: 5px; line-height: 1.4; }

/* ── Профиль ── */
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; }
.prof-h { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.prof-sub { font-size: 13.5px; color: var(--ink-56); margin-top: 6px; line-height: 1.5; }
@media (max-width: 760px) { .prof-grid { grid-template-columns: 1fr; } }

/* ── AI-учитель ── */
.tf-ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(160deg, #FFD34D, #FFB800);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--ink); flex-shrink: 0; }
.tf-ava.big { width: 44px; height: 44px; font-size: 19px; }
.task-feedback { margin-top: 18px; background: #FFFFFF; border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--hairline); }
.tf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; font-size: 14px; }
.task-feedback p { font-size: 14px; line-height: 1.55; color: var(--ink-80); }
.chip-off { background: rgba(229,72,77,.12); color: var(--error); }

/* плавающая кнопка учителя (правый нижний угол) */
.fab-teacher { position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease); animation: fabBreath 3.2s ease-in-out infinite; }
.fab-teacher:hover { transform: scale(1.08); }
.fab-teacher img { width: 38px; pointer-events: none; }
@keyframes fabBreath { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fab-ping { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--banana); animation: fabPing 2.4s ease-in-out infinite; }
@keyframes fabPing { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }

.teacher-panel { position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: 390px; max-width: calc(100vw - 32px); max-height: min(600px, calc(100vh - 48px));
  display: flex; flex-direction: column;
  background: #FFFFFF; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .22s var(--ease), transform .22s var(--ease); }
.teacher-panel.open { opacity: 1; transform: none; }
.tp-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px;
  border-bottom: 1px solid var(--hairline); }
.tp-head b { font-size: 15px; letter-spacing: -.01em; }
.tp-head p { font-size: 12px; color: var(--ink-56); margin-top: 2px; }
.tp-head > div { flex: 1; min-width: 0; }
.tp-close { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-50);
  cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.tp-close:hover { background: var(--bg-alt); color: var(--ink); }
.tp-tool { border: 0; background: none; font-size: 17px; line-height: 1; color: var(--ink-50);
  cursor: pointer; padding: 7px 9px; border-radius: 8px; }
.tp-tool:hover { background: var(--bg-alt); color: var(--ink); }
.chat-sessions { display: flex; flex-direction: column; gap: 8px; }
.cs-title { font-size: 13px; font-weight: 600; color: var(--ink-56); margin: 4px 2px 6px; }
.cs-item { border: 0; text-align: left; background: var(--bg-alt); border-radius: var(--r-sm);
  padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  transition: background .15s var(--ease); }
.cs-item:hover { background: #ECECEE; }
.cs-preview { font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cs-meta { font-size: 11.5px; color: var(--ink-50); }
.teacher-panel .chat-log { flex: 1; min-height: 220px; padding: 14px 14px 6px; }
.teacher-panel .chat-input { padding: 10px 14px 14px; margin-top: 0; }
.teacher-panel .chat-input .btn { padding: 12px 18px; font-size: 17px; }
@media (max-width: 480px) { .teacher-panel { right: 16px; bottom: 16px; } .fab-teacher { right: 16px; bottom: 16px; } }
.chat-log { min-height: 280px; max-height: 460px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.chat-msg { max-width: 85%; border-radius: 16px; padding: 11px 15px;
  font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
.chat-msg.user { align-self: flex-end; background: var(--banana); border-bottom-right-radius: 5px; }
.chat-msg.ai { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 5px; }
.chat-msg.typing { display: flex; gap: 5px; padding: 15px 16px; }
.chat-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.35);
  animation: chTp 1.2s ease-in-out infinite; }
.chat-msg.typing i:nth-child(2) { animation-delay: .18s; }
.chat-msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chTp { 0%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; }

/* ── Пустые состояния ── */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-56); font-size: 14px; }
.empty img { width: 90px; margin: 0 auto 16px; opacity: .85; }
