/* =========================================================================
   CV Portfolio — визуальная система на основе evo^CUSTOM (Evo AI Design System)
   Токены выгружены из Figma: Evo CUSTOM / Components (76:60298)
   Main/Accent/Error/Success/Tag, радиусы Small=2 / Medium=4, шрифт Inter,
   типографика Body M 14/20, Body XS 12/16, Body XXS 10/12.
   ========================================================================= */

/* ---------- шрифт ---------- */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/inter-400.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/inter-500.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/inter-600.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/inter-700.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/inter-lat-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/inter-lat-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/inter-lat-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/inter-lat-700.woff2) format("woff2"); }

/* ---------- токены: светлая тема (базовая) ---------- */
:root {
  /* палитра из Figma */
  --main-0: #ffffff;
  --main-15: #f1f2f4;
  --main-30: #e4e5e7;
  --main-50: #b0b0b0;
  --main-70: #737373;
  --main-100: #161616;
  --surface: #f7f8f9;
  --back-2: #f4f7fb;

  --accent-100: #ef5518;
  --accent-10: #ffede9;
  --error-100: #f32d73;
  --error-10: #f6dbe2;
  --success-100: #87d000;
  --success-10: #eef8d9;
  --tag-blue-100: #3579cc;
  --tag-blue-10: #e0ecfa;

  /* семантика */
  --bg: var(--surface);
  --panel: var(--main-0);
  --panel-2: var(--main-15);
  --line: var(--main-30);
  --line-soft: #eceef1;
  --txt: var(--main-100);
  --txt-2: var(--main-70);
  --txt-3: var(--main-50);
  --acc: var(--accent-100);
  --acc-soft: var(--accent-10);
  --on-acc: #ffffff;
  --shadow-1: 0 1px 2px rgba(22, 22, 22, .06);
  --shadow-2: 0 4px 16px rgba(22, 22, 22, .08);
  --shadow-3: 0 12px 40px rgba(22, 22, 22, .14);

  /* геометрия — радиусы дизайн-системы */
  --r-none: 0px;
  --r-s: 2px;
  --r-m: 4px;
  --r-l: 8px;
  --r-pill: 999px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  --maxw: 1440px;
  --topbar-h: 60px;
}

/* ---------- тёмная тема (Mode = OnDark) ---------- */
[data-theme="dark"] {
  --main-0: #2b3033;
  --main-15: #3a3d41;
  --main-30: #4a4e53;
  --main-50: #b0b0b0;
  --main-70: #b7bdc2;
  --main-100: #f3f6f8;
  --surface: #26282a;

  --bg: #1d1f21;
  --panel: var(--main-0);
  --panel-2: var(--main-15);
  --line: #3f4348;
  --line-soft: #34383c;
  --txt: var(--main-100);
  --txt-2: var(--main-70);
  --txt-3: var(--main-50);
  --acc-soft: #45291f;
  --error-10: #45222e;
  --success-10: #2b3a1a;
  --tag-blue-10: #23364a;
  --back-2: #2f3336;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .5);
}

/* ---------- база ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 400 14px/20px Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv05", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-10); color: var(--accent-100); }
[data-theme="dark"] ::selection { background: var(--accent-100); color: #fff; }

/* типографика */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 32px; line-height: 38px; }
h2 { font-size: 20px; line-height: 26px; }
h3 { font-size: 16px; line-height: 22px; }
h4 { font-size: 14px; line-height: 20px; }
p { margin: 0; }
.t-xs { font-size: 12px; line-height: 16px; }
.t-xxs { font-size: 10px; line-height: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* иконки */
.i { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none;
     stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-16 { width: 16px; height: 16px; }
.i-24 { width: 24px; height: 24px; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--sp-6);
  padding: 0 var(--sp-6);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand-mark {
  width: 22px; height: 22px; flex: 0 0 auto;
  stroke: var(--acc); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.brand-mark circle { fill: var(--acc); stroke: none; }
.brand-thin { color: var(--txt-2); font-weight: 400; }
.topnav { display: flex; gap: 2px; }
.topnav a {
  position: relative; padding: 8px 12px; border-radius: var(--r-m);
  font-size: 14px; font-weight: 500; color: var(--txt-2);
}
.topnav a:hover { background: var(--panel-2); color: var(--txt); }
.topnav a.active { color: var(--txt); }
.topnav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -19px; height: 2px; background: var(--acc);
}
.pick-count {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  background: var(--acc); color: #fff; border-radius: var(--r-pill);
  font-size: 10px; line-height: 18px; font-weight: 600; text-align: center;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }

/* search bar */
.global-search { position: relative; }
.global-search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--txt-3); pointer-events: none; }
.global-search input {
  width: 280px; height: 36px; padding: 0 12px 0 34px;
  background: var(--panel-2); border: 1px solid transparent; border-radius: var(--r-m);
  font-size: 14px; outline: none; transition: .15s;
}
.global-search input::placeholder { color: var(--txt-3); }
.global-search input:hover { border-color: var(--line); }
.global-search input:focus { background: var(--panel); border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }

/* ---------- кнопки (Primary / Secondary / Tertiary / Destructive · S 32 / M 40) ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px;
  background: var(--acc); color: var(--on-acc);
  border: 1px solid transparent; border-radius: var(--r-m);
  font-size: 14px; font-weight: 600; line-height: 20px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #d64a13; }
.btn:active { background: #bf400f; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }
.btn[disabled], .btn.disabled { background: var(--panel-2); color: var(--txt-3); cursor: not-allowed; }
.btn.sec { background: var(--panel); color: var(--txt); border-color: var(--line); }
.btn.sec:hover { background: var(--panel-2); border-color: var(--main-50); }
.btn.ter { background: transparent; color: var(--txt-2); border-color: transparent; }
.btn.ter:hover { background: var(--panel-2); color: var(--txt); }
.btn.danger { background: var(--error-100); }
.btn.danger:hover { background: #d8225f; }
.btn.sm { --h: 32px; padding: 0 12px; font-size: 12px; }
.btn.icon { width: var(--h); padding: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  background: transparent; color: var(--txt-2);
  border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s;
}
.btn-ghost:hover { background: var(--panel-2); color: var(--txt); }
.btn-ghost.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }

/* ---------- теги и чипы ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px;
  background: var(--panel-2); color: var(--txt-2);
  border-radius: var(--r-s);
  font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.tag.accent { background: var(--acc-soft); color: var(--acc); }
.tag.blue { background: var(--tag-blue-10); color: var(--tag-blue-100); }
.tag.success { background: var(--success-10); color: #5d8f00; }
.tag.error { background: var(--error-10); color: var(--error-100); }
[data-theme="dark"] .tag.success { color: var(--success-100); }
.tag.outline { background: transparent; border: 1px solid var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: var(--panel); color: var(--txt-2);
  border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--acc); color: var(--acc); }
.chip .n { color: var(--txt-3); font-size: 12px; }

/* статусные точки */
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

/* ---------- макет ---------- */
#app { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-8) var(--sp-6) 80px; }
.fade-in { animation: fade .24s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.section { margin-top: var(--sp-12); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-4); }
.section-head h2 { font-size: 20px; }
.section-head a { font-size: 13px; font-weight: 500; color: var(--acc); }
.section-head a:hover { text-decoration: underline; }
.section-sub { margin-top: -8px; margin-bottom: 16px; font-size: 13px; color: var(--txt-2); }

/* ---------- главная: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--sp-12) var(--sp-10);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-m);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 420px; height: 100%;
  background: radial-gradient(circle at 100% 0, var(--acc-soft), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 4px 10px;
  background: var(--acc-soft); color: var(--acc);
  border-radius: var(--r-s); font-size: 12px; font-weight: 600;
}
.hero h1 { position: relative; max-width: 780px; font-size: 40px; line-height: 46px; letter-spacing: -.02em; }
.hero h1 .g { color: var(--acc); }
.hero p { position: relative; max-width: 680px; margin-top: 16px; font-size: 15px; line-height: 24px; color: var(--txt-2); }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
}
.stat { padding: 16px 18px; background: var(--panel); }
.stat b { display: block; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--txt-2); }

/* направления */
.dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.dir {
  padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dir:hover { border-color: var(--acc); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.dir .ico {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  background: var(--acc-soft); color: var(--acc); border-radius: var(--r-m);
}
.dir h3 { font-size: 15px; }
.dir p { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--txt-2); }

/* ---------- карточки проектов ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.cards.wide { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--main-50); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-cover { position: relative; display: block; aspect-ratio: 16/9; background: var(--panel-2); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.card:hover .card-cover img { transform: scale(1.03); }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  background: rgba(22, 22, 22, .78); color: #fff; backdrop-filter: blur(6px);
  border-radius: var(--r-s); font-size: 11px; font-weight: 500;
}
.badge.conf { background: rgba(243, 45, 115, .9); }
.media-flags { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 4px; }
.mflag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px;
  background: rgba(22, 22, 22, .72); color: #fff; border-radius: var(--r-s);
  font-size: 11px; font-weight: 500;
}
.card-check {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: grid; place-items: center; width: 26px; height: 26px;
  background: rgba(255, 255, 255, .92); color: var(--txt);
  border: 1px solid transparent; border-radius: var(--r-s);
  cursor: pointer; transition: .15s;
}
.card-check:hover { background: #fff; border-color: var(--acc); color: var(--acc); }
.card-check.on { background: var(--acc); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card-body h3 { font-size: 15px; line-height: 20px; }
.card-tagline {
  margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--txt-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-kpi { display: flex; gap: 20px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.card-kpi b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-kpi span { display: block; margin-top: 1px; font-size: 11px; line-height: 14px; color: var(--txt-3); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }

/* обложка-заглушка */
.cover-gen {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--panel-2), var(--back-2));
  color: var(--txt-3);
}
.cover-gen .big { font-size: 30px; }

/* ---------- каталог ---------- */
.catalog-head { margin-bottom: var(--sp-6); }
.catalog-head h1 { font-size: 28px; line-height: 34px; }
.catalog-head p { margin-top: 6px; font-size: 14px; color: var(--txt-2); }
.filter-bar { padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fselect { position: relative; }
.fselect > button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  background: var(--panel); color: var(--txt-2);
  border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s;
}
.fselect > button:hover { border-color: var(--main-50); color: var(--txt); }
.fselect > button.has { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.fselect .menu {
  display: none; position: absolute; z-index: 40; top: calc(100% + 4px); left: 0;
  min-width: 240px; max-height: 320px; overflow: auto; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-3);
}
.fselect.open .menu { display: block; }
.fselect .menu label {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px;
  border-radius: var(--r-s); font-size: 13px; color: var(--txt-2); cursor: pointer;
}
.fselect .menu label:hover { background: var(--panel-2); color: var(--txt); }
.fselect .menu input { accent-color: var(--acc); width: 14px; height: 14px; }
.sort-select {
  height: 32px; padding: 0 8px; background: var(--panel); color: var(--txt-2);
  border: 1px solid var(--line); border-radius: var(--r-m); font-size: 13px; cursor: pointer;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.afilter {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px;
  background: var(--panel-2); border-radius: var(--r-s); font-size: 12px; font-weight: 500;
}
.afilter button { background: none; border: 0; color: var(--txt-3); cursor: pointer; padding: 0 2px; line-height: 1; }
.afilter button:hover { color: var(--error-100); }
.reset-filters { height: 26px; padding: 0 10px; background: none; border: 0; color: var(--acc); font-size: 12px; font-weight: 500; cursor: pointer; }
.catalog-meta { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0; font-size: 13px; color: var(--txt-2); }

/* empty state */
.empty { padding: 56px 24px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.empty .ico { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; background: var(--panel-2); border-radius: var(--r-m); color: var(--txt-3); }
.empty h3 { font-size: 16px; }
.empty p { max-width: 420px; margin: 8px auto 0; font-size: 13px; line-height: 18px; color: var(--txt-2); }

/* ---------- страница проекта ---------- */
.crumbs { margin-bottom: 16px; font-size: 12px; color: var(--txt-3); }
.crumbs a { color: var(--txt-2); }
.crumbs a:hover { color: var(--acc); }
.phero { display: grid; grid-template-columns: 1fr 46%; gap: var(--sp-8); align-items: start; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.badge2 {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  background: var(--panel-2); color: var(--txt-2); border-radius: var(--r-s);
  font-size: 12px; font-weight: 500;
}
.badge2.type { background: var(--acc-soft); color: var(--acc); }
.badge2.status { background: var(--tag-blue-10); color: var(--tag-blue-100); }
.badge2.conf { background: var(--error-10); color: var(--error-100); }
.phero h1 { font-size: 32px; line-height: 38px; }
.phero .tagline { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--acc); }
.phero .summary { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--txt-2); }
.phero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.phero-media { overflow: hidden; background: #000; border: 1px solid var(--line); border-radius: var(--r-m); }
.phero-media video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; }
.phero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* KPI */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-3); margin: var(--sp-8) 0; }
.kpi {
  position: relative; padding: 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-m);
}
.kpi b { display: block; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--acc); }
.kpi > span { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--txt); }
.kpi-state {
  display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; margin-bottom: 10px;
  border-radius: var(--r-s); font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: .02em;
}
.kpi-state.ok { background: var(--success-10); color: #5d8f00; }
.kpi-state.draft { background: var(--acc-soft); color: var(--acc); }
[data-theme="dark"] .kpi-state.ok { color: var(--success-100); }

/* alert / банер */
.conf-note {
  display: flex; gap: 10px; padding: 12px 14px; margin-bottom: var(--sp-6);
  background: var(--acc-soft); border: 1px solid var(--acc); border-radius: var(--r-m);
  font-size: 13px; line-height: 18px; color: var(--txt);
}
.conf-note .i { color: var(--acc); }

/* сетка контента */
.pgrid { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-8); align-items: start; }
.pblock { margin-bottom: var(--sp-8); }
.pblock > h2 {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 18px; line-height: 24px;
}
.pblock > h2::before { content: ""; width: 3px; height: 16px; background: var(--acc); border-radius: var(--r-s); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.mini-card { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.mini-card h4 { margin-bottom: 8px; font-size: 13px; color: var(--acc); }
.mini-card p { font-size: 13px; line-height: 20px; color: var(--txt-2); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; margin-bottom: 6px; counter-increment: s;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 13.5px; line-height: 20px;
}
.steps li::before {
  content: counter(s);
  display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px;
  background: var(--acc-soft); color: var(--acc); border-radius: var(--r-s);
  font-size: 12px; font-weight: 600;
}
.feat-list, .value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.feat-list li, .value-list li {
  display: flex; gap: 10px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 13.5px; line-height: 19px;
}
.feat-list li::before, .value-list li::before {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px;
  background: var(--success-100); border-radius: var(--r-s);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.value-list li::before { background: var(--acc); }

/* медиа-сетка */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.media-item {
  position: relative; overflow: hidden; aspect-ratio: 16/10; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-m);
}
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.media-item:hover img { transform: scale(1.04); }
.media-item .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(22, 22, 22, .28); color: #fff; transition: .2s;
}
.media-item:hover .play { background: rgba(239, 85, 24, .5); }
.media-item .play span {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: rgba(255, 255, 255, .92); color: var(--acc); border-radius: 50%;
  font-size: 14px; padding-left: 3px;
}
.media-item .dur {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 6px;
  background: rgba(22, 22, 22, .8); color: #fff; border-radius: var(--r-s);
  font-size: 11px; font-weight: 500;
}
.media-cap { margin-top: 6px; font-size: 12px; color: var(--txt-3); }

/* ---------- сайдбар ---------- */
.psidebar { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: var(--sp-3); }
.side-card { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.side-card h3 { margin-bottom: 12px; font-size: 14px; }
.dl-list { display: flex; flex-direction: column; gap: 4px; }
.dl {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid transparent; border-radius: var(--r-m);
  font-size: 13px; font-weight: 500; color: var(--txt); transition: .15s;
}
.dl:hover { background: var(--panel-2); border-color: var(--line); }
.dl .ico {
  display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px;
  background: var(--panel-2); color: var(--txt-2); border-radius: var(--r-s);
}
.dl .nm { flex: 1 1 auto; min-width: 0; line-height: 17px; overflow-wrap: anywhere; }
.dl .meta { flex: 0 0 auto; max-width: 45%; text-align: right; font-size: 10px; line-height: 13px; font-weight: 400; color: var(--txt-3); }
.dl.primary { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.dl.primary .ico { background: var(--acc); color: #fff; }
.dl.primary .meta { color: var(--acc); }
.dl.primary:hover { background: var(--acc); color: #fff; }
.dl.primary:hover .meta { color: rgba(255, 255, 255, .8); }
.dl.primary:hover .ico { background: rgba(255, 255, 255, .2); }
.dl.locked { color: var(--txt-3); cursor: not-allowed; }
.side-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 11px; line-height: 15px; color: var(--txt-3); }
.side-kv { margin: 0; display: flex; flex-direction: column; gap: 0; }
.side-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.side-kv > div:last-child { border-bottom: 0; }
.side-kv dt { color: var(--txt-3); }
.side-kv dd { margin: 0; font-weight: 500; text-align: right; }
.related { display: flex; flex-direction: column; gap: 4px; }
.rel { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-m); transition: .15s; }
.rel:hover { background: var(--panel-2); }
.rel img { width: 64px; height: 40px; object-fit: cover; border-radius: var(--r-s); }
.rel b { display: block; font-size: 12.5px; line-height: 16px; font-weight: 500; }
.rel span { display: block; margin-top: 2px; font-size: 11px; color: var(--txt-3); }

/* ---------- подборка ---------- */
.coll-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-6); }
.coll-list { display: flex; flex-direction: column; gap: 8px; }
.coll-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
  padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
}
.coll-item img { width: 120px; height: 68px; object-fit: cover; border-radius: var(--r-s); }
.coll-item h3 { font-size: 14px; }
.coll-item p { margin-top: 4px; font-size: 12.5px; color: var(--txt-2); }

/* ---------- презентация ---------- */
.present { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--bg); }
.present-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.present-bar .pb-title { font-size: 13px; font-weight: 500; }
.present-bar .pb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.present-stage { flex: 1; display: grid; place-items: center; padding: 24px; overflow: auto; }
.slide {
  width: min(1180px, 100%); min-height: 620px; padding: 56px 64px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
}
.slide h1 { font-size: 40px; line-height: 48px; }
.slide h2 { margin-bottom: 24px; font-size: 28px; line-height: 34px; }
.slide .lead { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--txt-2); }
.slide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.slide ul li { display: flex; gap: 12px; font-size: 16px; line-height: 24px; }
.slide ul li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 9px; background: var(--acc); border-radius: var(--r-s); }
.slide .s-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.slide .s-kpi { padding: 20px; background: var(--panel-2); border-radius: var(--r-m); }
.slide .s-kpi b { display: block; font-size: 30px; font-weight: 600; color: var(--acc); }
.slide .s-kpi span { display: block; margin-top: 4px; font-size: 13px; color: var(--txt-2); }
.slide .s-foot { margin-top: 32px; font-size: 13px; color: var(--txt-3); }
.slide-img { width: 100%; max-height: 420px; object-fit: contain; border-radius: var(--r-m); }
.present-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; background: var(--panel); border-top: 1px solid var(--line); }
.present-dots { display: flex; gap: 5px; }
.present-dots i { width: 6px; height: 6px; background: var(--line); border-radius: 50%; cursor: pointer; }
.present-dots i.on { background: var(--acc); width: 18px; border-radius: var(--r-pill); }

/* ---------- лайтбокс, тосты ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: rgba(10, 12, 14, .85); backdrop-filter: blur(4px);
}
.lightbox-body { max-width: 92vw; max-height: 88vh; }
.lightbox-body img, .lightbox-body video { max-width: 92vw; max-height: 88vh; border-radius: var(--r-m); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; display: grid; place-items: center;
  width: 36px; height: 36px; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; border-radius: var(--r-m); cursor: pointer;
}
.lightbox-close:hover { background: var(--acc); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translateX(-50%);
  padding: 10px 16px; background: var(--main-100); color: var(--main-0);
  border-radius: var(--r-m); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-3);
  animation: fade .2s ease both;
}
[data-theme="dark"] .toast { background: var(--panel); color: var(--txt); border: 1px solid var(--line); }

/* загрузка */
.loading-state { display: grid; place-items: center; gap: 16px; padding: 120px 0; color: var(--txt-3); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* подвал */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 24px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--txt-3);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .pgrid { grid-template-columns: 1fr; }
  .psidebar { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .phero { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .two-col, .feat-list, .value-list, .media-grid { grid-template-columns: 1fr; }
  .global-search input { width: 180px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 30px; line-height: 36px; }
}
@media (max-width: 640px) {
  .cards, .dir-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
  #app { padding: 20px 16px 60px; }
  .coll-item { grid-template-columns: 1fr; }
  .coll-item img { width: 100%; height: 140px; }
}

/* ---------- печать (PDF презентации) ---------- */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .topbar, .footer, .present-bar, .present-nav, .toast { display: none !important; }
  .present, .present-stage { position: static; display: block; padding: 0; overflow: visible; }
  .slide {
    width: 297mm; height: 210mm; min-height: 0; padding: 18mm 20mm; margin: 0;
    border: 0; border-radius: 0; page-break-after: always; break-after: page;
  }
  .slide h1 { font-size: 32pt; line-height: 38pt; }
  .slide h2 { font-size: 22pt; }
  .print-only { display: block !important; }
}

/* =========================================================================
   Дополнительные компоненты: облако чипов, подборка, презентация
   ========================================================================= */

/* облако чипов */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* форма подборки */
.coll-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: var(--sp-5); }
.coll-form input, .coll-form textarea {
  width: 100%; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 13.5px; outline: none; transition: .15s; resize: vertical;
}
.coll-form input::placeholder, .coll-form textarea::placeholder { color: var(--txt-3); }
.coll-form input:focus, .coll-form textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.coll-form textarea { grid-column: 1 / -1; min-height: 72px; }
.coll-item .inf { min-width: 0; }
.coll-ctl { display: flex; gap: 4px; }
.coll-ctl button {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--panel); color: var(--txt-2);
  border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; transition: .15s;
}
.coll-ctl button:hover { border-color: var(--acc); color: var(--acc); }

/* презентация */
.present-wrap {
  position: fixed; inset: var(--topbar-h) 0 0; z-index: 70;
  display: flex; flex-direction: column; background: var(--bg);
}
.present-top {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.present-top strong { font-size: 13px; font-weight: 600; }
.present-top .cnt { margin-left: auto; font-size: 12px; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.client-mode-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  background: var(--panel-2); border-radius: var(--r-m);
  font-size: 12.5px; font-weight: 500; color: var(--txt-2); cursor: pointer;
}
.client-mode-toggle input { accent-color: var(--acc); width: 14px; height: 14px; }
.slide-area { flex: 1; display: grid; place-items: start center; padding: 24px; overflow: auto; }
.present-nav { display: flex; justify-content: center; gap: 8px; padding: 12px; background: var(--panel); border-top: 1px solid var(--line); }
.present-nav button {
  display: grid; place-items: center; width: 40px; height: 36px;
  background: var(--panel); color: var(--txt-2);
  border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; transition: .15s;
}
.present-nav button:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.s-kicker {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-bottom: 20px;
  background: var(--acc-soft); color: var(--acc); border-radius: var(--r-s);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.s-body { margin-top: 16px; max-width: 900px; font-size: 17px; line-height: 27px; color: var(--txt-2); }
.s-img { width: 100%; max-height: 380px; margin-top: 28px; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); }
.slide .s-foot { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--txt-3); }
.slide .kpi-strip { margin: 24px 0 0; }
.print-slide { margin-bottom: 20px; }

/* тема: иконки в переключателе */
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block !important; }

/* статус на карточке проекта */
.card-status {
  display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px; font-weight: 500; color: var(--txt-3);
}
.card-status.live { color: #5d8f00; }
[data-theme="dark"] .card-status.live { color: var(--success-100); }
.card-status.wip { color: var(--acc); }

/* =========================================================================
   Полировка: продающий слой поверх системы evo^CUSTOM
   ========================================================================= */

/* --- HERO: графитовый блок в обеих темах --- */
.hero {
  --hero-bg: #17191c;
  --hero-line: rgba(255, 255, 255, .08);
  padding: 0; background: var(--hero-bg); border-color: transparent;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto 30%; width: 780px; height: 700px;
  background: radial-gradient(circle at 50% 40%, rgba(239, 85, 24, .38), rgba(239, 85, 24, 0) 60%);
  filter: blur(24px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hero-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 78%);
          mask: linear-gradient(180deg, #000, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 56px 48px;
}
.hero-eyebrow {
  background: rgba(239, 85, 24, .16); color: #ff7a45;
  border: 1px solid rgba(239, 85, 24, .35);
}
.hero h1 { font-size: 52px; line-height: 58px; letter-spacing: -.03em; color: #fff; }
.hero h1 .g {
  background: linear-gradient(92deg, #ff8a3d, #ef5518);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: rgba(255, 255, 255, .68); font-size: 16px; line-height: 26px; }
.hero .btn.sec {
  background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.hero .btn.sec:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); }
.hero-stats {
  grid-column: 1 / -1; position: relative; z-index: 1;
  margin: 0; background: rgba(255, 255, 255, .09); border: 0; border-top: 1px solid var(--hero-line);
  border-radius: 0; gap: 1px;
}
.stat {
  position: relative; padding: 22px 24px 20px; background: var(--hero-bg);
  transition: background .25s;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--acc); transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.stat:hover { background: #1d2024; }
.stat:hover::before { width: 100%; }
.stat-ico { display: block; margin-bottom: 12px; color: rgba(255, 255, 255, .32); }
.stat b {
  display: block; font-size: 40px; line-height: 44px; font-weight: 700;
  letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block; margin-top: 6px;
  font-size: 11px; line-height: 15px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .46);
}
.stat.hot { background: linear-gradient(180deg, rgba(239, 85, 24, .16), rgba(239, 85, 24, .04)); }
.stat.hot::before { width: 100%; }
.stat.hot .stat-ico { color: var(--acc); }
.stat.hot b {
  background: linear-gradient(92deg, #ff9a5c, #ef5518);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat.hot .stat-label { color: rgba(255, 255, 255, .72); }

/* коллаж превью в hero */
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-collage figure {
  position: relative; margin: 0; overflow: hidden; cursor: pointer;
  aspect-ratio: 16/10; border-radius: var(--r-m);
  border: 1px solid rgba(255, 255, 255, .14); background: #0f1113;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
}
.hero-collage figure:first-child { grid-column: span 2; aspect-ratio: 16/8.4; }
.hero-collage figure:hover {
  transform: translateY(-3px); border-color: rgba(239, 85, 24, .65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.hero-collage img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-collage figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(9, 10, 12, .9) 55%);
  font-size: 11px; font-weight: 500; line-height: 14px; color: rgba(255, 255, 255, .92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-collage .hc-live {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; background: rgba(9, 10, 12, .78); backdrop-filter: blur(6px);
  border-radius: var(--r-s); font-size: 9px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: #a8e85a;
}
.hero-collage .hc-live::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* --- заголовки секций --- */
.section-head h2 { font-size: 24px; line-height: 30px; letter-spacing: -.02em; }
.section-kicker {
  display: block; margin-bottom: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--acc);
}
.section-head a { display: inline-flex; align-items: center; gap: 6px; }
.section-head a:hover { gap: 9px; transition: gap .2s; }

/* --- карточки: акцентная линия и приподнятие --- */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, var(--acc), #ff9a5c);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: 0 16px 36px rgba(22, 22, 22, .12); }
[data-theme="dark"] .card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .5); }
.card-body h3 { transition: color .2s; }
.card:hover .card-body h3 { color: var(--acc); }
.card-kpi b { color: var(--txt); }

/* крупная промо-карточка (разноразмерная сетка маркетплейса) */
.card.promo { grid-column: span 2; flex-direction: row; }
.card.promo .card-cover { flex: 0 0 52%; aspect-ratio: auto; }
.card.promo .card-body { padding: 24px; }
.card.promo .card-body h3 { font-size: 21px; line-height: 27px; letter-spacing: -.02em; }
.card.promo .card-tagline { font-size: 14px; line-height: 21px; -webkit-line-clamp: 3; }
.card.promo .card-kpi b { font-size: 22px; }
.card.promo .card-kpi { gap: 28px; }
.card.promo .promo-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13.5px; font-weight: 600; color: var(--acc);
}
.card.promo:hover .promo-cta { gap: 12px; transition: gap .2s; }
.card.promo .card-tags { margin-top: 16px; }

/* --- CTA-блок --- */
.cta {
  position: relative; overflow: hidden; margin-top: var(--sp-12);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 36px 40px; border-radius: var(--r-m);
  background: linear-gradient(100deg, #ef5518, #ff8a3d);
  color: #fff;
}
.cta::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border: 40px solid rgba(255, 255, 255, .12); border-radius: 50%;
}
.cta h2 { position: relative; font-size: 26px; line-height: 32px; letter-spacing: -.02em; color: #fff; }
.cta p { position: relative; margin-top: 8px; max-width: 620px; font-size: 14.5px; line-height: 22px; color: rgba(255, 255, 255, .85); }
.cta .btn { position: relative; background: #fff; color: #16181a; }
.cta .btn:hover { background: rgba(255, 255, 255, .88); }

/* --- страница проекта: акцент на заголовке --- */
.phero h1 { font-size: 38px; line-height: 44px; letter-spacing: -.025em; }
.phero .tagline { font-size: 17px; line-height: 26px; }
.phero-media { position: relative; box-shadow: var(--shadow-2); }

/* KPI: сильнее визуально */
.kpi { transition: border-color .2s, box-shadow .2s, transform .2s; }
.kpi:hover { border-color: var(--acc); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.kpi b { font-size: 27px; line-height: 32px; }

/* направления: стрелка при наведении */
.dir { position: relative; }
.dir::after {
  content: "→"; position: absolute; right: 18px; top: 18px;
  color: var(--acc); opacity: 0; transform: translateX(-6px); transition: .25s;
  font-size: 16px;
}
.dir:hover::after { opacity: 1; transform: none; }

/* мягкое появление секций */
.section, .cards, .kpi-strip { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1200px) {
  .card.promo { grid-column: span 2; flex-direction: column; }
  .card.promo .card-cover { flex: none; aspect-ratio: 16/9; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px; }
  .hero h1 { font-size: 34px; line-height: 40px; }
  .hero-collage figure:first-child { aspect-ratio: 16/9; }
  .cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .card.promo { grid-column: span 1; }
}

/* компактный CTA внутри страницы проекта */
.cta-sm { margin-top: 0; margin-bottom: var(--sp-8); padding: 28px 32px; }
.cta-sm h2 { font-size: 21px; line-height: 27px; }
.cta-sm p { font-size: 13.5px; line-height: 20px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost-on-acc { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.ghost-on-acc:hover { background: rgba(255, 255, 255, .26); border-color: #fff; }

/* кнопка выбора в подборку — корректная в обеих темах */
[data-theme="dark"] .card-check { background: rgba(24, 27, 30, .88); color: var(--txt); }
[data-theme="dark"] .card-check:hover { background: #23272b; border-color: var(--acc); color: var(--acc); }
[data-theme="dark"] .card-check.on { background: var(--acc); color: #fff; }

/* =========================================================================
   ML Portfolio: дополнения поверх системы evo^CUSTOM
   (таймкоды видео, живой стенд, графики прогноза, структура стада, маршруты)
   ========================================================================= */

/* колонка медиа на странице проекта: видео + таймкоды */
.phero-media-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.chapter {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; text-align: left;
  background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: var(--r-m);
  cursor: pointer; transition: .15s;
}
.chapter:hover { border-color: var(--acc); }
.chapter.on { border-color: var(--acc); background: var(--acc-soft); }
.chapter .ct { font-size: 11px; font-weight: 600; color: var(--acc); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chapter .cl { font-size: 12.5px; font-weight: 500; line-height: 16px; }
.chapter .cs { font-size: 11px; color: var(--txt-3); line-height: 14px; }

/* живой стенд */
.live-card { border-color: var(--success-100); }
.live-card h3 { display: flex; align-items: center; gap: 8px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px;
  background: var(--success-10); color: #5d8f00; border-radius: var(--r-s);
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
[data-theme="dark"] .live-badge { color: var(--success-100); }
.live-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.live-url { display: block; margin: 6px 0 10px; font-size: 12px; color: var(--txt-2); overflow-wrap: anywhere; }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: var(--r-m); font-size: 12.5px; }
.cred dt { color: var(--txt-3); }
.cred dd { margin: 0; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.live-note { margin-top: 10px; font-size: 12px; line-height: 17px; color: var(--txt-2); }
.btn.tg { background: #2aabee; }
.btn.tg:hover { background: #229ed9; }

/* бейдж «стенд» на карточке */
.mflag.live { background: rgba(93, 143, 0, .9); }

/* фон hero: сетка + точки данных */
.hero .hero-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(ellipse at 80% 20%, #000 0, transparent 60%);
          mask: radial-gradient(ellipse at 80% 20%, #000 0, transparent 60%);
}

/* ---------- имя клиента под NDA: раскрытие по клику (внутренняя информация) ---------- */
.badge.reveal-card {
  border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 500;
  background: rgba(243, 45, 115, .9); color: #fff; transition: .15s;
}
.badge.reveal-card:hover { background: var(--error-100); }
.badge.reveal-card.wide { background: rgba(22, 22, 22, .84); }
.badge2.reveal {
  cursor: pointer; font: inherit; font-size: 12px; font-weight: 500;
  border: 1px dashed var(--error-100); background: var(--error-10); color: var(--error-100);
  transition: .15s;
}
.badge2.reveal:hover { background: var(--error-100); color: #fff; }
.badge2.reveal.on { border-style: solid; border-color: var(--line); background: var(--panel-2); color: var(--txt); }
.badge2.reveal.on:hover { border-color: var(--acc); color: var(--acc); background: var(--panel-2); }
.reveal-hint {
  margin-left: 6px; padding: 0 5px; border-radius: var(--r-s);
  background: rgba(255, 255, 255, .35); font-size: 10px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
[data-theme="dark"] .reveal-hint { background: rgba(255, 255, 255, .14); }
.badge2.reveal.on .reveal-hint { background: var(--panel); color: var(--txt-3); }
.reveal-mini {
  padding: 2px 8px; border: 1px dashed var(--line); border-radius: var(--r-s);
  background: transparent; color: var(--txt-2);
  font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: .15s;
}
.reveal-mini:hover { border-color: var(--acc); color: var(--acc); }
.reveal-mini.on { border-style: solid; border-color: var(--line); color: var(--txt); font-weight: 600; }

/* =========================================================================
   Полировка по итогам визуального аудита (сентябрь 2026)
   ========================================================================= */

/* --- мобильная шапка: поиск тянется по ширине, ничего не выезжает за экран --- */
@media (max-width: 860px) {
  .topbar { gap: var(--sp-3); padding: 0 var(--sp-4); }
  .global-search { flex: 1 1 auto; min-width: 0; }
  .global-search input { width: 100%; }
  .topbar-right { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 640px) {
  .topbar { gap: var(--sp-2); padding: 0 var(--sp-3); }
  .brand { font-size: 15px; }
  .global-search input { height: 32px; font-size: 13px; }
}

/* --- демо-интерфейс на узком экране: плитки и парные блоки в один столбец --- */
@media (max-width: 720px) {
  .chapters { grid-template-columns: 1fr 1fr; }
  .kpi-strip { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .kpi { padding: 12px; }
  .kpi b { font-size: 22px; line-height: 26px; }
}
@media (max-width: 460px) {
  .chapters, .kpi-strip { grid-template-columns: 1fr; }
}

/* --- обложки: единая рамка, чтобы светлые скриншоты не «слепили» в тёмной теме --- */
.card-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .06);
}
[data-theme="dark"] .card-cover::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 42%);
}
.card-cover img { object-position: center; }

/* --- теги на карточке не выпирают за край --- */
.card-tags { max-width: 100%; overflow: hidden; }
.card-tags .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }

/* блоки не растягивают страницу на узком экране */
.pblock, .pgrid > *, .phero-media-col { min-width: 0; }

/* витрина на главной — та же сетка, что и в каталоге: обложки 16:9 без обрезки,
   карточки одинаковой высоты (промо-вариант карточки больше не используется) */
