:root {
  --bg: #05090c;
  --bg-deep: #020507;
  --panel: #0a1318;
  --panel-2: #0e1b21;
  --panel-3: #12252d;
  --cyan: #24d8ff;
  --blue: #1388ff;
  --ice: #eafaff;
  --text: #f4f8fa;
  --muted: #8fa5af;
  --line: rgba(132, 215, 239, .18);
  --line-strong: rgba(36, 216, 255, .48);
  --glass-fill: rgba(11, 36, 46, .58);
  --glass-highlight: rgba(220, 251, 255, .48);
  --glass-edge: rgba(138, 233, 255, .38);
  --danger: #ff9b84;
  --display: "Arial Black", "Trebuchet MS", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
  --section-space: clamp(58px, 6.8vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 8%, rgba(19, 136, 255, .13), transparent 30rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(93, 192, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 192, 220, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: var(--section-space) 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cyan);
  color: #001014;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(136, 220, 245, .1);
  background: rgba(4, 9, 12, .78);
  backdrop-filter: blur(18px);
}
.nav-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 600 13px/1 var(--display); letter-spacing: -.02em; }
.wordmark b { color: inherit; font-weight: 600; }
.wordmark-name { display: inline-block; }
.metal-wordmark {
  color: #dff9ff;
  background: linear-gradient(105deg, #64808d 0%, #effeff 18%, #7fdfff 34%, #ffffff 48%, #7ba7b8 63%, #baf4ff 78%, #f5ffff 100%);
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 9px rgba(36, 216, 255, .16));
  animation: metal-sheen 7s ease-in-out infinite;
}
@keyframes metal-sheen {
  0%, 16% { background-position: 100% 50%; }
  50%, 66% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.wordmark-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(36,216,255,.12), transparent);
  box-shadow: 0 0 22px rgba(36,216,255,.12);
  font: 600 11px/1 var(--display);
}
.nav-links { display: flex; gap: 28px; color: #aec1ca; font-size: 13px; }
.nav-links a:hover { color: var(--cyan); }
.nav-action { padding: 10px 15px; border: 1px solid var(--glass-edge); background: var(--glass-fill); color: var(--ice); font-size: 13px; backdrop-filter: blur(14px) saturate(125%); box-shadow: inset 0 1px var(--glass-highlight); }

.hero { position: relative; padding: clamp(58px, 7vw, 92px) 0 clamp(64px, 7vw, 96px); overflow: clip; }
.hero::after {
  content: "YURPROJEKT / INTERACTIVE";
  position: absolute;
  right: -52px;
  bottom: 12px;
  color: rgba(151, 225, 245, .05);
  font: 600 clamp(42px, 7vw, 108px)/1 var(--display);
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  width: 510px;
  height: 510px;
  top: -220px;
  right: 8%;
  border: 1px solid rgba(36,216,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(19,136,255,.12), inset 0 0 90px rgba(36,216,255,.04);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr); gap: clamp(36px, 6vw, 86px); align-items: center; }
.hero-copy { max-width: 690px; }
.hero-emblem-picture {
  display: block;
  width: min(360px, 78%);
  aspect-ratio: 1200 / 630;
  margin-bottom: 22px;
  border: 1px solid rgba(36,216,255,.22);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,.38), 0 0 44px rgba(36,216,255,.09);
}
.hero-emblem { display: block; width: 100%; height: 100%; object-fit: cover; }
.kicker, .section-index { margin: 0; color: var(--cyan); font: 600 10px/1.35 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.kicker span { display: inline-block; margin-right: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.045em; }
h1 { max-width: 760px; margin: 18px 0 22px; font-size: clamp(38px, 4.7vw, 68px); line-height: 1.06; }
h2 { margin: 14px 0 16px; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; }
h3 { font-size: 20px; }
.hero-lead { max-width: 650px; color: #afc0c8; font-size: clamp(17px, 1.6vw, 20px); }
.signal-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: #8ea2ac; font-size: 12px; }
.signal-row span { display: inline-flex; align-items: center; gap: 8px; }
.signal-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.prompt-console {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(14,33,41,.96), rgba(5,13,17,.94));
  box-shadow: var(--shadow), 0 0 0 6px rgba(36,216,255,.025), inset 0 1px rgba(255,255,255,.04);
}
.prompt-console::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 42px;
  width: 3px;
  height: 92px;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}
.console-top, .console-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #6f8e9b; font: 600 8px/1 var(--display); letter-spacing: .12em; }
.console-top { padding: 3px 4px 16px; border-bottom: 1px solid var(--line); }
.console-status { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.console-status i { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan); }
.prompt-console form { padding: 24px 4px 20px; }
.prompt-console label, .telegram-box label { display: block; margin-bottom: 10px; color: var(--ice); font-weight: 700; }
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(146,217,238,.2);
  border-radius: 0;
  outline: none;
  background: rgba(0,6,9,.7);
  color: var(--text);
  padding: 16px;
  line-height: 1.55;
}
textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36,216,255,.1); }
textarea::placeholder { color: #58717c; }
.prompt-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 9px; color: #66818d; font-size: 10px; }
.prompt-meta span:first-child { max-width: 310px; }
.field-error, .diagnostic-error { min-height: 22px; margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.example-chips button { padding: 8px 10px; border: 1px solid var(--glass-edge); background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(36,216,255,.035)); color: #a7c4cf; cursor: pointer; font-size: 11px; backdrop-filter: blur(10px); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.example-chips button:hover { border-color: var(--line-strong); color: var(--ice); }
.button {
  position: relative;
  isolation: isolate;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid var(--glass-edge);
  overflow: hidden;
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(16px) saturate(145%);
  box-shadow: inset 0 1px var(--glass-highlight), inset 0 -1px rgba(1,12,16,.5), 0 14px 34px rgba(0,0,0,.22);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 34%, rgba(255,255,255,.22) 48%, transparent 62% 100%);
  transform: translateX(-125%);
  transition: transform .65s ease;
}
.button:hover { transform: translateY(-2px); }
.button:hover::before { transform: translateX(125%); }
.button:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.button-primary { background: linear-gradient(135deg, rgba(113,238,255,.92), rgba(22,160,207,.82)); color: #001015; box-shadow: inset 0 1px rgba(255,255,255,.68), 0 12px 34px rgba(36,216,255,.18); }
.button-primary:hover { background: linear-gradient(135deg, rgba(199,250,255,.96), rgba(36,216,255,.86)); box-shadow: inset 0 1px #fff, 0 16px 42px rgba(36,216,255,.24); }
.button-ghost { background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(36,216,255,.035)); color: var(--ice); }
.analyze-button { width: 100%; justify-content: space-between; }
.console-foot { padding: 14px 4px 2px; border-top: 1px solid var(--line); }

.result-section { padding: 0 0 clamp(56px, 7vw, 86px); }
.result-card {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1.3fr;
  gap: 34px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(36,216,255,.09), rgba(10,19,24,.98) 40%);
  box-shadow: var(--shadow);
}
.result-card h2 { margin-top: 10px; font-size: clamp(27px, 3.6vw, 46px); }
.result-card .result-summary { max-width: 760px; color: #aec1c9; font-size: 17px; }
.result-meta { display: grid; gap: 10px; align-content: start; }
.result-meta span { padding: 12px 14px; border-left: 2px solid var(--cyan); background: rgba(255,255,255,.025); color: #b5c9d1; font-size: 13px; }
.result-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 26px; }
.result-columns h3 { margin-bottom: 12px; color: var(--cyan); font: 600 10px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.result-columns ul { margin: 0; padding: 0; list-style: none; }
.result-columns li { position: relative; padding-left: 17px; color: #b1c4cb; font-size: 13px; }
.result-columns li + li { margin-top: 8px; }
.result-columns li::before { content: "↳"; position: absolute; left: 0; color: var(--cyan); }
.result-disclaimer { margin: 20px 0 0; color: #78909a; font-size: 11px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.roles { position: relative; background: #071014; border-block: 1px solid rgba(36,216,255,.08); }
.section-heading { max-width: 860px; }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 17px; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 42px; }
.role-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(17,36,44,.75), rgba(7,15,19,.9));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.role-card::after { content: ""; position: absolute; right: -36px; bottom: -42px; width: 120px; height: 120px; border: 1px solid rgba(36,216,255,.12); border-radius: 50%; }
.role-card:hover, .role-card.is-active { transform: translateY(-5px); border-color: var(--line-strong); background: linear-gradient(145deg, rgba(22,60,72,.9), rgba(7,15,19,.95)); }
.role-card.is-active { box-shadow: inset 0 3px var(--cyan), 0 18px 50px rgba(0,0,0,.25); }
.role-card-wide { grid-column: span 2; }
.role-number { color: #52707c; font: 600 9px/1 var(--display); letter-spacing: .12em; }
.role-icon { position: absolute; top: 18px; right: 20px; color: var(--cyan); font-size: 24px; }
.role-card strong { margin-top: auto; font: 600 17px/1.25 var(--display); letter-spacing: -.04em; }
.role-card > span:last-child { margin-top: 12px; color: #8ea4ae; font-size: 13px; }

.workflow { background: linear-gradient(180deg, #050a0d, #081116); }
.workflow-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.workflow-track { counter-reset: flow; position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.workflow-track::before { content: ""; position: absolute; left: 50%; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(var(--cyan), transparent); opacity: .3; }
.flow-node { position: relative; min-height: 144px; padding: 20px; border: 1px solid var(--line); background: rgba(10,21,26,.72); }
.flow-node b { color: var(--cyan); font: 600 9px/1 var(--display); letter-spacing: .1em; }
.flow-node strong { display: block; margin-top: 24px; font-family: var(--display); font-size: 14px; letter-spacing: -.035em; }
.flow-node span { display: block; margin-top: 8px; color: #758f99; font-size: 12px; }

.diagnostic { background: #e7f7fb; color: #041014; }
.diagnostic .section-index { color: #087fa1; }
.diagnostic .section-heading > p:last-of-type { color: #536b74; }
.diagnostic-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 7vw, 92px); align-items: start; }
.diagnostic-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.diagnostic-facts span { padding: 11px 13px; border: 1px solid rgba(4,16,20,.14); color: #536b74; font-size: 11px; }
.diagnostic-facts b { color: #067c9d; font: 600 14px/1 var(--display); }
.diagnostic-form { padding: clamp(24px, 4vw, 42px); background: #f9fdfe; border: 1px solid rgba(4,16,20,.16); box-shadow: 0 26px 70px rgba(10,46,56,.13); }
.diagnostic-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; margin-bottom: 30px; color: #4d6872; font: 600 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.diagnostic-progress i { display: block; height: 4px; background: #d4e8ed; }
.diagnostic-progress b { display: block; width: 33.333%; height: 100%; background: #08a9d2; transition: width .25s ease; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 22px; font: 600 clamp(20px, 2.4vw, 29px)/1.25 var(--display); letter-spacing: -.04em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label span { min-height: 48px; display: flex; align-items: center; padding: 12px 14px; border: 1px solid #cedfe4; background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(225,247,252,.78)); color: #36515b; font-size: 13px; box-shadow: inset 0 1px rgba(255,255,255,.9); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.choice-grid label:hover span { transform: translateY(-1px); border-color: #86cfe0; }
.choice-grid input:checked + span { border-color: #08a9d2; background: #def7fd; color: #041014; box-shadow: inset 4px 0 #08a9d2; }
.choice-grid input:focus-visible + span { outline: 3px solid #08a9d2; outline-offset: 2px; }
.diagnostic-error { color: #a53b25; }
.diagnostic-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.diagnostic .button-ghost { border-color: #a8c3cb; color: #16363f; }
.diagnostic-result { margin-top: 24px; padding: 22px; border: 1px solid #9ccfdb; background: #e8faff; }
.diagnostic-result h3 { margin: 8px 0 10px; }
.diagnostic-result p { color: #3e5962; }

.launch { position: relative; background: #071014; }
.launch-steps { margin: 42px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.launch-steps li { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.launch-steps b { color: var(--cyan); font: 600 11px/1 var(--display); letter-spacing: .12em; }
.launch-steps strong { font: 600 clamp(18px, 2vw, 25px)/1.2 var(--display); letter-spacing: -.04em; }
.launch-steps p { max-width: 680px; margin: 8px 0 0; color: var(--muted); }

.contact { padding-top: 24px; background: linear-gradient(180deg, #071014, #020507); }
.contact-panel { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(30px, 7vw, 90px); padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(9,37,47,.92), rgba(4,10,13,.96)); box-shadow: var(--shadow); }
.contact-panel h2 { max-width: 700px; }
.contact-panel > div > p:last-child { max-width: 640px; color: var(--muted); }
.telegram-box { padding: 20px; border: 1px solid var(--line); background: rgba(0,7,10,.45); }
.telegram-box textarea { min-height: 172px; font-size: 12px; }
.telegram-box p { margin: 8px 0 14px; color: #6f8b96; font-size: 10px; }
.telegram-box .button { width: 100%; }
.is-disabled { pointer-events: none; opacity: .42; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: var(--bg-deep); color: #607782; font-size: 11px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 18px; }
.noscript { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90; padding: 14px; background: #fff; color: #000; }
.noscript a { text-decoration: underline; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .workflow-layout, .diagnostic-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .prompt-console { max-width: 700px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .role-card-wide { grid-column: span 2; }
  .workflow .section-heading, .diagnostic .section-heading { max-width: 760px; }
  .workflow-track { grid-template-columns: repeat(3, 1fr); }
  .workflow-track::before { display: none; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 620px); }
  .section { padding: 52px 0; }
  .site-header { position: static; }
  .nav-row { min-height: 64px; }
  .nav-links { display: none; }
  .nav-action { padding: 9px 11px; font-size: 11px; }
  .wordmark { font-size: 11px; }
  .wordmark-mark { width: 34px; height: 34px; }
  .hero { padding: 38px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-emblem-picture { width: min(330px, 100%); margin-bottom: 18px; }
  h1 { font-size: clamp(34px, 11.2vw, 50px); }
  h2 { font-size: clamp(28px, 9vw, 42px); }
  .signal-row { margin-top: 22px; }
  .prompt-console { padding: 14px; }
  .prompt-console form { padding: 20px 2px 16px; }
  .prompt-meta { display: block; }
  #task-counter { display: block; margin-top: 5px; }
  .console-foot { font-size: 7px; }
  .result-card, .result-columns { grid-template-columns: 1fr; }
  .result-card { gap: 22px; }
  .role-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .role-card, .role-card-wide { grid-column: auto; min-height: 188px; }
  .workflow-track { grid-template-columns: 1fr; }
  .flow-node { min-height: 116px; }
  .choice-grid { grid-template-columns: 1fr; }
  .diagnostic-form { padding: 22px 16px; }
  .diagnostic-progress { grid-template-columns: 1fr; gap: 10px; }
  .launch-steps li { grid-template-columns: 52px 1fr; gap: 10px; }
  .contact { padding-top: 12px; }
  .contact-panel { padding: 24px 16px; }
  .telegram-box { padding: 14px; }
  .site-footer .shell { display: grid; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 22px, 398px); }
  .nav-row { gap: 10px; }
  .nav-action { padding-inline: 9px; }
  .wordmark { gap: 8px; }
  .wordmark-mark { width: 32px; height: 32px; }
  .hero { padding-top: 30px; }
  .hero-emblem-picture { width: 100%; }
  .signal-row { display: grid; gap: 8px; }
  .example-chips button { min-height: 42px; }
  .button { width: 100%; }
  .result-actions { display: grid; }
  .diagnostic-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .diagnostic-facts span { padding-inline: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav-action, .button, .example-chips button { backdrop-filter: none; }
  .nav-action, .button-ghost, .example-chips button { background: #10232b; }
}
