/* «Топ-100» (/top-100/): стили макета work/mockups/top100, без окна-диалога — карточка человека теперь своя страница. */
@font-face { font-family: Inter; src: url(fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0400-04FF; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Literata; src: url(fonts/literata-cyrillic.woff2) format('woff2'); unicode-range: U+0400-04FF; font-weight: 200 900; font-display: swap; }
@font-face { font-family: Literata; src: url(fonts/literata-latin.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0400-04FF; font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0400-04FF; font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); font-weight: 500; font-display: swap; }
:root {
  --bg: #fbfbf9; --surface: #f4f4f1; --card: #ffffff; --tint: #f3f4f0; --track: #e6e6e1;
  --ink: #17171a; --text2: #3f3f46; --muted: #505056; --subtle: #6b6b71; --faint: #87878d;
  --line: #e3e3de; --line-strong: #cfcfc9; --good: #1f7f45; --bad: #c9452b; --gold: #a26f14;
  --display: Literata, Georgia, serif; --text: Inter, system-ui, sans-serif; --mono: Plex, ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--subtle); }
button { font: inherit; cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 15px 22px; font-weight: 600; font-size: 16px; border: 1.5px solid var(--ink); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* header */
header { position: sticky; top: 0; z-index: 20; background: rgba(251,251,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img:first-child { width: 26px; height: 26px; } .logo img:last-child { height: 17px; width: auto; }
header .btn { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.crumbs { font-size: 13px; color: var(--subtle); margin: 0 0 14px; }
.crumbs a { color: var(--subtle); }

/* hero */
.hero { padding: 28px 0 28px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 16px; max-width: 900px; }
.hero p.lead { font-size: 18px; line-height: 1.5; color: var(--text2); max-width: 640px; margin: 0 0 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 24px; max-width: 640px; }
.stats div { background: var(--card); padding: 16px 14px; }
.stats b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 13px; color: var(--subtle); margin: 12px 0 0; }

h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 6px; }
.section { padding: 34px 0; }
.section > .wrap > p.sub { color: var(--muted); margin: 0 0 20px; font-size: 16px; }

/* filters */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.controls input { flex: 1 1 220px; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--card); }
.chip { border: 1.5px solid var(--line-strong); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--text2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.empty { color: var(--muted); }

/* inline CTA */
.cta-card { margin: 18px 0; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.cta-card h3 { font-family: var(--display); font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
.cta-card p { margin: 0; color: #b9b9bd; font-size: 15px; line-height: 1.45; }
.cta-card .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* method */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.step b { display: block; font-size: 17px; margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.papers { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.papers p { margin: 6px 0 0; columns: 2; column-gap: 28px; }
.faqs { margin-top: 20px; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
details.faq p { color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
footer { padding: 40px 0 120px; color: var(--faint); font-size: 13px; }
footer p { margin: 0 0 8px; line-height: 1.5; }
footer a { color: var(--subtle); }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #ddd; aspect-ratio: 4/5; color: #fff; text-decoration: none; }
.g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.g svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.g:hover img { transform: scale(1.03); } .g:hover svg { opacity: 1; }
.g .rk { position: absolute; left: 10px; top: 10px; background: rgba(251,251,249,.92); color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 14px; padding: 3px 9px; border-radius: 8px; }
.g.top .rk { background: var(--gold); color: #fff; }
.g .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 11px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%); }
.g .cap > span { display: block; }
.g .cap .sc { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
.g .cap .sc small { font-size: 13px; opacity: .7; font-family: var(--text); }
.g .cap .nm { font-weight: 700; font-size: 15px; margin-top: 4px; }
.g .cap .ab { font-size: 12px; opacity: .8; margin-top: 1px; }
.g .dot { display: inline-block; width: 9px; height: 9px; border-radius: 5px; margin-right: 6px; vertical-align: 2px; }
.g.ctat { background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.g.ctat .mono { color: #b9b9bd; }
.g.ctat b { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; margin: 8px 0 10px; }
.g.ctat .go { font-weight: 600; }
@media (max-width: 1000px) { .gal { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .controls input { flex-basis: 100%; } .gal { grid-template-columns: repeat(2, 1fr); gap: 8px; } .g .cap .sc { font-size: 22px; } .g.ctat b { font-size: 19px; } .g.ctat { padding: 14px; } }

/* person page */
.person { padding-top: 18px; }
.dl { display: grid; grid-template-columns: 380px 1fr; gap: 28px; }
.dl .left { position: sticky; top: 76px; align-self: start; }
.dl .ph { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: #ddd; }
.dl .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s; }
.dl .toggle { margin-top: 10px; width: 100%; justify-content: center; }
.dl .right { min-width: 0; padding-bottom: 20px; }
.person h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 40px); line-height: 1.08; margin: 6px 0 4px; letter-spacing: -.02em; }
.who { color: var(--muted); margin: 0; }
.big { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.big b { font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.big span { color: var(--faint); font-size: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.pill { border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; background: var(--tint); }
.pill.bad { color: var(--bad); background: #fbeeea; } .pill.ok { color: var(--good); background: #e9f4ee; }
.summary { color: var(--text2); line-height: 1.55; font-size: 16px; margin: 0 0 16px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.share button, .share a { border: 1.5px solid var(--line-strong); background: var(--card); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.embed { margin: -8px 0 18px; }
.embed .mono { display: block; margin-bottom: 6px; }
.embed textarea { width: 100%; font-family: var(--mono); font-size: 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.box .h4 { margin: 0 0 8px; font-size: 14px; font-family: var(--text); letter-spacing: 0; }
.box .h4.good { color: var(--good); } .box .h4.bad { color: var(--bad); }
.box ul { margin: 0; padding-left: 18px; }
.box li { font-size: 14px; color: var(--text2); margin: 4px 0; }
.box li span { color: var(--subtle); }
h2.h3 { font-family: var(--mono); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--subtle); margin: 0; }
.zone { margin: 18px 0 6px; font-weight: 400; }
.m { display: grid; grid-template-columns: 1fr 120px; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.m .n { font-size: 15px; font-weight: 600; }
.m .v { font-family: var(--mono); font-size: 14px; text-align: right; }
.m .rb { grid-column: 1 / -1; position: relative; height: 8px; background: var(--track); border-radius: 4px; }
.m .rb .id { position: absolute; top: 0; bottom: 0; background: rgba(31,127,69,.28); border-radius: 4px; }
.m .rb .dt { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.m .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--subtle); }
.dl .cta-card { margin: 22px 0 0; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 0; font-weight: 600; }
.pn a { text-decoration: none; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; background: var(--card); }
.near { margin-top: 22px; }
.near ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.near a { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; font-size: 14px; font-weight: 600; }
.near img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; }
.back { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* sticky CTA (mobile) */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; }
.sticky .btn { width: 100%; justify-content: center; box-shadow: 0 14px 30px -12px rgba(23,23,26,.5); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; } .papers p { columns: 1; }
  .cta-card { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 14px; } .dl .left { position: static; max-width: 420px; }
  .two { grid-template-columns: 1fr; }
  .pn { flex-direction: column; }
  .sticky { display: block; }
  header .btn span.long { display: none; }
}
