/* ============================================================
   KMA — marketing.kg · design system
   Palette: brand red, ink, paper, cream. Fonts: Unbounded (display),
   Golos Text (body). Variable woff2 subsets live in ../fonts.
   ============================================================ */

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-cyr-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-cyr.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/unbounded-cyr-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/unbounded-cyr.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/unbounded-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/unbounded-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #FF0000;
  --red-deep: #D40000;
  --ink: #131313;
  --ink-2: #3A3A3A;
  --muted: #7A776F;
  --line: #E8E4DC;
  --cream: #F6F3ED;
  --paper: #FFFFFF;
  --ghost: #D9D5CC;        /* placeholder headline colour, like Instinct */
  --ok: #1F8A4C;
  --display: 'Unbounded', 'Golos Text', sans-serif;
  --body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --page: 1440px;        /* максимальная ширина страницы */
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
  --shadow: 0 10px 30px rgba(19,19,19,.06);
  --t: .22s cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* Карточки в сетках: длинные слова не должны распирать колонки */
.person, .committee, .principle, .bignum, .org-node, .card, .event-row, .logo-card, .fact, .info, .doc, .stat { min-width: 0; overflow-wrap: break-word; }
main { max-width: var(--page); margin: 0 auto; }
body.menu-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
.h-page { font-size: clamp(32px, 7vw, 96px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.h-page .x { display: inline-block; margin-left: .35em; font-size: .35em; vertical-align: .9em; color: var(--ink); opacity: .6; transition: opacity var(--t), transform var(--t); }
.h-page a.x:hover { opacity: 1; transform: rotate(90deg); }
@media (max-width: 640px) {
  /* Крестик не зависит от кегля заголовка — иначе он «съёживается» на мобильном */
  .h-page { position: relative; padding-right: 46px; }
  .h-page .x { position: absolute; right: 0; top: 2px; margin: 0; font-size: 28px; line-height: 1; opacity: .8; }
  .h-page a.x::after { content: ""; position: absolute; inset: -10px; }  /* зона нажатия ~48px */
}
.h-section { font-size: clamp(26px, 3.4vw, 44px); }
.h-card { font-size: clamp(18px, 1.5vw, 22px); }
.kicker { font-family: var(--display); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 720px; }
.muted { color: var(--muted); }
p + p { margin-top: 1em; }
.prose { max-width: 720px; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-radius: var(--r-pill); font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn .arr { transition: transform var(--t); }
.btn:hover .arr { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 15px; font-weight: 500;
  background: #fff; transition: border-color var(--t), background var(--t), color var(--t);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-red.is-active { background: var(--red); border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.tag + .tag { margin-left: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.badge-red { background: rgba(255,0,0,.08); color: var(--red); }
.badge-ink { background: var(--cream); color: var(--ink-2); }
.badge-ok { background: rgba(31,138,76,.1); color: var(--ok); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 84px; min-width: 0; }
.logo { display: block; width: 92px; flex: 0 0 auto; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 7px 9px; border-radius: var(--r-pill); font-size: 13.5px; white-space: nowrap; font-weight: 500; color: var(--ink-2); transition: background var(--t), color var(--t); }
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a.is-current { color: var(--red); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1.5px solid var(--line); }
.lang button { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 6px 8px; border-radius: var(--r-pill); color: var(--muted); transition: background var(--t), color var(--t); }
.lang button:hover { color: var(--ink); }
.lang button.is-active { background: var(--ink); color: #fff; }
.header-cta { flex: 0 0 auto; padding: 12px 18px; font-size: 15px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; flex: 0 0 auto; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: background var(--t); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: transform var(--t), top var(--t); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }
/* Оверлей-меню: на мобильных везде, на десктопе — на главной (nav скрыт) */
.site-menu { display: none; position: fixed; inset: 84px 0 0; background: #fff; z-index: 49; overflow: auto; padding: clamp(16px, 4vw, 48px) 0 40px; }
.site-menu.is-open { display: block; }
.site-menu nav { display: grid; }
.site-menu nav a { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.2vw, 44px); letter-spacing: -.02em; padding: clamp(12px, 1.6vw, 20px) 0; border-bottom: 1.5px solid var(--line); transition: color var(--t), padding-left var(--t); counter-increment: mi; }
.site-menu nav a::before { content: counter(mi, decimal-leading-zero); font-size: 11px; letter-spacing: .12em; color: var(--red); font-weight: 600; }
.site-menu nav a:hover { color: var(--red); padding-left: 8px; }
.site-menu nav a.is-current { color: var(--red); }
.site-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.site-menu-foot .lang { display: flex; }
.site-header .lang { margin-left: 8px; }
body[data-page="home"] .site-header .lang { margin-left: auto; }

/* На главной десктоп-меню скрыто: только логотип, язык, «Вступить» и кнопка меню */
/* Меню не помещается в строку (длинные подписи, узкий экран) — уходит в бургер.
   Класс ставит скрипт после замера, см. fitHeader() в kma.js */
.site-header.nav-collapsed .nav { display: none; }
.site-header.nav-collapsed .burger { display: inline-flex; }
body[data-page="home"] .nav { display: none; }
body[data-page="home"] .burger { display: inline-flex; }

@media (max-width: 1200px) {
  .nav { display: none; }
  .burger { display: inline-flex; margin-left: auto; }  /* прижат к правому краю */
  .header-cta { display: none; }
  .site-header .lang { display: none; }
}

/* ---------- Page header block ---------- */
.page-head { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head .lead { margin-top: 24px; }
.page-head .kicker { margin-bottom: 18px; display: block; }

/* ---------- Home: assistant ---------- */
.ask { padding-top: clamp(32px, 4.5vw, 64px); }
.ask-field { position: relative; }
.ask-input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.05;
  font-size: var(--ask-size, clamp(30px, 5.4vw, 78px)); color: var(--ink); padding: 0; caret-color: var(--red);
  height: clamp(44px, 6.4vw, 92px);
}
.ask-field.has-text .ask-input { padding-right: 80px; }
.ask-input::placeholder { color: transparent; }
.ask-ghost {
  position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; gap: .18em;
  font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.05;
  font-size: var(--ask-size, clamp(30px, 5.4vw, 78px)); color: var(--ghost); white-space: nowrap; overflow: hidden;
  transition: opacity .25s;
}
.ask-ghost .cursor { width: .06em; height: .9em; background: var(--red); animation: blink 1.1s steps(2) infinite; }
.ask-field.has-text .ask-ghost, .ask-field.is-focus .ask-ghost .cursor { opacity: 0; }
@keyframes blink { to { opacity: 0; } }
.ask-hint { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.ask-hint .k { font-family: var(--display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; }
.ask-submit { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: clamp(44px, 5vw, 64px); height: clamp(44px, 5vw, 64px); border-radius: 50%; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: center; }
.ask-field.has-text .ask-submit { display: inline-flex; }
.ask-submit svg { width: 40%; height: 40%; }

.ask-thread { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.ask-thread:empty { margin-top: 0; }  /* пока ответов нет — блок не занимает места */
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; animation: rise .35s var(--t) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.msg .who { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.msg-user .who { background: var(--cream); color: var(--ink-2); }
.msg-bot .who { background: var(--red); color: #fff; }
.msg .bubble { padding: 4px 0 0; max-width: 760px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.msg-user .bubble { color: var(--muted); }
.msg .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.msg .links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); background: var(--cream); font-size: 14px; font-weight: 600; transition: background var(--t), color var(--t); }
.msg .links a:hover { background: var(--ink); color: #fff; }
.typing { display: inline-flex; gap: 5px; padding: 10px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ghost); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 40% { transform: translateY(-5px); background: var(--red); } }

.ask-actions { margin-top: clamp(20px, 2.6vw, 40px); }
.ask-actions .kicker { display: block; margin-bottom: 12px; }
/* Компактная строка ссылок: текст с подчёркиванием, разделитель « /» через ::after */
.quick { display: block; max-width: 720px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.quick a { display: inline; color: var(--ink); }
.quick a span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--ghost); transition: color var(--t), text-decoration-color var(--t); }
.quick a:hover span { color: var(--red); text-decoration-color: var(--red); }
.quick a::after { content: " / "; color: var(--muted); }
.quick a:last-child::after { content: ""; }
.quick a.is-join span { background: var(--red); color: #fff; padding: 1px 8px 3px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.quick a.is-join:hover span { background: var(--red-deep); color: #fff; }

/* Манифест — первый блок главной, сразу под шапкой */
.manifesto { padding-top: clamp(20px, 2.4vw, 36px); }
.manifesto p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.01em; max-width: 980px; }
.manifesto p em { font-style: normal; color: var(--red); }
.home-end { padding-bottom: clamp(56px, 8vw, 120px); }

/* ---------- Generic sections ---------- */
/* Вертикальный ритм: секции отбиваются только сверху, поэтому расстояние между ними одно и то же */
.section { padding-top: clamp(40px, 5.5vw, 80px); }
.section-cream { padding-top: clamp(36px, 4.5vw, 64px); padding-bottom: clamp(36px, 4.5vw, 64px); margin-top: clamp(40px, 5.5vw, 80px); }
.section-cream { background: var(--cream); border-radius: var(--r-lg); margin: 0 clamp(8px, 1.5vw, 20px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 2.5vw, 32px); }
.section-head .kicker { display: block; margin-bottom: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-card { padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--cream); }
.mv-card.red { background: var(--red); color: #fff; }
.mv-card .kicker { display: block; margin-bottom: 18px; }
.mv-card.red .kicker { color: #fff; opacity: .85; }
.mv-card p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.01em; }
@media (max-width: 860px) { .mv { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.principle { padding: 22px 20px; border: 1.5px solid var(--line); border-radius: var(--r-md); }
.principle b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.principle span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.bignums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bignum { padding: 30px 26px 26px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); }
.bignum .big { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.2vw, 62px); line-height: 1; letter-spacing: -.03em; }
.bignum .pct { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--red); }
.bignum .pct.down { color: var(--muted); }
.bignum .lbl { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bignums { grid-template-columns: 1fr; } }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.committees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: c; }
.committee { padding: 22px 24px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.committee i { font-family: var(--display); font-style: normal; font-weight: 600; color: var(--red); font-size: 13px; padding-top: 4px; }
.committee b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; }
.committee span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .committees { grid-template-columns: 1fr; } }

.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-md); font-weight: 500; transition: border-color var(--t); }
.doc:hover { border-color: var(--ink); }
.doc .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--red); font-family: var(--display); font-size: 10px; font-weight: 600; }
.doc small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }

/* ---------- Leadership / people ---------- */
.org { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.org-node { padding: 18px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; }
.org-node.red { background: var(--red); color: #fff; border-color: var(--red); }
.org-node.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.org-node b { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.25; }
.org-node span { display: block; margin-top: 8px; font-size: 13px; opacity: .75; line-height: 1.4; }
.org-node i { display: block; font-style: normal; font-family: var(--display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
@media (max-width: 960px) { .org { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .org { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.people.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.people.wide .person { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.people.wide .person .ph { aspect-ratio: 3 / 3.6; }
.people.wide .person b { margin-top: 6px; font-size: 20px; }
.people.wide .person .bio { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) { .people.wide { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .people.wide .person { grid-template-columns: 1fr; } }
.person { display: block; }
.person .ph { aspect-ratio: 3 / 3.4; border-radius: var(--r-md); overflow: hidden; background: var(--cream); position: relative; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .4s, transform .6s var(--t); }
.person:hover .ph img { filter: none; transform: scale(1.02); }
.person .ph .init { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 44px); color: var(--red); background: linear-gradient(160deg, var(--cream), #EDE8DF); }
.person .ph .num { position: absolute; top: 12px; right: 12px; font-family: var(--display); font-size: 11px; font-weight: 600; color: var(--red); background: #fff; padding: 5px 8px; border-radius: 6px; }
.person b { display: block; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.person span { display: block; margin-top: 5px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.person .tags { margin-top: 8px; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .people, .people.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: clamp(20px, 3vw, 32px); }
.toolbar .search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; padding: 0 16px; height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-pill); }
.toolbar .search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.toolbar .search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.count { font-family: var(--display); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.toolbar .count { margin-left: auto; }
.empty { padding: 48px 0; color: var(--muted); text-align: center; }

/* ---------- Partners ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logo-card { aspect-ratio: 1; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; padding: 18px; transition: border-color var(--t), transform var(--t), box-shadow var(--t); position: relative; }
.logo-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-card .lg { font-family: var(--display); font-weight: 700; font-size: 15px; text-align: center; line-height: 1.2; letter-spacing: -.01em; }
.logo-card .lg small { display: block; font-weight: 500; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.logo-card.slot { border-style: dashed; color: var(--muted); font-size: 13px; text-align: center; }
.logo-card .demo { position: absolute; top: 8px; right: 8px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.partner-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 0 0 clamp(24px, 4vw, 48px); }
.partner-hero .logo-big { aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--cream); display: grid; place-items: center; padding: 40px; }
.partner-hero .logo-big .lg { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); text-align: center; line-height: 1.15; }
.back { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: clamp(24px, 3vw, 40px); }
.back .c { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background var(--t), color var(--t); }
.back:hover .c { background: var(--ink); color: #fff; }
.perks { list-style: none; padding: 0; }
.perks li { padding: 14px 0; border-top: 1.5px solid var(--line); }
.perks li:last-child { border-bottom: 1.5px solid var(--line); }
.perks li::before { content: "✳ "; color: var(--red); }
.partner-hero .partner-name { font-size: clamp(34px, 5.4vw, 72px); margin-top: 18px; }
.partner-hero .lead { margin-top: 18px; }
.partner-hero .chips { margin-top: 22px; }
.partner-body { padding: clamp(16px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.partner-body .about { margin-top: 14px; font-size: 18px; }
.partner-body .facts { grid-template-columns: 1fr; margin-top: 14px; }
.post-cta { margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.fact { padding: 18px 20px; border-radius: var(--r-md); background: var(--cream); }
.fact b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.fact span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .partner-hero { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* ---------- Listings (events, projects, news) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.card { display: block; }
.card .cover { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--cream); position: relative; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t); }
.card:hover .cover img { transform: scale(1.03); }
.card .cover .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.card .cover .ph svg { width: 34%; height: auto; opacity: .9; }
.card .cover .badge { position: absolute; top: 12px; left: 12px; background: #fff; }
.card .cover .date { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 11px; font-weight: 600; padding: 7px 10px; border-radius: 8px; letter-spacing: .04em; }
.card .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.card b { display: block; margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.25; letter-spacing: -.01em; }
.card:hover b { color: var(--red); }
.card p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.card .tags { margin-top: 10px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards.two { grid-template-columns: 1fr; gap: 28px; } }

.event-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1.5px solid var(--line); transition: background var(--t); }
.event-row:last-child { border-bottom: 1.5px solid var(--line); }
.event-row:hover b { color: var(--red); }
.event-row .badge { justify-self: start; }
.event-row .d { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.event-row .d small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 500; }
.event-row b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.25; }
.event-row span.where { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .event-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Post / detail ---------- */
.post-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); max-width: 900px; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin-top: 18px; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; align-items: center; }
.post-cover { aspect-ratio: 21 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); display: grid; place-items: center; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover svg { width: 18%; }
.post-cover.empty { aspect-ratio: auto; width: 100%; height: clamp(88px, 12vw, 180px); }
.post-cover.empty svg { width: auto; height: 52%; }
.post-body { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 88px); }
.post-body .prose { font-size: 18px; }
.post-body .prose h3 { font-size: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.info { padding: 18px 20px; border-radius: var(--r-md); border: 1.5px solid var(--line); }
.info i { display: block; font-style: normal; font-family: var(--display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.info b { font-family: var(--display); font-weight: 600; font-size: 16px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Contacts ---------- */
.contact-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.cblock + .cblock { margin-top: 36px; }
.cblock .kicker { display: block; margin-bottom: 12px; }
.cblock p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.cblock a.u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color var(--t); }
.cblock a.u:hover { color: var(--red); }
.cblock .big { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em; }
.map { aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--cream); position: relative; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(100%) contrast(1.05); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 860px) { .contact-blocks { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { margin: clamp(40px, 5.5vw, 80px) clamp(8px, 1.5vw, 20px) clamp(40px, 5.5vw, 80px); border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 40px); max-width: 640px; }
.cta-band .kicker { color: #fff; opacity: .7; display: block; margin-bottom: 12px; }

/* Плашка предпросмотра черновика из editor.html */
.draft-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.draft-bar a, .draft-bar button { color: #fff; text-decoration: underline; font-size: 13px; }

/* ---------- Page bottom ---------- */
.page-end { padding-bottom: clamp(48px, 6vw, 96px); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--t), transform .6s var(--t); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }
