/* ==========================================================================
   MU Code — студия (тема «иней»).
   Светлый фон, ночные чернила, моноширинные подписи, настоящий конфиг в
   герое. Те же пиксельные тени и углы, что у игры, — один бренд.
   ========================================================================== */

.page-studio { background: #eef5ff; }
.page-studio .shell { max-width: none; padding: 0; }
.page-studio .shell__main--full { background:
  linear-gradient(rgba(11, 20, 55, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(11, 20, 55, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
  #eef5ff; }

.studio { --ink: #0b1437; --ink-2: #1c2650; --muted-s: #56627f; --edge: #0b1437; color: var(--ink-2); }
.st-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #021ab5; }
.st-sec { max-width: var(--shell); margin: 0 auto; padding: 84px var(--gutter) 0; scroll-margin-top: 80px; }
.st-head { max-width: 46em; margin-bottom: 28px; }
.st-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; color: var(--ink); margin: 10px 0 10px; }
.st-lead { color: var(--muted-s); font-size: 16.5px; line-height: 1.55; }

/* --- Герой: текст и конфиг ----------------------------------------------- */
.st-hero {
  max-width: var(--shell); margin: 0 auto; padding: 72px var(--gutter) 24px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center;
}
.st-hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; color: var(--ink); margin: 14px 0 18px; text-wrap: balance; }
.st-hero__lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.st-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.studio .mc-btn { border-color: var(--edge); box-shadow: 4px 4px 0 var(--edge), inset 0 -3px 0 var(--sapphire-deep), inset 0 2px 0 rgba(255, 255, 255, 0.22); }
.studio .mc-btn:active { box-shadow: 1px 1px 0 var(--edge), inset 0 -2px 0 var(--sapphire-deep); }
.studio .st-ghost, .studio .mc-btn--ghost { color: var(--ink); background: #fff; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); }
.studio .st-ghost:hover { background: #e2ecff; color: var(--ink); border-color: var(--edge); }

.st-code { margin: 0; background: #0b1437; border: 2px solid var(--edge); box-shadow: 8px 8px 0 #021ab5; min-width: 0; }
.st-code__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #010b32; border-bottom: 2px solid #021ab5; font-family: var(--mono); font-size: 12px; color: #8089a2; }
.st-code__bar span { width: 9px; height: 9px; background: #626b85; }
.st-code__bar span:first-child { background: #65c8ff; }
.st-code__bar b { margin-left: 8px; font-weight: 400; color: #a8c1e7; }
.st-code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d8e9fd; }
.st-code .c { color: #8089a2; }
.st-code .k { color: #65c8ff; }
.st-code .n { color: #bcf3ff; font-weight: 600; }

/* --- Услуги ---------------------------------------------------------------- */
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.st-card { background: #fff; border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge); padding: 22px 22px 20px; }
.st-card__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; background: #022ef6; color: #fff; box-shadow: 3px 3px 0 var(--edge); }
.st-card__ico svg { width: 24px; height: 24px; }
.st-card__title { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); margin: 16px 0 8px; }
.st-card__text { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* --- Доказательства: живой сервер + журнал ----------------------------------- */
.st-proof__grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr); gap: 22px; align-items: start; }
.st-live { background: #0b1437; color: #d8e9fd; border: 2px solid var(--edge); box-shadow: 6px 6px 0 #022ef6; padding: 22px; position: relative; overflow: hidden; }
.st-live::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: url("../img/night-1x.png") center bottom / cover; image-rendering: pixelated; opacity: 0.55; pointer-events: none; }
.st-live > * { position: relative; z-index: 1; }
.st-live__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #65c8ff; }
.st-live__fig { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; color: #fff; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.st-live__note { color: #a8c1e7; }
.st-live__go { display: inline-block; margin-top: 22px; margin-bottom: 40px; color: #bcf3ff; font-family: var(--display); }
.st-log { display: grid; gap: 14px; }
.st-log li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; background: #fff; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); padding: 16px 18px; }
.st-log__tag { align-self: start; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-align: center; padding: 4px 6px; background: #d8e9fd; color: #021ab5; border: 1px solid #021ab5; }
.st-log p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.st-log b { color: var(--ink); }

/* --- Каталог систем ------------------------------------------------------- */
.st-sys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.st-sys li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 30px; background: #fff; border: 2px solid rgba(11, 20, 55, 0.85); }
.st-sys li::before { content: ""; position: absolute; left: 12px; top: 18px; width: 8px; height: 8px; background: #022ef6; }
.st-sys__name { font-weight: 600; color: var(--ink); }
.st-sys__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted-s); }

/* --- Процесс ------------------------------------------------------------- */
.st-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.st-steps li { counter-increment: st; position: relative; padding: 52px 18px 18px; background: #fff; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); }
.st-steps li::before { content: "0" counter(st); position: absolute; left: 18px; top: 14px; font-family: var(--display); font-weight: 700; font-size: 26px; color: #022ef6; }
.st-steps b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.st-steps p { font-size: 15px; line-height: 1.5; }

/* --- FAQ ----------------------------------------------------------------- */
.st-faq { display: grid; gap: 10px; max-width: 860px; }
.st-faq details { background: #fff; border: 2px solid var(--edge); }
.st-faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-family: var(--display); font-size: 19px; color: var(--ink); position: relative; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-family: var(--mono); font-size: 22px; color: #022ef6; }
.st-faq details[open] summary::after { content: "−"; }
.st-faq details p { padding: 0 18px 18px; line-height: 1.6; color: var(--ink-2); }

/* --- Контакт ------------------------------------------------------------- */
.st-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; padding-bottom: 96px; align-items: start; }
.st-channels { display: grid; gap: 10px; margin-top: 22px; }
.st-channels a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; color: var(--ink); text-decoration: none; }
.st-channels a:hover { color: #021ab5; text-decoration: underline; }
.st-channels svg { width: 22px; height: 22px; color: #022ef6; }
.st-form { background: #fff; border: 2px solid var(--edge); box-shadow: 8px 8px 0 #022ef6; padding: 24px; }
.st-form form { display: grid; gap: 14px; }
.st-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-form label { display: grid; gap: 6px; }
.st-form label > span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-s); }
.st-form input, .st-form select, .st-form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #f6f9ff; border: 2px solid rgba(11, 20, 55, 0.55); border-radius: 0;
}
.st-form textarea { resize: vertical; min-height: 140px; }
.st-form input:focus, .st-form select:focus, .st-form textarea:focus { outline: none; border-color: #022ef6; box-shadow: 0 0 0 2px #65c8ff; background: #fff; }
.st-form .mc-btn { justify-self: start; }
.st-form__err { padding: 10px 12px; background: #fde8e8; border: 2px solid #b42318; color: #7a1a12; }
.st-form__done { padding: 8px 2px; }
.st-form__done-title { font-family: var(--display); font-size: 26px; color: #021ab5; margin-bottom: 6px; }

/* --- Телефон и планшет ---------------------------------------------------- */
@media (max-width: 1000px) {
  .st-hero { grid-template-columns: 1fr; padding-top: 48px; }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-proof__grid, .st-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .st-sec { padding: 60px 16px 0; }
  .st-hero { padding: 36px 16px 8px; gap: 28px; }
  .st-cards, .st-steps, .st-form__row { grid-template-columns: 1fr; }
  .st-log li { grid-template-columns: 1fr; gap: 8px; }
  .st-log__tag { justify-self: start; }
  .st-hero__cta .mc-btn { flex: 1 1 100%; }
  .st-code pre { font-size: 12px; }
  .st-contact { padding-bottom: 64px; }
}
.st-hero, .st-code pre, .st-sec { text-align: left; }
