/* ==========================================================================
   Тема нового дизайну · ВЕБІНАРИ та КОНФЕРЕНЦІЇ (views/beta-theme/webinar, views/beta-theme/conference)
   Префікс класів tb-ev-. Токени й базові компоненти — з beta.css.
   ========================================================================== */

/* ---------- спільне ---------- */
.tb-ev .tb-section-h2 { margin: 28px 0 12px; }
/* кнопки розділу: радіус 12px, висота 40–52px (малі — не нижче 40px) */
.tb-ev .tb-btn { border-radius: 12px; }
/* .tb-btn-sm — розмір з дизайн-системи (34px), однаковий на всіх сторінках кабінету */
.tb-ev .tb-btn-lg { min-height: 52px; }
.tb-ev-card-box { padding: 16px 18px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ev-ico { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
/* інлайн-іконки в посиланнях/підписах (не в кнопках): фіксований розмір, щоб SVG без класу не розтягувався на всю ширину */
.tb-ev-props svg, .tb-ev-progress-label svg, .tb-ev-cancel svg, .tb-ev-tasks svg, .tb-ev-prose a > svg, .tb-ev b > svg, .tb-ev-conf-modal .share-modal-title svg, .tb-ev-discount svg, .tb-ev-row-date svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.tb-ev-conf-modal .share-modal-title svg { width: 20px; height: 20px; vertical-align: -4px; }
.tb-ev-prose { font-size: 15px; line-height: 1.6; color: var(--ink); }
.tb-ev-prose p:last-child { margin-bottom: 0; }
.tb-ev-prose ul, .tb-ev-prose ol { padding-left: 22px; }
.tb-ev-prose h3, .tb-ev-prose h2 { margin: 18px 0 8px; font: 800 18px/1.25 var(--f-display); }
.tb-ev-prose h3:first-child, .tb-ev-prose h2:first-child { margin-top: 0; }
.tb-ev-prose a { color: var(--sky-d); font-weight: 600; }
.tb-ev-prose img { max-width: 100%; height: auto; }
.tb-ev-muted { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.tb-ev-row-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- шапка каталогу ---------- */
.tb-ev-hero { position: relative; padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; border-radius: 20px; background: #fff; border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.tb-ev-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: var(--go); opacity: .12; pointer-events: none; clip-path: inset(62px 62px 0 0 round 0 18px 0 0); }
/* без overflow: hidden — інакше випадний список «Напрями» обрізається рамкою; коло обрізає clip-path */
.tb-ev-hero .tb-page-h1 { margin: 0 0 10px; }
.tb-ev-hero-text { max-width: 820px; font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 500; }
.tb-ev-hero-text p { margin: 0 0 8px; }
.tb-ev-hero-text p:last-child { margin: 0; }
.tb-ev-hero-art { position: absolute; right: 24px; bottom: 0; width: 220px; height: auto; pointer-events: none; }
.tb-ev-hero.has-art { padding-right: 270px; }
.tb-ev-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tb-ev-benefit { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ev-benefit img { width: 56px; height: 56px; }
.tb-ev-benefit b { display: block; font: 800 15px/1.25 var(--f-display); }
.tb-ev-benefit span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); }

/* ---------- каталог: список + фільтр (Angular upgradeApp) ---------- */
.tb-ev-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tb-ev-bar-reset { font-weight: 700; color: var(--coral-d); }
.tb-ev-catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.tb-ev-catalog-grid > .main-content-block { min-width: 0; }
.tb-ev-catalog-grid > .main-content-block.col-md-12 { grid-column: 1 / -1; }
.tb-ev-catalog-grid > [class*="col-"] { float: none; width: auto; padding: 0; min-height: 0; }
.tb-ev-list h3 { margin: 0 0 12px; font: 800 20px/1.2 var(--f-display); } /* без верхнього відступу — список і фільтр починаються на одній лінії */
.tb-ev-list h3:not(:first-child) { margin-top: 24px; }
.tb-ev-cards { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tb-ev-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .6); }
.tb-ev-loading .tb-spinner { width: 28px; height: 28px; color: var(--go-d); }
.tb-ev-card { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); overflow: hidden; color: var(--ink) !important; text-decoration: none !important; transition: transform .12s, box-shadow .12s, border-color .15s; }
.tb-ev-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.tb-ev-card-img { position: relative; aspect-ratio: 16 / 8; background: var(--paper) center / cover no-repeat; }
.tb-ev-card-img::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 var(--line-2); }
.tb-ev-card-img::before { content: ""; position: absolute; left: 27px; bottom: 22px; z-index: 1; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); }
.tb-ev-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px 14px 14px; }
.tb-ev-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tb-ev-card-title { margin: 0; font: 800 16px/1.3 var(--f-display); overflow-wrap: anywhere; }
.tb-ev-card-date { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.tb-ev-card-date .tb-dot { margin-right: 2px; }
.tb-ev-card-live { color: var(--coral-d); }
.tb-ev-card-lectors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.tb-ev-card-lector { font-weight: 700; }
.tb-ev-card-lector:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--ink-3); }
.tb-ev-card-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.tb-ev-card-vector { display: flex; justify-content: flex-end; padding: 0 14px 10px; }
.tb-ev-card-vector img { width: 84px; height: auto; opacity: .85; }
/* фільтр */
.tb-ev-filter { display: grid; gap: 4px; padding: 10px 14px 12px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ev-filter-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font: 800 14px/1.2 var(--f-display); color: var(--ink); cursor: pointer; user-select: none; }
.tb-ev-filter-title:first-child { border-top: 0; }
.tb-ev-filter-title svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .15s; }
.tb-ev-filter-title[aria-expanded="true"] svg, .tb-ev-filter-title:not(.collapsed) svg { transform: rotate(180deg); }
.tb-ev-filter-block { padding-bottom: 8px; }
.tb-ev-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 5px 0; font: 500 14px/1.3 var(--f-body); color: var(--ink); cursor: pointer; }
.tb-ev-check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--go); }
.tb-ev-filter .hide-more-content { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#fff, #fff, rgba(255, 255, 255, 0)); mask-image: linear-gradient(#fff, #fff, rgba(255, 255, 255, 0)); }
.tb-ev-filter-more { padding: 4px 0 2px; }
.tb-ev-filter-more a { font-size: 13px; font-weight: 700; color: var(--sky-d); }
/* відгуки (горизонтальна стрічка) */
.tb-ev-reviews { display: flex; gap: 12px; margin: 0 -4px; padding: 4px 4px 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tb-ev-review { flex: 0 0 300px; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ev-review-author { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.tb-ev-review-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--go); }
.tb-ev-review-name { font: 700 13.5px/1.25 var(--f-body); color: var(--ink); }
.tb-ev-review-link a { font: 800 14px/1.3 var(--f-display); color: var(--ink); }
.tb-ev-review-link a:hover { color: var(--orange-d); }
.tb-ev-review-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
/* поширені запитання */
.tb-ev-faq { display: grid; gap: 8px; }
.tb-ev-faq-item { border-radius: 14px; background: #fff; border: 2px solid var(--line); }
.tb-ev-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font: 700 15px/1.3 var(--f-body); color: var(--ink); cursor: pointer; }
.tb-ev-faq-q::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg); }
.tb-ev-faq-a { display: none; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.tb-ev-faq-a p:last-child { margin: 0; }
.tb-ev-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tb-ev-links li a { color: var(--sky-d); font-weight: 600; }
.tb-ev-links li a:hover { color: var(--orange-d); }

/* ---------- сторінка заходу: шапка з обкладинкою ---------- */
.tb-ev-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; border-radius: 20px; background: #fff; border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.tb-ev-cover { aspect-ratio: 16 / 10; border-radius: 14px; background: var(--paper) center / cover no-repeat; box-shadow: 0 3px 0 var(--line); }
.tb-ev-head-body { display: grid; gap: 10px; min-width: 0; }
.tb-ev-head .tb-page-h1 { margin: 0; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; }
.tb-ev-head .tb-page-h1 span { display: block; margin-top: 6px; font: 600 15px/1.35 var(--f-body); color: var(--ink-2); }
.tb-ev-pretitle { font: 800 12px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tb-ev-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.tb-ev-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--go); }
.tb-ev-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-ev-head-actions .tb-btn svg { width: 16px; height: 16px; }
.tb-ev-info-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tb-ev-info-block { padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tb-ev-info-block > span { display: block; margin-bottom: 4px; font: 800 13px/1.2 var(--f-display); color: var(--ink); }
.tb-ev-info-block:empty { display: none; } /* порожній інфоблок конференції не малюємо порожньою плашкою */
.tb-ev-info-block ul { margin: 0; padding-left: 18px; }
.tb-ev-info-block p:last-child { margin: 0; }

/* дії в бічній картці */
.tb-ev-actions { display: grid; gap: 10px; }
.tb-ev-actions .tb-btn { width: 100%; min-height: 46px; border-radius: 12px; font-size: 15px; white-space: normal; text-align: center; }
.tb-ev-actions .tb-btn svg { width: 18px; height: 18px; flex: none; }
.tb-ev-actions form { margin: 0; }
.tb-ev-status { padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; text-align: center; }
.tb-ev-status-ok { background: #e8f5e9; color: var(--mint-d); }
.tb-ev-status-info { background: #e3f2fd; color: var(--sky-d); }
.tb-ev-status-warn { background: #fff8e1; color: var(--sun-d); }
.tb-ev-when { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.tb-ev-when b { font: 800 14px/1.2 var(--f-display); color: var(--ink); }
.tb-ev-when span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tb-ev-when svg { width: 16px; height: 16px; color: var(--go-d); }
.tb-ev-when em { font-size: 13px; font-style: italic; color: var(--ink-3); }
.tb-ev-when.is-live { background: #fbe9e7; }
.tb-ev-when.is-live b { color: var(--coral-d); }
.tb-ev-price-box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper-2); text-align: center; }
.tb-ev-price-box small { font: 700 13px/1.2 var(--f-body); color: var(--ink-2); }
.tb-ev-price { font: 900 26px/1 var(--f-display); color: var(--mint-d); }
.tb-ev-price del { font: 700 16px/1 var(--f-body); color: var(--ink-3); margin-right: 8px; }
.tb-ev-cta-small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-align: center; }
/* маркований список переваг (ul.tb-ev-ul) — окремо від контейнера каталогу .tb-ev-list */
.tb-ev-ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tb-ev-ul li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink); }
.tb-ev-ul li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg); }
.tb-ev-prose .tb-ev-ul { margin: 8px 0; }
.tb-ev-cert { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.tb-ev-cert b { font: 800 14px/1.2 var(--f-display); }
.tb-ev-cert ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.tb-ev-cert a img, .tb-ev-cert img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 3px 0 var(--line); }
.tb-ev-gift { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: 14px; }
.tb-ev-gift b { display: inline-flex; align-items: center; gap: 6px; color: var(--coral-d); }
.tb-ev-gift svg { width: 16px; height: 16px; }
.tb-ev-gift a { color: var(--ink); font-weight: 700; text-decoration: underline !important; }
.tb-ev-progress { display: grid; gap: 6px; }
.tb-ev-progress-label { font: 800 13px/1.2 var(--f-display); color: var(--ink-2); }
.tb-ev-progress-bar { height: 10px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.tb-ev-progress-bar i { display: block; height: 100%; border-radius: 5px; background: var(--mint); }
.tb-ev-cancel { text-align: center; }
.tb-ev-cancel a { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tb-ev-cancel a:hover { color: var(--coral-d); }

/* автор, відзнака, партнери */
.tb-ev-person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.tb-ev-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--go); }
.tb-ev-person-name { margin: 0 0 6px; font: 800 18px/1.25 var(--f-display); }
.tb-ev-award-note { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper-2); border: 2px solid var(--go); font-size: 14px; line-height: 1.5; color: var(--ink); }
.tb-ev-award-note svg { width: 48px; height: 48px; color: var(--mint); }
.tb-ev-award-note a { color: var(--sky-d); font-weight: 700; }
.tb-ev-coop { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.55; }
.tb-ev-coop b { font: 800 18px/1.2 var(--f-display); }
.tb-ev-coop p { margin: 0; color: rgba(255, 255, 255, .85); }
.tb-ev-coop a { color: var(--go); font-weight: 700; text-decoration: underline !important; }
.tb-ev-props { display: grid; gap: 6px; font-size: 14.5px; }
.tb-ev-props b { color: var(--ink); }

/* ---------- конференція ---------- */
.tb-ev-conf-head { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 30px); border-radius: 20px; background: var(--ink) center / cover no-repeat; color: #fff; box-shadow: 0 5px 0 var(--line); }
.tb-ev-conf-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(38, 50, 56, .92) 0%, rgba(38, 50, 56, .78) 60%, rgba(38, 50, 56, .55) 100%); }
.tb-ev-conf-head > * { position: relative; }
.tb-ev-conf-head .tb-ev-pretitle { color: var(--go); }
.tb-ev-conf-head .tb-page-h1 { margin: 8px 0 14px; color: #fff; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; }
.tb-ev-conf-head .tb-page-h1 span { display: block; margin-top: 8px; font: 500 16px/1.4 var(--f-body); color: rgba(255, 255, 255, .85); }
.tb-ev-conf-head .tb-ev-info-blocks { max-width: 760px; margin-bottom: 16px; }
.tb-ev-conf-head .tb-ev-info-block { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .9); }
.tb-ev-conf-head .tb-ev-info-block > span { color: #fff; }
.tb-ev-conf-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 10px; align-items: stretch; }
/* кнопки ряду однієї висоти навіть коли напис («Запис трансляції 15 травня 2020») переноситься; записи — другорядні (одна основна дія) */
.tb-ev-conf-actions > div { display: grid; }
.tb-ev-conf-actions > div > .tb-btn, .tb-ev-conf-actions > div > form, .tb-ev-conf-actions > div > form > .tb-btn, .tb-ev-conf-actions > div > .tb-ev-conf-date { height: 100%; }
.tb-ev-conf-actions .tb-btn { width: 100%; min-height: 48px; white-space: normal; text-align: center; }
.tb-ev-conf-actions .tb-btn svg { width: 18px; height: 18px; flex: none; }
.tb-ev-conf-actions form { margin: 0; }
.tb-ev-conf-date { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .12); font: 800 15px/1.2 var(--f-display); color: #fff; }
.tb-ev-conf-date svg { width: 18px; height: 18px; color: var(--go); }
.tb-ev-alert { margin-top: 12px; }
.tb-ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-top: 16px; }
.tb-ev-main { display: grid; gap: 14px; min-width: 0; }
.tb-ev-aside { display: grid; gap: 14px; min-width: 0; position: sticky; top: 16px; }
.tb-ev-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.tb-ev-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-weight: 700; color: var(--ink); }
.tb-ev-menu a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px var(--paper-2); }
.tb-ev-menu a:hover { background: var(--paper); }
.tb-ev-quote { padding: 12px 18px; border-left: 8px solid var(--go); border-radius: 0 14px 14px 0; background: var(--paper-2); font-size: 15px; line-height: 1.55; }
.tb-ev-quote p:last-child { margin: 0; }
.tb-ev-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tb-ev-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--paper); font: 700 13px/1.3 var(--f-body); color: var(--ink); }
.tb-ev-feature img { width: 44px; height: 44px; object-fit: contain; }
.tb-ev-lectors { display: grid; gap: 12px; }
.tb-ev-lector { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.tb-ev-lector.no-photo { grid-template-columns: minmax(0, 1fr); }
.tb-ev-lector-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--go); }
.tb-ev-lector-body { display: grid; gap: 6px; min-width: 0; }
.tb-ev-lector-time { display: inline-flex; width: fit-content; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: #fff; font: 800 12px/1.2 var(--f-display); }
.tb-ev-lector-topic { font: 800 16px/1.3 var(--f-display); }
.tb-ev-lector-name { font-weight: 700; color: var(--ink-2); }
.tb-ev-lector-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tb-ev-lector-desc p:last-child { margin: 0; }
.tb-ev-lector-label { font: 800 11px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tb-ev-lector ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.tb-ev-lector ul a { color: var(--sky-d); font-weight: 600; }
.tb-ev-reg-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--paper-2); border: 2px solid var(--go); }
.tb-ev-reg-cta form { margin: 0; }
.tb-ev-reg-cta .tb-btn { white-space: normal; text-align: center; }
.tb-ev-reg-time { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.3 var(--f-body); color: var(--ink); }
.tb-ev-reg-time svg { width: 18px; height: 18px; color: var(--go-d); }
.tb-ev-order .nav-tabs { margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.tb-ev-order .nav-tabs > li > a { border: 0; border-radius: 10px 10px 0 0; font: 800 14px/1.2 var(--f-display); color: var(--ink-2); }
.tb-ev-order .nav-tabs > li.active > a, .tb-ev-order .nav-tabs > li.active > a:hover, .tb-ev-order .nav-tabs > li.active > a:focus { border: 0; border-bottom: 3px solid var(--go); background: transparent; color: var(--ink); }
.tb-ev-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.tb-ev-order-grid .tb-ev-cert { padding-top: 0; border-top: 0; }
.tb-ev-order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.tb-ev-order-row .tb-ev-price { color: var(--mint-d); }
.tb-ev-discount { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: var(--coral-d); }
.tb-ev-btns { display: grid; gap: 8px; max-width: 320px; margin-top: 12px; }
.tb-ev-btns .tb-btn svg { width: 18px; height: 18px; }
.tb-ev-video { padding: 10px 0; }
.tb-ev-chat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; }
.tb-ev-test-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: center; }
.tb-ev-test-stat { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.tb-ev-share-fb { --c: #1877f2; --c-d: #0d5fcb; --t: #fff; width: 100%; }
.tb-ev-conf-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-ev-conf-modal .share-modal-title { margin: 14px 0 6px; font: 800 18px/1.2 var(--f-display); text-align: center; }
.tb-ev-conf-modal .floating-yellow-dash { width: 48px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--go); }

/* «Дякуємо за реєстрацію» */
.tb-ev-thanks { max-width: 960px; margin: 0 auto; display: grid; gap: 16px; }
.tb-ev-thanks-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tb-ev-thanks-grid .tb-ev-quote { padding: 16px 18px; } /* верх цитати й картки подарунка на одній лінії */
.tb-ev-thanks .tb-page-h1 { text-align: center; }
.tb-ev-gift-card { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--paper-2); border: 2px solid var(--go); }
.tb-ev-gift-card h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 800 18px/1.2 var(--f-display); color: var(--coral-d); }
.tb-ev-gift-card h2 svg { width: 20px; height: 20px; }
.tb-ev-gift-card p { margin: 0; }
.tb-ev-gift-card em { font-size: 13px; color: var(--ink-2); }
.tb-ev-back { text-align: center; }
.tb-ev-back a { font-weight: 700; color: var(--ink-2); }

/* ---------- кабінет: «Мої вебінари», «Мої конференції», збережені ---------- */
.tb-ev-cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.tb-ev-cab-aside { display: grid; gap: 14px; min-width: 0; }
.tb-ev-cab-aside .library { margin: 0; }
.tb-ev-cab-aside .content-block { border-radius: 18px; }
.tb-ev-rows { display: grid; gap: 10px; }
.tb-ev-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .12s, box-shadow .12s; }
.tb-ev-row:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-2); }
.tb-ev-row.has-cert { grid-template-columns: 150px minmax(0, 1fr) 120px; }
.tb-ev-row-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--paper) center / cover no-repeat; overflow: hidden; }
.tb-ev-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tb-ev-row-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 0 var(--line-2); }
.tb-ev-row-thumb::before { content: ""; position: absolute; left: calc(50% - 3px); top: 50%; z-index: 1; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); transform: translate(-50%, -50%); }
.tb-ev-row-thumb .tb-ev-card-avatar { position: absolute; left: 8px; bottom: 8px; z-index: 2; width: 34px; height: 34px; }
.tb-ev-row-body { display: grid; gap: 6px; min-width: 0; }
.tb-ev-row-title { margin: 0; font: 800 16px/1.3 var(--f-display); overflow-wrap: anywhere; }
.tb-ev-row-title a { color: var(--ink); }
.tb-ev-row-title a:hover { color: var(--orange-d); }
.tb-ev-row-date { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.tb-ev-row-date div + div { margin-top: 2px; }
.tb-ev-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.tb-ev-row-cert { display: grid; gap: 6px; align-content: start; text-align: center; }
.tb-ev-row-cert img { width: 100%; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 3px 0 var(--line); }
.tb-ev-row-cert small { font: 700 11.5px/1.3 var(--f-body); color: var(--mint-d); }
.tb-ev-tasks { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.tb-ev-tasks li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tb-ev-tasks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--line-2); background: #fff; }
.tb-ev-tasks li.is-done { color: var(--ink-3); }
.tb-ev-tasks li.is-done::before { border-color: var(--mint); background: var(--mint); }
.tb-ev-tasks li.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-ev-tasks li a { color: var(--sky-d); font-weight: 700; }
.tb-ev-tasks li a:hover { color: var(--orange-d); }
.tb-ev-tasks li.is-done a { color: var(--ink-2); }
.tb-ev-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tb-ev-award { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ev-award img { width: 100%; border-radius: 8px; border: 1px solid var(--line-2); }
.tb-ev-award b { font: 700 13.5px/1.3 var(--f-display); }
.tb-ev-award small { font-size: 12px; color: var(--ink-3); }
.tb-ev-simple-list { display: grid; gap: 6px; }
.tb-ev-simple-list div { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tb-ev-simple-list div:last-child { border-bottom: 0; }
.tb-ev-simple-list a { color: var(--ink); font-weight: 700; }
.tb-ev-simple-list a:hover { color: var(--orange-d); }
.tb-ev-row .bookmark-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 12px; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; font: 800 13px/1.1 var(--f-body); color: var(--ink-2) !important; }
.tb-ev-row .bookmark-btn:hover { color: var(--coral-d) !important; border-color: var(--coral); }
.tb-ev-row .bookmark-btn svg { width: 15px; height: 15px; }
.tb-ev-fail { max-width: 720px; display: grid; gap: 10px; }
.tb-ev-fail h2 { margin: 0; font: 800 22px/1.2 var(--f-display); }
.tb-ev-fail p { margin: 0; font-size: 15px; line-height: 1.55; }
.tb-ev-fail a { color: var(--sky-d); font-weight: 700; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
    .tb-ev-catalog-grid, .tb-ev-grid, .tb-ev-cab-grid { grid-template-columns: 1fr; }
    .tb-ev-aside { position: static; }
    /* сторінка вебінару: картка дій (реєстрація / свідоцтво / перегляд) — одразу під шапкою, як у класики, а не під усім текстом */
    .tb-ev-single .tb-ev-grid .tb-ev-aside { order: -1; }
    .tb-ev-hero.has-art { padding-right: clamp(18px, 3vw, 28px); }
    .tb-ev-hero-art { display: none; }
    .tb-ev-benefits { grid-template-columns: 1fr; }
    .tb-ev-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-ev-order-grid, .tb-ev-test-grid, .tb-ev-chat-grid, .tb-ev-thanks-grid { grid-template-columns: 1fr; }
    .tb-ev-head { grid-template-columns: 1fr; }
    .tb-ev-cover { max-width: 360px; }
}
@media (max-width: 640px) {
    .tb-ev-cards { grid-template-columns: 1fr; }
    .tb-ev-benefit { padding: 10px 12px; }
    .tb-ev-bar .tb-btn { width: 100%; }
    .tb-ev-reviews { margin: 0; padding: 4px 0 12px; }
    .tb-ev-review { flex-basis: 86%; }
    .tb-ev-info-blocks, .tb-ev-features, .tb-ev-conf-actions, .tb-ev-reg-cta { grid-template-columns: 1fr; }
    .tb-ev-conf-head { border-radius: 16px; }
    .tb-ev-conf-head .tb-page-h1 { font-size: 22px; }
    .tb-ev-conf-date { width: 100%; }
    .tb-ev-lector { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .tb-ev-lector-photo { width: 56px; height: 56px; }
    .tb-ev-person { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .tb-ev-person img { width: 64px; height: 64px; }
    .tb-ev-award-note { grid-template-columns: 1fr; }
    .tb-ev-award-note svg { width: 32px; height: 32px; }
    .tb-ev-row, .tb-ev-row.has-cert { grid-template-columns: 1fr; }
    .tb-ev-row-thumb { max-width: 100%; }
    .tb-ev-row-cert { grid-template-columns: 100px minmax(0, 1fr); align-items: center; text-align: left; }
    .tb-ev-row-actions .tb-btn, .tb-ev-btns { width: 100%; max-width: none; }
    .tb-ev-order-row .tb-btn { width: 100%; }
    .tb-ev-reg-cta .tb-btn { width: 100%; }
    .tb-ev-reg-cta .tb-btn-lg, .tb-ev-conf-actions .tb-btn-lg { min-height: 48px; padding: 10px 14px; font-size: 15px; } /* довгий напис в один рядок, висота ≤ 52px */
    .tb-ev-head-actions .tb-btn { width: 100%; }
    .tb-ev-awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-ev-cover { max-width: none; }
}
/* телефон: записи (їх ~100) — компактні рядки «мініатюра + текст» замість обкладинки на всю ширину;
   сторінка вебінарів була ~40 000px заввишки. Заплановані події лишаються великими картками */
@media (max-width: 640px) {
    .tb-ev-cards.is-archive { gap: 10px; }
    .tb-ev-cards.is-archive .tb-ev-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "img title" "img lect" "tags tags"; grid-template-rows: auto 1fr auto; align-items: start; gap: 4px 12px; padding: 10px; border-radius: 16px; }
    .tb-ev-cards.is-archive .tb-ev-card-body { display: contents; }
    .tb-ev-cards.is-archive .tb-ev-card-img { grid-area: img; aspect-ratio: 4 / 3; border-radius: 10px; }
    .tb-ev-cards.is-archive .tb-ev-card-img::after { left: 6px; bottom: 6px; width: 26px; height: 26px; }
    .tb-ev-cards.is-archive .tb-ev-card-img::before { left: 16px; bottom: 13px; border-width: 6px 0 6px 9px; }
    .tb-ev-cards.is-archive .tb-ev-card-title { grid-area: title; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .tb-ev-cards.is-archive .tb-ev-card-lectors { grid-area: lect; margin-top: 0; padding-top: 0; border-top: 0; font-size: 12px; }
    .tb-ev-cards.is-archive .tb-ev-card-tags { grid-area: tags; margin-top: 6px; }
    .tb-ev-cards.is-archive .tb-ev-card-tags .tb-chip:first-child:not(:only-child) { display: none; } /* тип («Вебінар») однаковий для всього каталогу — лишаємо години ПК */
    .tb-ev-cards.is-archive .tb-ev-card-date { grid-column: 2; }
    .tb-ev-cards.is-archive .tb-ev-card-avatar, .tb-ev-cards.is-archive .tb-ev-card-vector { display: none; }
}
