@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #141b38;
  background: #fff;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #aa71f1; outline-offset: 3px; }
.wrap { width: min(100% - 48px, 1020px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 12px; padding: 12px 16px; border-radius: 10px; background: #fff; box-shadow: 0 10px 25px #12183230; }
.skip-link:focus { top: 12px; }

.register-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid #ececf4; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; font-family: Outfit, system-ui, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.055em; }
.logo img { display: block; width: 46px; height: 46px; border-radius: 12px; }
.logo strong { color: #8546eb; font-weight: 800; }
.register-header nav { display: flex; align-items: center; gap: 27px; color: #626c84; font-size: 13px; font-weight: 700; }
.register-header nav a:hover, .form-heading a:hover { color: #7840dc; }
.login-link { padding: 10px 15px; border: 1px solid #dcd5eb; border-radius: 10px; color: #753bd4; }
.login-link span { margin-left: 4px; }

.register-main { padding-block: 68px 58px; }
.intro { max-width: 800px; margin-bottom: 56px; }
.eyebrow { display: inline-block; color: #8244dc; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.intro h1 { max-width: 800px; margin: 15px 0 20px; font-family: Outfit, system-ui, sans-serif; font-size: clamp(44px, 6.5vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -.055em; }
.intro p { max-width: 730px; margin: 0; color: #616b83; font-size: 17px; line-height: 1.7; }

.registration-form { padding: 42px; border: 1px solid #e4e4ef; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(33, 20, 76, .08); }
.form-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 37px; }
.form-heading h2 { margin: 7px 0 0; font-family: Outfit, system-ui, sans-serif; font-size: 34px; line-height: 1.1; letter-spacing: -.04em; }
.form-heading p { margin: 0 0 3px; color: #68728a; font-size: 13px; }
.form-heading a { color: #753bd4; font-weight: 800; }

.plan-fieldset { min-width: 0; margin: 0 0 42px; padding: 0; border: 0; }
.plan-fieldset legend, .form-section-heading h3 { margin: 0 0 17px; font-family: Outfit, system-ui, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-option { position: relative; display: flex; gap: 12px; min-height: 160px; padding: 17px; border: 1px solid #dce0eb; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.plan-option:hover { border-color: #af83ee; }
.plan-option:focus-within { outline: 3px solid #c8a4fa; outline-offset: 2px; }
.plan-option.is-selected { border-color: #8748e6; background: #faf7ff; box-shadow: 0 0 0 1px #8748e6 inset; }
.plan-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-copy { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.plan-copy small { color: #8b4de4; font-size: 11px; font-weight: 800; }
.plan-copy strong { font-family: Outfit, system-ui, sans-serif; font-size: 18px; line-height: 1.15; }
.plan-copy > span { color: #67718a; font-size: 12px; line-height: 1.5; }
.plan-check { display: grid; place-items: center; flex: none; align-self: flex-start; width: 21px; height: 21px; margin-left: auto; border: 1px solid #cfd4e0; border-radius: 50%; color: transparent; font-size: 12px; }
.is-selected .plan-check { border-color: #8748e6; background: #8748e6; color: #fff; }

.form-section-heading { padding-top: 32px; border-top: 1px solid #e9eaf1; }
.form-section-heading h3 { margin-bottom: 4px; }
.form-section-heading p { margin: 0 0 24px; color: #69738b; font-size: 13px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 18px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: #36405a; font-size: 13px; font-weight: 800; }
.field > span { color: #8948e3; }
.field-full { grid-column: 1 / -1; }
.field input, .field select { display: block; width: 100%; min-height: 56px; padding: 13px 16px; border: 1px solid #d7dce8; border-radius: 11px; background: #fff; color: #151b36; font-size: 15px; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.field input::placeholder { color: #9aa3b7; }
.field input:focus, .field select:focus { border-color: #9155e8; outline: none; box-shadow: 0 0 0 4px rgba(145, 85, 232, .13); }
.menu-url-field { gap: 8px; padding: 18px; border: 1px solid #e5d8fb; border-radius: 13px; background: #faf7ff; }
.menu-url-field label { color: #6f36c6; }
.menu-url-wrap { position: relative; }
.menu-url-wrap > span { position: absolute; top: 50%; left: 17px; transform: translateY(-50%); color: #8748e6; font-size: 22px; font-weight: 700; }
.menu-url-wrap input { padding-left: 45px; border-color: #dbcaf5; color: #4c2591; background: #fff; font-size: clamp(12px, 2.2vw, 16px); font-weight: 800; }
.menu-url-field small { color: #77658e; font-size: 11px; font-weight: 500; line-height: 1.5; }
[hidden] { display: none !important; }

.form-footer { margin-top: 36px; }
.submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 14px 22px; border: 0; border-radius: 11px; background: linear-gradient(120deg, #9655f0, #7740dc); color: #fff; box-shadow: 0 12px 26px rgba(99, 46, 199, .23); font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 17px 30px rgba(99, 46, 199, .32); }
.form-footer p { max-width: 600px; margin: 15px 0 0; color: #788198; font-size: 11px; line-height: 1.6; }
.register-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; color: #858da2; font-size: 11px; }
.register-bottom span { color: #6a35c7; font-family: Outfit, system-ui, sans-serif; font-size: 18px; font-weight: 800; white-space: nowrap; }
.register-bottom p { max-width: 560px; margin: 0; line-height: 1.5; text-align: right; }

@media (max-width: 750px) {
  .wrap { width: min(100% - 36px, 1020px); }
  .register-main { padding-top: 48px; }
  .intro { margin-bottom: 38px; }
  .intro p { font-size: 15px; }
  .registration-form { padding: 28px; }
  .plan-options { grid-template-columns: 1fr; }
  .plan-option { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 30px, 1020px); }
  .register-header { min-height: 78px; gap: 10px; }
  .logo { gap: 7px; font-size: 21px; }
  .logo img { width: 36px; height: 36px; }
  .register-header nav { gap: 10px; font-size: 11px; }
  .register-header nav a:first-child { display: none; }
  .login-link { padding: 8px 9px; }
  .intro h1 { font-size: clamp(39px, 11vw, 52px); }
  .registration-form { padding: 24px 19px; border-radius: 17px; }
  .form-heading { display: block; margin-bottom: 29px; }
  .form-heading h2 { font-size: 29px; }
  .form-heading p { margin-top: 12px; }
  .menu-url-wrap > span { display: none; }
  .menu-url-wrap input { padding-left: 12px; font-size: 11px; }
  .submit-button { width: 100%; }
  .register-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .register-bottom p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
