/* Нео — сайт. Палитра «ночь и мята» (план «Нео», раздел 3): чернила, холодный
   светлый фон, мята только на действиях, состояниях и знаке. */
:root {
  --ink: #0F1B2D; --ink-deep: #0B1422; --ink-2: #16233A;
  --bg: #F6F8FB; --card: #FFFFFF; --line: #D9E0EA;
  --text: #1A2433; --muted: #5B6678; --text-on-ink: #E6EBF2; --muted-on-ink: #B8C2D1;
  --mint: #1DBF9F; --mint-dark: #2AD4B2; --mint-text: #0B7A65;
  --amber: #C98A1B; --red: #D64545;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Golos Text", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--mint-text); }
h1, h2, h3, .wordmark { font-family: "Unbounded", "Golos Text", Arial, sans-serif; letter-spacing: -0.01em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
/* шапка */
.top { background: var(--ink); color: var(--text-on-ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand .wordmark { font-weight: 700; font-size: 18px; }
.brand small { color: var(--muted-on-ink); font-size: 12.5px; font-family: "Golos Text", sans-serif; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-on-ink); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(230,235,242,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; min-height: 40px; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--mint-dark); }
.btn-ghost { border-color: rgba(230,235,242,.35); color: var(--text-on-ink); }
.btn-ghost:hover { border-color: rgba(230,235,242,.7); }
.btn-ink { background: var(--ink); color: var(--text-on-ink); }
.btn-ink:hover { background: var(--ink-2); }
/* hero */
.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); color: var(--text-on-ink); padding: 56px 0 64px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 14px; font-weight: 700; line-height: 1.15; }
.hero p.lead { font-size: 18px; color: var(--muted-on-ink); max-width: 680px; margin: 0 0 26px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 13.5px; color: var(--muted-on-ink); }
.pulse-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted-on-ink); font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: pulsedot 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulsedot { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.4); opacity: .7 } }
}
/* секции */
section { padding: 48px 0; }
section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; font-weight: 600; color: var(--ink); }
section p.sub { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.card h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
/* фото-полоса карточки (как на основном сайте): кадр 3:1 из Pexels, приглушение чернилами;
   источники — site-neo/img-src/ИСТОЧНИКИ.md */
.card__photo { height: 120px; margin: -18px -20px 14px; border-radius: 17px 17px 0 0; background-color: var(--ink-2);
  background-image: linear-gradient(rgba(15,27,45,.28), rgba(15,27,45,.28)), var(--photo);
  background-size: cover; background-position: center; }
.steps .card .card__photo { margin-left: -56px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-left: 56px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; }
/* тарифы */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border-color: var(--mint); box-shadow: 0 10px 30px -18px rgba(15,27,45,.35); }
.plan .name { font-weight: 600; font-size: 17px; }
.plan .price { font-family: "Unbounded", sans-serif; font-size: 28px; font-weight: 700; color: var(--ink); }
.plan .price small { font-family: "Golos Text", sans-serif; font-size: 14px; color: var(--muted); font-weight: 400; }
.plan ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.plan ul li { margin: 3px 0; }
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--mint); color: var(--mint-text); width: fit-content; }
/* партнёрская программа: таблица ставок */
.rates-title { font-size: 17px; margin: 26px 0 10px; font-weight: 600; color: var(--ink); }
.rates-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; font-size: 14.5px; }
.rates th, .rates td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates thead th { background: var(--ink); color: var(--text-on-ink); font-weight: 600; font-size: 13.5px; }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates td:first-child { font-weight: 600; color: var(--ink); }
/* границы и бизнес */
.honest .card { border-left: 3px solid var(--amber); }
.biz { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--muted); font-size: 14.5px; }
/* подвал */
footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
footer a { color: var(--muted); }
footer .legal { max-width: 820px; }
/* документы */
.doc { max-width: 800px; margin: 0 auto; padding: 36px 16px 56px; }
.doc h1 { font-size: 26px; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 15px; }
.doc .notice { background: #FFF7E6; border: 1px solid #F1D9A6; border-radius: 12px; padding: 12px 14px; color: #6B4A00; font-size: 14px; }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } .hero { padding: 40px 0 48px; } }

/* ── Примеры поручений (сборщик tools/build_examples_neo.py) ─────────────────────────── */
.card--link { display: block; color: inherit; text-decoration: none; position: relative; }
.card--link:hover { border-color: var(--mint); }
.card .xn { position: absolute; top: 12px; right: 12px; background: var(--ink); color: var(--mint); font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.examples-note { font-size: 12.5px; margin-top: 14px; }
.case { max-width: 860px; margin: 0 auto; padding: 28px 16px 56px; }
.crumbs { font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.case-hero__photo { height: 220px; border-radius: 18px; background-color: var(--ink-2); background-size: cover; background-position: center;
  background-image: linear-gradient(rgba(15,27,45,.25), rgba(15,27,45,.25)), var(--photo); margin-bottom: 18px; }
.case-kicker, .case-task__label, .case-time__label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-text); }
.case h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 10px; color: var(--ink); font-weight: 600; }
.case .lead { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.case-body h2 { font-size: 20px; margin: 30px 0 12px; padding-left: 14px; position: relative; font-weight: 600; color: var(--ink); }
.case-body h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 999px; background: var(--mint); }
.case-body p, .case-body ul, .case-body ol { margin: 0 0 12px; }
.case-body ul, .case-body ol { padding-left: 22px; }
.case-body li { margin-bottom: 6px; }
.case-body figure { margin: 18px 0; }
.case-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.case-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.case-task { margin: 16px 0 26px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: 18px; }
.case-task__prompt { margin: 0 0 10px; padding: 12px 14px; background: #E9FBF6; border-left: 3px solid var(--mint); border-radius: 8px; font-size: 16px; }
.ask__tags { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ask__tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.case-time { display: grid; grid-template-columns: minmax(0, 1fr) 180px; margin: 4px 0 30px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.case-time__main { padding: 18px 20px 14px; }
table.case-time__table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.case-time__table th, .case-time__table td { padding: 7px 0 7px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.case-time__table th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.case-time__table th:first-child, .case-time__table td:first-child { padding-left: 0; }
.case-time__table th:not(:first-child), .case-time__table td:not(:first-child) { width: 1%; white-space: nowrap; text-align: right; }
.case-time__table td:last-child { color: var(--mint-text); font-weight: 600; }
.case-time__table tfoot td { border-bottom: 0; padding-top: 10px; font-weight: 700; }
.case-time__month { margin: 12px 0 0; font-size: 14.5px; }
.case-time__note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.case-time__x { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 14px; background: var(--ink); color: var(--text-on-ink); text-align: center; }
.case-time__num { font-family: "Unbounded", sans-serif; font-size: 44px; font-weight: 700; line-height: 1; color: var(--mint); }
.case-time__num sup { font-size: .4em; }
.case-time__num sup a { color: inherit; text-decoration: none; }
.case-time__cap { font-size: 13.5px; }
.case-footnote { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-style: italic; color: var(--muted); }
.case-file { display: flex; align-items: center; gap: 12px; max-width: 600px; margin: 16px 0 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.case-file:hover { border-color: var(--mint); }
.case-file__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: #fff; font-weight: 700; }
.case-file__ico--x { background: #1f7a4d; } .case-file__ico--w { background: #2b5fb3; } .case-file__ico--p { background: #b3261e; } .case-file__ico--f { background: var(--muted); }
.case-file__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.case-file__name { font-weight: 600; }
.case-file__meta { font-size: 12.5px; color: var(--muted); }
.case-file__btn { flex: none; margin-left: auto; padding: 7px 14px; border-radius: 999px; background: var(--mint); color: var(--ink); font-weight: 600; font-size: 14px; }
.case-try { margin: 26px 0 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.pager a { color: var(--muted); text-decoration: none; font-size: 14px; max-width: 48%; }
.pager a strong { display: block; color: var(--ink); margin-top: 2px; }
.callout { background: #FFF7E6; border: 1px solid #F1D9A6; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
@media (max-width: 640px) { .case-time { grid-template-columns: 1fr; } .case-time__x { flex-direction: row; order: -1; padding: 12px 16px; } .case-time__num { font-size: 32px; } .case-hero__photo { height: 150px; } }
