/* ==========================================================================
   НейроСеть — базовые стили
   Один файл, без внешних зависимостей и шрифтов.
   ========================================================================== */

:root {
  --ink: #14161f;
  --ink-2: #3a3f54;
  --muted: #666d85;
  --line: #e5e7f0;
  --line-2: #eef0f6;
  --soft: #f6f7fb;
  --soft-2: #fbfbfe;
  --white: #fff;
  --accent: #6244e6;
  --accent-ink: #4a2fc9;
  --accent-soft: #efeafe;
  --accent-line: #d9d0fb;
  --ok: #0c7d5f;
  --ok-bg: #e7f6f0;
  --warn: #b4400b;
  --warn-bg: #fdeee4;
  --mid: #8a5a00;
  --mid-bg: #fdf3dd;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 22, 31, .04), 0 8px 24px -12px rgba(20, 22, 31, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

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

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 720; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: 1.22rem; margin-top: 1.4em; }
h4 { font-size: 1.02rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 760; letter-spacing: -.03em; font-size: 1.16rem; flex-shrink: 0; }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--accent), #8f6bff); color: #fff; }
.logo__dot { color: var(--accent); font-weight: 500; }

.nav { display: flex; gap: 2px; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550; white-space: nowrap;
}
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

.site-header__actions { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer;
  touch-action: manipulation;
}
.icon-btn:hover { background: var(--soft); border-color: var(--line); color: var(--ink); }
.nav-toggle { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-ink); }

@media (min-width: 1021px) and (max-width: 1080px) {
  .site-header__inner { gap: 10px; }
  .nav { gap: 0; margin-left: 0; }
  .nav a { padding: 8px 8px; font-size: .89rem; }
}

@media (max-width: 1020px) {
  .nav {    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: var(--shadow); display: none;
    max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav-toggle { display: grid; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 44px;
  background:
    radial-gradient(900px 320px at 12% -10%, #ece5ff 0%, transparent 70%),
    radial-gradient(700px 300px at 92% 0%, #e2f6f1 0%, transparent 65%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 5px 12px; border-radius: 99px; background: var(--accent-soft);
  color: var(--accent-ink); font-size: .8rem; font-weight: 650; letter-spacing: .01em;
}
.hero h1 { max-width: 21ch; margin-bottom: 16px; }
.hero__lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.18rem); color: var(--ink-2); max-width: 62ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__stat b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.hero__stat span { font-size: .84rem; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 620; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(98, 68, 230, .75); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #cfd3e2; color: var(--ink); background: var(--soft-2); }
.btn--light { background: #fff; color: var(--accent-ink); }
.btn--sm { padding: 8px 14px; font-size: .87rem; border-radius: 8px; }
.btn--wide { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- sections */

.section { padding: 52px 0; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.industry-strip { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section__head h2 { margin: 0 0 4px; }
.section__head p { margin: 0; color: var(--muted); font-size: .96rem; max-width: 62ch; }

/* ---------------------------------------------------------------- cards */

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.tool-card {
  position: relative; display: flex; flex-direction: column;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tool-card:hover { border-color: #d3d6e4; box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tool-card__mono {
  flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 11px; background: linear-gradient(150deg, var(--accent-soft), #f2f6ff);
  color: var(--accent-ink); font-weight: 760; font-size: 1.15rem; border: 1px solid var(--accent-line);
}
.tool-card__title { font-size: 1.12rem; margin: 0 0 2px; letter-spacing: -.01em; }
.tool-card__title a { color: var(--ink); text-decoration: none; }
.tool-card__title a:hover { color: var(--accent-ink); }
.tool-card__tagline { margin: 0; font-size: .86rem; color: var(--muted); }
.tool-card__desc { margin: 0 0 14px; font-size: .92rem; color: var(--ink-2); }
.tool-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tool-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-2); }
.tool-card__tasks { font-size: .78rem; color: var(--muted); }
.tool-card__actions { display: flex; align-items: center; gap: 12px; }
.compare-check { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); cursor: pointer; user-select: none; }
.compare-check input { accent-color: var(--accent); width: 14px; height: 14px; }

.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-card:hover { border-color: #d3d6e4; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__link { display: block; padding: 20px; text-decoration: none; color: inherit; height: 100%; }
.post-card__cat { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 8px; }
.post-card h3 { font-size: 1.08rem; margin: 0 0 8px; }
.post-card p { font-size: .9rem; color: var(--ink-2); margin: 0 0 14px; }
.post-card__meta { font-size: .8rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 640;
  background: var(--soft); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); border-color: #cdeadd; }
.badge--warn { background: var(--warn-bg); color: var(--warn); border-color: #f6d7c6; }
.badge--mid { background: var(--mid-bg); color: var(--mid); border-color: #f0e0b8; }
.badge--plain { background: var(--soft); color: var(--ink-2); }

/* ---------------------------------------------------------------- breadcrumbs */

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink-2); }

/* ---------------------------------------------------------------- page head */

.page-head { padding: 6px 0 26px; }
.page-head h1 { margin: 10px 0 12px; }
.page-head p { color: var(--ink-2); max-width: 70ch; margin: 0; }

/* ---------------------------------------------------------------- filters */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chip {
  padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-2); font: inherit; font-size: .86rem;
  cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: #cfd3e2; background: var(--soft-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; padding: 11px 14px 11px 42px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: var(--white); color: var(--ink);
}
.search-field input:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; border-color: var(--accent-line); }

.results-count { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------------- compare bar */

.compare-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  z-index: 90; display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; padding: 10px 12px 10px 18px;
  border-radius: 12px; box-shadow: 0 12px 40px -10px rgba(0,0,0,.5);
  transition: transform .22s ease; max-width: calc(100% - 24px); flex-wrap: wrap;
}
.compare-bar.is-visible { transform: translate(-50%, 0); }
.compare-bar__count { font-size: .88rem; }
.compare-bar .btn { padding: 8px 14px; font-size: .85rem; }
.compare-bar__clear { background: none; border: 0; color: #b9bdcd; font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; }

/* ---------------------------------------------------------------- prose */

.prose { max-width: 76ch; font-size: 1.02rem; color: var(--ink-2); overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { color: var(--ink); }
.prose h3 { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .42em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 680; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--accent);
  background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--mono); font-size: .87em; background: var(--soft); border: 1px solid var(--line); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.prose pre { background: #16181f; color: #e8eaf2; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.2em 0; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: .86rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose a { color: var(--accent-ink); }

.table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--soft); font-weight: 660; color: var(--ink); font-size: .85rem; }
tbody tr:last-child td { border-bottom: 0; }

.callout { margin: 1.4em 0; padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--soft-2); }
.callout__title { margin: 0 0 6px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.callout__body > *:last-child { margin-bottom: 0; }
.callout--tip { background: #f1faf6; border-color: #d2ebdf; }
.callout--tip .callout__title { color: var(--ok); }
.callout--warn { background: #fff7ef; border-color: #f7ddc8; }
.callout--warn .callout__title { color: var(--warn); }
.callout--example { background: #f6f4ff; border-color: var(--accent-line); }
.callout--example .callout__title { color: var(--accent-ink); }
.callout--summary { background: var(--soft); }

/* ---------------------------------------------------------------- article */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; padding: 8px 0 60px; }
.article { min-width: 0; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.article__meta .dot { color: var(--line); }
.article__lead { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 24px; padding-left: 16px; border-left: 3px solid var(--accent-line); }
.article__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.toc { position: sticky; top: 86px; font-size: .88rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--soft-2); }
.toc__title { margin: 0 0 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.toc__item { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; border-left: 2px solid transparent; padding-left: 10px; margin-left: -10px; }
.toc__item:hover { color: var(--accent-ink); border-left-color: var(--accent-line); }
.toc__item--h3 { padding-left: 22px; font-size: .84rem; color: var(--muted); }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; order: -1; }
}

/* ---------------------------------------------------------------- tool page */

.tool-hero { padding: 6px 0 8px; }
.tool-hero__top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tool-hero__mono {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(150deg, var(--accent-soft), #f2f6ff); color: var(--accent-ink);
  font-size: 1.5rem; font-weight: 760; border: 1px solid var(--accent-line);
}
.tool-hero h1 { margin: 0 0 4px; }
.tool-hero__tagline { color: var(--muted); margin: 0; }
.tool-hero__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.tool-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-hero__cta .note { font-size: .8rem; color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.specs__row { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.specs__row:nth-child(odd) { border-right: 1px solid var(--line-2); }
.specs__row dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 0; }
.specs__row dd { margin: 0; font-size: .92rem; color: var(--ink); }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } .specs__row:nth-child(odd) { border-right: 0; } }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pros-cons__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pros-cons__col h3 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.pros-cons__col ul { margin: 0; padding-left: 0; list-style: none; }
.pros-cons__col li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: .92rem; color: var(--ink-2); }
.pros-cons__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pros-cons__col--pro { background: #f6fcf9; border-color: #d9eee4; }
.pros-cons__col--pro h3 { color: var(--ok); }
.pros-cons__col--pro li::before { content: "+"; color: var(--ok); }
.pros-cons__col--con { background: #fffaf7; border-color: #f4e2d7; }
.pros-cons__col--con h3 { color: var(--warn); }
.pros-cons__col--con li::before { content: "−"; color: var(--warn); }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem;
  border: 1px solid var(--accent-line);
}
.steps strong { color: var(--ink); }

.prompt-block { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 12px 0 18px; background: var(--soft-2); }
.prompt-block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.prompt-block__body { padding: 14px; font-family: var(--mono); font-size: .86rem; white-space: pre-wrap; color: var(--ink-2); margin: 0; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); border-radius: 6px; padding: 3px 9px; font: inherit; font-size: .76rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.copy-btn.is-done { background: var(--ok-bg); color: var(--ok); border-color: #cdeadd; }

/* ---------------------------------------------------------------- cta */

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--radius); margin: 32px 0;
  background: linear-gradient(120deg, #5b3edb, #7b5cf0 55%, #6f57e8);
  color: #fff;
}
.cta__title { margin: 0 0 4px; font-weight: 700; font-size: 1.06rem; }
.cta__text { margin: 0; font-size: .92rem; color: #e6e0ff; }

/* ---------------------------------------------------------------- tools UI */

.tool-ui { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; margin: 24px 0 32px; }
.tool-ui__head { padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--soft-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-ui__head h2 { margin: 0; font-size: 1.05rem; }
.tool-ui__body { padding: 22px; }
.tool-ui__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .tool-ui__grid { grid-template-columns: 1fr; } .tool-ui__body { padding: 16px; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .76rem; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .92rem; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-line); outline-offset: 0; border-color: var(--accent-line); }
.field--inline { flex-direction: row; align-items: center; gap: 8px; }

.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.slider-row output { min-width: 52px; text-align: right; font-size: .86rem; font-weight: 650; color: var(--ink); }

.result-box { border: 1px solid var(--accent-line); background: linear-gradient(180deg, #faf8ff, #fff); border-radius: var(--radius-sm); padding: 18px; }
.result-box__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); font-weight: 700; margin: 0 0 8px; }
.result-box pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: .86rem; color: var(--ink-2); max-height: 420px; overflow: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; background: var(--white); }
.stat b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.stat span { font-size: .74rem; color: var(--muted); }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* prompt library */
.prompt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .prompt-grid { grid-template-columns: 1fr; } }
.prompt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--white); display: flex; flex-direction: column; }
.prompt-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.prompt-card h3 { font-size: .98rem; margin: 0; }
.prompt-card p { font-size: .86rem; color: var(--ink-2); margin: 0 0 12px; white-space: pre-wrap; font-family: var(--mono); line-height: 1.5; }
.prompt-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prompt-card__tag { font-size: .72rem; color: var(--muted); }

/* quiz */
.quiz__progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.quiz__progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s ease; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__question { font-size: 1.1rem; font-weight: 680; margin: 0 0 14px; }
.quiz__options { display: grid; gap: 8px; }
.quiz__option {
  text-align: left; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font: inherit; font-size: .94rem; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.quiz__option:hover { border-color: var(--accent-line); background: var(--soft-2); }
.quiz__option.is-picked { border-color: var(--accent); background: var(--accent-soft); }

.rec-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); }
.rec-card__rank { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .86rem; }
.rec-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.rec-card p { margin: 0; font-size: .88rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- glossary */

.glossary-list { display: grid; gap: 8px; margin-top: 20px; }
.term { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.term[open] { border-color: var(--accent-line); background: var(--soft-2); }
.term summary { padding: 13px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 620; font-size: .96rem; list-style: none; }
.term summary::-webkit-details-marker { display: none; }
.term summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; }
.term[open] summary::after { content: "−"; }
.term__body { padding: 0 16px 14px; color: var(--ink-2); font-size: .92rem; }
.term__body p { margin: 0; }
.term__alias { font-size: .78rem; color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: #101219; color: #c3c7d6; margin-top: 64px; padding: 44px 0 22px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 12px 0 0; color: #9aa0b4; max-width: 40ch; }
.footer-note { font-size: .78rem; color: #7b8095; }
.logo--footer { color: #fff; }
.logo--footer .logo__dot { color: #a48bff; }
.footer-title { color: #fff; font-weight: 650; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #b3b8c9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid #23262f; font-size: .8rem; color: #7b8095; }
.footer-bottom a { color: #9aa0b4; }

/* ---------------------------------------------------------------- misc */

.note { font-size: .84rem; color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tag-list a { font-size: .8rem; text-decoration: none; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }
.tag-list a:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--white); transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.hub-card strong { color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.hub-card span { font-size: .82rem; color: var(--muted); }
.hub-card em { font-style: normal; font-size: .74rem; color: var(--accent-ink); margin-top: 8px; font-weight: 600; }

/* ---------------------------------------------------------------- разделы */

.path-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.path-card__tag { align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-soft); border-radius: 99px; padding: 4px 10px; margin-bottom: 12px; }
.path-card h3 { margin: 0 0 8px; font-size: 1.22rem; }
.path-card h3 a { color: var(--ink); text-decoration: none; }
.path-card h3 a:hover { color: var(--accent-ink); }
.path-card p { margin: 0 0 14px; color: var(--ink-2); font-size: .94rem; }
.path-card__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.path-card__list li { position: relative; padding-left: 16px; font-size: .88rem; }
.path-card__list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-line); }
.path-card__list a { color: var(--ink-2); text-decoration: none; }
.path-card__list a:hover { color: var(--accent-ink); text-decoration: underline; }
.path-card .link-arrow { margin-top: auto; }

.article__meta a { color: var(--accent-ink); text-decoration: none; }
.article__meta a:hover { text-decoration: underline; }

.guide-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 8px; }
.guide-nav__link { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--white); }
.guide-nav__link:hover { border-color: var(--accent-line); background: var(--soft-2); }
.guide-nav__link span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.guide-nav__link strong { font-size: .92rem; color: var(--ink); line-height: 1.35; }
.guide-nav__link--next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .guide-nav { grid-template-columns: 1fr; } .guide-nav__link--next { text-align: left; align-items: flex-start; } }
