/* Страница «Импорт кошелька» (import.html). */

.im-main { padding: 64px 40px 96px; gap: 88px; }

.im-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 48px; align-items: center; }
.im-hero-text { display: flex; flex-direction: column; gap: 22px; }
.im-h1 { margin: 0; font-weight: 800; font-size: clamp(42px, 5vw, 68px); line-height: 1.03; letter-spacing: -0.04em; }
.im-sub { margin: 0; font-size: 19px; line-height: 1.55; color: #616161; max-width: 46ch; }

/* Форма */
.im-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.im-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.im-label { font-size: 15px; font-weight: 700; }
.im-count { height: 28px; padding: 0 12px; border-radius: 999px; background: #F5F5F7; color: #616161; font-size: 13px; font-weight: 700; display: flex; align-items: center; }
.im-count.is-valid { background: #E6FFF0; color: #0A7A3C; }
.im-field { position: relative; border-radius: 24px; background: #FFFFFF; box-shadow: 0 0 0 1px #E2E2E6, 0 12px 32px rgba(27,27,28,0.06); }
.im-field.is-valid { box-shadow: 0 0 0 2px #48FF91, 0 12px 32px rgba(27,27,28,0.06); }
.im-field.is-error { box-shadow: 0 0 0 2px #D0021B, 0 12px 32px rgba(27,27,28,0.06); }
.im-field textarea { display: block; width: 100%; box-sizing: border-box; padding: 20px 22px 64px; border: 0; border-radius: 24px; background: transparent; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 17px; line-height: 1.6; color: #1B1B1C; outline: none; resize: none; }
.im-field-btns { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.im-clear { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #E2E2E6; background: #FFFFFF; color: #616161; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.im-clear:hover { color: #0500FF; border-color: #0500FF; }
.im-paste { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: #0500FF; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.im-paste:hover { background: #2E2BFF; }
.im-hint { font-size: 14px; line-height: 1.5; color: #616161; }
.im-hint.is-error { color: #D0021B; }
.im-captcha { display: flex; min-height: 65px; }
.im-submit { height: 64px; border-radius: 999px; border: 0; background: #0500FF; color: #FFFFFF; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; }
.im-submit:hover { background: #2E2BFF; }
.im-submit:active { background: #0400CC; }
.im-error { margin: 0; text-align: center; font-size: 15px; line-height: 1.5; font-weight: 600; color: #D0021B; }
.im-error.is-info { color: #1B1B1C; }
.im-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #616161; }
.im-foot a { color: #0500FF; font-weight: 700; }

/* Успех */
@keyframes vl-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes vl-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes vl-ring { 0% { box-shadow: 0 0 0 0 rgba(72,255,145,0.5); } 100% { box-shadow: 0 0 0 22px rgba(72,255,145,0); } }
.im-done { margin-top: 6px; border-radius: 32px; background: #F2F2FF; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.im-check { width: 96px; height: 96px; border-radius: 50%; background: #48FF91; display: flex; align-items: center; justify-content: center; animation: vl-pop 0.5s cubic-bezier(.2,.9,.3,1.3) both, vl-ring 1.4s ease-out 0.3s 2; }
.im-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: vl-draw 0.4s ease-out 0.35s forwards; }
.im-done-t { font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.im-done-d { font-size: 16px; line-height: 1.55; color: #616161; max-width: 40ch; }
.im-done-btns { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.im-home { height: 52px; padding: 0 26px; border-radius: 999px; background: #0500FF; color: #FFFFFF; font-size: 16px; font-weight: 700; display: flex; align-items: center; }
.im-home:hover { background: #2E2BFF; color: #FFFFFF; }
.im-again { height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid #E2E2E6; background: #FFFFFF; color: #1B1B1C; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.im-again:hover { border-color: #0500FF; color: #0500FF; }

/* Иллюстрация справа */
.im-art { position: relative; aspect-ratio: 1 / 1; border-radius: 40px; background: #F2F2FF; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.im-art-blob1 { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #48FF91; opacity: 0.35; right: -18%; top: -14%; }
.im-art-blob2 { position: absolute; width: 50%; aspect-ratio: 1; border-radius: 50%; background: #0500FF; opacity: 0.08; left: -14%; bottom: -16%; }
.im-card { position: relative; width: 62%; border-radius: 28px; background: #FFFFFF; padding: 22px 22px 12px; box-shadow: 0 24px 60px rgba(5,0,255,0.14); display: flex; flex-direction: column; }
.im-card-l { font-size: 13px; font-weight: 600; color: #616161; }
.im-card-bal { font-family: 'Manrope', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 10px; }
.im-coins { display: flex; flex-direction: column; box-shadow: inset 0 1px 0 #EEEEF0; }
.im-coin { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.im-coin-i { width: 36px; height: 36px; border-radius: 50%; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px; flex: none; }
.im-coin-n { flex: 1; font-size: 15px; font-weight: 600; color: #1B1B1C; }
.im-coin-ok { width: 22px; height: 22px; border-radius: 50%; background: #E6FFF0; display: flex; align-items: center; justify-content: center; }
.imp-sync { position: absolute; left: 7%; bottom: 8%; border-radius: 22px; background: #0500FF; color: #FFFFFF; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 40px rgba(5,0,255,0.25); }
.imp-sync-dot { width: 10px; height: 10px; border-radius: 50%; background: #48FF91; box-shadow: 0 0 0 4px rgba(72,255,145,0.3); }
.imp-sync-t { font-size: 14px; font-weight: 700; }

/* Сети, шаги, баннер безопасности */
.im-stack { display: flex; flex-direction: column; gap: 32px; }
.im-net-h { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; text-align: center; }
.im-steps-h { margin: 0; font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.im-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.im-step { border-radius: 28px; background: #F5F5F7; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.im-step-n { width: 44px; height: 44px; border-radius: 50%; background: #0500FF; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; }
.im-step-t { margin-top: 6px; font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.im-step-d { font-size: 15px; line-height: 1.55; color: #616161; }
.im-sec { border-radius: 40px; background: #0500FF; color: #FFFFFF; padding: clamp(36px, 5vw, 64px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.im-sec-blob { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #48FF91; opacity: 0.2; right: -120px; top: -160px; }
.im-sec-icon { position: relative; width: 72px; height: 72px; flex: none; border-radius: 22px; background: #48FF91; display: flex; align-items: center; justify-content: center; }
.im-sec-text { position: relative; flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.im-sec-h2 { margin: 0; font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; color: #FFFFFF; }
.im-sec-p { margin: 0; font-size: 17px; line-height: 1.55; color: #FFFFFF; }
.im-sec-btn { position: relative; height: 56px; padding: 0 28px; border-radius: 999px; background: #FFFFFF; color: #1B1B1C; font-size: 16px; font-weight: 700; display: flex; align-items: center; }
.im-sec-btn:hover { background: #48FF91; color: #1B1B1C; }

@media (max-width: 768px) {
  .im-main { padding: 32px 16px 64px; gap: 44px; }
  .im-hero { display: flex; flex-direction: column; gap: 28px; align-items: normal; }
  .im-h1 { font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; }
  .im-sub { font-size: 17px; max-width: none; }
  .im-done { border-radius: 28px; padding: 32px 22px; }
  .im-art { border-radius: 32px; padding: 36px 20px 100px; aspect-ratio: auto; }
  .imp-sync { left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; }
  .im-card { width: 100%; max-width: 320px; border-radius: 24px; }
  .im-card-bal { font-size: 26px; margin: 2px 0 6px; }
  .im-net-h { font-size: 26px; }
  .im-steps-h { font-size: 28px; line-height: 1.1; }
  .im-steps { display: flex; flex-direction: column; gap: 12px; }
  .im-step { border-radius: 24px; padding: 22px; gap: 10px; }
  .im-step-t { font-size: 19px; }
  .im-sec { padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 18px; flex-wrap: nowrap; }
  .im-sec-text { flex: none; }
  .im-sec-h2 { font-size: 24px; line-height: 1.12; }
}
