:root {
  --ink: #f4f7fc;
  --muted: #9dacbf;
  --paper: #f3f6fa;
  --paper-2: #e9eef6;
  --navy: #08111f;
  --navy-2: #0d192a;
  --navy-3: #13233a;
  --line: rgba(176, 200, 232, 0.2);
  --line-dark: #c9d4e3;
  --blue: #2b70ff;
  --blue-hi: #69a8ff;
  --green: #1e9c70;
  --orange: #e68a28;
  --danger: #d84d5f;
  --font: "Golos Text", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 9%, rgba(43, 112, 255, 0.22), transparent 28rem),
    linear-gradient(160deg, #060c15 0%, var(--navy) 55%, #0a1628 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, label, input[type="checkbox"], input[type="radio"] { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app-shell { width: min(100%, 980px); min-height: 100vh; margin: 0 auto; padding: 0 24px; }
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; flex: none; }
.brand img { width: 145px; height: auto; }
.brand-divider { width: 1px; height: 24px; background: #64758c; }
.brand-event { font: 600 12px/1 var(--mono); letter-spacing: 0.09em; }
.source-pill {
  border: 1px solid rgba(105, 168, 255, 0.46);
  background: rgba(25, 65, 126, 0.38);
  color: #c8dcff;
  padding: 9px 12px;
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-wrap { position: sticky; top: 0; z-index: 20; padding: 14px 0 12px; background: rgba(8, 17, 31, 0.92); backdrop-filter: blur(14px); }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: #b7c7dc; font: 600 10px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.progress-track { height: 3px; overflow: hidden; background: rgba(164, 190, 226, 0.18); }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #7db6ff); transition: width 0.35s ease; }

#app { outline: none; }
.screen { min-height: calc(100vh - 164px); padding: 68px 0 76px; animation: enter 0.34s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--blue-hi); font: 600 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--blue-hi); box-shadow: 0 0 15px rgba(105, 168, 255, 0.9); }
.display-title { max-width: 850px; margin: 0 0 22px; font-size: clamp(48px, 8vw, 88px); line-height: 0.98; letter-spacing: -0.065em; font-weight: 700; }
.display-title span { color: var(--blue-hi); }
.lead { max-width: 680px; margin: 0 0 36px; color: #bdc9d9; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.55; }
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 0 0 38px; }
.intro-fact { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.intro-fact + .intro-fact { border-left: 1px solid var(--line); }
.intro-fact strong { color: #fff; font-size: 30px; line-height: 1; letter-spacing: -0.05em; }
.intro-fact span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  min-height: 58px;
  border: 1px solid transparent;
  padding: 15px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #4b86ff; }
.button-secondary { border-color: #7896be; background: transparent; color: #e6edf8; }
.button-secondary:hover { background: rgba(82, 130, 199, 0.14); }
.button-quiet { min-height: 45px; padding: 10px 0; color: #9eb6d9; background: transparent; border: 0; }
.button[disabled] { cursor: not-allowed; opacity: 0.45; transform: none; }
.button-arrow { font-size: 20px; font-weight: 400; }

.form-shell { max-width: 800px; margin: 0 auto; }
.form-heading { margin-bottom: 32px; }
.step-kicker { color: var(--blue-hi); font: 600 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.form-heading h1 { margin: 12px 0 10px; font-size: clamp(35px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.055em; }
.form-heading p { max-width: 650px; margin: 0; color: #aebbcf; font-size: 16px; line-height: 1.55; }
.form-panel { padding: clamp(22px, 4vw, 38px); color: #172234; background: var(--paper); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 650; }
.required { color: #2766d9; }
.input {
  width: 100%;
  min-height: 53px;
  border: 1px solid #b8c5d7;
  border-radius: 0;
  padding: 12px 14px;
  color: #152033;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 112, 255, 0.12); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: none; color: #b22f45; font-size: 12px; }
.field.has-error .field-error { display: block; }
.consent-box { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line-dark); }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; color: #344158; font-size: 13px; line-height: 1.5; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-ui { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #95a5ba; background: #fff; }
.check-ui::after { content: "✓"; opacity: 0; color: #fff; font-weight: 800; transform: scale(0.5); transition: 0.12s ease; }
.check-row input:checked + .check-ui { border-color: var(--blue); background: var(--blue); }
.check-row input:checked + .check-ui::after { opacity: 1; transform: scale(1); }
.check-row input:focus-visible + .check-ui { outline: 3px solid rgba(43, 112, 255, 0.22); outline-offset: 2px; }
.panel-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; }
.privacy-note { margin: 19px 0 0; color: #718096; font-size: 11px; line-height: 1.5; }

.contest-card { overflow: hidden; color: #142033; background: var(--paper); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.23); }
.contest-visual { min-height: 260px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; background: linear-gradient(135deg, #fff 0%, #edf3fb 100%); border-bottom: 1px solid #cad5e4; }
.logo-stage { min-height: 260px; padding: 34px; display: grid; place-items: center; position: relative; }
.logo-stage::after { content: "AI / IT"; position: absolute; left: 20px; bottom: 17px; color: #8c9ab0; font: 600 9px/1 var(--mono); letter-spacing: 0.09em; }
.contest-logo { width: min(100%, 390px); max-height: 125px; object-fit: contain; }
.contest-logo.logo-square { max-width: 150px; max-height: 150px; }
.contest-logo.logo-photo { max-width: 230px; max-height: 140px; }
.speaker-card { padding: 23px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-3); color: #fff; }
.speaker-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 2px solid rgba(105, 168, 255, 0.55); }
.speaker-card small { color: #87b6ff; font: 600 9px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.speaker-card strong { margin-top: 8px; font-size: 19px; line-height: 1.15; }
.speaker-card span { margin-top: 6px; color: #acbbce; font-size: 12px; line-height: 1.35; }
.contest-copy { padding: clamp(24px, 4vw, 38px); }
.contest-index { margin-bottom: 11px; color: #64748a; font: 600 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.contest-copy h1 { margin: 0 0 14px; font-size: clamp(31px, 5vw, 51px); line-height: 1.05; letter-spacing: -0.055em; }
.contest-description { max-width: 700px; margin: 0 0 30px; color: #536176; font-size: 15px; line-height: 1.55; }
.question-block { padding-top: 24px; border-top: 1px solid #c9d4e2; }
.question-block + .question-block { margin-top: 25px; }
.question-title { margin: 0 0 14px; font-size: 17px; line-height: 1.4; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-ui { min-height: 72px; height: 100%; padding: 12px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid #b9c6d6; color: #445168; background: #fff; font-size: 13px; line-height: 1.35; transition: 0.15s ease; }
.choice input:checked + .choice-ui { border-color: var(--blue); color: #1453c4; background: #e8f0ff; box-shadow: inset 0 0 0 1px var(--blue); font-weight: 650; }
.choice input:focus-visible + .choice-ui { outline: 3px solid rgba(43, 112, 255, 0.2); outline-offset: 2px; }
.rating-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-ui { min-height: 58px; font-size: 22px; font-weight: 750; }
.rating-legend { display: flex; justify-content: space-between; gap: 20px; margin-top: 9px; color: #718096; font-size: 11px; }
.inline-error { display: none; margin: 11px 0 0; color: #b22f45; font-size: 12px; }
.question-block.has-error .inline-error { display: block; }

.favorite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.favorite-card { position: relative; cursor: pointer; }
.favorite-card input { position: absolute; opacity: 0; }
.favorite-ui { min-height: 138px; padding: 16px 13px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #bdc9d8; background: #fff; text-align: center; transition: 0.15s ease; }
.favorite-ui img { width: 100%; height: 58px; object-fit: contain; }
.favorite-ui span { color: #344158; font-size: 12px; font-weight: 650; line-height: 1.3; }
.favorite-card input:checked + .favorite-ui { border-color: var(--blue); background: #eaf1ff; box-shadow: inset 0 0 0 1px var(--blue); }
.favorite-card input:focus-visible + .favorite-ui { outline: 3px solid rgba(43, 112, 255, 0.2); outline-offset: 2px; }

.lead-list { display: grid; gap: 10px; margin: 24px 0; }
.lead-choice { position: relative; cursor: pointer; }
.lead-choice input { position: absolute; opacity: 0; }
.lead-ui { min-height: 64px; padding: 10px 14px; display: grid; grid-template-columns: 48px 1fr 23px; gap: 13px; align-items: center; border: 1px solid #bac7d7; background: #fff; }
.lead-ui img { width: 48px; height: 40px; object-fit: contain; }
.lead-ui strong { font-size: 14px; }
.lead-check { width: 22px; height: 22px; border: 1px solid #96a7bc; display: grid; place-items: center; }
.lead-check::after { content: "✓"; opacity: 0; color: #fff; font-weight: 800; }
.lead-choice input:checked + .lead-ui { border-color: var(--green); background: #eaf7f2; }
.lead-choice input:checked + .lead-ui .lead-check { border-color: var(--green); background: var(--green); }
.lead-choice input:checked + .lead-ui .lead-check::after { opacity: 1; }
.optional-badge { display: inline-block; margin-left: 6px; color: #607089; font: 600 9px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }

.review-list { display: grid; gap: 8px; margin: 22px 0 0; }
.review-row { padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid #c8d3e1; }
.review-row strong { font-size: 13px; }
.review-row span { color: #5d6a80; font: 600 10px/1.35 var(--mono); text-align: right; }
.submission-note { margin: 22px 0 0; padding: 15px; border-left: 3px solid var(--blue); color: #536176; background: #e7eef9; font-size: 12px; line-height: 1.5; }

.success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(108, 173, 255, 0.55); color: #fff; background: var(--blue); font-size: 32px; }
.success-card { max-width: 760px; }
.success-card .display-title { font-size: clamp(45px, 7vw, 78px); }
.success-box { margin: 34px 0; padding: 22px; border: 1px solid var(--line); background: rgba(18, 39, 68, 0.64); }
.success-box strong { display: block; margin-bottom: 8px; }
.success-box p { margin: 0; color: #aebed1; line-height: 1.55; }

.site-footer { min-height: 80px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #73849a; font: 500 10px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { color: #a9c8f5; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .app-shell { padding: 0 16px; }
  .site-header { min-height: 72px; }
  .brand { gap: 13px; }
  .brand img { width: 122px; }
  .brand-divider { height: 20px; }
  .brand-event { font-size: 10px; }
  .source-pill { max-width: 125px; padding: 7px 8px; text-align: center; font-size: 8px; }
  .screen { min-height: calc(100vh - 145px); padding: 46px 0 60px; }
  .display-title { font-size: clamp(44px, 13vw, 68px); letter-spacing: -0.055em; }
  .intro-facts { grid-template-columns: 1fr; }
  .intro-fact { min-height: 78px; display: grid; grid-template-columns: 80px 1fr; align-items: center; }
  .intro-fact + .intro-fact { border-left: 0; border-top: 1px solid var(--line); }
  .intro-fact strong { font-size: 25px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .panel-actions { align-items: stretch; flex-direction: column-reverse; }
  .panel-actions .button { width: 100%; }
  .button-quiet { justify-content: center; }
  .contest-visual { min-height: 0; grid-template-columns: 1fr; }
  .logo-stage { min-height: 178px; padding: 26px 28px; }
  .contest-logo { max-height: 95px; }
  .contest-logo.logo-square { max-width: 110px; max-height: 110px; }
  .speaker-card { padding: 14px 17px; display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto auto; column-gap: 13px; justify-content: start; }
  .speaker-photo { width: 58px; height: 58px; margin: 0; grid-row: 1 / 4; }
  .speaker-card small { align-self: end; }
  .speaker-card strong { margin-top: 3px; font-size: 16px; }
  .speaker-card span { margin-top: 2px; font-size: 11px; }
  .option-grid { grid-template-columns: 1fr; }
  .choice-ui { min-height: 56px; justify-content: flex-start; text-align: left; }
  .rating-grid { gap: 6px; }
  .rating-ui { min-height: 52px; justify-content: center; font-size: 19px; }
  .favorite-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .favorite-ui { min-height: 124px; padding: 12px 9px; }
  .favorite-ui img { height: 52px; }
  .review-row { grid-template-columns: 1fr; gap: 6px; }
  .review-row span { text-align: left; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .brand-event, .brand-divider { display: none; }
  .source-pill { max-width: 112px; }
  .form-panel, .contest-copy { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
