:root {
  --bg: #08090b;
  --surface: #101217;
  --surface-2: #151922;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #f2f4f8;
  --muted: #9399a6;
  --accent: #7898ff;
  --accent-soft: #a8baff;
  --danger: #ff8585;
  --radius: 14px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: -1; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 77% 28%, rgba(73, 99, 177, .10), transparent 36%), radial-gradient(ellipse at 5% 78%, rgba(56, 75, 132, .07), transparent 34%); }
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 100; top: 8px; left: -999px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--bg); }
.skip:focus { left: 8px; }

.header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(8, 9, 11, .82); backdrop-filter: blur(18px); }
.header__in { display: flex; height: 76px; align-items: center; gap: 30px; }
.logo { display: flex; flex-shrink: 0; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.logo__mark { display: grid; width: 35px; height: 40px; place-items: center; color: var(--accent); font-size: 34px; font-weight: 400; line-height: 1; }
.logo__sub { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin-right: auto; }
.nav a, .ghost { position: relative; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav a:hover, .nav a.is-active, .ghost:hover { color: var(--text); }
.nav a.is-active::after { position: absolute; right: 0; bottom: -27px; left: 0; height: 2px; background: var(--accent); content: ""; }
.header__right { display: flex; align-items: center; gap: 20px; }
.ghost { white-space: nowrap; }
.burger { position: relative; display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; right: 10px; left: 10px; height: 1.5px; background: var(--text); transition: .25s; }
.burger span:first-child { top: 16px; }.burger span:last-child { top: 23px; }
.burger[aria-expanded=true] span:first-child { top: 19px; transform: rotate(45deg); }.burger[aria-expanded=true] span:last-child { top: 19px; transform: rotate(-45deg); }

.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn--primary { border-color: var(--accent); background: var(--accent); color: #08090b; }
.btn--primary:hover { border-color: var(--accent-soft); background: var(--accent-soft); }
.btn--admin { min-height: 36px; padding: 6px 15px; font-size: 13px; }
.btn--sm { min-height: 34px; padding: 6px 13px; font-size: 12px; }
.btn--danger { border-color: rgba(255, 133, 133, .4); color: var(--danger); }.btn--danger:hover { border-color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: wait; }

.hero { position: relative; overflow: hidden; min-height: 650px; padding: clamp(76px, 11vw, 144px) 0 54px; border-bottom: 1px solid var(--line); }
.hero::before { position: absolute; top: 3%; right: -16%; width: min(850px, 75vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(81, 103, 177, .12), transparent 68%); content: ""; pointer-events: none; }
.hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; column-gap: 4%; }
.hero__content { z-index: 1; }
.eyebrow { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 36px; height: 1px; margin: 0 14px 4px 0; background: var(--accent); content: ""; }
.hero h1 { margin: 28px 0 20px; font-size: clamp(42px, 7.3vw, 92px); font-weight: 500; letter-spacing: -.075em; line-height: .99; }
.hero h1 em { color: var(--muted); font-style: normal; }
.hero__roles { display: flex; align-items: center; gap: 17px; margin: 28px 0 18px; color: var(--accent-soft); font-size: clamp(15px, 1.8vw, 21px); }
.hero__roles i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.hero__lead { max-width: 630px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 21px); }
.hero__link { margin-top: 32px; }
.hero__visual { position: relative; display: grid; min-width: 0; place-items: center; animation: float 8s ease-in-out infinite; }
.globe { display: block; width: min(100%, 440px); overflow: visible; }
.globe__ring, .globe__grid { stroke: rgba(190, 202, 233, .17); stroke-width: 1; }
.globe__route { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; animation: trace 5s ease forwards .5s; }
.globe__point { fill: var(--accent); }
.globe__point--pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
.hero__coordinate { position: absolute; right: 5%; bottom: 7%; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.hero__meta { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 16px 34px; margin-top: 60px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.hero__meta b { color: var(--text); font-size: 14px; font-weight: 400; }
.section { padding: 78px 0 100px; }
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 34px; }
.section__num { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.section__title { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; min-height: 220px; flex-direction: column; gap: 14px; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 62%), var(--surface); transition: border-color .25s, background .25s, transform .25s; }
.card::after { position: absolute; right: -46px; bottom: -72px; width: 160px; height: 160px; border: 1px solid rgba(120, 152, 255, .1); border-radius: 50%; box-shadow: 0 0 0 20px rgba(120, 152, 255, .025), 0 0 0 42px rgba(120, 152, 255, .02); content: ""; transition: transform .45s; }
.card:hover { transform: translateY(-4px); border-color: rgba(120, 152, 255, .55); background-color: var(--surface-2); }
.card:hover::after { transform: scale(1.18); }
.card__num { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.card h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 400; letter-spacing: -.04em; }
.card p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; }
.card__foot { z-index: 1; display: flex; justify-content: space-between; margin-top: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.card:hover .card__foot span:last-child { color: var(--accent-soft); }

.page { padding: 68px 0 100px; animation: arrive .55s both; }
.page__top { margin-bottom: 36px; }
.page__top h1 { margin: 16px 0 10px; font-size: clamp(38px, 5vw, 64px); font-weight: 500; letter-spacing: -.065em; line-height: 1.04; }
.page__top p { max-width: 660px; margin: 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; transition: .2s; }
.chip:hover { border-color: var(--line-2); color: var(--text); }.chip.is-on { border-color: var(--text); background: var(--text); color: var(--bg); }
.search { flex: 1; min-width: 220px; max-width: 390px; margin-left: auto; }
.input, .search input, select.input, textarea.input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.input:focus, .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120, 152, 255, .1); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-repeat: no-repeat; background-size: 6px 6px; }
.group { margin-bottom: 42px; }
.group__title { display: flex; align-items: baseline; gap: 13px; margin: 0 0 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 23px; font-weight: 400; letter-spacing: -.035em; }
.group__title span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 13px; }
.item { display: flex; min-height: 170px; flex-direction: column; gap: 10px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); animation: arrive .45s both; }
.item h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.item p { margin: 0; color: var(--muted); font-size: 13px; }
.item__meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.item__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tag { display: inline-block; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 11px; }
.empty { padding: 52px 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; }
.alpha button { width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 12px; }
.alpha button:hover { border-color: var(--line); color: var(--text); }.alpha button.is-on { background: var(--accent); color: var(--bg); }.alpha button:disabled { opacity: .25; cursor: default; }
.terms { display: flex; flex-direction: column; }.term { display: grid; grid-template-columns: 230px 1fr; gap: 12px 36px; padding: 26px 0; border-bottom: 1px solid var(--line); }.term:first-child { border-top: 1px solid var(--line); }
.term h3 { margin: 0; font-size: 23px; font-weight: 400; letter-spacing: -.04em; line-height: 1.2; }.term h3 + .tag { margin-top: 10px; }
.term__def { margin: 0 0 13px; font-size: 16px; }.term__ex { padding: 13px 17px; border-left: 2px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--surface); color: var(--muted); font-size: 14px; }
.term__ex b { display: block; margin-bottom: 6px; color: var(--accent-soft); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }.term__ex ul { margin: 0; padding-left: 18px; }.term__ex li + li { margin-top: 4px; }
mark { border-radius: 3px; background: rgba(120, 152, 255, .24); color: inherit; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; align-items: start; gap: 24px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel h2 { margin: 0 0 20px; font-size: 22px; font-weight: 400; letter-spacing: -.035em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }.field label { color: var(--muted); font-size: 12px; }.field small { color: var(--muted); font-size: 11px; }
.field input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 12px; }.row > * { flex: 1; }.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.gate { max-width: 420px; margin: 72px auto; }.hint { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--muted); font-size: 13px; }.hint code, .panel code { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); font-family: var(--mono); font-size: 11px; }.hint ol { margin: 8px 0 0; padding-left: 20px; }
.err { min-height: 20px; margin: 6px 0 0; color: var(--danger); font-size: 13px; }.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; }
.admin-list { display: flex; flex-direction: column; gap: 9px; }.arow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.arow__t { min-width: 0; }.arow__t b { display: block; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.arow__t span { color: var(--muted); font-size: 12px; }.arow__a { display: flex; flex-shrink: 0; gap: 7px; }
.progress { display: none; overflow: hidden; height: 3px; margin: 12px 0; border-radius: 3px; background: var(--line); }.progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s; }
.footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }.footer__links a:hover { color: var(--text); }
.toast { position: fixed; z-index: 200; bottom: 28px; left: 50%; max-width: 90vw; padding: 11px 19px; transform: translate(-50%, 30px); border-radius: 999px; background: var(--text); color: var(--bg); opacity: 0; pointer-events: none; font-size: 13px; font-weight: 500; transition: .3s; }.toast.is-on { transform: translate(-50%, 0); opacity: 1; }.toast.is-err { background: var(--danger); }
.pdf-viewer { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: 92vh; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.pdf-viewer::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.pdf-viewer__head, .pdf-viewer__foot { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; }
.pdf-viewer__head { border-bottom: 1px solid var(--line); }.pdf-viewer__head h2 { overflow: hidden; margin: 0; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.pdf-viewer iframe { display: block; width: 100%; height: min(76vh, 820px); border: 0; background: #fff; }
.pdf-viewer__foot { justify-content: flex-end; border-top: 1px solid var(--line); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { opacity: .95; transform: scale(.8); } 75%, 100% { opacity: 0; transform: scale(2.8); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }.header__in { gap: 14px; }.burger { display: block; }.ghost { display: none; }.header__right { margin-left: auto; }
  .nav { position: fixed; top: 76px; right: 0; left: 0; z-index: -1; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 20px 16px; transform: translateY(-130%); border-bottom: 1px solid var(--line); background: var(--bg); transition: transform .3s; }
  .nav.is-open { transform: none; }.nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }.nav a.is-active::after { display: none; }
  .hero { min-height: 0; padding: 76px 0 45px; }.hero > .wrap { grid-template-columns: 1fr minmax(220px, .65fr); }.hero h1 { font-size: clamp(42px, 8vw, 68px); }.hero__meta { margin-top: 42px; }.cards { grid-template-columns: 1fr 1fr; }.admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }.header__in { height: 66px; }.nav { top: 66px; }.logo { font-size: 14px; }.logo__mark { width: 28px; font-size: 29px; }.btn--admin { padding-inline: 11px; }
  .hero { padding-top: 62px; }.hero > .wrap { grid-template-columns: 1fr; }.hero h1 { font-size: clamp(40px, 11vw, 62px); }.hero__visual { position: absolute; top: 155px; right: -90px; width: 250px; opacity: .32; }.hero__coordinate { display: none; }.hero__content { min-height: 400px; }.hero__roles { flex-wrap: wrap; gap: 10px; }.hero__lead { max-width: 490px; }.hero__meta { gap: 11px 18px; margin-top: 20px; font-size: 9px; }.hero__meta b { font-size: 12px; }
  .section { padding: 58px 0 72px; }.cards { grid-template-columns: 1fr; }.card { min-height: 190px; padding: 23px; }.page { padding: 52px 0 72px; }.toolbar { align-items: stretch; }.search { flex-basis: 100%; max-width: none; margin-left: 0; }.term { grid-template-columns: 1fr; gap: 12px; }.list { grid-template-columns: 1fr; }.arow { align-items: stretch; flex-direction: column; }.row { flex-direction: column; gap: 0; }.footer__in { flex-direction: column; }.footer__links { gap: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print { .header, .footer, .toolbar, .alpha { display: none; } body { background: #fff; color: #000; } }

.wrap { width: min(1120px, calc(100% - 48px)); }
.header__in { height: 68px; gap: 32px; }
.logo { gap: 0; font-size: 16px; letter-spacing: -.01em; }
.logo__sub { display: inline; margin-left: 6px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.nav { gap: 28px; }
.nav a.is-active::after { bottom: -7px; height: 1px; }
.eyebrow::before { display: none; }
.hero { min-height: 0; padding: 96px 0 72px; }
.hero > .wrap { display: block; }
.hero h1 { margin: 18px 0 28px; font: 400 clamp(44px, 8vw, 96px)/1.02 var(--serif); letter-spacing: -.03em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero__lead { max-width: 560px; font-size: 19px; }
.hero__meta { gap: 28px; margin-top: 48px; font-size: 12px; }
.hero__meta b { font-weight: 400; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-height: 230px; gap: 14px; padding: 28px; }
.card h3 { font: 400 28px/1.15 var(--serif); letter-spacing: -.01em; }
.card p { font-size: 14px; }
.card__foot { font-size: 11px; }
.section { padding: 72px 0; }
.section__head { gap: 20px; margin-bottom: 36px; }
.section__title { font: 400 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; }
.page { padding: 64px 0 96px; }
.page__top { margin-bottom: 36px; }
.page__top h1 { font: 400 clamp(36px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -.025em; }
.list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.item { min-height: 0; padding: 22px; }
.item h3 { font-size: 18px; }
.term h3 { font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 32px); }
  .header__in { gap: 12px; }
  .nav { gap: 0; }
  .cards, .list { grid-template-columns: 1fr; }
  .term, .admin-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero > .wrap { display: block; }
  .hero__meta { gap: 18px; }
}
@media (max-width: 620px) {
  .header__in { height: 66px; }
  .nav { top: 66px; }
  .logo { font-size: 15px; }
  .logo__sub { font-size: 12px; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(44px, 12vw, 72px); }
  .hero__meta { gap: 12px 20px; margin-top: 36px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 210px; }
  .section { padding: 58px 0 72px; }
  .list { grid-template-columns: 1fr; }
}
