/* ============================================================
   MOBILE — Figma «для вени», нижний ряд, артборд 402
   Главная 1:380 (402×874) · анкеты 1:413 (1206) / 1:491 (990) / 1:547 (874)
   ============================================================ */

.mobile {
  display: none;
  width: 100%;
  background: #000;
}

.m-scale-wrap {
  --scale: 1;
  --frame-h: 874;
  width: 100%;
  height: calc(var(--frame-h) * 1px * var(--scale));
  overflow: hidden;
}

.m-frame {
  position: relative;
  width: 402px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  background: #000;
  transform: scale(var(--scale));
  transform-origin: top left;
  animation: fade-in 0.45s ease both;
}

.m-frame--home {
  min-height: 874px;
}

/* PrismBackground 1:381 — фиксированный слой 402×874 сверху */
.m-deco {
  position: absolute;
  left: 0;
  top: 0;
  width: 402px;
  height: 874px;
  overflow: hidden;
  pointer-events: none;
}

.m-deco > div {
  position: absolute;
}

.m-deco img {
  position: absolute;
  display: block;
  max-width: none;
}

.m-deco__glow--teal {
  left: 180px;
  top: 130px;
  width: 300px;
  height: 300px;
}
.m-deco__glow--teal img {
  inset: -36.67%;
}

.m-deco__glow--lavender {
  left: -100px;
  top: 360px;
  width: 280px;
  height: 280px;
}
.m-deco__glow--lavender img {
  inset: -41.07%;
}

.m-deco__orbit--outer {
  left: 200px;
  top: 300px;
  width: 320px;
  height: 320px;
  animation: float-y 8s ease-in-out infinite;
}
.m-deco__orbit--outer img {
  inset: -3.13%;
}

.m-deco__orbit--inner {
  left: 240px;
  top: 340px;
  width: 240px;
  height: 240px;
  animation: float-y 8s ease-in-out infinite;
  animation-delay: -1.5s;
}
.m-deco__orbit--inner img {
  inset: -4.17%;
}

.m-deco__star {
  left: 210px;
  top: 280px;
  width: 180px;
  height: 180px;
  animation: star-pulse 8s ease-in-out infinite;
}
.m-deco__star img {
  inset: -8.33%;
}

.m-deco__spark--1 {
  left: 280px;
  top: 260px;
  width: 8px;
  height: 8px;
}
.m-deco__spark--1 img {
  inset: -75%;
}

.m-deco__spark--2 {
  left: 200px;
  top: 430px;
  width: 6px;
  height: 6px;
}
.m-deco__spark--2 img {
  inset: -100%;
}

/* ---------- Общая шапка ---------- */

.m-header {
  position: relative;
  z-index: 60;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}

.m-brand {
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  color: var(--cream);
}

.m-menu-btn {
  padding: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: var(--cream);
}

.m-menu {
  position: absolute;
  top: 64px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid rgba(9, 217, 193, 0.35);
  border-radius: 16px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 22px rgba(9, 217, 193, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.m-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.m-menu button,
.m-menu a {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cream);
}

.m-line {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* ---------- Главная 1:380 ---------- */

.m-safe {
  position: relative;
  z-index: 2;
  flex: 1 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 48px 24px 24px;
}

.m-hero__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  color: var(--teal);
  white-space: pre;
}

.m-hero__title {
  margin: 0;
  width: 100%;
  font-size: 50px;
  font-weight: 700;
  line-height: 48px;
  color: var(--cream);
  text-shadow: 0 4px 16px #09d9c1;
}

.m-hero__desc {
  margin: 0;
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  color: rgba(250, 248, 242, 0.6);
}

.m-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
}

.m-application-action {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.m-deadline {
  margin: 0;
  color: rgba(250, 248, 242, 0.48);
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

.m-deadline.is-closed {
  color: rgba(250, 248, 242, 0.34);
}

.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 28px;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  color: var(--cream);
}

.m-btn--primary {
  background: linear-gradient(90deg, #09d9c1, #05a091);
  border: 1px solid rgba(250, 248, 242, 0.14);
  filter: drop-shadow(0 8px 13px #09d9c1);
}

.m-btn--ghost {
  background: rgba(0, 0, 0, 0.51);
  border: 1px solid rgba(9, 217, 193, 0.58);
  backdrop-filter: blur(9px);
  box-shadow: 0 8px 22px rgba(80, 10, 31, 0.45);
}

.m-scroll {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: var(--teal);
  white-space: pre;
}

.m-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 16px;
}

.m-support__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-support__row img {
  width: 18px;
  height: 18px;
  display: block;
}

.m-support__row span {
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  color: var(--teal-soft);
  white-space: nowrap;
}

.m-support__url {
  font-size: 9px;
  font-weight: 400;
  line-height: 11px;
  color: var(--teal-soft);
  white-space: nowrap;
}

/* ---------- Анкеты 1:413 / 1:491 / 1:547 ---------- */

.mf-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 24px 40px;
}

.mf-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.mf-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--cream);
  text-shadow: 0 4px 16px #09d9c1;
  white-space: nowrap;
}

.mf-sub {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--muted);
}

.mf-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 0;
}

.mf-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mf-step__line {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.mf-step__dot {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--step-border);
  font-size: 10px;
  font-weight: 700;
  line-height: normal;
  color: var(--cream);
}

.mf-step__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 13px;
  color: var(--teal);
  white-space: nowrap;
}

.mf-step.is-active .mf-step__dot {
  background: var(--teal);
  border-color: transparent;
  color: var(--ink);
}

.mf-step.is-done .mf-step__dot {
  background: rgba(9, 217, 193, 0.24);
  border-color: transparent;
  color: var(--cream);
}

.mf-fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.mf-fields--questions {
  gap: 44px;
}

.mf-fields--questions .question-group__title {
  font-size: 15px;
  line-height: 20px;
}

.mf-fields--questions .question-group__fields {
  gap: 22px;
  margin-top: 20px;
}

.mf-fields--questions .question-field {
  gap: 8px;
}

.mf-fields--questions .question-field__label {
  font-size: 12px;
  line-height: 17px;
}

.mf-fields--questions .mf-input--question {
  height: 120px;
  min-height: 120px;
  align-items: flex-start;
  padding: 16px;
}

.mf-input--question textarea {
  height: 100%;
  color: var(--cream);
  font-size: 14px;
  line-height: 20px;
}

.mf-input--question textarea::placeholder {
  color: var(--muted);
}

.mf-input--upload {
  height: 56px;
}

.mf-input--upload .upload-control__button {
  font-size: 11px;
}

.mf-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

/* В Figma строка подписи 13px; браузерный `normal` для Montserrat даёт 14
   и уводит всю колонку полей вниз, поэтому высота строки задана явно. */
.mf-field__label {
  margin: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 13px;
  color: var(--cream);
  text-transform: uppercase;
}

.mf-input {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mf-input input,
.mf-input select {
  flex: 1 0 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--cream);
  text-overflow: ellipsis;
}

.mf-input input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.mf-input img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
}

.mf-input:focus-within,
.mf-input.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 16px #09d9c1;
}

.mf-input:has(input:user-invalid),
.mf-input:has(select:user-invalid) {
  border-color: #ff6f7d;
  box-shadow: 0 0 14px rgba(255, 74, 94, 0.2);
}

.mf-input--area {
  height: 80px;
  align-items: flex-start;
  padding: 16px;
}

.mf-input--tall {
  height: 200px;
}

.mf-input--area textarea {
  flex: 1 0 0;
  height: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--cream);
}

.mf-input--area textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.mf-action {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 16px;
}

.mf-next {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(90deg, #09d9c1, #05a091);
  border: 1px solid rgba(250, 248, 242, 0.14);
  filter: drop-shadow(0 8px 13px #09d9c1);
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  color: var(--cream);
}

.mf-next:disabled {
  cursor: wait;
  opacity: 0.7;
}

.consent-section--mobile {
  margin-top: 4px;
}

.consent-card--mobile {
  padding: 14px;
}

.consent-card--mobile .consent-card__text {
  font-size: 11px;
  line-height: 16px;
}

.legal-content--mobile {
  width: 100%;
  padding: 32px 24px 64px;
}

.legal-content--mobile .page-back {
  position: static;
  margin-bottom: 34px;
}

.legal-content--mobile .legal-eyebrow {
  font-size: 10px;
}

.legal-content--mobile .legal-title {
  font-size: 30px;
  line-height: 34px;
}

.legal-content--mobile .legal-body {
  font-size: 12px;
  line-height: 19px;
}

/* ---------- Выбор структуры организатора ---------- */

.mr-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex: 1 0 0;
  flex-direction: column;
  padding: 32px 24px 40px;
}

.mr-eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0.07em;
}

.mr-title {
  margin: 0;
  color: var(--cream);
  font-size: 31px;
  font-weight: 700;
  line-height: 34px;
  text-shadow: 0 4px 16px rgba(9, 217, 193, 0.5);
}

.mr-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.mr-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.mr-role-card {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: start;
  padding: 18px 48px 18px 18px;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.mr-role-card.is-selected {
  border-color: var(--teal);
  background: linear-gradient(145deg, rgba(9, 217, 193, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 20px rgba(9, 217, 193, 0.18);
}

.mr-role-card__number {
  grid-row: 1 / 3;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}

.mr-role-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.mr-role-card__desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.mr-role-card__mark {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--step-border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mr-role-card:not(.is-selected) .mr-role-card__mark {
  display: none;
}

.mr-role-card.is-selected .mr-role-card__mark {
  border-color: var(--teal);
  background: var(--teal);
  color: #111;
}

.mr-next {
  width: 100%;
  height: 56px;
  margin-top: auto;
  border: 1px solid rgba(250, 248, 242, 0.14);
  border-radius: 28px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  filter: drop-shadow(0 8px 13px rgba(9, 217, 193, 0.35));
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
}

.mr-next:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.32;
}

/* ---------- Успешная отправка ---------- */

.ms-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 726px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px 64px;
  text-align: center;
}

.ms-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: rgba(9, 217, 193, 0.12);
  box-shadow: 0 0 32px rgba(9, 217, 193, 0.3);
  color: var(--teal);
  font-size: 30px;
  font-weight: 700;
}

.ms-eyebrow {
  margin: 28px 0 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.ms-title {
  margin: 15px 0 0;
  color: var(--cream);
  font-size: 44px;
  line-height: 48px;
  text-shadow: 0 5px 20px rgba(9, 217, 193, 0.28);
}

.ms-title--closed {
  font-size: 40px;
  line-height: 42px;
}

.ms-mark--closed {
  border-color: rgba(250, 248, 242, 0.32);
  background: rgba(250, 248, 242, 0.06);
  box-shadow: 0 0 28px rgba(250, 248, 242, 0.1);
  color: var(--cream);
}

.ms-sub {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
}

.ms-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.ms-home,
.ms-vk {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ms-home {
  border: 1px solid rgba(250, 248, 242, 0.14);
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  box-shadow: 0 8px 24px rgba(9, 217, 193, 0.3);
}

.ms-vk {
  border: 1px solid var(--field-border);
  background: rgba(255, 255, 255, 0.05);
}
