/* Dolce Pharm App — үлкен кісілерге: ірі қаріп, үлкен батырмалар, жұмсақ анимациялар */
:root {
  --g: #4F007D; --g2: #7d2fc0; --g3: #f1e6fa; --red: #D42E12; --ink: #1d1029; --mute: #6b5f78;
  --bg: #f6f2fa; --card: #fff; --warn: #f2a516; --bad: #D42E12; --r: 22px;
  --sh: 0 6px 24px rgba(60, 10, 95, .09), 0 1px 3px rgba(60, 10, 95, .06);
  --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 19px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; overscroll-behavior-y: none; }
main { max-width: 720px; margin: 0 auto; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 100; width: 100%; height: 100%; }

/* ---------- экран ауысу анимациялары */
.screen { animation: enter .38s cubic-bezier(.2, .8, .2, 1) both; padding-bottom: calc(110px + var(--safe-b)); }
.screen.fwd { animation-name: slideIn; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(125, 47, 192, .45); } 50% { box-shadow: 0 0 0 14px rgba(125, 47, 192, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.stagger > * { animation: enter .45s cubic-bezier(.2, .8, .2, 1) both; }
.stagger > *:nth-child(1) { animation-delay: .04s; } .stagger > *:nth-child(2) { animation-delay: .1s; }
.stagger > *:nth-child(3) { animation-delay: .16s; } .stagger > *:nth-child(4) { animation-delay: .22s; }
.stagger > *:nth-child(5) { animation-delay: .28s; } .stagger > *:nth-child(n+6) { animation-delay: .34s; }

/* ---------- батырмалар */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; padding: 14px 20px;
  border-radius: 18px; font-size: 1.1rem; font-weight: 800; background: linear-gradient(135deg, var(--g), var(--g2)); color: #fff;
  box-shadow: 0 8px 20px rgba(79, 0, 125, .3); transition: transform .12s, box-shadow .2s, opacity .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.soft { background: var(--g3); color: var(--g); box-shadow: none; }
.btn.white { background: #fff; color: var(--g); box-shadow: var(--sh); }
.btn.gold { background: linear-gradient(135deg, #e7a915, #f5c842); color: #3b2a00; box-shadow: 0 8px 20px rgba(231, 169, 21, .3); }
.btn[disabled] { opacity: .45; box-shadow: none; filter: grayscale(.4); }
.btn.pulse { animation: pulse 1.8s infinite; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; background: rgba(255, 255, 255, .18); color: #fff; flex: none; transition: transform .12s; }
.icon:active { transform: scale(.92); }
.icon.dark { background: #fff; color: var(--ink); box-shadow: var(--sh); }

/* ---------- кіру */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px calc(28px + var(--safe-b)); background: radial-gradient(circle at 80% 10%, #9b4fd6 0, transparent 45%), linear-gradient(165deg, #33004f 0%, var(--g) 45%, #7d2fc0 100%); }
.logo { width: 96px; height: 96px; border-radius: 28px; background: #fff; color: var(--g); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; margin: 0 auto 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); animation: float 4s ease-in-out infinite; }
.login h1 { color: #fff; text-align: center; font-size: 1.7rem; }
.login .sub { color: #eadcf7; text-align: center; margin: 6px 0 26px; }
.panel { background: #fff; border-radius: 26px; padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
label { display: block; font-weight: 700; margin: 4px 0 6px; color: var(--mute); font-size: .9rem; }
input[type=text], input[type=password], input[type=search], textarea { width: 100%; font: inherit; font-size: 1.15rem; padding: 16px 18px; border: 2px solid #d5dfda; border-radius: 16px; margin-bottom: 16px; background: #f8fbf9; transition: border-color .2s, background .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--g2); background: #fff; }
.err { color: var(--bad); font-weight: 700; text-align: center; min-height: 1.4em; margin-top: 10px; }
.shake { animation: shake .4s; }

/* ---------- басты бет */
.hero { background: radial-gradient(circle at 90% 0, #9b4fd6 0, transparent 50%), linear-gradient(150deg, #3a005c, var(--g) 55%, var(--g2)); color: #fff; padding: 18px 18px 26px; margin: 0 12px; border-radius: 28px; }
.hero-top { display: flex; align-items: center; gap: 12px; }
.avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--g); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; flex: none; }
.avatar i { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: #7ee2b0; transition: background .3s; }
.avatar i.wait { background: var(--warn); }
.hi { flex: 1; line-height: 1.2; } .hi small { opacity: .85; font-size: .85rem; } .hi b { display: block; font-size: 1.3rem; }
.hero-stat { display: flex; align-items: center; gap: 16px; margin-top: 22px; background: rgba(255, 255, 255, .14); border-radius: 22px; padding: 14px 16px; }
.hero-stat .t b { font-size: 1.15rem; display: block; } .hero-stat .t span { opacity: .9; font-size: .9rem; }
.sec { font-size: 1.2rem; margin: 26px 18px 12px; }
.wrap { padding: 0 16px; }

.card { background: var(--card); border-radius: var(--r); padding: 18px; margin-bottom: 14px; box-shadow: var(--sh); }
.ccard { display: flex; gap: 16px; align-items: center; cursor: pointer; transition: transform .15s; }
.ccard:active { transform: scale(.985); }
.ccard .body { flex: 1; min-width: 0; }
.ccard h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 800; background: var(--g3); color: var(--g); margin: 2px 4px 2px 0; }
.chip.warn { background: #fff1d0; color: #7a5200; } .chip.bad { background: #ffe0e0; color: #9b1c1c; } .chip.gold { background: #fff3c4; color: #6b4b00; }
.cta-row { margin-top: 12px; }
.cta-row .btn { min-height: 54px; font-size: 1rem; }

.ring { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ring svg { transform: rotate(-90deg); }
.ring .bgc { stroke: var(--g3); } .ring .fgc { stroke: var(--g2); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.ring.light .bgc { stroke: rgba(255, 255, 255, .25); } .ring.light .fgc { stroke: #fff; }
.ring span { position: absolute; font-weight: 900; font-size: .95rem; }

/* ---------- төменгі мәзір */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 6px; padding: 10px 12px calc(10px + var(--safe-b)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; text-decoration: none; color: var(--mute); font-weight: 700; font-size: .78rem; transition: background .2s, color .2s; }
.tabs a span { font-size: 1.5rem; transition: transform .2s; }
.tabs a.on { background: var(--g3); color: var(--g); } .tabs a.on span { transform: scale(1.12); }

/* ---------- курс беті */
.topbar { display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--safe-t)) 16px 6px; }
.chero { margin: 6px 16px 18px; padding: 22px; border-radius: 26px; background: linear-gradient(150deg, var(--g), var(--g2)); color: #fff; display: flex; gap: 18px; align-items: center; }
.chero h1 { font-size: 1.35rem; line-height: 1.25; } .chero p { opacity: .9; font-size: .92rem; margin-top: 6px; }
.steps { padding: 0 16px; }
.step { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--sh); cursor: pointer; position: relative; transition: transform .15s; }
.step:active { transform: scale(.985); }
.step .n { width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 900; background: var(--g3); color: var(--g); font-size: 1.1rem; }
.step.done .n { background: var(--g2); color: #fff; animation: pop .4s both; }
.step.next { outline: 3px solid var(--g2); outline-offset: -3px; }
.step .tt { flex: 1; min-width: 0; } .step .tt b { display: block; font-size: 1.02rem; line-height: 1.3; } .step .tt small { color: var(--mute); }
.step .go { color: var(--g2); font-size: 1.3rem; font-weight: 900; }
.step.test .n { background: #fff3c4; color: #7a5200; }
.bottom-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(14px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, rgba(246, 242, 250, 0)); max-width: 720px; margin: 0 auto; }
.bottom-cta .btn + .btn { margin-top: 10px; }

/* ---------- оқу (толық экран) */
.reader { min-height: 100vh; background: #fff; padding-bottom: calc(120px + var(--safe-b)); }
.rbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid #edf1ef; }
.rbar .icon { background: var(--bg); color: var(--ink); }
.rtitle { flex: 1; min-width: 0; line-height: 1.2; } .rtitle small { color: var(--g2); font-weight: 800; font-size: .8rem; } .rtitle b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rprog { height: 6px; background: var(--g3); position: sticky; top: calc(73px + var(--safe-t)); z-index: 15; }
.rprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g), var(--g2)); transition: width .2s; border-radius: 0 6px 6px 0; }
.rbody { animation: enter .4s both; }
.rtext { padding: 22px 20px; font-size: 1.22rem; line-height: 1.7; white-space: pre-wrap; }
.page { display: block; width: 100%; height: auto; background: #fff; border-bottom: 8px solid var(--bg); }
.rvideo { padding: 0; background: #000; } .rvideo video { width: 100%; display: block; max-height: 80vh; }
.rlink { padding: 22px; }
.endmark { height: 1px; }
.rfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(14px + var(--safe-b)); background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0)); max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }

/* ---------- тест */
.quiz { min-height: 100vh; background: var(--bg); padding-bottom: calc(120px + var(--safe-b)); }
.dots { display: flex; gap: 6px; padding: 14px 16px 0; }
.dots i { flex: 1; height: 8px; border-radius: 8px; background: #d8e3de; transition: background .3s; }
.dots i.on { background: var(--g2); } .dots i.cur { background: var(--g); }
.qcard { margin: 16px; background: #fff; border-radius: 26px; padding: 22px 18px; box-shadow: var(--sh); animation: slideIn .35s both; }
.qnum { color: var(--g2); font-weight: 800; font-size: .9rem; } .qtext { font-size: 1.3rem; font-weight: 800; line-height: 1.35; margin: 6px 0 18px; }
.qhint { color: var(--mute); font-size: .9rem; margin: -8px 0 12px; }
.opt { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border: 2.5px solid #dfe7e3; border-radius: 18px; margin-bottom: 10px; font-size: 1.12rem; font-weight: 600; background: #fff; transition: border-color .2s, background .2s, transform .12s; }
.opt:active { transform: scale(.98); }
.opt .l { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--bg); font-weight: 900; color: var(--mute); transition: all .2s; }
.opt.sel { border-color: var(--g2); background: #f6eefc; } .opt.sel .l { background: var(--g2); color: #fff; animation: pop .3s; }
.orow { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 2.5px solid #dfe7e3; border-radius: 18px; margin-bottom: 10px; background: #fff; transition: transform .25s; }
.orow .num { width: 36px; height: 36px; border-radius: 50%; background: var(--g3); color: var(--g); font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.orow .tx { flex: 1; font-weight: 600; font-size: 1.05rem; }
.orow button { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); font-size: 1.3rem; }
.orow button:disabled { opacity: .3; }
.orow.moved { animation: pop .3s; border-color: var(--g2); }

/* ---------- нәтиже */
.result { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 22px calc(30px + var(--safe-b)); }
.result.ok { background: radial-gradient(circle at 50% 20%, #a35fe0 0, transparent 55%), linear-gradient(160deg, #33004f, var(--g) 50%, #7d2fc0); color: #fff; }
.result.no { background: linear-gradient(160deg, #fbf3ff, #fde9e5); }
.result h1 { font-size: 1.9rem; margin: 18px 0 8px; animation: pop .5s .4s both; } .result p { font-size: 1.05rem; opacity: .9; }
.result .acts { width: 100%; max-width: 420px; margin-top: 28px; display: grid; gap: 12px; }
.bigscore { font-size: 1.85rem !important; }

/* ---------- кері санақ */
.count { position: fixed; inset: 0; z-index: 60; background: linear-gradient(160deg, var(--g), var(--g2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: enter .3s both; }
.count small { font-size: 1.3rem; font-weight: 700; opacity: .9; }
.count b { font-size: 7rem; font-weight: 900; line-height: 1.1; animation: pop .55s both; }

/* ---------- терезе, хабар */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(30, 0, 50, .45); display: flex; align-items: flex-end; justify-content: center; animation: enter .2s both; }
.sheet { width: 100%; max-width: 720px; background: #fff; border-radius: 28px 28px 0 0; padding: 26px 20px calc(20px + var(--safe-b)); animation: slideUp .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet h2 { font-size: 1.35rem; margin-bottom: 8px; text-align: center; } .sheet p { color: var(--mute); text-align: center; margin-bottom: 20px; }
.sheet .btn + .btn { margin-top: 10px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(100px + var(--safe-b)); z-index: 80; background: var(--ink); color: #fff; padding: 16px 18px; border-radius: 18px; text-align: center; font-weight: 700; animation: enter .3s both; }

.search { margin: 0 16px 10px; } .search input { margin: 0; background: #fff; box-shadow: var(--sh); border-color: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chips button { flex: none; padding: 10px 18px; border-radius: 99px; background: #fff; font-weight: 800; color: var(--mute); box-shadow: var(--sh); font-size: .9rem; }
.chips button.on { background: var(--g); color: #fff; }
.empty { text-align: center; color: var(--mute); padding: 40px 20px; } .empty div { font-size: 3rem; margin-bottom: 8px; }
.inst { display: flex; align-items: center; gap: 14px; margin: 14px 16px 0; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: var(--sh); cursor: pointer; }
.inst .ic { font-size: 1.8rem; } .inst b { display: block; } .inst small { color: var(--mute); }
.login .inst { margin: 18px 0 0; }
.small-link { display: block; text-align: center; color: var(--mute); margin: 18px 0; font-size: .9rem; }

/* ---------- логотип, кейіпкер, иконкалар */
.ic { flex: none; vertical-align: middle; }
.brand { background: #fff; border-radius: 22px; padding: 12px 18px; width: max-content; max-width: 80%; margin: 0 auto 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .2); animation: pop .6s both; }
.brand img { display: block; height: 54px; width: auto; }
.login-hero { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 0 0 14px; }
.login-hero h1 { text-align: left; font-size: 1.6rem; } .login-hero .sub { text-align: left; margin: 4px 0 18px; }
.login-hero .mascot { margin-bottom: -18px; position: relative; z-index: 2; }
.hero-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 6px 10px; margin-bottom: 14px; }
.hero-logo img { display: block; height: 30px; }
.hero-stat { position: relative; overflow: visible; }
.hero-stat .t { flex: 1; }
.hero-m { margin: -40px -6px -14px 0; }
.ptitle { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; color: var(--g); }
.empty .mascot { display: block; margin: 0 auto 6px; } .empty p { margin: 0; }
.tabs a span { display: flex; }
.chip .ic { margin-right: -1px; }
.count .mascot { margin-bottom: 6px; }
.result .mascot { margin-bottom: -6px; position: relative; z-index: 2; }
.result .ring { margin-top: 0; }
.step .n .ic { stroke: currentColor; }
.icon .ic { width: 26px; height: 26px; }

.qtext.long { font-size: 1.08rem; }
.login-hero h1 { font-size: 1.4rem; line-height: 1.2; }
.opt { font-size: 1.02rem; }

/* ---------- жоғарғы панель, тіл, логотип */
.appbar { position: sticky; top: 0; z-index: 18; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 14px 10px; background: rgba(246, 242, 250, .92); backdrop-filter: blur(12px); }
.applogo { height: 40px; width: auto; margin-right: auto; display: block; }
.ibtn { width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--g); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--sh); }
.lang { display: inline-flex; background: #fff; border-radius: 12px; padding: 3px; box-shadow: var(--sh); }
.lang button { padding: 7px 8px; border-radius: 9px; font-size: .68rem; font-weight: 800; color: var(--mute); letter-spacing: .02em; }
.lang button.on { background: var(--g); color: #fff; }
.lang.light { background: rgba(255, 255, 255, .16); box-shadow: none; } .lang.light button { color: #eadcf7; } .lang.light button.on { background: #fff; color: var(--g); }
.login-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 16px; }
.brand { width: 100%; max-width: 360px; padding: 16px 22px; border-radius: 24px; }
.brand img { height: auto; width: 100%; }
.hi .pos { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 99px; }
.sec { display: flex; align-items: center; gap: 8px; color: var(--g); }
.sec .cnt { background: var(--g3); color: var(--g); font-size: .8rem; border-radius: 99px; padding: 2px 10px; }
.metas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.cmeta { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: .82rem; font-weight: 600; }
.ccard .body { position: relative; } .bm { position: absolute; right: -4px; top: -6px; color: var(--red); }

/* ---------- курс беті (баннер, куратор, бағдарлама) */
.backlink { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; padding: 8px 4px; }
.banner { position: relative; overflow: hidden; margin: 4px 14px 16px; border-radius: 28px; padding: 24px 20px 20px; color: #fff;
  background: radial-gradient(circle at 85% 25%, rgba(212, 46, 18, .35) 0, transparent 40%), linear-gradient(150deg, #2a0040, #4F007D 55%, #6d1fa8); box-shadow: 0 16px 40px rgba(60, 0, 95, .3); }
.bn-m { position: absolute; right: -22px; top: 6px; opacity: .55; pointer-events: none; }
.bn-t { position: relative; z-index: 1; }
.banner h1 { font-size: 1.55rem; line-height: 1.2; max-width: 72%; margin-bottom: 14px; }
.bn-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; margin-bottom: 14px; max-width: 78%; }
.bn-meta span { display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.bn-prog { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 800; }
.bn-prog .bar { flex: 1; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; } .bn-prog .bar i { display: block; height: 100%; background: #fff; border-radius: 9px; }
.bn-act { display: flex; gap: 10px; } .bn-act .btn { flex: 1; min-height: 58px; }
.bmk { width: 58px; height: 58px; flex: none; border-radius: 18px; background: #fff; color: var(--g); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.bmk.on { background: var(--red); color: #fff; } .bmk.on .ic { fill: currentColor; } .bmk:active { transform: scale(.9); }
.csec { margin: 0 16px 18px; } .csec h2 { font-size: 1.15rem; margin-bottom: 10px; } .csec p { color: #3d3047; line-height: 1.6; }
.cur { display: flex; align-items: center; gap: 14px; background: #fff; padding: 12px 14px; border-radius: 18px; box-shadow: var(--sh); }
.cav { width: 52px; height: 52px; border-radius: 50%; background: var(--g3); color: var(--g); display: flex; align-items: center; justify-content: center; flex: none; }
.cur b { display: block; } .cur small { color: var(--mute); }
.pcard { display: flex; gap: 14px; background: #fff; border: 2px solid transparent; border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: var(--sh); cursor: pointer; transition: transform .15s; }
.pcard:active { transform: scale(.985); }
.pcard.next { border-color: var(--g2); } .pcard.locked { opacity: .55; }
.pic { width: 48px; height: 48px; border-radius: 14px; background: var(--g3); color: var(--g); display: flex; align-items: center; justify-content: center; flex: none; }
.pcard.done .pic { background: #dff6ea; color: #138a55; } .pcard.test .pic { background: #fff3c4; color: #7a5200; }
.pb { flex: 1; min-width: 0; } .pb b { display: block; font-size: 1.04rem; line-height: 1.3; margin: 6px 0 6px; }
.pbadge { display: inline-block; font-size: .75rem; font-weight: 800; background: #f1ecf6; color: var(--mute); padding: 4px 10px; border-radius: 8px; }
.pmeta { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: .85rem; margin-bottom: 8px; }
.pst { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--mute); }
.pst.ok { color: #138a55; } .pst.run { color: #2f6fdb; } .pst.bad { color: var(--red); }
.rbtn { display: block; margin-top: 10px; padding: 9px 16px; border-radius: 12px; background: #f1ecf6; font-weight: 700; font-size: .9rem; color: var(--ink); }
.rrow { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; color: var(--ink); }
.okc { color: #138a55; } .badc { color: var(--red); }
.sheet p .rrow:last-child { border: 0; }

.sheet .mtext { color: var(--mute); text-align: center; margin-bottom: 20px; }
.sheet .mtext .rrow { text-align: left; }

/* ---------- 5 бөлімді төменгі мәзір */
.tabs a { font-size: .68rem; padding: 7px 2px; } .tabs a span .ic { width: 24px; height: 24px; }
/* ---------- видео және PDF алдын ала қарау */
.mwrap { padding: 16px; }
.vcard { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--sh); aspect-ratio: 16 / 9; }
.vcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--g); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: pulse 2s infinite; }
.mtitle { font-size: 1.45rem; margin: 18px 0 6px; } .mmeta { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: .9rem; margin-bottom: 10px; }
.pdfcard { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--sh); background: #fff; max-height: 420px; cursor: pointer; }
.pdfcard img { width: 100%; display: block; }
.pdfov { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(to top, rgba(40, 0, 70, .85), transparent); color: #fff; display: flex; align-items: flex-end; justify-content: space-between; }
.pdfov span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.viewer { position: fixed; inset: 0; z-index: 90; background: #15091f; display: flex; flex-direction: column; animation: enter .25s both; }
.vbar { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px; color: #fff; }
.vbar b { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vbar span { font-weight: 800; background: rgba(255, 255, 255, .15); padding: 4px 10px; border-radius: 99px; font-size: .85rem; }
.vpages { flex: 1; overflow: auto; padding: 0 0 calc(20px + var(--safe-b)); } .vpages img { width: 100%; display: block; margin-bottom: 8px; background: #fff; }
/* ---------- эвакуация */
.evhint { display: flex; gap: 8px; align-items: center; margin: 0 16px 10px; color: var(--mute); font-size: .9rem; }
.evwrap { margin: 0 12px; height: 56vh; max-height: 520px; overflow: auto; border-radius: 20px; background: #dfeaf3; box-shadow: var(--sh); position: relative; -webkit-overflow-scrolling: touch; }
.evmap { position: relative; width: 100%; min-width: 100%; }
.evmap img { width: 100%; display: block; } .evmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.evz { fill: rgba(79, 0, 125, .06); stroke: rgba(79, 0, 125, .35); stroke-width: 1.5; cursor: pointer; transition: fill .2s; }
.evz:hover { fill: rgba(79, 0, 125, .16); } .evz.cur { fill: rgba(212, 46, 18, .14); stroke: #D42E12; stroke-width: 2.5; }
.evroute-bg { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.evroute { fill: none; stroke: #18a05e; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 10; animation: evdash .9s linear infinite; }
@keyframes evdash { to { stroke-dashoffset: -24; } }
.evexit rect { fill: #9aa5a0; } .evexit.near rect { fill: #18a05e; } .evexit text { fill: #fff; font: 800 12px system-ui; text-anchor: middle; }
.evext { fill: #D42E12; } .evaid { fill: #18a05e; } .evasm { fill: #f2a516; } .evsym { fill: #fff; font: 800 9px system-ui; text-anchor: middle; }
.evdot { fill: #D42E12; stroke: #fff; stroke-width: 3; } .evpulse { fill: rgba(212, 46, 18, .3); transform-origin: center; animation: evp 1.6s ease-out infinite; transform-box: fill-box; }
@keyframes evp { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.evwalker { fill: #fff; stroke: #18a05e; stroke-width: 3; }
.evzoom { display: flex; justify-content: flex-end; gap: 8px; margin: -56px 22px 16px 0; position: relative; z-index: 2; }
.evcard .evbig { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.evbig > div:first-child { width: 56px; height: 56px; border-radius: 16px; background: #e3f7ec; color: #138a55; display: flex; align-items: center; justify-content: center; flex: none; }
.evbig small { color: var(--mute); display: block; } .evbig b { font-size: 1.2rem; display: block; } .evbig span { color: #138a55; font-weight: 800; }
.evsteps { margin: 0; padding-left: 22px; } .evsteps li { padding: 6px 0; font-weight: 600; } .evsteps li:last-child { color: #138a55; font-weight: 800; }
.evrules { padding-left: 22px; margin: 8px 0 12px; } .evrules li { padding: 4px 0; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.evlegend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--mute); }
.evlegend span { display: inline-flex; align-items: center; gap: 6px; } .evlegend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg-you { background: #D42E12; } .lg-route { background: #18a05e; border-radius: 3px !important; height: 6px !important; } .lg-exit { background: #18a05e; border-radius: 3px !important; }
.lg-ext { background: #D42E12; } .lg-aid { background: #18a05e; } .lg-asm { background: #f2a516; }
.evlink { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 800; text-decoration: none; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .14); }
/* ---------- профиль */
.prof { text-align: center; padding: 10px 16px 6px; }
.pava { width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 12px; background: linear-gradient(150deg, #3a005c, var(--g2)); color: #fff; font-size: 2rem; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(79, 0, 125, .3); animation: pop .5s both; }
.prof h1 { font-size: 1.4rem; margin-bottom: 8px; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pstat { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--sh); color: var(--g); }
.pstat b { display: block; font-size: 1.5rem; color: var(--ink); margin-top: 6px; } .pstat span { color: var(--mute); font-size: .82rem; }
.certrow { display: flex; align-items: center; gap: 12px; } .certrow .g { flex: 1; } .pic.gold { background: #fff3c4; color: #7a5200; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.tgl { width: 56px; height: 32px; border-radius: 99px; background: #d9cfe4; position: relative; transition: background .2s; }
.tgl i { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.tgl.on { background: var(--g); } .tgl.on i { transform: translateX(24px); }
.pbrand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 26px 0 10px; color: var(--mute); font-size: .8rem; }
.pbrand img { width: 110px; height: auto; opacity: .9; }

/* ---------- жабдық, TTS, QR, режимдер */
.eqrow { display: flex; align-items: center; gap: 14px; cursor: pointer; } .eqrow .g { flex: 1; } .eqrow small { display: block; color: var(--mute); }
.eqban h1 { max-width: 75%; } .pbadge.light { background: rgba(255, 255, 255, .2); color: #fff; margin-bottom: 10px; }
.eqtext { white-space: pre-wrap; line-height: 1.7; font-size: 1.08rem; }
.csec h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ttsb { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--g3); color: var(--g); font-weight: 800; font-size: .85rem; }
.ttsrow { padding: 14px 20px 0; }
.qrcard { text-align: center; } #qrbox svg { width: min(78vw, 340px); height: auto; } .qrpg { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 16px; background: #f6f1fa; text-align: left; border: 2.5px solid transparent; color: var(--g); }
.mode b { color: var(--ink); font-size: .95rem; } .mode small { color: var(--mute); font-size: .76rem; line-height: 1.3; } .mode.on { border-color: var(--g); background: #fff; box-shadow: var(--sh); }
button.setrow { font: inherit; font-weight: 700; color: var(--ink); text-align: left; }
.flash { position: fixed; inset: 0; z-index: 200; pointer-events: none; border: 14px solid; animation: flash .6s ease-out both; }
.flash.select, .flash.done { border-color: rgba(125, 47, 192, .7); } .flash.success { border-color: rgba(24, 160, 94, .85); background: rgba(24, 160, 94, .12); }
.flash.fail, .flash.err { border-color: rgba(212, 46, 18, .85); background: rgba(212, 46, 18, .1); }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
/* ================= арнайы режимдер — WCAG 2.2 негізінде
   rem өлшемдері html қарпінен есептеледі, сондықтан масштаб html-ге қойылады (1.4.4 мәтінді үлкейту) */

/* --- Үлкен кісілерге: ірі мәтін, үлкен батырмалар (2.5.5), жоғары контраст (1.4.3), қозғалыссыз (2.3.3), аралықтар (1.4.12) */
body.a11y-elderly { --mute: #3f3549; --ink: #120a1a; line-height: 1.6; }
.a11y-elderly .btn { min-height: 68px; font-size: 1.1rem; }
.a11y-elderly .opt { min-height: 68px; padding: 18px 16px; }
.a11y-elderly .ibtn, .a11y-elderly .icon { min-width: 56px; min-height: 56px; }
.a11y-elderly .tabs, .a11y-lowvision .tabs { gap: 2px; padding-left: 4px; padding-right: 4px; }
.a11y-elderly .tabs a, .a11y-lowvision .tabs a { min-width: 0; min-height: 64px; padding: 6px 1px; overflow: hidden; }
.a11y-elderly .tabs a { font-size: .56rem; } .a11y-lowvision .tabs a { font-size: .47rem; letter-spacing: 0; word-spacing: 0; }
.a11y-elderly .tabs a span .ic { width: 28px; height: 28px; } .a11y-lowvision .tabs a span .ic { width: 30px; height: 30px; }
.a11y-elderly .chip, .a11y-elderly .cmeta { font-size: .85rem; }
.a11y-elderly .rtext, .a11y-elderly .qtext { line-height: 1.7; letter-spacing: .01em; word-spacing: .06em; }
.a11y-elderly p, .a11y-elderly li { margin-bottom: .35em; }
.a11y-elderly .screen, .a11y-elderly .stagger > *, .a11y-elderly .mascot, .a11y-elderly .mascot *, .a11y-elderly .pulse,
.a11y-elderly .eqh-ic, .a11y-elderly .sp-blob, .a11y-elderly .sp-ring, .a11y-elderly .fin-parts { animation: none !important; }
.a11y-elderly *:focus-visible { outline: 4px solid var(--g2); outline-offset: 3px; }
.a11y-elderly .muted, .a11y-elderly small { color: var(--mute); }

/* --- Көзі нашарларға: өте ірі мәтін, 7:1 контраст (1.4.6), қалың фокус (2.4.13), көлеңкесіз, сілтемелердің асты сызылған */
body.a11y-lowvision { --g: #000; --g2: #000; --g3: #ffe14d; --ink: #000; --mute: #000; --bg: #fff; --card: #fff; --sh: none;
  line-height: 1.7; letter-spacing: .02em; word-spacing: .08em; background: #fff; }
.a11y-lowvision *, .a11y-lowvision *::before, .a11y-lowvision *::after { box-shadow: none !important; text-shadow: none !important; backdrop-filter: none !important; }
.a11y-lowvision .card, .a11y-lowvision .pcard, .a11y-lowvision .qcard, .a11y-lowvision .opt, .a11y-lowvision .sheet, .a11y-lowvision .cfq-card, .a11y-lowvision .mode, .a11y-lowvision .fst
  { background: #fff !important; border: 3px solid #000 !important; color: #000 !important; }
.a11y-lowvision .btn, .a11y-lowvision .btn.gold { background: #000 !important; color: #ffe14d !important; border: 3px solid #000; min-height: 76px; }
.a11y-lowvision .btn.soft, .a11y-lowvision .btn.white { background: #ffe14d !important; color: #000 !important; border: 3px solid #000; }
.a11y-lowvision .btn[disabled] { background: #fff !important; color: #000 !important; border: 3px dashed #000; opacity: 1; }
.a11y-lowvision .opt.sel, .a11y-lowvision .mode.on, .a11y-lowvision .tabs a.on, .a11y-lowvision .lang button.on, .a11y-lowvision .chips .on
  { background: #ffe14d !important; color: #000 !important; outline: 3px solid #000; }
.a11y-lowvision .hero, .a11y-lowvision .banner, .a11y-lowvision .eqhero, .a11y-lowvision .login, .a11y-lowvision .result, .a11y-lowvision .count, .a11y-lowvision .topbar.hero
  { background: #000 !important; color: #ffe14d !important; }
.a11y-lowvision .hero *, .a11y-lowvision .banner *, .a11y-lowvision .eqhero *, .a11y-lowvision .result h1, .a11y-lowvision .result p { color: #ffe14d !important; }
.a11y-lowvision .login .panel { background: #fff !important; border: 3px solid #ffe14d; }
.a11y-lowvision .login .panel label, .a11y-lowvision .login .panel .err { color: #000 !important; }
.a11y-lowvision .chip, .a11y-lowvision .cmeta, .a11y-lowvision .pbadge { background: #fff !important; color: #000 !important; border: 2px solid #000; }
.a11y-lowvision .muted, .a11y-lowvision small, .a11y-lowvision .sub { color: #000 !important; opacity: 1 !important; }
.a11y-lowvision a { text-decoration: underline; text-underline-offset: 3px; }
.a11y-lowvision .btn, .a11y-lowvision .tabs a, .a11y-lowvision a.card, .a11y-lowvision .eqa { text-decoration: none; }
.a11y-lowvision input, .a11y-lowvision textarea { border: 3px solid #000 !important; background: #fff !important; color: #000; font-size: 1.1rem; }
.a11y-lowvision *:focus-visible { outline: 5px solid #000 !important; outline-offset: 3px; box-shadow: 0 0 0 9px #ffe14d !important; }
.a11y-lowvision .tabs { background: #fff !important; border-top: 3px solid #000; }
.a11y-lowvision .appbar { background: #fff !important; border-bottom: 3px solid #000; }
.a11y-lowvision .ttsb { background: #ffe14d !important; color: #000 !important; border: 3px solid #000; font-size: 1rem; padding: 12px 18px; }
.a11y-lowvision .rtext, .a11y-lowvision .qtext { font-size: 1.2rem; line-height: 1.8; }
.a11y-lowvision .screen, .a11y-lowvision .stagger > *, .a11y-lowvision .mascot * { animation: none !important; }
.a11y-lowvision .cfbanner, .a11y-lowvision .evhint, .a11y-lowvision .eqstop, .a11y-lowvision .eqok { background: #fff !important; color: #000 !important; border: 3px solid #000; }
.a11y-lowvision .fin, .a11y-lowvision #splash { background: #fff; }
.a11y-lowvision .fr-fg { stroke: #000 !important; } .a11y-lowvision .fin-core b { color: #000; }

/* --- Естімейтіндерге: дыбыссыз, барлық хабар көрнекі (1.2.2 субтитр, көрнекі ескерту) */
.a11y-deaf #snd, .a11y-deaf .ttsb, .a11y-deaf [data-tts], .a11y-deaf #sndrow { display: none !important; }
.a11y-deaf .toast { font-size: 1.05rem; padding: 18px 20px; border: 3px solid var(--g2); }
.a11y-deaf video::cue { font-size: 1.2em; background: rgba(0,0,0,.85); }
.deafbar { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 150; display: none; align-items: center; gap: 8px;
  background: #1d1029; color: #fff; padding: 8px 14px; border-radius: 30px; font-weight: 700; font-size: .85rem; pointer-events: none; }
.a11y-deaf .deafbar.show { display: flex; animation: enter .25s both; }

/* ================= ашылу анимациясы (splash) — ақ фон, құс, Dolce-Pharm */
#splash { position: fixed; inset: 0; z-index: 2100; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; transition: opacity .6s, transform .6s; }
#splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sp-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, #f4ebfb 0, #fff 55%); }
.sp-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.sp-blob.b1 { width: 260px; height: 260px; background: #e9d6f8; top: -60px; left: -70px; animation: spdrift 7s ease-in-out infinite alternate; }
.sp-blob.b2 { width: 300px; height: 300px; background: #f3e6fc; bottom: -90px; right: -90px; animation: spdrift 8s ease-in-out infinite alternate-reverse; }
@keyframes spdrift { to { transform: translate(40px, 30px) scale(1.1); } }
.sp-stage { position: relative; width: 260px; height: 170px; display: flex; align-items: center; justify-content: center; }
.sp-ring { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 2px solid rgba(125, 47, 192, .35); opacity: 0; animation: spring 2.4s ease-out 1.3s infinite; }
.sp-ring.r2 { animation-delay: 2.1s; }
@keyframes spring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.sp-trail { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #c99ced; opacity: 0; animation: sptrail 1.5s ease-out both; }
.sp-trail:nth-of-type(2) { animation-delay: .12s; width: 6px; height: 6px; } .sp-trail:nth-of-type(3) { animation-delay: .24s; width: 5px; height: 5px; }
@keyframes sptrail { 0% { transform: translate(-60vw, 40vh); opacity: 0; } 30% { opacity: .9; } 70% { transform: translate(-10px, 0); opacity: .6; } 100% { transform: translate(-30px, 10px); opacity: 0; } }
.sp-bird { position: relative; width: 230px; filter: drop-shadow(0 14px 22px rgba(79, 0, 125, .18)); animation: spfly 1.6s cubic-bezier(.2,.8,.25,1) both, spbob 1.8s ease-in-out 1.6s infinite; }
@keyframes spfly { 0% { transform: translate(-70vw, 45vh) rotate(-28deg) scale(.35); opacity: 0; } 20% { opacity: 1; }
  60% { transform: translate(8vw, -6vh) rotate(8deg) scale(.95); } 80% { transform: translate(-2vw, 1vh) rotate(-3deg) scale(1.02); } 100% { transform: none; } }
@keyframes spbob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-2deg); } }
.sp-word { position: relative; margin-top: 18px; font-size: 2.5rem; font-weight: 900; letter-spacing: .5px; color: var(--g); display: flex; }
.sp-word i { font-style: normal; display: inline-block; opacity: 0; animation: spletter .55s cubic-bezier(.2,.8,.2,1.3) both; }
.sp-word i.dash { color: #D42E12; margin: 0 2px; }
@keyframes spletter { from { opacity: 0; transform: translateY(26px) scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.sp-line { position: relative; height: 3px; width: 0; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--g2), transparent); animation: spline .9s ease-out 2.6s both; }
@keyframes spline { to { width: 220px; } }
.sp-tag { position: relative; margin-top: 10px; color: var(--mute); font-size: .85rem; letter-spacing: 3px; text-transform: uppercase; animation: sprise .7s ease 2.8s both; }
@keyframes sprise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sp-bar { position: absolute; bottom: calc(48px + var(--safe-b)); width: 140px; height: 4px; border-radius: 4px; background: #efe5f8; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g), var(--g2)); border-radius: 4px; animation: spbar 4s cubic-bezier(.4,0,.2,1) both; }
@keyframes spbar { from { width: 0; } to { width: 100%; } }

/* ================= тест біткендегі анимация (8 с) — ақ фон, тек процесс */
.fin { position: fixed; inset: 0; z-index: 2000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; opacity: 0; transition: opacity .4s; }
.fin::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, #f4ebfb 0, transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -58%); }
.fin.on { opacity: 1; } .fin.out { opacity: 0; transition: opacity .45s; }
.fin-skip { position: absolute; top: calc(16px + var(--safe-t)); right: 16px; z-index: 2; color: var(--mute); background: #f4eff9; border-radius: 30px; padding: 9px 16px; font-weight: 700; font-size: .85rem; }
.fin-mid { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 24px; width: 100%; max-width: 420px; animation: sprise .5s ease both; }
.fin-cap { color: var(--g2); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .72rem; }
.fin-title { font-weight: 800; font-size: 1.1rem; text-align: center; margin: 4px 0 22px; color: var(--ink); }
.fin-ring { position: relative; width: 220px; height: 220px; }
.fin-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fr-bg { fill: none; stroke: #f1e8f8; stroke-width: 12; }
.fr-fg { fill: none; stroke: url(#fg); stroke-width: 12; stroke-linecap: round; }
.fin-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fin-core b { font-size: 3rem; line-height: 1; color: var(--g); font-variant-numeric: tabular-nums; }
.fin-core small { margin-top: 6px; color: var(--mute); font-weight: 700; }
.fin-steps { width: 100%; margin-top: 26px; display: grid; gap: 10px; }
.fst { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: #faf7fd; color: #b3a7bf; transition: all .35s; }
.fst b { font-size: 1rem; }
.fst-ic { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #e2d6ee; display: flex; align-items: center; justify-content: center; flex: none; transition: all .35s; }
.fst-ic .ic { opacity: 0; transform: scale(.4); transition: all .3s; color: #fff; }
.fst-sp { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; }
.fst.run { background: #f4ebfb; color: var(--ink); }
.fst.run .fst-sp { border-top-color: var(--g2); animation: fspin .8s linear infinite; }
.fst.ok { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(79, 0, 125, .08); }
.fst.ok .fst-ic { background: linear-gradient(135deg, var(--g), var(--g2)); border-color: transparent; }
.fst.ok .fst-ic .ic { opacity: 1; transform: none; }
@keyframes fspin { to { transform: rotate(360deg); } }
.fin-brand { position: absolute; bottom: calc(26px + var(--safe-b)); font-weight: 900; color: var(--g); letter-spacing: .5px; font-size: 1.05rem; opacity: .85; }
.fin-brand span { color: #D42E12; margin: 0 2px; }
.fin.fin-done .fin-ring { animation: finpop .6s ease-out both; }
@keyframes finpop { 40% { transform: scale(1.08); } }

/* ================= растау QR */
.cfqr { position: fixed; inset: 0; z-index: 65; background: rgba(30, 0, 50, .5); display: flex; align-items: flex-end; justify-content: center; animation: enter .2s both; }
.cfq-card { width: 100%; max-width: 520px; max-height: 100vh; overflow: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); animation: slideUp .3s cubic-bezier(.2,.8,.2,1) both; }
.cfq-card .btn + .btn { margin-top: 10px; }
.cfq-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cfq-head small { color: var(--g2); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: .72rem; }
.cfq-head b { font-size: 1.15rem; }
.cfq-box { position: relative; margin: 14px auto 8px; width: min(300px, 80vw); padding: 12px; border-radius: 22px; border: 3px solid var(--g3); background: #fff; }
.cfq-box svg { display: block; width: 100%; height: auto; }
.cfq-scan { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--g2), transparent); animation: cfscan 2.4s ease-in-out infinite; }
@keyframes cfscan { 50% { top: calc(100% - 17px); } }
.cfq-pg { text-align: center; color: var(--g); }
.cfq-st { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; font-weight: 700; color: var(--g); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--g3); border-top-color: var(--g2); animation: fspin .8s linear infinite; }
.cfseal.ok { background: linear-gradient(135deg, #17a05d, #3cc982); color: #fff; box-shadow: 0 10px 26px rgba(23, 160, 93, .35); }

/* ================= нәтижені растау */
.cfbanner { display: flex; align-items: center; gap: 10px; margin: 0 16px 6px; padding: 14px 16px; border-radius: 16px; background: #fff6dc; color: #6b4a00; font-weight: 700; }
.cfbanner span { flex: 1; }
.rescard { display: flex; flex-direction: column; gap: 12px; }
.rescard .btn { min-height: 54px; font-size: 1rem; }
.rescard.need { box-shadow: 0 0 0 3px #f5c842, var(--sh); }
.chip.cfok { background: #e3f7ec; color: #17784a; }
.cfsheet { text-align: center; }
.cfseal { width: 86px; height: 86px; margin: 4px auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #3b2a00; background: linear-gradient(135deg, #e7a915, #f5c842); box-shadow: 0 10px 26px rgba(231,169,21,.4); animation: pop .5s both; }
.cfsheet h2 { margin-bottom: 8px; }
.cfchk { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 16px 0; padding: 14px; border-radius: 14px; background: var(--g3); font-weight: 600; cursor: pointer; }
.cfchk input { width: 26px; height: 26px; flex: none; accent-color: var(--g); margin: 0; }
.cfsheet .btn { margin-top: 10px; }



/* ================= жабдық беті */
.eqhero { position: relative; overflow: hidden; margin: 4px 16px 14px; padding: 22px 20px; border-radius: 26px; color: #fff; display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, #3d0063, var(--g) 45%, #8a3ccc); box-shadow: 0 14px 30px rgba(79, 0, 125, .28); animation: enter .4s both; }
.eqh-ic { width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; flex: none; position: relative; z-index: 1; animation: float 3s ease-in-out infinite; }
.eqh-t { position: relative; z-index: 1; min-width: 0; }
.eqh-t h1 { font-size: 1.35rem; line-height: 1.25; margin: 6px 0; }
.eqh-code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .2); letter-spacing: 1px; }
.eqh-zone { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: #ecdcfa; }
.eqh-g { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.eqh-g.g1 { width: 180px; height: 180px; right: -50px; top: -60px; } .eqh-g.g2 { width: 110px; height: 110px; right: 60px; bottom: -60px; }
.eqok { display: flex; gap: 14px; align-items: center; }
.eqok .g { flex: 1; } .eqok b { display: block; } .eqok small { color: var(--mute); }
.eqok-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.eqok.yes .eqok-ic { background: #e3f7ec; color: #17784a; } .eqok.no .eqok-ic { background: #fff3d6; color: #a06a00; }
.eqok.yes { box-shadow: 0 0 0 2px #bfe9d1, var(--sh); } .eqok.no { box-shadow: 0 0 0 2px #f6dc97, var(--sh); }
.eqbar { height: 8px; border-radius: 8px; background: #f1ebf6; margin-top: 8px; overflow: hidden; }
.eqbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--g), var(--g2)); transition: width .8s; }
.eqok.yes .eqbar i { background: linear-gradient(90deg, #17a05d, #3cc982); }
.eqacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.eqa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: #fff; box-shadow: var(--sh); color: var(--g); font-weight: 700; font-size: .85rem; text-decoration: none; text-align: center; }
.eqa:active { transform: scale(.96); }
.eqblk h3 { display: flex; align-items: center; gap: 8px; color: var(--g); font-size: 1.05rem; margin-bottom: 8px; }
.eqitem { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed #eee3f6; }
.eqblk h3 + .eqitem { border-top: 0; }
.eqn { width: 28px; height: 28px; border-radius: 50%; background: var(--g3); color: var(--g); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; flex: none; }
.eqstop { display: flex; gap: 14px; align-items: center; background: #fdece8; color: #a01e08; box-shadow: none; }
.eqstop b { display: block; } .eqstop small { color: #8a3a2c; }

/* ================= PIN код */
.pdots { display: flex; justify-content: center; gap: 18px; margin: 6px 0 22px; }
.pdots i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--g2); transition: background .15s, transform .15s; }
.pdots i.on { background: var(--g); border-color: var(--g); transform: scale(1.1); }
.pkeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; }
.pk { height: 70px; border-radius: 20px; background: var(--g3); color: var(--g); font-size: 1.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: transform .1s, background .15s; }
.pk:active { transform: scale(.93); background: #e3d0f3; }
.pinsheet { text-align: center; } .pinsheet .err { min-height: 1.4em; margin: 10px 0 4px; color: var(--bad); font-weight: 700; }
.pinic { width: 70px; height: 70px; margin: 0 auto 10px; border-radius: 22px; background: linear-gradient(135deg, var(--g), var(--g2)); color: #fff; display: flex; align-items: center; justify-content: center; }
.pinlogin { text-align: center; }
.pinava { width: 96px; height: 96px; border-radius: 50%; margin: 24px auto 12px; background: #fff; color: var(--g); font-size: 2.2rem; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.pinname { color: #fff; font-size: 1.5rem; } .pinlogin .sub { color: #e7d4f7; margin: 4px 0 16px; }
.pinpanel { padding-top: 26px; } .pinpanel .err { min-height: 1.4em; margin-top: 12px; text-align: center; }
.pinother { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px auto 0; color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.14); }
.a11y-lowvision .pk { background: #fff; color: #000; border: 3px solid #000; } .a11y-lowvision .pdots i { border-color: #000; } .a11y-lowvision .pdots i.on { background: #000; }
.a11y-lowvision .pinname, .a11y-lowvision .pinlogin .sub, .a11y-lowvision .pinother { color: #ffe14d !important; }
.a11y-elderly .pk { height: 80px; font-size: 2rem; }

/* ================= арнайы мүмкіндіктер: баптаулар беті */
.axbtn { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18); color: #fff; margin-right: auto; }
.axlink span { display: flex; flex-direction: column; } .axlink small { color: var(--mute); font-weight: 600; }
.axrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.axrow .g { flex: 1; display: flex; flex-direction: column; min-width: 0; } .axrow small { color: var(--mute); font-size: .8rem; line-height: 1.3; }
.axic { width: 42px; height: 42px; border-radius: 12px; background: var(--g3); color: var(--g); display: flex; align-items: center; justify-content: center; flex: none; }
.axstep { display: flex; align-items: center; gap: 6px; } .axstep b { min-width: 52px; text-align: center; }
.axstep button { width: 48px; height: 48px; border-radius: 14px; background: var(--g3); color: var(--g); font-weight: 900; font-size: 1.05rem; }
.axseg { display: flex; flex-wrap: wrap; gap: 8px; }
.axseg button { flex: 1 1 30%; min-height: 52px; border-radius: 14px; background: #fff; box-shadow: var(--sh); font-weight: 700; font-size: .9rem; padding: 8px; border: 2.5px solid transparent; }
.axseg button.on { border-color: var(--g); color: var(--g); }
.axdemo p { margin-top: 6px; } .axdemo small { color: var(--g2); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: .7rem; }
.modes { grid-template-columns: 1fr 1fr; }

/* --- баптаулар (html класстары) */
html.x-lh body, html.x-lh .rtext, html.x-lh .qtext, html.x-lh p, html.x-lh li { line-height: 1.95 !important; }
html.x-ls body { letter-spacing: .06em; word-spacing: .16em; }
html.x-bold body { font-weight: 600; } html.x-bold b, html.x-bold h1, html.x-bold h2, html.x-bold h3, html.x-bold .btn { font-weight: 900; }
html.x-links a:not(.btn):not(.eqa):not(.card) { text-decoration: underline 3px !important; text-underline-offset: 4px; background: #fff3a6; color: #000 !important; border-radius: 4px; }
html.x-links button:focus-visible, html.x-links a:focus-visible { outline: 4px solid #f5a700; outline-offset: 2px; }
html.x-noanim *, html.x-noanim *::before, html.x-noanim *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.x-noimg img:not(.applogo):not(.sp-bird), html.x-noimg video, html.x-noimg .mascot, html.x-noimg .evmap img { visibility: hidden; }
html.c-high { filter: contrast(1.4); }
html.c-dark { filter: invert(.92) hue-rotate(180deg); }
html.c-dark img, html.c-dark video, html.c-dark .mascot, html.c-dark .cfq-box, html.c-dark #qrbox { filter: invert(1) hue-rotate(180deg); }
html.c-mono { filter: grayscale(1); }
html.c-lowsat { filter: saturate(.45); }
.axguide { position: fixed; left: 0; right: 0; height: 60px; z-index: 3000; pointer-events: none; display: none; border-top: 3px solid #f5a700; border-bottom: 3px solid #f5a700; background: rgba(245, 200, 66, .14); }
html.x-guide .axguide { display: block; }
.axmask { position: fixed; left: 0; right: 0; z-index: 3000; pointer-events: none; display: none; background: rgba(15, 0, 25, .55); }
#axm1 { top: 0; } #axm2 { bottom: 0; }
html.x-mask .axmask { display: block; }

/* --- Дислексия профилі: британдық дислексия ассоциациясының стиль кеңестеріне ұқсас (сансериф, кең аралық, сол жаққа туралау) */
html.a11y-dyslexia body { font-family: Verdana, Tahoma, "Segoe UI", system-ui, sans-serif; }
html.a11y-dyslexia .rtext, html.a11y-dyslexia .qtext, html.a11y-dyslexia p { text-align: left !important; max-width: 68ch; }
html.a11y-dyslexia body { --bg: #fbf6ea; --card: #fffdf6; }
html.a11y-dyslexia .card { background: #fffdf6; }
/* --- Тыныш режим (зейін / ұстама қаупі): қозғалыс жоқ, түстер жұмсақ, жарқыл жоқ */
html.a11y-focus { filter: saturate(.7); }
html.a11y-focus *, html.a11y-focus *::before, html.a11y-focus *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.a11y-focus .flash { display: none; }
.a11y-lowvision .axseg button, .a11y-lowvision .axstep button { border: 3px solid #000; background: #fff; color: #000; }
.a11y-lowvision .axseg button.on { background: #ffe14d; }

/* ================= сұраныстар */
.rqnew { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rqbig { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 14px; border-radius: 22px; color: #fff; text-align: left; background: linear-gradient(135deg, var(--g), var(--g2)); box-shadow: 0 10px 22px rgba(79,0,125,.25); }
.rqbig + .rqbig { background: linear-gradient(135deg, #0f7a6a, #22a88f); box-shadow: 0 10px 22px rgba(15,122,106,.25); }
.rqbig b { font-size: 1rem; line-height: 1.25; } .rqbig small { opacity: .85; font-size: .78rem; line-height: 1.3; }
.rqcard { display: flex; gap: 14px; align-items: flex-start; }
.rqcard .g { flex: 1; min-width: 0; } .rqcard .chip { margin-top: 8px; }
.rqic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--g3); color: var(--g); }
.rqic.vacation { background: #dcf3ee; color: #0f7a6a; }
.rqd { font-weight: 700; color: var(--ink); margin-top: 2px; } .rqc { color: var(--mute); font-size: .9rem; margin-top: 4px; }
.rqa { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #f6f1fa; font-size: .88rem; display: flex; gap: 6px; align-items: flex-start; }
.rqsheet { text-align: left; max-height: 92vh; overflow: auto; } .rqsheet h2, .rqsheet .pinic { text-align: center; }
.rqsheet label { display: block; font-weight: 700; color: var(--mute); font-size: .85rem; margin: 14px 0 6px; }
.rqsheet textarea, .rqsheet input { width: 100%; font: inherit; padding: 14px; border: 2px solid #e2d6ee; border-radius: 14px; background: #fff; }
.rqsheet .err { color: var(--bad); font-weight: 700; min-height: 1.3em; margin: 8px 0; }
.rqlist { display: grid; gap: 8px; max-height: 38vh; overflow: auto; }
.rqopt { text-align: left; padding: 12px 14px; border-radius: 14px; background: #f6f1fa; border: 2.5px solid transparent; display: flex; flex-direction: column; }
.rqopt small { color: var(--mute); } .rqopt.on { border-color: var(--g); background: #fff; }
.rqdates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .rqdays { font-weight: 800; color: #0f7a6a; margin-top: 8px; }

.rqbig.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 14px; background: linear-gradient(135deg, #2f3b8f, #5468d4) !important; box-shadow: 0 10px 22px rgba(47,59,143,.25) !important; }
.rqbig.wide div { display: flex; flex-direction: column; }
.rqbig { transition: transform .15s; } .rqbig:active { transform: scale(.97); }
.rqcard { align-items: center; border-left: 5px solid #d9c6ec; } .rqcard.pending { border-left-color: #7d2fc0; } .rqcard.in_progress { border-left-color: #e7a915; }
.rqcard.approved { border-left-color: #17a05d; } .rqcard.rejected { border-left-color: #D42E12; }
.rqic.other { background: #e3e7fb; color: #2f3b8f; } .rqic.big { width: 70px; height: 70px; border-radius: 22px; margin: 0 auto 10px; animation: pop .45s both; }
.rqdsheet { text-align: center; max-height: 92vh; overflow: auto; } .rqdsub { font-weight: 700; color: var(--ink) !important; }
.rqtrack { display: flex; align-items: center; gap: 6px; margin: 6px 0 18px; }
.rqtrack > b { flex: 1; height: 3px; border-radius: 3px; background: #eadff3; }
.rqtk { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--mute); animation: enter .4s both; width: 72px; }
.rqtk i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #e2d6ee; display: flex; align-items: center; justify-content: center; background: #fff; }
.rqtk.on { color: var(--ink); } .rqtk.on i { background: var(--g2); border-color: var(--g2); color: #fff; } .rqtk.no i { background: #D42E12; border-color: #D42E12; }
.rqtl { text-align: left; position: relative; margin-bottom: 14px; } .rqtl::before { content: ''; position: absolute; left: 16px; top: 10px; bottom: 10px; width: 2px; background: #eee3f6; }
.rqte { position: relative; display: flex; gap: 12px; padding: 7px 0; animation: enter .4s both; }
.rqte > span { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; z-index: 1; box-shadow: 0 0 0 4px #fff; }
.rqte > div { flex: 1; background: #faf7fd; border-radius: 14px; padding: 8px 12px; border-left: 3px solid var(--c); }
.rqte b { color: var(--c); display: block; } .rqte small { color: var(--mute); } .rqte p { margin: 4px 0 0 !important; color: var(--ink) !important; text-align: left !important; }
.rqsent { text-align: center; padding: 20px 0 30px; }
.rqplane { width: 96px; height: 96px; margin: 10px auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--g), var(--g2)); color: #fff; display: flex; align-items: center; justify-content: center; animation: rqfly 1.8s cubic-bezier(.3,.7,.3,1) both; }
@keyframes rqfly { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 45% { transform: scale(1); } 80% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(140px, -160px) rotate(-20deg) scale(.6); opacity: 0; } }
.rqsent h2 { animation: enter .4s .3s both; } .rqsent p { animation: enter .4s .45s both; }

.rqnum { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; font-weight: 800; color: var(--g2); letter-spacing: .04em; } .rqnum.c { text-align: center; margin-bottom: 2px; }

/* ================= 180/360 бағалау */
.a3ban { display: flex; align-items: center; gap: 12px; margin: 0 16px 12px; padding: 14px 16px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #2f3b8f, #7d2fc0); box-shadow: 0 10px 24px rgba(79,0,125,.25); animation: enter .4s both; }
.a3ban .g { flex: 1; display: flex; flex-direction: column; } .a3ban small { opacity: .85; }
.a3bi { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.a3task { display: flex; align-items: center; gap: 12px; } .a3task .g { flex: 1; display: flex; flex-direction: column; } .a3task small { color: var(--mute); }
.a3task.done { opacity: .75; }
.a3ti { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; background: #fff3d6; color: #a06a00; }
.a3ti.manager { background: var(--g3); color: var(--g); } .a3ti.peer { background: #dcf3ee; color: #0f7a6a; }
.a3res .a3top { display: flex; gap: 10px; } .a3top div { flex: 1; background: #faf7fd; border-radius: 14px; padding: 10px 12px; }
.a3top small { color: var(--mute); font-weight: 700; font-size: .75rem; display: block; } .a3top b { font-size: 1.6rem; color: var(--g); } .a3top b span { font-size: .9rem; color: var(--mute); }
.a3svg { width: 100%; max-width: 340px; display: block; margin: 8px auto 0; overflow: visible; }
.a3grid { fill: none; stroke: #e6dcef; stroke-width: 1; } .a3lbl { font-size: 10px; font-weight: 700; fill: #4a3f55; text-anchor: middle; dominant-baseline: middle; }
.a3poly { animation: a3grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 50%; } @keyframes a3grow { from { transform: scale(.2); opacity: 0; } }
.a3leg { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; margin: 4px 0 10px; }
.a3leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.a3tab { width: 100%; border-collapse: collapse; font-size: .9rem; } .a3tab th { text-align: left; color: var(--mute); font-size: .75rem; padding: 6px 4px; }
.a3tab td { padding: 8px 4px; border-top: 1px solid #f0e8f6; } .a3gap { margin-left: 6px; color: #D42E12; font-size: .75rem; }
.a3head { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; } .a3head small { color: var(--g2); font-weight: 800; } .a3head h1 { font-size: 1.3rem; }
.a3prog { height: 8px; border-radius: 8px; background: #efe6f6; overflow: hidden; margin-bottom: 14px; position: sticky; top: 6px; z-index: 5; }
.a3prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g), var(--g2)); transition: width .3s; }
.a3q { animation: enter .4s both; } .a3q p { margin: 4px 0 10px; font-size: .88rem; }
.a3sc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.a3sc button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px; background: #f6f1fa; border: 2px solid transparent; transition: all .15s; }
.a3sc button b { font-size: 1.2rem; color: var(--g); } .a3sc button small { font-size: .6rem; color: var(--mute); line-height: 1.1; text-align: center; }
.a3sc button.on { background: #efe2fa; } .a3sc button.cur { border-color: var(--g); background: var(--g); } .a3sc button.cur b, .a3sc button.cur small { color: #fff; }
.a3ta { width: 100%; font: inherit; padding: 12px; border: 2px solid #e2d6ee; border-radius: 14px; margin-top: 6px; }

/* ================= чат */
.chfab { position: fixed; right: 16px; bottom: calc(92px + var(--safe-b)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--g), var(--g2)); box-shadow: 0 10px 24px rgba(79,0,125,.35); animation: pop .4s both; }
.chfab b { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: #D42E12; font-size: .75rem; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff; }
.chai { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; padding: 16px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #2f3b8f, #7d2fc0); box-shadow: 0 10px 24px rgba(79,0,125,.25); }
.chai .g { flex: 1; display: flex; flex-direction: column; } .chai small { opacity: .85; }
.chai-ic { width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; animation: float 3s ease-in-out infinite; }
.chtabs { display: flex; gap: 6px; background: #f1eaf7; padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.chtabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 11px; font-weight: 700; color: var(--mute); }
.chtabs button.on { background: #fff; color: var(--g); box-shadow: 0 2px 8px rgba(79,0,125,.12); }
.chrow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; } .chmain { flex: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.chmain .g { flex: 1; display: flex; flex-direction: column; min-width: 0; } .chmain small { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chav { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0f7a6a, #22a88f); }
.chav.tr { background: linear-gradient(135deg, var(--g), var(--g2)); } .chav.ai { background: linear-gradient(135deg, #2f3b8f, #7d2fc0); }
.chun { font-style: normal; min-width: 24px; height: 24px; border-radius: 12px; background: #D42E12; color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.chwa { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,.35); }
.chhead { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; background: #fff; box-shadow: 0 2px 10px rgba(79,0,125,.08); }
.chhead .g { flex: 1; display: flex; flex-direction: column; } .chhead small { color: var(--mute); }
.chlog { padding: 14px 12px 110px; display: flex; flex-direction: column; gap: 8px; min-height: 60vh; }
.chb { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; animation: enter .25s both; }
.chb > div { background: #fff; border-radius: 18px 18px 18px 4px; padding: 10px 14px; box-shadow: 0 2px 6px rgba(79,0,125,.08); line-height: 1.45; }
.chb.me { align-self: flex-end; align-items: flex-end; } .chb.me > div { background: linear-gradient(135deg, var(--g), var(--g2)); color: #fff; border-radius: 18px 18px 4px 18px; }
.chb > span { font-size: .7rem; color: var(--mute); margin: 2px 6px; } .chb.q > div { border: 2px solid #f5c842; } .chb.q small { display: flex; gap: 4px; align-items: center; font-weight: 800; color: #a06a00; margin-bottom: 4px; }
.chb.me.q small { color: #ffe9a8; }
.chb.typing > div { display: flex; gap: 5px; padding: 14px; } .chb.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--g2); animation: chdot 1s infinite; }
.chb.typing i:nth-child(2) { animation-delay: .15s; } .chb.typing i:nth-child(3) { animation-delay: .3s; } @keyframes chdot { 50% { transform: translateY(-6px); opacity: .4; } }
.chempty { text-align: center; color: var(--mute); margin-top: 30px; }
.chin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: #fff; box-shadow: 0 -4px 16px rgba(79,0,125,.08); }
.chin textarea { flex: 1; font: inherit; border: 2px solid #e2d6ee; border-radius: 22px; padding: 11px 16px; resize: none; max-height: 120px; }
.chin button { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--g), var(--g2)); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chfwd { display: flex; gap: 10px; align-items: flex-start; background: #fff6dc; color: #6b4a00; border-radius: 16px; padding: 12px; animation: enter .3s both; max-width: 92%; }
.chfwd small { display: block; margin: 2px 0 8px; } .chfb { display: flex; flex-wrap: wrap; gap: 6px; }
.chfb button, .chfb a { padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--g); font-weight: 700; font-size: .85rem; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.chfb a { background: #25D366; color: #fff; }
.chsent { align-self: center; display: flex; gap: 6px; align-items: center; background: #dff6ea; color: #126b43; font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 20px; animation: pop .35s both; }

/* ================= өтініштер (ИИ → тренер) */
.chnick { font-style: normal; font-size: .7rem; font-weight: 800; color: var(--g2); margin: 0 8px 2px; }
.chb.me .chnick { color: var(--mute); } .chb.tr .chnick { color: #0f7a6a; } .chb.tr > div { border-left: 4px solid #22a88f; } .chb.aib > div { border-left: 4px solid #7d2fc0; }
.suprow { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; } .suprow .g { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.suprow small { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.supic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.supic.ai { background: var(--g3); color: var(--g); } .supic.wait { background: #fff3d6; color: #a06a00; } .supic.ans { background: #dcf3ee; color: #0f7a6a; } .supic.cl { background: #e3f7ec; color: #17784a; }
.supst { display: inline-block; margin-top: 4px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.supst.ai { background: var(--g3); color: var(--g); } .supst.wait { background: #fff3d6; color: #a06a00; } .supst.ans { background: #dcf3ee; color: #0f7a6a; } .supst.cl { background: #e3f7ec; color: #17784a; }
.supsys { align-self: center; display: flex; gap: 6px; align-items: center; text-align: center; font-size: .78rem; font-weight: 700; color: #6b5f78; background: #efe8f5; padding: 6px 12px; border-radius: 14px; max-width: 90%; animation: enter .3s both; }
.supcs { display: grid; gap: 8px; margin-top: 4px; }
.supcs button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid #e8dcf3; color: var(--g); font-weight: 700; animation: enter .35s both; }
.supcs button span { color: var(--ink); } .supcs button.other { border-style: dashed; } .supcs button:active { transform: scale(.98); }
.supacts { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-b)); z-index: 19; display: flex; gap: 8px; justify-content: center; padding: 8px 12px; }
.supacts button, .supacts a { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-radius: 20px; font-weight: 700; font-size: .85rem; background: #fff; color: var(--g); box-shadow: 0 4px 14px rgba(79,0,125,.15); text-decoration: none; }
.supacts .ok { background: #17a05d; color: #fff; }

.supwa { align-self: center; display: inline-flex; gap: 6px; align-items: center; background: #25D366; color: #fff; font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 18px; text-decoration: none; box-shadow: 0 4px 12px rgba(37,211,102,.35); animation: pop .35s both; }
