/* Thrive Apprentice в стиле intera (подключается только на страницах курсов и уроков) */

/* Главный цвет скина Apprentice → бирюзовый intera (#1c908c) */
:root{
	--tva-main-master-h:178;--tva-main-master-s:67%;--tva-main-master-l:34%;
	--tcb-main-master-h:178;--tcb-main-master-s:67%;--tcb-main-master-l:34%;
	--it-hh:0px;
	--tva-skin-color-1:#e2f3f1;
	--tva-skin-color-7:#ffffff;
	--tva-skin-color-8:rgba(255,255,255,.95);
}
/* Строки глав: перебиваем стили шаблона (у них селекторы с data-css) */
html body.it-tva #wrapper .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone,
html body.it-tva #wrapper .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone.tve-state-expanded{background:#fff!important;border:1px solid var(--it-line)!important;border-radius:12px!important;box-shadow:0 2px 8px rgba(18,52,59,.05)!important}
html body.it-tva #wrapper .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone:hover{border-color:var(--it-teal-light)!important;background:var(--it-teal-soft)!important}
html body.it-tva #wrapper .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone .tva-course-state :is(p,span,h1,h2,h3,h4){text-transform:none!important;font-weight:700!important;font-size:15px!important;color:var(--it-navy)!important;letter-spacing:0!important}
html body.it-tva #wrapper .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone .tva-course-state{background:transparent!important;padding-top:10px!important;padding-bottom:10px!important}
html body.it-tva #wrapper .tva-course .tva-course-lesson .tva-course-state{background:transparent!important}
html body.it-tva #wrapper .tva-course .tva-course-lesson .tva-course-state h4 :is(a,span){font-size:16px!important;font-weight:600!important;text-transform:none!important;color:var(--it-navy)!important}
html body.it-tva #wrapper .tva-course .tva-course-lesson .tva-course-state p span{text-transform:none!important}
html body.it-tva #theme-sidebar-section .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone{background:#fff!important;border:1px solid var(--it-line)!important;border-radius:10px!important}
html body.it-tva #theme-sidebar-section .tva-course .tva-course-chapter .tva-course-chapter-dropzone.tva-course-dropzone :is(p,span){text-transform:none!important;font-weight:700!important;font-size:14px!important;color:var(--it-navy)!important}
html body.it-tva .tcb-style-wrap .top-section .thrive-breadcrumbs .thrive-breadcrumb-leaf span{color:#fff!important}
html body.it-tva--lesson .tcb-style-wrap .top-section .thrive-breadcrumbs .thrive-breadcrumb-leaf span{color:var(--it-navy)!important}

/* Старые шапка и подвал Thrive — вместо них шапка и подвал темы */
body.it-tva #thrive-header,body.it-tva #thrive-footer{display:none!important}
body.it-tva{font-family:var(--it-font)!important;color:var(--it-text);background:#fff}
body.it-tva .it-header{z-index:70}
body.it-tva .it-footer{position:relative;z-index:60}
body.it-tva .it-footer p,body.it-tva .it-footer li{color:inherit!important}
/* «Comments are closed.» под уроком */
body.it-tva .comments-area .comment-no-comment{display:none!important}
/* материалы урока */
html body.it-tva #wrapper .tva-lesson-resources .tva-resource-item{background:#fff!important;border:1px solid var(--it-line)!important;border-radius:12px!important;box-shadow:0 2px 8px rgba(18,52,59,.05)!important;margin-bottom:10px!important}
html body.it-tva #wrapper .tva-lesson-resources .tva-resource-title{color:var(--it-navy)!important;font-weight:600!important;text-transform:none!important}
html body.it-tva #wrapper .tva-lesson-resources a{color:var(--it-teal-dark)!important;font-weight:700!important}
html body.it-tva #wrapper .tva-lesson-resources .tva-resource-icon svg{fill:var(--it-teal)!important;color:var(--it-teal)!important}
/* стили Thrive сжимают svg-иконки шапки и подвала */
body.it-tva :is(.it-header,.it-footer,.it-video) svg{width:auto!important;max-width:none!important;min-width:0!important;flex:0 0 auto}
body.it-tva .it-burger svg{width:24px!important;height:24px!important}
body.it-tva .it-search__btn svg{width:18px!important;height:18px!important}
/* кнопка бокового меню урока (на телефоне) — под шапкой, а не поверх логотипа */
body.it-tva .tve-off-screen-sidebar-trigger{top:calc(var(--it-hh) + 12px)!important}

/* Шрифт и цвета текста */
body.it-tva .tcb-style-wrap,
body.it-tva .tcb-style-wrap :is(h1,h2,h3,h4,h5,h6,p,li,a,span,div,label,button,input,textarea,strong,em),
body.it-tva #theme-sidebar-section :is(h1,h2,h3,h4,h5,h6,p,li,a,span,div){font-family:var(--it-font)!important}
body.it-tva .tcb-style-wrap :is(h1,h2,h3,h4,h5,h6){color:var(--it-navy);letter-spacing:0}
body.it-tva .tcb-style-wrap :is(p,li){color:var(--it-text)}
body.it-tva .tcb-style-wrap a{color:var(--it-teal-dark)}
body.it-tva .tcb-style-wrap a:hover{color:#0d5451}

/* Кнопки */
body.it-tva .thrv-button a.tcb-button-link,
body.it-tva .tva-course-cta a,
body.it-tva a.tcb-button-link{background:var(--it-teal)!important;background-image:none!important;border:0!important;border-radius:999px!important;box-shadow:0 6px 16px rgba(28,144,140,.25)!important;color:#fff!important;transition:background .15s}
body.it-tva .thrv-button a.tcb-button-link:hover{background:var(--it-teal-dark)!important}
body.it-tva a.tcb-button-link .tcb-button-text,body.it-tva a.tcb-button-link span{color:#fff!important;font-weight:700!important;letter-spacing:.02em}

/* ---------- Страница курса ---------- */
/* шапка курса: картинка курса под тёмно-бирюзовой вуалью (если картинки нет — просто градиент) */
html body.it-tva--course #wrapper .top-section .tve-page-section-out{background-color:var(--it-navy)!important;background-image:linear-gradient(100deg,rgba(18,52,59,.92) 0%,rgba(18,52,59,.78) 45%,rgba(28,144,140,.45) 100%),var(--tcb-dynamic-background-url-visual-edit-course-image,linear-gradient(135deg,#1a5f62,#1c908c))!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}

/* Компактные строки уроков на странице курса: название и «Перейти» в одну строку, без лишних отступов */
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson{margin:0!important;padding:0!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tva-course-state{padding:7px 12px 7px 8px!important;align-items:center!important;background:#fff!important;border-bottom:1px solid var(--it-line)!important;transition:background .15s}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tva-course-state:hover{background:var(--it-teal-soft)!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson :is(.tva-course-state-content,.thrv-columns,.tcb-flex-row,.tcb-flex-col,.tcb-col){background:transparent!important;box-shadow:none!important;border:0!important;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-flex-row{align-items:center!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-flex-col > .tcb-col{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:14px;justify-content:space-between!important;text-align:left!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-col > .thrv_text_element{flex:1 1 0!important;min-width:0;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;text-align:left!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-col > .thrv_text_element :is(h4,p){text-align:left!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-col > .thrv_text_element:has(p:empty),
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-col > .thrv_text_element:has(span[data-shortcode="tva_course_lesson_description"]:empty){display:none!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tcb-col > .tcb-clear{flex:0 0 auto;margin:0!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson h4{margin:0!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .thrv-button{margin:0!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson .tva-course-type-icon{padding:5px!important}
html body.it-tva #wrapper .content-section .tva-course .tva-course-lesson-list{border:1px solid var(--it-line)!important;border-radius:12px!important;overflow:hidden;padding:0!important}

/* Состояния уроков (Apprentice: 0 не пройден, 1 нет доступа, 2 пройден, 3 текущий, 4 закрыт до прохождения предыдущих) */
html body.it-tva #wrapper .tva-course .tva-course-lesson[data-course-state="4"] .tva-course-state{background:#f6f8f8!important}
html body.it-tva #wrapper .tva-course .tva-course-lesson[data-course-state="4"] :is(h4,h4 a,h4 span){color:#8a979c!important;pointer-events:none}
html body.it-tva #wrapper .tva-course .tva-course-lesson[data-course-state="4"] .thrv-button{display:none!important}
html body.it-tva #wrapper .tva-course .tva-course-lesson[data-course-state="4"] h4::after{content:"🔒 откроется после предыдущих уроков";display:block;font-size:12px!important;font-weight:500!important;color:#8a979c;margin-top:2px}
html body.it-tva #wrapper .tva-course .tva-course-lesson[data-course-state="2"] h4::after{content:"✓ пройден";display:inline-block;margin-left:8px;font-size:12px!important;font-weight:700!important;color:#2e9b5f;vertical-align:middle}
html body.it-tva #wrapper .tva-course .tva-course-lesson[data-course-state="3"] .tva-course-state{background:var(--it-teal-soft)!important;box-shadow:inset 3px 0 0 var(--it-teal)!important}
html body.it-tva #theme-sidebar-section .tva-course .tva-course-lesson[data-course-state="4"] :is(h4,h4 a,h4 span,p,a){color:#9aa6aa!important}
html body.it-tva #theme-sidebar-section .tva-course .tva-course-lesson[data-course-state="4"] h4::before{content:"🔒 ";font-size:12px}

/* Урок: убираем пустое место между видео и кнопками навигации */
html body.it-tva--lesson #wrapper #theme-top-section,
html body.it-tva--lesson #wrapper #theme-top-section .section-content{height:auto!important;min-height:0!important;padding-bottom:0!important}
/* видео в шаблоне сдвинуто вверх (top:-83px) на шапку урока, а место под ним остаётся пустым — ставим без наложения */
html body.it-tva--lesson #wrapper #theme-top-section .thrv_responsive_video{top:0!important;margin-top:16px!important;margin-bottom:16px!important}
html body.it-tva--lesson #wrapper #theme-top-section .section-content > .thrv-content-box{padding-bottom:24px!important}
/* у шаблона Thrive обёртка тянется на всю высоту экрана — из-за этого пустота над подвалом */
html body.it-tva #wrapper{min-height:0!important}
/* пустой блок текста урока (видео-уроки без текста и материалов) не показываем */
html body.it-tva--lesson #wrapper #content:not(:has(.tcb-post-content :is(p,img,iframe,video,audio,ul,ol,h1,h2,h3,h4,h5,table,figure,blockquote,a,.thrv_wrapper))):not(:has(.tva-lesson-resources)):not(:has(.tva-assessment)):not(:has(form)){display:none!important}
html body.it-tva--lesson #wrapper .bottom-section .thrv-page-section{padding:12px 20px!important;min-height:0!important}
html body.it-tva--lesson #wrapper .bottom-section .tve-page-section-in{padding:8px 0!important;min-height:0!important}
html body.it-tva--lesson #wrapper .bottom-section .thrv-columns{margin:0!important}

/* Кнопки «Предыдущий / Следующий» под уроком: компактнее, на телефоне — в один ряд */
html body.it-tva #wrapper .bottom-section .thrv-button a.tcb-button-link{padding:10px 22px!important;min-height:0!important;font-size:16px!important}
html body.it-tva #wrapper .bottom-section .thrv-button .tcb-button-icon{font-size:15px!important;width:auto!important;height:auto!important;margin:0 8px!important}
html body.it-tva #wrapper .bottom-section .thrv-button .tcb-button-icon .thrv_icon{width:30px!important;height:30px!important;padding:6px!important;margin:0!important}
@media (max-width:767px){
	html body.it-tva #wrapper .bottom-section .tve-page-section-in{padding:16px 12px!important;min-height:0!important}
	html body.it-tva #wrapper .bottom-section .tcb-flex-row{flex-wrap:nowrap!important;gap:10px;margin:0!important;align-items:center}
	html body.it-tva #wrapper .bottom-section .tcb-flex-col{flex:1 1 0!important;max-width:none!important;width:auto!important;padding:0!important;margin:0!important}
	html body.it-tva #wrapper .bottom-section .tcb-flex-col .tcb-clear{text-align:center!important}
	html body.it-tva #wrapper .bottom-section .thrv-button{width:100%!important;max-width:none!important;margin:0!important}
	html body.it-tva #wrapper .bottom-section .thrv-button a.tcb-button-link{width:100%!important;padding:9px 10px!important;font-size:14px!important;justify-content:center}
	html body.it-tva #wrapper .bottom-section .thrv-button .tcb-button-icon{display:none!important}
	html body.it-tva #wrapper .bottom-section .thrv-button a.tcb-button-link .tcb-button-texts{margin:0!important;padding:0!important;max-width:100%}
	html body.it-tva #wrapper .bottom-section .tve-content-box-background{display:none}
	html body.it-tva #wrapper .thrv-button a.tcb-button-link{font-size:14px!important}
}

/* «Скачать/Открыть» у материалов урока (у шаблона селектор с id ресурса — перебиваем) */
html body.it-tva #wrapper .tva-lesson-resources .tva-resource-item .tva-resource-get .tva-resource-button a.tcb-button-link{background:var(--it-teal)!important;background-image:none!important;border:0!important;border-radius:999px!important;box-shadow:none!important}
html body.it-tva #wrapper .tva-lesson-resources .tva-resource-item .tva-resource-get .tva-resource-button a.tcb-button-link:hover{background:var(--it-teal-dark)!important}
html body.it-tva #wrapper .tva-lesson-resources .tva-resource-item .tva-resource-get .tva-resource-button a.tcb-button-link *{color:#fff!important}

/* кнопки «Перейти» в списке уроков и «Скачать/Открыть» у материалов: были белые на белом */
html body.it-tva #wrapper :is(.tva-course-lesson,.tva-course-module,.tva-course-chapter) .thrv-button a.tcb-button-link,
html body.it-tva #wrapper .tva-resource-button a{background:var(--it-teal)!important;background-image:none!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:none!important;opacity:1!important}
html body.it-tva #wrapper :is(.tva-course-lesson,.tva-course-module,.tva-course-chapter) .thrv-button a.tcb-button-link:hover,
html body.it-tva #wrapper .tva-resource-button a:hover{background:var(--it-teal-dark)!important}
html body.it-tva #wrapper :is(.tva-course-lesson,.tva-course-module,.tva-course-chapter) .thrv-button a.tcb-button-link *,
html body.it-tva #wrapper .tva-resource-button a *{color:#fff!important;opacity:1!important}
html body.it-tva #wrapper :is(.tva-course-lesson,.tva-course-module,.tva-course-chapter) .thrv-button a.tcb-button-link::before,
html body.it-tva #wrapper :is(.tva-course-lesson,.tva-course-module,.tva-course-chapter) .thrv-button a.tcb-button-link::after,
html body.it-tva #wrapper .tva-resource-button a::before,html body.it-tva #wrapper .tva-resource-button a::after,
html body.it-tva #wrapper .tva-resource-button::before,html body.it-tva #wrapper .tva-resource-button::after{display:none!important}
body.it-tva--course .top-section .tve-page-section-out::before,
body.it-tva--course .top-section .tve-page-section-out::after,
body.it-tva--course .top-section .section-background{background:none!important;opacity:1}
body.it-tva--course .top-section h1,body.it-tva--course .top-section h1 *{color:#fff!important;font-weight:800!important;line-height:1.15!important}
body.it-tva--course .top-section .thrive-breadcrumbs,body.it-tva--course .top-section .thrive-breadcrumbs *{color:rgba(255,255,255,.85)!important}
body.it-tva--course .top-section .thrive-breadcrumbs a:hover *{color:#fff!important}
/* карточка с параметрами курса */
body.it-tva--course .top-section .thrv-content-box .tve-content-box-background{background:#fff!important;border-radius:var(--it-radius)!important;border:0!important;box-shadow:0 14px 40px rgba(18,52,59,.18)!important}
body.it-tva--course .top-section .thrv-content-box :is(p,span,div){color:var(--it-text)}

/* полоса «Готовы? Начать» */
body.it-tva--course .content-section .thrv-columns:has(.thrv-button){background:var(--it-teal-soft)!important;border-radius:var(--it-radius)!important;border:0!important}
body.it-tva--course .content-section .thrv-columns:has(.thrv-button) h1{font-size:26px!important;font-weight:800!important}

/* список глав и уроков */
body.it-tva .tva-course-chapter-list,body.it-tva .tva-course-module-list{background:transparent!important;border:0!important;box-shadow:none!important}
body.it-tva .tva-course-chapter,body.it-tva .tva-course-module{margin:0 0 10px!important}
body.it-tva .tva-course-chapter-dropzone,body.it-tva .tva-course-module-dropzone{background:#fff!important;border:1px solid var(--it-line)!important;border-radius:12px!important;box-shadow:0 2px 8px rgba(18,52,59,.05)!important;transition:border-color .15s,box-shadow .15s}
body.it-tva .tva-course-chapter-dropzone:hover,body.it-tva .tva-course-module-dropzone:hover{border-color:var(--it-teal-light)!important;box-shadow:0 6px 18px rgba(18,52,59,.08)!important}
body.it-tva .tva-course-chapter-dropzone.tve-state-expanded{border-color:var(--it-teal-light)!important;background:var(--it-teal-soft)!important}
body.it-tva .tva-course-chapter-dropzone p,body.it-tva .tva-course-chapter-dropzone span{text-transform:none!important;font-weight:700!important;font-size:15px!important;color:var(--it-navy)!important;letter-spacing:0!important}
body.it-tva .tva-course-lesson-list{background:transparent!important;margin:0!important;padding:0 6px!important}
body.it-tva .tva-course-lesson .tva-course-state{background:transparent!important;border:0!important;border-bottom:1px solid var(--it-line)!important;padding-top:10px!important;padding-bottom:10px!important}
body.it-tva .tva-course-lesson:last-child .tva-course-state{border-bottom:0!important}
body.it-tva .tva-course-lesson h4,body.it-tva .tva-course-lesson h4 a{font-size:16px!important;font-weight:600!important;color:var(--it-navy)!important;text-transform:none!important;text-decoration:none!important}
body.it-tva .tva-course-lesson h4 a:hover{color:var(--it-teal-dark)!important}
body.it-tva .tva-course-lesson p span[data-shortcode="tva_course_lesson_restriction_label"]{font-size:12px!important;font-weight:700!important;color:var(--it-teal-dark)!important;text-transform:none!important}
body.it-tva .tva-structure-icon svg,body.it-tva .tva-structure-toggle-icon svg,body.it-tva .tva-course-type-icon svg{fill:var(--it-teal)!important;color:var(--it-teal)!important}

/* блок «Автор курса» */
body.it-tva--course .content-section .thrv-columns:has(.thrive_author_links){background:var(--it-teal-soft)!important;border-radius:var(--it-radius)!important;border:0!important}

/* нижняя полоса */
body.it-tva .bottom-section .tve-page-section-out{background:var(--it-teal-soft)!important;background-image:none!important}

/* ---------- Урок / модуль / глава ---------- */
body.it-tva--lesson #theme-sidebar-section{border-right:1px solid var(--it-line)}
body.it-tva--lesson #theme-sidebar-section .section-background{background:#fbfdfd!important;background-image:none!important}
body.it-tva--lesson #theme-sidebar-section .tva-course-chapter-dropzone{box-shadow:none!important}
body.it-tva--lesson #theme-sidebar-section .tva-course-lesson.tva-course-item-active .tva-course-state,
body.it-tva--lesson #theme-sidebar-section .tva-course-lesson.tva-course-item-current .tva-course-state{background:var(--it-teal-soft)!important}
body.it-tva--lesson .top-section h1,body.it-tva--lesson .top-section h1 *{font-weight:800!important;color:var(--it-navy)!important}
body.it-tva--lesson .top-section .thrive-breadcrumbs *{color:var(--it-muted)!important}
body.it-tva--lesson .tcb-post-content{font-size:17px;line-height:1.7}
body.it-tva--lesson .tcb-post-content :is(p,li){font-size:17px!important;line-height:1.7!important}
body.it-tva--lesson .tcb-post-content img{border-radius:12px}

/* прогресс-бар */
body.it-tva .tve-progress-bar{background:var(--it-line)!important;border-radius:999px!important;overflow:hidden}
body.it-tva .tve-progress-bar-fill{background:var(--it-teal)!important;border-radius:999px!important}

/* блок «нет доступа» */
body.it-tva .tva-course-restricted-access,body.it-tva [class*="restricted"] .tve-content-box-background{border-radius:var(--it-radius)!important}
