/* 🎓 Кабинет учениц: вход и личный кабинет. Цвета и шрифты — из style.css (:root). */
[hidden] { display: none !important; }
.konto-wrap { max-width: 440px; margin: 0 auto; padding: 16px 16px 48px; }
.konto-top { display: flex; justify-content: flex-end; align-items: center; min-height: 48px; margin-bottom: 16px; }
/* Кабинет: логотип + «Kursy» всегда висят над страницей слева вверху (как плавающая шапка сайта, /assets/fx/dock.css),
   «имя + кружок» — справа вверху. В начале страницы под них оставлено место, при прокрутке страница уходит под них. */
.konto-top.has-hdr { min-height: 52px; margin-bottom: 14px; }
.konto-top.has-hdr .konto-me { position: fixed; top: 8px; right: 16px; z-index: 1100; box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(18, 18, 18, .78); }
@media (max-width: 600px) { .konto-top.has-hdr .konto-me { right: 8px; } }
.konto-logo img { width: 48px; height: 48px; filter: drop-shadow(0 0 12px rgba(212, 175, 55, .5)); }
.lang-mini { display: flex; gap: 6px; padding: 4px 8px; background: rgba(26, 26, 26, .85); border: 1px solid var(--border); border-radius: 20px; }
.lang-mini a { color: var(--text-inactive); font-weight: bold; font-size: 13px; padding: 2px 8px; border-radius: 12px; text-decoration: none; }
.lang-mini a.active { background: var(--accent); color: var(--text-dark); }
.konto-wrap h1 { font-size: 1.5rem; margin: 0 0 8px; }
.konto-wrap h2 { font-size: 1.1rem; margin: 28px 0 14px; }
.konto-lead { margin: 0 0 20px; font-size: 1rem; }
.konto-note { background: rgba(212, 175, 55, .1); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; color: var(--text-muted); }
.konto-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.konto-card .form-group { margin-bottom: 16px; }
.konto-card .form-group input { font-size: 16px; }   /* 16px — iPhone не зумит поле при фокусе */
.konto-btn { width: 100%; min-height: 46px; font-size: 1rem; text-align: center; }
.konto-btn:hover { transform: none; }
.konto-btn:disabled { opacity: .45; cursor: default; filter: grayscale(.6); }
.konto-btn-outline { background: none; border: 1px solid var(--accent); color: var(--text); border-radius: 25px; padding: 10px 18px; min-height: 44px; cursor: pointer; font: inherit; }
.konto-code { letter-spacing: 8px; font-size: 24px !important; text-align: center; }
.konto-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.konto-link { background: none; border: none; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 8px 0; min-height: 44px; }
.konto-link:disabled { color: var(--text-disabled); text-decoration: none; cursor: default; }
.konto-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 0 8px 8px 0; background: rgba(224, 36, 132, .12); border-left: 3px solid var(--accent-pink); color: var(--text); font-size: .95rem; max-width: none; }
.konto-devices { list-style: none; padding: 0; margin: 0 0 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; max-width: none; }
.konto-device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); margin: 0; font-size: 1rem; max-width: none; }
.konto-device:last-child { border-bottom: none; }
.konto-device div { display: flex; flex-direction: column; gap: 2px; }
.konto-device span { font-size: .8rem; color: var(--text-light-muted); }
#deviceList .konto-device { flex-direction: column; align-items: stretch; }
.konto-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.konto-head h1 { margin: 0; }
.konto-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--text-dark); font-weight: bold; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.konto-sub { color: var(--text-light-muted); font-size: .9rem; }
.konto-empty p { margin: 0; }
#turnstile-container { margin: 0 0 12px; }

/* ---------- Фон: логотип KSBraid, 20%, под всем содержимым ---------- */
.konto-bg::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url(/images/logo-mobile.webp) center 60% / min(80vw, 520px) no-repeat; opacity: .2;
}
.konto-noscroll { overflow: hidden; }

/* ---------- Ярлык «имя + кружок» справа вверху ---------- */
.konto-me { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 14px; border: 1px solid var(--border); border-radius: 26px; background: rgba(26, 26, 26, .85); color: var(--text); font: inherit; font-weight: bold; cursor: pointer; }
.konto-me:hover { border-color: var(--accent); }
.konto-me-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.konto-ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; background: var(--bg-input); border: 1px solid var(--accent); display: flex; }
.konto-ava img { width: 100%; height: 100%; object-fit: cover; }
.konto-ava.is-logo img { object-fit: contain; padding: 3px; box-sizing: border-box; }
.konto-ava-lg { width: 64px; height: 64px; }

/* ---------- Курсы ---------- */
.konto-kicker { font-size: .8rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light-muted); border-bottom: none !important; padding-bottom: 0; margin: 24px 0 12px !important; }
.konto-continue { display: block; color: var(--text); text-decoration: none; }
.konto-continue strong { display: block; margin-top: 10px; font-size: 1.05rem; }
.konto-thumb { position: relative; display: block; flex: none; width: 112px; height: 63px; border-radius: 8px; overflow: hidden; background: var(--bg-input) url(/images/logo-mobile.webp) center / 40% no-repeat; background-size: cover; }
.konto-thumb:not([style*="background-image"]) { background-size: 40%; }
.konto-thumb-lg { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background-position: center 35%; }
.konto-play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(212, 175, 55, .92); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 25px rgba(212, 175, 55, .45); }
.konto-time { position: absolute; right: 8px; bottom: 10px; font-size: 11px; background: rgba(0, 0, 0, .8); padding: 1px 5px; border-radius: 3px; }
.konto-bar { position: absolute; left: 0; right: 0; bottom: 3px; height: 8px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='14' viewBox='0 0 7 14'><g transform='translate(-3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(0 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(7 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(10.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g></svg>") repeat-x left center / auto 100%; }
.konto-bar i { display: block; height: 100%; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='14' viewBox='0 0 7 14'><g transform='translate(-3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(0 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(7 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(10.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g></svg>") repeat-x left center / auto 100%; filter: drop-shadow(0 0 2px rgba(212,175,55,.5)); }
.konto-thumb-lg .konto-bar { height: 12px; bottom: 6px; }
.konto-thumb-lg .konto-time { bottom: 24px; }
.konto-courses { display: flex; flex-direction: column; gap: 14px; }
.konto-course { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; padding: 8px; margin: -8px; border-radius: 12px; }
a.konto-course:hover { background: rgba(255, 255, 255, .04); }
.konto-course-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.konto-course-info strong { font-size: .95rem; }
.konto-course-info .konto-sub { font-size: .8rem; }
.konto-until { font-size: .8rem; color: var(--accent); }
.konto-until.is-soon { color: #ffb44d; }
.konto-course.is-expired .konto-thumb { filter: grayscale(1) brightness(.6); }
.konto-course.is-expired strong { color: var(--text-muted); }
.konto-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; filter: none; }
.konto-btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; flex: none; }

/* ---------- Меню профиля: панель справа ---------- */
.konto-menu { position: fixed; inset: 0; z-index: 10000; }
.konto-menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.konto-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); background: var(--bg); border-left: 1px solid var(--border); }
.konto-menu-head { display: flex; align-items: center; gap: 14px; }
.konto-menu-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.konto-menu-who strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; }
.konto-menu-who .konto-sub { overflow: hidden; text-overflow: ellipsis; }
.konto-x { width: 44px; height: 44px; border: none; background: none; color: var(--text-light-muted); font-size: 28px; cursor: pointer; flex: none; }
.konto-menu h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light-muted); margin: 22px 0 10px; }
.konto-pills { display: flex; gap: 8px; }
.konto-pill { min-height: 40px; min-width: 56px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--border-light); background: var(--bg-input); color: var(--text-muted); font: inherit; font-size: 14px; cursor: pointer; }
.konto-pill.on { background: var(--accent); color: var(--text-dark); border-color: var(--accent); font-weight: bold; }
.konto-card-tight { padding: 6px 16px 14px; }
.konto-switch { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 1rem; }
.konto-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.konto-switch i { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--border-light); transition: background .2s; flex: none; }
.konto-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.konto-switch input:checked + i { background: var(--accent); }
.konto-switch input:checked + i::after { transform: translateX(18px); }
.konto-switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.konto-inline { display: flex; gap: 8px; }
.konto-inline input { flex: 1; min-width: 0; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border-light); color: var(--text); border-radius: 8px; font-size: 16px; }
.konto-fine { font-size: .78rem; line-height: 1.45; color: var(--text-light-muted); margin: 8px 0 0; max-width: none; }
.konto-saved { font-size: .85rem; color: #6fcf6f; margin: 6px 0 0; }
.konto-device.is-off strong { color: var(--text-disabled); }
.konto-menu .konto-devices { margin-bottom: 8px; }
.konto-menu #logoutBtn { margin-top: 24px; width: 100%; }

/* ---------- Без полос прокрутки (прокрутка остаётся) ---------- */
html, body, .konto-menu-panel, .konto-modal-box { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .konto-menu-panel::-webkit-scrollbar, .konto-modal-box::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- Кружок фото в меню: нажатие — сменить, долгое нажатие — крестик ---------- */
.konto-ava-wrap { position: relative; flex: none; }
button.konto-ava { padding: 0; cursor: pointer; position: relative; overflow: visible; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button.konto-ava img { border-radius: 50%; pointer-events: none; -webkit-user-drag: none; }
button.konto-ava:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.konto-ava-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; }
.konto-ava-del { position: absolute; top: -8px; left: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); background: var(--accent-pink); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; animation: konto-pop .15s ease-out; }
@keyframes konto-pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* ---------- Строки меню «Язык», «Уведомления» ---------- */
.konto-rows { margin-top: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.konto-rowbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 12px 0 16px; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.konto-rowbtn:last-child { border-bottom: none; }
.konto-rowbtn > span:first-child { flex: 1; }
.konto-rowval { color: var(--text-light-muted); font-size: .9rem; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto-chev { color: var(--text-disabled); flex: none; }
.konto-rowbtn:hover { background: rgba(255, 255, 255, .04); }

/* ---------- Маленькие окна поверх меню ---------- */
.konto-modal { position: fixed; inset: 0; z-index: 10010; display: flex; align-items: center; justify-content: center; padding: 16px; }
.konto-modal[hidden] { display: none !important; }
.konto-modal-top { z-index: 10020; }
.konto-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.konto-modal-box { position: relative; width: min(360px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; padding: 18px 18px 20px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); animation: konto-pop .15s ease-out; }
.konto-modal-box h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--accent); text-transform: none; letter-spacing: 0; }
.konto-modal-box .form-group { margin-bottom: 8px; }
.konto-modal-box .form-group input { font-size: 16px; }
.konto-options { display: flex; flex-direction: column; gap: 8px; }
.konto-option { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-light); background: var(--bg-input); color: var(--text); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.konto-option.on { border-color: var(--accent); background: rgba(212, 175, 55, .12); font-weight: bold; }
.konto-modal-btn { margin-top: 14px; }
.konto-modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.konto-modal-actions > * { flex: 1; min-height: 46px; }
.konto-modal-actions .konto-btn { width: auto; padding: 0 12px; }

/* ---------- Страница урока ---------- */
.konto-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; margin-left: -10px; }
.konto-top-title { flex: 1; min-width: 0; font-size: .85rem; color: var(--text-light-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="lesson"] .konto-wrap { max-width: 520px; }
.konto-player { position: relative; margin: 0 -16px; background: #000; overflow: hidden; }
.konto-player video { display: block; width: 100%; max-height: 72vh; height: 72vh; background: #000; object-fit: contain; }
.konto-player.is-fs { position: fixed; inset: 0; z-index: 9999; margin: 0; display: flex; align-items: center; }
.konto-player.is-fs video { max-height: none; height: 100%; }
.konto-wm { position: absolute; z-index: 2; left: 0; top: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; opacity: .35; font-size: 13px; pointer-events: none; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); transition: left 1s, top 1s; }
.konto-pbtn { position: absolute; z-index: 5; transition: opacity .25s; top: max(8px, env(safe-area-inset-top)); width: 44px; height: 44px; border: none; border-radius: 22px; background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.konto-pbtn-gear { right: 8px; }
.konto-pbtn-fs { right: 60px; }
.konto-poverlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(0, 0, 0, .78); }
.konto-poverlay p { margin: 0; color: #fff; font-size: 1rem; max-width: 320px; }
.konto-poverlay .konto-btn { width: auto; padding: 0 28px; }
.konto-poverlay .konto-btn-outline { text-decoration: none; display: inline-flex; align-items: center; }
.konto-lesson-info { padding: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.konto-lesson-info h1 { font-size: 1.1rem !important; color: var(--text) !important; margin: 0 !important; line-height: 1.3; }
.konto-chip { min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.konto-label { margin: 14px 0 8px; font-size: .8rem; color: var(--text-light-muted); max-width: none; }
.konto-modal-box .konto-pills { flex-wrap: wrap; }
.konto-lessons { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.konto-lrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.konto-lrow:last-child { border-bottom: none; }
.konto-lrow > span:nth-child(2) { flex: 1; }
.konto-lrow.is-current { background: rgba(212, 175, 55, .1); color: var(--accent); font-weight: bold; }
.konto-lnum { width: 22px; text-align: center; color: var(--accent); font-weight: bold; }

/* --- Свои кнопки плеера (системные выключены) --- */
.konto-player video { cursor: pointer; }
.konto-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 18px 12px max(8px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); transition: opacity .25s; }
.konto-ctrl-row { display: flex; align-items: center; gap: 4px; }
.konto-ctrl-gap { flex: 1; }
.konto-cbtn { width: 44px; height: 44px; border: none; background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 22px; padding: 0; }
.konto-cbtn:focus-visible, .konto-pbtn:focus-visible, .konto-bigplay:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }
.konto-ptime { color: #fff; font-size: .9rem; padding-left: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.konto-cbtn .i-pause, .konto-cbtn .i-mute { display: none; }
.konto-player.is-playing .konto-cbtn .i-play, .konto-player.is-muted .konto-cbtn .i-vol { display: none; }
.konto-player.is-playing .konto-cbtn .i-pause, .konto-player.is-muted .konto-cbtn .i-mute { display: block; }
.konto-seek { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.konto-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #d4af37 var(--p), rgba(255,255,255,.3) var(--p)); }
.konto-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.konto-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #d4af37; }
.konto-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #d4af37; border: none; }
.konto-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #d4af37; border: none; }
.konto-bigplay { position: absolute; z-index: 4; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: none; border-radius: 50%; background: rgba(212,175,55,.92); color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 25px rgba(212,175,55,.45); padding: 0; transition: opacity .2s; }
.konto-player.is-playing .konto-bigplay { opacity: 0; pointer-events: none; }
/* Пока смотрят и не трогают — кнопки и курсор прячутся */
.konto-player.is-playing:not(.show-ctrl) .konto-ctrl,
.konto-player.is-playing:not(.show-ctrl) .konto-pbtn { opacity: 0; pointer-events: none; }
.konto-player.is-playing:not(.show-ctrl) video { cursor: none; }
/* Субтитры (Shaka рисует их в div внутри плеера) */
.konto-player .shaka-text-container { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 6% 4%; box-sizing: border-box; font-size: 18px; line-height: 1.35; transition: padding-bottom .25s; }
.konto-player.show-ctrl .shaka-text-container, .konto-player:not(.is-playing) .shaka-text-container { padding-bottom: 86px; }
.konto-player .shaka-text-container span:not(:empty), .konto-player .shaka-text-container div > span { background: rgba(0,0,0,.7) !important; color: #fff; padding: 2px 8px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.konto-player.is-fs .shaka-text-container { font-size: 22px; }

/* Громкость: на ПК ползунок раскрывается при наведении, на телефоне скрыт (громкость — кнопками телефона) */
.konto-volwrap { display: flex; align-items: center; }
.konto-vol { width: 0; opacity: 0; transition: width .2s, opacity .2s; }
.konto-volwrap:hover .konto-vol, .konto-volwrap:focus-within .konto-vol { width: 84px; opacity: 1; margin-right: 4px; }
@media (hover: none), (pointer: coarse) { .konto-vol { display: none; } }
/* Жесты: двойное касание сбоку — подсказка «−10 с / +10 с»; смахивание не прокручивает страницу */
.konto-player video { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.konto-seekhint { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); padding: 10px 16px; border-radius: 24px; background: rgba(0,0,0,.55); color: #fff; font-weight: bold; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.konto-seekhint.on { opacity: 1; }
.konto-seekhint.left { left: 12%; }
.konto-seekhint.right { right: 12%; }
.konto-player.is-closing { transition: transform .18s, opacity .18s; transform: translateY(40px); opacity: 0; }

/* Полоса просмотра — золотая косичка: серая — вся длина, золотая — просмотрено; ползунок — резинка */
.konto-seekwrap { position: relative; height: 24px; --p: 0; }
.konto-braid, .konto-braid-fill { position: absolute; left: 0; top: 5px; height: 14px; background-repeat: repeat-x; background-size: 7px 14px; pointer-events: none; }
.konto-braid { right: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='14' viewBox='0 0 7 14'><g transform='translate(-3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(0 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(7 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(10.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='rgba(255,255,255,.28)' stroke='rgba(0,0,0,.35)' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='0.7' stroke-linecap='round'/></g></svg>"); }
.konto-braid-fill { width: calc(8px + (100% - 16px) * var(--p)); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='14' viewBox='0 0 7 14'><g transform='translate(-3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(0 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(3.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(7 5.2) rotate(30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g><g transform='translate(10.5 8.8) rotate(-30)'><ellipse rx='4.6' ry='2.5' fill='%23d4af37' stroke='%236e5210' stroke-width='0.8'/><path d='M-2.8 -0.7 Q0 -1.9 2.8 -0.7' fill='none' stroke='%23f5e08a' stroke-width='0.7' stroke-linecap='round'/></g></svg>"); filter: drop-shadow(0 0 3px rgba(212,175,55,.45)); }
.konto-seek.konto-seek-braid { position: relative; z-index: 1; height: 24px; }
.konto-seek.konto-seek-braid::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.konto-seek.konto-seek-braid::-moz-range-track, .konto-seek.konto-seek-braid::-moz-range-progress { background: transparent; }
.konto-seek.konto-seek-braid::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: #1b1b1b; border: 3px solid #d4af37; box-shadow: 0 0 0 1px #6e5210, 0 1px 4px rgba(0,0,0,.6); }
.konto-seek.konto-seek-braid::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #1b1b1b; border: 3px solid #d4af37; box-shadow: 0 0 0 1px #6e5210; }

.konto-player:has(.ks-mini.on) .konto-bigplay { opacity: 0; }

/* --- Вход через Google --- */
.konto-google { margin-bottom: 16px; }
.konto-google-btn { display: flex; justify-content: center; min-height: 44px; }
.konto-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--text-muted); font-size: .9rem; }
.konto-or::before, .konto-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* --- Удаление аккаунта --- */
.konto-danger { color: #e05a5a !important; margin-top: 14px; font-size: .9rem; }
.konto-btn-danger { background: #c0392b !important; color: #fff !important; }
.konto-btn-danger:disabled { opacity: .45; }
.konto-check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: .95rem; cursor: pointer; }
.konto-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: #c0392b; }
.konto-note-danger { border-left-color: #c0392b; background: rgba(192,57,43,.12); color: var(--text); }

/* =====================================================================
   🛍 Страница курсов /{lang}/kursy
   ===================================================================== */
.kursy-wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.kursy-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.kursy-logo img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent); box-shadow: 0 0 18px rgba(212,175,55,.45); display: block; }
.kursy-nav { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.kursy-nav a { padding: 7px 14px; border: 1px solid var(--accent); border-radius: 20px; color: var(--text); text-decoration: none; font-size: .9rem; }
.kursy-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kursy-acct { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border: 1px solid var(--accent); border-radius: 24px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: bold; min-height: 40px; }
.kursy-acct img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--accent); }
.kursy-acct:not(.is-in) { padding: 8px 18px; background: var(--accent); color: var(--text-dark); }
.kursy-acct:not(.is-in) img { display: none; }
.kursy-course { margin-top: 18px; }
.kursy-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 18px; }
.kursy-kicker { font-size: .8rem; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.kursy-head h1 { margin: 0; font-size: 1.9rem; line-height: 1.2; color: var(--accent); }
.kursy-desc { margin: 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.5; max-width: 600px; }
.kursy-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kursy-chip { padding: 6px 14px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 20px; font-size: .85rem; color: var(--text-light-muted); }
.kursy-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.kursy-buy { box-sizing: border-box; max-width: 100%; width: auto; min-width: min(100%, 300px); padding: 12px 30px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.kursy-hint { font-size: .9rem; color: var(--text-muted); }
.kursy-hint a { color: var(--accent); }
.kursy-ok { color: var(--accent); }
.kursy-cover { margin: 28px auto 0; max-width: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 9 / 16; max-height: 70vh; }
.kursy-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kursy-sec { margin-top: 44px; }
.kursy-sec h2 { margin: 0 0 18px; font-size: 1.3rem; border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.kursy-lesson { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.kursy-lnum { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: .85rem; flex: none; }
.kursy-ltitle { flex: 1; font-weight: bold; }
.kursy-ltime { color: var(--text-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.kursy-lock { color: var(--text-light-muted); display: flex; }
.kursy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.kursy-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; font-size: .95rem; line-height: 1.5; color: var(--text-muted); }
.kursy-item b { color: var(--text); }
.kursy-item > span:first-child { flex: none; display: flex; }
.kursy-price { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.kursy-price p { margin: 0; color: var(--text-muted); line-height: 1.6; max-width: none; }
.kursy-amount { width: fit-content; background: rgba(212,175,55,.1); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 10px 14px; font-weight: bold; font-size: 1.4rem; }
.kursy-payvia { color: var(--accent); font-size: .9rem; }
.kursy-price .kursy-actions { align-items: stretch; }
.kursy-price .kursy-buy { width: 100%; }
.kursy-fine { font-size: .82rem !important; color: var(--text-light-muted) !important; }
.kursy-fine a { color: var(--accent); }
.kursy-faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.kursy-faq summary { padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; font-weight: bold; cursor: pointer; list-style: none; }
.kursy-faq summary::-webkit-details-marker { display: none; }
.kursy-faq[open] .kursy-plus { transform: rotate(45deg); }
.kursy-plus { color: var(--accent); transition: transform .2s; flex: none; }
.kursy-faq p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); line-height: 1.6; max-width: none; }
.kursy-none { text-align: center; margin-top: 40px; }
.kursy-foot { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--accent); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-size: .85rem; }
.kursy-paylogos { display: flex; gap: 10px; }
.kursy-paylogos img, .buy-logos img { height: 24px; width: auto; }
.kursy-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.kursy-links a { color: var(--accent); }
.kursy-copy { color: var(--text-light-muted); }
@media (max-width: 520px) {
  .kursy-nav { order: 3; flex-basis: 100%; }
  .kursy-nav a { flex: 1; text-align: center; padding: 7px 8px; }
  .kursy-head h1 { font-size: 1.55rem; }
}

/* --- Экран покупки --- */
.buy-course { color: var(--accent) !important; font-size: 1.45rem !important; margin: 4px 0 14px !important; }
.buy-offer { display: flex; flex-direction: column; gap: 10px; }
.buy-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: .95rem; }
.buy-line { height: 1px; background: var(--border); }
.buy-total { align-items: center; color: var(--text); }
.buy-total strong { background: rgba(212,175,55,.1); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 1.25rem; }
.buy-check { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; font-size: .92rem; line-height: 1.45; color: var(--text-muted); cursor: pointer; }
.buy-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.buy-check a { color: var(--accent); }
.buy-check-opt { background: none; }
#payBtn { margin-top: 14px; }
.buy-center { text-align: center; }
.buy-logos { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
/* --- Страница регламента курсов --- */
.rules-page h1 { color: var(--accent); font-size: 1.6rem; margin: 20px 0 8px; }
.rules-page h2 { font-size: 1.15rem; margin: 28px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.rules-page p, .rules-page li { color: var(--text-muted); line-height: 1.6; max-width: none; }
.rules-page ol { padding-left: 22px; }
.rules-page a { color: var(--accent); word-break: break-word; }
.rules-page code { background: rgba(212,175,55,.15); padding: 1px 4px; border-radius: 4px; }

/* =====================================================================
   🛍 /kursy в шаблоне сайта: плавающая шапка, иконка кабинета, карточки курсов, окно, выбор
   ===================================================================== */
/* Иконка кабинета — в ряду с логотипом и кнопками; при прокрутке улетает в правый верхний угол */
.k-acct {
    flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent);
    display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
    background: rgba(18, 18, 18, .75); text-decoration: none; position: relative; overflow: hidden;
    box-shadow: 0 0 14px rgba(212, 175, 55, .35); animation: neonFlicker 5s infinite alternate ease-in-out;
    transition: border-color .2s, box-shadow .2s;
}
.k-acct:hover { border-color: #fff; box-shadow: 0 0 22px rgba(212, 175, 55, .6); }
.k-acct img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-acct.is-in::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 2px #121212; }
.k-acct.has-ava::after { right: 2px; bottom: 2px; }

/* иконка кабинета в плавающей шапке (сама шапка — style.css, /assets/fx/dock.js) */
.header-top-row.is-docked .k-acct { width: 40px; height: 40px; position: absolute; right: 16px; top: 10px; box-shadow: 0 0 14px rgba(212,175,55,.45), 0 4px 12px rgba(0,0,0,.5); }   /* правый верхний угол экрана */
.header-top-row.is-docked .k-acct svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
    .header-top-row.is-docked .k-acct { width: 36px; height: 36px; right: 8px; top: 8px; }
}

.k-kicker { font-size: .78rem; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }

/* Карточки курсов (свёрнутые) */
.k-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 50px; }
.k-card {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.k-card.k-enter { opacity: 0; translate: 0 24px; animation: k-in .7s cubic-bezier(.22,1,.36,1) var(--d, 0ms) forwards; }
.k-card:hover, .k-card:focus-visible { border-color: var(--accent); box-shadow: 0 0 18px rgba(212, 175, 55, .18); outline: none; }
.k-card.is-picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(212, 175, 55, .25); }
@keyframes k-in { to { opacity: 1; translate: 0 0; } }
.k-thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; background: #000 url(/images/logo-mobile.webp) center / 60% no-repeat; background-size: cover; border: 1px solid var(--border); }
.k-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.k-title { font-size: 1.05rem; color: var(--text); }
.k-meta { font-size: .82rem; color: var(--text-light-muted); }
.k-badge { font-size: .8rem; color: var(--accent); }
.k-side { flex: none; display: flex; align-items: center; gap: 10px; }
.k-price { font-weight: bold; font-size: 1rem; white-space: nowrap; }
.k-act { padding: 9px 18px !important; font-size: .9rem !important; margin: 0 !important; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.k-act-ghost { background: none !important; border: 1px solid var(--accent) !important; color: var(--text) !important; }
.k-act-off { opacity: .55; pointer-events: none; }
.k-pick { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); background: none; color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; padding: 0; }
.k-pick.on { background: var(--accent); color: #000; transform: scale(1.06); }
.k-none { text-align: center; color: var(--text-muted); }

/* Окно курса */
.k-modal { opacity: 0; transition: opacity .25s; }
.k-modal.on { opacity: 1; }
.k-modal .konto-modal-backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.k-modal-box { position: relative; max-width: 520px !important; max-height: 88vh; overflow-y: auto; border: 1px solid var(--accent) !important; padding: 22px !important;
    transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.k-modal.on .k-modal-box { transform: none; }
.k-modal-x { position: absolute !important; top: 8px; right: 8px; z-index: 2; }
.k-m-cover { height: 180px; margin: -22px -22px 16px; border-radius: 12px 12px 0 0; background: #000 center 30% / cover no-repeat; }
.k-m-title { color: var(--accent); font-size: 1.4rem; margin: 2px 0 8px; }
.k-m-desc { color: var(--text-muted); margin: 0 0 12px; line-height: 1.55; max-width: none; }
.k-m-chips { justify-content: flex-start; margin-bottom: 14px; }
.k-m-h { margin: 6px 0 8px; font-size: .95rem; color: var(--text); }
.k-m-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.k-m-num { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: bold; }
.k-m-lt { flex: 1; }
.k-m-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.k-m-lock { color: var(--text-light-muted); display: flex; }
.k-m-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.k-act-big { width: 100%; box-sizing: border-box; padding: 13px 20px !important; font-size: 1rem !important; }
.k-m-pick { width: 100%; }
.k-m-fine { font-size: .8rem; color: var(--text-light-muted); margin: 0; line-height: 1.45; max-width: none; }
.k-m-fine a { color: var(--accent); }

/* Панель «выбрано N · сумма — Купить вместе» */
.k-pickbar {
    position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 1050;
    display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; max-width: calc(100vw - 24px); box-sizing: border-box;
    background: rgba(18, 18, 18, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--accent); border-radius: 30px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(212, 175, 55, .25);
    transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.k-pickbar.on { transform: translate(-50%, 0); }
.k-pickbar span { font-size: .92rem; white-space: nowrap; }
.k-pickbtn { margin: 0 !important; padding: 10px 20px !important; white-space: nowrap; }

/* Экран покупки: несколько курсов, гостья */
.buy-items { display: flex; flex-direction: column; gap: 10px; }
.buy-item { align-items: flex-start; }
.buy-item-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buy-item-name strong { color: var(--text); }
.buy-item-price { white-space: nowrap; color: var(--text); }
.buy-guest a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
    .k-card.k-enter { animation: none; opacity: 1; translate: none; }
    .k-modal, .k-modal-box, .k-pickbar { transition: none; }
}
.k-modal-box .k-m-title { font-size: 1.5rem !important; line-height: 1.25; margin: 2px 0 10px !important; color: var(--accent) !important; }
.k-modal-box .k-m-chips { display: flex !important; flex-wrap: wrap; gap: 6px; }
.k-modal-box .k-m-chips .kursy-chip { width: auto !important; display: inline-block; }
.k-modal .k-modal-box { width: min(520px, 100%); }

/* --- Вход в окне над витриной: страница входа в режиме embed --- */
.k-login-box { width: min(420px, 100%) !important; padding: 8px !important; }
.k-login-box iframe { display: block; width: 100%; height: 420px; border: 0; background: transparent; border-radius: 12px; transition: height .25s; }
html.is-embed, html.is-embed body { background: transparent !important; }
html.is-embed .konto-bg::before { display: none; }
html.is-embed .konto-top { display: none; }
html.is-embed .konto-wrap { padding: 14px 12px 8px; }
html.is-embed h1 { font-size: 1.3rem; padding-right: 30px; }

/* --- Окно покупки --- */
.k-buy-box .buy-offer { margin-top: 6px; }
.k-buy-box .form-group { margin-bottom: 10px; }
.k-buy-box .form-group input { width: 100%; box-sizing: border-box; font-size: 16px; }
.buy-guest { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.buy-invoice { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 4px; margin-bottom: 10px; }
.k-linkbtn { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.k-qr-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.k-qr-btn:disabled { opacity: .45; cursor: default; }
#payBtn:disabled { opacity: .5; }
.k-buy-box .k-act-big { margin-top: 12px !important; }


/* После оплаты */
.k-paid-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.k-paid-spin { display: flex; justify-content: center; min-height: 64px; align-items: center; padding: 6px; }
.k-paid-spin[hidden] { display: none; }
.k-paid-box .k-act-big { width: 100%; }

/* Перемотка пальцем: вся полоса и зона вокруг неё ловят касание (player.js), шарик при перетаскивании крупнее */
.konto-seekwrap { touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.konto-seekwrap::before { content: ""; position: absolute; left: -8px; right: -8px; top: -18px; bottom: -6px; z-index: 2; }
.konto-seek.konto-seek-braid { pointer-events: none; }
.konto-seek.konto-seek-braid::-webkit-slider-thumb { transition: transform .15s; }
.konto-seekwrap.is-drag .konto-seek-braid::-webkit-slider-thumb { transform: scale(1.4); }
.konto-seekwrap.is-drag .konto-seek-braid::-moz-range-thumb { transform: scale(1.4); }
