/* Вариант 7-simple: простая узкая колонка на тёплом светлом фоне, фото на главной, четыре страницы в меню сверху */
:root {
  --bg: #F6F5F2; --fg: #1A1A1A; --mu: #737373; --line: #E4E2DC; --sf: #FFFFFF; --cell: #E9E7E1;
  --acc: #FF3B30; --ok: #22C55E;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --w: min(640px, calc(100% - 32px));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { min-height: 100vh; font: 16px/1.55 "Golos Text", system-ui, sans-serif; color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.lucide { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ---------- Шапка ---------- */
.top { width: var(--w); margin: 0 auto; padding: 28px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.me { display: flex; align-items: center; gap: 12px; }
.me img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.me b { display: block; font-weight: 600; line-height: 1.25; }
.me small { display: block; font-size: 14px; color: var(--mu); line-height: 1.25; }
.menu { display: flex; gap: 4px; }
.menu a { padding: 7px 12px; border-radius: 8px; font-size: 15px; color: var(--mu); transition: color .15s; }
.menu a:hover, .menu a[aria-current] { color: var(--fg); }
.menu a[aria-current] { background: var(--sf); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Страницы ---------- */
main { width: var(--w); margin: 72px auto 96px; }
.page[hidden] { display: none; }
.page > section + section { margin-top: 56px; }
h2 { font: 500 13px/1.4 var(--mono); color: var(--mu); }
.lead { margin-top: 6px; color: var(--mu); }
.lead b { color: var(--fg); font-weight: 600; }

/* ---------- Главная ---------- */
.hero { display: grid; grid-template-columns: 176px 1fr; gap: 32px; align-items: start; }
.hero-text { display: grid; }
.photo { width: 176px; height: 220px; object-fit: cover; object-position: 50% 30%; border-radius: 16px; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* имя уже в шапке */
.meta { display: flex; align-items: center; gap: 8px; font: 500 13px/1.4 var(--mono); color: var(--mu); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.about { margin-top: 18px; display: grid; gap: 12px; font-size: 18px; line-height: 1.55; }
.about a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mu); }
.about a:hover { text-decoration-color: var(--fg); }
.btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 8px; padding: 0 18px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; transition: opacity .15s, scale .1s; }
.btn:hover { opacity: .88; }
.btn:active { scale: .98; }
.btn .lucide { width: 16px; height: 16px; }

/* ---------- Списки: соцсети, проекты ---------- */
.socials, .list { margin-top: 12px; }
.socials a, .list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); transition: color .15s; }
.socials a { grid-template-columns: 18px auto 1fr; }
.socials span { justify-self: end; color: var(--mu); font: 500 14px/1.4 var(--mono); }
.socials b, .list b { font-weight: 500; }
.socials a:hover b, .list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.list a { grid-template-columns: 40px 1fr auto; align-items: start; }
.list small { display: block; font-size: 15px; color: var(--mu); line-height: 1.45; }
.list em { font: normal 500 13px/1.4 var(--mono); color: var(--mu); padding-top: 3px; }
.tile { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--sf); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Галерея ---------- */
.gal { margin-top: 20px; columns: 2; column-gap: 16px; }
.gal figure { break-inside: avoid; margin-bottom: 20px; }
.gal button { display: block; width: 100%; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.gal img { width: 100%; transition: scale .4s cubic-bezier(.2, .8, .2, 1); }
.gal button:hover img { scale: 1.03; }
.gal figcaption { margin-top: 8px; font-size: 14px; color: var(--mu); }
#lb { margin: auto; padding: 0; border: 0; background: none; max-width: min(1200px, 94vw); overflow: visible; color: #fff; }
#lb::backdrop { background: rgba(0, 0, 0, .82); }
#lb img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 12px; }
#lb p { margin-top: 10px; text-align: center; font-size: 14px; color: #BDBDBD; }
.lb-x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Кейсы: дорожная карта ---------- */
.road { margin-top: 24px; display: grid; gap: 28px; }
.stop-h { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; }
.stop-h img { width: 36px; height: 36px; border-radius: 9px; }
.stop-h b { display: block; font-weight: 600; line-height: 1.3; }
.stop-h small { display: block; font-size: 14px; color: var(--mu); line-height: 1.35; }
.stop-h em { font: normal 500 13px/1.4 var(--mono); color: var(--mu); }
.road-items { margin: 10px 0 0 17px; padding-left: 31px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.road-items li { padding: 6px 0; line-height: 1.45; }
.road-items a b { font-weight: 600; }
.road-items a { display: block; transition: color .15s; }
.road-items a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.road-items small { display: block; font: 500 12px/1.5 var(--mono); color: var(--mu); }
.road-items .is-dim { color: var(--mu); opacity: .75; }

/* ---------- Ресурсы: тепловая карта токенов ---------- */
.heat { position: relative; margin-top: 16px; --c: 14px; }
.heat-s { overflow-x: auto; scrollbar-width: none; padding: 2px; } /* подсказка снаружи прокрутки, иначе её обрежет */
.heat-m, .heat-g { display: grid; grid-auto-columns: var(--c); column-gap: 3px; }
.heat-m { grid-template-rows: auto; height: 18px; font: 500 11px/1 var(--mono); color: var(--mu); }
.heat-m span { grid-row: 1; white-space: nowrap; }
.heat-g { grid-template-rows: repeat(7, var(--c)); grid-auto-flow: column; row-gap: 3px; width: max-content; }
.heat i { display: block; border-radius: 3px; background: var(--cell); }
.heat i.pad { visibility: hidden; }
.heat i[data-l="1"] { background: color-mix(in srgb, var(--acc) 28%, var(--cell)); }
.heat i[data-l="2"] { background: color-mix(in srgb, var(--acc) 52%, var(--cell)); }
.heat i[data-l="3"] { background: color-mix(in srgb, var(--acc) 76%, var(--cell)); }
.heat i[data-l="4"] { background: var(--acc); }
.heat i[data-tip]:hover { outline: 2px solid var(--fg); outline-offset: 1px; }
.tip { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 8px); padding: 5px 9px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.heat.is-tip .tip { opacity: 1; }

/* ---------- Телефон ---------- */
@media (max-width: 699px) {
  .top { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; }
  .menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .menu a { display: grid; place-items: center; height: 44px; padding: 0; border-radius: 0; font-size: 14px; }
  .menu a + a { border-left: 1px solid var(--line); }
  .menu a[aria-current] { box-shadow: none; }
  main { margin-top: 40px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .photo { width: 96px; height: 96px; }
  .about { font-size: 17px; }
  .btn { justify-self: stretch; justify-content: center; height: 48px; }
  .gal { columns: 1; }
  .list a { grid-template-columns: 40px 1fr; }
  .list em { grid-column: 2; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
