/* ============================================================
   ABS SCHOOL — терракота и крем, продуктовый лендинг
   ============================================================
   Оглавление:
   1. Переменные и сброс
   2. Типографика и кнопки
   3. Шапка (публичная)
   4. Hero
   5. Полоса статистики
   6. Выбор пути (ЕГЭ/ОГЭ) + шаги подготовки
   7. Что внутри платформы / что получает ученик
   8. Фильтры (общие)
   9. Курсы (карточки + сетки на странице курса)
   10. Преподаватели (главная страница)
   11. Преподаватели (страница курса)
   12. Результаты учеников (карусель отзывов)
   13. FAQ
   14. Финальный CTA + футер
   15. Анимации reveal
   16. Внутренние страницы (Bootstrap-переопределения)
   17. Платформа (личный кабинет ученика)
   18. Таймкоды видео
   19. Адаптив (медиа-запросы по разделам)
   ============================================================ */


/* ============================================================
   1. ПЕРЕМЕННЫЕ И СБРОС
   ============================================================ */
:root{
  --cream:   #FAF3ED;
  --cream-2: #F5EAE0;
  --white:   #FFFFFF;
  --ink:     #2B2320;
  --ink-soft:#7A6F68;
  --terra:   #C8442A;   /* основной терракотовый */
  --terra-dark:#A83620;
  --terra-deep:#7E2413; /* тёмные секции */
  --lime:    #CDE04A;   /* акцентная кнопка */
  --lime-dark:#B8CC33;
  --radius:  20px;
  --radius-sm:14px;
  --shadow:  0 8px 30px rgba(43,35,32,.08);
  --shadow-hover:0 14px 40px rgba(43,35,32,.14);

  /* Алиасы для внутренних страниц (Bootstrap) */
  --accent: #C8442A;
  --accent-dark:#A83620;
  --paper:  #FAF3ED;
  --paper-card:#FFFFFF;
  --muted:  #7A6F68;
  --line:   #EADFD5;
  --pen:    #C8442A;
  --bg:     #FAF3ED;
  --mint:   #E7F3D9;
  --lilac:  #F5EAE0;
  --peach:  #FBE3D6;
  --lemon:  #FDF3C8;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; height:100%; }
body{
  font-family:'Rubik', system-ui, sans-serif;
  font-size:16.5px; line-height:1.6; color:var(--ink); background:var(--cream);
  display:flex; flex-direction:column; min-height:100vh;
}


/* ============================================================
   2. ТИПОГРАФИКА И КНОПКИ
   ============================================================ */
h1,h2,h3{ line-height:1.18; letter-spacing:-.01em; font-weight:700; }
h2{ font-size:clamp(26px,3.6vw,38px); margin-bottom:14px; }
.section-title{ text-align:center; margin-bottom:40px; }
.section-sub{ color:var(--ink-soft); max-width:560px; margin:0 auto 44px; text-align:center; }
section{ padding:72px 0; }
.accent{ color:var(--terra); }

.btn{
  display:inline-block; text-decoration:none; font-weight:600; font-size:15px;
  padding:13px 26px; border-radius:14px; transition:transform .15s, box-shadow .2s, background .2s;
  cursor:pointer; border:none; font-family:inherit; text-align:center;
}
.btn:focus-visible{ outline:3px solid var(--terra); outline-offset:2px; }
.btn-terra{ background:var(--terra); color:#fff; box-shadow:0 8px 22px rgba(200,68,42,.3); }
.btn-terra:hover{ background:var(--terra-dark); transform:translateY(-2px); color:#fff; }
.btn-lime{ background:var(--lime); color:var(--ink); box-shadow:0 6px 18px rgba(205,224,74,.4); }
.btn-lime:hover{ background:var(--lime-dark); transform:translateY(-2px); color:var(--ink); }
.btn-outline{ background:transparent; color:var(--terra); border:2px solid var(--terra); }
.btn-outline:hover{ background:var(--terra); color:#fff; }
.btn-lg{ padding:16px 32px; font-size:16.5px; }


/* ============================================================
   3. ШАПКА (публичная)
   ============================================================ */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(200,68,42,.96); backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,.08);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:72px; gap:18px; }
.logo{ font-weight:800; font-size:19px; color:#fff; text-decoration:none; display:flex; align-items:center; gap:8px; }
.logo .logo-mark{ color:#fff; font-size:24px; }
.logo span.thin{ font-weight:500; color:rgba(255,255,255,.75); }
.logo:hover{ color:#fff; }
.nav-links{ display:flex; gap:22px; list-style:none; margin:0; }
.nav-links a{ color:rgba(255,255,255,.85); text-decoration:none; font-size:14.5px; font-weight:500; transition:color .2s; }
.nav-links a:hover{ color:#fff; }
.nav-links a.active-link{ color:#fff; font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.nav-actions{ display:flex; gap:10px; align-items:center; }
.nav-actions .btn{ padding:9px 18px; font-size:14px; }

.btn-outline-white{ background:transparent; color:#fff; border:2px solid rgba(255,255,255,.7); }
.btn-outline-white:hover{ background:#fff; color:var(--terra); border-color:#fff; }

.nav-dropdown{ position:relative; list-style:none; }
.nav-dropdown-btn{
  background:none; border:none; cursor:pointer; font-family:inherit;
  color:rgba(255,255,255,.85); font-size:14.5px; font-weight:500;
  padding:0; display:flex; align-items:center; gap:4px; transition:color .2s;
}
.nav-dropdown-btn:hover{ color:#fff; }
.nav-dropdown-btn::after{
  content:""; display:inline-block; width:0; height:0;
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid currentColor; margin-left:2px; opacity:.7;
}
.nav-dropdown .dropdown-menu{ border-radius:14px; }
.nav-dropdown .dropdown-menu .dropdown-item{
  color: var(--ink) !important;
}
.nav-dropdown .dropdown-menu .dropdown-item:hover{
  background-color: var(--cream);
  color: var(--terra) !important;
}
/* ============================================================
   4. HERO
   ============================================================ */
.hero{ padding:64px 0 40px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:44px; align-items:center; }
.hero-badge{
  display:inline-block; background:var(--cream-2); color:var(--ink-soft);
  border-radius:99px; padding:7px 18px; font-size:13.5px; font-weight:500; margin-bottom:18px;
}
.hero h1{ font-size:clamp(34px,4.8vw,54px); margin-bottom:18px; }
.hero p.lead-text{ font-size:17.5px; color:var(--ink-soft); max-width:470px; margin-bottom:28px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:20px; }

.hero-visual{ position:relative; justify-self:center; min-height:340px; width:100%; max-width:440px; }
.hero-blob{
  position:absolute; inset:0; margin:auto;
  width:88%; height:88%;
  background:var(--terra); opacity:.92;
  border-radius:48% 52% 55% 45% / 50% 46% 54% 50%;
}
.hero-photo{
  position:relative; z-index:2; display:block; margin:0 auto;
  width:100%; max-width:440px; aspect-ratio:4/5; object-fit:cover; object-position:top;
  border-radius:24px;
}
.hero-sticker{
  position:absolute; right:-6px; bottom:8%; z-index:3;
  background:var(--white); border-radius:var(--radius-sm); box-shadow:var(--shadow);
  padding:16px 20px; text-align:center; transform:rotate(3deg);
}
.hero-sticker .em{ font-size:22px; display:block; }
.hero-sticker b{ display:block; font-size:15px; }
.hero-sticker .price{ font-size:26px; font-weight:800; color:var(--terra); }


/* ============================================================
   5. ПОЛОСА СТАТИСТИКИ
   ============================================================ */
.stats-bar{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  padding:26px 10px; gap:10px; margin-top:36px;
}
.stat-item{ display:flex; align-items:center; gap:14px; padding:0 18px; }
.stat-icon{
  width:52px; height:52px; flex:none; border-radius:50%;
  background:var(--peach); display:grid; place-items:center;
}
.stat-item b{ font-size:21px; font-weight:800; display:block; line-height:1.2; }
.stat-item span{ font-size:13px; color:var(--ink-soft); line-height:1.35; display:block; }


/* ============================================================
   6. ВЫБОР ПУТИ (ЕГЭ/ОГЭ) + ШАГИ ПОДГОТОВКИ
   ============================================================ */
.paths-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:22px; }
.path-card{
  border-radius:var(--radius); padding:34px 30px; min-height:210px;
  display:flex; flex-direction:column; justify-content:space-between;
  text-decoration:none; transition:transform .2s, box-shadow .2s;
  position:relative; overflow:hidden;
}
.path-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-hover); }
.path-card.terra{ background:var(--terra); color:#fff; }
.path-card.cream{ background:var(--cream-2); color:var(--ink); }
.path-card.path-inactive{ opacity:.45; }
.path-card.path-inactive:hover{ opacity:.85; }
.path-card h3{ font-size:30px; margin-bottom:4px; }
.path-card .path-sub{ font-size:16px; opacity:.85; }
.path-tag{
  display:inline-flex; align-items:center; gap:8px; margin-top:22px;
  background:var(--lime); color:var(--ink); font-weight:600; font-size:14px;
  border-radius:99px; padding:8px 18px; width:fit-content;
}
.path-emoji{ position:absolute; right:24px; bottom:18px; font-size:64px; opacity:.9; }
.path-emoji svg{ display:block; }

.steps-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:26px; }
.step{ text-align:center; position:relative; padding:0 8px; }
.step-num{
  position:absolute; top:-8px; left:50%; transform:translate(-58px,0);
  font-weight:800; color:var(--terra); font-size:15px;
}
.step-icon{
  width:64px; height:64px; margin:0 auto 14px; border-radius:50%;
  background:var(--peach); display:grid; place-items:center;
}
.step h3{ font-size:16.5px; margin-bottom:6px; }
.step p{ font-size:14px; color:var(--ink-soft); }


/* ============================================================
   7. ЧТО ВНУТРИ ПЛАТФОРМЫ / ЧТО ПОЛУЧАЕТ УЧЕНИК
   ============================================================ */
.platform-wrap{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:30px;
}
.platform-shot{
  width:100%; border-radius:var(--radius-sm); display:block;
  border:1px solid var(--line);
}
.platform-placeholder{
  width:100%; aspect-ratio:16/9; border-radius:var(--radius-sm);
  background:var(--cream-2); display:grid; place-items:center;
  color:var(--ink-soft); font-size:15px; border:2px dashed var(--line);
}
.platform-features{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin-top:26px; }
.pf-item{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--cream); border-radius:var(--radius-sm); padding:14px 16px;
}
.pf-icon{
  width:40px; height:40px; flex:none; border-radius:12px;
  background:var(--peach); display:grid; place-items:center;
}
.pf-item b{ font-size:14.5px; display:block; }
.pf-item span{ font-size:13px; color:var(--ink-soft); }

.gets-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:18px; }
.get-card{
  background:var(--white); border-radius:var(--radius); padding:24px 22px;
  box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s;
}
.get-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.get-icon{
  width:48px; height:48px; border-radius:14px; margin-bottom:14px;
  background:var(--peach); display:grid; place-items:center;
}
.get-card h3{ font-size:16px; margin-bottom:6px; }
.get-card p{ font-size:13.5px; color:var(--ink-soft); }


/* ============================================================
   8. ФИЛЬТРЫ (общие: курсы + преподаватели)
   ============================================================ */
.course-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; justify-content:center; }
.filter-pill{
  display:inline-block; text-decoration:none; font-weight:600; font-size:14.5px;
  padding:9px 22px; border-radius:99px; color:var(--ink);
  background:var(--white); box-shadow:0 4px 12px rgba(43,35,32,.07);
  transition:transform .15s, background .2s, color .2s;
}
.filter-pill:hover{ transform:translateY(-2px); color:var(--terra); }
.filter-pill.active{ background:var(--terra); color:#fff; }
.filter-pill-sm{ font-size:13px; padding:7px 16px; }

/* Переключатель ЕГЭ/ОГЭ (сегмент-контрол, визуально отличается от filter-pill) */
.exam-toggle{
  display:inline-flex; background:var(--cream); border-radius:99px; padding:4px;
}
.exam-toggle-btn{
  text-decoration:none; font-size:13.5px; font-weight:700; color:var(--ink-soft);
  padding:8px 22px; border-radius:99px; transition:background .2s, color .2s;
}
.exam-toggle-btn.active{ background:var(--terra); color:#fff; }
.exam-toggle-btn:hover:not(.active){ color:var(--ink); }


/* ============================================================
   9. КУРСЫ (карточки на главной + сетки на странице курса)
   ============================================================ */
.courses-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:22px; }
.course{
  background:var(--white); border-radius:var(--radius); padding:30px 28px;
  box-shadow:var(--shadow); position:relative; display:flex; flex-direction:column;
  transition:transform .2s, box-shadow .2s;
}
.course:hover{ transform:translateY(-5px); box-shadow:var(--shadow-hover); }
.course .tag{
  position:absolute; top:-13px; left:26px; font-weight:600;
  font-size:13.5px; padding:6px 16px; border-radius:99px;
  background:var(--lime); color:var(--ink); box-shadow:0 4px 10px rgba(43,35,32,.1);
}
.course h3{ font-size:22px; margin:8px 0 10px; }
.course>p{ color:var(--ink-soft); font-size:15px; margin-bottom:16px; }
.course-meta{ display:flex; flex-direction:column; gap:6px; font-size:14px; margin-bottom:22px; }
.course-meta span::before{ content:"✓ "; color:var(--terra); font-weight:700; }
.course .btn{ margin-top:auto; align-self:flex-start; }

/* Сетки на странице конкретного курса: "Что будет"/"Кому подойдёт"/"Как проходит" */
.course-2col-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.course-how-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }

/* ---------- Страница курса (детальная разметка) ---------- */
.course-hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:start; }
.course-hero-card{
  background:#fff; border:1px solid var(--line); border-radius:20px;
  overflow:hidden; box-shadow:0 12px 30px rgba(60,40,20,.06);
}
.course-cta-row{ display:flex; gap:14px; flex-wrap:wrap; }

.course-icon-grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.course-icon-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.course-icon-card{
  border:1px solid var(--line); border-radius:14px; padding:18px; background:#fff;
  display:flex; gap:12px; align-items:flex-start;
}
.course-icon-card-icon{
  width:38px; height:38px; flex:none; border-radius:11px;
  background:var(--peach); display:flex; align-items:center; justify-content:center;
}
.course-icon-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.45; margin:0; }

.course-program{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.course-program-item{ border-bottom:1px solid var(--line); }
.course-program-item:last-child{ border-bottom:none; }
.course-program-header{
  width:100%; display:flex; align-items:center; gap:16px; padding:16px 22px;
  background:none; border:none; cursor:pointer; font-family:inherit; text-align:left;
}
.course-program-num{
  width:26px; height:26px; border-radius:8px; background:var(--peach); color:var(--terra);
  font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex:none;
}
.course-program-name{ font-weight:700; font-size:14.5px; flex:none; min-width:160px; }
.course-program-summary{ font-size:13.5px; color:var(--ink-soft); flex:1; }
.course-program-body{ padding:2px 22px 20px 64px; display:flex; flex-direction:column; gap:8px; }
.course-program-lesson{ display:flex; gap:8px; font-size:13px; color:var(--ink-soft); }

.course-steps-row{ display:flex; align-items:stretch; gap:14px; flex-wrap:wrap; }
.course-step-card{
  flex:1; min-width:180px; border:1px solid var(--line); border-radius:14px; padding:18px;
  background:#fff; display:flex; flex-direction:column; gap:10px;
}
.course-step-card p{ font-size:13px; color:var(--ink-soft); margin:0; }
.course-step-arrow{ flex:none; align-self:center; color:#c9b8a8; font-size:20px; }

.course-teacher-banner{
  border:1px solid var(--line); border-radius:20px; background:#fff;
  display:flex; overflow:hidden; margin-bottom:16px;
}
.course-teacher-banner-photo{ width:280px; flex:none; object-fit:cover; object-position:top; }
.course-teacher-banner-text{ padding:26px 28px; display:flex; flex-direction:column; justify-content:center; }

@media (max-width: 900px){
  .course-hero-grid{ grid-template-columns:1fr; }
  .course-icon-grid-4, .course-icon-grid-3{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 600px){
  .course-icon-grid-4, .course-icon-grid-3{ grid-template-columns:1fr; }
  .course-steps-row{ flex-direction:column; }
  .course-step-arrow{ display:none; }
  .course-teacher-banner{ flex-direction:column; }
  .course-teacher-banner-photo{ width:100%; height:220px; }
}
/* ---------- Тарифы на странице курса ---------- */
.course-pricing-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:760px; }
.course-pricing-card{
  border:1px solid var(--line); border-radius:16px; padding:26px; background:#fff; position:relative;
}
.course-pricing-card-featured{ border:2px solid var(--terra); }
.course-pricing-badge{
  position:absolute; top:-13px; left:24px; background:var(--terra); color:#fff;
  font-size:11.5px; font-weight:700; padding:5px 12px; border-radius:8px;
}
.course-pricing-name{ font-weight:800; font-size:17px; margin:0 0 16px; }
.course-pricing-features{ margin-bottom:16px; }
.course-pricing-feature{
  display:flex; gap:9px; align-items:flex-start; margin-bottom:10px;
  font-size:13.5px; color:var(--ink-soft);
}
.course-pricing-feature svg{ flex:none; margin-top:2px; }
.course-pricing-price{ font-size:26px; font-weight:800; margin:0 0 14px; color:var(--ink); }

@media (max-width: 600px){
  .course-pricing-grid{ grid-template-columns:1fr; }
}
/* ============================================================
   10. ПРЕПОДАВАТЕЛИ — ГЛАВНАЯ СТРАНИЦА
   ============================================================ */
.teachers-panel{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:36px;
}
.teachers-panel-body{ display:flex; gap:36px; align-items:flex-start; }

.teachers-sidebar{ width:220px; flex:none; }
.teachers-sidebar .course-filters{ flex-direction:column; align-items:flex-start; margin-bottom:28px; }

/* Переключатель между несколькими преподавателями (аватар + имя) */
.teacher-tabs{ display:flex; flex-direction:column; gap:8px; }
.teacher-tab{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  background:var(--cream); border:none; border-radius:14px;
  padding:8px 14px 8px 8px; font-size:14px; font-weight:600; color:var(--ink-soft);
  cursor:pointer; font-family:inherit; transition:background .2s, color .2s;
}
.teacher-tab.active{ background:var(--terra); color:#fff; }
.teacher-tab:hover:not(.active){ background:var(--cream-2); }
.teacher-tab-avatar{
  width:36px; height:36px; border-radius:50%; object-fit:cover; object-position:top; flex:none;
}
.teacher-tab-avatar-placeholder{
  display:flex; align-items:center; justify-content:center;
  background:var(--peach); color:var(--terra); font-weight:700; font-size:15px;
}
.teacher-tab.active .teacher-tab-avatar-placeholder{
  background:rgba(255,255,255,.25); color:#fff;
}
.teacher-tab-name{ line-height:1.2; }

/* Фото + текст выбранного преподавателя */
.teachers-list{ flex:1; }
.teacher-item{ display:flex; justify-content:center; }
.teacher-photo-wrap{
  display:flex; align-items:flex-start; gap:24px; width:100%; max-width:900px;
}
.teacher-photo-half{
  width:70%; aspect-ratio:1/1; border-radius:16px; flex:none;
  object-fit:cover; object-position:top; display:block;
}
.teacher-photo-wrap .teacher-text{ flex:1; padding-top:8px; min-width:0; }
.teacher-photo-wrap h3{ font-size:19px; margin-bottom:8px; }
.teacher-photo-wrap p{ font-size:14px; color:var(--ink-soft); }


/* ============================================================
   11. ПРЕПОДАВАТЕЛИ — СТРАНИЦА КУРСА
   ============================================================ */
.course-teachers-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:20px; }
.course-teacher-photo{
  width:160px; height:200px; border-radius:16px;
  object-fit:cover; object-position:top; flex:none;
}

/* Если преподавателей ровно двое — крупные фото в ряд */
.course-teachers-pair{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.course-teacher-block{ text-align:center; }
.course-teacher-photo-large{
  width:100%; max-width:280px; aspect-ratio:3/4;
  border-radius:20px; object-fit:cover; object-position:top;
}


/* ============================================================
   12. РЕЗУЛЬТАТЫ УЧЕНИКОВ (карусель отзывов)
   ============================================================ */
#results{ background:var(--cream); }

.results-carousel-wrap{ position:relative; }
.results-carousel{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none; padding:6px 2px;
}
.results-carousel::-webkit-scrollbar{ display:none; }
.results-carousel .result-card{
  flex:0 0 calc((100% - 40px) / 3);
  scroll-snap-align:center;
}

.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:42px; height:42px; border-radius:50%; border:none; cursor:pointer;
  background:var(--white); box-shadow:var(--shadow); color:var(--ink);
  font-size:24px; line-height:1; display:grid; place-items:center;
  transition:background .2s, color .2s;
}
.carousel-btn:hover{ background:var(--terra); color:#fff; }
.carousel-btn.prev{ left:-48px; }
.carousel-btn.next{ right:-48px; }

.result-card{
  background:var(--white); border-radius:var(--radius); padding:26px;
  box-shadow:var(--shadow);
}
.result-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.result-avatar{
  width:48px; height:48px; border-radius:50%; object-fit:cover;
  display:grid; place-items:center; font-weight:700; background:var(--peach);
}
.result-head b{ display:block; font-size:15px; }
.result-head span{ font-size:13px; color:var(--ink-soft); }
.result-scores{ display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.result-scores .score-num{ font-size:30px; font-weight:800; }
.result-scores .score-num.after{ color:var(--terra); }
.result-scores .score-label{ font-size:12px; color:var(--ink-soft); display:block; }
.result-scores .arrow{ font-size:22px; color:var(--ink-soft); }
.result-card>p{ font-size:14.5px; color:var(--ink-soft); }

/* Фото в отзывах (1-4 шт., адаптивная раскладка) */
.result-photos{
  display:grid; gap:6px; margin-bottom:16px; border-radius:var(--radius-sm); overflow:hidden;
}
.result-photos img{ width:100%; height:100%; object-fit:cover; display:block; }
.result-photos-1{ grid-template-columns:1fr; }
.result-photos-1 img{ aspect-ratio:16/10; }
.result-photos-2{ grid-template-columns:1fr 1fr; }
.result-photos-2 img{ aspect-ratio:1/1; }
.result-photos-3{ grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; }
.result-photos-3 img:nth-child(1){ grid-row:1 / 3; aspect-ratio:auto; height:100%; }
.result-photos-3 img:nth-child(2), .result-photos-3 img:nth-child(3){ aspect-ratio:2/1; }
.result-photos-4{ grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.result-photos-4 img{ aspect-ratio:1/1; }


/* ============================================================
   13. FAQ
   ============================================================ */
.faq{ max-width:760px; margin:0 auto; }
.faq-item{
  background:var(--white); border-radius:var(--radius-sm); margin-bottom:12px; overflow:hidden;
  box-shadow:0 4px 14px rgba(43,35,32,.05);
}
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  font-family:inherit; font-size:16px; font-weight:600; color:var(--ink);
  padding:20px 52px 20px 22px; position:relative;
}
.faq-q::after{
  content:"+"; position:absolute; right:22px; top:50%; transform:translateY(-50%);
  font-size:24px; color:var(--terra); transition:transform .25s;
}
.faq-item.open .faq-q::after{ transform:translateY(-50%) rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p{ padding:0 22px 20px; color:var(--ink-soft); font-size:15px; }


/* ============================================================
   14. ФИНАЛЬНЫЙ CTA + ФУТЕР
   ============================================================ */
.cta-final{
  background:var(--terra-deep); border-radius:var(--radius); padding:48px;
  display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
}
.cta-final h2{ color:#fff; margin-bottom:8px; }
.cta-final p{ color:rgba(255,255,255,.75); font-size:15px; margin:0; }

footer{ padding:34px 0 42px; margin-top:auto; }
.footer-inner{
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  color:var(--ink-soft); font-size:14px;
}
.footer-inner a{ color:var(--terra); }


/* ============================================================
   15. АНИМАЦИИ REVEAL
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, .reveal{ transition:none !important; animation:none !important; }
  .reveal{ opacity:1; transform:none; }
}


/* ============================================================
   16. ВНУТРЕННИЕ СТРАНИЦЫ (Bootstrap-переопределения)
   ============================================================ */
.card{
  background:var(--white); border:none; border-radius:var(--radius-sm);
  box-shadow:0 4px 14px rgba(43,35,32,.05);
}
a > .card:hover{ background-color:var(--cream); }

.btn-primary{
  background-color:var(--terra); border-color:var(--terra);
  border-radius:12px; font-weight:600; color:#fff;
}
.btn-primary:hover, .btn-primary:focus{
  background-color:var(--terra-dark); border-color:var(--terra-dark); color:#fff;
}
.btn-outline-primary{
  color:var(--terra); border-color:var(--terra); border-radius:12px; font-weight:600;
}
.btn-outline-primary:hover{
  background-color:var(--terra); border-color:var(--terra); color:#fff;
}
.btn-outline-secondary{
  border-radius:12px; color:var(--ink-soft); border-color:var(--line);
}
.btn-outline-secondary:hover{
  background-color:var(--ink); border-color:var(--ink); color:#fff;
}
.btn-outline-danger, .btn-outline-warning{ border-radius:12px; }
.btn-success{
  background-color:#4A8B5C; border-color:#4A8B5C; border-radius:12px; font-weight:600;
}
.btn-success:hover{ background-color:#3A6F49; border-color:#3A6F49; }

.form-control, .form-select{
  border-color:var(--line); border-radius:12px; font-family:inherit;
}
.form-control:focus, .form-select:focus{
  border-color:var(--terra); box-shadow:0 0 0 .2rem rgba(200,68,42,.12);
}
.form-label{ font-weight:600; color:var(--ink); font-size:.9rem; }

.progress{ background-color:var(--line); border-radius:99px; }
.progress-bar{ background-color:var(--terra) !important; border-radius:99px; }
.progress-bar.bg-success{ background-color:#4A8B5C !important; }

.alert{ border-radius:14px; border:none; }
.alert-success{ background-color:#E7F3D9; color:#2E5B39; }
.alert-warning{ background-color:#FDF3C8; color:#6E5A0A; }
.alert-secondary, .alert-info{ background-color:var(--cream-2); color:var(--ink); }

.badge.bg-success{ background-color:#4A8B5C !important; }
.badge.bg-danger{ background-color:var(--terra) !important; }

.dropdown-menu{
  border-radius:14px; border:1px solid var(--line); box-shadow:var(--shadow);
}
.dropdown-menu .dropdown-item{ white-space:normal; word-wrap:break-word; }

.text-muted{ color:var(--ink-soft) !important; }
.container h2, .container h3, .container h4, .container h5, .container h6{ text-transform:none; }


/* ============================================================
   17. ПЛАТФОРМА (личный кабинет ученика)
   ============================================================ */
/* ---------- Кабинет: верхняя полоса ---------- */
.cab-topbar{
  position:sticky; top:0; z-index:50;
  background:var(--terra);
  border-bottom:none;
}
.cab-topbar-inner{
  padding:0 28px;
  height:72px; display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.cab-logo{
  display:flex; align-items:center; gap:10px;
  color:#fff; text-decoration:none; font-weight:800; font-size:19px;
}
.cab-logo img{ width:38px; height:38px; }
.cab-logo .thin{ font-weight:500; color:rgba(255,255,255,.8); }
.cab-logo:hover{ color:#fff; }

.cab-topbar-actions{ display:flex; align-items:center; gap:14px; }
.cab-icon-btn{
  position:relative; width:38px; height:38px; border:none; background:none;
  border-radius:10px; cursor:pointer; display:grid; place-items:center;
  transition:background .18s;
}
.cab-icon-btn:hover{ background:rgba(255,255,255,.14); }
.cab-icon-btn svg path,
.cab-icon-btn svg circle{ stroke:#fff; }
.cab-badge{
  position:absolute; top:3px; right:3px; min-width:17px; height:17px; padding:0 4px;
  border-radius:99px; background:#fff; color:var(--terra);
  font-size:10.5px; font-weight:800; display:grid; place-items:center;
}
.cab-divider{ width:1px; height:26px; background:rgba(255,255,255,.3); }

.cab-user{
  display:flex; align-items:center; gap:10px;
  background:none; border:none; cursor:pointer; padding:4px 6px; border-radius:12px;
  color:#fff; font-family:inherit; font-size:14.5px; font-weight:600;
  transition:background .18s;
}
.cab-user:hover{ background:rgba(255,255,255,.14); }
.cab-avatar{
  width:34px; height:34px; border-radius:50%; flex:none;
  background:rgba(255,255,255,.28); color:#fff;
  display:grid; place-items:center; font-weight:700; font-size:15px;
}
.cab-chevron{
  width:0; height:0; border-left:4.5px solid transparent; border-right:4.5px solid transparent;
  border-top:5px solid rgba(255,255,255,.8);
}

/* ---------- Кабинет: боковое меню ---------- */
.cab-layout{
  display:flex; align-items:flex-start;
  width:100%;
}
.cab-sidebar{
  width:272px; flex:none; align-self:stretch;
  background:var(--white);
  border-right:1px solid var(--line);
  padding:24px 16px;
  position:sticky; top:72px;
  min-height:calc(100vh - 72px);
}
.cab-nav{ display:flex; flex-direction:column; gap:4px; }
.cab-nav-link{
  display:flex; align-items:center; gap:14px;
  padding:13px 16px; border-radius:14px;
  text-decoration:none; color:var(--ink-soft);
  font-size:15px; font-weight:500;
  transition:background .16s, color .16s;
}
.cab-nav-link svg path,
.cab-nav-link svg circle,
.cab-nav-link svg rect{ stroke:currentColor; }
.cab-nav-link:hover{ background:var(--cream); color:var(--ink); }
.cab-nav-link.active{
  background:var(--cream); color:var(--terra); font-weight:700;
  box-shadow:0 2px 10px rgba(43,35,32,.06);
}

.cab-main{
  flex:1; min-width:0;
  padding:32px 40px 80px;
  display:flex; flex-direction:column; align-items:center;
}
.cab-main > *{ width:100%; max-width:1100px; }

@media (min-width: 1600px){
  .cab-main{ padding-right:312px; }   /* 272 sidebar + 40 базовый отступ */
}

@media (max-width: 1100px){
  .cab-sidebar{ width:76px; padding:20px 12px; }
  .cab-nav-link span{ display:none; }
  .cab-nav-link{ justify-content:center; padding:13px 0; }
  .cab-main{ padding:28px 24px 60px; }
}

@media (max-width: 767px){
  .cab-topbar-inner{ padding:0 16px; }
  .cab-user-name{ display:none; }
  .cab-layout{ flex-direction:column; }
  .cab-sidebar{
    width:100%; min-height:0; position:static;
    border-right:none; border-bottom:1px solid var(--line);
    padding:10px 12px;
  }
  .cab-nav{
    flex-direction:row; gap:6px;
    overflow-x:auto; scrollbar-width:none;
  }
  .cab-nav::-webkit-scrollbar{ display:none; }
  .cab-nav-link{ padding:10px 14px; flex:none; }
  .cab-main{ padding:22px 16px 60px; width:100%; }
}
.pf-alert{
  display:flex; align-items:center; gap:14px; background:var(--lemon);
  border-radius:16px; padding:16px 20px; margin-bottom:20px; font-size:14.5px; color:#6E5A0A;
}
.pf-continue-card{
  background:var(--white); border-radius:20px; box-shadow:var(--shadow);
  padding:28px 30px; margin-bottom:24px; display:flex; align-items:center;
  justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.pf-tile-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
.pf-tile{
  background:var(--white); border:none; border-radius:20px; box-shadow:var(--shadow);
  padding:26px; text-align:center; cursor:pointer; font-family:inherit; text-decoration:none; display:block;
}
.pf-tile-icon{
  width:52px; height:52px; border-radius:16px; background:var(--peach);
  display:grid; place-items:center; margin:0 auto 14px;
}
.pf-tile b{ display:block; font-size:15px; color:var(--ink); }
.pf-tile span{ color:var(--ink-soft); font-size:13px; }

.pf-course-row{
  background:var(--white); border-radius:20px; box-shadow:var(--shadow);
  padding:24px 26px; margin-bottom:16px; display:flex; align-items:center;
  justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.pf-progress-track{ flex:1; max-width:240px; height:6px; border-radius:99px; background:var(--line); }
.pf-progress-fill{ height:100%; border-radius:99px; background:var(--terra); }
.pf-progress-fill.done{ background:#4A8B5C; }

.pf-lesson-video{
  aspect-ratio:16/9; border-radius:16px; background:var(--cream-2);
  border:2px dashed var(--line); display:grid; place-items:center; margin-bottom:20px;
  color:var(--ink-soft); font-size:13px;
}
.pf-lesson-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.pf-passed-banner{
  display:flex; align-items:center; gap:12px; background:#E7F3D9;
  border-radius:16px; padding:16px 20px; margin-bottom:28px; color:#2E5B39; font-size:14.5px;
}
.pf-comment-card{
  background:var(--white); border-radius:16px; box-shadow:0 4px 14px rgba(43,35,32,.05);
  padding:18px 20px; margin-bottom:12px;
}
/* ---------- Главная страница кабинета ---------- */
.dash-header{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:20px; flex-wrap:wrap; margin-bottom:24px;
}
.dash-greeting{ font-size:28px; font-weight:800; margin:0 0 4px; }
.dash-subtitle{ color:var(--ink-soft); font-size:15px; margin:0; }
.dash-stat-tile{
  background:var(--white); border-radius:16px; box-shadow:var(--shadow);
  padding:14px 22px; text-align:center;
}
.dash-stat-label{ display:block; font-size:12.5px; color:var(--ink-soft); }
.dash-stat-value{ display:block; font-size:22px; font-weight:800; color:var(--terra); }

.dash-main-grid{
  display:grid; grid-template-columns:1.4fr 1fr; gap:20px; margin-bottom:32px;
}
.dash-next-card{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:32px;
}
.dash-card-label{
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-soft);
}
.dash-course-name{ font-size:13.5px; color:var(--terra); font-weight:600; margin:10px 0 2px; }
.dash-action-title{ font-size:24px; font-weight:800; margin:0 0 10px; }
.dash-reason{ color:var(--ink-soft); font-size:14.5px; margin:0 0 22px; }
.dash-action-footer{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.dash-duration{ color:var(--ink-soft); font-size:13.5px; display:inline-flex; align-items:center; gap:5px; }

.dash-done-state{ text-align:center; padding:12px 0; }
.dash-done-state h3{ font-size:20px; margin:14px 0 6px; }
.dash-done-state p{ color:var(--ink-soft); font-size:14px; margin:0 0 18px; }

.dash-side-card{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:26px;
}
.dash-side-title{ font-size:16px; font-weight:700; margin:0 0 16px; }
.dash-side-link{ display:inline-block; margin-top:14px; font-size:13.5px; }

.dash-task-list{ list-style:none; margin:0; padding:0; }
.dash-task-list li + li{ margin-top:10px; }
.dash-task-list a{
  display:flex; align-items:flex-start; gap:12px; text-decoration:none;
  padding:10px 12px; border-radius:12px; transition:background .15s;
}
.dash-task-list a:hover{ background:var(--cream); }
.dash-task-num{
  width:24px; height:24px; flex:none; border-radius:8px; background:var(--peach);
  color:var(--terra); font-weight:700; font-size:12.5px;
  display:flex; align-items:center; justify-content:center;
}
.dash-task-body{ flex:1; min-width:0; }
.dash-task-body b{ display:block; font-size:14px; color:var(--ink); }
.dash-task-body span{ font-size:12.5px; color:var(--ink-soft); }
.dash-task-time{ font-size:12.5px; color:var(--ink-soft); white-space:nowrap; }

.dash-section-head{
  display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px;
}
.dash-section-head h4{ font-size:18px; font-weight:700; margin:0; }
.dash-section-head a{ font-size:13.5px; }

.dash-course-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px; margin-bottom:32px;
}
.dash-course-card{
  background:var(--white); border-radius:16px; box-shadow:var(--shadow);
  padding:22px; text-decoration:none; display:block;
  transition:transform .2s, box-shadow .2s;
}
.dash-course-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-hover); }
.dash-course-subject{ font-size:12.5px; color:var(--terra); font-weight:600; }
.dash-course-card b{ display:block; font-size:16px; color:var(--ink); margin:4px 0 14px; }
.dash-progress-row{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.dash-progress-row span{ font-size:13px; font-weight:700; color:var(--ink); }
.dash-course-meta{ font-size:12.5px; color:var(--ink-soft); }

.dash-bottom-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }

.dash-weak-list{ list-style:none; margin:0; padding:0; }
.dash-weak-list li{ padding:10px 0; border-bottom:1px solid var(--line); }
.dash-weak-list li:last-child{ border-bottom:none; }
.dash-weak-list a{
  display:flex; justify-content:space-between; align-items:center;
  text-decoration:none; gap:12px;
}
.dash-weak-name{ font-size:14px; color:var(--ink); }
.dash-weak-score{ font-size:14px; font-weight:800; color:var(--terra); }
.dash-weak-label{ font-size:12px; color:var(--ink-soft); }

.dash-empty{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:48px 32px; text-align:center;
}
.dash-empty h3{ font-size:20px; margin:16px 0 8px; }
.dash-empty p{ color:var(--ink-soft); margin:0 0 20px; }

.dash-empty-small{ text-align:center; padding:16px 0; }
.dash-empty-small p{ font-size:14px; font-weight:600; margin:12px 0 6px; }
.dash-empty-small span{ font-size:12.5px; color:var(--ink-soft); }
.dash-muted{ color:var(--ink-soft); font-size:14px; }

@media (max-width: 900px){
  .dash-main-grid, .dash-bottom-grid{ grid-template-columns:1fr; }
}

.pred-score{ display:flex; align-items:baseline; gap:8px; margin-bottom:10px; }
.pred-value{ font-size:36px; font-weight:800; color:var(--terra); }
.pred-goal{ font-size:13px; color:var(--ink-soft); }
.pred-gap{ font-size:13.5px; margin:0 0 10px; color:var(--ink-soft); }
.pred-gap-ok{ color:#4A8B5C; font-weight:600; }
.pred-coverage{ font-size:12px; color:var(--ink-soft); }

/* ---------- Работа над ошибками ---------- */
.err-stats{ display:flex; gap:12px; flex-wrap:wrap; margin:20px 0 24px; }
.err-stat{
  background:var(--white); border-radius:14px; box-shadow:var(--shadow);
  padding:14px 20px; text-align:center; min-width:96px;
}
.err-stat b{ display:block; font-size:22px; font-weight:800; }
.err-stat span{ font-size:12px; color:var(--ink-soft); }
.err-stat-good b{ color:#4A8B5C; }
.err-stat-warn b{ color:var(--terra); }

.err-filters{
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; flex-wrap:wrap; margin-bottom:22px;
}
.err-group-switch{ display:flex; gap:14px; font-size:13.5px; }
.err-group-switch a{ color:var(--ink-soft); text-decoration:none; }
.err-group-switch a.active{ color:var(--terra); font-weight:700; }

.err-group{ margin-bottom:26px; }
.err-group-head{
  display:flex; align-items:baseline; gap:10px; margin-bottom:10px;
}
.err-group-head h4{ font-size:16px; font-weight:700; margin:0; }
.err-group-head span{
  background:var(--peach); color:var(--terra); border-radius:99px;
  padding:2px 10px; font-size:12px; font-weight:700;
}

.err-card{
  display:flex; align-items:center; gap:14px; text-decoration:none;
  background:var(--white); border-radius:14px; box-shadow:0 4px 14px rgba(43,35,32,.05);
  padding:16px 20px; margin-bottom:8px; transition:transform .15s;
}
.err-card:hover{ transform:translateX(3px); }
.err-card-main{ flex:1; min-width:0; }
.err-question{ font-size:14.5px; color:var(--ink); margin:0 0 6px; }
.err-card-meta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.err-repeat{ font-size:12px; color:var(--terra); }

.err-status{
  font-size:11.5px; font-weight:700; border-radius:99px; padding:3px 10px;
  background:var(--cream-2); color:var(--ink-soft);
}
.err-status-not_analyzed{ background:#FDF3C8; color:#6E5A0A; }
.err-status-in_progress{ background:var(--peach); color:var(--terra); }
.err-status-corrected_once{ background:#E3EEF7; color:#2F5B85; }
.err-status-reinforced{ background:#E7F3D9; color:#2E5B39; }
.err-status-regressed{ background:#FBE0DB; color:#A83620; }

.err-detail-head{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; flex-wrap:wrap; margin-bottom:18px;
}
.err-detail-question{ font-size:16px; line-height:1.5; margin:0 0 18px; }

.err-answer-box{
  display:flex; gap:12px; align-items:flex-start;
  border-radius:14px; padding:14px 18px; margin-bottom:12px;
}
.err-answer-correct{ background:#E7F3D9; }
.err-answer-box span{ display:block; font-size:12px; color:var(--ink-soft); }
.err-answer-box b{ font-size:15px; }

.err-explanation{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--cream); border-radius:14px; padding:16px 18px;
}
.err-explanation span{ display:block; font-size:12px; color:var(--ink-soft); margin-bottom:4px; }
.err-explanation p{ margin:0; font-size:14px; }

.err-steps{ list-style:none; margin:0 0 20px; padding:0; }
.err-steps li{
  display:flex; align-items:center; gap:10px;
  padding:10px 0; font-size:14.5px; color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.err-steps li:last-child{ border-bottom:none; }
.err-steps li.done{ color:var(--ink); }
.err-step-num{
  width:22px; height:22px; border-radius:50%; background:var(--cream-2);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; flex:none;
}
.err-reinforced{
  display:flex; align-items:center; gap:8px;
  color:#2E5B39; font-weight:600; font-size:14.5px; margin:0;
}

.err-history{ list-style:none; margin:0; padding:0; }
.err-history li{
  display:flex; align-items:center; gap:10px;
  padding:8px 0; font-size:13.5px; border-bottom:1px solid var(--line);
}
.err-history li:last-child{ border-bottom:none; }
.err-history span{ color:var(--ink-soft); }

/* ---------- Результат теста ---------- */
.res-hero{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:32px; display:flex; gap:32px; align-items:center;
  flex-wrap:wrap; margin-bottom:20px;
  border-left:5px solid var(--terra);
}
.res-hero-passed{ border-left-color:#4A8B5C; }

.res-score-block{ text-align:center; flex:none; }
.res-score-value{ font-size:52px; font-weight:800; line-height:1; display:block; }
.res-score-value small{ font-size:24px; font-weight:700; color:var(--ink-soft); }
.res-points{ font-size:13px; color:var(--ink-soft); display:block; margin-top:6px; }

.res-summary{ flex:1; min-width:220px; }
.res-summary h2{ font-size:24px; font-weight:800; margin:0 0 4px; }
.res-lesson{ color:var(--ink-soft); font-size:14.5px; margin:0 0 14px; }

.res-counters{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
.res-counter{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13.5px; color:var(--ink-soft);
}
.res-counter-ok{ color:#2E5B39; font-weight:600; }
.res-counter-bad{ color:var(--terra); font-weight:600; }

.res-compare{ font-size:13.5px; color:var(--ink-soft); }
.res-compare b{ color:var(--terra); margin-left:6px; }
.res-compare-up b{ color:#4A8B5C; }

.res-next{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:24px 28px; display:flex; justify-content:space-between;
  align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:28px;
}
.res-next-reason{ font-size:15px; margin:6px 0 0; }

.res-section-title{ font-size:18px; font-weight:700; margin:0 0 14px; }

.res-error-card{
  background:var(--white); border-radius:16px; box-shadow:0 4px 14px rgba(43,35,32,.05);
  padding:22px; margin-bottom:12px;
}
.res-question{ font-size:15px; font-weight:600; margin:0 0 14px; }

.res-answer{
  display:flex; gap:12px; align-items:flex-start;
  border-radius:12px; padding:12px 16px; margin-bottom:8px;
}
.res-answer span{ display:block; font-size:11.5px; color:var(--ink-soft); }
.res-answer b{ font-size:14.5px; }
.res-answer-wrong{ background:#FBE0DB; }
.res-answer-right{ background:#E7F3D9; }

.res-clean{
  background:#E7F3D9; border-radius:16px; padding:22px 26px;
  display:flex; align-items:center; gap:16px; margin-bottom:24px;
}
.res-clean b{ display:block; font-size:16px; color:#2E5B39; }
.res-clean span{ font-size:13.5px; color:#3A6F49; }

.res-secondary{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }

@media (max-width: 600px){
  .res-hero{ padding:24px; gap:20px; }
  .res-score-value{ font-size:42px; }
  .res-next{ flex-direction:column; align-items:stretch; }
  .res-next .btn{ width:100%; }
}

/* ---------- Экран урока ---------- */
.lsn-breadcrumbs{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  font-size:13px; color:var(--ink-soft); margin-bottom:16px;
}
.lsn-breadcrumbs a{ color:var(--ink-soft); text-decoration:none; }
.lsn-breadcrumbs a:hover{ color:var(--terra); }

.lsn-head{ margin-bottom:18px; }
.lsn-title{ font-size:26px; font-weight:800; margin:0 0 8px; }
.lsn-meta{ display:flex; gap:16px; flex-wrap:wrap; font-size:13.5px; color:var(--ink-soft); }
.lsn-meta span{ display:inline-flex; align-items:center; gap:5px; }
.lsn-watched{ color:#2E5B39; font-weight:600; }

.lsn-goal{
  display:flex; gap:14px; align-items:flex-start;
  background:var(--peach); border-radius:16px; padding:18px 22px; margin-bottom:22px;
}
.lsn-goal span{ display:block; font-size:12px; color:var(--terra); font-weight:700;
                text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.lsn-goal p{ margin:0; font-size:14.5px; }

.lsn-next{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:22px 26px; display:flex; justify-content:space-between;
  align-items:center; gap:20px; flex-wrap:wrap; margin:24px 0 12px;
}
.lsn-next-hint{ font-size:14.5px; margin:6px 0 0; }

.lsn-mark-form{ margin-bottom:28px; }
.lsn-mark-btn{
  background:none; border:none; cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:7px;
  color:var(--ink-soft); font-size:13.5px; padding:6px 0;
}
.lsn-mark-btn:hover{ color:var(--terra); }

@media (max-width: 600px){
  .lsn-next{ flex-direction:column; align-items:stretch; }
  .lsn-next .btn{ width:100%; }
}

/* ---------- Учебный план ---------- */
.plan-day{ margin-bottom:24px; }
.plan-day-head{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:10px; gap:12px;
}
.plan-day-head h4{ font-size:16px; font-weight:700; margin:0; text-transform:capitalize; }
.plan-day-head span{
  font-size:12.5px; color:var(--ink-soft); display:inline-flex; align-items:center; gap:5px;
}
.plan-day-today .plan-day-head h4{ color:var(--terra); }

.plan-item{
  background:var(--white); border-radius:14px; box-shadow:0 4px 14px rgba(43,35,32,.05);
  padding:14px 18px; margin-bottom:8px;
  display:flex; align-items:center; gap:14px;
}
.plan-item-overdue{ border-left:3px solid var(--terra); }
.plan-item-done_on_time, .plan-item-done_late{ opacity:.6; }
.plan-item-skipped{ opacity:.45; }

.plan-item-body{ flex:1; min-width:0; }
.plan-item-type{
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--terra);
}
.plan-item-body b{ display:block; font-size:14.5px; margin:2px 0; }
.plan-item-meta{ font-size:12.5px; color:var(--ink-soft); }
.plan-status-overdue{ color:var(--terra); font-weight:600; }
.plan-status-done_on_time, .plan-status-done_late{ color:#2E5B39; }

.plan-item-actions{ display:flex; gap:6px; flex:none; }
.plan-btn{
  background:var(--cream); border:none; border-radius:10px; cursor:pointer;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.plan-btn:hover{ background:var(--cream-2); }
.plan-btn-done:hover{ background:#E7F3D9; }
.plan-item-done{ flex:none; }

.cab-layout ~ footer,
body:has(.cab-layout) footer{ display:none; }

/* ---------- Результаты ---------- */
.anl-metrics{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px; margin:20px 0 20px;
}
.anl-metric{
  background:var(--white); border-radius:16px; box-shadow:var(--shadow);
  padding:20px 22px;
}
.anl-metric-label{ display:block; font-size:12.5px; color:var(--ink-soft); margin-bottom:6px; }
.anl-metric-value{ display:block; font-size:30px; font-weight:800; line-height:1.1; }
.anl-metric-value small{ font-size:17px; font-weight:700; color:var(--ink-soft); }
.anl-metric-text{ font-size:18px; }
.anl-metric-note{ display:block; font-size:12px; color:var(--ink-soft); margin-top:6px; }
.anl-up{ color:#4A8B5C; }
.anl-down{ color:var(--terra); }

.anl-time-row{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:28px; }
.anl-time{
  background:var(--white); border-radius:14px; box-shadow:0 4px 14px rgba(43,35,32,.05);
  padding:12px 18px; min-width:120px;
}
.anl-time span{ display:block; font-size:12px; color:var(--ink-soft); }
.anl-time b{ font-size:17px; }

.anl-course{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:26px 28px; margin-bottom:20px;
}
.anl-course-head{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:16px; flex-wrap:wrap; margin-bottom:14px;
}
.anl-course-head h4{ font-size:19px; font-weight:700; margin:2px 0 0; }
.anl-course-stats{ display:flex; gap:18px; font-size:13.5px; color:var(--ink-soft); }
.anl-course-stats b{ color:var(--ink); }

.anl-topics{ display:flex; flex-direction:column; }
.anl-topic{
  display:grid; grid-template-columns:1fr 120px 52px 150px;
  align-items:center; gap:14px;
  padding:11px 0; border-bottom:1px solid var(--line);
  text-decoration:none;
}
.anl-topic:last-child{ border-bottom:none; }
.anl-topic:hover .anl-topic-name{ color:var(--terra); }
.anl-topic-name{ font-size:14px; color:var(--ink); }
.anl-topic-bar{
  height:6px; border-radius:99px; background:var(--line); overflow:hidden; display:block;
}
.anl-topic-bar span{ display:block; height:100%; border-radius:99px; background:var(--terra); }
.anl-topic-strong .anl-topic-bar span{ background:#4A8B5C; }
.anl-topic-critical .anl-topic-bar span{ background:#C0392B; }
.anl-topic-value{ font-size:14px; font-weight:700; text-align:right; }
.anl-topic-label{ font-size:12px; color:var(--ink-soft); }

@media (max-width: 767px){
  .anl-topic{ grid-template-columns:1fr 52px; row-gap:6px; }
  .anl-topic-bar{ grid-column:1 / -1; }
  .anl-topic-label{ grid-column:1 / -1; }
}

/* ---------- Практика ---------- */
.prc-modes{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px; margin:20px 0;
}
.prc-mode-card{
  background:var(--white); border-radius:18px; box-shadow:var(--shadow);
  padding:24px; display:flex; flex-direction:column; gap:8px;
}
.prc-mode-icon{
  width:46px; height:46px; border-radius:14px; background:var(--peach);
  display:grid; place-items:center; margin-bottom:6px;
}
.prc-mode-card b{ font-size:16px; }
.prc-mode-card > span{ font-size:13px; color:var(--ink-soft); flex:1; }
.prc-mode-card .btn{ margin-top:8px; }
.prc-badge{
  align-self:flex-start; background:var(--peach); color:var(--terra);
  border-radius:99px; padding:3px 12px; font-size:12px; font-weight:700;
}

.prc-progress-head{
  display:flex; align-items:center; gap:16px; margin-bottom:20px;
  font-size:13.5px; color:var(--ink-soft);
}
.prc-progress-head span{ white-space:nowrap; }

.prc-task-card{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:32px; margin-bottom:20px;
}
.prc-task-number{
  display:inline-block; background:var(--cream-2); color:var(--ink-soft);
  border-radius:8px; padding:3px 10px; font-size:12px; font-weight:700; margin-left:8px;
}
.prc-question{ font-size:17px; line-height:1.55; margin:12px 0 22px; }

.prc-options{ display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.prc-option{
  display:flex; align-items:center; gap:12px;
  border:1.5px solid var(--line); border-radius:14px; padding:14px 18px;
  cursor:pointer; transition:border-color .15s, background .15s;
  font-size:15px;
}
.prc-option:hover{ border-color:var(--terra); background:var(--cream); }
.prc-option input{ accent-color:var(--terra); width:18px; height:18px; flex:none; }
.prc-option-static{ cursor:default; }
.prc-option-static:hover{ border-color:var(--line); background:none; }
.prc-option-right{ border-color:#4A8B5C; background:#E7F3D9; }

.prc-text-input{ max-width:340px; font-size:16px; padding:12px 16px; margin-bottom:18px; }

.prc-review-check{
  display:flex; align-items:center; gap:8px;
  font-size:13.5px; color:var(--ink-soft); margin-bottom:20px; cursor:pointer;
}
.prc-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.prc-feedback{
  display:flex; align-items:center; gap:16px;
  border-radius:16px; padding:20px 26px; margin-bottom:20px;
}
.prc-feedback-ok{ background:#E7F3D9; }
.prc-feedback-bad{ background:#FBE0DB; }
.prc-feedback b{ display:block; font-size:17px; }
.prc-feedback span{ font-size:13.5px; color:var(--ink-soft); }

.prc-history{ display:flex; flex-direction:column; gap:8px; }
.prc-history-item{
  display:flex; align-items:center; gap:16px;
  background:var(--white); border-radius:14px; padding:14px 20px;
  box-shadow:0 4px 14px rgba(43,35,32,.05); text-decoration:none;
}
.prc-history-mode{ font-weight:600; font-size:14px; color:var(--ink); flex:1; }
.prc-history-date{ font-size:12.5px; color:var(--ink-soft); }
.prc-history-score{ font-size:14px; font-weight:700; color:var(--terra); }

.prc-error-type{ margin-top:14px; }
.prc-error-type label{
  display:block; font-size:12.5px; color:var(--ink-soft); margin-bottom:6px;
}
.prc-error-type select{ max-width:260px; }
/* ============================================================
   18. ТАЙМКОДЫ ВИДЕО
   ============================================================ */
.timecode-btn{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  background:var(--white); border:none; border-radius:12px; padding:10px 14px;
  margin-bottom:6px; cursor:pointer; box-shadow:0 2px 8px rgba(43,35,32,.05);
  transition:background .15s;
}
.timecode-btn:hover{ background:var(--cream-2); }
.timecode-time{ font-weight:700; color:var(--terra); font-size:13.5px; min-width:44px; }
.timecode-label{ font-size:14px; color:var(--ink); }


/* ============================================================
   19. АДАПТИВ
   ============================================================ */

/* Меню в шапке скрывается пораньше, чтобы кнопки не переносились */
@media (max-width: 1100px){
  .nav-links:not(.platform-nav){ display:none; }
}

/* Планшет: hero, about в колонку */
@media (max-width: 900px){
  .hero-grid, .about-grid{ grid-template-columns:1fr; gap:40px; }
  .hero{ padding:56px 0 76px; }
  .hero-photo{ order:-1; }
  .cta-final{ text-align:center; justify-content:center; }
  .results-carousel .result-card{ flex:0 0 calc((100% - 20px) / 2); }
}

/* Мобильный (общий): шапка, карусель, панель преподавателей */
@media (max-width: 767px){
  .nav{ flex-direction:column; height:auto; padding:10px 0; gap:8px; }
  .nav-actions{ width:100%; justify-content:center; flex-wrap:wrap; }
  .nav-actions .btn{ font-size:13px; padding:8px 14px; }

  header .dropdown-menu{
    position:fixed !important; top:auto !important;
    left:8px !important; right:8px !important;
    width:calc(100% - 16px); max-width:none;
  }

  .carousel-btn.prev, .carousel-btn.next{ display:none !important; }

  .results-carousel{ padding:6px 8% 10px; }
  .results-carousel .result-card{
    flex:0 0 84%; padding-left:20px; padding-right:20px;
    transform:scale(.92); opacity:.55;
    transition:transform .25s ease, opacity .25s ease;
  }
  .results-carousel .result-card.is-active{ transform:scale(1); opacity:1; }

  .course-how-grid{ grid-template-columns:1fr; }

  .teachers-panel{ padding:24px; }
  .teachers-panel-body{ flex-direction:column; gap:20px; }
  .teachers-sidebar{ width:100%; }
  .teachers-sidebar .course-filters{ flex-direction:row; }
  .teacher-tabs{ flex-direction:row; flex-wrap:wrap; }
  .teacher-photo-wrap{ flex-direction:column; max-width:100%; width:100%; }
  .teacher-photo-half{ width:100%; }

  .course-teacher-photo{ width:100%; height:260px; }
  .course-teachers-pair{ grid-template-columns:1fr; }
  .course-teacher-photo-large{ max-width:220px; margin:0 auto; }
}

/* Узкие экраны (600px) */
@media (max-width: 600px){
  .course-2col-grid{ grid-template-columns:1fr; }
}

/* Совсем маленькие экраны */
@media (max-width: 520px){
  section{ padding:52px 0; }
  .hero-cta .btn{ width:100%; }
  .cta-final{ padding:36px 24px; }
  .hero-sticker{ right:0; padding:12px 16px; }
  .hero-sticker .price{ font-size:21px; }
}