/* Резюме. Правило форм: всё интерактивное — пилюли, контейнеры — радиус 18px, внутренние элементы — 12px. */
:root { --r-box: 18px; --r-in: 12px; --shadow: 0 1px 0 rgb(15 98 93 / .04), 0 18px 40px -24px rgb(15 98 93 / .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow: 0 18px 40px -24px rgb(0 0 0 / .6); } }
:root[data-theme="dark"] { --shadow: 0 18px 40px -24px rgb(0 0 0 / .6); }

body { background:
  radial-gradient(1100px 520px at 88% -8%, var(--accent-soft), transparent 62%),
  var(--bg); background-repeat: no-repeat; }
.wrap { max-width: 1160px; }
.ph { font-size: 1.05em; line-height: 1; flex: none; }

/* верхняя панель */
.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); min-height: 60px; display: flex; align-items: center; gap: 20px; }
.nav .brand { display: block; font: 600 15px/1 var(--f-display); color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav .anchors { gap: 2px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(44px, 7.4vw, 84px); line-height: .98; letter-spacing: -0.035em; font-weight: 700; }
.role { margin-top: 18px; font: 600 clamp(18px, 2.2vw, 23px)/1.3 var(--f-display); color: var(--accent); }
.lead { margin-top: 16px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.cta .btn .ph { font-size: 18px; }

.id-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 16px; max-width: 380px; justify-self: end; width: 100%; }
.id-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-in); background: var(--surface-2); display: block; }
.contacts { display: grid; gap: 9px; padding: 2px 6px 6px; font-size: 15px; }
.contacts li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.contacts .ph { color: var(--accent); font-size: 18px; }
.contacts a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--accent); text-decoration: underline; }

/* цифры */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: clamp(12px, 3vw, 28px) 0;
  border-block: 1px solid var(--line); }
.numbers div { padding: 26px clamp(12px, 2vw, 24px) 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.numbers div + div { border-left: 1px solid var(--line); }
.numbers dd { font: 700 clamp(32px, 4.4vw, 50px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.numbers dt { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; max-width: 24ch; }

/* разделы */
.sec { padding-block: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 64px; }
.sec > h2, .sec-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: clamp(24px, 3vw, 36px); }

/* почему продукт */
.why { padding-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); gap: 18px clamp(24px, 5vw, 64px); }
.why h2 { font: 600 17px/1.4 var(--f-display); color: var(--accent); }
.why p { font: 500 clamp(21px, 2.5vw, 30px)/1.42 var(--f-display); letter-spacing: -0.012em; color: var(--ink); max-width: 34ch; }
.why p span { color: var(--muted); }

/* опыт */
.job { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px); align-items: start; }
.job-head { position: sticky; top: 84px; display: grid; gap: 10px; }
.job-head h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.job-head .co { font-weight: 600; color: var(--accent); }
.job-head .when { color: var(--muted); font-size: 14.5px; }
.job-head .link-arrow { padding-inline: 0; justify-self: start; }
.groups { display: grid; gap: 14px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: clamp(18px, 2.4vw, 26px); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; }
.group > .ph { grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-in); background: var(--accent-soft); color: var(--accent); font-size: 21px; }
.group h4 { font: 600 17px/1.4 var(--f-display); margin: 0; padding-top: 8px; }
.group ul { display: grid; gap: 10px; margin-top: 8px; }
.group li { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; padding-left: 16px; position: relative; }
.group li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1.5px; background: var(--accent); }
.group b, .project b { color: var(--ink); font-weight: 600; }

/* кейсы */
.cases { display: grid; gap: 14px; }
.case { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); }
.case-head { display: grid; gap: 6px; align-content: start; }
.case-num { font: 700 clamp(44px, 5.4vw, 64px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.case-metric { color: var(--ink-2); font-size: 15px; }
.case-head h3 { margin-top: 14px; font: 600 19px/1.3 var(--f-display); display: flex; gap: 10px; align-items: flex-start; }
.case-head h3 .ph { color: var(--accent); font-size: 21px; margin-top: 1px; }
.case-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(18px, 3vw, 36px); }
.case-steps div { display: grid; gap: 6px; align-content: start; }
.case-steps dt { font: 600 14px/1.3 var(--f-display); color: var(--muted); }
.case-steps dd { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.case-steps dd b { color: var(--ink); font-weight: 600; }
.case-result { align-self: start; background: var(--accent-soft); border-radius: var(--r-in); padding: 14px 16px; margin: -14px -16px; }
.case-result dt { color: var(--accent); }
.study-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; align-items: start; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-box); }
.study-track::-webkit-scrollbar { display: none; }
.study-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.study-track > .case { scroll-snap-align: start; }
.study-nav { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 14px; }
.study-nav[hidden] { display: none; }
.study-count { font: 600 15px/1 var(--f-display); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: center; }
.study-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; font-size: 18px; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease, opacity .2s ease; }
.study-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.study-btn:active:not(:disabled) { transform: scale(.94); }
.study-btn:disabled { opacity: .35; cursor: default; }
.study-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .study-track { scroll-behavior: auto; } }
.study-meta { color: var(--muted); font-size: 14px; }
.study-foot { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(18px, 3vw, 36px);
  border-top: 1px solid var(--line); padding-top: clamp(18px, 2.4vw, 26px); }
.study-quote { margin: 0; display: grid; gap: 8px; align-content: start; padding-left: 16px; border-left: 3px solid var(--accent); }
.study-quote blockquote { margin: 0; }
.study-quote p { color: var(--ink); font-size: 15.5px; line-height: 1.6; font-style: italic; }
.study-quote figcaption { color: var(--muted); font-size: 14px; }
.study-next { display: grid; gap: 6px; align-content: start; }
.study-next h4 { font: 600 14px/1.3 var(--f-display); color: var(--muted); }
.study-next p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.study-methods { grid-column: 1 / -1; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.study-methods span { font: 600 14px/1.3 var(--f-display); color: var(--muted); margin-right: 8px; }

/* проект SellerAnalytics */
.showcase { position: relative; overflow: hidden; border-radius: var(--r-box); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 46%); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.showcase-main { padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 16px; align-content: start; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--muted); font-size: 14.5px; }
.showcase h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.showcase .sub { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 52ch; }
.project ul { display: grid; gap: 10px; }
.project li { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; padding-left: 26px; position: relative; }
.project li .ph { position: absolute; left: 0; top: .2em; color: var(--accent); font-size: 17px; }
.stack { color: var(--muted); font-size: 14px; }
.showcase .cta { margin-top: 6px; }

.live { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 18px; align-content: start; }
.live-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.live-top h4 { font: 600 16px/1.3 var(--f-display); margin: 0; }
.live-top small { color: var(--muted); font-size: 13px; }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.live-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-in); padding: 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.live-grid dd { font: 700 28px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.live-grid dt { color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
.live-sprint { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; font-size: 15px; }
.live-sprint b { font-family: var(--f-display); font-weight: 600; }
.live-sprint span { color: var(--ink-2); }
.skeleton { color: transparent !important; background: var(--surface-2); border-radius: 6px; }

.live-shot { display: block; border-radius: var(--r-in); overflow: hidden; border: 1px solid var(--line); background: #11161b; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s ease; }
.live-shot:hover { transform: translateY(-2px); border-color: var(--accent); }
.live-shot picture, .live-shot img { display: block; width: 100%; height: auto; }
.live-shots { position: relative; }
.live-shot img { transition: opacity .18s ease; }
.live-shot img.is-swapping { opacity: .35; }
.ls-nav { display: none; position: absolute; top: calc((100% - 30px) / 2); translate: 0 -50%; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .2); background: rgb(14 19 23 / .72); color: #fff; place-items: center; font-size: 16px; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s ease, transform .15s ease; }
.js .ls-nav { display: grid; }
.ls-prev { left: 8px; } .ls-next { right: 8px; }
.ls-nav:hover { background: var(--accent); border-color: var(--accent); }
.ls-nav:active { transform: scale(.94); }
.ls-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 2px 0; height: 22px; font-size: 13.5px; color: var(--ink-2); }
.ls-cap b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-count { flex: none; font-variant-numeric: tabular-nums; }

/* боты */
.bots { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
.bots h3 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; margin-bottom: 14px; }
.bot-links { display: grid; gap: 12px; align-content: start; }
.bot { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-in);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
.bot:hover { border-color: var(--accent); transform: translateY(-2px); }
.bot:active { transform: translateY(0) scale(.99); }
.bot > .ph:first-child { width: 48px; height: 48px; border-radius: var(--r-in); display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); color: var(--accent); }
.bot b { display: block; font: 600 16px/1.3 var(--f-display); }
.bot span { color: var(--ink-2); font-size: 14px; }
.bot > .ph:last-child { color: var(--muted); font-size: 18px; }
.bot-note { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* чем полезен */
.value { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.value li { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 2px solid var(--accent); }
.value .ph { font-size: 26px; color: var(--accent); }
.value p { font: 500 17px/1.45 var(--f-display); color: var(--ink); }

/* как я работаю */
.sec-lead { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 62ch; margin: -12px 0 clamp(24px, 3vw, 36px); }
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process li { position: relative; padding: 0 clamp(10px, 1.6vw, 22px) 0 0; display: grid; gap: 10px; align-content: start; }
.process li::before { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--line)); }
.process li:last-child::before { display: none; }
.process .ph { position: relative; width: 44px; height: 44px; border-radius: var(--r-in); display: grid; place-items: center; font-size: 22px; background: var(--accent); color: var(--accent-ink); }
.process h3 { font: 600 17px/1.3 var(--f-display); margin-top: 6px; }
.process p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.on-accent { color: inherit; }
.cta .link-arrow .ph { font-size: 18px; }
.pdf-pick { position: relative; }
.pdf-pick > summary { list-style: none; cursor: pointer; user-select: none; }
.pdf-pick > summary::-webkit-details-marker { display: none; }
.pdf-pick > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }
.cta .pdf-caret { font-size: 13px; transform: rotate(90deg); transition: transform .2s ease; }
.pdf-pick[open] .pdf-caret { transform: rotate(-90deg); }
.pdf-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; width: max-content; min-width: 240px; display: grid; gap: 2px; padding: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-in);
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / .35); animation: pdf-in .16s ease-out; }
.pdf-pick.up .pdf-menu { top: auto; bottom: calc(100% + 4px); }
.pdf-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.pdf-menu a:hover, .pdf-menu a:focus-visible { background: var(--accent-soft); outline: none; }
.pdf-menu b { font: 600 15px/1.3 var(--f-display); }
.pdf-menu span { color: var(--ink-2); font-size: 13.5px; }
@keyframes pdf-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pdf-menu { animation: none; } .cta .pdf-caret { transition: none; } }

/* навыки */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.skills h3 { font: 600 17px/1.3 var(--f-display); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.skills h3 .ph { color: var(--accent); font-size: 20px; }
.skills .chips li { font-size: 14.5px; }

/* образование */
.edu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); }
.edu-list { display: grid; gap: 22px; }
.edu-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 18px; }
.edu-item .yrs { grid-row: 1 / span 3; color: var(--accent); font: 600 14px/1.6 var(--f-mono); }
.edu-item h3 { font: 600 18px/1.35 var(--f-display); }
.edu-item p { color: var(--ink-2); font-size: 15.5px; }
.facts-side { display: grid; gap: 14px; align-content: start; }
.fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 18px; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); }
.fact > .ph { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: var(--r-in); display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.fact h3 { font: 600 16px/1.4 var(--f-display); padding-top: 2px; }
.fact p { color: var(--ink-2); font-size: 15px; }

/* контакт */
.reach { margin-top: clamp(72px, 10vw, 120px); border-radius: var(--r-box); background: var(--accent); color: var(--accent-ink); padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px clamp(24px, 5vw, 64px); align-items: center; }
.reach h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: inherit; }
.reach p { margin-top: 12px; opacity: .86; max-width: 46ch; }
.reach .btn { background: var(--accent-ink); color: var(--accent); }
.reach .contacts a, .reach .contacts .ph { color: inherit; }
.reach .contacts { padding: 0; }
footer { margin-top: 28px; }

/* появление при прокрутке */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .id-card { justify-self: stretch; grid-template-columns: 132px minmax(0, 1fr); max-width: 560px; align-items: center; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .job, .why, .showcase, .bots, .edu, .reach, .case { grid-template-columns: minmax(0, 1fr); }
  .job-head { position: static; }
  .live { border-left: 0; border-top: 1px solid var(--line); }
  .value { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .process li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 0; }
  .process li > .ph { grid-row: 1 / span 2; }
  .process li::before { left: 21px; right: auto; top: 50px; bottom: -18px; width: 2px; height: auto; background: var(--line); }
  .process h3 { margin-top: 10px; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .nav .anchors { display: none; }
}
@media (max-width: 560px) {
  .id-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .contacts { font-size: 14px; gap: 7px; padding: 0; }
  .value { grid-template-columns: minmax(0, 1fr); }
  .case-steps { grid-template-columns: minmax(0, 1fr); }
  .case-result { margin: 0 -4px; }
  .study-foot { grid-template-columns: minmax(0, 1fr); }
  .edu-item { grid-template-columns: minmax(0, 1fr); }
  .edu-item .yrs { grid-row: auto; }
  .nav .brand { display: block; }
}
/* узкий экран: имя уже крупно в шапке, а в панели должны поместиться RU / EN и «Написать» */
@media (max-width: 480px) { .nav .brand { display: none; } .nav .lang { margin-left: auto; } }
.print-only { display: none; }
/* PDF «Скачать PDF» собирается из этой же страницы (scripts/build-pdf.cjs, масштаб 0.72 → раскладка десктопа) */
@media print {
  .study-track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 14px; }
  .study-nav { display: none !important; }
  @page { size: A4; margin: 12mm 12mm 14mm; }
  :root { --bg: #ffffff; --surface: #ffffff; --shadow: none; }
  html, body { background: #fff !important; }
  .nav, .skip, .cta, .reach, .live, .bot > .ph:last-child, footer, .job-head .link-arrow, .showcase .cta { display: none !important; }
  .print-only { display: block; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: none; padding-inline: 0; padding-block: 0; }
  .hero { padding-block: 0 8px; align-items: start; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; }
  .hero h1 { font-size: 58px; }
  .role { margin-top: 10px; }
  .lead { margin-top: 10px; }
  .id-card { box-shadow: none; grid-template-columns: 112px minmax(0, 1fr); align-items: center; max-width: none; gap: 18px; }
  .contacts { font-size: 14px; gap: 6px; }
  .numbers { margin-top: 18px; }
  .numbers div { padding: 14px 16px; }
  .numbers dd { font-size: 34px; }
  .why { padding-top: 26px; }
  .why p { font-size: 20px; max-width: none; }
  .sec { padding-top: 28px; }
  .sec > h2, .sec-title { font-size: 28px; margin-bottom: 16px; break-after: avoid; }
  .sec-lead { margin: -6px 0 16px; font-size: 16px; }
  .job-head { position: static; }
  .group, .showcase, .bots, .case, .fact { box-shadow: none; break-inside: avoid; }
  .group { padding: 16px 18px; }
  .groups { gap: 10px; }
  .showcase { grid-template-columns: minmax(0, 1fr); background: #fff; }
  .showcase-main, .bots { padding: 22px 24px; }
  .showcase .print-only, .hero .print-only { color: var(--ink-2); font-size: 14.5px; }
  .hero .print-only { margin-top: 12px; }
  .hero .print-only a { color: var(--accent); font-weight: 600; }
  .bots { margin-top: 12px; }
  .bot { padding: 10px 12px; }
  .value li { break-inside: avoid; }
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .process p { font-size: 14px; }
  .process li { break-inside: avoid; }
  .skills { break-inside: avoid; }
  .edu { break-inside: avoid; }
  .reach { margin-top: 30px; background: var(--accent-soft) !important; color: var(--ink) !important; padding: 22px 26px; break-inside: avoid; }
  .reach h2 { font-size: 26px; }
  .reach .contacts a, .reach .contacts .ph { color: var(--ink) !important; }
  .reach .contacts .ph { color: var(--accent) !important; }
  .value, .process, .why, .numbers { break-inside: avoid; }
  .chips { gap: 6px; }
  .chips li { padding: 4px 10px; font-size: 13.5px !important; }
  .skills h3 { margin-bottom: 10px; }
  .value li { padding-top: 12px; gap: 8px; }
  .value p { font-size: 15.5px; }
  .process { row-gap: 0; }
  .edu-list { gap: 14px; }
  .fact { padding: 14px; }
  .facts-side { gap: 10px; }
  .why p { font-size: 19px; }

  /* краткая версия PDF (scripts/build-pdf.cjs --short): главное на двух страницах */
  .cv-short .why, .cv-short #process, .cv-short [aria-labelledby="value-title"], .cv-short .bot-links,
  .cv-short .case-steps > div:not(.case-result), .cv-short .study-foot, .cv-short .sec-lead,
  .cv-short .showcase ul li:nth-child(n+3), .cv-short .bots ul li:nth-child(n+2), .cv-short .study-meta, .cv-short .case-head h3 .ph { display: none !important; }
  .cv-short .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cv-short .study-track .case, .cv-short .cases .case { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 18px; }
  .cv-short .study-track .case { grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); }
  .cv-short .case-num { font-size: 38px; }
  .cv-short .case-head h3 { margin-top: 6px; font-size: 16px; }
  .cv-short .case-steps { grid-template-columns: minmax(0, 1fr); }
  .cv-short .case-result { margin: 0; padding: 10px 12px; }
  .cv-short .case-steps dd { font-size: 14.5px; line-height: 1.5; }
  .cv-short .bots { grid-template-columns: minmax(0, 1fr); }
  .cv-short .bots h3 { margin-bottom: 8px; }
  .cv-short .sec { padding-top: 22px; }
  .cv-short .job { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cv-short .job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .cv-short .job-head h3 { font-size: 18px; }
  .cv-short .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-short .group { padding: 14px 16px; align-content: start; }
  .cv-short .cases .case-steps { display: none !important; }
  .cv-short .cases .case { padding: 14px 18px; gap: 4px; }
  .cv-short .showcase .sub { max-width: none; }
  .cv-short .study-track .case-num { font-size: 32px; }
  .cv-short .skills { gap: 14px 28px; }
}

