/* ALHIKMA — ichki sahifalar (kurs dasturlari, maqolalar, vakansiyalar): bosh sahifa bilan bir xil uslub —
   to'q binafsha fon, shisha panellar, Manrope sarlavhalar, kapsula tugmalar, telefonda pastki menyu. */
:root {
  --bg: #0a0617; --panel: rgba(26, 16, 54, .62); --panel-2: rgba(36, 22, 74, .7);
  --line: rgba(176, 140, 255, .2); --line-2: rgba(190, 160, 255, .42);
  --text: #f1edff; --muted: #a9a3c9; --acc: #a855f7; --acc-2: #c4b5fd;
  --btn: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  --head: 'Manrope', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--text); font: 400 17px/1.75 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(168, 85, 247, .30), transparent 62%),
    radial-gradient(800px 600px at -8% 22%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(900px 700px at 30% 105%, rgba(99, 102, 241, .14), transparent 60%),
    linear-gradient(180deg, #0d0720 0%, #0a0617 40%, #0b0619 100%) fixed, var(--bg);
}
a { color: var(--acc-2); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #c084fc; outline-offset: 3px; border-radius: 8px; }

/* ===== Yuqori panel: shisha kapsula (bosh sahifadagidek) ===== */
.top { position: sticky; top: 0; z-index: 50; padding: 10px 12px 0; }
.top-in {
  max-width: 1000px; margin: 0 auto; height: 64px; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 10px;
  border-radius: 20px; background: rgba(14, 8, 32, .82); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: auto; filter: drop-shadow(0 0 10px rgba(168, 85, 247, .6)); }
.brand b { font: 800 18px/1 var(--head); letter-spacing: .04em; }
.lang-btn { height: 40px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: #e9e3ff; font: 700 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; cursor: pointer; }
.lang-btn:hover { background: rgba(168, 85, 247, .18); }

/* ===== Tugmalar ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn); color: #fff; font: 700 15px/1.2 'Inter', sans-serif; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s, filter .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(168, 85, 247, .14); }
.top .cta { padding: 10px 16px; font-size: 14px; }

/* ===== Matn ===== */
main { max-width: 820px; margin: 0 auto; padding: 30px 18px 70px; }
.crumbs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(168, 85, 247, .1); border: 1px solid var(--line); }
.crumbs a { color: #d8b4fe; text-decoration: none; }
h1 { font: 800 clamp(30px, 5.4vw, 46px)/1.08 var(--head); letter-spacing: -.02em; margin: 16px 0 14px; filter: drop-shadow(0 6px 26px rgba(124, 58, 237, .4)); }
h2 { font: 800 clamp(22px, 3vw, 28px)/1.25 var(--head); letter-spacing: -.01em; margin: 40px 0 12px; }
h3 { font: 700 19px/1.35 var(--head); margin: 24px 0 6px; }
p, li { color: #d8d3f3; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
li::marker { color: #a78bfa; }
b, strong { color: #fff; }
.lead { font-size: 19px; color: #e9e5ff; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.box { margin: 24px 0; padding: 18px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 15px; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: #d8b4fe; font-weight: 700; background: rgba(168, 85, 247, .1); }
[dir="rtl"] { font-size: 1.15em; color: #fff; }

/* chaqiruv bloki — bosh sahifadagi ro'yxat bloki kabi */
.cta-box { margin: 44px 0 10px; padding: 26px; border-radius: 26px; background: linear-gradient(135deg, rgba(76, 29, 149, .55), rgba(26, 16, 54, .75) 55%); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(124, 58, 237, .8); }
.cta-box h2 { margin-top: 0; font-size: clamp(20px, 2.6vw, 24px); }
.cta-box .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta-box .btn { white-space: normal; text-align: center; line-height: 1.3; }
.more { margin-top: 34px; }
.more a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: #f1edff; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.more a::after { content: "→"; color: #a78bfa; }
.more a:hover { border-color: var(--line-2); background: var(--panel-2); }
.cards { display: grid; gap: 14px; }
.card { display: block; padding: 20px 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 24px 50px -26px rgba(168, 85, 247, .8); transform: translateY(-2px); }
.card b { display: block; font: 800 19px/1.35 var(--head); color: #fff; margin-bottom: 6px; }
.card span { color: var(--muted); font-size: 15px; }

/* ===== Pastki qism ===== */
footer { margin-top: 20px; padding: 28px 18px; border-top: 1px solid var(--line); background: rgba(9, 5, 20, .9); text-align: center; font-size: 13.5px; line-height: 2; color: #8b84b8; }
footer a { color: #c4b5fd; text-decoration: none; }
footer .made { display: inline-block; margin-top: 4px; font-size: 12.5px; letter-spacing: .04em; color: #8b84b8; }

/* ===== Kurs sahifalari ===== */
.c-hero { position: relative; display: flex; gap: 18px; align-items: flex-end; margin-top: 16px; padding: 150px 24px 24px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); }
.c-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170px; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(26, 16, 54, .96) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px),
    radial-gradient(120% 120% at 50% 110%, var(--c1, rgba(168, 85, 247, .95)), transparent 70%),
    radial-gradient(80% 90% at 85% 0%, var(--c2, rgba(59, 130, 246, .6)), transparent 70%), #140b2c;
}
.c-hero.c-en { --c1: rgba(249, 115, 22, .85); --c2: rgba(236, 72, 153, .55); }
.c-hero.c-ar { --c1: rgba(16, 185, 129, .85); --c2: rgba(234, 179, 8, .45); }
.c-hero > * { position: relative; }
.c-ic { position: absolute !important; left: 50%; top: 34px; transform: translateX(-50%); font: 800 68px/1 var(--head); color: #fff; text-shadow: 0 0 24px rgba(255, 255, 255, .55), 0 0 60px #a855f7; }
.c-hero h1 { margin: 0 0 8px; }
.c-hero .lead { margin: 0; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.facts li { margin: 0; padding: 14px 16px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts small { display: block; color: var(--muted); font-size: 12.5px; }
.facts b { color: #fff; font: 800 16px/1.3 var(--head); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { margin: 0; padding: 5px 12px; border-radius: 8px; font-size: 13.5px; color: #ddd6fe; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.tcard { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; padding: 14px 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.tcard img, .tcard .ava { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #a855f7; box-shadow: 0 0 0 5px rgba(168, 85, 247, .12), 0 0 24px -6px #a855f7; }
.tcard .ava { display: grid; place-items: center; font: 800 18px/1 var(--head); background: rgba(168, 85, 247, .18); }
.tcard small { display: block; color: var(--muted); font-size: 12.5px; }
.tcard b { display: block; color: #fff; font-family: var(--head); font-weight: 800; }
.tcard span { color: var(--muted); font-size: 14.5px; }
.plan { list-style: none; padding: 0; }
.plan li { display: grid; grid-template-columns: 88px 1fr; gap: 14px; margin: 10px 0; padding: 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.plan li > span { align-self: start; padding: 6px 0; border-radius: 999px; text-align: center; font: 800 12.5px/1.2 var(--head); color: #fff; background: var(--btn); box-shadow: 0 8px 20px -10px rgba(168, 85, 247, .9); }
.plan b { color: #fff; font-family: var(--head); font-weight: 800; }
.plan p { margin: 3px 0 0; font-size: 15.5px; }
ul.ok { list-style: none; padding: 0; }
ul.ok li { padding-left: 32px; position: relative; }
ul.ok li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: var(--btn); }
details { margin: 10px 0; padding: 14px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 24px/1 'Inter', sans-serif; color: #c4b5fd; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 8px 0 0; }

/* ===== Vakansiyalar ===== */
.jobs { display: grid; gap: 14px; margin: 18px 0; }
.job { padding: 20px 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.job h3 { margin: 0 0 4px; font: 800 20px/1.3 var(--head); color: #fff; }
.job .jm { color: var(--muted); font-size: 14.5px; }
.job .jt { white-space: pre-line; }
.jform { display: grid; gap: 10px; margin-top: 12px; padding: 18px; border-radius: 22px; background: rgba(10, 6, 23, .55); border: 1px solid var(--line); }
.jform input, .jform textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(190, 160, 255, .22); background: rgba(255, 255, 255, .04); color: var(--text); font: 500 15px 'Inter', sans-serif; }
.jform input:focus, .jform textarea:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 4px rgba(168, 85, 247, .2); }
.jform input::placeholder, .jform textarea::placeholder { color: #6f6994; }
.jform .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #86efac; }
.form-msg.bad { color: #fda4af; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

/* ===== Til menyusi (js/i18n.js) ===== */
.lang-menu { position: fixed; z-index: 120; width: 180px; padding: 6px; border-radius: 16px; background: rgba(16, 9, 36, .97); border: 1px solid rgba(190, 160, 255, .38); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85), 0 0 30px -14px rgba(168, 85, 247, .7); }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: #e9e3ff; font: 600 14.5px/1.2 'Inter', system-ui, sans-serif; text-align: left; cursor: pointer; }
.lang-menu button b { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 6px; border-radius: 7px; font: 700 11.5px/1 'IBM Plex Mono', ui-monospace, monospace; color: #c4b5fd; background: rgba(168, 85, 247, .14); border: 1px solid rgba(190, 160, 255, .25); }
.lang-menu button:hover { background: rgba(168, 85, 247, .16); }
.lang-menu button[aria-checked="true"] { background: rgba(168, 85, 247, .24); color: #fff; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: #c084fc; }

/* ===== Telefon: pastki menyu (bosh sahifadagidek) ===== */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    height: 64px; padding: 0 6px 8px; border-radius: 22px; background: rgba(16, 9, 36, .9); border: 1px solid var(--line-2);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 30px -12px rgba(168, 85, 247, .6);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #a9a3c9; font: 600 10.5px/1 'Inter', sans-serif; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on svg { stroke: #c084fc; filter: drop-shadow(0 0 6px rgba(192, 132, 252, .8)); }
  .tabbar .tb-ai { color: #e9d5ff; }
  .tabbar .tb-ai img { width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; object-fit: cover; border: 3px solid #a855f7; box-shadow: 0 0 0 4px rgba(16, 9, 36, .9), 0 0 24px -2px #a855f7; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { padding: 8px 8px 0; }
  .top .cta { display: none; }   /* telefonda — pastki menyudagi "Yozilish" */
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .c-hero { padding: 130px 18px 20px; }
  .c-ic { font-size: 56px; top: 28px; }
  .plan li { grid-template-columns: 1fr; gap: 8px; }
  .plan li > span { justify-self: start; padding: 6px 14px; }
  .cta-box .btn { width: 100%; }
  table { font-size: 14px; }
  th, td { padding: 9px 10px; overflow-wrap: anywhere; hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } .btn:hover, .card:hover { transform: none; } }

/* Filial sahifasi: xarita tugmalari */
.br-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.br-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
.br-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.facts b a { color: inherit; text-decoration: none; }

