:root {
  --orange: #f58220;
  --orange-hover: #e57414;
  --orange-soft: #fff4ea;
  --orange-border: #f58220;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e6e6e6;
  --track: #ebebeb;
  --white: #ffffff;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 12px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-title: Onest, Inter, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Layout ========== */
.layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 47%) 1fr;
  padding: 16px;
  min-height: 100vh;
}

/* ========== Left hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: 26px;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(20, 12, 8, 0.25) 0%,
      rgba(20, 12, 8, 0.15) 40%,
      rgba(20, 12, 8, 0.45) 100%);
}

.hero__top,
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero__logo {
  display: inline-flex;
  line-height: 0;
}

.hero__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.hero__home {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.hero__home:hover {
  text-decoration: underline;
}

.hero__content {
  max-width: 460px;
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.hero__text {
  margin: 0 0 115px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 420px;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero__dot.is-active {
  width: 28px;
  background: var(--orange);
}

.hero__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.hero__note-strong {
  color: rgba(255, 255, 255, 0.80);
  font-weight: 600;
}

/* ========== Right panel ========== */
.panel {
  display: flex;
  flex-direction: column;
  padding: 24px 32px 24px 48px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.progress {
  margin-bottom: 36px;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.progress__track {
  height: 4px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.wizard {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step {
  overflow: hidden;
  overflow-y: auto;
  max-height: 82vh;
  padding: 0 20px;
}

.step::-webkit-scrollbar {
  width: 6px;
}

.step::-webkit-scrollbar-track {
  background: transparent;
}

.step::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

.step[hidden] {
  display: none !important;
}

.step__title {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step__subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.step__form {
  display: grid;
  gap: 32px;
}

.step__actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.step__or {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ========== Options (step 1) ========== */
.options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border: 1px solid #D5D5D5;
  border-radius: 22px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.option:hover {
  border-color: var(--orange-border);
  box-shadow: 0 8px 24px 0 rgba(226, 107, 27, 0.55);
}

.option:hover .option__icon {
  background: linear-gradient(180deg, #FF9D36 0%, #E8721C 100%);
}

.option:hover .option__icon path {
  stroke: #FFFFFF;
}

.option:hover .option__icon img {
  filter: brightness(0) invert(1);
}

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

/* Место под иконку — вставьте свою SVG/IMG внутрь */
.option__icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #F1F1F1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.option__icon path {
  stroke: #5C5C5C;
}

.option__icon img,
.option__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.option__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.option__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.option__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

.option:has(input:checked) {
  border-color: var(--orange-border);
  background: #FFF8ED;
  box-shadow: 0 0 0 1px var(--orange-border);
}

.option:has(input:checked) .option__icon {
  background: linear-gradient(180deg, #FF9D36 0%, #E8721C 100%);
}

.option:has(input:checked) .option__icon path {
  stroke: #FFFFFF;
}

/* ========== Fields ========== */
.field {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.req {
  color: #e53935;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D5D5D5;
  border-radius: 22px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #9ca3af;
}

.input:focus {
  border-color: #F58220;
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.18);
}

.input--textarea {
  resize: none;
  min-height: 110px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ========== Chips ========== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips--budget {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.chips--single {
  display: block;
}

.chips--roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips--roles .chip {
  width: auto;
  flex: 1 1 calc(33.333% - 8px);
  min-width: 140px;
}

.chips--roles .chip span {
  white-space: nowrap;
}

.chip {
  position: relative;
  display: inline-flex;
  width: 100%;
}

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

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #5C5C5C;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  border-radius: 9999px;
  border: 1px solid #D5D5D5;
  background: #F1F1F1;
}

.chip span:hover {
  background: #D5D5D5;
}

.chip input:checked+span {
  border-color: #F58220;
  color: #F58220;
  background: #FFF8ED;
}

.chip--center {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 4px);
}

.note {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* ========== Upload ========== */
.upload-box {
  position: relative;
  border: 2px dashed #D5D5D5;
  border-radius: 22px;
  background: var(--white);
  text-align: center;
  padding: 28px 16px;
  display: grid;
  gap: 6px;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-box:hover {
  border-radius: 22px;
  border: 2px dashed #F58220;
  background: #FFF8ED;
}

.upload-box.is-dragover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.upload-box__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box__icon {
  color: var(--orange);
  margin-bottom: 4px;
  line-height: 0;
}

.upload-box__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.upload-box__hint {
  font-size: 13px;
  color: var(--muted);
}

.upload-box__name {
  margin-top: 6px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.step__nav .btn--link {
  color: var(--muted);
  padding: 4px 0;
}

/* ========== Consent ========== */
.consent {
  cursor: pointer;
  position: relative;
}

.consent__input {
    position: absolute;
    z-index: -1;
    visibility: hidden;
    opacity: 0;
  margin-top: 1px;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.consent .consent__text:before {
    position: absolute;
    content: '';
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #D5D5D5;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.consent .consent__input:checked + .consent__text:before {
    background-color: #F58220;
    border: 2px solid #F58220;
    background: #F58220 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M11.6668 3.5L5.25016 9.91667L2.3335 7' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.consent__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 25px;
}

.consent__link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__link:hover {
  color: var(--orange-hover);
}

.step__nav--center {
  justify-content: center;
}

.btn--primary {
  background: linear-gradient(180deg, #FF9D36 0%, #E8721C 100%);
  color: var(--white);
  padding: 16px 20px;
  font-size: 16px;
  border: none;
}

.btn--primary:hover {
  background: linear-gradient(180deg, #E8721C 0%, #FF9D36 100%);
  /* box-shadow: 0 8px 24px 0 rgba(226, 107, 27, 0.55); */
}

.btn--primary:active {
  background: linear-gradient(180deg, #E8721C 0%, #FF9D36 100%);
}

.btn--telegram {
  display: block;
  width: 100%;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, #4db8f5 0%, #2a9fe0 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

.btn--telegram:hover {
  filter: brightness(0.97);
}

/* ========== Step 4 ========== */
.step4 {
  text-align: center;
  padding: 12px 0 4px;
  max-width: 520px;
  margin: 0 auto;
}

.step4__check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(245, 130, 32, 0.35);
}

.step4__title {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step4__text {
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

.step4__card {
  padding: 16px;
  background: #FFEB94;
  text-align: left;
  max-width: 384px;
  margin: 0 auto 35px;
  transform: rotate(-1.2deg);
  border-radius: 18px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10);
}

.step4__card-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #421808;
  line-height: 1.65;
}

.step4__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step4__sign {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 16px;
  color: #2f2f2f;
  line-height: 1;
}

.step4__tg-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #49BFFD 0%, #058FD0 100%);
}

.step4__link {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  text-decoration: none;
  color: #797979;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

.step4__link:hover {
  color: #F58220;
}

/* ========== Buttons ========== */
.btn {
  appearance: none;
  border: none;
  font: inherit;
  cursor: pointer;
  border-radius: 22px;
  font-weight: 600;
}

.btn--block {
  width: 100%;
}

.btn--link {
  background: transparent;
  color: var(--text);
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn--link:hover {
  color: #F58220;
}

.form-error {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 0;
    position: relative;
  }

  .step {
    overflow: visible;
    max-height: 100%;
    padding: 0;
  }

  .step__nav {
    justify-content: center;
  }

  .hero {
    height: 170px;
    padding: 20px;
    border-radius: 0;
  }

  .hero__top {
    justify-content: center;
  }

  .hero__content {
    display: none;
  }

  .hero__home {
    display: none;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__text {
    margin-bottom: 40px;
  }

  .hero__dots {
    margin-bottom: 12px;
  }

  .panel {
    padding: 32px 16px;
    max-width: none;
  }

  .progress {
    position: absolute;
    z-index: 1;
    top: 94px;
    left: 20px;
    right: 20px;
  }

  .progress__meta {
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 135%;
  }
}

@media (max-width: 520px) {

  .grid-2,
  .chips--budget {
    grid-template-columns: 1fr;
  }

  .chips--roles .chip {
    flex: 1 1 100%;
  }

  .option {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .option__icon {
    width: 40px;
    height: 40px;
  }
}