/* Светлая, спокойная система: белый фон, мягкие серые плоскости, скруглённые карточки, один акцент. */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ebebef;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --line: #e5e5ea;
  --accent: #c8532f;
  --r: 20px;
  --r-lg: 28px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "ss03";
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Мелкие подписи — вместо моноширинного: обычный Inter, меньше и серее */
.label { font-size: 13px; color: var(--ink-2); letter-spacing: 0; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; font-size: 15px; }
.top nav { display: flex; gap: clamp(18px, 2.5vw, 36px); white-space: nowrap; }
.top nav a { color: var(--ink-2); transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.top .brand { font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.top .brand small { font-size: 13px; font-weight: 400; color: var(--ink-2); }

/* Секции */
section { padding: clamp(56px, 8vw, 120px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head .num { display: none; }
.sec-head h2 { font-size: clamp(26px, 3vw, 40px); }
.sec-head .aside { font-size: 15px; color: var(--ink-2); }
.sec-head .aside a { color: var(--accent); }

/* Первый экран */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.035em; max-width: 20ch; text-wrap: balance; font-weight: 600; }
.hero h1 .rot { color: var(--accent); }
.hero .proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.hero .proof li { background: var(--surface); border-radius: var(--r); padding: 22px 24px; font-size: 15px; line-height: 1.4; }
.hero .proof b { display: block; font-weight: 600; margin-bottom: 6px; font-size: 17px; }
.hero .proof span { color: var(--ink-2); }

/* Избранное: крупные карточки, как витрина */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; row-gap: clamp(32px, 4vw, 56px); }
.card { grid-column: span 6; display: block; }
.card:nth-child(3n+1) { grid-column: span 12; }
.card .ph { width: 100%; border-radius: var(--r-lg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover .ph { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.18); }
.card .cap { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 16px; padding: 0 6px; }
.card .cap h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.card .cap p { color: var(--ink-2); margin-top: 4px; max-width: 56ch; font-size: 15px; }
.card .cap .meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; padding-top: 3px; }

/* Заглушка изображения — мягкая плоскость */
.ph { position: relative; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); }

/* Метод */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols3 li { background: var(--surface); border-radius: var(--r-lg); padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.cols3 h3 { font-size: 22px; margin-bottom: 10px; }
.cols3 p { color: var(--ink-2); font-size: 15px; }

/* Индекс работ */
.index { border-top: 1px solid var(--line); }
.index .row { display: grid; grid-template-columns: 48px 1fr 1fr 160px 96px; gap: 16px; align-items: baseline; padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 15px; border-radius: 10px; transition: background .2s; }
.index .row:hover { background: var(--surface); }
.index .row .n, .index .row .y { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.index .row .y { text-align: right; }
.index .row .t { font-weight: 500; }
.index .row .d, .index .row .k { color: var(--ink-2); }
.index .row .tag { font-size: 13px; }
.index .row.is-study .tag::before { content: "Учебный · "; }
.index .row.is-concept .tag::before { content: "Концепт · "; }
.index .row.is-lab .tag::before { content: "Лаборатория · "; }
#peek { position: fixed; pointer-events: none; width: 240px; aspect-ratio: 4/3; z-index: 20; opacity: 0; transform: translate(-50%, -50%) scale(.96); transition: opacity .25s var(--ease), transform .25s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); background: var(--surface-2); }
#peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Контакт */
.contact { background: var(--surface); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.contact .big { font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
.contact .big:hover { color: var(--accent); }
.contact ul { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.contact ul a { color: var(--ink-2); }
.contact ul a:hover { color: var(--ink); }
.contact .status { font-size: 14px; color: var(--ink-2); margin-top: 24px; }
.contact .status i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c759; margin-right: 8px; }

/* Подвал */
footer { padding: 24px 0 48px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Страница кейса */
.case-head { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 48px); }
.case-head .kicker { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.case-head h1 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.035em; max-width: 22ch; text-wrap: balance; }
.case-head .one { font-size: clamp(19px, 1.7vw, 24px); max-width: 48ch; margin-top: 20px; color: var(--ink-2); line-height: 1.4; text-wrap: pretty; }
.cover { border-radius: var(--r-lg); }
.meta-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.meta-row > div { background: var(--surface); border-radius: var(--r); padding: 18px 20px; font-size: 15px; line-height: 1.4; }
.meta-row b { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); margin-bottom: 6px; }
.case-body { display: grid; grid-template-columns: 200px 1fr; gap: 56px; padding: clamp(40px, 6vw, 80px) 0; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.toc li { padding: 6px 0; color: var(--ink-3); transition: color .2s; }
.toc li.on { color: var(--ink); font-weight: 500; }
.toc .num { display: none; }
.case-body .blk { margin-bottom: clamp(48px, 7vw, 96px); scroll-margin-top: 84px; }
.case-body .blk h2 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 16px; }
.case-body .blk p { max-width: 58ch; font-size: 18px; line-height: 1.55; color: var(--ink); }
.case-body .blk ul.list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.case-body .blk ul.list li:first-child { border-top: 1px solid var(--line); }
.case-body .blk ul.list a { color: var(--accent); }
.case-body .gal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.case-body .gal .ph:first-child { grid-column: span 2; }
.credits { display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; font-size: 16px; }
.credits b { font-weight: 400; color: var(--ink-2); }
.next { padding: clamp(40px, 6vw, 80px) 0; }
.next .kicker { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.next a { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.03em; font-weight: 600; }
.next a:hover { color: var(--accent); }

/* Обо мне */
.about-intro { font-size: clamp(22px, 2.4vw, 34px); max-width: 40ch; line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; font-weight: 500; }
.exp .row { display: grid; grid-template-columns: 180px 150px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.exp .row:last-child { border-bottom: 1px solid var(--line); }
.exp .org { font-weight: 600; }
.exp .per { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.exp .role { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 15px; padding: 8px 14px; background: var(--surface); border-radius: 999px; }

/* Архив */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button { font: inherit; font-size: 15px; background: var(--surface); border: 0; border-radius: 999px; padding: 8px 16px; color: var(--ink); cursor: pointer; transition: background .2s; }
.filters button:hover { background: var(--surface-2); }
.filters button.on { background: var(--ink); color: #fff; }
.index .row[hidden] { display: none; }

.wip { font-size: 13px; color: var(--ink-3); display: inline-block; margin-top: 12px; }

/* Адаптив */
@media (max-width: 900px) {
  .hero .proof, .cols3, .meta-row { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .card, .card:nth-child(3n+1) { grid-column: span 12; }
  .case-body { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .index .row { grid-template-columns: 32px 1fr 72px; }
  .index .row .d, .index .row .k { display: none; }
  .exp .row { grid-template-columns: 1fr; gap: 6px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  #peek { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero .proof, .cols3, .meta-row { grid-template-columns: 1fr; }
  .cols3 li { min-height: 0; }
  .top nav { gap: 14px; font-size: 14px; }
  .top .brand small { display: none; }
  .case-body .gal { grid-template-columns: 1fr; }
  .case-body .gal .ph:first-child { grid-column: span 1; }
  .credits { grid-template-columns: 1fr; gap: 2px 0; }
  .credits b { margin-top: 10px; }
}
