/* Join wizard — Figma «Добавить свой бизнес в каталог SarafanPRO» */
body.account-join .site-main,
body.account-join #content { max-width: none; }

.fg-wiz {
  font-family: Rubik, Arial, sans-serif;
  background: #fff;
  padding: 32px 0 64px;
  min-height: 60vh;
  color: #000E37;
}
.fg-wiz--preview {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
/* Figma m05/m09: stepper, then orange bar, then page — never pull the bar above the stepper. */
.fg-wiz--preview .sp-preview-bar { order: 0; }
.fg-wiz__help--left { text-align: left; margin: 8px 0 8px; }

/* Step 6 preview bar — Figma contained orange card, not a full-bleed strip
   colliding with the stepper. Вернуться = solid blue; Отправить = white outline. */
body.account-join .fg-wiz--preview .sp-preview-bar {
  max-width: 960px;
  margin: 8px auto 20px;
  border-radius: 8px;
  overflow: hidden;
  width: calc(100% - 40px);
  box-sizing: border-box;
}
body.account-join .fg-wiz--preview .sp-preview-bar__inner {
  padding: 16px 20px;
  gap: 12px 16px;
}
body.account-join .fg-wiz--preview .sp-preview-bar__link {
  background: #0066B2 !important;
  border-color: #0066B2 !important;
  color: #fff !important;
}
body.account-join .fg-wiz--preview .sp-preview-bar__btn {
  background: #fff !important;
  border: 1.3px solid #fff !important;
  color: #0066B2 !important;
}
body.account-join .fg-wiz__meet .contacts_wrap:empty { display: none; }
body.account-join .fg-wiz__site-frame {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 1px solid #E3E8EF;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 24px rgba(193,200,218,.35);
}
/* Desktop Figma stack: tighter stepper→form vertical mass */
body.account-join .fg-wiz {
  padding: 28px 0 48px;
}
.fg-wiz__inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.fg-wiz__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  color: #0066B2;
  line-height: 1.25;
}
.fg-wiz__cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}
.fg-wiz__support {
  text-align: center;
  color: #5B6D9C;
  font-size: 14px;
  line-height: 1.45;
  max-width: 720px;
  margin: 0 auto 14px;
}
.fg-wiz__support a { color: #5B6D9C; }
.fg-wiz__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  vertical-align: middle;
  box-sizing: border-box;
}
.fg-wiz__wa-btn:hover { background: #1EBE57; }
.fg-wiz__wa-icon {
  flex: 0 0 auto;
  display: block;
}
.fg-wiz__phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fg-wiz__phone-row input { flex: 1 1 220px; }
.fg-wiz__phone-row .fg-wiz__btn {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 0;
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
}

/* Stepper */
.fg-wiz__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  max-width: 520px;
  position: relative;
}
body.account-join .fg-wiz__steps {
  margin: 0 auto 28px;
}
.fg-wiz__steps::before {
  content: "";
  position: absolute;
  left: 28px; right: 28px; top: 50%;
  height: 2px;
  background: #D8E2F0;
  z-index: 0;
  transform: translateY(-50%);
}
.fg-wiz__step {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.fg-wiz__step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #E8EEF7;
  color: #96A1BD;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E8EEF7;
  box-sizing: border-box;
  text-decoration: none;
}
a.fg-wiz__step-num { color: inherit; }
.fg-wiz__step.is-done .fg-wiz__step-num {
  background: #0066B2;
  border-color: #0066B2;
  color: #fff;
}
.fg-wiz__step.is-active .fg-wiz__step-num {
  background: #0066B2;
  border-color: #0066B2;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,102,178,.18);
}
.fg-wiz__step.is-open .fg-wiz__step-num {
  background: #fff;
  border-color: #0066B2;
  color: #0066B2;
}
.fg-wiz__step.is-link .fg-wiz__step-num { cursor: pointer; }
.fg-wiz__step.is-link:hover .fg-wiz__step-num {
  border-color: #00538F;
  color: #00538F;
}
.fg-wiz__step.is-done.is-link:hover .fg-wiz__step-num {
  background: #00538F;
  border-color: #00538F;
  color: #fff;
}

.fg-wiz__alert {
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #FDECEC;
  color: #B3261E;
  font-size: 14px;
}

/* Card form — Figma reg is flat white (no elevated panel chrome) */
.fg-wiz__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid #E3E8EF;
  border-radius: 12px;
  box-shadow: 0 5px 24px rgba(193,200,218,.35);
  box-sizing: border-box;
}
/* Desktop join: flatten card to match Figma flat reg column ~580–600px */
body.account-join .fg-wiz__card {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}
.fg-wiz__card--wide { max-width: 960px; }
body.account-join .fg-wiz__card--wide { max-width: 960px; }
.fg-wiz__h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 500;
  color: #000E37;
  line-height: 1.3;
}
.fg-wiz__h2 span { color: #0066B2; font-weight: 400; }
.fg-wiz__lead { color: #0066B2; font-size: 14px; margin: -8px 0 20px; line-height: 1.45; max-width: 460px; }

.fg-wiz__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fg-wiz__row3 { display: grid; grid-template-columns: 1fr 1fr minmax(180px, 0.9fr); gap: 16px; align-items: start; }
.fg-wiz__row3 > .fg-wiz__field { margin-bottom: 0; }

.fg-wiz__field { margin-bottom: 16px; }
.fg-wiz__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #0066B2;
  font-weight: 400;
}
.fg-wiz__seo { margin: 8px 0 20px; }
.fg-wiz__seo .js-open-meta-tags {
  color: #0066B2;
  border-bottom: 1px dashed #0066B2;
  text-decoration: none;
}
.fg-wiz__opt { color: #96A1BD; font-size: 12px; }
.fg-wiz__field input[type="text"],
.fg-wiz__field input[type="email"],
.fg-wiz__field input[type="password"],
.fg-wiz__field input[type="tel"],
.fg-wiz__field select,
.fg-wiz__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  color: #000E37;
  background: #fff;
  box-sizing: border-box;
}
.fg-wiz__field select {
  padding-right: 40px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230066B2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.fg-wiz__field select::-ms-expand { display: none; }
/* Listify / ionicon caret on .select — иначе две стрелки */
body.account-join .select:after,
body.account-join .select:before,
body.account-join .select::after,
body.account-join .select::before {
  display: none !important;
  content: none !important;
}
.fg-wiz__field textarea { min-height: 120px; resize: vertical; }
.fg-wiz__field input:focus,
.fg-wiz__field select:focus,
.fg-wiz__field textarea:focus {
  outline: none;
  border-color: #0066B2;
}
.fg-wiz__field.is-error input,
.fg-wiz__field.is-error select,
.fg-wiz__field.is-error textarea { border-color: #B3261E; }
.fg-wiz__err { margin-top: 4px; color: #B3261E; font-size: 13px; }
.fg-wiz__hint { margin: 0 0 8px; font-size: 13px; color: #5B6D9C; line-height: 1.4; }
.fg-wiz__checks { display: flex; gap: 16px; flex-wrap: wrap; }
.fg-wiz__checks label { display: flex; align-items: center; gap: 8px; margin: 0; color: #000E37; font-size: 15px; cursor: pointer; }
.fg-wiz__checks input[type="checkbox"] { width: auto; min-height: 0; }
.fg-wiz__hidden { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.fg-wiz__pass { position: relative; }
.fg-wiz__pass input { padding-right: 48px; }
.fg-wiz__eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: transparent;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2396A1BD'%3E%3Cpath stroke-width='2' d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 20px; background-repeat: no-repeat; background-position: center;
}

/* Buttons — Figma CTA: solid full-width navy/blue bar (not gradient) */
.fg-wiz__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 24px;
  margin-top: 8px;
  border-radius: 6px;
  border: none;
  background: #0066B2;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 102, 178, 0.25);
  box-sizing: border-box;
}
.fg-wiz__btn:hover { background: #00538F; }
.fg-wiz__btn--outline:hover,
.fg-wiz__btn--ghost:hover {
  background: #fff;
  color: #00538F !important;
  border-color: #00538F;
}
.fg-wiz__btn--center { max-width: 320px; display: flex; margin: 24px auto 0; }
.fg-wiz__btn--sm { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; margin: 0; }
.fg-wiz__btn--ghost {
  background: #fff;
  color: #0066B2 !important;
  border: 1.3px solid #0066B2;
  box-shadow: none;
}
.fg-wiz__btn--outline {
  background: #fff;
  color: #0066B2 !important;
  border: 1.3px solid #0066B2;
  box-shadow: none;
  width: auto;
  margin-top: 12px;
}
.fg-wiz__btn::after { content: none !important; display: none !important; }
.fg-wiz__btn--mid { max-width: 640px; display: flex; margin-left: auto; margin-right: auto; }
.fg-wiz__drop-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066B2'%3E%3Cpath stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 16V4m0 0l-4 4m4-4l4 4M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.fg-wiz__btns { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.fg-wiz__btns .fg-wiz__btn { width: 100%; flex: none; }

.fg-wiz__login-hint,
.fg-wiz__help {
  text-align: center;
  margin: 18px 0 0;
  font-size: 14px;
  color: #5B6D9C;
}
.fg-wiz__login-hint a,
.fg-wiz__help a,
.fg-wiz__link { color: #0066B2; }

/* Welcome step shell (Figma «Шаг 1 Добро пожаловать») — ready when markup lands */
.fg-wiz__welcome {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.fg-wiz__welcome .fg-wiz__login-hint {
  display: block;
  margin: 12px 0 20px;
  text-align: left;
}
.fg-wiz__btn--google {
  background: #fff;
  color: #0066B2 !important;
  border: 1.3px solid #0066B2;
  box-shadow: none;
  margin-top: 0;
}
.fg-wiz__btn--google:hover {
  background: #F5F9FC;
  color: #00538F !important;
}
.fg-wiz__divider {
  text-align: center;
  color: #96A1BD;
  margin: 12px 0;
  font-size: 14px;
}
.fg-wiz__legal {
  margin-top: 16px;
  font-size: 13px;
  color: #5B6D9C;
  line-height: 1.45;
}
.fg-wiz__legal label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  cursor: pointer;
}
.fg-wiz__legal a { color: #0066B2; }

/* Tariffs */
.fg-wiz__tariffs { max-width: 1180px; margin: 0 auto; }
.fg-wiz__tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.fg-wiz__tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #D6E2F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
}
.fg-wiz__tariff.is-selected {
  border-color: #0066B2;
  box-shadow: none;
}
.fg-wiz__tariff-badge {
  position: absolute;
  top: 14px; right: -34px;
  background: #E11D2E;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: lowercase;
}
.fg-wiz__tariff-head {
  background: #0066B2;
  color: #fff;
  text-align: center;
  padding: 22px 16px 18px;
}
.fg-wiz__tariff-head h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
}
.fg-wiz__tariff-price { font-size: 28px; font-weight: 600; }
.fg-wiz__tariff-note { font-size: 13px; opacity: .9; margin-top: 4px; }
.fg-wiz__tariff-pick {
  margin: 18px 18px 0;
  min-height: 44px;
  border-radius: 6px;
  border: 1.3px solid #0066B2;
  background: #fff;
  color: #0066B2;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.fg-wiz__tariff.is-selected .fg-wiz__tariff-pick,
.fg-wiz__tariff.is-popular .fg-wiz__tariff-pick {
  background: #0066B2;
  color: #fff;
  border-color: #fff;
}
.fg-wiz__tariff-list {
  list-style: none;
  margin: 16px 18px;
  padding: 0;
  flex: 1;
}
.fg-wiz__tariff-list li {
  position: relative;
  padding: 0 0 10px 22px;
  font-size: 14px;
  line-height: 1.4;
  color: #2A3550;
}
.fg-wiz__tariff-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: #0066B2;
  font-weight: 700;
}
.fg-wiz__tariff-bonus {
  margin: 0 18px 18px;
  padding-top: 12px;
  border-top: 1px solid #E3E8EF;
  font-size: 13px;
  color: #5B6D9C;
}
.fg-wiz__tariff-bonus strong { display: block; color: #0066B2; margin-bottom: 4px; }
.fg-wiz__tariff-bonus p { margin: 0; }

/* Step 3 extras */
.fg-wiz__step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.fg-wiz__plan-chip {
  font-size: 13px;
  color: #5B6D9C;
}
.fg-wiz__plan-chip.fg-wiz__field { margin-bottom: 16px; }
.fg-wiz__plan-chip-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 48px;
  justify-content: center;
}
.fg-wiz__plan-chip strong {
  color: #0066B2;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.fg-wiz__plan-chip a {
  color: #0066B2;
  font-size: 13px;
  text-decoration: underline;
}
.fg-wiz__locked { position: relative; }
.fg-wiz__locked input { padding-right: 40px; background: #fff; }
.fg-wiz__drop {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  cursor: pointer;
  text-align: center;
  padding: 0 !important;
  color: #5B6D9C;
}
.fg-wiz__photo-row {
  display: flex;
  align-items: flex-start;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.fg-wiz__photo-row .fg-wiz__drop { order: 1; }
.fg-wiz__photo-row .fg-wiz__hint {
  order: 2;
  flex: 1 1 220px;
  min-width: 220px;
  margin: 0;
}
.fg-wiz__photo-row .fg-wiz__photo-err {
  order: 3;
  flex: 1 1 100%;
  margin: 0;
}
html body .fg-wiz .fg-wiz__photo-row.item_drop_wrap .list_files {
  order: 4;
  display: block !important;
  width: auto !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
}
html body .fg-wiz .fg-wiz__photo-row .list_files .file_load {
  width: 140px !important;
  max-width: 140px;
  height: 140px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
html body .fg-wiz .fg-wiz__photo-row .list_files .file_load img {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
html body .fg-wiz .fg-wiz__photo-row.item_drop_wrap .list_files .file_load .close_file {
  top: -8px;
  right: -8px;
}
.sp-privacy {
  margin: 16px 0;
  padding: 14px 16px;
  background: #F4F8FC;
  border: 1px solid #D5DEEE;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #2A3550;
}
.fg-wiz__card > .sp-privacy {
  width: 100%;
  margin: 8px 0 20px;
}
.sp-privacy__notice { margin: 0 0 12px; }
.sp-privacy__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 0;
  cursor: pointer;
}
.sp-privacy__check input { margin-top: 3px; flex: 0 0 auto; }
.fg-crop[hidden] { display: none !important; }
.fg-crop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(20, 32, 56, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fg-crop__dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(20, 32, 56, .2);
  overflow-x: hidden;
  overflow-y: auto;
}
.fg-crop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #E8EEF5;
  font-family: Rubik, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000E37;
}
.fg-crop__x {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #8A97B0;
  cursor: pointer;
}
.fg-crop__body { padding: 24px 28px 8px; }
.fg-crop__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  flex-wrap: wrap;
  min-height: 240px;
}
.fg-crop__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}
.fg-crop__circle,
.fg-crop__preview {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #EEF2F7;
  flex: 0 0 220px;
  cursor: grab;
}
.fg-crop__circle.is-dragging { cursor: grabbing; }
.fg-crop__preview {
  width: 160px;
  height: 160px;
  flex-basis: 160px;
  cursor: default;
  background: #c9d0da url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='28' r='14' fill='%23e8edf3'/%3E%3Cpath d='M12 72c4-20 16-30 28-30s24 10 28 30' fill='%23e8edf3'/%3E%3C/svg%3E") center 18px / 88px no-repeat;
}
.fg-crop__hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: #5B6D9C;
}
.fg-crop__circle img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.fg-crop__preview canvas { display: block; width: 160px; height: 160px; }
.fg-crop__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}
.fg-crop__zoom input[type=range] { width: 120px; accent-color: #0066B2; }
.fg-crop__zoom button {
  width: 22px;
  height: 22px;
  border: 1px solid #D6DEEA;
  border-radius: 50%;
  background: #fff;
  color: #0066B2;
  cursor: pointer;
  line-height: 1;
}
.fg-crop__arrow { color: #0066B2; font-size: 22px; }
.fg-crop__upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 8px;
  min-height: 36px;
  padding: 6px 16px;
  border: 1.3px solid #0066B2;
  border-radius: 6px;
  background: #fff;
  color: #0066B2;
  font-family: Rubik, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}
.fg-crop__upload:hover { background: #E8F3FB; }
.fg-crop__foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 22px;
}
.fg-crop__save {
  min-width: 160px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #0066B2;
  color: #fff;
  font-family: Rubik, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 102, 178, 0.25);
}
.fg-crop__save:hover { background: #00538F; }
.fg-crop__cancel {
  border: 0;
  background: none;
  color: #5B6D9C;
  font-family: Rubik, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}
.fg-crop__cancel:hover { color: #0066B2; }
.fg-wiz__discount { margin: 8px 0 20px; }
.fg-wiz__discount-lead {
  margin: 0 0 10px;
  font-size: 14px;
  color: #0066B2;
}
.fg-wiz__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.fg-wiz__pill {
  min-width: 52px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #D6DEEA;
  border-radius: 6px;
  background: #fff;
  color: #0066B2;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.fg-wiz__pill.is-on {
  background: #E8F3FB;
  border-color: #0066B2;
  font-weight: 600;
}
.fg-wiz__discount-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #5B6D9C;
  margin-bottom: 10px;
}
.fg-wiz__discount-custom input {
  width: 220px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.fg-wiz__discount-applied {
  font-size: 14px;
  color: #0066B2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fg-wiz__disc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #0066B2;
  border-radius: 6px;
  color: #0066B2;
  background: #fff;
  font-size: 13px;
}
.fg-wiz__preview-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 12px;
  padding: 10px 14px;
  border: 1px solid #0066B2;
  border-radius: 6px;
  background: #fff;
  color: #0066B2 !important;
  font-size: 16px;
  font-family: inherit;
  text-decoration: none !important;
  box-sizing: border-box;
  cursor: pointer;
}
.fg-wiz__drop-btn,
.fg-wiz__drop .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 16px;
  border: 1.3px solid #0066B2;
  border-radius: 6px;
  color: #0066B2 !important;
  background: #fff;
  text-decoration: none !important;
  box-sizing: border-box;
  white-space: nowrap;
}
.fg-wiz__drop .btn { margin-left: 12px; }
.fg-wiz__drop--zone {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 148px;
  padding: 24px 16px !important;
  border: 1.5px dashed #9BB0D0 !important;
  border-radius: 12px !important;
  background: #F7FAFC !important;
  color: #5B6D9C;
  box-sizing: border-box;
  text-align: center;
}
.fg-wiz__drop--zone:hover,
.fg-wiz__drop--zone.hover {
  background: #EEF5FB !important;
  border-color: #0066B2 !important;
}
.fg-wiz__drop--zone .fg-wiz__drop-text {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: #5B6D9C;
}
.fg-wiz__drop--zone .btn {
  margin-left: 0;
  min-height: 40px;
  padding: 8px 18px;
}
.fg-wiz__socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 0;
  margin: 8px 0 16px;
}
.fg-wiz__socials .fg-wiz__field { margin-bottom: 16px; }
.fg-wiz__socials .fg-wiz__hint { margin: 0 0 6px; }
.fg-wiz__discount-val { font-size: 18px; color: #0066B2; font-weight: 500; margin-top: 6px; }
.fg-wiz__note {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 8px;
  background: #FFE4C2;
  border: 1px solid #F0B56A;
  color: #6A4A1A;
  font-size: 14px;
  line-height: 1.5;
}
.fg-wiz__note strong { display: block; margin-bottom: 8px; color: #C47A12; font-size: 16px; }
.fg-wiz__note strong::before { content: "⚠ "; }
.fg-wiz__note p { margin: 0 0 8px; }
.fg-wiz__note p:last-child { margin-bottom: 0; }
.fg-wiz__media { margin-bottom: 28px; }
.fg-wiz__media h3 { margin: 0 0 8px; font-size: 18px; color: #0066B2; font-weight: 500; }

/* Step 5 — Figma m08: compact dashed cards (camera / clapper) + YouTube field.
   Beat additional_102024 .item_drop (full-width dashed pad 30) and
   .fg-wiz__drop { display:inline-flex; border:0 } which flattened the zone. */
html body .fg-wiz .item_drop_wrap.fg-wiz__gal,
html body .fg-wiz .fg-wiz__gal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  background: none !important;
  width: 100%;
}
html body .fg-wiz .fg-wiz__dropcard,
html body .fg-wiz label.item_drop.fg-wiz__dropcard {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 170px !important;
  max-width: 170px;
  margin: 0 0 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: 0;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  color: #5B6D9C;
}
html body .fg-wiz .fg-wiz__dropcard-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 170px;
  min-height: 148px;
  padding: 16px 12px;
  border: 1.5px dashed #9BB0D0;
  border-radius: 10px;
  background: #F7FAFC;
  box-sizing: border-box;
}
html body .fg-wiz .fg-wiz__dropcard:hover .fg-wiz__dropcard-box,
html body .fg-wiz .fg-wiz__dropcard.hover .fg-wiz__dropcard-box,
html body .fg-wiz .fg-wiz__dropcard.is-hover .fg-wiz__dropcard-box {
  background: #EEF5FB;
  border-color: #0066B2;
}
html body .fg-wiz .fg-wiz__dropcard-ico {
  display: block;
  width: 36px;
  height: 36px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}
html body .fg-wiz .fg-wiz__dropcard-ico--photo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 36 36'%3E%3Cpath d='M8 12.5h4.2l1.6-2.4A2 2 0 0 1 15.5 9h5a2 2 0 0 1 1.7 1.1L24 12.5h4a3 3 0 0 1 3 3V26a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V15.5a3 3 0 0 1 3-3z' stroke='%230066B2' stroke-width='1.6'/%3E%3Ccircle cx='18' cy='20.5' r='5' stroke='%230066B2' stroke-width='1.6'/%3E%3C/svg%3E");
}
html body .fg-wiz .fg-wiz__dropcard-ico--video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 36 36'%3E%3Cpath d='M7 14h22v14H7z' stroke='%230066B2' stroke-width='1.6'/%3E%3Cpath d='M7 14l4-6h6l-4 6m6 0l4-6h6l-4 6' stroke='%230066B2' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M16 19.5v6l6-3-6-3z' fill='%230066B2'/%3E%3C/svg%3E");
}
html body .fg-wiz .fg-wiz__dropcard .fg-wiz__drop-text {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #5B6D9C;
}
html body .fg-wiz .fg-wiz__dropcard .btn,
html body .fg-wiz .fg-wiz__dropcard .btn:link,
html body .fg-wiz .fg-wiz__dropcard .btn:visited {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  min-height: 36px;
  padding: 6px 14px;
  border: 1.3px solid #0066B2 !important;
  border-radius: 6px;
  background: #fff !important;
  color: #0066B2 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: none;
}
html body .fg-wiz .fg-wiz__dropcard .btn::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v7M3 6.5l3 3 3-3M2 10.5h8' stroke='%230066B2' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
html body .fg-wiz .fg-wiz__yt-label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  color: #0066B2;
  font-weight: 400;
}
html body .fg-wiz .fg-wiz__yt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
html body .fg-wiz .fg-wiz__yt-row {
  display: block;
}
html body .fg-wiz .fg-wiz__yt-input,
html body .fg-wiz .fg-wiz__yt-row input[type="text"] {
  display: block;
  width: 100%;
  max-width: 520px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #000E37;
  background: #fff;
  box-sizing: border-box;
}
html body .fg-wiz .fg-wiz__yt-input:focus,
html body .fg-wiz .fg-wiz__yt-title:focus {
  outline: none;
  border-color: #0066B2;
}
html body .fg-wiz .fg-wiz__yt-row .fg-wiz__yt-title {
  margin-top: 6px;
}
html body .fg-wiz .fg-wiz__media > .fg-wiz__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}
html body .fg-wiz .fg-wiz__note--warn {
  position: relative;
  padding: 16px 16px 16px 48px;
  background: #FFF4E5;
  border: 1px solid #F5D0A0;
  color: #5B4A2A;
}
html body .fg-wiz .fg-wiz__note--warn::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E8A317' d='M12 3l10 18H2L12 3z'/%3E%3Cpath fill='%23fff' d='M11 10h2v5h-2zm0 6h2v2h-2z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
html body .fg-wiz .fg-wiz__note--warn p { margin: 0 0 8px; }
html body .fg-wiz .fg-wiz__note--warn p:last-child { margin-bottom: 0; }

/* Gallery thumbs on step 5 — tiles, not service cards */
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files,
html body .fg-wiz .fg-wiz__gal .list_files {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px !important;
  flex: 1 1 240px;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}
html body .fg-wiz .fg-wiz__gal .list_files:empty {
  display: none !important;
  flex: 0;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load,
html body .fg-wiz .fg-wiz__gal .file_load {
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .file_load-img,
html body .fg-wiz .fg-wiz__gal .file_load .file_load-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #F4F8FC;
  border: 1px solid #E3E8EF;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load img,
html body .fg-wiz .fg-wiz__gal .file_load img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
html body .fg-wiz .fg-wiz__gal .file_load textarea,
html body .fg-wiz .fg-wiz__gal .js-add-image_buttons,
html body .fg-wiz .fg-wiz__gal .image_description_buttons {
  display: none !important;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .close_file,
html body .fg-wiz .fg-wiz__gal .file_load .close_file {
  top: 6px;
  right: 6px;
  left: auto;
  margin: 0;
}

/* Step 6 preview */
.fg-wiz__preview-wrap { max-width: 720px; margin: 0 auto; }
.fg-wiz__banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
}
.fg-wiz__banner--orange {
  background: #F5A623;
  color: #fff;
}
.fg-wiz__banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.fg-wiz__banner-actions a {
  color: #fff;
  text-decoration: underline;
  font-weight: 400;
}
.fg-wiz__card-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.fg-wiz__card-preview-inner {
  width: 100%;
  max-width: 360px;
  padding: 24px 20px;
  border: 1px solid #E3E8EF;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(193,200,218,.4);
  text-align: center;
  background: #fff;
}
.fg-wiz__card-photo {
  width: 160px; height: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px #7fb3ff, 0 0 0 6px #c3b7ff;
}
.fg-wiz__card-preview-inner h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #0066B2;
  font-weight: 500;
}
.fg-wiz__card-spec { margin: 0 0 6px; font-size: 14px; color: #5B6D9C; }
.fg-wiz__card-loc { margin: 0 0 12px; font-size: 13px; color: #96A1BD; }
.fg-wiz__card-text { margin: 0 0 8px; font-size: 14px; color: #2A3550; line-height: 1.45; text-align: left; }
.fg-wiz__submit-row { text-align: center; max-width: 420px; margin: 0 auto; }

/* File list inside wizard — beat additional_102024 .item_drop_wrap .list_files
   (width:205px + negative margins) which overlapped cards and hid close buttons. */
html body .fg-wiz .item_drop_wrap .list_files,
html body .fg-wiz .list_files {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  flex-wrap: unset;
}
html body .fg-wiz .item_drop_wrap .list_files .file_load,
html body .fg-wiz .list_files .file_load {
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid #E3E8EF;
  border-radius: 12px;
  background: #fff;
  position: relative;
  box-sizing: border-box;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load,
html body .fg-wiz .fg-wiz__gal .list_files .file_load {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.fg-wiz .item_drop_wrap .list_files .file_load .file_load-img,
.fg-wiz .list_files .file_load .file_load-img {
  display: block;
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F8FC;
}
.fg-wiz .item_drop_wrap .list_files .file_load img,
.fg-wiz .list_files .file_load img {
  width: 100% !important;
  height: 140px !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.fg-wiz .item_drop_wrap .list_files .file_load textarea,
.fg-wiz .list_files .file_load textarea {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
  min-height: 52px;
  height: auto;
  border: 1px solid #DDD;
  border-radius: 6px;
  padding: 8px 10px;
  box-sizing: border-box;
  resize: vertical;
}
html body .fg-wiz .item_drop_wrap .list_files .file_load .close_file,
html body .fg-wiz .list_files .file_load .close_file {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E24B4A !important;
  background-image: none !important;
  box-shadow: 0 0 0 2px #fff;
  cursor: pointer;
}
.fg-wiz .list_files .file_load .close_file::before,
.fg-wiz .list_files .file_load .close_file::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 10px;
  height: 2px;
  background: #fff;
}
.fg-wiz .list_files .file_load .close_file::before { transform: rotate(45deg); }
.fg-wiz .list_files .file_load .close_file::after { transform: rotate(-45deg); }
.fg-wiz .js-add-image_buttons,
.fg-wiz .image_description_buttons {
  display: none !important;
}

/* Step 4 services — Figma circles + caption, 4-up on desktop */
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files,
html body .fg-wiz .fg-wiz__svc .list_files {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load,
html body .fg-wiz .fg-wiz__svc .file_load {
  border: 0;
  background: transparent;
  padding: 8px 4px 4px;
  text-align: center;
  width: 100% !important;
}
.fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load .file_load-img,
.fg-wiz .fg-wiz__svc .file_load .file_load-img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #0066B2;
  box-sizing: border-box;
  background: #F4F8FC;
}
.fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load img,
.fg-wiz .fg-wiz__svc .file_load img {
  width: 120px !important;
  height: 120px !important;
  max-width: none;
  max-height: none;
  border-radius: 50% !important;
  object-fit: cover;
}
.fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load .close_file,
.fg-wiz .fg-wiz__svc .file_load .close_file {
  top: 4px;
  right: auto;
  left: 50%;
  margin-left: 44px;
  margin-right: 0;
}
.fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load textarea,
.fg-wiz .fg-wiz__svc .file_load textarea {
  min-height: 40px !important;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  resize: none !important;
  box-shadow: none !important;
  color: #2E437B;
}
.fg-wiz .fg-wiz__svc .file_load:nth-child(4n+1) .file_load-img { border-color: #e7b3e0; }
.fg-wiz .fg-wiz__svc .file_load:nth-child(4n+2) .file_load-img { border-color: #c9b6f2; }
.fg-wiz .fg-wiz__svc .file_load:nth-child(4n+3) .file_load-img { border-color: #9fd0f5; }
.fg-wiz .fg-wiz__svc .file_load:nth-child(4n+4) .file_load-img { border-color: #b7e3c5; }
.fg-wiz .fg-lk-video-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.fg-wiz .fg-lk-video-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
  gap: 10px;
}
.fg-wiz .fg-lk-video-row input {
  min-height: 44px;
  border: 1px solid #DDD;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Reg step: login hint lives on welcome in Figma, not inside reg card */
.fg-wiz__card .fg-wiz__login-hint { display: none; }

/* Optional promo not in Figma «Регистрация с E-mail»; keep markup for backend.
   Class + :has for older engines / tab-order; !important avoids accidental overrides. */
.fg-wiz__field--promo,
.fg-wiz__field:has(#wiz_promo) {
  display: none !important;
}

/* Email only on Figma welcome; keep live email visible (required for step-1 submit —
   intentional backend delta, not pure CSS). When markup adds .fg-wiz__field--email
   after welcome flow, this hides it on reg. */
.fg-wiz__field--email { display: none; }

/* When welcome exists and reg reuses form: hide email field inside reg card only
   if explicitly classed (do not hide #wiz_email without class — breaks submit). */
.fg-wiz__card .fg-wiz__field--email:has(#wiz_email) { display: none; }

@media (max-width: 1023px) {
  .fg-wiz__tariff-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .fg-wiz__title { font-size: 24px; }
  .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files,
  .fg-wiz .fg-wiz__svc .list_files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet / large phone — flatten form chrome, tighten hero + stepper */
@media (max-width: 860px) {
  body.account-join .fg-wiz {
    padding: 24px 0 48px;
  }
  body.account-join .fg-wiz__inner {
    padding: 0 16px;
  }
  body.account-join .fg-wiz__title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  body.account-join .fg-wiz__cta {
    margin-bottom: 16px;
  }
  body.account-join .fg-wiz__support {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
  }
  body.account-join .fg-wiz__steps {
    margin-bottom: 20px;
    max-width: 100%;
  }
  body.account-join .fg-wiz__step-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  /* Flat registration / form surface (Figma mobile — no elevated card) */
  body.account-join .fg-wiz__card {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    max-width: 100%;
  }
  body.account-join .fg-wiz__h2 {
    line-height: 1.3;
    margin-bottom: 16px;
    font-size: 18px;
  }
  body.account-join .fg-wiz__btn {
    margin-top: 12px;
    border: none;
  }
  body.account-join .fg-wiz__help {
    text-align: center;
    margin: 18px 0 0;
    font-size: 14px;
    color: #5B6D9C;
  }
  body.account-join .fg-wiz__help a {
    color: #0066B2;
  }
}

@media (max-width: 767px) {
  .fg-wiz__row2,
  .fg-wiz__row3,
  .fg-wiz__socials,
  .fg-wiz .fg-lk-video-row { grid-template-columns: 1fr; }
  .fg-wiz__steps { max-width: 100%; }
  .fg-wiz__step-num { width: 30px; height: 30px; font-size: 13px; }

  /* Keep flat card on all wizard steps at phone width */
  .fg-wiz__card {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  .fg-wiz__steps { margin-bottom: 20px; }
  .fg-wiz__h2 { line-height: 1.3; margin-bottom: 16px; }
  .fg-wiz__btn { margin-top: 12px; border: none; }
}

/* Narrow phone 390 — denser Figma vertical rhythm */
@media (max-width: 480px) {
  body.account-join .fg-wiz {
    padding: 20px 0 40px;
  }
  body.account-join .fg-wiz__inner {
    padding: 0 16px;
  }
  body.account-join .fg-wiz__title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  body.account-join .fg-wiz__cta {
    margin-bottom: 16px;
    max-width: none;
  }
  body.account-join .fg-wiz__support {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: none;
  }
  body.account-join .fg-wiz__steps {
    margin-bottom: 20px;
  }
  body.account-join .fg-wiz__steps::before {
    left: 20px;
    right: 20px;
  }
  body.account-join .fg-wiz__h2 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  body.account-join .fg-wiz__field {
    margin-bottom: 14px;
  }
  body.account-join .fg-wiz__field label {
    margin-bottom: 6px;
    font-size: 14px;
  }
  body.account-join .fg-wiz__field input[type="text"],
  body.account-join .fg-wiz__field input[type="email"],
  body.account-join .fg-wiz__field input[type="password"],
  body.account-join .fg-wiz__field input[type="tel"],
  body.account-join .fg-wiz__field select,
  body.account-join .fg-wiz__field textarea {
    min-height: 48px;
    border-radius: 6px;
    border-color: #DDDDDD;
  }
  body.account-join .fg-wiz__btn {
    margin-top: 12px;
    min-height: 48px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 102, 178, 0.25);
  }
  body.account-join .fg-wiz__help {
    text-align: center;
    margin: 18px 0 0;
    font-size: 14px;
    color: #5B6D9C;
  }
  body.account-join .fg-wiz__help a { color: #0066B2; }
  .fg-wiz .item_drop_wrap .list_files,
  .fg-wiz .list_files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files,
  .fg-wiz .fg-wiz__svc .list_files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .fg-wiz .fg-wiz__dropcard,
  html body .fg-wiz label.item_drop.fg-wiz__dropcard {
    width: 170px !important;
  }
  html body .fg-wiz .fg-wiz__yt-list,
  html body .fg-wiz .fg-wiz__yt-input {
    max-width: none;
  }
}

.fg-wiz__step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fg-wiz__step-note { margin: 0; font-size: 13px; color: #8b95b0; max-width: 340px; text-align: right; }
.fg-wiz__pencil { position: relative; width: auto; height: auto; background: none; }
.fg-wiz__pencil input { padding-right: 36px; width: 100%; }
.fg-wiz__pencil::after {
  content: "";
  position: absolute; right: 10px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396A1BD' stroke-width='2'%3E%3Cpath d='M4 20h4l10-10-4-4L4 16v4z'/%3E%3C/svg%3E") center / 16px no-repeat;
  pointer-events: none;
}
.fg-wiz__plan-chip strong { font-size: 22px; font-weight: 600; }
.fg-wiz__soc label { display: flex; align-items: center; gap: 8px; }
.fg-wiz__soc label::before { display: none; }
.fg-wiz__soc-ico { width: 18px; height: 18px; display: inline-flex; flex: 0 0 18px; }
.fg-wiz__soc-ico svg { width: 18px; height: 18px; display: block; }
.fg-wiz__drop--off { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fg-wiz__svc .list_files { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fg-wiz__svc .file_load { text-align: center; }
.fg-wiz__svc .file_load img, .fg-wiz__svc .file_load-img img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #e7b3e0;
}
.fg-wiz__svc .file_load:nth-child(4n+2) img { box-shadow: 0 0 0 3px #c9b6f2; }
.fg-wiz__svc .file_load:nth-child(4n+3) img { box-shadow: 0 0 0 3px #9fd0f5; }
.fg-wiz__svc .file_load:nth-child(4n+4) img { box-shadow: 0 0 0 3px #b7e3c5; }
.fg-wiz__svc textarea {
  min-height: 40px; max-height: 64px; text-align: center;
  border: 0; background: transparent; resize: none; box-shadow: none;
  color: #2E437B; font-size: 14px; line-height: 1.3;
}
@media (max-width: 720px) {
  .fg-wiz__svc .list_files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-wiz__step-note { text-align: left; }
}

/* Step 4 circles. Figma w08: the same double pastel ring on every photo
   (pink/lilac and light blue), not a different solid color per card.
   The close sits outside that ring, on the empty corner. */
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 6px 0 !important;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .fg-wiz__svc-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  margin: 6px auto 0;
  overflow: visible;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .fg-wiz__svc-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #ee8fd4, #c9a0f4, #8ec0ff, #c4a4f6, #ee8fd4);
  -webkit-mask: radial-gradient(closest-side circle at center, transparent 86%, #000 87%, #000 89%, transparent 90%, #000 94%, #000 96.4%, transparent 97.6%);
  mask: radial-gradient(closest-side circle at center, transparent 86%, #000 87%, #000 89%, transparent 90%, #000 94%, #000 96.4%, transparent 97.6%);
  pointer-events: none;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .fg-wiz__svc-face .file_load-img {
  width: 86% !important;
  height: auto !important;
  aspect-ratio: 1;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background: #f4f8fc;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load .fg-wiz__svc-face .file_load-img,
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load:nth-child(4n+1) .fg-wiz__svc-face .file_load-img,
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load:nth-child(4n+2) .fg-wiz__svc-face .file_load-img,
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load:nth-child(4n+3) .fg-wiz__svc-face .file_load-img,
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load:nth-child(4n+4) .fg-wiz__svc-face .file_load-img {
  border-color: transparent !important;
  box-shadow: none !important;
}
/* 120px !important on `.file_load img` has more classes than a short face
   selector, so the photo stayed 120px inside the larger circle and left a
   white crescent. This selector wins, and 86% meets the inner ring. */
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load .fg-wiz__svc-face .file_load-img img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .fg-wiz__svc-face .close_file {
  top: -4px !important;
  right: -4px !important;
  left: auto !important;
  margin: 0 !important;
  z-index: 4;
}
@media (max-width: 720px) {
  html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files,
  html body .fg-wiz .fg-wiz__svc .list_files {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body .fg-wiz .item_drop_wrap.fg-wiz__svc .fg-wiz__svc-face {
    width: 132px;
    height: 132px;
  }
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load textarea {
  display: block;
  width: 100%;
  max-width: 168px;
  margin: 10px auto 0 !important;
  min-height: 0 !important;
  height: 2.7em !important;
  max-height: 2.7em;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  color: #0066B2 !important;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load textarea {
    height: 4.2em !important;
    max-height: 4.2em !important;
  }
}
html body .fg-wiz .fg-wiz__field select#wiz_service_pick {
  display: block;
  width: 210px !important;
  max-width: 100% !important;
  text-align: center;
  text-align-last: center;
  padding-left: 16px !important;
  padding-right: 32px !important;
  color: #8B97B3;
  background-position: right 12px center;
}

/* Step 5 gallery thumbs — ровно 4 колонки квадратных плиток, как на странице
   карточки (fg-pro-gallery__photos-grid: repeat(4, 1fr)). Было flex с фикс.
   168px — на широком экране выходило 5 в ряд и вводило в заблуждение. */
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .fg-wiz__gal-files.list_files {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  flex: 1 1 240px !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
}
/* Квадратные плитки, скругление 14%, object-fit: cover — как у услуг. */
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .fg-wiz__gal-files .file_load {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .fg-wiz__gal-files .file_load .file_load-img,
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .fg-wiz__gal-files .file_load img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14% !important;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .fg-wiz__gal-files .file_load .file_load-img {
  position: relative;
  overflow: hidden !important;
  border: 1px solid #E3E8EF !important;
  background: #F4F8FC !important;
}

/* «Выбрать файл» on the video card jumps to the YouTube field. */
html body .fg-wiz .fg-wiz__yt-input.is-ask,
html body .fg-wiz .fg-wiz__yt-row input.is-ask {
  border-color: #0066B2 !important;
  box-shadow: 0 0 0 4px rgba(0, 102, 178, 0.28) !important;
  background: #f4f9fd !important;
}
html body .fg-wiz .fg-wiz__yt-label.is-ask {
  font-weight: 600;
  color: #0066B2;
}

/* Step 3 avatar sits under the hint, on its own line, and shows the same
   circle the crop dialog already previewed. A 12px radius was revealing
   the square corners the circle had hidden. */
html body .fg-wiz .fg-wiz__photo-row.item_drop_wrap .list_files {
  display: block !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 0 !important;
  overflow: visible !important;
  grid-template-columns: none !important;
}
html body .fg-wiz .fg-wiz__photo-row.item_drop_wrap .list_files .file_load {
  width: 140px !important;
  max-width: 140px !important;
  height: 140px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
}
html body .fg-wiz .fg-wiz__photo-row.item_drop_wrap .list_files .file_load img {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  display: block !important;
}
html body .fg-wiz .fg-wiz__photo-row.item_drop_wrap .list_files .file_load .close_file {
  top: -8px !important;
  right: -8px !important;
  left: auto !important;
  margin: 0 !important;
}

/* Шаг 4: подпись услуги показывает весь текст — поле растёт по высоте (JS + field-sizing). */
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load textarea,
html body .fg-wiz .fg-wiz__svc .file_load textarea {
	max-height: none !important;
	overflow: hidden !important;
	field-sizing: content;
}

/* Step 4 services, 2026-10-22: rounded squares instead of circles (as on the card),
   full caption (3–5 lines grow, no clipping), drag to reorder. */
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .fg-wiz__svc-face::before {
  border-radius: 18%;
  background: linear-gradient(135deg, #ee8fd4 0%, #c9a0f4 45%, #8ec0ff 100%);
  padding: 3px;
  box-sizing: border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load .fg-wiz__svc-face .file_load-img,
html body .fg-wiz .item_drop_wrap.fg-wiz__svc .list_files .file_load .fg-wiz__svc-face .file_load-img img {
  border-radius: 14% !important;
}
/* Drag-to-reorder — общее для услуг (шаг 4) и галереи работ (шаг 5):
   обёртка .item_drop_wrap.fg-wiz__drag, ручка задаётся в JS. */
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load .fg-wiz__svc-face,
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .file_load-img {
  cursor: grab;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load .fg-wiz__svc-face img,
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .file_load-img img {
  -webkit-user-drag: none;
  pointer-events: none;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load textarea,
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load textarea:focus {
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-src {
  opacity: .45;
  outline: 2px dashed #8ec0ff;
  outline-offset: 2px;
  border-radius: 18px;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-src .close_file {
  visibility: hidden;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-ghost {
  position: fixed !important;
  z-index: 1000;
  pointer-events: none;
  margin: 0 !important;
  opacity: .95;
  transform: scale(1.04);
  filter: drop-shadow(0 12px 22px rgba(20, 50, 100, .25));
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-ghost textarea,
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-ghost .close_file,
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-ghost .fg-wiz__svc-face::after,
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load.is-drag-ghost .file_load-img::after {
  display: none !important;
}
/* «Перетащите» на фото: при наведении мышью; на телефоне — всегда маленький значок. */
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load .fg-wiz__svc-face::after,
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .file_load-img::after {
  content: "\2725  Перетащите";
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 40, 90, .78);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load .fg-wiz__svc-face:hover::after,
html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .file_load-img:hover::after {
  opacity: 1;
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files.is-dragging .file_load .fg-wiz__svc-face::after,
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files.is-dragging .file_load .file_load-img::after {
  opacity: 0;
}
@media (hover: none) {
  html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files .file_load .fg-wiz__svc-face::after,
  html body .fg-wiz .item_drop_wrap.fg-wiz__gal .list_files .file_load .file_load-img::after {
    content: "\2725";
    padding: 3px 7px;
    opacity: .85;
  }
}
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files.is-dragging .fg-wiz__svc-face,
html body .fg-wiz .item_drop_wrap.fg-wiz__drag .list_files.is-dragging .file_load-img {
  cursor: grabbing;
}
.fg-wiz__svc-hint {
  margin: 14px 0 4px;
  color: #5B6D9C;
  font-size: 14px;
}
