/* ==========================================================================
   Тема нового дизайну · олімпіади, конкурси, заявки, класи, проєкти (views/beta-theme/{event,contest,manage,classes,project})
   Префікс класів tb-ol-. Токени й базові компоненти — web/test-beta-static/beta.css.
   ========================================================================== */

/* ---- спільне ---------------------------------------------------------- */
.tb-ol { --ol-r: 18px; }
.tb-ol-public.tb-page { max-width: 1140px; margin: 0 auto; }
.tb-ol-section { margin: 0 0 28px; }
.tb-ol-h2 { margin: 0 0 12px; font: 800 clamp(20px, 2.4vw, 26px)/1.2 var(--f-display); color: var(--ink); }
.tb-ol-h2-center { text-align: center; }
.tb-ol-h2-gap { margin-top: 24px; }
.tb-ol-h3 { margin: 0 0 10px; font: 800 17px/1.25 var(--f-display); color: var(--ink); }
.tb-ol-center { text-align: center; }
.tb-ol-muted { color: var(--ink-2); font-weight: 600; margin: 0 0 10px; }
.tb-ol-muted a, .tb-ol-content a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-ol-missing { color: var(--coral-d); font-weight: 700; }
.tb-ol-content { font-size: 16px; line-height: 1.55; color: var(--ink); }
.tb-ol-content p { margin: 0 0 10px; }
.tb-ol-content p:last-child { margin-bottom: 0; }
.tb-ol-content ul, .tb-ol-content ol { padding-left: 22px; margin: 0 0 10px; }
.tb-ol-content img { max-width: 100%; height: auto; border-radius: 12px; }
.tb-ol-content h3, .tb-ol-content h4 { margin: 18px 0 8px; font: 800 18px/1.25 var(--f-display); }
/* SEO-текст з бази (конкурси/олімпіади) має й <h1>/<h2> — без цього правила вони 38px/500 з bootstrap, як у журналі: 24px/800 */
.tb-ol-content h1, .tb-ol-content h2 { margin: 20px 0 10px; font: 800 24px/1.25 var(--f-display); color: var(--ink); }
.tb-ol-content > :first-child { margin-top: 0; }
.tb-ol-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tb-ol-list li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.tb-ol-list-check li svg { position: absolute; left: 0; top: 0; width: 24px; height: 24px; padding: 4px; border-radius: 8px; background: #e8f5e9; color: var(--mint-d); }
.tb-ol-list-num { counter-reset: ol; }
.tb-ol-list-num li { counter-increment: ol; }
.tb-ol-list-num li::before { content: counter(ol); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--go); color: #fff; font: 800 13px/24px var(--f-display); text-align: center; }
.tb-ol-error { display: block; margin-top: 4px; color: var(--coral-d); font-size: 13px; font-weight: 600; }
.tb-ol .is-disabled, .tb-ol .is-disabled:hover { opacity: .5; cursor: not-allowed; pointer-events: none; }
.tb-ol-danger, .tb-ol a.tb-ol-danger { color: var(--coral-d) !important; }
.tb-ol-bid-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tb-ol-spin { width: 16px; height: 16px; animation: tb-ol-rot 1s linear infinite; }
.tb-ol-spin-big { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--line-2); border-top-color: var(--go); animation: tb-ol-rot .8s linear infinite; }
.tb-ol-loading { display: grid; place-items: center; padding: 40px 0; }
@keyframes tb-ol-rot { to { transform: rotate(360deg); } }
.tb-ol-empty-img { width: 96px; margin: 0 auto 10px; display: block; opacity: .85; }
.tb-ol-grid.tb-lib-grid { grid-template-areas: "main top" "main bottom"; }
.tb-ol-grid > .tb-lib-main { grid-area: main; min-width: 0; }
.tb-ol-grid > .tb-lib-aside-top { grid-area: top; }
.tb-ol-banner { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); }
.tb-ol-banner img { display: block; }

/* bootstrap-вкладки в стилі бети */
.tb-ol-tabs-nav, .tb-ol-apply-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 4px; list-style: none; border-radius: 14px; background: var(--paper); }
.tb-ol-tabs-nav li, .tb-ol-apply-tabs li { flex: 1 1 auto; margin: 0; }
.tb-ol-tabs-nav li a, .tb-ol-apply-tabs li a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 11px; color: var(--ink-2); font: 800 15px/1.2 var(--f-body); text-align: center; text-decoration: none !important; transition: background .12s, color .12s; }
.tb-ol-tabs-nav li a small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tb-ol-tabs-nav li a:hover, .tb-ol-apply-tabs li a:hover { color: var(--ink); }
.tb-ol-tabs-nav li.active a, .tb-ol-apply-tabs li.active a { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.tb-ol-tabs-nav li.active a small { color: var(--ink-2); }
.tb-ol .tab-content > .tab-pane { display: none; }
.tb-ol .tab-content > .active { display: block; }
.tb-ol-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---- лендінг олімпіади ------------------------------------------------- */
.tb-ol-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "body art" "line line"; gap: 20px 32px; align-items: center; margin: 0 0 28px; padding: 28px clamp(16px, 3vw, 36px); border-radius: 24px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ol-hero-body { grid-area: body; display: grid; gap: 14px; justify-items: start; }
.tb-ol-hero-title.tb-page-h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; }
.tb-ol-hero-art { grid-area: art; min-width: 0; }
.tb-ol-hero-art #olymp-top { width: 100%; max-width: 520px; margin: 0 auto; }
.tb-ol-hero-art #olymp-top svg, .tb-ol-hero-art #olymp-top img { display: block; width: 100%; height: auto; }
.tb-ol-timeline { grid-area: line; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; }
.tb-ol-step { position: relative; display: grid; gap: 4px; padding: 12px 12px 12px 48px; border-radius: 14px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.tb-ol-step b { font: 800 15px/1.2 var(--f-display); color: var(--ink); }
.tb-ol-step-dot { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); color: var(--ink-2); font: 800 13px/24px var(--f-display); text-align: center; }
.tb-ol-step.is-current { background: #fff8e1; }
.tb-ol-step.is-current .tb-ol-step-dot { background: var(--go); border-color: var(--go); color: #fff; }
.tb-ol-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; }
.tb-ol-about-art img { display: block; width: 100%; max-width: 420px; margin: 0 auto; }
.tb-ol-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tb-ol-subject { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "img title" "img range"; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 86px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); cursor: pointer; transition: transform .12s, border-color .15s, box-shadow .12s; }
.tb-ol-subject:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.tb-ol-subject.active { border-color: var(--go); box-shadow: 0 6px 0 var(--go); background: #fff8e1; }
.tb-ol-subject-img { grid-area: img; width: 52px; height: 52px; object-fit: contain; }
.tb-ol-subject-title { grid-area: title; font: 800 14px/1.2 var(--f-display); color: var(--ink); }
.tb-ol-subject-range { grid-area: range; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tb-ol-subject-range b { font-size: 13px; color: var(--ink-2); }
.tb-ol-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tb-ol-feature { padding: 20px 18px; border-radius: var(--ol-r); background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); text-align: center; }
.tb-ol-feature img { width: 96px; height: 96px; margin: 0 auto 12px; display: block; object-fit: contain; }
.tb-ol-feature h5 { margin: 0 0 8px; font: 800 17px/1.25 var(--f-display); color: var(--ink); }
.tb-ol-feature p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); font-weight: 600; }
.tb-ol-awards-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; align-items: center; }
.tb-ol-awards-row + .tb-ol-awards-row { margin-top: 26px; padding-top: 26px; border-top: 2px solid var(--line); }
.tb-ol-awards-row-teacher { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.tb-ol-awards-text p { margin: 0; font-weight: 600; color: var(--ink-2); line-height: 1.55; }
.tb-ol-awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tb-ol-awards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tb-ol-awards-grid-sm { grid-template-columns: repeat(4, 1fr); }
.tb-ol-award { display: grid; gap: 6px; justify-items: center; text-align: center; }
.tb-ol-award-preview { display: block; width: 100%; padding: 6px; border-radius: 12px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--g, var(--line)); transition: transform .12s; }
.tb-ol-award-preview:hover { transform: translateY(-3px); }
.tb-ol-award-preview img { display: block; width: 100%; height: auto; border-radius: 6px; }
.tb-ol-award-name { padding: 3px 10px; border-radius: 99px; background: var(--g, var(--ink)); color: #fff; font: 800 12px/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .03em; }
.tb-ol-award-name-sm { text-transform: none; letter-spacing: 0; }
.tb-ol-award small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tb-ol-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tb-ol-numbers .tb-stat-tile { text-align: center; align-items: center; box-shadow: 0 4px 0 var(--line); }
.tb-ol-numbers .tb-stat-tile b { color: var(--orange-d); }
.tb-ol-partners img { max-width: 100%; height: auto; }
.tb-ol-faq-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tb-ol-faq-item { border-radius: 14px; background: #fff; border: 2px solid var(--line); overflow: hidden; }
.tb-ol-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: transparent; color: var(--ink) !important; font: 700 15px/1.35 var(--f-body); text-align: left; cursor: pointer; text-decoration: none !important; }
.tb-ol-faq-q svg { flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform .15s; }
.tb-ol-faq-q:not(.collapsed) svg, .tb-ol-faq-q.is-open svg { transform: rotate(180deg); }
.tb-ol-faq-a { padding: 0 16px 14px; color: var(--ink-2); }
.tb-ol-faq-a.collapse:not(.in) { display: none; }
.tb-ol-support { margin-top: 24px; padding: 22px; border-radius: var(--ol-r); background: #fff8e1; border: 2px solid var(--go); text-align: center; }
.tb-ol-support small { display: block; font: 800 13px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--sun-d); }
.tb-ol-support p { margin: 6px 0 14px; font-size: 17px; font-weight: 600; color: var(--ink); }
.tb-ol-support .tb-btn img { width: 24px; height: 24px; }

/* ---- форма заявки (лендінг + конкурс) ------------------------------------ */
.tb-ol-apply-head { margin-bottom: 16px; text-align: center; }
.tb-ol-apply-head .tb-modal-sub { margin-top: 2px; }
.tb-ol-apply-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tb-ol-apply-grid.has-aside { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.tb-ol-form { margin: 0; }
.tb-ol-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-ol-field-row .tb-field { margin-bottom: 16px; }
.tb-ol-label-ico { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--ink-3); }
.tb-ol-label-ico svg { width: 16px; height: 16px; }
.tb-ol-label-ico.is-link { cursor: pointer; color: var(--sky); }
.tb-ol-attention { margin: 4px 0 16px; }
.tb-ol-attention ul { margin: 4px 0 0; padding-left: 20px; font-weight: 600; }
.tb-ol-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.tb-ol-form-foot .tb-btn[disabled], .tb-ol .tb-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.tb-ol-assns { padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.tb-ol-assns-head { margin-bottom: 8px; font: 800 13px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.tb-ol-assns ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tb-ol-assns li.tb-ol-assns-group { margin-top: 8px; font: 800 13px/1.3 var(--f-display); color: var(--ink-3); }
.tb-ol-assns li.tb-ol-assns-group:first-child { margin-top: 0; }
.tb-ol-assns li a { display: block; padding: 8px 12px; border-radius: 10px; background: #fff; border: 2px solid var(--line); color: var(--ink) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; transition: border-color .12s; }
.tb-ol-assns li a:hover { border-color: var(--ink); }
.tb-ol-apply-foot { margin: 16px 0 0; text-align: center; font-weight: 600; color: var(--ink-2); }
.tb-ol-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-ol-guest-one { grid-template-columns: 1fr; }
.tb-ol-guest-col { display: grid; gap: 10px; justify-items: center; padding: 22px; border-radius: 16px; background: var(--paper); text-align: center; }
.tb-ol-guest-col p { margin: 0; font-weight: 600; color: var(--ink-2); max-width: 420px; }
.tb-ol-guest-col .tb-ol-h2 { margin: 0; }
.tb-ol-guest-col .tb-modal-sub { margin: -6px 0 0; }

/* ---- конкурси ------------------------------------------------------------ */
.tb-ol-contest-list { display: grid; gap: 10px; margin-bottom: 20px; }
.tb-ol-contest { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .12s, border-color .15s, box-shadow .12s; }
.tb-ol-contest:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.tb-ol-contest.is-done { background: var(--paper); box-shadow: none; }
.tb-ol-contest.is-done:hover { transform: none; border-color: var(--line-2); box-shadow: none; }
.tb-ol-contest-img { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; }
.tb-ol-contest-body { display: grid; gap: 6px; justify-items: start; }
.tb-ol-contest-name { margin: 0; font: 800 17px/1.25 var(--f-display); }
.tb-ol-contest-name a { color: var(--ink) !important; }
.tb-ol-contest-name a:hover { color: var(--orange-d) !important; }
.tb-ol-contest-when { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tb-ol-page-text { margin-top: 10px; }
.tb-ol-contest-hero { position: relative; min-height: 300px; margin: 0 0 16px; padding: 36px clamp(16px, 4vw, 44px); border-radius: 24px; background-color: var(--ink); background-size: cover; background-position: center; color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.tb-ol-contest-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 50, 56, .82) 0%, rgba(38, 50, 56, .45) 60%, rgba(38, 50, 56, .15) 100%); }
.tb-ol-contest-hero-body { position: relative; display: grid; gap: 14px; justify-items: start; max-width: 640px; }
/* body.tb-chrome у селекторі: класичний .library h1 { font-weight: 400; font-size: 27px } інакше перебивав заголовок */
body.tb-chrome .tb-ol-contest-h1, .tb-ol-contest-h1 { margin: 0; font: 800 clamp(22px, 3.2vw, 34px)/1.15 var(--f-display); color: #fff; }
.tb-ol-contest-h1 .contest-name { display: block; color: var(--go); }
.tb-ol-contest-h1 .contest-grade { display: block; margin-top: 6px; font-size: .6em; font-weight: 700; color: rgba(255, 255, 255, .85); }
.tb-ol-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.tb-ol-date { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--g, var(--line)); }
.tb-ol-date-name { display: flex; align-items: center; gap: 6px; font: 800 12.5px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.tb-ol-date-name svg { width: 16px; height: 16px; }
.tb-ol-date b { font: 800 16px/1.3 var(--f-display); color: var(--ink); }
.tb-ol-logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.tb-ol-logos img { width: 140px; height: auto; }
.tb-ol-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-ol-benefit { position: relative; padding-top: 22px; border-top: 6px solid var(--g, var(--go)); }
.tb-ol-benefit-ico { width: 64px; height: 64px; margin-bottom: 10px; object-fit: contain; }

/* ---- мої заявки ---------------------------------------------------------- */
.tb-ol-bids-filters .tb-filters-row { align-items: center; }
.tb-ol-bids-filters .tb-catalog-count { margin: 0; }
.tb-ol-bid-groups { display: grid; gap: 12px; }
.tb-ol-bid-group { padding: 16px 18px; border-radius: var(--ol-r); background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tb-ol-bid-group-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.tb-ol-bid-kind { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff8e1; color: var(--sun-d); }
.tb-ol-bid-kind.is-contest { background: #e8eaf6; color: var(--grape); }
.tb-ol-bid-kind svg { width: 26px; height: 26px; }
.tb-ol-bid-group-name { margin: 0; font: 800 18px/1.25 var(--f-display); color: var(--ink); }
.tb-ol-bid-group-sub { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tb-ol-bid-list .tb-label { margin-bottom: 8px; }
.tb-ol-bid-classes { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-ol-bid-class { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px 6px 14px; border-radius: 12px; background: var(--paper); border: 2px solid var(--line); color: var(--ink) !important; text-decoration: none !important; transition: border-color .12s, background .12s; }
.tb-ol-bid-class span { font: 800 15px/1 var(--f-display); }
.tb-ol-bid-class small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tb-ol-bid-class svg { width: 16px; height: 16px; color: var(--ink-3); }
.tb-ol-bid-class:hover { background: #fff; border-color: var(--ink); }
.tb-ol-promo-aside .promo-cert { margin: 0 0 14px; padding: 16px; border-radius: var(--ol-r); background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); font-family: var(--f-body); text-align: center; }
.tb-ol-promo-aside .promo-cert img { max-width: 100%; height: auto; border-radius: 8px; }
.tb-ol-promo-aside .promo-cert-name { margin: 10px 0 6px; font: 800 14px/1.3 var(--f-display); color: var(--ink); }
.tb-ol-promo-aside .btn.btn-primary { display: block; width: 100%; min-height: 42px; padding: 9px 14px; border: 0; border-radius: 12px; background: var(--go); color: #fff; font: 800 14px/1.2 var(--f-display); box-shadow: 0 4px 0 var(--go-d); }
.tb-ol-promo-aside .progress { height: 10px; border-radius: 99px; background: var(--paper); box-shadow: none; }
.tb-ol-promo-aside .progress-bar { background: var(--mint); font-size: 0; }
.tb-ol-form-card { max-width: 640px; }

/* ---- класи --------------------------------------------------------------- */
.tb-ol-classes-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.tb-ol-classes-colhead, .tb-ol-students-colhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 10px; }
.tb-ol-classes-colhead .tb-label, .tb-ol-students-colhead .tb-label { margin: 0; }
.tb-ol-students-colhead-codes { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.tb-ol-students-colhead-codes .tb-chip-btn { text-transform: none; letter-spacing: 0; }
.tb-ol-students-colhead-codes .tb-chip-btn svg { width: 16px; height: 16px; }
.tb-ol-check { position: relative; display: inline-flex; width: 22px; height: 22px; flex: none; margin: 0; cursor: pointer; }
.tb-ol-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-ol-check span { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; transition: background .12s, border-color .12s; }
.tb-ol-check input:checked + span { background: var(--ink); border-color: var(--ink); background-image: 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"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.tb-ol-class-list { display: grid; gap: 8px; }
.tb-ol-class { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 10px 8px 10px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--line); transition: border-color .12s, box-shadow .12s, transform .12s; }
.tb-ol-class:hover { border-color: var(--line-2); }
.tb-ol-class.is-on { border-color: var(--go); background: #fff8e1; box-shadow: 0 4px 0 var(--go); }
.tb-ol-class-cover { position: absolute; inset: 0; border-radius: 14px; z-index: 1; }
.tb-ol-class-grade { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper); color: var(--ink-2); font: 900 17px/1 var(--f-display); }
.tb-ol-class.is-on .tb-ol-class-grade { background: var(--go); color: #fff; }
.tb-ol-class-body { display: grid; gap: 2px; min-width: 0; }
.tb-ol-class-name { font: 800 15px/1.2 var(--f-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ol-class-name span { font-weight: 600; color: var(--ink-3); font-size: 12.5px; }
.tb-ol-class-count { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.tb-ol-class-action, .tb-ol-student-action { position: relative; z-index: 2; }
.tb-ol-iconbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-3) !important; background: transparent; transition: background .12s, color .12s; }
.tb-ol-iconbtn:hover, .open > .tb-ol-iconbtn { background: #fff; color: var(--ink) !important; box-shadow: 0 2px 0 var(--line); }
.tb-ol-iconbtn svg { width: 20px; height: 20px; }
.tb-ol .dropdown-menu.tb-ol-menu { min-width: 200px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 14px 30px rgba(38, 50, 56, .12); font-family: var(--f-body); }
.tb-ol .dropdown-menu.tb-ol-menu > li > a { padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 14px; }
.tb-ol .dropdown-menu.tb-ol-menu > li > a:hover { background: var(--paper); color: var(--ink); }
.tb-ol .dropdown-menu.tb-ol-menu .divider { margin: 6px 4px; background: var(--line); }
.tb-ol-students { display: grid; gap: 8px; }
.tb-ol-bidinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tb-ol-bidinfo p { margin: 0 0 6px; }
.tb-ol-bidinfo a { color: var(--ink); font-weight: 700; }
.tb-ol-bidinfo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tb-ol-bidinfo li { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.tb-ol-bidinfo-link { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; color: var(--sky) !important; }
.tb-ol-bidinfo-link svg { width: 14px; height: 14px; }
.tb-ol-bidinfo-empty { grid-column: 1 / -1; text-align: center; }
.tb-ol-grade-alert { display: grid; gap: 10px; margin-bottom: 0; }
.tb-ol-grade-alert .tb-field { margin: 0; }
.tb-ol-bulk { min-height: 32px; }
.tb-ol-bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fff8e1; border: 2px solid var(--go); }
.tb-ol-bulk-actions b { margin-right: auto; font: 800 14px/1 var(--f-display); }
.tb-ol-bulk-title { padding: 6px 2px; font: 800 17px/1.2 var(--f-display); color: var(--ink); }
.tb-ol-bulk-title span { font-weight: 600; color: var(--ink-3); font-size: 14px; }
.tb-ol-students-empty { padding: 32px 20px; }
.tb-ol-student { display: grid; grid-template-columns: 22px minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 10px 8px 10px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); transition: border-color .12s, background .12s; }
.tb-ol-student-plain { grid-template-columns: minmax(0, 1fr) 36px; }
.tb-ol-student:hover { border-color: var(--line-2); }
.tb-ol-student.is-on { background: #fff8e1; border-color: var(--go); }
.tb-ol-student-info { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; min-width: 0; cursor: pointer; }
.tb-ol-student-name { font: 700 15px/1.25 var(--f-body); color: var(--ink); overflow-wrap: anywhere; }
.tb-ol-student-code { padding: 4px 10px; border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.tb-ol-student-note { font-size: 12px; font-weight: 600; color: var(--ink-3); font-style: normal; }
.tb-ol-students-foot { padding-top: 4px; }

/* bootstrap-модалки класів і заявки в стилі бети */
.tb-ol .modal-content { border-radius: 20px; border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 24px 60px rgba(0, 0, 0, .22); font-family: var(--f-body); color: var(--ink); }
.tb-ol .modal-header { padding: 18px 22px 12px; border-bottom: 2px solid var(--line); }
.tb-ol .modal-body { padding: 18px 22px; }
.tb-ol .modal-footer { padding: 12px 22px 18px; border-top: 2px solid var(--line); }
.tb-ol .modal-title, .tb-ol .modal h4.modal-title { margin: 0 0 12px; font: 800 20px/1.2 var(--f-display); color: var(--ink); }
.tb-ol .modal .hint, .tb-ol .modal .hint-block { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tb-ol .modal .control-label { display: block; margin-bottom: 6px; font: 800 12.5px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.tb-ol .modal .form-control { min-height: 46px; padding: 10px 14px; border: 2px solid var(--line-2); border-radius: 12px; box-shadow: none; font: 700 15px/1.3 var(--f-body); color: var(--ink); }
.tb-ol .modal .form-control:focus { border-color: var(--sky); box-shadow: none; }
.tb-ol .modal hr { margin: 14px 0; border-top: 2px solid var(--line); }
.tb-ol .modal .btn { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; font: 800 15px/1.1 var(--f-body); box-shadow: 0 4px 0 var(--line-2); white-space: normal; }
.tb-ol .modal .btn-default { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.tb-ol .modal .btn-orange, .tb-ol .modal .btn-orange:hover, .tb-ol .modal .btn-orange:focus { background: var(--go); color: #fff; box-shadow: 0 4px 0 var(--go-d); text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.tb-ol .modal .btn.disabled { opacity: .6; }
.tb-ol .modal .close { font-size: 26px; opacity: .5; }
.tb-ol .modal .student-join-code { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--paper); font: 900 26px/1.1 var(--f-display); letter-spacing: .06em; text-align: center; color: var(--ink); }
.tb-ol .modal .student-join-self-add, .tb-ol .modal .student-join-by-code { padding: 14px; border-radius: 14px; border: 2px solid var(--line); height: 100%; }
.tb-ol .modal .student-join-link, .tb-ol .modal .student-update-link { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tb-ol .modal a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-ol .modal .checkbox label { font-weight: 600; }
.tb-ol .modal .modal-loading { text-align: center; padding: 10px; }
.tb-ol .modal-dialog.wide { width: 760px; max-width: calc(100% - 20px); }
.tb-ol .modal .help-block { font-size: 13px; color: var(--ink-3); }
.tb-ol .modal .has-error .help-block, .tb-ol .modal .has-error .control-label { color: var(--coral-d); }
.tb-ol .modal .select2-container--krajee .select2-selection { min-height: 46px; border: 2px solid var(--line-2); border-radius: 12px; }

/* ---- сторінка заявки й результати ---------------------------------------- */
.tb-ol-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; }
.tb-ol-nav .tb-chip-btn svg { width: 16px; height: 16px; }
.tb-ol-req-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.tb-ol-req-side { display: grid; gap: 14px; }
.tb-ol-req-card .tb-lib-h2 { display: flex; align-items: center; gap: 8px; }
.tb-ol-req-card .tb-lib-h2 svg { width: 20px; height: 20px; color: var(--ink-3); }
.tb-ol-info { margin: 0 0 14px; display: grid; gap: 0; }
.tb-ol-info-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tb-ol-info-row:last-child { border-bottom: 0; }
.tb-ol-info-row dt { margin: 0; font: 700 13px/1.4 var(--f-body); color: var(--ink-3); }
.tb-ol-info-row dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.tb-ol-info-row dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-ol-req-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-ol-files { display: grid; gap: 14px; }
.tb-ol-files.has-docs { grid-template-columns: 1fr 1fr; }
.tb-ol-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tb-ol-links li a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--paper); color: var(--ink) !important; font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none !important; transition: background .12s; }
.tb-ol-links li a:hover { background: #fff8e1; }
.tb-ol-links li a svg { flex: none; width: 18px; height: 18px; color: var(--sun-d); }
.tb-ol-links-awards li a { background: #fff8e1; border: 2px solid var(--go); }
.tb-ol-awards-card .tb-ol-muted:last-child { margin-bottom: 0; }
.tb-ol-req-students { margin-bottom: 14px; }
.tb-ol-req-students .tb-ol-students-colhead { margin-bottom: 8px; }
.tb-ol-steps { margin-top: 0; }
.tb-ol-res-card { margin-bottom: 14px; }
.tb-ol-res-card .tb-table th, .tb-ol-res-card .tb-table td { white-space: nowrap; }
.tb-ol-res-card .tb-table td:first-child { white-space: normal; }
.tb-ol-score { font: 900 18px/1 var(--f-display); }
.tb-ol-res-tasks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tb-ol-res-tasks:empty { display: none; }
.tb-ol-rounds { margin-bottom: 12px; }
.tb-ol-sheet { min-width: 420px; }
.tb-ol-sheet-n { text-align: center; padding-left: 6px !important; padding-right: 6px !important; }
.tb-ol-sheet-name { color: var(--ink) !important; font-weight: 700; text-decoration: underline !important; text-decoration-color: var(--go) !important; text-underline-offset: 3px; }
.tb-ol-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--paper); color: var(--ink-3); font: 800 13px/1 var(--f-body); }
.tb-ol-mark.is-ok { background: #e8f5e9; color: var(--mint-d); }
.tb-ol-mark.is-half { background: #fff8e1; color: var(--sun-d); }
.tb-ol-mark.is-bad { background: #ffebee; color: var(--coral-d); }
.tb-ol-res-card .tb-chip-btn svg { width: 15px; height: 15px; color: var(--sun-d); }
.tb-ol-res-card .student-award { white-space: nowrap; }

/* ---- проєкти ------------------------------------------------------------- */
.tb-ol-promo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: center; margin-bottom: 18px; }
.tb-ol-promo-lead { margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.tb-ol-promo-art img { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
.tb-ol-project-cards { margin-top: 10px; }
.tb-ol-project-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.tb-ol-project-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-ol-project .tb-tcard-body { padding: 14px 16px 16px; display: grid; gap: 10px; align-content: start; }
.tb-ol-project-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.tb-ol-project-tags:empty { display: none; }
.tb-ol-project-meta { margin: 0; display: grid; gap: 6px; }
.tb-ol-project-meta > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; }
.tb-ol-project-meta dt { margin: 0; font: 700 12.5px/1.4 var(--f-body); color: var(--ink-3); }
.tb-ol-project-meta dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.tb-ol-project-meta-col > div { grid-template-columns: 1fr; gap: 2px; }
.tb-ol-project-meta-col { gap: 10px; }
.tb-ol-pager { display: flex; justify-content: center; margin-top: 18px; }
.tb-ol-pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tb-ol-pager .pagination > li > a, .tb-ol-pager .pagination > li > span { float: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; }
.tb-ol-pager .pagination > li.active > a, .tb-ol-pager .pagination > li.active > span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tb-ol-pager .pagination > li.disabled > a, .tb-ol-pager .pagination > li.disabled > span { opacity: .45; }
.tb-ol-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; background: transparent; font-size: 13.5px; font-weight: 700; }
.tb-ol-crumbs a { color: var(--ink-2) !important; }
.tb-ol-problem { border-left: 6px solid var(--go); }
.tb-ol-problem-text { margin: 0; font: 700 18px/1.4 var(--f-display); color: var(--ink); }
.tb-ol-project-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.tb-ol-action { display: grid; gap: 8px; justify-items: center; padding: 14px 10px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); text-align: center; color: var(--ink) !important; font: 800 13.5px/1.25 var(--f-display); text-decoration: none !important; transition: transform .12s, border-color .15s, box-shadow .12s; }
.tb-ol-action img { width: 48px; height: 48px; object-fit: contain; }
.tb-ol-action:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.tb-ol-action.is-premium { background: #fff8e1; border-color: var(--go); }
.tb-ol-action.is-soon { opacity: .55; }
.tb-ol-action sup { color: var(--coral); font-size: 10px; }
.tb-ol-steps-title { margin: 16px 0 8px; font: 800 16px/1.3 var(--f-display); }
.tb-ol-saved { grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; }
.tb-ol-saved-img { display: block; border-radius: 10px; overflow: hidden; background: var(--paper); }
.tb-ol-saved-img img { display: block; width: 100%; height: auto; }
.tb-ol-saved-body { display: grid; gap: 8px; }
.tb-ol-saved-name { margin: 0; font: 800 17px/1.25 var(--f-display); }
.tb-ol-saved-name a { color: var(--ink) !important; }
.tb-ol-saved-name a:hover { color: var(--orange-d) !important; }
.tb-ol-saved-actions .tb-btn svg { width: 16px; height: 16px; }
.tb-ol-sub-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; margin: 0 0 18px; padding: 32px clamp(16px, 4vw, 40px); border-radius: 24px; background: var(--ink); color: #fff; }
.tb-ol-sub-h1.tb-page-h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; }
.tb-ol-sub-quote { margin: 0; padding: 0 0 0 16px; border-left: 4px solid var(--go); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); font-style: italic; }
.tb-ol-sub-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; color: var(--go); }
.tb-ol-sub-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 18px; border-color: var(--go); }
.tb-ol-sub-price { margin: 4px 0 8px; font: 900 40px/1 var(--f-display); color: var(--orange-d); }
.tb-ol-sub-price small { font: 700 16px/1 var(--f-body); color: var(--ink-3); }
.tb-ol-sub-offer-action { display: grid; gap: 8px; min-width: 240px; }
.tb-ol-sub-offer-action .tb-note { margin: 0; text-align: center; }
.tb-ol-sub-features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; }
.tb-ol-feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tb-ol-feature-list-2 { grid-template-columns: 1fr 1fr; }
.tb-ol-feature-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--ink-2); }
.tb-ol-feature-list li b { color: var(--ink); }
.tb-ol-feature-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff8e1; color: var(--sun-d); }
.tb-ol-feature-ico svg { width: 20px; height: 20px; }

/* ---- адаптив ------------------------------------------------------------- */
@media (max-width: 991px) {
    .tb-ol-grid.tb-lib-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "top" "bottom"; }
    .tb-ol-classes-grid { grid-template-columns: 240px minmax(0, 1fr); }
    .tb-ol-req-grid, .tb-ol-sub-features, .tb-ol-promo, .tb-ol-sub-hero { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-awards-row, .tb-ol-awards-row-teacher { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-awards-row-teacher .tb-ol-awards-text { order: -1; }
    .tb-ol-promo-art { display: none; }
}
@media (max-width: 767px) {
    .tb-ol-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "art" "line"; }
    .tb-ol-hero-art #olymp-top { max-width: 360px; }
    .tb-ol-timeline, .tb-ol-features, .tb-ol-numbers, .tb-ol-dates { grid-template-columns: 1fr 1fr; }
    .tb-ol-about, .tb-ol-cols2, .tb-ol-benefits, .tb-ol-guest, .tb-ol-bidinfo, .tb-ol-feature-list-2 { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-apply-grid.has-aside { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-classes-grid { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-class-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .tb-ol-class { flex: 0 0 220px; }
    .tb-ol-sub-offer { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-sub-offer-action { min-width: 0; }
}
@media (max-width: 640px) {
    .tb-ol-public.tb-page { padding-left: 0; padding-right: 0; }
    .tb-ol-hero { padding: 20px 16px; border-radius: 18px; }
    .tb-ol-hero-body .tb-btn, .tb-ol-form-foot .tb-btn, .tb-ol-guest-col .tb-btn, .tb-ol-support .tb-btn, .tb-ol-contest-action .tb-btn, .tb-ol-sub-offer-action .tb-btn, .tb-ol-req-actions .tb-btn, .tb-ol-res-tasks .tb-btn, .tb-ol-students-foot .tb-btn, .tb-ol-students-empty .tb-btn, .tb-ol .tb-empty .tb-btn, .tb-ol-catalog-head .tb-btn, .tb-ol .tb-catalog-head-row .tb-btn { width: 100%; }
    .tb-ol-timeline, .tb-ol-features, .tb-ol-numbers, .tb-ol-dates, .tb-ol-awards-grid, .tb-ol-awards-grid-3, .tb-ol-awards-grid-sm, .tb-ol-field-row, .tb-ol-files.has-docs { grid-template-columns: 1fr 1fr; }
    .tb-ol-awards-grid, .tb-ol-awards-grid-3, .tb-ol-awards-grid-sm { grid-template-columns: repeat(2, 1fr); }
    .tb-ol-timeline, .tb-ol-features, .tb-ol-numbers, .tb-ol-dates, .tb-ol-field-row, .tb-ol-files.has-docs { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-subjects { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-tabs-nav li, .tb-ol-apply-tabs li { flex: 1 1 100%; }
    .tb-ol-contest { grid-template-columns: 64px minmax(0, 1fr); }
    .tb-ol-contest-img { width: 64px; height: 64px; }
    .tb-ol-contest-action { grid-column: 1 / -1; }
    .tb-ol-contest-hero { min-height: 220px; padding: 22px 16px; border-radius: 18px; }
    .tb-ol-bid-group-head { grid-template-columns: 40px minmax(0, 1fr); }
    .tb-ol-bid-kind { width: 40px; height: 40px; }
    .tb-ol-info-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .tb-ol-student { grid-template-columns: 22px minmax(0, 1fr) 36px; padding-left: 10px; }
    .tb-ol-student-plain { grid-template-columns: minmax(0, 1fr) 36px; }
    .tb-ol-student-info { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .tb-ol-students-colhead-codes { margin-left: 0; width: 100%; justify-content: space-between; }
    .tb-ol-nav { flex-direction: column; align-items: stretch; }
    .tb-ol-nav .tb-seg { display: flex; }
    .tb-ol-nav .tb-seg .tb-chip-btn { flex: 1 1 0; justify-content: center; }
    .tb-ol-project-actions { grid-template-columns: 1fr 1fr; }
    .tb-ol-project-meta > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .tb-ol-saved { grid-template-columns: minmax(0, 1fr); }
    .tb-ol-saved-img { max-width: 200px; }
    .tb-ol-sub-hero { padding: 22px 16px; border-radius: 18px; }
    .tb-ol-sub-price { font-size: 32px; }
    .tb-ol .modal-dialog.wide { width: auto; }
    .tb-ol .modal .student-join-info .col-md-6 { padding-left: 15px !important; padding-right: 15px !important; margin-bottom: 10px; }
    .tb-ol-apply-head, .tb-ol-h2-center { text-align: left; }
}
/* завершені конкурси: перші 6, решта — за кнопкою «Показати всі» (на телефоні список був ~33 000px) */
.tb-ol-contest-list.is-collapsed > :nth-child(n+7) { display: none; }
.tb-ol-more { justify-self: start; }
@media (max-width: 640px) { .tb-ol-more { justify-self: stretch; width: 100%; } }
