/* landing-neuro-edu.css */

:root {
  --ne-bg: #f3f6fb;
  --ne-bg-soft: #eef3ff;
  --ne-card: #ffffff;
  --ne-card-border: #d8e2f1;
  --ne-text: #192132;
  --ne-muted: #6d7a92;
  --ne-accent: #2f7ef5;
  --ne-accent-2: #79a7ff;
  --ne-good: #2eaf78;
  --ne-bad: #df4e66;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--ne-bg);
  color: var(--ne-text);
}

.ne-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(47, 126, 245, 0.1), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(121, 167, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.ne-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 141, 177, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 141, 177, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.65), transparent 80%);
}

.ne-shape {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(76px);
  opacity: 0.34;
}

.ne-shape-a {
  top: -72px;
  left: -56px;
  background: rgba(47, 126, 245, 0.38);
}

.ne-shape-b {
  right: -60px;
  bottom: -78px;
  background: rgba(121, 167, 255, 0.42);
}

.ne-app {
  position: relative;
  z-index: 1;
}

.ne-screen {
  min-height: 100dvh;
  width: 100%;
  padding: 28px 16px 32px;
}

.ne-screen--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ne-hero {
  margin: 0 auto 20px;
  max-width: 720px;
  text-align: center;
}

.ne-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #c9daf5;
  background: #ffffff;
  color: #35507e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ne-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ne-accent);
}

.ne-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 5.7vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1b2a44;
}

.ne-hero p {
  margin: 0 auto;
  max-width: 600px;
  color: #51617b;
  line-height: 1.58;
  font-size: 15px;
}

.ne-auth-card {
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  border-radius: 20px;
  border: 1px solid var(--ne-card-border);
  background: var(--ne-card);
  box-shadow: 0 18px 36px rgba(43, 72, 117, 0.12);
  padding: 22px 18px;
}

.ne-task-card {
  max-width: 760px;
}

.ne-auth-card--compact {
  max-width: 420px;
}

.ne-auth-card h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.01em;
}

.ne-sub {
  margin: 10px 0 14px;
  color: #5f6f87;
  line-height: 1.5;
}

.ne-auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ne-lock {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecf3ff;
  border: 1px solid #c8dbff;
}

.ne-auth-head strong {
  display: block;
  font-size: 16px;
}

.ne-auth-head p {
  margin: 2px 0 0;
  color: var(--ne-muted);
  font-size: 13px;
}

.ne-label {
  display: block;
  font-size: 14px;
  margin-bottom: 9px;
  color: #2e3e57;
}

.ne-phone-wrap {
  position: relative;
}

.ne-phone-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.ne-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #30496b;
}

.ne-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #cddaf0;
  background: #ffffff;
  color: var(--ne-text);
  font: inherit;
  padding: 15px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ne-input.phone-input {
  padding-left: 48px;
  letter-spacing: 1px;
}

.ne-input:focus {
  border-color: rgba(47, 126, 245, 0.78);
  box-shadow: 0 0 0 3px rgba(47, 126, 245, 0.14);
}

.ne-input::placeholder {
  color: #91a0b8;
}

.ne-hint {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--ne-muted);
}

.ne-task-input {
  min-height: 170px;
  resize: vertical;
  line-height: 1.52;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 14px;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-main {
  color: #ffffff;
  background: linear-gradient(135deg, #2f7ef5 0%, #4b90f6 100%);
}

.btn-main:not(:disabled):hover {
  opacity: 0.96;
}

.btn-main:disabled {
  opacity: 0.52;
  cursor: default;
}

.btn-main.loading {
  opacity: 0.72;
  pointer-events: none;
}

.btn-ghost {
  color: #435774;
  background: #f5f8ff;
  border: 1px solid #d5e1f5;
}

.ne-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ne-submit {
  margin-top: 12px;
}

.ne-task-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.ne-task-actions .ne-submit {
  margin-top: 0;
}

.ne-prompt-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ne-prompt-chip {
  border: 1px solid #d6e3f7;
  background: #f7faff;
  color: #304d76;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  padding: 8px 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ne-prompt-chip:hover {
  background: #eef5ff;
  border-color: #bed4f6;
}

.ne-answer-wrap {
  margin-top: 14px;
  border: 1px solid #d8e5f7;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.ne-answer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ne-answer-head strong {
  font-size: 14px;
  color: #1f385d;
}

.ne-answer-head small {
  color: #5f7394;
  font-size: 12px;
}

.ne-answer {
  margin: 0;
  font: inherit;
  color: #223554;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.52;
  max-height: 360px;
  overflow: auto;
}

.ne-content {
  width: 100%;
  max-width: 980px;
  margin: 26px auto 0;
  display: grid;
  gap: 14px;
}

.ne-content-block {
  border: 1px solid #d8e2f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(43, 72, 117, 0.08);
  padding: 18px 16px;
}

.ne-content-block h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #1f304c;
}

.ne-feature-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

.ne-feature {
  border: 1px solid #dee7f6;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.ne-feature strong {
  display: block;
  font-size: 15px;
  color: #1f365d;
}

.ne-feature p {
  margin: 6px 0 0;
  color: #5d6f8b;
  line-height: 1.45;
  font-size: 14px;
}

.ne-step-list {
  display: grid;
  gap: 10px;
}

.ne-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #deebff;
  background: #f7faff;
}

.ne-step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
  background: var(--ne-accent);
}

.ne-step strong {
  color: #20385f;
  font-size: 15px;
}

.ne-step p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #5d6f8b;
  line-height: 1.45;
}

.ne-faq-list {
  display: grid;
  gap: 10px;
}

.ne-faq-item {
  border: 1px solid #deebff;
  border-radius: 12px;
  background: #f9fbff;
  padding: 11px 12px;
}

.ne-faq-item strong {
  display: block;
  color: #20385f;
  font-size: 15px;
}

.ne-faq-item p {
  margin: 6px 0 0;
  color: #60718d;
  line-height: 1.45;
  font-size: 14px;
}

.ne-footer-note {
  text-align: center;
  color: #5f7190;
  font-size: 13px;
  margin-top: 2px;
}

.ne-site-footer {
  width: 100%;
  max-width: 980px;
  margin: 20px auto 0;
  border-top: 1px solid #d8e2f1;
  padding: 14px 4px 8px;
}

.ne-site-footer__title {
  text-align: center;
  color: #243a5d;
  font-size: 14px;
  font-weight: 700;
}

.ne-site-footer__meta {
  margin-top: 7px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #5f7190;
  font-size: 12px;
  line-height: 1.42;
}

.tg-contact-block {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.tg-contact-block.vis {
  display: flex;
}

.tg-manual-link {
  border: none;
  background: transparent;
  color: #2f72d2;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 0;
}

.manual-phone-block {
  display: block;
}

.ne-auth-flow {
  max-width: 760px;
}

.ne-country-wrap {
  position: relative;
}

.ne-country-btn {
  height: 100%;
  min-width: 98px;
  border-radius: 14px;
  border: 1px solid #cddaf0;
  background: #ffffff;
  color: #243a5d;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ne-country-btn .c-code {
  color: #486389;
}

.ne-country-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid #d5e2f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 52, 84, 0.16);
  max-height: 270px;
  overflow: auto;
  padding: 5px;
  z-index: 12;
  display: none;
}

.ne-country-drop.open {
  display: block;
}

.ne-country-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  color: #253d5f;
  font: inherit;
  font-size: 13px;
  text-align: left;
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
}

.ne-country-opt:hover {
  background: #f4f8ff;
}

.ne-country-opt.active {
  background: #eaf2ff;
}

.ne-country-opt__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ne-country-opt__code {
  color: #4f698e;
}

/* neuro_edu_auth: phone row + country selector usability fixes */
html.land-neuro-edu-auth .ne-auth-flow {
  overflow: visible;
}

html.land-neuro-edu-auth .ne-phone-row {
  margin-bottom: 10px;
}

html.land-neuro-edu-auth .ne-phone-row .phone-input {
  padding-left: 14px;
  letter-spacing: 0.02em;
}

html.land-neuro-edu-auth .ne-country-btn {
  min-width: 114px;
  justify-content: center;
  padding: 0 12px;
}

html.land-neuro-edu-auth .ne-country-btn .c-iso {
  display: none;
}

html.land-neuro-edu-auth .ne-country-drop {
  right: auto;
  width: min(320px, calc(100vw - 68px));
  max-height: 240px;
  z-index: 44;
}

html.land-neuro-edu-auth .ne-country-opt {
  padding: 9px 10px;
}

html.land-neuro-edu-auth .ne-country-opt__name {
  max-width: none;
}

html.land-neuro-edu-auth #btn-login {
  margin-top: 2px;
}

@media (min-width: 700px) {
  html.land-neuro-edu-auth .ne-country-drop {
    top: auto;
    bottom: calc(100% + 8px);
  }
}

@media (max-width: 699px) {
  html.land-neuro-edu-auth .ne-country-drop {
    top: calc(100% + 6px);
    bottom: auto;
  }
}

.code-title {
  margin: 0;
  color: #1f365c;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.code-sub {
  margin: 9px 0 12px;
  color: #5d6f8c;
  line-height: 1.45;
}

.password-input {
  margin-bottom: 4px;
}

.ne-auth-actions {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.terms {
  margin: 10px 0 0;
  color: #647792;
  font-size: 12px;
  line-height: 1.45;
}

.terms a {
  color: #2f72d2;
}

.msg {
  min-height: 18px;
  line-height: 1.4;
  font-size: 13px;
}

.msg.e {
  color: transparent;
}

.msg.e.show {
  color: var(--ne-bad);
}

.ne-timer {
  margin-top: 9px;
  font-size: 13px;
  color: #556680;
}

.ne-timer b {
  color: #2f7ef5;
}

.otp-grid,
#otpGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.otp-input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #cddaf0;
  background: #ffffff;
  color: #1b2a44;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  outline: none;
}

.otp-input:focus {
  border-color: rgba(47, 126, 245, 0.78);
  box-shadow: 0 0 0 3px rgba(47, 126, 245, 0.14);
}

.ne-success {
  text-align: center;
}

.ne-success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  background: radial-gradient(circle at 35% 35%, #55d39f, var(--ne-good));
  box-shadow: 0 10px 22px rgba(46, 175, 120, 0.26);
}

.view {
  display: none !important;
}

.view.active {
  display: block !important;
}

html.land-neuro-edu .ne-screen.view.active {
  display: flex !important;
  flex-direction: column;
}

html.land-neuro-edu-auth .ne-auth-flow .view.active {
  display: block !important;
}

@media (min-width: 900px) {
  .ne-screen {
    padding-top: 44px;
  }

  .ne-auth-card {
    padding: 26px 24px;
  }

  .ne-content {
    margin-top: 30px;
  }

  .ne-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ne-content-block {
    padding: 20px;
  }

  .ne-task-actions {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .ne-auth-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
