/* ============================================================
   Личный сайт Вениамина Немцова — основная тема
   Светлая «книжная» и тёмная темы, mobile first.
   ============================================================ */

:root {
  --bg: #faf9f6;
  --bg-tint: #f3f0e9;
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --ink: #1e293b;
  --ink-strong: #141c26;
  --muted: #5e6b7a;
  --faint: #6f7b89;
  --line: #e4ded2;
  --line-strong: #cbc2b1;
  --accent: #1b3a5c;
  --accent-hover: #122c47;
  --accent-soft: #e9eff6;
  --copper: #96622e;
  --copper-soft: #f4ead9;
  --ok: #2f6b4f;
  --err: #9b3d32;
  --shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
  --shadow-lift: 0 14px 30px -18px rgba(30, 41, 59, 0.35);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --radius: 3px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #14161a;
  --bg-tint: #191c21;
  --surface: #1b1f24;
  --surface-2: #20252b;
  --ink: #e8e4db;
  --ink-strong: #f4f1ea;
  --muted: #9aa4b1;
  --faint: #7d8794;
  --line: #2a2f37;
  --line-strong: #3a414b;
  --accent: #9bc0e4;
  --accent-hover: #bcd7ef;
  --accent-soft: #1d2833;
  --copper: #c99b62;
  --copper-soft: #2a2318;
  --ok: #7dbb98;
  --err: #e09084;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 16px 34px -20px rgba(0, 0, 0, 0.8);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink-strong);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--copper-soft); color: var(--ink-strong); }

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

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

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-160%);
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); text-decoration: none; font-size: 14px;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.2vw, 40px);
}
.container--narrow { max-width: 820px; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  vertical-align: -4px;
}

/* ---------------- шапка ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
  border-radius: 50%;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-serif); font-size: 17px; letter-spacing: 0.004em; color: var(--ink-strong); }
.brand-sub { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--faint); }

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink-strong); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--copper);
}

.header-tools { display: flex; align-items: center; gap: 4px; margin-left: 4px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 50%; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink-strong); }
.icon-btn .icon { width: 19px; height: 19px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* ---------------- основные элементы ---------------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
}
[data-theme="dark"] .eyebrow { color: var(--copper); }

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
[data-theme="dark"] .btn-primary { color: #11161c; }
[data-theme="dark"] .btn-primary:hover { color: #11161c; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink-strong); background: var(--surface); }
.btn-small { padding: 8px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.hero + .section { padding-top: clamp(30px, 4vw, 48px); }
.section--tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}
.section--tight { padding-top: clamp(24px, 3vw, 40px); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}
.section-link { white-space: nowrap; }
.section-title { font-size: clamp(26px, 3vw, 34px); }
.section-note { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.section-link {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 2px;
}
.section-link .icon { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.section-link:hover .icon { transform: translateX(3px); }

.dot { color: var(--faint); padding: 0 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.checks .icon { width: 17px; height: 17px; color: var(--copper); margin-top: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tag:hover { color: var(--accent); border-color: var(--accent); }
.tag span { color: var(--faint); margin-left: 7px; font-size: 11px; }
.tag--cloud { padding: 7px 13px; font-size: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--ink); text-decoration: none; font-size: 14px;
  background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- главная ---------------- */

.hero { padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 3.5vw, 44px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-title {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-lead {
  margin-top: 24px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hero-points .icon { width: 15px; height: 15px; color: var(--copper); }

.release {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}
.release::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  pointer-events: none;
}
.release > * { position: relative; }
.release-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.release-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--faint);
}
.release-version { font-family: var(--font-serif); font-size: 20px; color: var(--copper); }
.release-product {
  margin-top: 18px; font-family: var(--font-serif); font-size: 23px;
  line-height: 1.2; color: var(--ink-strong);
}
.release-desc { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.release-facts {
  margin: 22px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0;
}
.release-facts dt { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 4px; }
.release-facts dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.release-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12.5px; color: var(--muted); text-decoration: none;
}
.release-link:hover { color: var(--accent); }
.release-link .icon { width: 14px; height: 14px; }

/* ---------------- карточки ---------------- */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; }
.card-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--copper); margin: 0 0 12px;
}
.card-title { font-size: 23px; line-height: 1.22; }
.card-link:hover .card-title { color: var(--accent); }
.card-text { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card-foot {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
.card-topic { color: var(--muted); text-align: right; }
.card-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { color: var(--accent); }
.card-actions { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.card-dl {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 11px; letter-spacing: 0.04em;
  text-decoration: none; text-transform: uppercase;
}
.card-dl .icon { width: 14px; height: 14px; }
.card-dl:hover { color: var(--accent-hover); text-decoration: underline; }
.card-more { display: inline-flex; color: var(--muted); text-decoration: none; }
.card-more .icon { width: 15px; height: 15px; }
.card-more:hover { color: var(--accent); }

.card--material { display: flex; flex-direction: column; }
.card--material .card-body { flex: 1; }
.card--case { border-top: 2px solid var(--line-strong); }
.card--case .case-num {
  font-family: var(--font-serif); font-size: 13px; color: var(--copper); margin-bottom: 18px;
}

/* ---------------- страница: заголовки ---------------- */

.page-head { padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 48px); }
.page-head--article { border-bottom: 1px solid var(--line); }
.page-head-inner { max-width: 820px; }
.page-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.page-lead { margin-top: 20px; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.55; color: var(--muted); max-width: 66ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-actions--center { justify-content: center; margin-top: 36px; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 26px; font-size: 12px; color: var(--faint);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.section-head--ruled { border-top: 1px solid var(--line); padding-top: 26px; }

/* ---------------- статья, проповеди ---------------- */

.article { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.article-head { margin-bottom: clamp(28px, 4vw, 44px); }
.article-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.article-lead {
  margin-top: 20px; font-family: var(--font-serif); font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5; color: var(--muted); max-width: 60ch;
}
.article-meta {
  margin-top: 22px; font-size: 12.5px; color: var(--faint);
  display: flex; flex-wrap: wrap; align-items: center;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.article-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.prose { font-size: 18px; line-height: 1.72; color: var(--ink); max-width: 68ch; }
.prose--wide { max-width: 100%; }
.prose p { margin: 0 0 1.12em; }
.prose > p:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  margin: 1.9em 0 0.6em;
  padding-top: 0.55em;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: clamp(19px, 2vw, 22px); margin: 1.6em 0 0.45em; }
.prose h4 { font-size: 18px; margin: 1.4em 0 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink-strong); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--copper); }
.prose blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--copper);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08em;
  line-height: 1.62;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote strong { font-style: normal; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose blockquote + hr { background: transparent; }
.prose code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.86em; background: var(--surface-2); padding: 2px 6px; border-radius: 2px;
  border: 1px solid var(--line);
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--line); padding: 18px;
  overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 1.4em 0;
}
.prose pre code { border: 0; background: none; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); border-bottom-color: var(--line-strong); font-weight: 600; }
.prose--article > p:first-of-type { margin-top: 0; }

.article-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line);
}
.article-nav-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.article-nav-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint);
}
.article-nav-item:hover .article-nav-label { color: var(--accent); }
.article-nav-label .icon { width: 14px; height: 14px; }
.article-nav-title { font-family: var(--font-serif); font-size: 19px; line-height: 1.25; color: var(--ink-strong); }
.article-nav-item--next { text-align: right; align-items: flex-end; }

.video-frame {
  position: relative; margin: 0 0 36px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), var(--bg-tint));
  padding: 34px; display: grid; gap: 12px; justify-items: center; text-align: center;
}
.video-play {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: 11px 18px; border-radius: 2px; cursor: pointer; font: inherit; font-size: 14px;
}
.video-play:hover { border-color: var(--accent); color: var(--accent); }
.video-note { font-size: 12px; color: var(--faint); margin: 0; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; margin-bottom: 30px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.audio-block { margin: 0 0 30px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.audio-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); }
.audio-label .icon { width: 14px; height: 14px; color: var(--copper); }
.audio-block audio { width: 100%; }

/* ---------------- фильтры ---------------- */

.filters { border-block: 1px solid var(--line); padding: 18px 0 12px; margin-bottom: 34px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 9px 11px;
  min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field--search { position: relative; flex: 1 1 240px; }
.field--search .icon { position: absolute; left: 12px; bottom: 11px; width: 17px; height: 17px; color: var(--faint); }
.field--search input { padding-left: 38px; width: 100%; }
.field--select select { padding-right: 28px; }
.filters-reset { margin-left: auto; }
.filters-count { margin: 12px 0 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }

.empty-state {
  text-align: center; padding: 64px 24px; border: 1px dashed var(--line-strong);
  display: grid; gap: 12px; justify-items: center;
}
.empty-mark { font-family: var(--font-serif); font-size: 40px; color: var(--copper); line-height: 1; }
.empty-state h2 { font-size: 26px; }
.empty-state p { color: var(--muted); max-width: 46ch; }
.empty-state--filter { margin-top: 24px; }

/* ---------------- продуктовая страница ЦФУ ---------------- */

.product-hero {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
  position: relative;
}
.product-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--copper) 18%, transparent) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.product-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.product-title { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.product-lead { margin-top: 20px; font-size: 17.5px; line-height: 1.55; color: var(--muted); max-width: 54ch; }
.product-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); max-width: 60ch; }
.product-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 26px;
  box-shadow: var(--shadow-lift);
}
.product-panel-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--faint); }
.product-version { font-family: var(--font-serif); font-size: 64px; line-height: 1; color: var(--ink-strong); margin: 10px 0 4px; }
.product-panel .release-facts { margin: 20px 0; grid-template-columns: repeat(2, 1fr); }
.product-panel-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.feature-num { font-family: var(--font-serif); font-size: 12px; color: var(--copper); margin-bottom: 16px; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--muted); }

.shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.shot { margin: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 13px 16px; font-size: 12.5px; color: var(--muted); }
.shot figcaption span { color: var(--copper); font-family: var(--font-serif); margin-right: 6px; }

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc-card { border: 1px solid var(--line); background: var(--surface); padding: 26px; }
.doc-num { font-family: var(--font-serif); color: var(--copper); font-size: 13px; margin-bottom: 14px; }
.doc-card h4 { font-size: 20px; margin-bottom: 14px; }
.doc-card ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.doc-card li { margin-bottom: 9px; }
.doc-card li::marker { color: var(--copper); }

.changelog { border-top: 1px solid var(--line); }
.changelog-item { border-bottom: 1px solid var(--line); }
.changelog-item summary {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.changelog-item summary::-webkit-details-marker { display: none; }
.changelog-version { font-family: var(--font-serif); font-size: 21px; color: var(--accent); }
.changelog-date { font-size: 12px; color: var(--faint); }
.changelog-item ul { margin: 0 0 20px; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.changelog-item li { margin-bottom: 6px; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; padding: 18px 40px 18px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--copper); font-weight: 300; transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 40px 20px 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-lines { display: grid; gap: 10px; margin-top: 22px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines .icon { width: 17px; height: 17px; color: var(--copper); }

.form { display: grid; gap: 16px; }
.form.card { padding: clamp(22px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .field input, .form .field textarea { width: 100%; }
.form .field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--faint); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px 14px; font-size: 14px; border: 1px solid var(--line-strong);
  background: var(--surface);
}
.flash--ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); color: var(--ok); }
.flash--err { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); color: var(--err); }

/* ---------------- материалы, файлы ---------------- */

.section--materials { padding-top: clamp(34px, 4vw, 52px); }
.section--materials + .section--materials { border-top: 1px solid var(--line); }
.files-block { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.files-title { font-size: 20px; margin-bottom: 18px; }
.file-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.file-row:first-of-type { border-top: 1px solid var(--line); }
.file-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--copper); flex: none; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-size: 14.5px; font-weight: 500; word-break: break-word; }
.file-meta { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.file-row .btn { flex: none; }
.file-row + .related { margin-top: 36px; }
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

.section--about { padding-top: 0; }
.about-strip {
  display: flex; align-items: center; gap: 28px;
  border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px);
}
.about-strip-text { flex: 1; }
.about-strip-text p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.about-strip .section-title { margin: 0; }
.about-strip .btn { flex: none; }

.seal {
  width: 128px; height: 128px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--copper);
  display: grid; place-items: center;
  position: relative;
  font-family: var(--font-serif);
  color: var(--copper);
  font-size: 30px;
  letter-spacing: 0.06em;
  padding-left: 0.06em;
  background: color-mix(in srgb, var(--copper-soft) 35%, transparent);
}
.seal::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent); border-radius: 50%;
}
.seal span + span { margin-left: 2px; }
.seal--small { width: 84px; height: 84px; font-size: 21px; }

/* ---------------- дневник ---------------- */

.notes-list { border-top: 1px solid var(--line); }
.note-row { border-bottom: 1px solid var(--line); }
.note-row-link {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  padding: 24px 0; text-decoration: none; color: inherit;
}
.note-row-main { min-width: 0; }
.note-row-date { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin: 0 0 8px; }
.note-row-title { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.22; }
.note-row-link:hover .note-row-title { color: var(--accent); }
.note-row-text { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 8px; max-width: 72ch; }
.note-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px;
}
.badge .icon { width: 13px; height: 13px; color: var(--copper); }

/* ---------------- о себе ---------------- */

.about-hero { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside-stack { display: grid; gap: 20px; }
.aside-card { border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.aside-card-text { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; }
.aside-note { color: var(--faint); font-size: 12px; margin-top: 16px; line-height: 1.5; }
.aside-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--accent); text-decoration: none; }
.principles { list-style: none; margin: 8px 0 0; padding: 0; }
.principles li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.principles strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.narrow-block { max-width: 760px; }
.narrow-block p { color: var(--muted); margin-top: 14px; }

.prose--wide .prose { max-width: none; }

/* ---------------- поиск, теги ---------------- */

.page-head--search { border-bottom: 1px solid var(--line); }
.search-form {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; border: 1px solid var(--line-strong); background: var(--surface);
  padding: 8px 8px 8px 16px;
}
.search-form .icon { color: var(--faint); width: 18px; height: 18px; }
.search-form input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink);
  padding: 10px 0; min-width: 0;
}
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-summary { margin-top: 16px; font-size: 13px; color: var(--muted); }
.search-hints { margin-top: 8px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.search-hints a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 14px; text-decoration: none;
}
.search-hints a:last-child { border-bottom: 0; }
.search-hints a:hover { background: var(--surface-2); color: var(--accent); }
.search-hints .hint-type { flex: none; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.search-hints .hint-empty { padding: 12px 15px; font-size: 13px; color: var(--faint); }
.results { border-top: 1px solid var(--line); }
.result { padding: 26px 0; border-bottom: 1px solid var(--line); }
.result h3 { font-size: 25px; line-height: 1.25; margin: 6px 0 8px; }
.result h3 a { color: var(--ink-strong); text-decoration: none; }
.result h3 a:hover { color: var(--accent); }
.result-text { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 70ch; }
.result-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.result-link .icon { width: 14px; height: 14px; }
mark { background: var(--copper-soft); color: var(--ink-strong); padding: 0 2px; }
.search-suggest { padding: 10px 0 30px; }

/* ---------------- подвал ---------------- */

.site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 22px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); }
.footer-brand .footer-name { font-family: var(--font-serif); font-size: 19px; color: var(--ink-strong); margin-top: 16px; }
.footer-desc { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 34ch; }
.footer-note { color: var(--faint); font-size: 11.5px; margin-top: 14px; max-width: 40ch; line-height: 1.55; }
.brand-mark--footer { width: 56px; height: 56px; font-size: 17px; }
.footer-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.footer-col--small p { line-height: 1.55; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--faint);
}

/* ---------------- адаптивность ---------------- */

@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr); gap: 36px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--small { display: none; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px clamp(18px, 4vw, 40px) 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    box-shadow: 0 24px 30px -24px rgba(0, 0, 0, 0.4);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-family: var(--font-serif); color: var(--ink); }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { color: var(--accent); }
  .burger { display: grid; }
  .header-inner { gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 18ch; }
  .release { max-width: 460px; }
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-panel { max-width: 420px; }
  .split, .split--about { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .about-strip { flex-wrap: wrap; }
  .about-strip .btn { margin-left: auto; }
  .shots-grid { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 11px; }
  .brand-name { font-size: 15.5px; }
  .hero { padding-top: 34px; }
  .hero-points { display: grid; gap: 9px; }
  .hero-points li { font-size: 12.5px; }
  .page-title { font-size: clamp(30px, 8vw, 40px); }
  .grid--3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item--next { text-align: left; align-items: flex-start; }
  .note-row-link { flex-direction: column; gap: 12px; }
  .note-row-side { flex-direction: row; align-items: center; }
  .prose { font-size: 17px; }
  .prose--article > p:first-of-type::first-letter { font-size: 3em; }
  .filters-reset { margin-left: 0; }
  .filters-row .field--select { flex: 1 1 44%; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex-basis: 100%; order: 2; padding: 6px 0; }
  .search-form .btn { order: 3; margin-left: auto; }
  .seal { width: 92px; height: 92px; font-size: 23px; }
  .seal--small { width: 64px; height: 64px; font-size: 16px; }
  .about-hero { align-items: flex-start; gap: 20px; }
  .about-hero .seal { margin-top: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--small { display: block; }
  .footer-bottom { flex-direction: column; }
  .file-row { flex-wrap: wrap; }
  .file-row .btn { margin-left: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .site-header, .site-footer, .article-tools, .article-nav, .filters, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .prose--article > p:first-of-type::first-letter { color: #000; }
}
