/* infoLogia Live — көрермендер беті (live.infologia.kz).
   Оқушылардың 99%-ы телефоннан кіреді: стильдер алдымен телефонға жазылған,
   компьютерге арналғаны — төмендегі @media (min-width: 900px) ішінде.
   Негізгі түс — бренд көгі (#34409D); қызыл тек «ЭФИР» белгісіне. Эфир бөлмесі қараңғы (кинотеатр сияқты). */
.lv { --live: #E5484D; --top: 56px; background: var(--canvas); font-size: 15px; min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
/* iOS 16px-тен кіші өріске басқанда бетті үлкейтіп жібереді — сондықтан 16px */
.lv input[type=text], .lv input[type=email], .lv input[type=tel], .lv select { font-size: 16px; min-height: 50px; padding: 12px 14px; border-radius: 12px; }
.lv .btn { min-height: 44px; justify-content: center; }
.lv .field label { font-size: 13.5px; }

.lv-top { display: flex; align-items: center; gap: 10px; height: var(--top); padding: 0 16px; padding-top: env(safe-area-inset-top); background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.lv-brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.lv-brand:hover { text-decoration: none; }
.lv-logo { height: 22px; width: auto; display: block; }
.lv-logo-d { display: none; }
.lv-tagline { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--border); }
.lv-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.lv-online { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; color: var(--text-2); }
.lv-onair { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--live); color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .03em; white-space: nowrap; flex-shrink: 0; }
.lv-onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lv-pulse 1.6s infinite; }
@keyframes lv-pulse { 50% { opacity: .35; } }
.lv-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: 12.5px; }
.lv-big { width: 100%; min-height: 52px !important; font-size: 16px; margin-top: 4px; border-radius: 14px; }

/* Мұқаба суреті жоқ болса — бренд түсті мұқаба */
.lv-cover-gen, .lv-cover-ph { position: relative; background: var(--brand); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; }
.lv-grid-bg { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 28px 22px; -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000); }
.lv-cover-gen::after, .lv-cover-ph::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -40%; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 40px rgba(255,255,255,.03); }
.lv-cover-gen b, .lv-cover-ph b { position: relative; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; max-width: 85%; }
.lv-kicker { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border-radius: 8px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; }

/* ---------- Тізім ---------- */
.lv-page { max-width: 1160px; margin: 0 auto; padding: 20px 16px calc(32px + env(safe-area-inset-bottom)); }
.lv-page > h1 { font-size: 26px; line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.025em; font-weight: 700; }
.lv-cards { display: grid; gap: 14px; margin-top: 20px; }
.lv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.lv-card:hover { text-decoration: none; border-color: var(--brand-300); box-shadow: var(--shadow-pop); }
.lv-card img, .lv-cover-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: flex; }
.lv-cover-ph b { font-size: 17px; }
.lv-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; justify-items: start; }
.lv-card-body > b { font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }

/* ---------- Тіркелу беті ---------- */
.lv-landing { display: flex; flex-direction: column; gap: 14px; padding-top: 0; }
.lv-hero .lv-cover { width: calc(100% + 32px); margin: 0 -16px 18px; aspect-ratio: 16/9; object-fit: cover; display: flex; }
.lv-hero h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; margin: 10px 0 14px; font-weight: 700; }
.lv-hero > .lv-chip, .lv-hero > .lv-onair { margin-top: 2px; }
.lv-speaker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lv-speaker i, .lv-av-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-style: normal; font-size: 17px; flex-shrink: 0; }
.lv-speaker b { display: block; font-size: 15px; }
.lv-speaker span { color: var(--muted); font-size: 13px; }
.lv-when { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lv-when span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.lv-when .ico { color: var(--brand); }
.lv-countdown { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--brand-900); border-radius: 14px; padding: 12px 6px; color: #fff; }
.lv-countdown span { display: grid; justify-items: center; font-size: 11.5px; color: rgba(255,255,255,.6); }
.lv-countdown span + span { border-left: 1px solid rgba(255,255,255,.12); }
.lv-countdown b { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.lv-reg, .lv-desc { background: var(--surface); border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 20px 18px; }
.lv-reg h2 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.lv-sub { margin: 0 0 16px; font-size: 14px; }
.lv-reg .field { margin-bottom: 12px; }
.lv-fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; line-height: 1.45; }
.lv-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.lv-ok .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.lv-steps { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.lv-steps li { margin-bottom: 6px; }
.lv-desc { line-height: 1.65; font-size: 15px; color: var(--text-2); }
.lv-desc h2 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.lv-desc p:last-child { margin-bottom: 0; }
.lv-copy { display: flex; gap: 8px; }
.lv-copy input { flex: 1; min-width: 0; font-size: 14px !important; color: var(--muted); }
.lv-mine { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.lv-reg select { width: 100%; }

/* ---------- Эфир бөлмесі: қараңғы; телефонда мессенджер сияқты, бет жылжымайды ---------- */
.lv-roombody {
  --canvas: #0D0F18; --bg: #0D0F18; --surface: #12141F; --surface-2: #1B1E2C; --hover: #21263A;
  --border: #1E2232; --border-strong: #2A2F44; --text: #ECEEF6; --text-2: #B9BED0; --muted: #8C92A8;
  --brand-50: #1F2440; --brand-100: #232A55; --green-soft: #12301F; --green: #4CC594; --amber-soft: #2E2610;
  color-scheme: dark; background: var(--canvas); color: var(--text);
  height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column;
}
.lv-roombody .lv-top { background: var(--canvas); }
.lv-roombody .lv-logo-l { display: none; }
.lv-roombody .lv-logo-d { display: block; }
.lv-roombody .lv-tagline { display: none; }
.lv-roombody .btn.primary { color: #fff; }
.lv-room { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv-stage { flex-shrink: 0; }
.lv-player { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.lv-player iframe, .lv-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lv-shield { position: absolute; inset: 0; }  /* автовебинарда YouTube плеерін басқаруға болмайды */
.lv-fs { position: absolute; right: 10px; bottom: 10px; z-index: 2; border: 0; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; padding: 7px; cursor: pointer; display: grid; place-items: center; }
.lv-fs .ico { width: 18px; height: 18px; }
.lv-join { position: absolute; inset: 0; width: 100%; border: 0; background: radial-gradient(circle at 50% 45%, #232A55, #0B0D16 70%); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 12px; }
.lv-join span { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: #34409D; display: grid; place-items: center; padding-left: 4px; transition: transform .15s; box-shadow: 0 0 0 10px rgba(255,255,255,.08); }
.lv-join span .ico { width: 26px; height: 26px; fill: currentColor; }
.lv-join:hover span { transform: scale(1.06); }
.lv-screen { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: #fff; background: radial-gradient(circle at 50% 45%, #232A55, #0B0D16 70%) center / cover; padding: 12px; }
.lv-screen h2 { font-size: 20px; margin: 0 0 4px; }
.lv-screen p { margin: 2px 0; color: #B9BED0; font-size: 13.5px; }
.lv-screen .lv-countdown { width: min(320px, 90vw); margin: 8px 0; background: rgba(255,255,255,.07); padding: 10px 4px; }
.lv-screen .lv-countdown b { font-size: 22px; }
.lv-about { display: none; }

/* Сауалнама: плеердің астында; дауыс бергенде — пайыздық жолақтар */
.lv-poll { margin: 10px 10px 0; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-strong); animation: lv-in .35s ease-out; }
.lv-poll-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.lv-poll-tag { background: var(--brand-100); color: #C9CEFA; font-weight: 700; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.lv-poll-q { display: block; font-size: 15px; line-height: 1.35; margin-bottom: 10px; }
.lv-poll-opts { display: grid; gap: 6px; }
.lv-poll-opt { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.lv-poll-opt:hover { border-color: #8590F2; background: var(--hover); }
.lv-poll-opt:disabled { opacity: .6; cursor: default; }
.lv-poll-res { display: grid; gap: 6px; }
.lv-poll-bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface); overflow: hidden; font-size: 14px; }
.lv-poll-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-100); transition: width .5s; }
.lv-poll-bar.mine i { background: #34409D; }
.lv-poll-bar span, .lv-poll-bar b { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.lv-poll-total { font-size: 12px; margin-top: 8px; }

/* Кнопкалар (оффер): бренд түсті карточка; бірнешеу болса — көлденең сырғытылады */
.lv-offers { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 10px 0; scrollbar-width: none; }
.lv-offers::-webkit-scrollbar { display: none; }
.lv-offers:empty { display: none; }
.lv-offer { --c: #34409D; --c2: #4A3FA6; flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; border-radius: 14px; background: linear-gradient(120deg, var(--c), var(--c2)); color: #fff; padding: 10px 10px 10px 12px; animation: lv-in .35s ease-out; min-width: 0; box-shadow: 0 6px 24px rgba(52, 64, 157, .3); }
.lv-offers:has(.lv-offer + .lv-offer) .lv-offer { flex-basis: 88%; }
.lv-offer.c-green { --c: #17845A; --c2: #1F9D6C; }
.lv-offer.c-red { --c: #C93A3F; --c2: #E5484D; }
.lv-offer.c-amber { --c: #C46F0C; --c2: #E08A1E; }
.lv-offer img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.lv-offer-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.lv-offer-body > div:first-child { flex: 1; min-width: 0; }
.lv-offer-body b { font-size: 14.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lv-offer p { display: none; }
.lv-timer { margin-top: 3px; font-weight: 600; font-size: 12.5px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.lv-timer i { font-style: normal; display: none; }  /* телефонда тек сағат белгісі мен уақыт */
.lv-offer-act { flex-shrink: 0; max-width: 46%; }
.lv-btn { padding: 10px 16px; font-size: 14px; font-weight: 700; background: #fff; border-color: #fff; color: var(--c, #34409D); border-radius: 11px; white-space: normal; text-align: center; line-height: 1.2; min-height: 42px !important; }
.lv-btn:hover { background: #fff; filter: brightness(.96); text-decoration: none; }
.lv-btn:disabled { background: rgba(255,255,255,.18); border-color: transparent; color: rgba(255,255,255,.75); cursor: default; filter: none; }
.lv-done { font-weight: 600; font-size: 12.5px; color: #fff; line-height: 1.3; display: flex; gap: 6px; align-items: flex-start; }
.lv-done .ico { flex-shrink: 0; margin-top: 1px; }
@keyframes lv-in { from { opacity: 0; transform: translateY(8px); } }

/* Чат пен қатысушылар қалған орынның бәрін алады */
.lv-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); margin-top: 10px; border-top: 1px solid var(--border); }
.lv-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.lv-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; height: 32px; padding: 0 12px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lv-tabs button.on { background: var(--surface-2); color: var(--text); }
.lv-count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.lv-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv-pane[hidden] { display: none; }
.lv-pinned { margin: 10px 12px 0; padding: 9px 12px; border-radius: 10px; background: var(--brand-50); font-size: 13px; flex-shrink: 0; max-height: 25%; overflow-y: auto; display: flex; gap: 8px; align-items: flex-start; }
.lv-pinned > .ico { color: #A9B0E3; margin-top: 2px; }
.lv-pinned[hidden] { display: none; }
.lv-pinned .lv-msg { padding: 0; }
.lv-pinned .lv-av { display: none; }
.lv-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px; }
.lv-msg { display: flex; gap: 10px; padding: 7px 0; overflow-wrap: anywhere; line-height: 1.4; }
.lv-av { --h: 230; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 11.5px; color: #fff; flex-shrink: 0; background: hsl(var(--h) 45% 48%); }
.lv-mb { min-width: 0; flex: 1; }
.lv-who { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.lv-who b { color: var(--text-2); font-weight: 600; }
.lv-t { font-size: 14.5px; color: var(--text); margin-top: 1px; }
.lv-msg.staff .lv-who b { color: #A9B0E3; }
.lv-msg.staff .lv-av { background: #34409D; }
.lv-msg.pending { opacity: .55; }
.lv-tag { font-size: 10.5px; font-weight: 700; background: #34409D; color: #fff; border-radius: 5px; padding: 1px 6px; }
.lv-time { color: var(--muted); font-size: 11px; }
.lv-send { display: flex; gap: 8px; padding: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); flex-shrink: 0; background: var(--surface); }
.lv-send input { flex: 1; min-width: 0; border-radius: 999px !important; background: var(--surface-2) !important; border-color: transparent !important; color: var(--text); min-height: 46px !important; padding: 0 16px !important; }
.lv-send .btn { width: 46px; min-height: 46px; height: 46px; border-radius: 50%; padding: 0; flex-shrink: 0; background: #34409D; border-color: #34409D; }
.lv-note { padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); text-align: center; flex-shrink: 0; }
.lv-send + .lv-note { padding-top: 0; border-top: 0; margin-top: -4px; }
.lv-note[hidden] { display: none; }
.lv-people { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.lv-people .lv-note { border: 0; width: 100%; }
.lv-person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-2); font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-person i { --h: 230; width: 22px; height: 22px; border-radius: 50%; background: hsl(var(--h) 45% 48%); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.lv-person.more { padding: 4px 12px; font-weight: 700; background: var(--brand-100); color: #C9CEFA; }

/* Телефонды жатқызғанда — видео бүкіл экранға */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .lv-roombody .lv-top, .lv-offers, .lv-chat { display: none; }
  .lv-player { height: 100dvh; aspect-ratio: auto; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 900px) {
  .lv-top { padding: 0 24px; }
  .lv-title { font-size: 14px; }
  .lv-page { padding: 36px 24px 64px; }
  .lv-page > h1 { font-size: 32px; }
  .lv-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
  .lv-landing { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px 32px; align-items: start; }
  .lv-hero { grid-column: 1; grid-row: 1; }
  .lv-desc { grid-column: 1; grid-row: 2; }
  .lv-reg { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 88px; padding: 24px; }
  .lv-hero .lv-cover { width: 100%; margin: 0 0 24px; border-radius: 20px; }
  .lv-cover-gen { padding: 28px; }
  .lv-cover-gen b { font-size: 30px; max-width: 70%; }
  .lv-hero h1 { font-size: 36px; margin: 12px 0 16px; }
  .lv-countdown { max-width: 460px; }
  .lv-countdown b { font-size: 28px; }

  .lv-roombody { height: auto; min-height: 100vh; overflow: visible; display: block; }
  .lv-room { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding: 16px 24px; max-width: 1560px; margin: 0 auto; }
  .lv-player { border-radius: 14px; }
  .lv-screen h2 { font-size: 24px; }
  .lv-screen p { font-size: 14.5px; }
  .lv-about { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
  .lv-about h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
  .lv-about p { margin: 0; }
  .lv-offers { display: grid; gap: 10px; padding: 0; margin-top: 12px; overflow: visible; }
  .lv-offer { padding: 16px 16px 16px 20px; gap: 16px; }
  .lv-offer img { width: 64px; height: 64px; border-radius: 10px; }
  .lv-offer-body { gap: 16px; }
  .lv-offer-body b { font-size: 16px; -webkit-line-clamp: unset; }
  .lv-offer p { display: block; margin: 2px 0 0; color: rgba(255,255,255,.78); font-size: 13.5px; }
  .lv-timer { font-size: 13.5px; margin-top: 6px; }
  .lv-timer i { display: inline; }
  .lv-offer-act { max-width: none; }
  .lv-btn { padding: 11px 22px; font-size: 15px; white-space: nowrap; }
  .lv-done { font-size: 14px; max-width: 280px; }
  .lv-chat { margin-top: 0; border: 1px solid var(--border); border-radius: 14px; height: calc(100vh - 90px); position: sticky; top: 72px; min-height: 380px; overflow: hidden; }
}
