/* Сайт Егора Протасова. Тёмная тема, один сигнальный лайм, живые данные.
   Собирается из двух частей: общий язык (главная) и внутренняя страница проекта. */
/* Язык сайта: инженерный чертёж. Сетка, узлы, размерные линии, живые данные.
   Цвет приносят сами проекты, интерфейс чёрно-белый с одним сигнальным лаймом. */
:root {
  --ink: #f4f4f2;
  --mute: #9a9a9a;
  --dim: #6a6a6a;
  --hair: rgba(255, 255, 255, .09);
  --lime: #bfe828;
  --lime-mute: #9aa95c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; }
body { margin: 0; background: #000; color: var(--ink); font-family: var(--font); font-size: 19px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.lbl { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime-mute); margin: 0 0 20px; }
.lbl::before { content: ""; width: 22px; height: 1px; background: var(--lime); opacity: .7; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ——— первый экран: чертёж ——— */
.hero { position: relative; overflow: hidden; padding-bottom: 150px; --p: 0; }
.bp { position: absolute; top: 0; left: 50%; width: 1700px; height: 1200px; transform: translateX(-50%); pointer-events: none; }
.bp .grid { transform: translate3d(0, calc(var(--p) * -90px), 0); }
.bp .g-v, .bp .g-h { stroke: rgba(255, 255, 255, .05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp .g-h { stroke: rgba(255, 255, 255, .032); }

.bp .traces { transform: translate3d(0, calc(var(--p) * -160px), 0); }
.bp .t1, .bp .t2 { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.8s cubic-bezier(.3,.7,.2,1) .2s forwards; }
.bp .t1 { stroke: rgba(191, 232, 40, .3); }
.bp .t2 { stroke: rgba(255, 255, 255, .16); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 780px; height: 340px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 88%); }

.hero-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1440px; margin: 0 auto; padding: 44px 56px 0; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.logo .mark { flex: none; width: 30px; height: 30px; color: #fff; }
.logo.big { gap: 0; } .logo.big .mark { width: 46px; height: 46px; color: #fff; }
.menu { display: flex; gap: 60px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { font-size: 19px; line-height: 1.5; }
.menu a { display: inline-flex; align-items: baseline; gap: 10px; transition: color .15s ease; }
.menu a i { flex: none; width: 7px; height: 7px; border: 1.5px solid var(--lime-mute); transform: rotate(45deg) translateY(-1px);
  transition: background-color .15s ease, border-color .15s ease; }
.menu a:hover { color: var(--lime); }
.menu a:hover i { background: var(--lime); border-color: var(--lime); }
.menu .lbl { margin-bottom: 10px; }

.hero-mid { position: relative; z-index: 1; text-align: center; padding-top: 118px; }
.hero-act { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.btn-contact { display: inline-flex; align-items: center; gap: 11px; background: var(--lime); color: #000; font-weight: 700;
  font-size: 16px; letter-spacing: .02em; padding: 16px 28px; clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 16px) 100%, 0 100%);
  transition: transform .18s ease, filter .18s ease; }
.btn-contact svg { width: 19px; height: 19px; }
.btn-contact:hover { transform: translate(-2px, -2px); filter: brightness(1.06); }
.now { display: inline-flex; align-items: center; gap: 13px; padding: 5px 18px 5px 5px; border: 1px solid #3c4a22;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--lime-mute); }
.now .badge { background: rgba(191, 232, 40, .14); color: var(--lime); border-radius: 999px; padding: 5px 12px; }

.bio { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 380px); gap: 80px;
  max-width: 1160px; margin: 130px auto 0; padding: 0 40px; align-items: start; }
.bio-text p { font-size: 24px; line-height: 1.5; font-weight: 300; color: var(--mute); letter-spacing: -.01em; }
.bio-text p + p { margin-top: 30px; }
.bio-text b { color: #fff; font-weight: 600; }
.rule { position: relative; align-self: stretch; background: rgba(255, 255, 255, .13); }
.rule i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: var(--lime); transform: translate(-50%, -50%) rotate(45deg); }
.portrait { margin: 0; }
.portrait img { width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.portrait figcaption { margin-top: 16px; }
.portrait .nm { display: block; font-size: 22px; color: #fff; letter-spacing: -.01em; }
.portrait .rl { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ——— телеметрия ——— */
.tele { padding: 150px 0 160px; border-top: 1px solid var(--hair); }
.cap { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; font-weight: 300; color: var(--mute); max-width: 1000px; }
.cap b { color: #fff; font-weight: 600; }
.chart { margin: 64px 0 0; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.chart-title { font-size: 14px; font-weight: 600; color: #cfcfcf; }
.chart-legend { display: flex; gap: 20px; font-size: 14px; color: var(--mute); }
.chart-legend i, .chart-tip i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 8px; }
.chart-plot { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart svg.mob { display: none; }
.chart .grid { stroke: #191919; } .chart .tick { stroke: #333; }
.chart .axis { fill: #6a6a6a; font-variant-numeric: tabular-nums; }
.chart .ann { stroke: #3a3a3a; } .chart .ann-t { fill: #8a8a8a; } .chart .band { fill: #111; }
.chart .trace { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart.in .trace { animation: draw 2.2s cubic-bezier(.3,.7,.2,1) .1s forwards; }
.chart .end-dot { stroke: #000; stroke-width: 2; opacity: 0; }
.chart .end-v { fill: #fff; font-weight: 600; opacity: 0; }
.chart .end-n { fill: var(--mute); opacity: 0; }
.chart.in .end-dot, .chart.in .end-v, .chart.in .end-n { animation: fade .4s ease 2.1s forwards; }
.chart .leader { stroke: #333; } .chart .cursor { stroke: #fff; opacity: 0; }
.chart-tip { position: absolute; top: 6px; min-width: 164px; padding: 9px 13px; background: #0d0d0d; border: 1px solid #2a2a2a;
  border-radius: 10px; font-size: 13px; line-height: 1.55; pointer-events: none; color: #eee; }
.chart-tip[hidden] { display: none; } .chart-tip b { display: block; } .chart-tip span { display: block; }
.chart-src { font-size: 13px; color: #5f5f5f; margin-top: 14px; }

/* ссылка для клавиатуры: видна только при фокусе */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--lime); color: #000;
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ——— свои проекты ——— */
.proj { background: var(--bg); color: var(--fg); padding: 64px 0 100px; }
.proj-head { max-width: 1400px; margin: 0 auto 40px; padding: 0 40px; }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, .18); }
.proj[style*="#16243c"] .spec { border-top-color: rgba(255, 255, 255, .16); }
.spec dt { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .62; margin-bottom: 6px; }
.spec dd { margin: 0; font-size: 16px; font-weight: 600; }
.proj-media { display: grid; grid-template-columns: minmax(0, 1fr) 150px; max-width: 1400px; margin: 0 auto; padding: 0 40px; align-items: stretch; }
.shot { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .32), 0 0 0 1px rgba(0, 0, 0, .1); background: #fff;
  transform: translateY(18px); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.proj.in .shot { transform: none; }
/* снимок занимает всю рамку: иначе справа остаётся её белый фон */
.shot picture { display: block; }
.shot img { width: 100%; height: auto; }
.shot.ui svg { display: block; width: 100%; height: auto; }
.vert { writing-mode: vertical-rl; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; line-height: .8;
  justify-self: end; align-self: start; white-space: nowrap; opacity: .92; }
.proj-cap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; max-width: 1400px; margin: 52px auto 0; padding: 0 40px; }
.proj-cap h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.02em; font-weight: 300; color: var(--fg2); }
.proj-cap h3 b { color: var(--fg); font-weight: 700; }
.proj-meta p { font-size: 18px; line-height: 1.6; color: var(--fg2); }

.btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 16px; font-weight: 600; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-mapka { background: #fff; color: #2474b5; padding: 16px 24px 16px 20px; border-radius: 12px; box-shadow: 0 10px 24px rgba(10, 40, 80, .28); }
.btn-mapka:hover { box-shadow: 0 14px 30px rgba(10, 40, 80, .36); }
.btn-techkio { background: #10141b; color: #ffb020; padding: 17px 24px; border-radius: 2px; text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px; font-weight: 800; box-shadow: 6px 6px 0 rgba(16, 20, 27, .28); }
.btn-techkio:hover { box-shadow: 9px 9px 0 rgba(16, 20, 27, .32); }
.btn-mediachef { background: #fff; color: #0a8250; padding: 16px 26px 16px 22px; border-radius: 999px; }
.btn-mediachef:hover { background: #e7f3ec; }
.btn-ultracker { background: #2f6bff; color: #fff; padding: 15px 22px 15px 18px; border-radius: 8px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn-ultracker:hover { background: #1d4ed8; }

/* ——— клиенты ——— */
.clients { padding: 150px 0 130px; }
.c-list { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.c-list a { display: grid; grid-template-columns: 54px minmax(0, 1.05fr) minmax(0, 1fr) 210px; gap: 28px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--hair); transition: padding .2s ease, background-color .2s ease; }
.c-list a:hover { padding-left: 14px; background: rgba(255, 255, 255, .02); }
.c-list a:hover .c-name { color: var(--lime); }
.c-idx { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--lime-mute); font-variant-numeric: tabular-nums; }
.c-name { font-size: clamp(23px, 2.3vw, 31px); letter-spacing: -.02em; font-weight: 600; line-height: 1.15; color: #fff; transition: color .15s ease; }
.c-res { font-size: 17px; line-height: 1.5; color: #bdbdbd; }
.c-when { font-size: 14px; color: #7a7a7a; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ——— путь: ось с узлами ——— */
.path-sec { padding: 150px 0; background: #000; border-top: 1px solid var(--hair); }
.p-list { list-style: none; margin: 72px 0 0; padding: 0; }
.p-list li { position: relative; display: grid; grid-template-columns: 150px 42px minmax(0, 1fr); gap: 0 26px; padding-bottom: 46px; }
.p-list li:last-child { padding-bottom: 0; }
.p-year { font-size: 54px; line-height: .9; font-weight: 250; letter-spacing: -.04em; color: #fff; text-align: right; }
.p-node { position: relative; }
.p-node::before { content: ""; position: absolute; left: 50%; top: 12px; width: 11px; height: 11px; margin-left: -5.5px;
  border: 2px solid var(--lime); background: #000; transform: rotate(45deg); }
.p-node::after { content: ""; position: absolute; left: 50%; top: 26px; bottom: -46px; width: 1px; background: rgba(191, 232, 40, .22); }
.p-list li:last-child .p-node::after { display: none; }
.p-list p { font-size: 22px; line-height: 1.45; letter-spacing: -.01em; max-width: 680px; color: #e4e4e2; }
.p-list li.cont .p-node::before { width: 7px; height: 7px; margin-left: -3.5px; top: 14px; background: var(--lime); }
.p-photo { position: relative; margin: 26px 0 4px; max-width: 520px; padding: 14px; }
.p-photo img { border-radius: 4px; filter: grayscale(1) contrast(1.06) brightness(.92); }
.p-photo::after { content: ""; position: absolute; inset: 14px; background: var(--lime); mix-blend-mode: color; opacity: .26; border-radius: 4px; pointer-events: none; }
.fr { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--lime), var(--lime)) left top / 18px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) left top / 1px 18px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right top / 18px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right top / 1px 18px no-repeat,
    linear-gradient(var(--lime), var(--lime)) left bottom / 18px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) left bottom / 1px 18px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--lime), var(--lime)) right bottom / 1px 18px no-repeat;
  opacity: .8; }
.p-photo figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .04em; color: #8a8a8a; }
.p-photo figcaption b { color: var(--lime-mute); font-weight: 600; margin-right: 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }

/* ——— вне работы ——— */
.life { padding: 150px 0; }
.life-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.life-photo { position: relative; margin: 0; padding: 14px; }
.life-photo img { border-radius: 4px; }
.life-lead { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.18; letter-spacing: -.02em; font-weight: 600; margin-bottom: 26px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; color: #bdbdbd; font-size: 18px; }
.ideas li { position: relative; padding-left: 24px; }
.ideas li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 8px; border: 1.5px solid var(--lime); transform: rotate(45deg); }

/* ——— подвал ——— */
.foot { border-top: 1px solid var(--hair); padding: 92px 0 48px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 60px; border-bottom: 1px solid var(--hair); }
.f-id { display: flex; align-items: center; gap: 20px; }
.f-id p { font-size: 17px; line-height: 1.5; color: var(--mute); } .f-id b { color: #fff; font-weight: 600; font-size: 20px; }
.f-soc { display: flex; gap: 14px; }
.soc { width: 56px; height: 56px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; color: #eaeaea;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.soc svg { width: 22px; height: 22px; fill: currentColor; }
.soc:hover { background: var(--lime); color: #000; border-color: var(--lime); transform: translateY(-2px); }
.f-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 0; }
.f-nav a { display: block; font-size: 16px; line-height: 2; color: #cfcfcf; transition: color .15s ease; }
.f-nav a:hover { color: var(--lime); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 28px; border-top: 1px solid var(--hair);
  font-size: 14px; color: var(--dim); }
.f-bottom a { color: #9a9a9a; border-bottom: 1px solid #444; } .f-bottom a:hover { color: #fff; }

@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .hero-top { flex-direction: column; padding: 24px 20px 0; gap: 28px; }
  .menu { gap: 26px; flex-wrap: wrap; }
  .menu li { font-size: 16px; }
  .hero-mid { padding-top: 60px; }
  .motto { font-size: 12px; letter-spacing: .16em; } .motto .tick { width: 26px; }
    .hero-act { gap: 16px; }
  .bio { grid-template-columns: 1fr; gap: 40px; margin-top: 80px; padding: 0 20px; }
  .bio-text p { font-size: 20px; }
  .rule { display: none; }
  .chart svg.desk { display: none; } .chart svg.mob { display: block; } .chart-legend { display: none; }
  .tele, .clients, .path-sec, .life { padding: 90px 0; }
  .proj-head, .proj-media, .proj-cap { padding: 0 20px; }
  .spec { grid-template-columns: 1fr 1fr; gap: 18px; }
  .proj-media { grid-template-columns: 1fr; } .vert { display: none; }
  .proj-cap { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .c-list a { grid-template-columns: 34px 1fr; gap: 6px 14px; }
  .c-res, .c-when { grid-column: 2; }
  .c-when { text-align: left; }
  .p-list li { grid-template-columns: 62px 28px minmax(0, 1fr); gap: 0 14px; }
  .p-year { font-size: 30px; text-align: left; padding-top: 6px; }
  .p-list p { font-size: 18px; }
  .life-row { grid-template-columns: 1fr; gap: 32px; }
  .f-top { flex-direction: column; align-items: flex-start; }
  .f-nav { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
      .chart .trace { animation: none; stroke-dashoffset: 0; }
  .chart .end-dot, .chart .end-v, .chart .end-n { animation: none; opacity: 1; }
  .shot { transform: none; transition: none; }
  .ph h1, .ph .ph-sub, .ph-kind::before { animation: none; opacity: 1; transform: none; }
  .ph-bp .pt-run { animation: none; stroke-dasharray: none; opacity: .5; }
}

/* ——— липкая шапка ——— */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 84px; display: flex; justify-content: space-between;
  align-items: center; pointer-events: none; transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.bar.show { transform: none; }
.bar .plate, .bar .index { pointer-events: auto; position: relative; z-index: 1; }
/* текст не должен читаться сквозь шапку */
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; bottom: -44px; pointer-events: none;
  background: linear-gradient(#000 34%, rgba(0, 0, 0, .74) 64%, transparent); }
.plate { display: inline-flex; align-items: center; gap: 12px; background: var(--lime); color: #000; font-weight: 700;
  font-size: 19px; letter-spacing: -.02em; padding: 12px 22px 12px 26px; border-radius: 0 12px 12px 0; }
.plate .mark { width: 26px; height: 26px; }
.plate .mark circle { fill: #000; }
.index { display: inline-flex; align-items: center; gap: 12px; margin-right: 26px; background: none; border: 0; cursor: pointer;
  color: var(--ink); font: inherit; }
.index .dots { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 48px; height: 48px; padding: 14px;
  border: 1px solid #3a3a3a; border-radius: 50%; background: #000; transition: border-color .18s ease, background-color .18s ease; }
.index .dots i { background: var(--lime); border-radius: 50%; }
.index:hover .dots { border-color: var(--lime); background: #0c0f05; }
.index-lbl { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #cfcfcf; }

.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .96); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 40px; }
.overlay[hidden] { display: none; }
.ov-inner { width: min(1100px, 100%); }
.ov-inner .menu { justify-content: space-between; }
.ov-inner .menu li { font-size: 26px; line-height: 1.5; }
.ov-foot { margin-top: 56px; display: flex; justify-content: center; }

/* ——— цитата вместо имени ——— */
.quote { margin: 0; }
.quote { max-width: 1180px; margin: 0 auto; }
.quote p { margin: 0; font-size: clamp(40px, 5.9vw, 92px); line-height: .96; letter-spacing: -.045em; text-transform: uppercase; }
.quote p .b { display: block; font-weight: 800; }
.quote p .l { display: block; font-weight: 250; letter-spacing: -.04em; }
.quote footer { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--lime-mute); }
.quote footer::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--lime); vertical-align: middle; margin-right: 12px; }
.who-line { margin-top: 40px; font-size: 25px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.who-role { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #9b9b9b; }

/* ——— контур круга в фоне ——— */
.bp .lap { transform: translate3d(0, calc(var(--p) * -40px), 0); }
.bp .lap-base { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bp .lap-run { fill: none; stroke: var(--lime); stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: .85;
  stroke-dasharray: 130 2600; animation: lap 22s linear infinite; filter: drop-shadow(0 0 7px rgba(191, 232, 40, .55)); }
.bp .lap-start line { stroke: rgba(255, 255, 255, .4); stroke-width: 2; }
.bp .lap-start text { fill: #6f6f6f; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-family: var(--font); }
@keyframes lap { to { stroke-dashoffset: -2730; } }

/* Внутренняя страница проекта: продолжение языка главной — цветной блок проекта, ось хроники, данные. */
.ph { position: relative; background: var(--bg); color: var(--fg); padding: 132px 0 0; overflow: hidden; }
/* свет сверху слева, чтобы подложка не читалась плоской заливкой */
.ph::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 16% -12%, rgba(255, 255, 255, .13), transparent 62%); }
/* линия роста самого проекта: по ней идёт светящийся сегмент */
.ph-bp { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 42%); mask-image: linear-gradient(to bottom, transparent, #000 42%); }
.ph-bp .pt-base { fill: none; stroke: currentColor; opacity: .17; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ph-bp .pt-run { fill: none; stroke: var(--run, var(--lime)); stroke-width: 2.5; opacity: .92; vector-effect: non-scaling-stroke;
  stroke-dasharray: 220 6000; animation: lap 18s linear infinite; }
.ph .wrap { position: relative; max-width: 1400px; }
.ph-back { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--fg2); }
.ph-back svg, .nextp svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-back svg { width: 18px; height: 18px; transition: transform .2s ease; }
.ph-back:hover { color: var(--fg); }
.ph-back:hover svg { transform: translateX(-4px); }
.ph-kind { margin-top: 96px; font-size: 16px; color: var(--fg2); display: flex; align-items: center; gap: 12px; }
.ph-kind::before { content: ""; width: 26px; height: 2px; background: var(--run, var(--lime)); opacity: .9;
  transform-origin: left; animation: rule .7s cubic-bezier(.2, .7, .2, 1) both .15s; }
.ph h1 { margin-top: 18px; font-size: clamp(46px, 6.8vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: .94;
  max-width: 17ch; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both .1s; }
.ph .ph-sub { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ph-lead { max-width: 620px; font-size: 22px; line-height: 1.5; color: var(--fg2); }
.ph-site { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--fg);
  border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.ph-site svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-site:hover { opacity: .78; }
.ph-note { margin-top: 24px; max-width: 460px; font-size: 15px; line-height: 1.55; color: var(--fg2); }
.ph-shot { margin: 96px 0 -150px; transform: none; }
.ph.no-media { padding-bottom: 116px; }

/* спецификация: тихая строка уже на чёрном */
.spec-strip { padding: 0 0 104px; }
.spec-strip .spec { max-width: 1240px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--hair); }
.spec-strip dt { color: #7d7d7d; opacity: 1; }
.spec-strip dd { color: #e9e9e7; font-size: 17px; }

.ph-body { padding-top: 120px; }
body.shot-lap .ph-body { padding-top: 220px; }
.blk { padding: 0 0 116px; }
.blk .two { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 60px; align-items: start; max-width: 1240px; }
.blk .two > .lbl { position: sticky; top: 118px; margin: 0; }
.blk.task p { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.34; letter-spacing: -.02em; font-weight: 300; color: #e6e6e4; max-width: 820px; }
.blk.task p + p { margin-top: 24px; }
.prose p { font-size: 20px; line-height: 1.6; color: #c6c6c4; max-width: 780px; }
.prose p + p { margin-top: 20px; }
.p-list.small { margin-top: 0; }
.p-list.small li { grid-template-columns: 170px 42px minmax(0, 1fr); padding-bottom: 32px; }
.p-list.small .p-year { font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #8d8d8d; padding-top: 7px;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-list.small .p-node::before { top: 13px; }
.p-list.small .p-node::after { top: 26px; bottom: -32px; }
.p-list.small p { font-size: 19px; line-height: 1.5; color: #cececc; }
.failed { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.failed li { counter-increment: f; position: relative; padding-left: 48px; font-size: 19px; line-height: 1.55; color: #c6c6c4; max-width: 780px; }
.failed li + li { margin-top: 24px; }
.failed li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-size: 13px;
  font-weight: 700; letter-spacing: .1em; color: var(--lime-mute); }
.res .cap { margin-bottom: 40px; }
.res .chart { margin-top: 56px; }
.now-card { border-left: 2px solid var(--lime); padding: 4px 0 6px 38px; max-width: 900px; }
.now-head { display: flex; align-items: baseline; gap: 18px; }
.now-head .lbl { margin: 0; }
.asof { font-size: 13px; color: #7a7a7a; letter-spacing: .04em; }
.now-text { margin-top: 16px; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.4; font-weight: 300; color: #eaeae8; }

/* откуда приходят на сайт: одна величина, прямые подписи */
.bars { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; max-width: 900px; }
.bars li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 64px; align-items: center; gap: 20px; }
.bars li > span:first-child { font-size: 16px; color: #c6c6c4; }
.dbar { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--lime); }
.dbar.muted { background: #3c3c3a; }
.bars .v { font-size: 17px; font-weight: 600; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

/* таблица по кварталам */
.dtable { width: 100%; border-collapse: collapse; margin-top: 48px; font-variant-numeric: tabular-nums; }
.dtable caption { text-align: left; font-size: 14px; font-weight: 600; color: #cfcfcf; padding-bottom: 16px; }
.dtable th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #8a8a8a; padding: 0 20px 12px 0; border-bottom: 1px solid var(--hair); }
.dtable td { font-size: 17px; color: #cececc; padding: 15px 20px 15px 0; border-bottom: 1px solid var(--hair); }
.dtable td:first-child { color: #fff; }
.dtable tfoot td { font-size: 13px; line-height: 1.5; color: #7a7a7a; border: 0; padding-top: 16px; }

.nextp { background: var(--bg); color: var(--fg); }
.nextp a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 0 40px;
  max-width: 1400px; margin: 0 auto; padding: 72px 40px; align-items: center; }
.np-lbl { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg2); }
.np-title { margin-top: 14px; font-size: clamp(34px, 4.4vw, 66px); font-weight: 800; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.np-what { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--fg2); max-width: 620px; }
.nextp svg { grid-column: 2; grid-row: 1 / 4; width: 58px; height: 58px; transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.nextp a:hover svg { transform: translateX(10px); }

@media (max-width: 960px) {
  .ph { padding-top: 96px; }
  .ph .wrap { padding: 0 20px; }
  .ph-kind { margin-top: 44px; font-size: 15px; }
  .ph-sub { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
  .ph-lead { font-size: 18px; }
  .ph-shot { margin: 48px 0 -90px; }
  .spec-strip { padding-bottom: 64px; }
  .spec-strip .spec { grid-template-columns: 1fr 1fr; }
  body.shot-lap .ph-body { padding-top: 140px; }
  .ph-body { padding-top: 70px; }
  .blk { padding-bottom: 76px; }
  .blk .two { grid-template-columns: 1fr; gap: 20px; }
  .blk .two > .lbl { position: static; }
  .p-list.small li { grid-template-columns: 96px 28px minmax(0, 1fr); }
  .p-list.small .p-year { font-size: 13px; white-space: normal; }
  .now-card { padding-left: 22px; }
  .bars li { grid-template-columns: 120px minmax(0, 1fr) 46px; gap: 12px; }
  .bars li > span:first-child { font-size: 14px; }
  .dtable { display: block; overflow-x: auto; white-space: nowrap; font-size: 14px; }
  .dtable td { font-size: 15px; padding-right: 16px; }
  .nextp a { padding: 48px 20px; }
  .nextp svg { width: 38px; height: 38px; }
}


/* лид и примечание под цветной полосой */
.spec-strip .lead-line { max-width: 820px; font-size: 22px; line-height: 1.5; color: #d6d6d4; letter-spacing: -.01em; }
.spec-strip .ph-note { margin-top: 18px; max-width: 620px; font-size: 15px; line-height: 1.55; color: #8a8a8a; }
.spec-strip .spec { margin-top: 44px; }
.ph-sub { margin-top: 40px; }

/* подпись кейса: автор в основном тексте, а не только в подвале */
.case-note { border-top: 1px solid var(--hair); }
.case-note .wrap { padding-top: 26px; }
.case-note p { font-size: 15px; line-height: 1.6; color: #8f8f8f; max-width: 760px; }
.case-note a { color: #d8d8d6; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.case-note a:hover { color: #fff; border-bottom-color: currentColor; }
/* строка клиента: кликает вся, но ссылка только на названии */
.c-list li { position: relative; }
.c-name a::after { content: ""; position: absolute; inset: 0; }
