:root {
  --black: #151516;
  --panel: #1d1d1f;
  --panel-soft: #252527;
  --white: #f7f7f5;
  --paper: #ffffff;
  --ink: #171719;
  --muted: #8d8d92;
  --line: rgba(255, 255, 255, 0.12);
  --paper-line: #e7e7e9;
  --purple: #7655ff;
  --pink: #dc657d;
  --green: #63d79b;
  --radius: 30px;
  --radius-sm: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: MuseoSansCyrl, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 44vw;
  height: 54vw;
  border-radius: 50%;
  opacity: 0.52;
  filter: blur(92px);
  pointer-events: none;
}

.ambient-left {
  top: -25vw;
  left: -24vw;
  background: #d96478;
}

.ambient-right {
  top: -19vw;
  right: -24vw;
  background: #6550e9;
}

.topbar,
.footer {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.brand {
  padding: 0;
  border: 0;
  background: none;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.7px;
  cursor: pointer;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #bdbdc1;
  font-size: 14px;
}

.autosave {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.autosave[hidden] {
  display: none;
}

.autosave i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(99, 215, 155, 0.8);
}

.autosave.sending i {
  background: #f0c56d;
  box-shadow: 0 0 14px rgba(240, 197, 109, 0.8);
}

.autosave.error i {
  background: var(--pink);
  box-shadow: 0 0 14px rgba(220, 101, 125, 0.8);
}

#app {
  width: min(1220px, calc(100% - 40px));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
}

.hero {
  padding: 46px 0 42px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 22px;
  color: #aaaab0;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 20px auto 0;
  color: #d2d2d5;
  font-size: 19px;
  line-height: 1.45;
  text-wrap: balance;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 70px;
}

.catalog-hint {
  display: block;
  margin: 0 auto 16px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(29, 29, 31, 0.62);
  color: #c8c8cc;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.catalog-hint:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(38, 38, 41, 0.82);
}

.brief-card {
  min-height: 198px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 29, 31, 0.76);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(18px);
}

.brief-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(38, 38, 41, 0.92);
}

.brief-card-top,
.brief-card-bottom,
.form-head,
.form-actions,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tag {
  color: #a6a6ab;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-category {
  color: #b2b2b7;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.time {
  color: #98989d;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.brief-card-top {
  justify-content: space-between;
}

.brief-card h2 {
  max-width: 500px;
  margin: 30px 0 18px;
  font-size: clamp(26px, 3.2vw, 43px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.brief-card p {
  max-width: 520px;
  margin: 0;
  color: #a6a6ab;
  font-size: 16px;
  line-height: 1.45;
}

.arrow,
.round-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 21px;
}

.brief-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 34px 0 70px;
}

.brief-aside {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 29, 31, 0.84);
  backdrop-filter: blur(18px);
}

.back-link {
  display: inline-flex;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #bebec2;
  cursor: pointer;
}

.brief-aside h2 {
  margin: 56px 0 14px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.brief-aside p {
  margin: 0 0 32px;
  color: #96969b;
  line-height: 1.5;
}

.aside-time {
  display: inline-block;
  margin: -16px 0 30px;
  color: #bdbdc1;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #b9b9bd;
  font-size: 13px;
}

.progress {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #39393d;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: width 180ms ease;
}

.section-nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.section-nav button {
  padding: 11px 0;
  border: 0;
  background: none;
  color: #77777d;
  text-align: left;
  cursor: pointer;
}

.section-nav button.active,
.section-nav button:hover {
  color: var(--white);
}

.brief-form {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--paper-line);
}

.form-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.form-head p {
  max-width: 310px;
  margin: 0;
  color: #77777d;
  line-height: 1.45;
}

.form-section {
  padding: 42px 0 10px;
}

.section-title {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 30px;
}

.section-title span {
  color: #a0a0a5;
  font-size: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.fields {
  display: grid;
  gap: 23px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.optional-note {
  margin: -4px 0 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f3fb;
  color: #6f687d;
  font-size: 14px;
  line-height: 1.45;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 400;
}

.field small {
  display: block;
  margin: -4px 0 11px;
  color: #929298;
  line-height: 1.4;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #dedee1;
  border-radius: var(--radius-sm);
  outline: 0;
  background: #f8f8f8;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.field select {
  min-height: 56px;
  padding: 0 17px;
}

.field textarea {
  min-height: 116px;
  padding: 16px 17px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #8a70f0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(118, 85, 255, 0.12);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c76378;
  background: #fff8f9;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: block;
  padding: 11px 15px;
  border: 1px solid #dedee1;
  border-radius: 99px;
  color: #68686e;
  cursor: pointer;
  transition: all 160ms ease;
}

.choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.brief-recommendation {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dedee1;
  border-radius: 14px;
  color: #68686e;
  font-size: 14px;
  line-height: 1.45;
}

.brief-recommendation button {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.choice input:focus-visible + span,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(118, 85, 255, 0.45);
  outline-offset: 3px;
}

.required {
  color: #a4485d;
}

.form-actions {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--paper-line);
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 38px;
  padding: 18px;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  background: #f8f8f8;
  color: #57575c;
  font-size: 14px;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--purple);
}

.consent a {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink);
  font-weight: 500;
}

.policy-placeholder {
  display: block;
  margin-top: 4px;
  color: #8d8d92;
}

.form-note {
  max-width: 600px;
  margin: 15px 0 0;
  color: #929298;
  font-size: 13px;
  line-height: 1.45;
}

.form-error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #efc9d1;
  border-radius: 14px;
  background: #fff4f6;
  color: #8e3347;
  line-height: 1.45;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.button.secondary {
  border-color: #d6d6d9;
  background: transparent;
  color: var(--ink);
}

.result {
  padding: 34px 0 70px;
}

.result-card {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.result-head {
  margin-bottom: 34px;
}

.result-head h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.result-copy {
  max-width: 560px;
  margin: 20px 0 0;
  color: #77777d;
  font-size: 18px;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-section {
  padding: 28px 0;
  border-top: 1px solid var(--paper-line);
}

.summary-section h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 400;
}

.summary-item {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  gap: 20px;
  padding: 11px 0;
}

.summary-item dt {
  color: #85858a;
}

.summary-item dd {
  margin: 0;
  white-space: pre-wrap;
}

.empty {
  color: #aaaab0;
  font-style: italic;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: #7f7f84;
  font-size: 14px;
}

.footer a {
  color: #bcbcc0;
  text-decoration: none;
}

@media (max-width: 920px) {
  .catalog,
  .brief-shell {
    grid-template-columns: 1fr;
  }

  .brief-aside {
    position: static;
  }

  .section-nav {
    display: none;
  }

  .brief-aside h2 {
    margin-top: 34px;
  }

  .form-head {
    display: block;
  }

  .form-head p {
    margin-top: 15px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer,
  #app {
    width: min(100% - 24px, 1220px);
  }

  .hero {
    padding: 30px 0 34px;
  }

  .hero h1 {
    max-width: 470px;
    font-size: clamp(31px, 9.8vw, 39px);
    line-height: 1;
  }

  .hero-copy {
    max-width: 520px;
    margin-top: 18px;
    font-size: 17px;
  }

  .brief-card {
    min-height: 185px;
    padding: 22px;
  }

  .catalog-hint {
    width: 100%;
    margin-bottom: 12px;
    font-size: 13px;
  }

  .brief-card-top {
    align-items: flex-start;
  }

  .time {
    max-width: none;
    white-space: nowrap;
    text-align: right;
    font-size: 10px;
  }

  .brief-card h2 {
    margin: 24px 0 14px;
  }

  .single-choice .choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .single-choice .choice:last-child {
    grid-column: 1 / -1;
  }

  .single-choice .choice span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 11px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.35;
  }

  .brief-aside {
    padding: 22px;
  }

  .brief-aside h2 {
    margin-top: 28px;
  }

  .brief-aside p {
    margin-bottom: 24px;
  }

  .aside-time {
    margin-bottom: 24px;
  }

  .brief-form,
  .result-card {
    padding: 24px;
    border-radius: 24px;
  }

  .form-head h1 {
    font-size: 39px;
  }

  .section-title {
    grid-template-columns: 1fr;
  }

  .summary-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .form-actions,
  .result-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .button,
  .result-actions,
  .result-actions .button {
    width: 100%;
  }

  .topbar {
    min-height: 78px;
  }

  .brand {
    font-size: 28px;
  }

  .autosave {
    font-size: 11.5px;
    text-align: right;
  }
}
