:root {
  --naruke-bg: #fcfcfc;
  --naruke-surface: rgba(255, 255, 255, 0.92);
  --naruke-text: #111111;
  --naruke-muted: #727272;
  --naruke-line: #ececec;
  --naruke-soft: #f7f7f7;
  --naruke-accent: #ff9412;
  --naruke-accent-soft: rgba(255, 148, 18, 0.14);
  --naruke-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  --naruke-radius-xl: 28px;
  --naruke-radius-lg: 22px;
  --naruke-radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--naruke-text);
  /* background:
    radial-gradient(circle at top left, rgba(255, 148, 18, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 148, 18, 0.06), transparent 24%),
    var(--naruke-bg); */
}

body a {
  color: inherit;
  text-decoration: none;
}

.signup-brand {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 56px 16px 24px;
}

.signup-brand__link {
  display: inline-block;
}

.signup-brand h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ff9412;
}

.quick-signup {
  padding: 0 16px 56px;
}

.quick-signup__card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  padding-top: 0;
  padding-bottom: 0;
  /* border: 1px solid rgba(0, 0, 0, 0.04); */
  /* border-radius: var(--naruke-radius-xl); */
  /* background: var(--naruke-surface); */
  /* box-shadow: var(--naruke-shadow); */
  /* backdrop-filter: blur(16px); */
}

.quick-signup__top {
  margin-bottom: 24px;
}

.quick-signup__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--naruke-accent-soft);
  color: var(--naruke-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-signup__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 600;
}

.quick-signup__subtitle {
  margin: 0;
  color: var(--naruke-muted);
  font-size: 15px;
  line-height: 1.55;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.step-indicator__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8d8d8;
  transition: 0.25s ease;
}

.step-indicator__dot.is-active {
  background: var(--naruke-accent);
  transform: scale(1.15);
}

.step-indicator__dot.is-done {
  background: #2bb673;
}

.step-indicator__line {
  flex: 1;
  height: 2px;
  background: #e8e8e8;
}

.signup-alert {
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 14px;
  line-height: 1.45;
}

.signup-alert.is-error {
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
  border: 1px solid rgba(220, 53, 69, 0.12);
}

.signup-alert.is-success {
  background: rgba(43, 182, 115, 0.11);
  color: #147a48;
  border: 1px solid rgba(43, 182, 115, 0.15);
}

.signup-step {
  display: none;
}

.signup-step.is-active {
  display: block;
}

.signup-step__title {
  /* margin: 0 0 18px; */
  font-size: 20px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-group--check {
  margin-top: 6px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--naruke-line);
  border-radius: 50px;
  background: #fff;
  font: inherit;
  color: var(--naruke-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-input::placeholder {
  color: #b0b0b0;
}

.form-input:focus {
  outline: none;
  border-color: var(--naruke-accent);
  box-shadow: 0 0 0 4px rgba(255, 148, 18, 0.12);
}

.form-input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.09);
}

.form-input--center {
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 24px;
  font-weight: 700;
}

.gender-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gender-option {
  min-height: 116px;
  padding: 14px 10px;
  border: 1px solid var(--naruke-line);
  border-radius: 22px;
  background: #fff;
  color: var(--naruke-text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gender-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 148, 18, 0.5);
}

.gender-option.is-selected {
  border-color: var(--naruke-accent);
  /* background: linear-gradient(180deg, rgba(255,148,18,0.14) 0%, rgba(255,148,18,0.04) 100%); */
  box-shadow: 0 10px 24px rgba(255, 148, 18, 0.12);
  color: #ff9412;
}

.gender-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  /* background: var(--naruke-soft); */
}

.gender-option__icon svg {
  width: 32px;
  height: 32px;
}

.gender-option__text {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--naruke-muted);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--naruke-accent);
}

.step-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

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

.button--primary {
  background: var(--naruke-accent);
    background: #fff;
  color: var(--naruke-accent);
  border: 2px solid var(--naruke-accent);
  /* box-shadow: 0 12px 30px rgba(255, 148, 18, 0.22); */
}

.button--primary:hover {
  transition: .2s;
  color: #fff;
  background: var(--naruke-accent);
}

.step-back-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--naruke-line);
  border-radius: 50%;
  background: #fff;
  color: var(--naruke-text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-back:hover {
  border-color: var(--naruke-accent);
  transform: translateX(-1px);
}

.step-back svg {
  width: 18px;
  height: 18px;
}

.helper-note,
.code-note,
.verify-tools,
.auth-link,
.link-btn {
  font-size: 14px;
}

.helper-note,
.code-note {
  color: var(--naruke-muted);
  line-height: 1.5;
}

.verify-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.verify-tools__timer {
  color: var(--naruke-muted);
}

.link-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--naruke-accent);
  font-weight: 700;
  cursor: pointer;
}

.link-btn:disabled {
  color: #b5b5b5;
  cursor: not-allowed;
}

.auth-link {
  margin-top: 28px;
  text-align: center;
  color: var(--naruke-muted);
}

.auth-link a {
  color: var(--naruke-accent);
  font-weight: 700;
}
.signup-topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 52px;
}

.lang-switcher-btn {
  position: absolute;
  top: 0;
  right: 2rem;
  min-width: 74px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--naruke-line);
  border-radius: 999px;
  background: #fff;
  color: var(--naruke-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher-btn:hover {
  border-color: var(--naruke-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 148, 18, 0.12);
}

.lang-switcher-btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-modal[hidden] {
  display: none;
}

.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lang-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(2px);
}

.lang-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  margin: 96px auto 0;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.lang-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.lang-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.lang-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--naruke-line);
  border-radius: 50%;
  background: #fff;
  color: var(--naruke-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-modal__close:hover {
  border-color: var(--naruke-accent);
  color: var(--naruke-accent);
}

.lang-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lang-chip {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--naruke-line);
  border-radius: 18px;
  background: #fff;
  color: var(--naruke-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 148, 18, 0.5);
}

.lang-chip.is-active {
  border-color: var(--naruke-accent);
  color: var(--naruke-accent);
  box-shadow: 0 10px 24px rgba(255, 148, 18, 0.12);
}

.lang-chip__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.terms-link {
  color: var(--naruke-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  html,
  body {
    padding-inline: 0.5rem;
    min-height: 100dvh;
    overflow: hidden;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(255, 148, 18, 0.06), transparent 22%),
      radial-gradient(circle at bottom right, rgba(255, 148, 18, 0.05), transparent 20%),
      var(--naruke-bg);
  }

  .signup-brand {
    padding: 14px 12px 8px;
  }

  .signup-topbar {
    min-height: 40px;
    align-items: center;
  }

  .signup-brand h1 {
    font-size: 24px;
    line-height: 1;
  }

  .lang-switcher-btn {
    right: 0;
    top: 0;
    min-width: 58px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .quick-signup {
    padding: 0 12px 12px;
  }

  .quick-signup__card {
    max-width: 100%;
    padding: 8px 0 0;
  }

  .quick-signup__title {
    margin: 10px 0 4px;
    font-size: 18px;
    line-height: 1.08;
    text-align: center;
  }

  .step-indicator {
    gap: 8px;
    margin-bottom: 14px;
  }

  .step-indicator__dot {
    width: 11px;
    height: 11px;
  }

  .step-indicator__line {
    height: 2px;
  }

  .signup-alert {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  .signup-step__title {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.2;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group--check {
    margin-top: 2px;
  }

  .form-label {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
  }

  .form-input {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 18px;
  }

  .form-input--center {
    font-size: 18px;
    letter-spacing: 0.22em;
  }

  /* Главное изменение: кнопки пола компактные и квадратные */
  .gender-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .gender-option {
    min-height: 84px;
    padding: 8px 6px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .gender-option__icon {
    width: 26px;
    height: 26px;
    margin: 0;
  }

  .gender-option__icon svg {
    width: 22px;
    height: 22px;
  }

  .gender-option__text {
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    word-break: break-word;
  }

  .check-row {
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.25;
  }

  .check-row input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    flex: 0 0 auto;
  }

  .terms-link {
    text-underline-offset: 2px;
  }

  .step-back-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .step-back {
    width: 32px;
    height: 32px;
  }

  .step-back svg {
    width: 14px;
    height: 14px;
  }

  .helper-note,
  .code-note,
  .verify-tools,
  .auth-link,
  .link-btn {
    font-size: 11px;
    line-height: 1.3;
  }

  .helper-note,
  .code-note {
    margin-top: 2px;
  }

  .verify-tools {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .verify-tools__timer {
    text-align: right;
  }

  .step-actions {
    margin-top: 12px;
  }

  .button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 999px;
  }

  .auth-link {
    margin-top: 12px;
    font-size: 11px;
  }

  .lang-modal__dialog {
    width: min(94vw, 360px);
    margin-top: 52px;
    padding: 14px;
    border-radius: 18px;
  }

  .lang-modal__head {
    margin-bottom: 12px;
  }

  .lang-modal__title {
    font-size: 16px;
  }

  .lang-modal__close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .lang-modal__grid {
    gap: 8px;
  }

  .lang-chip {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 12px;
  }
  .button--primary{
    max-width: 60vw;
  }
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-indicator__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d9d9; /* будущие шаги */
  flex-shrink: 0;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.step-indicator__line {
  width: 72px;
  height: 2px;
  background: #d9d9d9; /* будущие линии */
  transition: background-color 0.25s ease;
}

/* текущий шаг */
.step-indicator__dot.is-active {
  background: #ff8a00;
}

/* уже пройденный шаг */
.step-indicator__dot.is-done {
  background: #ff8a00;
}

/* линия после пройденного шага */
.step-indicator__line.is-done {
  background: #ffcc33;
}

/* если хочешь чуть ярче желтый, можешь заменить на #ffd54a */