/*
  АПС «Ноэсис» — образовательный (warm-up) раздел портала neuropsychology.moscow.
  Единая таблица стилей для всех страниц сайта. Без внешних шрифтов, скриптов и запросов.
  Палитра — фирменная зелёная (совпадает с aps-noesis.ru) для плавной связки с сайтом продаж;
  вёрстка и типографика — в академичном, «журнальном» духе портала neuropsychology.moscow.
*/

:root {
  --n-green: #0B6E4F;
  --n-green-dark: #084F39;
  --n-green-tint: #EEF6F2;
  --n-green-tint-2: #E3F0EA;
  --n-ink: #1F2A24;
  --n-muted: #55655C;
  --n-muted-2: #74847B;
  --n-line: #D8E6DE;
  --n-line-2: #C4D6CB;
  --n-paper: #FFFFFF;
  --n-amber: #9A6B12;
  --n-amber-tint: #FBF3E1;
  --n-max: 1120px;
  --n-content-max: 760px;
  --n-radius: 14px;
  --n-radius-sm: 8px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--n-ink);
  background: var(--n-paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 0; list-style: none; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--n-max);
  margin: 0 auto;
  padding: 0 24px;
}
.prose {
  max-width: var(--n-content-max);
}

/* ---------- Утилиты ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--n-green-dark);
  background: var(--n-green-tint);
  border: 1px solid var(--n-line);
  border-radius: 999px;
  padding: 6px 14px;
  max-width: 100%;
}
.section-number {
  font-variant-numeric: tabular-nums;
  color: var(--n-muted-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.muted { color: var(--n-muted); }
.mt-0 { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 13px 22px;
  min-height: 48px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--n-green); color: #fff !important; }
.btn--primary:hover { background: var(--n-green-dark); }
.btn--ghost { background: #fff; color: var(--n-green-dark) !important; border-color: var(--n-line-2); }
.btn--ghost:hover { border-color: var(--n-green); background: var(--n-green-tint); }
.btn--on-dark { background: #fff; color: var(--n-green-dark) !important; }
.btn--on-dark:hover { background: var(--n-green-tint); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-ext, .link-int {
  font-weight: 600;
  color: var(--n-green-dark);
  border-bottom: 1px solid var(--n-green);
  padding-bottom: 1px;
}
.link-ext::after { content: " ↗"; font-weight: 400; }
.link-int::after { content: " →"; font-weight: 400; }

/* ---------- Шапка ---------- */
.portal-strip {
  background: var(--n-ink);
  color: #cfe0d6;
  font-size: 12.5px;
}
.portal-strip .container { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.portal-strip a { color: #eef6f2; font-weight: 600; }
.portal-strip a:hover { color: #ffffff; text-decoration: underline; }

.site-header { border-bottom: 1px solid var(--n-line); background: #fff; }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--n-green);
  color: #fff;
  font-size: 21px;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  flex: none;
}
.brand__text { min-width: 0; }
.brand__name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--n-ink);
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.brand__tagline { font-size: 12px; color: var(--n-muted); line-height: 1.2; }

.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 10px 0 14px 0;
  border-top: 1px solid var(--n-line);
}
.site-nav a {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-muted);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--n-green-dark); background: var(--n-green-tint); }
.site-nav a[aria-current="page"] { color: var(--n-green-dark); background: var(--n-green-tint); border: 1px solid var(--n-line); }

.breadcrumb {
  font-size: 13px;
  color: var(--n-muted-2);
  padding: 16px 0 0 0;
}
.breadcrumb a { color: var(--n-muted-2); border-bottom: 1px dotted var(--n-muted-2); }
.breadcrumb a:hover { color: var(--n-green-dark); border-color: var(--n-green-dark); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 52px 0; background: linear-gradient(180deg, var(--n-green-tint) 0%, #ffffff 100%); }
.hero h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  margin: 18px 0 20px 0;
  max-width: 880px;
}
.hero h1 b { color: var(--n-green-dark); }
.hero__lead { font-size: 18px; color: var(--n-muted); max-width: var(--n-content-max); margin-bottom: 26px; }
.page-hero { padding: 36px 0 40px 0; border-bottom: 1px solid var(--n-line); }
.page-hero h1 { font-size: 32px; line-height: 1.25; font-weight: 800; margin: 14px 0 16px 0; }
.page-hero__lead { font-size: 17px; color: var(--n-muted); max-width: var(--n-content-max); }

/* ---------- Секции ---------- */
section.block { padding: 52px 0; }
section.block--tint { background: var(--n-green-tint); }
section.block--ink { background: var(--n-ink); color: #eaf1ec; }
section.block--ink .muted { color: #b9ccc0; }
section.block + section.block { border-top: 1px solid var(--n-line); }
section.block--ink + section.block, section.block + section.block--ink { border-top: none; }

.block__head { max-width: var(--n-content-max); margin-bottom: 32px; }
.block__head h2 { font-size: 26px; font-weight: 800; margin: 10px 0 12px 0; }
.block__head p { font-size: 16px; color: var(--n-muted); }
section.block--ink .block__head p { color: #b9ccc0; }

/* ---------- Карточки принципов ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.principle-card {
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  padding: 22px;
}
section.block--tint .principle-card { background: #fff; }
.principle-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--n-green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.principle-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.principle-card p { font-size: 14.5px; color: var(--n-muted); }

/* ---------- Сетка модулей ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module-card {
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  padding: 20px;
}
.module-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--n-green-tint-2);
  color: var(--n-green-dark);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}
.module-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--n-muted); margin-bottom: 10px; }
.module-card .link-ext, .module-card .link-int { font-size: 13.5px; }

/* ---------- Списки признаков ---------- */
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feature-list .mark {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--n-green);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  margin-top: 2px;
}
.feature-list b { display: block; }
.feature-list span.d { color: var(--n-muted); }

.limit-list { display: flex; flex-direction: column; gap: 12px; }
.limit-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.limit-list .mark {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--n-amber);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Врезки / цитаты ---------- */
.callout {
  background: #fff;
  border: 1px solid var(--n-line);
  border-left: 4px solid var(--n-green);
  border-radius: var(--n-radius-sm);
  padding: 18px 20px;
  font-size: 15px;
}
.callout strong { color: var(--n-green-dark); }
.callout--amber { border-left-color: var(--n-amber); background: var(--n-amber-tint); }

/* ---------- Блоки аудиторий ---------- */
.audience {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 40px 0;
}
.audience + .audience { border-top: 1px solid var(--n-line); }
.audience__kicker { font-size: 13px; font-weight: 700; color: var(--n-green-dark); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.audience h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.audience p.lead { font-size: 15.5px; color: var(--n-muted); margin-bottom: 16px; }
.audience-links { display: flex; flex-direction: column; gap: 10px; }
.audience-links .box {
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius-sm);
  padding: 14px 16px;
  font-size: 14px;
}
.audience-links .box .lbl { display:block; color: var(--n-muted-2); font-size: 12.5px; margin-bottom: 4px; }

/* ---------- FAQ (без JS, на details/summary) ---------- */
.faq-item {
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius-sm);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 18px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--n-green-dark);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__body { padding: 0 18px 18px 18px; font-size: 15px; color: var(--n-muted); }
.faq-item__body p + p { margin-top: 10px; }

/* ---------- CTA-баннер ---------- */
.cta-banner {
  background: var(--n-green-dark);
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-banner h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cta-banner p { color: #cfe4d8; font-size: 15px; max-width: 480px; }

/* ---------- Футер ---------- */
.site-footer { background: var(--n-ink); color: #cfe0d6; padding: 48px 0 28px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #8fac9b; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: #dcebe3; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: 14px; color: #b9ccc0; line-height: 1.6; }
.footer-fineprint { border-top: 1px solid #2a3a32; padding-top: 20px; font-size: 12.5px; color: #9db3a6; line-height: 1.7; }
.footer-fineprint a { color: #cfe4d8; font-weight: 600; text-decoration: underline; }
.footer-copyright { margin-top: 14px; font-size: 12px; color: #7f9689; }

/* ---------- Таблицы (используются на странице возможностей) ---------- */
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.compare th, table.compare td { border: 1px solid var(--n-line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare th { background: var(--n-green-tint); color: var(--n-green-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container { padding: 0 18px; }
  .hero { padding: 28px 0 34px 0; }
  .hero h1 { font-size: 26px; }
  .hero__lead { font-size: 16px; }
  .page-hero { padding: 26px 0 28px 0; }
  .page-hero h1 { font-size: 24px; }
  section.block { padding: 36px 0; }
  .block__head h2 { font-size: 21px; }
  .principles-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-banner { padding: 26px 22px; flex-direction: column; align-items: flex-start; }
  .site-header__row { padding: 13px 0; flex-wrap: wrap; row-gap: 12px; }
  .site-header__row .btn-row { width: 100%; }
  .site-header__row .btn-row .btn { flex: 1 1 auto; }
  .brand__tagline { display: none; }
  table.compare { font-size: 13px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 23px; }
  .page-hero h1 { font-size: 21px; }
  .principle-card, .module-card { padding: 16px; }
  .btn { padding: 12px 16px; font-size: 14.5px; }
}
