@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/golos/golos-text-cyrillic-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/golos/golos-text-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono/jetbrains-mono-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono/jetbrains-mono-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  /* Палитра логотипа MU Code (DESIGN.md). Имена токенов остались от исходной
     вёрстки: --blue = ссылки и акцентный текст, --blue-deep = самый яркий текст,
     --gold = главное действие (у нас сапфир). */
  --bg: #0b1437;
  --surface-solid: #101939;
  --bg-deep: #010b32;
  --ember-2: #022ef6;
  --ember-1: #1f48ff;
  --ember-3: #021ab5;
  --bronze-ink: #4596ea;
  --ember-1: #65c8ff;
  --glow-hi: #bcf3ff;
  --fg: #d8e9fd;
  --fg-2: #a8c1e7;
  --metal: #626b85;
  --metal-2: #8089a2;
  --metal-3: #bcc8dc;

  --ember-1: #65c8ff;
  --fg: #eef5ff;
  --fg-3: #8089a2;
  --fg: #d8e9fd;
  --fg-2: #c9d8ef;
  --fg-3: #8a9abb;

  --bg: #0b1437;
  --bg-deep: #010b32;
  --surface-solid: #101939;
  --elevated: #0d1640;

  --ember-2: #022ef6;
  --ember-3: #021ab5;
  --ember-1: #65c8ff;

  --border: rgba(168, 193, 231, 0.18);
  --border-soft: rgba(168, 193, 231, 0.09);

  --ok: #5fe0a0;
  --ok-bg: rgba(95, 224, 160, 0.14);
  --caution: #ffcf5c;
  --caution-ink: #ffd982;
  --err: #ff8a8a;
  --err-bg: rgba(255, 138, 138, 0.12);

  /* Жёсткие пиксельные тени: сдвиг без размытия, как у букв логотипа. */
  --shadow-1: 3px 3px 0 var(--bg-deep);
  --shadow-1: 5px 5px 0 var(--bg-deep);
  --shadow-2: 8px 8px 0 var(--bg-deep);

  --glass: rgba(16, 25, 57, 0.94);
  --border-2: rgba(128, 137, 162, 0.55);
  --shadow-1: 6px 6px 0 var(--bg-deep);
  --veil: rgba(1, 11, 50, 0.35);

  --font-head: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r: 0px;
  --r-sm: 0px;
  /* Ступенчатый «пиксельный» угол для плашек и кнопок (clip-path). */
  --pix: 4px;
  --px-corners: polygon(0 var(--pix), var(--pix) var(--pix), var(--pix) 0, calc(100% - var(--pix)) 0, calc(100% - var(--pix)) var(--pix), 100% var(--pix), 100% calc(100% - var(--pix)), calc(100% - var(--pix)) calc(100% - var(--pix)), calc(100% - var(--pix)) 100%, var(--pix) 100%, var(--pix) calc(100% - var(--pix)), 0 calc(100% - var(--pix)));
  --ease-std: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --tr-wide: 0.06em;
  --tr-ui: 0.1em;
  --tr-tiny: 0.16em;
  --wrap: 1280px;
  --side: 28px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--ember-1); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(168, 193, 231, 0.38); }
a:hover { color: var(--fg); text-decoration-color: var(--ember-1); }
h1,
h2,
h3,
h4,
p,
ul,
ol,
table { margin: 0; }
ul,
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
input,
select,
textarea { font: inherit; }
::selection { background: rgba(168, 193, 231, 0.16); color: var(--fg); }
:focus-visible { outline: 2px solid var(--ember-1); outline-offset: 3px; border-radius: 0; }
* { scrollbar-width: thin; scrollbar-color: rgba(168, 193, 231, 0.32) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(168, 193, 231, 0.32); border-radius: 0; border: 2px solid transparent; background-clip: padding-box; }
input { caret-color: var(--ember-1); }
.skiplink {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease-std);
}
.skiplink:focus { top: 12px; }
h1,
h2,
h3,
caption {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ember-1);
}
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; min-width: 0; }
.panel {
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(16, 25, 57, 0.97));
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: var(--tr-ui);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #2b4788, var(--ember-1));
  border-color: var(--fg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 22px rgba(168, 193, 231, 0.24);
  transition: transform 0.16s var(--ease-std), box-shadow 0.22s var(--ease-std), background 0.22s var(--ease-std), border-color 0.22s var(--ease-std);
}
.btn:hover { color: #fff; text-decoration: none; background: linear-gradient(180deg, var(--ember-2), #294582); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 28px rgba(168, 193, 231, 0.3); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline-offset: 4px; }
.btn span { position: relative; }
.form { display: block; }
.field > span {
  font-size: 11.5px;
  letter-spacing: var(--tr-tiny);
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: left;
  padding: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: inset 0 1px 2px rgba(1, 11, 50, 0.05);
  transition: border-color 0.18s var(--ease-std), box-shadow 0.18s var(--ease-std);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form .btn { margin-top: 4px; }
.alert {
  margin: 0 0 18px;
  padding: 12px 16px 12px 44px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--elevated);
  font-size: 15px;
  color: var(--fg-2);
}
.alert::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.55;
}
.alert-danger { border-color: rgba(155, 44, 44, 0.35); background: var(--err-bg); color: var(--err); }
.alert-success { border-color: rgba(29, 108, 67, 0.35); background: var(--ok-bg); color: var(--ok); }
.alert-warning { border-color: var(--caution); background: var(--elevated); color: var(--caution-ink); }
.alert-info { color: var(--fg); }
.alert strong { font-weight: 500; }
.label {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: var(--tr-tiny);
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--fg-3);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--border-soft);
}
.table thead th {
  border-top: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: var(--tr-tiny);
  text-transform: uppercase;
  color: var(--fg-3);
  background: rgba(168, 193, 231, 0.04);
}
.table tbody tr:hover { background: var(--elevated); }
.table td:first-child { color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  }
@media (max-width: 640px) {
  :root { --side: 18px; }
  .table td,
.table th { padding: 8px 10px; font-size: 14px; }
}
body { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
body:not(.at-home) {
  background: var(--bg);
}
.panel {
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.table thead th { background: rgba(168, 193, 231, 0.035); }
.table tbody tr:hover { background: rgba(168, 193, 231, 0.035); }
.btn:hover { transform: none; }
@media (max-width: 640px) {
  body:not(.at-home) { background-position: center 60px; }
}
html { overflow-x: clip; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] .panel { background: var(--glass); }
:root[data-theme="dark"] .table thead th { background: rgba(168, 193, 231, 0.05); }
:root[data-theme="dark"] .table tbody tr:hover { background: rgba(168, 193, 231, 0.05); }
:root[data-theme="dark"] .btn {
  color: #fff; background: linear-gradient(180deg, #3a5aa6, #2b4788); border-color: #3a5aa6;
}
:root[data-theme="dark"] .btn:hover { color: #fff; background: linear-gradient(180deg, var(--ember-1), var(--ember-2)); }
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .btn:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
body:not(.at-home) { background: var(--bg); }
:root[data-theme="dark"] ::selection { background: rgba(69, 150, 234, 0.5); color: #fff; }
.btn,
button.btn,
:root[data-theme="dark"] .btn {
  color: #fff; background: linear-gradient(180deg, var(--ember-2), var(--ember-2));
  border: 1px solid rgba(1, 11, 50, 0.25);
  box-shadow: 0 10px 26px rgba(2, 26, 181, 0.28);
}
.btn:hover,
:root[data-theme="dark"] .btn:hover {
  color: #fff; background: linear-gradient(180deg, var(--ember-1), var(--ember-1)); border-color: var(--ember-1);
  box-shadow: 0 0 0 3px rgba(69, 150, 234, 0.3), 0 12px 30px rgba(2, 46, 246, 0.38);
}
.btn { min-height: 50px; font-size: 15px; }
.panel {
  background: var(--surface-solid); border-color: var(--border-2);
}
.btn:disabled,
:root[data-theme="dark"] .btn:disabled {
  color: var(--fg-3); background: transparent; border-color: var(--border); box-shadow: none; cursor: not-allowed; opacity: 1;
}
.btn:not(.btn--ghost):not(.btn-default):not(.btn-xs) {
  position: relative; overflow: hidden; isolation: isolate;
  transition: background 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.22s var(--ease-out), transform 0.16s var(--ease-out);
}
.btn:not(.btn--ghost):not(.btn-default):not(.btn-xs)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn:not(.btn--ghost):not(.btn-default):not(.btn-xs):hover::after {
  transform: translateX(120%); transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn:not(.btn--ghost):not(.btn-default):not(.btn-xs):not(:disabled):hover,
:root[data-theme="dark"] .btn:not(.btn--ghost):not(.btn-default):not(.btn-xs):not(:disabled):hover {
  color: #fff;
  background: linear-gradient(180deg, var(--ember-1), var(--ember-1));
  border-color: var(--ember-1);
  box-shadow: 0 0 0 3px rgba(69, 150, 234, 0.33), 0 12px 32px rgba(2, 46, 246, 0.42);
}
.btn:disabled::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover::after { transition: none; transform: translateX(-120%); }
}
.loc-hidden { color: var(--fg-3); }
.st { display: grid; gap: 20px; }
.sd-kicker { display: block; font-size: 11.5px; letter-spacing: var(--tr-tiny); text-transform: uppercase; color: var(--fg-3); }
.sd-card { padding: 22px 24px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-1); min-width: 0; }
.sd-card__title { margin: 0 0 14px; font-family: var(--font-head); font-size: 19px; letter-spacing: var(--tr-wide); color: var(--fg); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px; border-radius: var(--r); border: 1px solid rgba(2, 46, 246, 0.35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(2, 46, 246, 0.16), transparent 55%), var(--surface-solid); box-shadow: var(--shadow-1); }
@media (max-width: 960px) {
  .sd-hero { grid-template-columns: auto 1fr; }
}
@media (max-width: 600px) {
  .sd-hero { grid-template-columns: 1fr; text-align: center; padding: 22px 16px; }
  .sd-card { padding: 18px 16px; }
}
