/* ============================================================================
   Тема нового дизайну — розділ «Курси» (views/beta-theme/teacher-course).
   Префікс класів: tb-courses-. Токени й базові компоненти — у beta.css.
   Класичні класи (.upgrade-teacher-*, .teacher-study-*, .section-list-item-link-*) лишаються в розмітці
   заради JS (app_course_test.js, upgradeApp) і перестилізовані тут у межах .tb-courses.
   ========================================================================== */

/* ---------- спільне ---------- */
.tb-courses .lucide { width: 18px; height: 18px; flex: none; }
.tb-courses .tb-btn .lucide { width: 18px; height: 18px; }
/* кнопки розділу: радіус 12px, висота 40–52px; класичні .btn-filter-hide / .webinar-default-actions-btn не мають перебивати радіус */
.tb-courses .tb-btn, .tb-courses .tb-btn.webinar-default-actions-btn { border-radius: 12px; }
.tb-courses .tb-courses-filter-actions .upgrade-teacher-show-filter-block .tb-btn.btn-filter-hide { width: auto; min-width: 110px; border-radius: 12px; } /* перебиває класичне правило (0,3,0) з radius 4px */
/* .tb-btn-sm — розмір з дизайн-системи (34px), як на інших сторінках кабінету */
.tb-courses .tb-btn-lg { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.tb-courses .tb-chip .lucide { width: 13px; height: 13px; }
.tb-courses .tb-lib-h2 .lucide { width: 20px; height: 20px; vertical-align: -4px; }
.tb-courses .tb-progress { width: 100%; height: 10px; margin: 0; }
.tb-courses .tb-progress i.progress-bar { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 99px; background: var(--go); box-shadow: none; transition: width .3s; }
.tb-courses .tb-progress .progress-bar { background-image: none; }
.tb-courses-progress { display: grid; gap: 8px; }
.tb-courses-progress-label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.tb-courses-progress-label b { color: var(--ink); font-weight: 800; }
.tb-courses-progress-label .lucide { color: var(--go-d); }
.tb-courses-cost { font: 900 22px/1 var(--f-display); color: var(--ink); }
/* body.tb-chrome: класичний .teacher-course-intro .content-block h3 (600) вантажиться пізніше з тією ж специфічністю */
body.tb-chrome .tb-courses .tb-lib-text :is(h1, h2, h3, h4), .tb-courses .tb-lib-text h1, .tb-courses .tb-lib-text h2, .tb-courses .tb-lib-text h3, .tb-courses .tb-lib-text h4 { margin: 18px 0 8px; font-family: var(--f-display); font-weight: 800; }
.tb-courses .tb-lib-text h2 { font-size: 20px; }
.tb-courses .tb-lib-text h3 { font-size: 18px; }
.tb-courses .tb-lib-text img { max-width: 100%; height: auto; }
.tb-courses .tb-lib-text ul, .tb-courses .tb-lib-text ol { padding-left: 22px; margin: 0 0 12px; }
.tb-courses .tb-lib-text iframe { max-width: 100%; }
.tb-courses .tb-lib-text table { max-width: 100%; }
.tb-courses .tb-note .lucide { width: 16px; height: 16px; vertical-align: -3px; }
.tb-courses .tb-note p:last-child { margin-bottom: 0; }
.tb-courses .tb-empty .tb-empty-art .lucide { width: 56px; height: 56px; color: var(--coral); }

/* FAQ (каталог, сторінка курсу, вкладка на сторінці навчання, сцени коментарів) */
.tb-courses-faq-item { border: 2px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.tb-courses-faq-item:last-child { margin-bottom: 0; }
.tb-courses-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font: 700 15px/1.35 var(--f-display); color: var(--ink); cursor: pointer; user-select: none; }
.tb-courses-faq-q:hover { background: var(--paper); }
.tb-courses-faq-q .lucide { width: 18px; height: 18px; color: var(--ink-3); transition: transform .15s; }
.tb-courses-faq-q.is-open .lucide { transform: rotate(180deg); }
.tb-courses-faq-item.is-action .tb-courses-faq-q { color: var(--orange-d); }
.tb-courses-faq-item.is-action .tb-courses-faq-q .lucide { color: var(--orange-d); }
.tb-courses-faq-a { display: none; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.tb-courses-faq-a p:last-child { margin-bottom: 0; }

/* ---------- каталог /courses ---------- */
.tb-courses-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tb-courses-benefit { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "img title" "img info"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-courses-benefit-img { grid-area: img; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff8e1; }
.tb-courses-benefit-img img { width: 36px; height: 36px; }
.tb-courses-benefit-title { grid-area: title; font: 800 15px/1.25 var(--f-display); color: var(--ink); }
.tb-courses-benefit-title br { display: none; }
.tb-courses-benefit-info { grid-area: info; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.tb-courses-filter-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 12px; }
.tb-courses-filter-actions .upgrade-teacher-drop-filter-block a.tb-chip { text-decoration: none; cursor: pointer; }
.tb-courses-filter-actions .upgrade-teacher-drop-filter-block a.tb-chip .lucide { width: 13px; height: 13px; }
.tb-courses-filter-actions .btn-filter-hide.active { --c: var(--ink); --c-d: var(--ink-shadow); --t: #fff; border-color: var(--ink); }
.tb-courses-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: 18px; }
.tb-courses-main { min-width: 0; }
.tb-courses-aside { display: grid; gap: 12px; min-width: 0; }
.tb-courses-aside .tb-btn { width: 100%; }
.tb-courses-filter-card { padding: 6px 14px 10px; }
/* список подій (класичні партіали /direction/_items_list, _item, _item_client) */
.tb-courses-catalog .backlist > h3, .tb-courses-catalog .frontlist h3 { margin: 0 0 12px; font: 800 20px/1.2 var(--f-display); color: var(--ink); } /* без верхнього відступу — колонки списку й фільтра починаються на одній лінії */
.tb-courses-catalog .upgrade-teacher-items { position: relative; display: grid; gap: 12px; margin-bottom: 22px; }
.tb-courses-catalog .upgrade-teacher-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .7); font-size: 28px; color: var(--ink-3); }
.tb-courses-catalog .upgrade-teacher-item { margin: 0; }
.tb-courses-catalog .upgrade-teacher-item-card { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; min-height: 120px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: transform .12s, box-shadow .12s; }
.tb-courses-catalog .upgrade-teacher-item-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-2); color: var(--ink); }
.tb-courses-catalog .upgrade-teacher-item-card-image { position: relative; display: grid; place-items: center; min-height: 120px; background: var(--paper) center / cover no-repeat; }
.tb-courses-catalog .upgrade-teacher-item-card-image .fa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(38, 50, 56, .75); color: #fff; font-size: 16px; padding-left: 3px; }
.tb-courses-catalog .upgrade-teacher-item-card-content { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; min-width: 0; }
.tb-courses-catalog .upgrade-teacher-item-card-head { font: 800 16px/1.3 var(--f-display); color: var(--ink); }
.tb-courses-catalog .upgrade-teacher-item-card:hover .upgrade-teacher-item-card-head { color: var(--orange-d); }
.tb-courses-catalog .teacher-course-hours { display: flex; flex-wrap: wrap; gap: 4px; }
.tb-courses-catalog .teacher-course-hours .badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; font: 800 12px/1.2 var(--f-body); letter-spacing: .02em; background: rgba(38, 50, 56, .07); color: var(--ink-2); text-shadow: none; }
.tb-courses-catalog .teacher-course-hours .badge.yellow, .tb-courses-catalog .teacher-course-hours .badge-accented { background: var(--sun); color: #3e2c00; }
.tb-courses-catalog .teacher-course-hours .badge.course-badge { background: var(--grape); color: #fff; }
.tb-courses-catalog .teacher-course-hours .badge.webinar-badge { background: var(--sky); color: #fff; }
.tb-courses-catalog .teacher-course-hours .badge.conference-badge { background: var(--pink); color: #fff; }
.tb-courses-catalog .upgrade-teacher-item-card-date { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tb-courses-catalog .upgrade-teacher-item-card-authors { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.tb-courses-catalog .upgrade-teacher-item-card-author-name { font-weight: 600; color: var(--ink-2); }
.tb-courses-catalog .upgrade-teacher-item-card-author-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--go); }
.tb-courses-catalog .upgrade-teacher-item-card-vector { position: absolute; right: 14px; bottom: 12px; }
.tb-courses-catalog .upgrade-teacher-item-card-vector img { width: 80px; }
/* фільтр (класичний партіал /direction/_sidebar) */
.tb-courses-catalog .upgrade-teacher-filter-title { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; font: 800 14px/1.2 var(--f-display); color: var(--ink); cursor: pointer; border-top: 1px solid var(--line); }
.tb-courses-catalog .upgrade-teacher-filter-title:first-child { border-top: 0; }
.tb-courses-catalog .upgrade-teacher-filter-title .caret { margin: 0; color: var(--ink-3); }
.tb-courses-catalog .upgrade-teacher-filter-title .caret-reverse { display: none; }
.tb-courses-catalog .upgrade-teacher-filter-block { padding-bottom: 8px; }
.tb-courses-catalog .upgrade-teacher-filter-block .form-group { margin-bottom: 4px; }
.tb-courses-catalog .upgrade-teacher-filter-block .checkbox { margin: 0; }
.tb-courses-catalog .upgrade-teacher-filter-block .checkbox label { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 14px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.tb-courses-catalog .upgrade-teacher-filter-block .checkbox input[type=checkbox] { position: static; width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--go); }
.tb-courses-catalog .upgrade-teacher-filter-block-more a { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--orange-d); }
.tb-courses-faq.upgrade-teacher-content-block, .tb-courses-seo-text, .tb-courses-links { margin-bottom: 16px; }
.tb-courses-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tb-courses-links ul li a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.tb-courses-links ul li a:hover { background: #fff8e1; color: var(--orange-d); }

/* ---------- сторінка курсу /learn/<slug> ---------- */
.tb-courses-intro-head { grid-template-columns: 64px minmax(0, 1fr); }
.tb-courses-intro-kind { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grape); color: #fff; }
.tb-courses-intro-kind .lucide { width: 32px; height: 32px; }
.tb-courses-intro-head .tb-page-h1 { margin: 8px 0 8px; }
.tb-courses-intro-short { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tb-courses-intro-short p:last-child { margin-bottom: 0; }
.tb-courses-intro-authors { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.tb-courses-intro-share { margin-top: 12px; }
.tb-courses-intro-share .tb-btn { text-decoration: none; }
.tb-courses-invite { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); background: var(--ink); }
.tb-courses-invite img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; }
.tb-courses-invite-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); color: #fff; font: 800 14px/1.2 var(--f-display); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tb-courses-invite-btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--go); color: #fff; box-shadow: 0 4px 0 var(--go-d); transition: transform .12s; }
.tb-courses-invite-btn .lucide { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.tb-courses-invite:hover .tb-courses-invite-btn { transform: scale(1.06); }
.tb-courses-intro-actions { display: grid; gap: 14px; }
.tb-courses-intro-actions .action-buttons { display: grid; gap: 12px; }
.tb-courses-intro-actions .tb-btn { width: 100%; }
.tb-courses-checkout { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--paper); }
/* body.tb-chrome: класичний .new-webinar-checkout p (18px/300) вантажиться пізніше з тією ж специфічністю */
body.tb-chrome .tb-courses-checkout p, .tb-courses-checkout p { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.tb-courses-checkout p .lucide { width: 16px; height: 16px; margin-top: 1px; color: var(--mint-d); }
.tb-courses-checkout p + p .lucide { color: var(--ink-3); }
.tb-courses-checkout .tb-courses-cost { margin: 4px 0 2px; text-align: center; }
.tb-courses-cta-small { font-size: 13px; line-height: 1.4; text-align: center; color: var(--ink-3); }
.tb-courses-consist ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tb-courses-consist ul li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tb-courses-consist ul li .lucide { width: 18px; height: 18px; color: var(--go-d); }
.tb-courses-cert { padding: 8px; border-radius: 14px; background: var(--paper); text-align: center; }
.tb-courses-cert span { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.tb-courses-cert img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.tb-courses-modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tb-courses-module { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.tb-courses-module-name { display: block; padding: 12px 16px; background: var(--paper); font: 800 15px/1.3 var(--f-display); color: var(--ink); }
.tb-courses-module .course-program-units, .tb-courses-module .course-program-topics { list-style: none; margin: 0; padding: 0; }
.tb-courses-blocks { list-style: none; margin: 0; padding: 6px 8px; display: grid; gap: 2px; }
.tb-courses-blocks li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.tb-courses-blocks li:hover { background: var(--paper); }
.tb-courses-blocks li .lucide { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); }
.tb-courses-blocks li.is-test .lucide { color: var(--mint-d); }
.tb-courses-blocks li.is-test { font-weight: 700; }
.tb-courses-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; }
.tb-courses-author + .tb-courses-author { border-top: 1px solid var(--line); }
.tb-courses-author-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--go); }
.tb-courses-author-name { margin-bottom: 6px; font: 800 16px/1.25 var(--f-display); color: var(--ink); }
.tb-courses-author-body p:last-child { margin-bottom: 0; }

/* ---------- «Мої курси» /courses/personal і збережені ---------- */
.tb-courses-personal-grid .tb-lib-main { grid-area: main; }
.tb-courses-list { display: grid; gap: 12px; }
.tb-courses-item { grid-template-columns: 148px minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 14px 16px; }
.tb-courses-item-img { position: relative; display: grid; place-items: center; width: 148px; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--paper) center / cover no-repeat; overflow: hidden; }
.tb-courses-item-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(38, 50, 56, .75); color: #fff; }
.tb-courses-item-play .lucide { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.tb-courses-item-body { display: grid; gap: 8px; min-width: 0; }
.tb-courses-item-title { display: block; margin: 0; font: 800 16px/1.3 var(--f-display); color: var(--ink) !important; }
.tb-courses-item-title a { color: var(--ink); }
.tb-courses-item-title:hover, .tb-courses-item-title a:hover { color: var(--orange-d) !important; }
.tb-courses-item .tb-progress { max-width: 320px; }
.tb-courses-acts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.tb-courses-act { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.tb-courses-act .lucide { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); }
.tb-courses-act.is-done { color: var(--ink-3); }
.tb-courses-act.is-done .lucide { color: var(--mint-d); }
.tb-courses-act a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-courses-act a:hover { color: var(--orange-d); }
.tb-courses-item-go { flex: none; }
.tb-courses-item-go .tb-btn { text-decoration: none; }
.tb-courses-item-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grape); color: #fff; }
.tb-courses-item-ico .lucide { width: 28px; height: 28px; }
.tb-courses-bookmarks .bottom .tb-btn { text-decoration: none; }
.tb-courses-promo-classic { margin: 0; }

/* ---------- сторінки навчання (макет teacher-study) ---------- */
[ng-app="teacherStudy"] > .tb-embedded-wide > .row { margin: 0; }
[ng-app="teacherStudy"] > .tb-embedded-wide > .row > [class*="col-"] { padding: 0; }
.tb-embedded .tb-page.tb-courses-study-page { padding: 0; }
.tb-courses-study { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 100vh; background: var(--paper); font-family: var(--f-body); color: var(--ink); }
.tb-courses-study .teacher-study-nav, .tb-courses-topbar { position: sticky; top: 0; z-index: 100; height: auto; min-height: 60px; background: #fff; border-bottom: 2px solid var(--line); box-shadow: none; }
.tb-courses-topbar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px 20px; }
.tb-courses-logo { display: flex; flex: none; }
.tb-courses-logo img { height: 36px; width: auto; }
.tb-courses-topbar-name { flex: 1 1 auto; min-width: 0; font: 700 15px/1.3 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-courses-topbar-name a { color: var(--ink); }
.tb-courses-topbar-name a:hover { color: var(--orange-d); }
.tb-courses-topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tb-courses-topbar-right .teacher-study-actions { display: flex; align-items: center; }
.tb-courses-topbar-right .tb-btn { text-decoration: none; }
.tb-courses-topbar-progress { width: 220px; }
.tb-courses-topbar-progress .tb-courses-progress-label { font-size: 12.5px; }
.tb-courses-topbar-inline { padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); font: 700 14px/1.3 var(--f-display); }
.tb-courses-topbar-inline a { color: var(--ink); }
.tb-courses-study .teacher-study-content, .tb-courses-study-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; flex: 1; width: 100%; min-height: 0; }
.tb-courses-study .teacher-study-content-wide, .tb-courses-study-main { width: auto; min-width: 0; padding: 18px 20px 40px; }
.tb-courses-stage-wrap { display: grid; gap: 12px; margin-bottom: 18px; }
.tb-courses-study .teacher-study-content-block, .tb-courses-stage { position: relative; overflow: visible; padding: 20px 22px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
body.tb-chrome .tb-courses-block-title, .tb-courses-block-title { margin: 0 0 14px; font: 800 clamp(19px, 2.4vw, 24px)/1.25 var(--f-display); color: var(--ink); }
.tb-courses-block-title .lucide { width: 22px; height: 22px; vertical-align: -4px; color: var(--ink-3); }
.tb-courses-video { width: 100%; max-width: 960px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--ink); }
.tb-courses-video .embed-responsive { margin: 0; }
.tb-courses-text { background: transparent; }
.tb-courses-study .teacher-study-content-info, .tb-courses-info { display: grid; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-courses-info .study-content-info-inner { display: grid; gap: 14px; }
.tb-courses-info-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tb-courses-note { flex: 1 1 280px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tb-courses-note b { color: var(--orange-d); }
.tb-courses-done { flex: none; }
/* позначка «Матеріал засвоєно» (ng-class checked / toggleBlock) — і в змісті, і в бічній панелі */
.tb-courses .section-list-item-link-checkbox { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 14px 0 40px; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; font: 700 14px/1.2 var(--f-body); color: var(--ink); cursor: pointer; user-select: none; transition: background .12s, border-color .12s; }
.tb-courses .section-list-item-link-checkbox span { padding: 0; }
.tb-courses .section-list-item-link-checkbox:before { content: ''; position: absolute; left: 10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--line-2); border-radius: 6px; background: #fff; transition: background .12s, border-color .12s; }
.tb-courses .section-list-item-link-checkbox:after { content: ''; position: absolute; left: 10px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; opacity: 0; font: 0/0 a; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; transform: none; transition: opacity .12s; }
.tb-courses .section-list-item-link-checkbox:hover { border-color: var(--ink); }
.tb-courses .section-list-item-link-checkbox.checked { border-color: var(--mint); background: #e8f5e9; }
.tb-courses .section-list-item-link-checkbox.checked:before { background: var(--mint); border-color: var(--mint); }
.tb-courses .section-list-item-link-checkbox.checked:after { opacity: 1; }
.tb-courses-addition { padding-top: 14px; border-top: 1px solid var(--line); }
.tb-courses-attaches { margin-top: 14px; }
.tb-courses-attaches-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 800 13px/1.2 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.tb-courses-attaches-label .lucide { width: 15px; height: 15px; }
.tb-courses-attach-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-courses-attach { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.tb-courses-attach:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.tb-courses-attach .lucide { width: 18px; height: 18px; color: var(--ink-3); }
.tb-courses-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tb-courses-nav .tb-btn { text-decoration: none; }
/* класичне правило .teacher-study .teacher-study-content .teacher-study-content-wide .teacher-study-prev-step (0,4,0; site.full.css
   підключається ПІСЛЯ теми) робить стрілки absolute з темним тлом — перебиваємо вищою специфічністю */
.tb-courses-study .teacher-study-content .teacher-study-content-wide .tb-courses-nav .teacher-study-prev-step,
.tb-courses-study .teacher-study-content .teacher-study-content-wide .tb-courses-nav .teacher-study-next-step,
.tb-courses-study .teacher-study-prev-step, .tb-courses-study .teacher-study-next-step { position: static; top: auto; left: auto; right: auto; width: auto; height: auto; min-height: 44px; padding: 10px 18px; line-height: 1.1; background-color: var(--c); color: var(--t); text-decoration: none; z-index: auto; }
.tb-courses-study .teacher-study-prev-step.tb-btn-line { --c: var(--card); }
.tb-courses-study .teacher-study-next-step.tb-btn-go { --c: var(--go); }
.tb-courses-study .alert.tb-note { margin-bottom: 14px; }
.tb-courses-more { margin-top: 4px; }
.tb-courses-study .teacher-study-more-info-inner { width: auto; }
.tb-courses-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; }
.tb-courses-tabs > li { float: none; margin: 0; }
.tb-courses-tabs > li > a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 6px 14px; border: 2px solid var(--line) !important; border-radius: 12px !important; background: #fff; color: var(--ink-2); font: 700 14px/1.2 var(--f-body); }
.tb-courses-tabs > li > a:hover { background: var(--paper); color: var(--ink); }
.tb-courses-tabs > li.active > a, .tb-courses-tabs > li.active > a:hover, .tb-courses-tabs > li.active > a:focus { background: var(--ink); border-color: var(--ink) !important; color: #fff; }
.tb-courses-tabs > li > a .lucide { width: 16px; height: 16px; }
.tb-courses-tab-content { padding: 18px 20px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
/* коментарі (класичний _comment_item + форма) */
.tb-courses-comments { width: auto; }
.tb-courses-comments-list { display: grid; gap: 10px; }
.tb-courses .teacher-study-comment-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.tb-courses .teacher-course-comments-list-children { margin-left: 32px; display: grid; gap: 10px; }
.tb-courses .teacher-study-comment-item .user-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grape); color: #fff; font: 800 14px/1 var(--f-display); }
.tb-courses .teacher-study-comment-item .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-courses .teacher-study-comment-body { font-size: 14.5px; line-height: 1.5; color: var(--ink); word-break: break-word; }
.tb-courses .teacher-study-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.tb-courses .teacher-study-comment-author a { color: var(--ink-2); font-weight: 700; }
.tb-courses .teacher-study-comment-reply a { color: var(--ink-2); font-weight: 700; }
.tb-courses .teacher-study-comment-reply a.btn-delete { color: var(--coral-d) !important; }
.tb-courses-scene { margin-top: 18px; }
.tb-courses-scene .form-group { margin-bottom: 0; }
.tb-courses-scene-cap { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tb-courses-tips { margin-bottom: 12px; }
.tb-courses-tips b { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--ink); }
.tb-courses-tips ul { margin: 0; padding-left: 22px; font-weight: 500; }
.tb-courses-comment-form .tb-field { margin-bottom: 12px; }
.tb-courses-comment-form .help-block { font-size: 13px; color: var(--coral-d); }
.tb-courses-comment-form .form-group { margin-bottom: 0; }
/* вкладка «Про курс» */
.tb-courses-about-block { padding: 14px 0; border-top: 1px solid var(--line); }
.tb-courses-about-block:first-of-type { border-top: 0; padding-top: 0; }
.tb-courses-about-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.tb-courses-about-cap { font: 800 12.5px/1.3 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.tb-courses-about .tb-lib-info-row > span .lucide { width: 15px; height: 15px; }
.tb-courses-about .tb-btn { text-decoration: none; }
/* бічна панель «Матеріали курсу» */
.tb-courses-study .teacher-study-sidebar, .tb-courses-side { position: sticky; top: 60px; right: auto; display: flex; flex-direction: column; width: auto; height: calc(100vh - 60px); max-height: calc(100vh - 60px); border-left: 2px solid var(--line); background: #fff; overflow: hidden; }
.tb-courses-side-head { display: flex; align-items: center; justify-content: flex-start !important; gap: 8px; flex: none; padding: 14px 16px; border-bottom: 2px solid var(--line); font: 800 15px/1.2 var(--f-display); color: var(--ink); }
.tb-courses-side-head .lucide { color: var(--ink-3); }
.tb-courses-side-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tb-courses-side-section { border-bottom: 1px solid var(--line); }
.tb-courses-side-section-name { padding: 12px 16px 8px; font: 800 13px/1.3 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); }
.tb-courses-side-list { list-style: none; margin: 0; padding: 6px 8px; display: grid; gap: 2px; }
.tb-courses-side-item { margin: 0; padding: 0; border-radius: 12px; }
.tb-courses-side-item.active { background: #fff8e1; box-shadow: inset 0 0 0 2px var(--go); }
.tb-courses-side-item .section-list-item-link { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 8px; }
.tb-courses-side-item .section-list-item-link-checkbox { min-height: 24px; width: 24px; padding: 0; border-radius: 7px; margin-top: 1px; }
.tb-courses-side-item .section-list-item-link-checkbox:before { left: 0; width: 20px; height: 20px; }
.tb-courses-side-item .section-list-item-link-checkbox:after { left: 0; }
.tb-courses-side-item .section-list-item-link-checkbox-null { display: block; width: 24px; }
.tb-courses-side-item .section-list-item-link-content { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.tb-courses-side-item .section-list-item-link-content-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tb-courses-side-item .section-list-item-link-content-name a { color: var(--ink); font-weight: 700; }
.tb-courses-side-item .section-list-item-link-content-name .lucide { width: 15px; height: 15px; vertical-align: -3px; color: var(--ink-3); }
.tb-courses-side-item a.section-list-item-link-content:hover .section-list-item-link-content-name, .tb-courses-side-item .section-list-item-link-content-name a:hover { color: var(--orange-d); }
.tb-courses-side-item .section-list-item-link-content-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tb-courses-side-item .section-list-item-link-content-meta-type { display: inline-flex; align-items: center; gap: 4px; }
.tb-courses-side-item .section-list-item-link-content-meta-type .lucide { width: 13px; height: 13px; }
.tb-courses-side-item .text-warning { color: var(--orange-d); }
.tb-courses-side-item .text-success { color: var(--mint-d); }
/* тест */
.tb-courses-loader { padding: 40px 0; color: var(--ink-3); }
.tb-courses-spin { width: 36px; height: 36px; animation: tb-courses-spin 1s linear infinite; }
@keyframes tb-courses-spin { to { transform: rotate(360deg); } }
.tb-courses-test-intro { display: grid; gap: 12px; }
.tb-courses-test-intro .tb-chip { justify-self: start; }
.tb-courses-test-intro .tb-courses-block-title { margin: 0; }
.tb-courses-test-intro .tb-btn { justify-self: start; text-decoration: none; }
.tb-courses-test-meta { font-size: 14.5px; color: var(--ink-2); }
.tb-courses-test-meta b { color: var(--ink); }
.tb-courses-attempts { display: grid; gap: 12px; margin-top: 4px; }
.tb-courses-attempts-min { font-size: 14px; font-style: italic; color: var(--ink-2); }
.tb-courses-attempts-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-courses-attempts-stats .tb-stat-mini { min-width: 110px; padding: 10px 12px; border-radius: 14px; background: var(--paper); }
.tb-courses-rules-note b { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--ink); }
.tb-courses-rules { margin: 0; padding-left: 22px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.tb-courses-rules li + li { margin-top: 4px; }
.tb-courses-wait { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; color: var(--coral-d) !important; }
.tb-courses-result-ok { margin: 0; }
.tb-courses-result-ok .teacher-study-test-result-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 800 16px/1.3 var(--f-display); color: var(--mint-d) !important; }
.tb-courses-result-ok .teacher-study-test-result-info { font-size: 14.5px; color: var(--ink); }
.tb-courses-test-run { display: grid; gap: 16px; }
.tb-courses-question-caption { margin-bottom: 10px; font: 800 12.5px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tb-courses-question-text { font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.tb-courses-question-img { margin-top: 12px; }
.tb-courses-question-img img { max-width: 100%; max-height: 360px; border-radius: 12px; }
.tb-courses-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 16px; }
.tb-courses-answer { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 56px; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s, transform .08s; }
.tb-courses-answer:hover { border-color: var(--ink); }
.tb-courses-answer.active { border-color: var(--sky); background: #e8f0fe; }
.tb-courses-answer.correct { border-color: var(--mint); background: #e8f5e9; }
.tb-courses-answer.fail { border-color: var(--coral); background: #fbe9e7; }
.tb-courses-answer-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink-3); }
.tb-courses-answer-mark i { display: grid; }
.tb-courses-answer-mark .lucide { width: 24px; height: 24px; }
.tb-courses-answer.active .tb-courses-answer-mark { color: var(--sky); }
.tb-courses-answer.correct .tb-courses-answer-mark { color: var(--mint-d); }
.tb-courses-answer.fail .tb-courses-answer-mark { color: var(--coral-d); }
.tb-courses-answer-text { font-size: 15px; line-height: 1.45; color: var(--ink); align-self: center; }
.tb-courses-answer-text p:last-child { margin-bottom: 0; }
.tb-courses-answer-img { grid-column: 2; }
.tb-courses-answer-img img { max-width: 100%; max-height: 220px; border-radius: 10px; }
.tb-courses-save { display: flex; justify-content: flex-end; }
.tb-courses-save .tb-btn { text-decoration: none; }
.tb-courses-result { display: grid; justify-items: center; gap: 8px; padding: 26px 20px; border-radius: 18px; text-align: center; }
.tb-courses-result.is-ok { background: #e8f5e9; border: 2px solid var(--mint); }
.tb-courses-result.is-fail { background: #fff8e1; border: 2px solid var(--go); }
.tb-courses-result-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink-2); }
.tb-courses-result-ico .lucide { width: 32px; height: 32px; }
.tb-courses-result.is-ok .tb-courses-result-ico { color: var(--mint-d); }
.tb-courses-result .teacher-study-test-result-head { font: 800 20px/1.3 var(--f-display); color: var(--ink); }
.tb-courses-result .teacher-study-test-result-info { font-size: 15px; color: var(--ink-2); }
.tb-courses-retry { display: grid; gap: 14px; justify-items: center; margin-top: 18px; text-align: center; }
.tb-courses-retry .tb-btn { text-decoration: none; }
.tb-courses-retry p { margin: 0; }
.tb-courses-retry .tb-note { width: 100%; margin: 0; text-align: left; }
/* закритий тест, відгук, підвал */
.tb-courses-closed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
.tb-courses-closed-main { display: grid; gap: 14px; }
.tb-courses-checkout-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tb-courses-checkout-row .tb-btn { text-decoration: none; }
.tb-courses-fine { margin: 0; font-size: 13px; font-style: italic; line-height: 1.5; color: var(--ink-3); }
.tb-courses-fine a { color: var(--ink-2); font-weight: 700; }
.tb-courses-review-stage { display: grid; }
.tb-courses-review-box { width: 100%; max-width: 600px; margin: 0 auto; }
.tb-courses-review { text-align: center; }
.tb-courses-review-head { margin-bottom: 14px; font: 800 20px/1.3 var(--f-display); color: var(--ink); }
.tb-courses-review-stars { display: inline-flex; gap: 6px; margin-bottom: 16px; }
.tb-courses-review-stars span { display: inline-grid; cursor: pointer; color: var(--line-2); transition: transform .1s; }
.tb-courses-review-stars span:hover { transform: scale(1.1); }
.tb-courses-review-stars span.starHover { color: var(--go); }
.tb-courses-review-stars i { display: grid; }
.tb-courses-review-stars .lucide { width: 38px; height: 38px; }
.tb-courses-review-stars .tb-courses-star-f .lucide { fill: currentColor; }
.tb-courses-review .review-form-textarea p { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tb-courses-review .tb-field { margin-bottom: 12px; }
.tb-courses .tb-textarea.form-control { border-radius: 12px; border: 2px solid var(--line-2); box-shadow: none; } /* класичний .form-control не має перебивати радіус поля */
.tb-courses-review-thanks { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; font: 800 20px/1.3 var(--f-display); color: var(--mint-d); }
.tb-courses-review-thanks .lucide { width: 28px; height: 28px; }
.tb-courses-modal .modal-content { border-radius: 18px; border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 20px 50px rgba(0, 0, 0, .2); font-family: var(--f-body); }
.tb-courses-modal .modal-body { padding: 24px; }
.tb-courses-footer { padding: 14px 20px; border-top: 2px solid var(--line); background: #fff; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- легасі-сторінки модуля/розділу/теми, сплата, крихти ---------- */
.tb-courses-crumbs { margin: 0 0 14px; }
.tb-courses-crumbs span[aria-hidden] { color: var(--ink-3); }
.tb-courses-legacy { max-width: 1000px; margin: 0 auto; padding: 18px 16px 40px; }
.tb-cab .tb-courses-legacy { max-width: none; padding: 0; }
.tb-courses-legacy-body { display: grid; gap: 14px; margin-bottom: 14px; }
.tb-courses-legacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-courses-legacy-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.tb-courses-legacy-list li .lucide { color: var(--ink-3); }
.tb-courses-legacy-list li a { color: var(--ink); }
.tb-courses-legacy-list li a:hover { color: var(--orange-d); }
.tb-courses-legacy-blocks { display: grid; gap: 14px; }
.tb-courses-test-info { display: grid; gap: 12px; }
.tb-courses-test-info-action { display: grid; gap: 6px; justify-items: start; }
.tb-courses-test-info-action p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tb-courses-test-info .tb-btn { text-decoration: none; }
.tb-courses-limited .close { margin-left: 10px; }
.tb-courses-payment-block { display: grid; gap: 10px; justify-items: start; }
.tb-courses-payment-block p { margin: 0; }
.tb-courses-payment-block .tb-btn { text-decoration: none; }
.tb-courses-award-fail { max-width: 640px; margin: 40px auto; }
.tb-courses-award-fail a { color: var(--ink); font-weight: 700; }

/* ---------- адаптив ---------- */
@media (max-width: 991px) {
    .tb-courses-benefits { grid-template-columns: 1fr; gap: 8px; }
    .tb-courses-grid { grid-template-columns: 1fr; }
    .tb-courses-catalog .upgrade-teacher-item-card { grid-template-columns: 1fr; }
    .tb-courses-catalog .upgrade-teacher-item-card-image.hidden-xs, .tb-courses-catalog .upgrade-teacher-item-card-image.hidden-sm { display: none !important; }
    .tb-courses-catalog .frontlist .upgrade-teacher-item-card-image { min-height: 150px; }
    .tb-courses-study .teacher-study-content, .tb-courses-study-body { grid-template-columns: 1fr; }
    .tb-courses-study .teacher-study-sidebar, .tb-courses-side { position: static; display: flex; height: auto; max-height: none; border-left: 0; border-top: 2px solid var(--line); }
    .tb-courses-side-body { max-height: 70vh; }
    .tb-courses-topbar-progress { width: 150px; }
    .tb-courses-topbar-in { padding: 8px 14px; gap: 10px; }
    .tb-courses-about-row { grid-template-columns: 1fr; gap: 6px; }
    .tb-courses-closed-grid { grid-template-columns: 1fr; }
    .tb-courses-closed-aside { max-width: 260px; }
}
@media (max-width: 640px) {
    .tb-courses .tb-btn { width: 100%; }
    .tb-courses .tb-chip, .tb-courses .tb-chip-btn { white-space: normal; }
    .tb-courses-filter-actions { justify-content: stretch; }
    .tb-courses-filter-actions > div { flex: 1 1 100%; }
    .tb-courses-filter-actions .upgrade-teacher-drop-filter-block a.tb-chip { width: 100%; justify-content: center; }
    .tb-courses-benefit { grid-template-columns: 48px minmax(0, 1fr); }
    .tb-courses-benefit-img { width: 48px; height: 48px; }
    .tb-courses-intro-head { grid-template-columns: 1fr; }
    .tb-courses-intro-kind { display: none; }
    .tb-courses-intro-share .tb-btn { width: 100%; }
    .tb-courses-author { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
    .tb-courses-author-photo img { width: 56px; height: 56px; }
    .tb-courses-item { grid-template-columns: 1fr; gap: 10px; }
    .tb-courses-item-img { width: 100%; max-width: none; } /* обкладинка на всю ширину картки, як у каталогах (була 260px з порожнечею праворуч) */
    .tb-courses-item .tb-progress { max-width: none; }
    .tb-courses-item-go .tb-btn { width: 100%; }
    .tb-courses-bookmarks .tb-lib-item { grid-template-columns: 1fr; }
    .tb-courses-topbar-in { flex-wrap: wrap; }
    .tb-courses-topbar-right { width: 100%; margin-left: 0; justify-content: space-between; }
    .tb-courses-topbar-right .tb-btn { width: auto; }
    .tb-courses-topbar-progress { width: 100%; }
    .tb-courses-study .teacher-study-content-wide, .tb-courses-study-main { padding: 12px 12px 28px; }
    .tb-courses-study .teacher-study-content-block, .tb-courses-stage { padding: 14px 14px; border-radius: 14px; }
    .tb-courses-video { border-radius: 10px; }
    .tb-courses-info { padding: 12px 14px; }
    .tb-courses-done, .tb-courses-done .section-list-item-link-checkbox { width: 100%; justify-content: center; }
    .tb-courses-nav { flex-direction: column; }
    .tb-courses-nav > span { display: none; }
    .tb-courses-nav .tb-btn { width: 100%; }
    .tb-courses-tabs > li { flex: 1 1 auto; }
    .tb-courses-tabs > li > a { width: 100%; justify-content: center; }
    .tb-courses-tab-content { padding: 14px; }
    .tb-courses .teacher-course-comments-list-children { margin-left: 14px; }
    .tb-courses-attach { width: 100%; }
    .tb-courses-answers { grid-template-columns: 1fr; }
    .tb-courses-question-text { font-size: 16px; }
    .tb-courses-attempts-stats .tb-stat-mini { flex: 1 1 auto; }
    .tb-courses-review-stars .lucide { width: 32px; height: 32px; }
    .tb-courses-side-body { max-height: 60vh; }
    .tb-courses-legacy { padding: 12px 12px 28px; }
}
/* сторінка курсу: класичні правила .teacher-course-intro (absolute-бічна панель, тіні, відступи) не мають діяти в темі */
.tb-courses-single .teacher-course-intro .course-intro-action-sidebar { position: static !important; width: auto !important; margin: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; color: inherit; }
.tb-courses-single .teacher-course-intro .course-intro-action-sidebar .course-info { padding: 16px 18px; }
.tb-courses-single .course-program, .tb-courses-single .tb-courses-program { position: static !important; float: none !important; width: auto !important; max-width: none !important; transform: none !important; }

/* ============================================================================
   Перебивання класичних правил макета teacher-study та сторінки курсу.
   site.full.css підключається ПІСЛЯ beta.css/theme/*.css, тому класичні селектори
   (.teacher-study .teacher-study-content …, (0,2,0)–(0,8,1)) вигравали в теми за порядком/специфічністю:
   фіксована висота шапки 56px, flex-макет 75%/25%, position:fixed бічної панелі, темне тло
   .video-block, max-width:800px внутрішніх блоків, FontAwesome-галочки «Матеріал засвоєно»,
   темний підвал. Нижче — ті самі властивості з вищою специфічністю (префікс .tb-courses-study-page).
   ========================================================================== */
.tb-courses-study-page .teacher-study .teacher-study-nav { height: auto; min-height: 60px; box-shadow: none; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-logo { float: none; padding: 0; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-header-name { float: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); max-width: none; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-nav-right-side { float: none; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-nav-right-side .teacher-study-progress { width: 220px; margin: 0; padding: 0; border: 0; float: none; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-nav-right-side .teacher-study-progress .teacher-study-progress-label { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-nav-right-side .teacher-study-progress .progress { height: 10px; margin: 0; border-radius: 99px; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-nav-right-side .teacher-study-actions { float: none; margin: 0; padding: 0; }
.tb-courses-study-page .teacher-study .teacher-study-nav .teacher-study-add-review { padding: 0; }
.tb-courses-study-page .teacher-study .teacher-study-header-name-inline { height: auto; padding: 10px 16px; background: #fff; }
.tb-courses-study-page .teacher-study .teacher-study-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; min-height: 0; }
.tb-courses-study-page .teacher-study .teacher-study-content .teacher-study-content-wide { width: auto; min-width: 0; position: static; }
.tb-courses-study-page .teacher-study .teacher-study-content .teacher-study-sidebar { width: auto; }
.tb-courses-study-page .teacher-study .teacher-study-sidebar { position: sticky; top: 60px; right: auto; height: calc(100vh - 60px); max-height: calc(100vh - 60px); border-left: 2px solid var(--line); overflow: hidden; }
.tb-courses-study-page .teacher-study .teacher-study-sidebar .teacher-study-sidebar-header { padding: 14px 16px; border: 0; border-bottom: 2px solid var(--line); }
.tb-courses-study-page .teacher-study .teacher-study-sidebar .teacher-study-sidebar-content { border: 0; }
.tb-courses-study-page .teacher-study .teacher-study-content-block { overflow: visible; background: #fff; }
.tb-courses-study-page .teacher-study .teacher-study-content-block.video-block, .tb-courses-study-page .teacher-study .teacher-study-content-block.text-block { width: auto; max-width: none; margin: 0; overflow: visible; background: #fff; color: var(--ink); }
.tb-courses-study-page .teacher-study .teacher-study-content-block .block-video { background: var(--ink); }
.tb-courses-study-page .teacher-study .teacher-study-content-block .block-text { padding: 0; overflow: visible; background: transparent; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .block-test { max-width: none; padding: 0; background: transparent; }
.tb-courses-study-page .teacher-study .teacher-study-content-info { padding: 16px 18px; background: #fff; }
.tb-courses-study-page .teacher-study .teacher-study-content-info .study-content-info-inner { max-width: none; margin: 0; font-size: 14px; }
.tb-courses-study-page .teacher-study .teacher-study-content-info .study-content-info-inner .block-addition-content-attaches { margin-top: 0; }
.tb-courses-study-page .teacher-study .teacher-study-more-info { padding: 0; }
.tb-courses-study-page .teacher-study .teacher-study-more-info .teacher-study-more-info-inner { max-width: none; margin: 0; }
.tb-courses-study-page .teacher-study .teacher-study-footer { width: 100%; height: auto; display: block; padding: 14px 20px; background: #fff; color: var(--ink-3); }
.tb-courses-study-page .teacher-study .block-attaches .block-attach-item { margin: 0; }
.tb-courses-study-page .teacher-study .block-attaches .block-attach-item a { width: auto; display: inline-flex; padding: 6px 14px; background: var(--paper); color: var(--ink); }
.tb-courses-study-page .teacher-study .block-attaches .block-attaches-label { padding: 0; font-size: 13px; line-height: 1.2; }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-study-comment-item { padding: 12px 14px; border-bottom: 0; }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-study-comment-item:hover { background: var(--paper); }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-study-comment-item .teacher-study-comment-body { padding: 0; min-height: 0; }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-study-comment-item .teacher-study-comment-meta { margin-top: 6px; }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-course-comments-list.teacher-course-comments-list-children { margin-left: 32px; }
/* позначка «Матеріал засвоєно» (інфоблок і бічна панель): класичні FontAwesome-галочки :before/:after мають
   специфічність до (0,8,1) — лишаємо тему через !important */
.tb-courses .section-list-item-link-checkbox { padding: 0 14px 0 40px !important; border: 2px solid var(--line-2) !important; border-radius: 12px !important; line-height: 1.2 !important; background: #fff !important; }
.tb-courses .section-list-item-link-checkbox span { padding: 0 !important; }
.tb-courses .section-list-item-link-checkbox:before { left: 10px !important; top: 50% !important; width: 20px !important; height: 20px !important; margin-top: -10px !important; border: 2px solid var(--line-2) !important; border-radius: 6px !important; background-color: #fff !important; }
.tb-courses .section-list-item-link-checkbox:after { content: '' !important; font-family: inherit !important; font-size: 0 !important; left: 10px !important; top: 50% !important; width: 20px !important; height: 20px !important; margin: -10px 0 0 !important; opacity: 0 !important; transform: none !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat !important; }
.tb-courses .section-list-item-link-checkbox.checked { border-color: var(--mint) !important; background: #e8f5e9 !important; }
.tb-courses .section-list-item-link-checkbox.checked:before { background-color: var(--mint) !important; border-color: var(--mint) !important; }
.tb-courses .section-list-item-link-checkbox.checked:after { opacity: 1 !important; }
.tb-courses-side-item .section-list-item-link-checkbox { width: 24px !important; min-height: 24px !important; padding: 0 !important; border-radius: 7px !important; }
.tb-courses-side-item .section-list-item-link-checkbox:before, .tb-courses-side-item .section-list-item-link-checkbox:after { left: 0 !important; }
.tb-courses-side-item.active { background: #fff8e1 !important; }
/* сторінка курсу: класичний .teacher-course-intro .content-block (біла панель 30px) не має обгортати картки теми */
.tb-courses-single .teacher-course-intro .content-block { background: transparent; padding: 0; margin: 0; box-shadow: none; }
/* каталог: «хвостик» класичного .badge-accented:after не потрібен чіпам */
.tb-courses-catalog .teacher-course-hours .badge.badge-accented:after { display: none !important; }
@media (max-width: 991px) {
    .tb-courses-study-page .teacher-study .teacher-study-content { grid-template-columns: 1fr; }
    .tb-courses-study-page .teacher-study .teacher-study-sidebar { position: static; height: auto; max-height: none; border-left: 0; border-top: 2px solid var(--line); }
}
/* аватар у класичному _comment_item (.user-avatar--initials — absolute у класики) — у сітці картки коментаря */
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-study-comment-item .user-avatar--initials { position: static; width: 44px; height: 44px; line-height: 44px; border: 0; }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-study-comment-item .user-avatar--initials img { width: 44px; height: 44px; }
/* кнопки форми коментаря і старту тесту: класичні правила (0,4,0) ставлять radius 3px та uppercase */
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-course-comment-form .btn-submit-comment,
.tb-courses-study-page .teacher-study .teacher-study-content-block .block-test .btn-start-test { border-radius: 12px; text-transform: none; font-size: 15px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 var(--press) 0 var(--c-d); }
.tb-courses-study-page .teacher-study .teacher-study-content-block .block-test .btn-start-test.tb-btn-lg { font-size: 17px; }
.tb-courses-study-page .teacher-study .teacher-study-comments .teacher-course-comment-form textarea.form-control { border-radius: 12px; }
.tb-courses-study-page .teacher-study .tb-courses-block-title { font-weight: 800; font-family: var(--f-display); color: var(--ink); }
/* класика ховає бічну панель «Матеріали курсу» на ≤660px (display:none) без жодного перемикача — у темі панель
   лишається під змістом, щоб навігація модулями/розділами працювала і на телефоні */
@media (max-width: 660px) {
    .tb-courses-study-page .teacher-study .teacher-study-content .teacher-study-sidebar { display: flex; width: auto; }
    .tb-courses-study-page .teacher-study .teacher-study-footer { width: 100%; }
}
/* «Мої курси»: кроки (продовжити навчання / замовити свідоцтво) — ті самі чекбокси, що й у «Мої вебінари / конференції»
   (.tb-ev-tasks у theme/events.css): квадрат 17px, виконане — м’ятний з білою галочкою; посилання — сині жирні */
.tb-courses-acts { gap: 5px; }
.tb-courses-act { position: relative; display: block; padding-left: 26px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.tb-courses-act > .lucide { display: none; }
.tb-courses-act::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--line-2); background: #fff; box-sizing: border-box; }
.tb-courses-act.is-done { color: var(--ink-3); }
.tb-courses-act.is-done::before { border-color: var(--mint); background: var(--mint); }
.tb-courses-act.is-done::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.tb-courses-act a { color: var(--sky-d); font-weight: 700; text-decoration: none; }
.tb-courses-act a:hover { color: var(--orange-d); }
.tb-courses-act.is-done a { color: var(--ink-2); }

/* ---------- сторінки навчання вебінарів і конференцій (views/beta-theme/webinar/{learn,learn_online,exam,review}.php,
   views/beta-theme/conference/{study,review}.php) — той самий каркас, що й у курсів; тут лише їхні додаткові блоки ---------- */
.tb-study-live { vertical-align: 2px; margin-right: 4px; }
.tb-study-topbar-hint { max-width: 260px; font: 600 12.5px/1.35 var(--f-body); color: var(--ink-3); text-align: right; }
.tb-study-mobile-switch { padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.tb-study-mobile-switch .tb-seg { display: flex; width: 100%; }
.tb-study-mobile-switch .tb-seg > * { flex: 1 1 0; justify-content: center; }
/* картка замовлення свідоцтва в бічній панелі */
.tb-study-order { display: grid; gap: 8px; margin: 12px; padding: 14px; border-radius: 16px; background: var(--paper-2, #fff8e1); border: 2px solid var(--line); }
.tb-study-order-head { display: flex; align-items: center; gap: 6px; font: 800 13.5px/1.3 var(--f-display); color: var(--ink-2); }
.tb-study-order-head .lucide { width: 16px; height: 16px; color: var(--orange); }
.tb-study-order-price, .tb-study-order .webinar-cost { padding: 0; border: 0; background: none; font: 800 26px/1.1 var(--f-display); color: var(--ink); }
.tb-study-order .tb-btn { width: 100%; }
/* рекомендовані вебінари */
.tb-study-related { display: grid; gap: 6px; margin: 0; padding: 8px; list-style: none; }
.tb-study-related-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink) !important; text-decoration: none !important; }
.tb-study-related-item:hover { background: var(--paper); }
.tb-study-related-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.tb-study-related-item b { display: block; font: 700 13.5px/1.3 var(--f-body); }
.tb-study-related-item small { font-size: 12px; color: var(--ink-3); }
/* чат трансляції */
.tb-study-chat { min-height: 360px; background: var(--paper); }
.tb-study-chat iframe { display: block; border: 0; }
/* відгук на окремій сторінці */
.tb-study-review-card { text-align: center; }
.tb-study-review .review-form-textarea { max-width: 560px; margin: 0 auto; text-align: left; }
.tb-study-review .review-form-thanks { display: grid; gap: 12px; justify-items: center; font: 700 17px/1.4 var(--f-body); }
/* конференція: блок замовлення в першій вкладці */
.tb-courses-study .conference-checkout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.tb-courses-study .conference-checkout .webinar-cost { padding: 0; border: 0; background: none; font: 800 22px/1.1 var(--f-display); color: var(--ink); }
.tb-courses-study .conference-checkout > p { flex: 1 1 100%; margin: 0; }
.tb-study-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-study-note { display: grid; gap: 4px; margin: 16px 0 0; }
.tb-study-note-title { margin-bottom: 4px; }
.tb-study-note-gap { margin-top: 10px; }
.tb-study-note .row { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.tb-study-note .row > [class*="col-"] { float: none; width: auto; padding: 0; }
.tb-study-proof-ico .lucide { width: 36px; height: 36px; color: var(--mint); }
.tb-study-muted { font-size: 14px; font-style: italic; color: var(--ink-2); }
.tb-courses-study .conference-price { font-weight: 800; color: var(--ink); }
.tb-courses-study .award-block .cert-preview-head { font: 800 12px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tb-courses-study .award-preview img { border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 3px 0 var(--line); }
/* конференція: спікери і FAQ у вкладках */
.tb-courses-study .conference-author { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tb-courses-study .conference-author:last-child { border-bottom: 0; }
.tb-courses-study .conference-author-avatar { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.tb-courses-study .conference-author-name { font: 800 16px/1.3 var(--f-display); color: var(--ink); }
.tb-courses-study .conference-author-topic { font-weight: 700; color: var(--ink-2); }
.tb-courses-study .author-time { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: #fff; font: 800 12px/1.4 var(--f-body); }
.tb-courses-study .teacher-study-faq-item { margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.tb-courses-study .teacher-study-faq-item > div:first-child a { color: var(--ink); font-weight: 700; text-decoration: none; }
.tb-courses-study .teacher-study-faq-item-answer { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink); }
@media (max-width: 767px) {
    .tb-study-topbar-hint { display: none; }
    .tb-courses-study .conference-checkout .tb-btn { width: 100%; }
}
/* заголовок картки на сторінках навчання: класичний .library h1 (27px/400) перебивав .tb-courses-block-title */
.tb-courses-study .tb-courses-block-title { font: 800 clamp(19px, 2.4vw, 24px)/1.25 var(--f-display); color: var(--ink); }
/* телефон: верхня панель в один рядок — логотип, компактний прогрес праворуч */
@media (max-width: 767px) {
    .tb-courses-topbar-in { flex-wrap: nowrap; gap: 10px; padding: 8px 16px; }
    .tb-courses-topbar-right { gap: 8px; min-width: 0; }
    .tb-courses-topbar-progress { width: 120px; }
    .tb-courses-topbar-progress .tb-courses-progress-label { justify-content: flex-end; }
}
/* «Матеріал засвоєно»: класичне display:inline-block вимикало вирівнювання по центру — напис прилипав до верху рамки */
.tb-courses-study .tb-courses-done .section-list-item-link-checkbox { display: inline-flex !important; align-items: center; }

/* ---------- сторінки навчання вебінарів і конференцій: ті самі відступи, що й у курсів (свої ng-app у макетах) ---------- */
.tb-embedded-wide:has(.tb-courses-study-page) { margin-top: 0 !important; }
:is([ng-app="webinarStudy"], [ng-app="conferenceStudy"]) > .tb-embedded-wide > .row { margin: 0; }
:is([ng-app="webinarStudy"], [ng-app="conferenceStudy"]) > .tb-embedded-wide > .row > [class*="col-"] { padding: 0; }
/* логотип — як у шапці сайту: знак + «На Урок» */
.tb-courses-study-page .teacher-study .tb-courses-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2) !important; text-decoration: none !important; }
.tb-courses-study-page .teacher-study .tb-courses-logo img { width: 36px; height: 36px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.tb-courses-study-page .teacher-study .tb-courses-logo:hover img { transform: rotate(-12deg); }
.tb-courses-study-page .teacher-study .tb-courses-logo span { font: 700 18px/1 var(--f-display); white-space: nowrap; }
@media (max-width: 400px) { .tb-courses-study-page .teacher-study .tb-courses-logo span { display: none; } }
/* підказка в шапці під час ефіру — плашка, а не дрібний сірий текст */
.tb-courses-study-page .tb-study-topbar-hint { display: inline-flex; align-items: center; gap: 8px; max-width: 380px; padding: 7px 12px; border-radius: 12px; background: #fff3d6; color: #7a5200; font: 600 13px/1.3 var(--f-body); text-align: left; }
.tb-courses-study-page .tb-study-topbar-hint .lucide { flex: none; width: 16px; height: 16px; }
/* вкладки — дизайн-система (класичні .nav-tabs мають вищу специфічність) */
.tb-courses-study-page .teacher-study .tb-courses-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; border: 0; }
.tb-courses-study-page .teacher-study .tb-courses-tabs > li > a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 0; padding: 8px 16px; border: 2px solid var(--line) !important; border-radius: 12px !important; background: #fff !important; color: var(--ink-2) !important; font: 700 15px/1.2 var(--f-body); box-shadow: 0 3px 0 var(--line); }
.tb-courses-study-page .teacher-study .tb-courses-tabs > li:not(.active) > a:is(:hover, :focus) { background: var(--paper) !important; color: var(--ink) !important; }
.tb-courses-study-page .teacher-study .tb-courses-tabs > li > a:focus-visible { outline: 3px solid var(--sky, #2979ff); outline-offset: 2px; }
.tb-courses-study-page .teacher-study .tb-courses-tabs > li.active > a { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; box-shadow: 0 3px 0 #10181c; }
.tb-courses-study-page .teacher-study .tb-courses-tabs > li > a .lucide { width: 18px; height: 18px; }
.tb-courses-study-page .tb-courses-tab-content { padding: clamp(16px, 2.4vw, 26px); }
/* «Про вебінар» і «Поширені запитання» — на всю ширину картки */
.tb-study-tab-title { margin: 0 0 14px; font: 800 clamp(19px, 2vw, 22px)/1.25 var(--f-display); color: var(--ink); }
.tb-study-about-lead { margin-bottom: 16px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.tb-study-about-lead p:last-child { margin-bottom: 0; }
.tb-study-about-rows { display: grid; gap: 10px; margin: 0; }
.tb-study-about-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--paper); }
.tb-study-about-row dt { font: 800 14px/1.35 var(--f-display); color: var(--ink-2); }
.tb-study-about-row dd { margin: 0; display: grid; gap: 4px; font-size: 15px; line-height: 1.55; color: var(--ink); min-width: 0; }
.tb-study-about-row dd b { display: inline; }
.tb-study-about-row dd p:last-child, .tb-study-about-row dd ul:last-child { margin-bottom: 0; }
.tb-study-about-author { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 14px; }
.tb-study-about-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.tb-study-about-author b { display: block; margin-bottom: 4px; font: 800 16px/1.3 var(--f-display); }
@media (max-width: 640px) { .tb-study-about-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
details.tb-courses-faq-item > summary { list-style: none; }
details.tb-courses-faq-item > summary::-webkit-details-marker { display: none; }
details.tb-courses-faq-item > .tb-courses-faq-a { display: block; }
details.tb-courses-faq-item[open] > .tb-courses-faq-q .lucide { transform: rotate(180deg); }
details.tb-courses-faq-item[open] > .tb-courses-faq-q { color: var(--ink); }
.tb-courses-study-page .teacher-study .tb-courses-tabs > li > a { padding: 8px 16px !important; white-space: nowrap !important; }
.tb-courses-faq-a, .tb-study-about-row dd, .tb-study-about-lead { overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .tb-courses-study-page .teacher-study .tb-courses-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tb-courses-study-page .teacher-study .tb-courses-tabs > li { flex: 1 1 auto; min-width: 0; }
    .tb-courses-study-page .teacher-study .tb-courses-tabs > li > a { width: 100%; justify-content: center; padding: 8px 8px !important; font-size: 13.5px; }
    .tb-courses-study-page .teacher-study .tb-courses-tabs > li > a .lucide { display: none; }
}

/* ---------- сторінки навчання: дрібні виправлення (2026-10-15) ---------- */
/* список матеріалів у бічній панелі: класичне правило забирало відступи — активний пункт упирався в край і обрізався */
.tb-courses-study-page .tb-courses-side .tb-courses-side-list { padding: 8px 10px !important; }
/* відео — на всю ширину картки, але не вище за екран */
.tb-courses-study-page .tb-courses-video { max-width: min(100%, calc((100vh - 220px) * 16 / 9)); }
/* вкладки: без синього кільця фокуса після кліку мишею (клавіатурний фокус лишається) */
.tb-courses-study-page .teacher-study .tb-courses-tabs > li > a:focus:not(:focus-visible) { outline: none; }
/* конференція: вкладка «Свідоцтво та матеріали» */
.tb-conf-gap { margin-top: 14px; }
.tb-conf-bonus { margin: 0 0 14px; }
.tb-conf-order { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; margin-bottom: 16px; }
.tb-conf-order-text p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.tb-conf-order-list { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.tb-conf-order-list li { display: flex; align-items: center; gap: 8px; }
.tb-conf-order-list .lucide { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.tb-conf-cert { margin: 0; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.tb-conf-cert img { display: block; width: 100%; height: auto; border-radius: 8px; }
.tb-conf-cert figcaption { margin-top: 6px; font: 700 12.5px/1.3 var(--f-body); color: var(--ink-3); }
.tb-conf-checkout { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 4px 0 8px; }
.tb-conf-checkout-price { font: 800 24px/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.tb-conf-proof { display: flex !important; align-items: flex-start; gap: 12px; }
.tb-conf-proof .tb-study-proof-ico .lucide { width: 32px; height: 32px; }
/* «Програма та спікери» — картки спікерів */
.tb-conf-lectors { display: grid; gap: 12px; }
.tb-conf-lector { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border-radius: 16px; background: var(--paper); }
.tb-conf-lector-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.tb-conf-lector-body { display: grid; gap: 6px; min-width: 0; font-size: 15px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.tb-conf-lector-time { justify-self: start; }
.tb-conf-lector-time .lucide { width: 14px; height: 14px; }
.tb-conf-lector-topic { font-weight: 600; color: var(--ink-2); }
.tb-conf-lector-name { font: 800 17px/1.3 var(--f-display); color: var(--ink); }
.tb-conf-lector-about p:last-child { margin-bottom: 0; }
.tb-conf-lector-more { margin: 2px 0 0; padding-left: 18px; font-size: 14px; }
@media (max-width: 640px) {
    .tb-conf-order { grid-template-columns: minmax(0, 1fr); }
    .tb-conf-cert { max-width: 240px; }
    .tb-conf-lector { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .tb-conf-lector-photo { width: 56px; height: 56px; }
}
/* вебінар: підсумковий тест закритий (test-closed) */
.tb-study-closed .tb-courses-block-title { display: flex; align-items: center; gap: 10px; }
.tb-study-closed .tb-courses-block-title .lucide { flex: none; width: 24px; height: 24px; color: var(--ink-3); }
.tb-study-closed > .tb-note { margin: 0 0 18px; }
.tb-study-closed-facts { display: grid; gap: 8px; margin: 0 0 16px; }
.tb-study-closed-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.tb-study-closed-facts dt { font: 800 14px/1.45 var(--f-display); color: var(--ink-2); }
.tb-study-closed-facts dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
@media (max-width: 640px) { .tb-study-closed-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Тести на сторінках навчання (вебінари, курси): класичні правила .teacher-study … .block-question-answer-item
   (сіра рамка, padding-left 40px, абсолютно позиціонований чекбокс) мають вищу специфічність і ламали сітку
   картки варіанта — текст ставав у колонку 28px слово під словом, чекбокс накладався на текст. */
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers .block-question-answer-item { display: block; position: static; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers .block-question-answer-item:hover { background: none; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers .block-question-answer-item .question-checkbox-state { position: static; left: auto; top: auto; grid-column: 1; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers .block-question-answer-item .question-checkbox-state i { font-size: inherit; color: inherit; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers .block-question-answer-item .tb-courses-answer-text { grid-column: 2; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers { margin-bottom: 0; }
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .teacher-study-question-content { font-size: inherit; font-weight: inherit; }
/* «Запитання 1 з 5»: без верхнього регістру — у Fira Sans велике «З» читається як «3» («ЗАПИТАННЯ 1 3 5») */
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .teacher-study-question-content .tb-courses-question-caption { text-transform: none; letter-spacing: 0; font: 700 13.5px/1.2 var(--f-body); color: var(--ink-3); margin-bottom: 8px; }
/* варіанти: дві колонки (довгі твердження читаються в 2–3 рядки), картки в ряду однакової висоти */
@media (min-width: 641px) {
    .tb-courses-study-page .teacher-study .teacher-study-question .tb-courses-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tb-courses-study-page .teacher-study .teacher-study-content-block .teacher-study-question .block-question-answers .block-question-answer-item { display: flex; }
.tb-courses-study-page .teacher-study .teacher-study-question .block-question-answer-item > .tb-courses-answer { flex: 1 1 auto; min-width: 0; }
/* Вступ тесту (курси, вебінари): класичний .block-test-head-attempts давав жовту смугу на всю ширину з margin 40px,
   а список «Зауважте» втрачав відступ — маркери висіли на рамці. Прохідний бал — компактна плашка, правила — охайна нотатка. */
.tb-courses-study-page .teacher-study .teacher-study-content-block .block-test .block-test-head-attempts { margin: 18px 0 0; padding: 0; background: none; }
.tb-courses-study-page .tb-courses-attempts-min { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; background: #fff3d6; font: 600 14px/1.35 var(--f-body); font-style: normal; color: #7a5200; }
.tb-courses-study-page .tb-courses-attempts-min b { color: var(--ink); }
.tb-courses-study-page .teacher-study .tb-note.tb-courses-rules-note { margin: 14px 0 0; padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); font-weight: 500; }
.tb-courses-study-page .teacher-study .tb-courses-rules-note b { font: 800 15px/1.3 var(--f-display); margin-bottom: 8px; }
.tb-courses-study-page .tb-courses-rules-note b .lucide { width: 18px; height: 18px; color: var(--orange-d); }
.tb-courses-study-page .teacher-study ul.tb-courses-rules { margin: 0; padding: 0 0 0 20px; list-style: disc outside; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--ink-2); }
.tb-courses-study-page .teacher-study ul.tb-courses-rules li { margin: 0; padding: 0; list-style: inherit; }
.tb-courses-study-page .teacher-study ul.tb-courses-rules li + li { margin-top: 4px; }
.tb-courses-study-page .teacher-study ul.tb-courses-rules li::marker { color: var(--ink-3); }
.tb-courses-study-page .block-test-head-description:empty { display: none; }
