/* Нейропомощник · отдельная страница СдалВсё.рф */
.page-neuro .community-popup { display: none !important; }

.neuro-page {
  --np-navy: #0c2340;
  --np-navy-2: #07182d;
  --np-teal: #138b9d;
  --np-teal-dark: #0d7484;
  --np-teal-soft: #e8f6f7;
  --np-paper: #ffffff;
  --np-canvas: #f3f6f8;
  --np-ink: #142033;
  --np-copy: #526071;
  --np-muted: #7c8998;
  --np-line: #dce4e8;
  --np-line-strong: #c7d2d9;
  --np-danger: #c94b52;
  --np-warning: #b7791f;
  --np-success: #16805e;
  background: var(--np-canvas);
  color: var(--np-ink);
}

.neuro-page h1,
.neuro-page h2,
.neuro-page h3 { font-family: var(--font-body); color: var(--np-ink); }

.neuro-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 86px) 0 clamp(86px, 10vw, 132px);
  background:
    radial-gradient(circle at 88% 16%, rgba(36, 188, 193, .16), transparent 30%),
    linear-gradient(125deg, var(--np-navy-2), var(--np-navy));
}
.neuro-intro::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  right: -210px;
  bottom: -300px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .02);
}
.neuro-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}
.neuro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #85d6dc;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.neuro-kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.neuro-intro h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-bottom: 22px;
}
.neuro-intro-copy > p {
  max-width: 700px;
  color: #c6d1dc;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.75;
}
.neuro-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.neuro-trust span { color: #eef7f8; font-size: .83rem; font-weight: 600; }
.neuro-trust span::before { content: '✓'; color: #6ed2d7; margin-right: 8px; }
.neuro-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(14px);
}
.neuro-summary-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 15px;
  background: #fff;
  color: var(--np-teal-dark);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.05em;
}
.neuro-summary strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.neuro-summary p { color: #aebfce; font-size: .8rem; line-height: 1.5; }

.neuro-tool { position: relative; z-index: 2; margin-top: clamp(-64px, -6vw, -48px); padding-bottom: clamp(64px, 8vw, 104px); }
.neuro-widget {
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: 22px;
  background: var(--np-paper);
  box-shadow: 0 24px 70px rgba(6, 25, 46, .13);
}
.neuro-page .tabs {
  display: flex;
  gap: 4px;
  padding: 9px;
  border-bottom: 1px solid var(--np-line);
  background: #f8fafb;
}
.neuro-page .tab {
  position: relative;
  flex: 1 1 0;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 11px;
  color: var(--np-copy);
  font-size: .86rem;
  font-weight: 700;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.neuro-page .tab:hover { color: var(--np-ink); background: #edf2f4; }
.neuro-page .tab.active { color: #fff; background: var(--np-navy); box-shadow: 0 6px 18px rgba(12, 35, 64, .18); }
.neuro-page .workspace { display: none; padding: clamp(22px, 4vw, 40px); }
.neuro-page .workspace.active { display: block; animation: neuro-in .2s ease both; }
@keyframes neuro-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.neuro-work-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 20px; }
.neuro-page .panel {
  border: 1px solid var(--np-line);
  border-radius: 16px;
  background: var(--np-paper);
  padding: clamp(20px, 3vw, 28px);
}
.neuro-page .panel + .panel { margin-top: 20px; }
.neuro-work-grid .panel + .panel { margin-top: 0; }
.neuro-page .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.neuro-page .panel-head > div { display: flex; align-items: center; gap: 10px; }
.neuro-page .panel-head h2 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -.015em; }
.neuro-page .panel-head > span { color: var(--np-muted); font-size: .72rem; font-weight: 700; text-align: right; }
.panel-step {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 25px;
  padding-inline: 7px;
  border-radius: 7px;
  background: var(--np-teal-soft);
  color: var(--np-teal-dark);
  font-size: .67rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--np-line-strong);
  border-radius: 11px;
  background: #f8fafb;
  color: var(--np-copy);
  cursor: pointer;
  transition: border .15s ease, background .15s ease;
}
.file-upload:hover, .file-upload.dragover { border-color: var(--np-teal); background: var(--np-teal-soft); }
.file-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #fff; color: var(--np-teal-dark); border: 1px solid var(--np-line); font-size: 1.15rem; }
.file-upload > span:nth-of-type(2) { font-size: .77rem; }
.file-upload strong { color: var(--np-ink); }
.file-upload small { margin-left: auto; color: var(--np-muted); font-size: .68rem; white-space: nowrap; }

.neuro-page textarea,
.neuro-page select {
  width: 100%;
  border: 1px solid var(--np-line-strong);
  border-radius: 11px;
  background: #fbfcfd;
  color: var(--np-ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.neuro-page textarea:focus,
.neuro-page select:focus { border-color: var(--np-teal); background: #fff; box-shadow: 0 0 0 3px rgba(19, 139, 157, .11); }
.neuro-page textarea { min-height: 330px; padding: 17px; resize: vertical; font-size: .9rem; line-height: 1.7; }
.neuro-page textarea::placeholder { color: #9aa6b2; }
.neuro-page select { min-height: 45px; padding: 9px 36px 9px 12px; font-size: .83rem; font-weight: 600; }
.neuro-page .actions-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.neuro-page .secondary-btn,
.neuro-page .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 800;
  transition: transform .14s ease, background .14s ease, border .14s ease, box-shadow .14s ease;
}
.neuro-page .secondary-btn { border: 1px solid var(--np-line-strong); background: #fff; color: var(--np-copy); }
.neuro-page .secondary-btn:hover { border-color: var(--np-teal); color: var(--np-teal-dark); background: var(--np-teal-soft); }
.neuro-page .primary-btn { width: 100%; margin-top: 20px; background: var(--np-teal); color: #fff; box-shadow: 0 8px 22px rgba(19, 139, 157, .22); }
.neuro-page .primary-btn:hover { background: var(--np-teal-dark); transform: translateY(-1px); box-shadow: 0 11px 26px rgba(19, 139, 157, .27); }
.neuro-page button:focus-visible, .neuro-page summary:focus-visible { outline: 3px solid rgba(19, 139, 157, .28); outline-offset: 2px; }

.settings-grid { display: grid; gap: 17px; }
.settings-grid > label:not(.check) { display: grid; gap: 8px; color: var(--np-copy); font-size: .77rem; font-weight: 700; }
.setting-hint { color: var(--np-muted); font-size: .66rem; font-weight: 500; line-height: 1.5; }
.settings-grid input[type="range"] { width: 100%; accent-color: var(--np-teal); }
.range-legend { display: flex; justify-content: space-between; color: var(--np-muted); font-size: .64rem; font-weight: 600; }
.range-legend i { font-style: normal; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--np-line);
  border-radius: 10px;
  background: #fbfcfd;
  cursor: pointer;
}
.check input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--np-teal); }
.check span { display: grid; gap: 2px; }
.check strong { color: var(--np-ink); font-size: .76rem; }
.check small { color: var(--np-muted); font-size: .65rem; line-height: 1.4; }
.process-hint { margin: 9px auto 0; color: var(--np-muted); font-size: .66rem; text-align: center; }

.progress-wrap { margin-top: 17px; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--np-copy); font-size: .7rem; font-weight: 700; }
.progress-bar { overflow: hidden; height: 6px; border-radius: 100px; background: #dfe7ea; }
#progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--np-teal); transition: width .2s ease; }
.report { margin-top: 18px; padding: 15px; border-radius: 11px; background: #f5f8f9; color: var(--np-copy); font-size: .76rem; line-height: 1.65; }
.report ul { display: grid; gap: 5px; margin-top: 7px; }
.report li::before { content: '—'; margin-right: 6px; color: var(--np-teal); }

.result-panel textarea { min-height: 250px; }
.result-note { margin: -4px 0 14px; padding: 12px 14px; border: 1px solid #efd9a5; border-radius: 10px; background: #fff9e9; color: #745916; font-size: .75rem; line-height: 1.6; }
.diff-summary { display: flex; gap: 16px; margin: 12px 0; color: var(--np-copy); font-size: .76rem; }
.diff-content { padding: 17px; border: 1px solid var(--np-line); border-radius: 11px; background: #fbfcfd; font-size: .84rem; line-height: 1.8; }
.diff-del { padding: 1px 3px; color: #9e363d; background: #fce9ea; text-decoration-thickness: 1px; }
.diff-add { padding: 1px 3px; color: #146c50; background: #e4f6ee; text-decoration: none; }

.detector-input { max-width: 860px; margin-inline: auto; }
.detector-input textarea { min-height: 260px; margin-top: 18px; }
.panel-copy { color: var(--np-copy); font-size: .84rem; }
.risk-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.risk-score { font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.risk-title { margin-top: 6px; color: var(--np-copy); font-size: .76rem; font-weight: 700; }
.risk-bar { overflow: hidden; height: 10px; border-radius: 100px; background: #e5ebee; }
.risk-bar > div { height: 100%; width: 0; border-radius: inherit; transition: width .35s ease; }
.lvl-low { color: var(--np-success); }
.risk-bar .lvl-low { background: var(--np-success); }
.lvl-mid { color: var(--np-warning); }
.risk-bar .lvl-mid { background: var(--np-warning); }
.lvl-high { color: var(--np-danger); }
.risk-bar .lvl-high { background: var(--np-danger); }
.highlight-box { margin-top: 18px; padding: 17px; border: 1px solid var(--np-line); border-radius: 11px; background: #fbfcfd; color: var(--np-copy); font-size: .84rem; line-height: 1.8; }
.highlight-box mark { padding: 1px 3px; border-radius: 3px; color: #84353b; background: #fbe3e5; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability-card { min-height: 220px; padding: 25px; border: 1px solid var(--np-line); border-radius: 15px; background: #fbfcfd; }
.capability-card > span { display: block; margin-bottom: 38px; color: var(--np-teal); font-size: .7rem; font-weight: 800; letter-spacing: .09em; }
.capability-card h2 { font-size: 1.05rem; margin-bottom: 10px; }
.capability-card p { color: var(--np-copy); font-size: .79rem; line-height: 1.7; }
.engine-note { display: grid; grid-template-columns: 180px 1fr; gap: 25px; margin-top: 18px; padding: 22px 25px; border-radius: 14px; background: var(--np-navy); }
.engine-note strong { color: #fff; }
.engine-note p { color: #b9c8d5; font-size: .79rem; line-height: 1.7; }

.neuro-seo { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--np-line); background: var(--np-canvas); }
.neuro-seo-head { max-width: 760px; margin-bottom: 38px; }
.neuro-seo-head h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.035em; }
.neuro-seo-head p { margin-top: 14px; color: var(--np-copy); line-height: 1.75; }
.neuro-seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.neuro-seo-grid article { padding: 24px; border: 1px solid var(--np-line); border-radius: 15px; background: #fff; }
.neuro-seo-grid h3 { margin-bottom: 9px; font-size: 1rem; }
.neuro-seo-grid p { color: var(--np-copy); font-size: .8rem; line-height: 1.7; }
.neuro-seo-note { margin-top: 24px; color: var(--np-copy); font-size: .8rem; line-height: 1.7; }
.neuro-seo-note a { color: var(--np-teal-dark); font-weight: 750; text-decoration: underline; text-decoration-color: rgba(13,116,132,.3); text-underline-offset: 3px; }

.neuro-faq { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--np-line); background: #fff; }
.neuro-faq-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 110px); align-items: start; }
.neuro-faq-heading { position: sticky; top: 150px; }
.neuro-faq-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.neuro-faq-heading p { margin-top: 15px; color: var(--np-copy); font-size: .9rem; line-height: 1.7; }
.faq-list { border-top: 1px solid var(--np-line-strong); }
.faq-list details { border-bottom: 1px solid var(--np-line-strong); }
.faq-list summary {
  position: relative;
  padding: 21px 44px 21px 0;
  color: var(--np-ink);
  font-size: .94rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 8px; top: 18px; color: var(--np-teal); font-size: 1.4rem; font-weight: 400; transition: transform .16s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 760px; padding: 0 44px 22px 0; color: var(--np-copy); font-size: .84rem; line-height: 1.75; }

.neuro-toast-host { position: fixed; right: 22px; bottom: 22px; z-index: 1000; display: grid; gap: 8px; pointer-events: none; }
.neuro-toast { max-width: 380px; padding: 12px 16px; border-radius: 10px; background: #10243e; color: #fff; box-shadow: 0 12px 32px rgba(7, 24, 45, .25); font-family: var(--font-body); font-size: .78rem; font-weight: 700; animation: neuro-toast-in .2s ease both; }
.neuro-toast--ok { border-left: 3px solid #53c9a1; }
.neuro-toast--error { border-left: 3px solid #ef7c82; }
@keyframes neuro-toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 980px) {
  .neuro-intro-grid { grid-template-columns: 1fr; }
  .neuro-summary { max-width: 430px; }
  .neuro-work-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
  .capability-card > span { margin-bottom: 22px; }
}

@media (max-width: 720px) {
  .neuro-intro { padding-top: 42px; padding-bottom: 90px; }
  .neuro-intro h1 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .neuro-trust { display: grid; gap: 8px; }
  .neuro-tool { margin-top: -52px; padding-inline: 14px; }
  .neuro-widget { border-radius: 17px; }
  .neuro-page .tabs { overflow-x: auto; justify-content: flex-start; }
  .neuro-page .tab { flex: 0 0 auto; min-width: 150px; }
  .neuro-page .workspace { padding: 16px; }
  .neuro-page .panel { padding: 18px; }
  .neuro-page .panel-head { display: grid; gap: 8px; }
  .neuro-page .panel-head > span { text-align: left; }
  .file-upload { align-items: flex-start; flex-wrap: wrap; }
  .file-upload small { width: 100%; margin-left: 44px; white-space: normal; }
  .neuro-page textarea { min-height: 260px; }
  .risk-head, .engine-note { grid-template-columns: 1fr; }
  .neuro-faq-grid { grid-template-columns: 1fr; }
  .neuro-seo-grid { grid-template-columns: 1fr; }
  .neuro-faq-heading { position: static; }
}

@media (max-width: 460px) {
  .neuro-summary { padding: 16px; }
  .neuro-summary-mark { width: 50px; height: 50px; flex-basis: 50px; }
  .neuro-page .actions-row > button { flex: 1 1 140px; }
  .faq-list summary { font-size: .87rem; }
}

@media (prefers-reduced-motion: reduce) {
  .neuro-page *, .neuro-page *::before, .neuro-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
