/* StudentsPro — yuridik sahifalar (/oferta, /maxfiylik) */
:root {
  --bg: #07080b; --solid: #111319; --line: rgba(245, 241, 232, .1); --line2: rgba(245, 241, 232, .18);
  --text: #f5f1e8; --muted: rgba(245, 241, 232, .74); --dim: rgba(245, 241, 232, .5);
  --y: #ffd600; --yt: #ffd600; --brand: #155eef; --link: #8fb3ff;
  --fd: "Unbounded", "Manrope", system-ui, sans-serif;
  --fb: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f6f3ec; --solid: #ffffff; --line: rgba(30, 26, 16, .1); --line2: rgba(30, 26, 16, .18);
  --text: #1e1a10; --muted: rgba(30, 26, 16, .78); --dim: rgba(30, 26, 16, .55);
  --yt: #8a6d00; --link: #155eef;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--fb); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { display: block; height: 26px; width: auto; }
.lg-l { display: none !important; }
html[data-theme="light"] .lg-d { display: none !important; }
html[data-theme="light"] .lg-l { display: block !important; }
.langs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 999px; }
.langs a { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.langs a.on { background: var(--y); color: #111; }
.langs a:hover { text-decoration: none; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 32px; padding-bottom: 56px; }
.tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line2); color: var(--muted); font-weight: 700; font-size: 14px; }
.tabs a.on { border-color: var(--y); color: var(--text); background: rgba(255, 214, 0, .08); }
.tabs a:hover { text-decoration: none; }

article { min-width: 0; }
h1 { font: 700 clamp(28px, 5vw, 40px)/1.15 var(--fd); margin: 8px 0 8px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 4px; }
.ed { color: var(--dim); font-size: 14px; margin: 0 0 28px; }
h2 { font: 700 20px/1.3 var(--fd); margin: 40px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
p { margin: 0 0 14px; color: var(--muted); }
article > p:first-of-type { color: var(--text); }
p.pt { padding-left: 52px; text-indent: -52px; }
p.pt .n { display: inline-block; width: 46px; text-indent: 0; font-weight: 700; color: var(--yt); font-variant-numeric: tabular-nums; }
strong { color: var(--text); font-weight: 700; }
ul { margin: -4px 0 16px; padding-left: 52px; color: var(--muted); }
li { margin: 0 0 6px; }
li::marker { color: var(--yt); }

.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; border-left: 1px solid var(--line); padding-left: 20px; }
.toc ol { list-style: none; margin: 0 0 16px; padding: 0; }
.toc li { margin: 0 0 8px; line-height: 1.4; }
.toc a { color: var(--dim); }
.toc a:hover { color: var(--text); text-decoration: none; }
.pr { font: 700 14px var(--fb); color: var(--text); background: none; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.pr:hover { border-color: var(--y); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .toc { display: none; }
  .tabs { margin-bottom: 8px; }
  p.pt { padding-left: 0; text-indent: 0; }
  p.pt .n { width: auto; margin-right: 4px; }
  ul { padding-left: 22px; }
}

@media print {
  :root, html[data-theme="light"] { --bg: #fff; --text: #000; --muted: #111; --dim: #444; --yt: #000; --line: #ccc; --link: #000; }
  .top, .tabs, .toc, .foot .links { display: none !important; }
  body { font-size: 11.5pt; line-height: 1.5; }
  .doc { display: block; padding: 0; }
  h2 { break-after: avoid; }
}
.foot .tg { display: inline-flex; align-items: center; gap: 6px; }
