/* Нейрогид — общие стили */
:root {
  --bg: #F4F5EF;
  --surface: #FFFFFF;
  --surface-2: #ECEEE5;
  --line: #DDDFD6;
  --ink: #14161A;
  --muted: #4F545C;
  --accent: #C8F25A;
  --link: #3B30C4;
  --link-hover: #261C96;
  --dark: #14161A;
  --dark-2: #22252B;
  --dark-muted: #B9BDC4;
  --radius: 20px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--dark);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }

/* Кнопки и метки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 14px; border: 0;
  font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn-dark { background: var(--dark); color: var(--bg); }
.btn-dark:hover { background: #2A2D33; color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #B6E443; color: var(--ink); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 12px; white-space: nowrap; }

.chip {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-accent { background: var(--accent); border-color: var(--accent); }

.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700;
}
.tag-muted { background: var(--surface-2); color: var(--muted); }

/* Главная */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  align-self: flex-start; padding: 8px 14px; border-radius: 999px;
  background: #E6E8DD; font-size: 14px; font-weight: 600; color: #3A3E45;
}
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 66px); line-height: 1.08; letter-spacing: -0.02em; max-width: 900px;
}
.hero p { margin: 0; font-size: 20px; color: var(--muted); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding: 64px 0; }
.section-title {
  margin: 0 0 24px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.5vw, 32px); line-height: 1.2;
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 24px;
}
.section-head .section-title { margin: 0; }
.section-lead { margin: -8px 0 24px; color: var(--muted); max-width: 640px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.task-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
a.task-card:hover { border-color: var(--ink); color: var(--ink); }
.task-card .t { font-weight: 700; font-size: 20px; }
.task-card .d { font-size: 15px; color: var(--muted); line-height: 1.5; }
.task-card .tag { align-self: flex-start; }
.task-card.soon { background: transparent; border-style: dashed; }

.dark-band { background: var(--dark); color: var(--bg); }
.dark-band .section-title { color: var(--bg); }
.dark-band a.more { color: var(--accent); font-weight: 700; }

.post-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--radius); background: var(--dark-2); color: var(--bg); text-decoration: none;
}
.post-card:hover { background: #2C3038; color: var(--bg); }
.post-card .tag { align-self: flex-start; }
.post-card .t { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.3; }
.post-card .d { font-size: 15px; line-height: 1.5; color: var(--dark-muted); }
.post-card .m { font-size: 14px; color: #A3A8B0; margin-top: auto; }

.table-box {
  position: relative;
  overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  margin: 24px 0;
}
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
thead tr { background: var(--surface-2); text-align: left; }
th { padding: 14px 18px; font-weight: 700; }
td { padding: 16px 18px; border-top: 1px solid #E6E8DD; vertical-align: top; color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 700; }
td.action { text-align: right; vertical-align: middle; }

.trust {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 36px; border-radius: 24px; background: var(--accent);
}
.trust div { flex: 1 1 420px; }
.trust h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.25; }
.trust p { margin: 0; color: #24272C; }

/* Статья */
.article { padding: 48px 0 72px; }
.article .wrap { max-width: 780px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); }
.article h1 {
  margin: 12px 0 16px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.015em;
}
.article .lead { font-size: 20px; color: var(--muted); margin: 0 0 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.article h2 {
  margin: 44px 0 14px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.25;
}
.article h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.3; }
.article p, .article li { color: #2A2D33; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }

.note {
  padding: 16px 20px; border-radius: 14px; background: var(--surface-2);
  font-size: 15px; color: var(--muted); margin: 0 0 28px;
}
.toc { padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }

.tool {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  margin: 20px 0;
}
.tool h3 { margin-top: 0; }
.tool .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tool .pros-cons { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.tool .pros-cons ul { margin: 6px 0 0; }
.tool .cta { margin-top: 16px; }

.prompt {
  padding: 16px 20px; border-radius: 14px; background: var(--dark); color: #E9EBE4;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 15px; line-height: 1.55;
  margin: 12px 0 20px; white-space: pre-wrap;
}

.verdict { padding: 24px; border-radius: var(--radius); background: var(--accent); margin: 36px 0; }
.verdict h2 { margin-top: 0; }
.verdict p, .verdict li { color: #24272C; }

.related { margin-top: 56px; }
.related .grid { margin-top: 16px; }

/* Простые страницы */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 20px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding-top: 36px; padding-bottom: 36px;
}
.site-footer .about { flex: 1 1 340px; }
.site-footer .about strong { font-family: var(--font-display); font-size: 18px; }
.site-footer .about p { margin: 8px 0 0; font-size: 14px; color: var(--muted); max-width: 520px; line-height: 1.55; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.site-footer .copy { flex-basis: 100%; font-size: 13px; color: var(--muted); }
