:root {
  --paper: #ecebe6;     /* тёплый светло-серый, как обложка Рубина */
  --paper-2: #e2e0d9;
  --ink: #161616;
  --mute: #7b7872;
  --line: #c9c6be;
  --blue: #3f7fd6;      /* радужка с обложки Мёрча */
  --yellow: #e9c94a;    /* заголовок с обложки */
  --text: "Inter", system-ui, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "EB Garamond", Georgia, serif;   /* для мыслей — как в книге Рубина */
  --pad: clamp(16px, 4.2vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip; /* эмодзи у правого края не должны давать горизонтальную прокрутку */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ol { margin: 0; padding: 0; }
video { display: block; }
::selection { background: var(--yellow); color: var(--ink); }

/* ───────── шапка ───────── */
.top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 22px var(--pad) 0; }
.brand-block .sub { margin: 6px 0 0 22px; font-size: 14px; }
.top-right { position: absolute; top: 22px; right: var(--pad); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.iris { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1.5px var(--ink); }
.m-br { display: none; } /* перенос только для телефона */
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover { color: var(--ink); }
.nav a.lang { color: var(--ink); font-weight: 600; } /* переключатель языка */

/* ───────── первый экран ───────── */
.hero { padding: calc(clamp(12px, 2.5vh, 40px) + 6vh) var(--pad) clamp(24px, 3vw, 40px); } /* весь первый экран опущен на 6% высоты окна */
.statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 84px);
  line-height: .98;
  letter-spacing: -.035em;
  max-width: none;
}
.sub { color: var(--mute); }

/* полоса выросла на 6vh за счёт отступов над и под ней — заголовок и подпись стоят на месте */
/* метка локации — маленький счётчик справа, с живым местным временем */
.where { margin-top: 2vh; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 4px 0 4px 14px; border-left: 1.5px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--mute); }
.where > *:not(.dot) { grid-column: 2; }
.where b { font-weight: 600; color: var(--ink); font-size: 14px; }
.where .dot { grid-row: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); align-self: center; box-shadow: 0 0 0 0 rgba(63,127,214,.45); animation: pulse 2.4s ease-out infinite; }
.where time { font-variant-numeric: tabular-nums; color: var(--ink); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,127,214,.45); } 70% { box-shadow: 0 0 0 8px rgba(63,127,214,0); } 100% { box-shadow: 0 0 0 0 rgba(63,127,214,0); } }

.six { display: flex; gap: 3px; height: calc(clamp(200px, 42vh, 470px) + 6vh); margin-top: max(8px, calc(clamp(20px, 5.5vh, 40px) - 3.5vh)); background: var(--paper); }
.six figure { position: relative; flex: var(--w) 1 0; min-width: 0; overflow: hidden; background: var(--paper-2); cursor: pointer; transition: flex-grow .5s cubic-bezier(.3, .7, .2, 1); }
.six video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: filter .4s; }
.six video { pointer-events: none; }
.six video::-webkit-media-controls, .six video::-webkit-media-controls-enclosure, .six video::-webkit-media-controls-panel, .six video::-webkit-media-controls-start-playback-button, .six video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.six figure.active video { filter: brightness(1.6) contrast(.4) saturate(.2); }
.six figcaption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 12px 10px;
  color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.45);
  font-size: 13px; font-weight: 500;
  transition: background .4s;
}
.six figcaption small { display: flex; flex-direction: column-reverse; gap: 4px; font-size: inherit; } /* название над цифрой — цифры у всех на одном уровне */
.six figcaption b { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.9vw, 28px); line-height: 1; letter-spacing: -.04em; }
.six figcaption p {
  max-width: min(50ch, 100%); margin: 0 auto auto;
  font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.18; letter-spacing: 0;
  text-align: center; text-shadow: none; color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
/* раскрытый сегмент: светлый слой, мысль по центру, чуть выше середины — как эпиграф в книге */
.six figure.active figcaption { justify-content: center; align-items: center; padding: 8% 24px 12%; background: rgba(236,235,230,.86); color: var(--mute); text-shadow: none; }
.six figure.active figcaption p { margin: 0; opacity: 1; transform: none; transition-delay: .2s; }
.six figure.active figcaption small { flex-direction: row; gap: 6px; margin-top: 22px; font-weight: 500; letter-spacing: .04em; }
.six figure.active figcaption b { font-family: var(--text); font-weight: 500; font-size: 13px; letter-spacing: .04em; }
.six figure:not(.active) figcaption span { white-space: nowrap; }
/* узким сегментам (ширина задаётся в six.js) не хватает места на подпись */
.six figure[data-size="narrow"]:not(.active) figcaption span,
.six figure[data-size="tiny"]:not(.active) figcaption span { display: none; }
.six figure[data-size="tiny"]:not(.active) figcaption { padding-left: 6px; }

.note { margin-top: max(8px, calc(clamp(22px, 4.5vh, 30px) - 2.5vh)); max-width: 76ch; font-size: 15px; color: var(--mute); }

.nobr { white-space: nowrap; }

/* ───────── разделитель-линейка 51/23/10/7/5/4 ───────── */
.rule {
  height: 2px; border: 0; margin: 0 var(--pad);
  background: linear-gradient(to right,
    var(--blue) 0 51%, var(--paper) 51% calc(51% + 3px),
    var(--ink) calc(51% + 3px) 74%, var(--paper) 74% calc(74% + 3px),
    var(--ink) calc(74% + 3px) 84%, var(--paper) 84% calc(84% + 3px),
    var(--ink) calc(84% + 3px) 91%, var(--paper) 91% calc(91% + 3px),
    var(--ink) calc(91% + 3px) 96%, var(--paper) 96% calc(96% + 3px),
    var(--ink) calc(96% + 3px) 100%);
}

/* ───────── секции ───────── */
.works, .producing, .about, .contact { padding: clamp(24px, 3vw, 40px) var(--pad) clamp(28px, 3.5vw, 48px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; }
h2 small { display: block; margin-bottom: 10px; font-family: var(--text); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--blue); }
.lead { max-width: 30ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); }
/* секция плотная: цитата и гравюра сразу под заголовком */
.producing .section-head { margin-bottom: clamp(4px, .8vw, 12px); }
/* вводный текст как цитата засечками и гравюра справа — одна группа по центру */
.producing-intro { display: grid; grid-template-columns: fit-content(1120px) clamp(140px, 13vw, 220px); justify-content: center; align-items: center; column-gap: clamp(20px, 2.5vw, 48px); margin: 0 0 clamp(14px, 1.8vw, 26px); }
.producing-lead { margin: 0; font-family: var(--serif); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.3; color: var(--ink); }
.producing-lead p:first-child { text-indent: -.48em; } /* кавычка висит за краем — строки ровно по левой линии */
:lang(en) .producing-lead p:first-child { text-indent: -.42em; }
.producing-lead p + p { margin-top: .6em; }
.producing-visual img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; } /* белый фон картинки сливается с бумагой */

/* ───────── работы ───────── */
.filters { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.filters button { padding: 4px 0; border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--mute); font: 500 15px var(--text); cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--blue); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px); }
.work { display: flex; flex-direction: column; }
.work[hidden] { display: none; }
.work-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--paper-2); overflow: hidden; cursor: pointer; }
.work-media video, .work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-media:hover video, .work-media:hover img { transform: scale(1.03); }
.work-media.external::after { content: "Смотреть на Vimeo ↗"; }
.work-media::after {
  content: "Смотреть"; position: absolute; left: 10px; bottom: 10px;
  padding: 4px 9px; background: var(--paper); color: var(--ink);
  font: 500 13px var(--text);
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.work-media:hover::after, .work-media:focus-visible::after { opacity: 1; transform: none; }
:lang(en) .work-media::after { content: "Watch"; }
:lang(en) .work-media.external::after { content: "Watch on Vimeo ↗"; }
.work-tag { position: absolute; right: 8px; top: 8px; z-index: 1; padding: 2px 6px; background: var(--paper); font: 500 12px var(--text); }
.work h3 { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.015em; }
.work .client { font-size: 15px; color: var(--mute); }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 8px; font-size: 14px; }
.credits dt, .case dt { font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); padding-top: .2em; }

/* ───────── продюсирование ───────── */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.case { padding-top: 18px; border-top: 1.5px solid var(--ink); }
.case h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 14px; }
.case dt { margin-top: 12px; }
.case dd { font-size: 15px; }
.more { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--blue); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ───────── обо мне ───────── */
/* заголовок — отдельная строка сетки; текст и композиция стартуют с одной линии */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto auto auto; column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2 { grid-column: 1; grid-row: 1; margin-bottom: clamp(18px, 2.5vw, 28px); }
.about-text { grid-column: 1; grid-row: 2; }
.about-text .lead { max-width: 46ch; margin-bottom: 16px; line-height: 1.3; color: var(--ink); }
.about-text > p { max-width: 62ch; line-height: 1.42; }
.about-text > p + p { margin-top: 10px; }
/* эпиграф: карточка с жёлтой полосой слева, EN крупно, RU ниже */
.quote { position: relative; margin: clamp(6px, 1vw, 12px) 0 clamp(22px, 3vw, 32px); padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px); max-width: 60ch; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset; overflow: hidden; }
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--yellow); }
.quote .intro { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.quote p { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.14; color: var(--ink); max-width: 30ch; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .04em; color: var(--mute); }
.sub-head { margin: 34px 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }

/* композиция справа: вертикальное фото со скруглением, табличка с именем
   наезжает на него слева сверху, три кадра — снизу, с выходом вправо */
.about-visual { grid-column: 2; grid-row: 2; position: relative; isolation: isolate; aspect-ratio: 1 / 1.4; left: 3%; margin-top: 4px; } /* верх ровно по первому абзацу, чуть сдвинута вправо */
.portrait { position: absolute; z-index: 1; left: -10%; top: 0; width: 64%; height: 87%; border-radius: clamp(22px, 3vw, 40px); overflow: hidden; background: var(--paper-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; } /* кадр уже обрезан вручную, лишнее уходит снизу */
.plate {
  position: absolute; z-index: 2; left: -39%; top: 5%; width: 48%;
  padding: clamp(12px, 1.6vw, 20px) clamp(14px, 1.8vw, 22px);
  border-radius: 16px;
  background: rgba(246,245,241,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(20,20,20,.14), 0 0 0 1px rgba(255,255,255,.5) inset;
  line-height: 1.3;
}
.plate b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.02em; margin-bottom: 4px; }
.plate span { display: block; font-size: clamp(12px, 1vw, 13px); color: var(--mute); white-space: nowrap; }
/* контур из слов вокруг большого фото */
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ring text { font: 700 11px var(--text); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink); opacity: .75; }
.ring text tspan.accent { fill: var(--blue); }
.snaps { position: absolute; z-index: 2; left: 7%; right: 4%; bottom: 16%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5%; }
.snaps figure { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--paper-2); box-shadow: 0 10px 28px rgba(20,20,20,.22), 0 0 0 3px rgba(246,245,241,.7); }
.snaps img { width: 100%; height: 100%; object-fit: cover; }
.snaps figure:nth-child(3) img { object-position: 25% 50%; }

/* ───────── контакты ───────── */
.contact h2 { font-size: clamp(56px, 11vw, 180px); margin-bottom: clamp(24px, 4vw, 48px); }
/* заголовок — ссылка в Telegram; стрелка проявляется при наведении */
.contact h2 a { text-decoration: none; transition: color .2s; }
.contact h2 a span { display: inline-block; margin-left: .08em; font-size: .45em; vertical-align: .9em; color: var(--blue); opacity: .0; transform: translate(-6px, 6px); transition: opacity .2s, transform .2s; }
.contact h2 a:hover, .contact h2 a:focus-visible { color: var(--blue); }
.contact h2 a:hover span, .contact h2 a:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .contact h2 a span { opacity: 1; transform: none; } }
.contact-cols { display: flex; flex-wrap: wrap; gap: 24px clamp(48px, 8vw, 120px); } /* контакты идут друг за другом слева, как шаги */
.contact h3 { font-size: 13px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.contact-cols a { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.02em; text-decoration: none; }
.contact-cols a:hover { color: var(--blue); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 90px); padding-top: 16px; border-top: 1.5px solid var(--line); font-size: 14px; color: var(--mute); }

/* ───────── окно с видео ───────── */
.modal { width: min(1100px, 94vw); max-height: 94svh; padding: 0; border: 0; background: var(--ink); color: #fff; overflow: visible; }
.modal.vertical { width: min(420px, 94vw); }
.modal::backdrop { background: rgba(10,10,10,.88); }
.modal-frame { position: relative; aspect-ratio: 16 / 9; background: #0c0c0c; display: grid; place-items: center; }
.modal.vertical .modal-frame { aspect-ratio: 9 / 16; max-height: 78svh; margin: 0 auto; }
.modal-frame iframe, .modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-frame p { padding: 24px; text-align: center; color: #999; }
.modal-meta { padding: 14px 18px 18px; }
.modal-meta b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.modal-meta span { font-size: 14px; color: #aaa; }
.modal-close { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 0; background: var(--paper); color: var(--ink); font: 500 26px/1 var(--text); cursor: pointer; }

/* моргание — склейка между состояниями */
.blink { position: fixed; inset: 0; z-index: 300; background: #000; opacity: 0; pointer-events: none; }
.blink.on { animation: blink .22s ease-out; }
@keyframes blink { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ───────── инструменты: ряд карточек — иконка, крупный номер, название и подпись ───────── */
/* фраза-итог — крупно, как заголовок первого экрана, по центру под текстом и фото */
.about-closing { grid-column: 1 / -1; grid-row: 3; margin: 0 0 clamp(18px, 2.6vw, 40px); font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; text-align: center; }
.skills { grid-column: 1 / -1; grid-row: 4; margin-top: clamp(20px, 2.5vw, 32px); }
.skills .sub-head { margin-top: 0; margin-bottom: 12px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 14px); margin: 0; padding: 0; list-style: none; }
.tools li { position: relative; display: flex; flex-direction: column; min-height: clamp(170px, 15vw, 220px); padding: clamp(14px, 1.5vw, 20px); border-radius: 14px; background: linear-gradient(180deg, rgba(63,127,214,.16), #fff 62%); overflow: hidden; }
.tools svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tools .num { position: absolute; right: clamp(12px, 1.4vw, 18px); top: clamp(4px, .6vw, 10px); font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.04em; color: rgba(255,255,255,.75); }
.tools b { margin-top: auto; padding-top: 28px; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; letter-spacing: -.015em; }
.tools p { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--mute); }

/* ───────── таймлайн опыта ───────── */
.timeline { grid-column: 1 / -1; grid-row: 5; margin-top: clamp(24px, 3vw, 40px); }
.timeline .sub-head { margin-top: 0; margin-bottom: 10px; }
.tl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.tl li { display: flex; flex-direction: column; gap: 4px; padding: 6px 16px 8px 16px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.tl li { grid-row: 1; } /* все шесть пунктов в одну линию, слева направо по годам */
.tl li:nth-child(1) { grid-column: 1; } .tl li:nth-child(2) { grid-column: 2; } .tl li:nth-child(3) { grid-column: 3; }
.tl li:nth-child(4) { grid-column: 4; } .tl li:nth-child(5) { grid-column: 5; } .tl li:nth-child(6) { grid-column: 6; }
.tl time { margin-top: 8px; font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.tl b { font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.2; color: var(--ink); }
.tl span:not(.pill) { color: var(--mute); }
.tl .links { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; }
.tl a { font-size: 13px; font-weight: 500; color: var(--blue); text-decoration: none; white-space: nowrap; }
.tl a:hover { text-decoration: underline; text-underline-offset: .2em; }
/* пилюля: сплошная синяя заливка + штриховка; заливка растёт от пункта к пункту,
   последняя не доходит до конца — опыт продолжает набираться */
.tl li:nth-child(1) { --fill: 15%; } .tl li:nth-child(2) { --fill: 30%; } .tl li:nth-child(3) { --fill: 45%; }
.tl li:nth-child(4) { --fill: 60%; } .tl li:nth-child(5) { --fill: 75%; } .tl li:nth-child(6) { --fill: 90%; }
.pill { display: block; height: 14px; border-radius: 999px; background:
  linear-gradient(var(--blue), var(--blue)) 0 0 / var(--fill, 30px) 100% no-repeat,
  repeating-linear-gradient(-55deg, rgba(63,127,214,.42) 0 2px, transparent 2px 6px); }

/* ───────── планшет и телефон ───────── */
@media (max-width: 900px) {
  .works-grid, .cases { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: repeat(3, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tl li { grid-row: auto; grid-column: auto !important; }
  .tl time { margin-top: 6px; }
}
@media (max-width: 640px) {
  .six { flex-direction: column; height: clamp(420px, 80vh, 640px); }
  .six figure { flex-basis: 0; min-height: 28px; }
  /* подписи на телефоне: номер и название в одну строку, у всех шести от одного левого края */
  .six figure:not(.active) figcaption { padding: 6px 12px 6px; }
  .six figure:not(.active) figcaption small { flex-direction: row; align-items: baseline; gap: 8px; }
  .six figure:not(.active) figcaption b { font-size: 17px; min-width: 1.35em; }
  .six figure[data-size="narrow"]:not(.active) figcaption span,
  .six figure[data-size="tiny"]:not(.active) figcaption span { display: inline; }
  .six figure[data-size="tiny"]:not(.active) figcaption { padding-left: 12px; }
  .six figcaption p { font-size: 16px; max-width: 38ch; }
  .six figure.active figcaption { padding: 16px 18px 20px; }
  .works-grid, .cases, .about { grid-template-columns: minmax(0, 1fr); } /* minmax(0,…): широкое содержимое не распирает колонку шире экрана */
  .producing-intro { grid-template-columns: 1fr; }
  .producing-lead br, .note br { display: none; }
  .producing-visual { order: -1; width: min(70%, 260px); margin: 0 auto 8px; }
  .tl { grid-template-columns: 1fr; gap: 0; }
  .timeline { grid-column: 1; grid-row: auto; }
  .skills, .about-closing { grid-column: 1; grid-row: auto; }
  .about-closing { margin-top: 22px; }
  .contact-cols { flex-direction: column; }
  .about h2, .about-text, .about-visual { grid-column: 1; grid-row: auto; }
  .about h2 { order: -2; }
  .about-visual { order: -1; width: min(100%, 420px); margin: 0 auto -6%; left: 0; }
  .portrait { left: 3%; }
  .plate { left: auto; right: 0; top: 7%; width: 46%; } /* табличка справа — не закрывает лицо */
  .snaps { left: 22%; right: -2%; }
  .snaps { right: 0; }
  .statement { max-width: none; }
  /* шапка на телефоне: сверху меню, под ним слева имя с ролью в две строки, справа — Сербия */
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nav nav" "brand where"; gap: 18px 12px; align-items: start; padding-top: 16px; }
  .top-right { display: contents; }
  .nav { grid-area: nav; justify-content: space-between; flex-wrap: nowrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .brand-block { grid-area: brand; }
  .brand-block .sub { font-size: 13px; line-height: 1.35; }
  .m-br { display: inline; }
  .where { grid-area: where; margin-top: 0; padding: 0 0 0 10px; column-gap: 7px; font-size: 12px; line-height: 1.45; }
  .where b { font-size: 13px; }
  .hero { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
