/* Studio layout — отдельная визуальная система (st-*) */

:root {
  --st-bg0: #080c10;
  --st-bg1: #0f1419;
  --st-panel: #141c24;
  --st-panel2: #1a242f;
  --st-line: rgba(148, 163, 184, 0.12);
  --st-text: #f1f5f9;
  --st-muted: #94a3b8;
  --st-accent: #5eead4;
  --st-accent-dim: #2dd4bf;
  --st-warn: #fbbf24;
  --st-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --st-serif: "Libre Baskerville", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.st-root {
  margin: 0;
  min-height: 100vh;
  font-family: var(--st-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--st-text);
  background: var(--st-bg0);
}

.st-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(94, 234, 212, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    linear-gradient(180deg, var(--st-bg0) 0%, var(--st-bg1) 45%, #0a0e12 100%);
}

.st-skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--st-accent);
  color: #042f2e;
  font-weight: 700;
}
.st-skip:focus {
  left: 1rem;
  top: 1rem;
}

.st-bar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--st-line);
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 16, 0.75);
}

.st-bar__in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.st-mark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.st-mark__host {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-accent);
}

.st-mark__name {
  font-family: var(--st-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--st-text);
}

.st-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.st-bar__links a {
  color: var(--st-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.st-bar__links a:hover {
  color: var(--st-text);
  border-bottom-color: var(--st-accent);
}

.st-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.st-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 880px) {
  .st-board {
    grid-template-columns: 1fr;
  }
}

.st-panel {
  background: linear-gradient(165deg, var(--st-panel) 0%, var(--st-panel2) 100%);
  border: 1px solid var(--st-line);
  border-radius: 20px;
  padding: 1.75rem 1.6rem 1.85rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.st-panel--out {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
}

.st-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-accent);
}

.st-title {
  margin: 0 0 0.75rem;
  font-family: var(--st-serif);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.st-lead {
  margin: 0 0 1.35rem;
  color: var(--st-muted);
  font-size: 0.92rem;
  max-width: 36em;
}

.st-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

@media (max-width: 520px) {
  .st-meta {
    grid-template-columns: 1fr;
  }
}

.st-meta li {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
  border: 1px solid var(--st-line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  text-align: center;
}

.st-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.5rem;
}

.st-drop {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1.35rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.st-drop:focus-within {
  border-color: var(--st-accent);
  border-style: solid;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.2);
}

.st-drop input[type="file"] {
  width: 100%;
  font-size: 0.85rem;
  color: var(--st-muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.st-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--st-muted);
  line-height: 1.45;
}

.st-consent {
  margin: 1.15rem 0 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--st-line);
  background: rgba(0, 0, 0, 0.18);
}

.st-consent__row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--st-muted);
  line-height: 1.55;
}

.st-consent__row input {
  margin-top: 0.2rem;
  accent-color: var(--st-accent);
  flex-shrink: 0;
}

.st-consent a {
  color: var(--st-accent);
  font-weight: 600;
}

.st-cta {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: #042f2e;
  background: linear-gradient(180deg, #5eead4 0%, #2dd4bf 100%);
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.st-cta:hover:not(:disabled) {
  filter: brightness(1.05);
}

.st-cta:active:not(:disabled) {
  transform: scale(0.99);
}

.st-cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.st-err {
  margin: 0.85rem 0 0;
  min-height: 0;
  font-size: 0.8rem;
  color: #fca5a5;
}

.st-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--st-line);
}

.st-out-head span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-shell {
  position: relative;
  flex: 1;
  display: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--st-line);
  background: rgba(0, 0, 0, 0.25);
  min-height: 17rem;
}

.st-result {
  margin: 0;
  padding: 1.25rem 1.2rem;
  min-height: 17rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  word-break: break-word;
}

.st-result--blur {
  filter: blur(8px);
  user-select: none;
}

.st-blur-cta {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.05) 0%, rgba(8, 12, 16, 0.88) 100%);
  z-index: 2;
}

.st-blur-cta.is-on {
  display: flex;
}

.st-blur-cta__btn {
  display: block;
  width: 100%;
  max-width: 20rem;
  text-align: center;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #042f2e !important;
  text-decoration: none !important;
  border-radius: 12px;
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.35);
}

.st-blur-cta__btn:active {
  transform: scale(0.98);
}

.st-blur-cta__sub {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--st-muted);
  text-align: center;
}

.st-blur-cta__alt {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  text-align: center;
  max-width: 20rem;
  line-height: 1.4;
}

.st-blur-cta__alt a {
  color: var(--st-accent);
  font-weight: 700;
}

.st-out-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: var(--st-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem;
}

.st-foot {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  font-size: 0.75rem;
  color: var(--st-muted);
}

.st-foot__note {
  margin: 0 0 1rem;
  max-width: 52em;
  line-height: 1.55;
}

.st-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.st-foot__links a {
  color: var(--st-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.78rem;
}
.st-foot__links a:hover {
  text-decoration: underline;
}

/* ——— Юридические страницы ——— */

body.st-legal {
  margin: 0;
  min-height: 100vh;
  font-family: var(--st-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--st-text);
  background: var(--st-bg0);
}

.st-legal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -20%, rgba(94, 234, 212, 0.1), transparent 55%);
  pointer-events: none;
}

.st-legal-head {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--st-line);
  background: rgba(8, 12, 16, 0.9);
}

.st-legal-head__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.st-legal-logo {
  font-family: var(--st-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--st-text);
  text-decoration: none;
}

.st-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.st-legal-nav a {
  color: var(--st-muted);
  text-decoration: none;
}
.st-legal-nav a:hover {
  color: var(--st-accent);
}

.st-legal-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--st-panel);
  border: 1px solid var(--st-line);
  border-radius: 18px;
  margin-top: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.st-legal-back {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.st-legal-back a {
  color: var(--st-accent);
  font-weight: 600;
  text-decoration: none;
}
.st-legal-back a:hover {
  text-decoration: underline;
}

.st-legal-title {
  font-family: var(--st-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.st-legal-main p,
.st-legal-main ul {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--st-muted);
}

.st-legal-main a {
  color: var(--st-accent);
  font-weight: 600;
}

.st-legal-main ul {
  padding-left: 1.2rem;
}
