﻿/* ============================================================
   Денис Воронков — портфолио
   Редакционная система: тёплая бумага, антиква, тонкие линии
   ============================================================ */

:root {
  --bg: #F2EFE8;
  --surface: #FBF8F2;
  --surface-2: #E8E2D7;
  --ink: #151311;
  --soft: #3B3731;
  --muted: #6D665C;
  --line: rgba(21, 19, 17, .14);
  --line-strong: rgba(21, 19, 17, .34);
  --line-invert: rgba(247, 241, 231, .18);
  --accent: #B33A24;
  --invert-bg: #131110;
  --invert-text: #F7F1E7;
  --btn-bg: #151311;
  --btn-text: #FBF8F2;
  --nav-bg: rgba(242, 239, 232, .88);
  --shadow: 0 30px 70px rgba(21, 19, 17, .14);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0A09;
  --surface: #141210;
  --surface-2: #1C1916;
  --ink: #F4EFE6;
  --soft: #D9D2C6;
  --muted: #A69D8F;
  --line: rgba(244, 239, 230, .14);
  --line-strong: rgba(244, 239, 230, .32);
  --line-invert: rgba(247, 241, 231, .2);
  --accent: #FF6040;
  --invert-bg: #050504;
  --invert-text: #F7F1E7;
  --btn-bg: #F4EFE6;
  --btn-text: #151311;
  --nav-bg: rgba(11, 10, 9, .88);
  --shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

/* ---------- база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip:focus { transform: translateY(0); }

/* ---------- шапка ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 var(--pad);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
  flex: none;
}
.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.brand__role {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-btn,
.burger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-btn:hover,
.burger:hover {
  background: var(--surface-2);
  border-color: var(--ink);
}
.theme-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }

.head__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.head__cta span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
}
.head__cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.head__cta:hover span { color: rgba(255, 255, 255, .6); }

.burger { display: none; }
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .25s ease;
}
.site-head.is-open .burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
.site-head.is-open .burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- обложка ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(118px, 14vh, 166px) 0 clamp(64px, 8vw, 108px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: end;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(24px, 4vh, 44px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 8.6vw, 8.2rem);
  line-height: .84;
  letter-spacing: -.04em;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  max-width: 24ch;
  margin: clamp(22px, 3.5vh, 38px) 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--soft);
}

.hero__lead {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: clamp(24px, 4vh, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.btn--solid {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-text);
}
.btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.btn__note {
  font-size: 8px;
  letter-spacing: .08em;
  opacity: .55;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .06em;
}
.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero__facts {
  display: flex;
  max-width: 580px;
  margin-top: clamp(28px, 5vh, 48px);
  border-top: 1px solid var(--line);
}
.hero__facts li {
  flex: 1;
  padding: 13px 18px 0 0;
  margin-right: 18px;
  border-right: 1px solid var(--line);
}
.hero__facts li:last-child { border-right: 0; margin-right: 0; }
.hero__facts b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero__facts span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- featured work ---------- */
.hero__feature { min-width: 0; }

.feature { position: relative; }

.feature__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.feature__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.feature__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__slide--board img {
  object-fit: contain;
  background: #0B0B0B;
}

.feature__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.feature__meta { flex: 1; min-width: 0; }
.feature__title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feature__count {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
  color: var(--muted);
}
.feature__count b { color: var(--ink); font-weight: 500; }
.feature__pause {
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.feature__pause:hover { color: var(--accent); }

.feature__progress {
  height: 1px;
  margin-top: 10px;
  background: var(--line);
  overflow: hidden;
}
.feature__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.js .feature__progress span { animation: feature-progress 7s linear infinite; }
.feature.is-paused .feature__progress span { animation-play-state: paused; }
@keyframes feature-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- секции ---------- */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.section-head { margin-bottom: clamp(34px, 5vw, 64px); }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: .94;
  letter-spacing: -.035em;
}
.section-head h2 em { font-style: italic; font-weight: 400; }

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.section-sub {
  max-width: 52ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- о себе ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__text .lead {
  max-width: 26ch;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink);
}
.about__text p {
  max-width: 60ch;
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--soft);
}
.about__note {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.about__portrait { margin: 0; max-width: 320px; }
.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--line);
  filter: saturate(.9);
}
.about__portrait figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.fact {
  padding: 16px 14px 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}
.fact span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- работы ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.filter {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.filter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: scaleX(1); }

.projects { display: flex; flex-direction: column; }
.project {
  padding: clamp(22px, 3vw, 34px) 0 clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-strong);
}
.project.is-hidden { display: none; }

.project__top {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: baseline;
}
.project__num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--accent);
}
.project__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.project__tags {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.project__body {
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(22px, 3vw, 34px);
  align-items: start;
}
.project--flip .project__media { order: 2; }
.project--flip .project__info { order: 1; }

.project__media {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
}
.project__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .project__media img { transform: scale(1.03); }

.project__media--board { background: #0B0B0B; }
.project__media--board img { object-fit: contain; }

.project__media--poster {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: clamp(16px, 2vw, 28px);
  background: #141210;
}
.project__media--poster img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

.project__info p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
}
.project__meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 20px;
}
.project__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}
.project__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.projects-note {
  max-width: 60ch;
  margin-top: clamp(24px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- галерея ---------- */
.gallery {
  columns: 3;
  column-gap: clamp(12px, 1.8vw, 22px);
}
.gallery__item {
  break-inside: avoid;
  margin: 0 0 clamp(12px, 1.8vw, 22px);
}
.gallery__item a {
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- навыки ---------- */
.skill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}
.skill-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line-strong);
}
.skill-list__num {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  color: var(--accent);
}
.skill-list h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.skill-list p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.process { margin-top: clamp(44px, 6vw, 80px); }
.process__label {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.process__grid li {
  padding: 18px 20px 8px 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}
.process__grid li:last-child { border-right: 0; margin-right: 0; }
.process__grid b {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.process__grid h3 {
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.process__grid p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- опыт ---------- */
.timeline { border-top: 1px solid var(--line-strong); }
.job {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}
.job__when {
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.job h3 {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.job__org {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.job p:last-child {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--soft);
}

.edu {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding-top: 28px;
}
.edu__label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.edu h3 {
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.edu p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- что ещё могу ---------- */
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
.more-item {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.more-item h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.more-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(30px, 4vw, 48px);
}
.chips li {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- рекомендации ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
.review {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.review__text {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.015em;
}
.review figcaption { display: grid; gap: 2px; }
.review__name { font-size: 13px; font-weight: 600; }
.review__role {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.review__tel {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--accent);
}

/* ---------- контакты ---------- */
.contact {
  padding: clamp(70px, 10vw, 140px) 0;
  background: var(--invert-bg);
  color: var(--invert-text);
  border-bottom: 0;
}
.contact .section-label { color: rgba(247, 241, 231, .55); }
.contact .section-label::before { background: var(--accent); }
.contact h2 {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.04em;
}
.contact h2 em { font-style: italic; color: var(--accent); }
.contact__sub {
  max-width: 46ch;
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(247, 241, 231, .65);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-invert);
  border-left: 1px solid var(--line-invert);
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
  border-right: 1px solid var(--line-invert);
  border-bottom: 1px solid var(--line-invert);
  transition: background .2s ease;
}
.contact__item:hover { background: rgba(255, 255, 255, .04); }
.contact__label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 241, 231, .5);
}
.contact__value {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  word-break: break-word;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}
.contact .btn--solid {
  background: var(--invert-text);
  border-color: var(--invert-text);
  color: var(--invert-bg);
}
.contact .btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.contact .btn--ghost {
  border-color: rgba(247, 241, 231, .35);
  color: var(--invert-text);
}
.contact .btn--ghost:hover {
  background: var(--invert-text);
  border-color: var(--invert-text);
  color: var(--invert-bg);
}

/* ---------- подвал ---------- */
.footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__inner a:hover { color: var(--accent); }

/* ---------- появление ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- просмотр ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 2vw, 24px);
  padding: clamp(14px, 3vw, 42px);
  background: rgba(8, 7, 6, .96);
  color: #F7F1E7;
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}
.lightbox__caption {
  max-width: 70ch;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 241, 231, .65);
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 241, 231, .35);
  background: transparent;
  color: #F7F1E7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lightbox__close:hover { background: #F7F1E7; color: #131110; }
.lightbox__nav {
  width: clamp(36px, 4vw, 52px);
  height: clamp(36px, 4vw, 52px);
  border: 1px solid rgba(247, 241, 231, .35);
  background: transparent;
  color: #F7F1E7;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lightbox__nav:hover { background: #F7F1E7; color: #131110; }
.lightbox__nav:disabled { opacity: .3; cursor: default; }
.lightbox__nav:disabled:hover { background: transparent; color: #F7F1E7; }

body.is-locked { overflow: hidden; }

/* ---------- страница брендинга ---------- */
.brand-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(118px, 14vh, 166px) 0 clamp(54px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
}
.brand-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .18;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.brand-hero > .wrap { position: relative; z-index: 1; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 5vh, 46px);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
}
.back-link:hover { color: var(--accent); }
.brand-hero__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.04em;
}
.brand-hero__title .thin { font-style: italic; font-weight: 400; }
.brand-hero__lead {
  max-width: 52ch;
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.brand-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta li::before { content: '— '; color: var(--accent); }

.brand-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
.brand-logo {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(180px, 20vw, 250px);
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  overflow: hidden;
}
.brand-logo:nth-child(4) { grid-column: 2 / span 2; }
.brand-logo:nth-child(5) { grid-column: 4 / span 2; }
.brand-logo img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: auto;
  object-fit: contain;
}
.brand-logo figcaption {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(21, 19, 17, .5);
}
.brand-logo--dark figcaption { color: rgba(247, 241, 231, .6); }

.brand-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-invert);
}
.brand-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-right: 1px solid var(--line-invert);
}
.brand-swatch:last-child { border-right: 0; }
.brand-swatch__chip {
  display: block;
  height: clamp(110px, 14vw, 170px);
  border-bottom: 1px solid var(--line-invert);
}
.brand-swatch__name {
  padding: 0 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--invert-text);
}
.brand-swatch__hex {
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: rgba(247, 241, 231, .55);
}

.brand-next {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.brand-next p {
  max-width: 52ch;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  color: var(--soft);
}
.brand-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hero__grid { gap: 40px; }
  .project__body { grid-template-columns: 1.4fr .9fr; gap: 32px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid li:nth-child(2n) { border-right: 0; margin-right: 0; }
  .process__grid li:nth-child(-n+2) { padding-bottom: 26px; }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
  }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
  }
  .site-nav a::after { display: none; }
  .site-head .brand { margin-right: auto; }
  .burger { display: grid; }

  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__feature { max-width: 640px; }
  .hero__facts { max-width: 100%; }

  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__side { flex-direction: row; align-items: flex-start; gap: 32px; }
  .about__portrait { flex: 0 0 220px; max-width: 220px; }
  .facts { flex: 1; }

  .project__body { grid-template-columns: 1fr; gap: 22px; }
  .project--flip .project__media { order: 0; }
  .project--flip .project__info { order: 1; }
  .project__media--poster { aspect-ratio: 4 / 3; }

  .gallery { columns: 2; }

  .skill-list { column-gap: 32px; }
  .job, .edu { grid-template-columns: 130px 1fr; gap: 24px; }

  .reviews { grid-template-columns: 1fr; gap: 34px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand__role { display: none; }
  .head__cta span { display: none; }
  .head__cta { padding: 0 12px; }

  .hero__title { font-size: clamp(3.2rem, 14vw, 4.6rem); }
  .hero__sub { font-size: clamp(20px, 6vw, 26px); }
  .hero__facts { flex-wrap: nowrap; }
  .hero__facts li { flex: 1; padding-right: 10px; margin-right: 10px; }
  .hero__facts b { font-size: 24px; }
  .hero__facts span { font-size: 6.5px; letter-spacing: .08em; }
  .feature__title { font-size: 17px; }
  .feature__pause { display: none; }

  .section-head--row { align-items: flex-start; }
  .filters { gap: 14px; }
  .project__top { grid-template-columns: 34px 1fr; }
  .project__tags { grid-column: 2; text-align: left; }
  .project__title { font-size: clamp(1.6rem, 7vw, 2.1rem); }

  .gallery { columns: 1; }

  .skill-list { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .process__grid li { border-right: 0; margin-right: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .process__grid li:first-child { border-top: 0; }

  .job, .edu { grid-template-columns: 1fr; gap: 6px; }
  .job__when { padding-top: 0; }

  .about__side { flex-direction: column; }
  .about__portrait { flex: none; width: 100%; max-width: 280px; }
  .facts { width: 100%; }

  .more-grid { grid-template-columns: 1fr; gap: 28px; }

  .contact h2 { font-size: clamp(2.7rem, 13vw, 4rem); }

  .brand-logos { grid-template-columns: 1fr 1fr; }
  .brand-logo,
  .brand-logo:nth-child(4),
  .brand-logo:nth-child(5) { grid-column: auto; }
  .brand-logo:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .brand-palette { grid-template-columns: repeat(2, 1fr); }
  .brand-swatch:nth-child(2n) { border-right: 0; }
  .brand-swatch { border-bottom: 1px solid var(--line-invert); }
  .brand-swatch:last-child { border-bottom: 0; }
}

@media (max-width: 400px) {
  .head__cta { display: none; }
  .hero__title { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature__progress span { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .feature__slide,
  .project__media img,
  .gallery__item img { transition: none; }
}

@media print {
  .site-head, .feature__bar, .feature__progress, .hero__facts, .contact__actions, .footer { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 18px 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* палитра на тёмном фоне */
.brand-palette-section {
  background: var(--invert-bg);
  color: var(--invert-text);
}
.brand-palette-section .section-label { color: rgba(247, 241, 231, .55); }
.brand-palette-section .section-label::before { background: var(--accent); }
.brand-palette-section .section-head h2 { color: var(--invert-text); }
.brand-palette-section .section-sub { color: rgba(247, 241, 231, .62); }

/* печатный кейс — крупная вертикальная подача */
.project--print .project__body { grid-template-columns: 1fr 1fr; }
.project--print .project__media--poster { aspect-ratio: 4 / 5; }
@media (max-width: 980px) {
  .project--print .project__body { grid-template-columns: 1fr; }
}
