/* ============================================================
   ТЕРЁШКИН ВЯЧЕСЛАВ — Сетевой инженер / ИБ
   Design tokens
   ============================================================ */

/* Шрифты размещены локально: раньше грузились через @import с
   fonts.googleapis.com — это цепочка CSS→CSS→файлы и ~3,7 с задержки,
   плюс зависимость от стороннего домена. Подмножества латиницы и
   кириллицы, браузер берёт только нужные по unicode-range. */
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* --- Тёмная терминальная база с жёлтым сигнальным акцентом --- */
  --bg: #0a0a0c;
  --bg-soft: #0e0d0a;
  --surface: #111116;
  --surface-2: #17171d;
  --surface-3: #1e1e25;
  --border: #26262e;
  --border-strong: #33333c;

  --text: #f0eeea;
  --text-dim: #b9b7c0;
  --text-faint: #8a88a0;

  /* Три домена карьеры — каждый со своим цветом.
     Палитра описывает путь: горное дело → связь → сети и ИБ. */
  --accent: #f2c94c;       /* сигнальный жёлтый — сети, ИБ, настоящее */
  --accent-dim: #a8891f;
  --accent-soft: #241f0d;

  --copper: #e0975a;       /* медь — горное дело, физический уровень, прошлое */
  --copper-dim: #8a5a2a;
  --copper-soft: #241a0e;

  --slate: #d9d7e5;        /* холодная сталь — учёба, нормативка, документы */
  --slate-dim: #b9b7c0;
  --slate-soft: #17171d;

  --amber: #ffe08a;
  --red: #d9695f;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --font-display: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --content-w: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Шапка липкая: без отступа якорь уводит заголовок под неё */
  scroll-padding-top: 84px;
}
/* Плавный переход между страницами (современный синтаксис;
   прежний <meta name="view-transition"> не работал). */
@view-transition { navigation: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(242,201,76,0.05), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(201,146,79,0.05), transparent 60%);
}
/* height:auto обязателен: иначе HTML-атрибут height="..." (нужный против сдвигов
   макета) перебивает aspect-ratio и растягивает картинку. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(242,201,76,0.26); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--content-w); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); position: relative; z-index: 1; }
section { padding-block: clamp(56px, 9vw, 108px); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent-dim);
}
.eyebrow .idx { color: var(--text-faint); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head .lede { margin-top: 14px; color: var(--text-dim); font-size: 16.5px; }

/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/golos-text-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/golos-text-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/golos-text-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/golos-text-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/golos-text-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/golos-text-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/golos-text-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/golos-text-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/golos-text-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/golos-text-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/golos-text-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/golos-text-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/golos-text-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/golos-text-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/golos-text-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/golos-text-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; }
.brand a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.brand span.dim { color: var(--text-faint); font-weight: 400; }
nav.links { display: flex; gap: 28px; font-size: 14px; font-family: var(--font-mono); }
nav.links a { color: var(--text-dim); transition: color 0.15s var(--ease); position: relative; }
nav.links a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); width: 44px; height: 44px; border-radius: var(--radius-sm); align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; position: fixed; inset: 60px 0 0 0; background: var(--bg); z-index: 49; padding: 24px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); color: var(--text); }
/* Резюме — то, что чаще всего ищут с телефона: первым и как действие */
.mobile-menu .mobile-cv {
  border-bottom: none; justify-content: center; margin-bottom: 14px; padding: 15px 20px;
}

@media (max-width: 860px) {
  nav.links, .header-cta .btn-text { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  padding: 13px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: all 0.18s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover { border-color: var(--accent-dim); background: var(--surface-3); transform: translateY(-1px); }
.btn.primary { background: var(--accent-soft); border-color: var(--accent-dim); color: var(--accent); }
.btn.primary:hover { background: var(--accent-dim); color: var(--bg); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Hero / Terminal ---------- */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(40px, 6vw, 60px); position: relative; }

/* Слой клавиш за героем: подсветка идёт за курсором.
   Скрыт на тач-устройствах и при reduced-motion — там он бессмыслен. */
.key-layer {
  position: absolute; top: 0; left: 0; right: 0; height: 860px;
  overflow: hidden; pointer-events: none; z-index: 0;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.key-layer .key {
  position: absolute; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #17171d; border-radius: 5px;
  background: #0d0d11; color: #1e1e24;
  font-family: var(--font-mono); font-size: 12px;
  opacity: 0; transform: scale(0.86);
  transition: opacity 0.5s ease, transform 0.5s ease,
              background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.key-layer .key.in { opacity: 1; transform: scale(1); }
@media (max-width: 860px), (pointer: coarse) { .key-layer { display: none; } }
@media (prefers-reduced-motion: reduce) { .key-layer { display: none; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
/* Подзаголовок — роль. Заметно мельче имени: имя ведёт, роль поясняет. */
.hero h1 .line2 {
  color: var(--accent); display: block;
  font-size: clamp(18px, 2.1vw, 26px); font-weight: 500;
  letter-spacing: -0.005em; line-height: 1.25; margin-top: 14px;
  max-width: 20ch;
}
.hero .role { font-family: var(--font-mono); color: var(--text-dim); font-size: 16px; margin-top: 18px; max-width: 46ch; }
.hero .stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero .stat b { font-family: var(--font-display); font-size: 26px; color: var(--accent); display: block; }
.hero .stat span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Terminal */
.terminal {
  background: #0c0c10;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(242,201,76,0.04);
  cursor: text;
}
.term-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.term-titlebar .dots { display: flex; gap: 6px; }
.term-titlebar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.term-titlebar .path { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.term-body {
  padding: 18px; height: 360px; overflow-y: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
}
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.term-line { opacity: 0; animation: termIn 0.25s var(--ease) forwards; white-space: pre-wrap; word-break: break-word; color: var(--text-dim); }
.term-line.term-hint { color: var(--text-faint); }
@keyframes termIn { to { opacity: 1; } }
.term-prompt { color: var(--accent); }
.term-inputrow { display: flex; align-items: center; gap: 8px; padding: 0 18px 16px; font-family: var(--font-mono); font-size: 13.5px; }
.term-inputrow .term-prompt { flex-shrink: 0; }
.term-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font: inherit; caret-color: var(--accent);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-photo .tag {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  background: rgba(8,18,16,0.85); border: 1px solid var(--border-strong);
  padding: 6px 10px; border-radius: 4px; color: var(--accent);
}
.about-text p { color: var(--text-dim); font-size: 16px; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.fact { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface); }
.fact .k { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.fact .v { margin-top: 6px; font-size: 14.5px; color: var(--text); }

/* ---------- Timeline (experience) ---------- */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: ''; position: absolute; left: 130px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--border-strong), var(--border) 90%);
}
@media (max-width: 700px) { .timeline::before { left: 18px; } }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding-block: 26px; position: relative; }
@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; padding-left: 36px; } }
.tl-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.tl-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); padding-top: 3px; }
.tl-dot {
  position: absolute; left: 126px; top: 30px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-dim);
}
@media (max-width: 700px) { .tl-dot { left: 14px; } }
.tl-item.current .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-role { font-size: 18px; font-weight: 600; font-family: var(--font-display); }
.tl-org { color: var(--accent); font-family: var(--font-mono); font-size: 13px; margin-top: 4px; }
.tl-desc { color: var(--text-dim); margin-top: 10px; font-size: 15px; max-width: 68ch; }
.tl-desc ul { margin: 8px 0 0; padding-left: 18px; }
.tl-desc li { margin-bottom: 4px; }
.tl-photos { display: flex; gap: 10px; margin-top: 14px; }
.tl-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); transition: transform 0.2s var(--ease); cursor: zoom-in; }
.tl-photos img:hover { transform: scale(1.05); border-color: var(--accent-dim); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
@media (max-width: 700px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card { background: var(--surface); padding: 26px 28px; }
.skill-card .num { font-family: var(--font-mono); color: var(--copper); font-size: 13px; }
.skill-card h3, .skill-card h4 { font-size: 18px; margin-top: 8px; }
.skill-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 10px;
  border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-dim);
  background: var(--surface-2);
}

/* ---------- Education / achievements ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .edu-grid { grid-template-columns: 1fr; } }
.edu-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
}
.edu-card .thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); position: relative; }
.edu-card .thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.3s var(--ease); }
.edu-card .thumb:hover img { transform: scale(1.04); }
.edu-card .body { padding: 20px 22px; }
.edu-card .status { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.edu-card h3, .edu-card h4 { font-size: 16.5px; margin-top: 8px; }
.edu-card .org { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.edu-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 10px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 26px 24px; background: var(--surface);
  transition: all 0.2s var(--ease); position: relative; overflow: hidden;
}
.project-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.5); }
.project-card .status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
/* Пилюля живёт на самом .status, а не только внутри карточки проекта:
   иначе те же бейджи в кейсах теряли рамку и padding. */
.status {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 20px; border: 1px solid;
  color: var(--slate); border-color: var(--slate-dim); background: var(--slate-soft);
}
/* Цвет кодирует тип бейджа, а не украшает:
   место — нейтральное, фаза работы — жёлтое, признание — медное. */
.status.place   { color: var(--slate);  border-color: var(--slate-dim);  background: var(--slate-soft); }
.status.live    { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-soft); }
.status.award   { color: var(--copper); border-color: var(--copper-dim); background: var(--copper-soft); }
.status.internal { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-soft); }
.project-card .arrow { color: var(--text-faint); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.project-card:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
.project-card h4 { font-size: 19px; margin-bottom: 10px; }
.project-card p { color: var(--text-dim); font-size: 14.5px; }
.project-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }/* ---------- Home lab teaser ---------- */

/* ---------- Contact ---------- */
.contact-band { border-top: 1px solid var(--border); }
/* Вертикальная последовательность: заголовок → снятие рисков →
   действие → каналы. Читается как один путь к обращению. */
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.contact-inner h2 { font-size: clamp(28px, 4vw, 44px); max-width: 22ch; text-wrap: balance; }

/* ---------- Контакты: строка статуса и приоритет действий ---------- */
.contact-status {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 28px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
}
.contact-status span { display: inline-flex; align-items: center; gap: 7px; }
.contact-status span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-dim); flex-shrink: 0;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.contact-actions .btn { font-size: 14px; padding: 14px 22px; }

/* ---------- Каналы связи: значок + подпись ----------
   Значок помогает сканировать, смысл несёт подпись — поэтому
   иконки декоративны (aria-hidden) и текст всегда рядом. */
.contact-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.channel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-dim);
  font-family: var(--font-mono); font-size: 13.5px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.channel svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-faint); transition: color 0.18s var(--ease); }
.channel:hover {
  border-color: var(--accent-dim); background: var(--surface-2);
  color: var(--text); transform: translateY(-1px);
}
.channel:hover svg { color: var(--accent); }
@media (max-width: 620px) {
  /* На телефоне каналы — список во всю ширину: проще попасть пальцем */
  .contact-channels { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-actions, .contact-actions .btn { width: 100%; }
  .contact-actions .btn { justify-content: center; }
  .channel { justify-content: flex-start; }
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links a { font-family: var(--font-mono); font-size: 15px; color: var(--text-dim); display: flex; align-items: center; gap: 10px; transition: color 0.15s; }
.contact-links a:hover { color: var(--accent); }
.contact-links a .k { color: var(--text-faint); width: 84px; flex-shrink: 0; }

footer.site { border-top: 1px solid var(--border); padding-block: 24px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(6,10,9,0.92); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 900px); max-height: 86vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-mono); font-size: 16px; line-height: 1;
  cursor: pointer; transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.lightbox-close:hover { border-color: var(--accent-dim); background: var(--surface-2); }
.lightbox-close svg { width: 16px; height: 16px; }
.menu-btn svg { width: 18px; height: 18px; }

/* Страница под открытым оверлеем не прокручивается */
body.no-scroll { overflow: hidden; }

/* Миниатюры-триггеры лайтбокса становятся кнопками только когда есть JS */
.js [data-lightbox] { cursor: zoom-in; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Project detail page shared ---------- */
.pd-hero { padding-top: clamp(40px, 7vw, 72px); }
.pd-hero .status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pd-hero h1 { font-size: clamp(28px, 4.4vw, 46px); max-width: 20ch; }
.pd-hero .sub { color: var(--text-dim); font-size: 17px; margin-top: 16px; max-width: 62ch; }
.pd-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.pd-meta .m .k { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.pd-meta .m .v { margin-top: 6px; font-size: 14.5px; }
.pd-body { max-width: 74ch; }
.pd-body h3 { font-size: 21px; margin-top: 42px; margin-bottom: 14px; }
.pd-body p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 14px; }
.pd-body ul { color: var(--text-dim); font-size: 15.5px; padding-left: 20px; }
.pd-body li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-dim); margin-bottom: 28px; }
.back-link:hover { color: var(--accent); }/* ---------- Документ-подтверждение внутри проекта ---------- */

/* ---------- Contact: копирование ---------- */
.contact-links a[data-copy] { cursor: copy; }

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--accent); color: var(--bg); padding: 10px 16px;
  border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus { left: 16px; }

/* ---------- Document card (сертификаты, благодарности в проектах) ---------- */
.pd-split { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .pd-split { grid-template-columns: 1fr; gap: 32px; } }
.pd-aside { position: sticky; top: 90px; }
@media (max-width: 900px) { .pd-aside { position: static; } }

.doc-card {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--surface);
}
.doc-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center top;
  cursor: zoom-in; transition: transform 0.3s var(--ease);
}
.doc-card:hover img { transform: scale(1.03); }
.doc-card figcaption {
  padding: 16px 18px; font-size: 13px; color: var(--text-dim); line-height: 1.5;
  border-top: 1px solid var(--border);
}
.doc-card figcaption strong {
  display: block; color: var(--text); font-family: var(--font-mono);
  font-size: 12.5px; margin-bottom: 5px; font-weight: 600;
}

/* Проектная сетка: последняя одинокая карточка не растягивается на всю ширину */
.projects-grid .project-card:last-child:nth-child(odd) { grid-column: auto; }

/* ---------- Мобильные уточнения ---------- */
@media (max-width: 620px) {
  .hero .stats { gap: 14px 20px; margin-top: 24px; }
  .hero .stat { flex: 1 1 40%; }
  .hero .stat b { font-size: 22px; }
  .hero .stat span { font-size: 11px; }
  .hero .cta-row { margin-top: 26px; }
  .term-body { height: 260px; padding: 14px; font-size: 12.5px; }
  .term-inputrow { padding: 0 14px 14px; font-size: 12.5px; }
  .about-facts { grid-template-columns: 1fr; }
  .tl-photos img { width: 72px; height: 72px; }
  .contact-links a { flex-wrap: wrap; }
}/* ---------- Блок достижений и рейтингов (например, ВШЭ) ---------- */

/* ============================================================
   ЭРЫ КАРЬЕРЫ — цвет кодирует домен, а не украшает
   ============================================================ */
.tl-item[data-era="mining"]  { --era: var(--copper); --era-dim: var(--copper-dim); --era-soft: var(--copper-soft); }
.tl-item[data-era="comms"]   { --era: var(--slate);  --era-dim: var(--slate-dim);  --era-soft: var(--slate-soft); }
.tl-item[data-era="network"] { --era: var(--accent); --era-dim: var(--accent-dim); --era-soft: var(--accent-soft); }

.tl-item .tl-org { color: var(--era, var(--accent)); }
.tl-item .tl-dot { border-color: var(--era-dim, var(--accent-dim)); }
.tl-item.current .tl-dot {
  border-color: var(--era, var(--accent));
  box-shadow: 0 0 0 4px var(--era-soft, var(--accent-soft));
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--era-soft), 0 0 0 0 rgba(242,201,76,0.35); }
  50%      { box-shadow: 0 0 0 4px var(--era-soft), 0 0 0 9px rgba(242,201,76,0); }
}

/* Рельс таймлайна: медь внизу (прошлое) → зелёный вверху (настоящее) */
.timeline::before {
  background: linear-gradient(to bottom,
    var(--accent-dim) 0%,
    var(--slate-dim) 46%,
    var(--copper-dim) 82%,
    var(--border) 100%);
  opacity: 0.65;
}

/* Ярлык эры рядом с датой */
.tl-era {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--era, var(--accent));
  border: 1px solid var(--era-dim, var(--accent-dim));
  background: var(--era-soft, var(--accent-soft));
  padding: 3px 8px; border-radius: 3px;
}

/* ============================================================
   ФОТО В ТАЙМЛАЙНЕ — эстетичная раскладка вместо ряда квадратов
   ============================================================ */
.tl-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; max-width: 460px; }
@media (max-width: 560px) { .tl-media { grid-template-columns: 1fr; max-width: 320px; } }

.tl-media figure {
  margin: 0; position: relative; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface-2);
}
.tl-media figure img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
  transition: transform 0.55s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.82);
}
.tl-media figure:hover img { transform: scale(1.06); filter: saturate(1); }
.tl-media figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 12px 10px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.35;
  color: var(--text); letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(6,11,9,0.92) 55%);
  transform: translateY(4px); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.tl-media figure:hover figcaption,
.tl-media figure:focus-within figcaption { transform: translateY(0); opacity: 1; }

/* разные пропорции — снимок с объекта и документ читаются по-разному */
.tl-media figure.shot { aspect-ratio: 3/4; }
.tl-media figure.doc  { aspect-ratio: 3/4; }
.tl-media figure.doc img { object-position: center top; filter: saturate(0.7) brightness(1.04); }
.tl-media figure.wide { aspect-ratio: 4/3; grid-column: span 2; }
@media (max-width: 560px) { .tl-media figure.wide { grid-column: span 1; } }

/* тонкая рамка-акцент по эре */
.tl-media figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; border: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.tl-media figure:hover::after { border-color: var(--era-dim, var(--accent-dim)); }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
/* Каскадное появление: дочерние элементы выезжают по очереди */
.js .stagger > * { opacity: 0; transform: translateY(16px); }
.js .stagger.is-visible > * {
  animation: staggerIn 0.62s var(--ease) forwards;
}
.stagger.is-visible > *:nth-child(1) { animation-delay: 0.00s; }
.stagger.is-visible > *:nth-child(2) { animation-delay: 0.07s; }
.stagger.is-visible > *:nth-child(3) { animation-delay: 0.14s; }
.stagger.is-visible > *:nth-child(4) { animation-delay: 0.21s; }
.stagger.is-visible > *:nth-child(5) { animation-delay: 0.28s; }
.stagger.is-visible > *:nth-child(6) { animation-delay: 0.35s; }
@keyframes staggerIn { to { opacity: 1; transform: translateY(0); } }

/* Счётчик в hero */
.hero .stat b { font-variant-numeric: tabular-nums; }

/* Карточки проектов: подсветка следует за курсором */
.project-card { --mx: 50%; --my: 50%; }
.project-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(242,201,76,0.09), transparent 62%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.project-card:hover::before { opacity: 1; }
.project-card > * { position: relative; }

/* Подчёркивание в навигации, растущее от левого края */
nav.links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease);
}
nav.links a:hover::after { transform: scaleX(1); }

/* Тэги слегка приподнимаются */
.tag { transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.tag:hover { border-color: var(--accent-dim); color: var(--text); transform: translateY(-2px); }

/* Карточки навыков — свой цвет домена */
.skill-card[data-domain="net"]   { --dom: var(--accent); }
.skill-card[data-domain="sec"]   { --dom: var(--slate); }
.skill-card[data-domain="infra"] { --dom: var(--copper); }
.skill-card[data-domain="auto"]  { --dom: var(--amber); }
.skill-card .num { color: var(--dom, var(--copper)); }
.skill-card { position: relative; transition: background 0.3s var(--ease); }
.skill-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--dom, var(--accent)); transform: scaleY(0); transform-origin: top;
  transition: transform 0.42s var(--ease);
}
.skill-card:hover::before { transform: scaleY(1); }
.skill-card:hover { background: var(--surface-2); }/* Эмблема колледжа */

@keyframes emblemTurn { from { transform: rotate(-7deg) scale(0.97); } to { transform: rotate(0) scale(1); } }

/* Статусы проектов — по домену */
.status.mining { color: var(--copper); border-color: var(--copper-dim); background: var(--copper-soft); }
.status.study  { color: var(--slate);  border-color: var(--slate-dim);  background: var(--slate-soft); }/* Блок рейтингов ВШЭ — холодная сталь вместо зелёного */

/* Портрет: даём запас для параллакса */
.about-photo { overflow: hidden; }
.about-photo img { transform: scale(1.05); transition: transform 0.1s linear; will-change: transform; }

/* Ярлык эры — отдельной строкой под датой */
.tl-era { display: block; width: fit-content; margin-top: 10px; }

/* Карточка магистратуры: логотип вуза */
.edu-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: var(--slate-soft); position: relative;
}
.edu-logo img { width: 42%; max-width: 120px; border-radius: 50%; }
.edu-logo .in-progress {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.07em;
  color: var(--slate); display: flex; align-items: center; gap: 8px;
}
.edu-logo .in-progress::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate); animation: dotBlink 1.9s ease-in-out infinite;
}
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Логотип вписывается целиком, а не обрезается.
   height:auto обязателен — иначе height:100% из `.edu-card .thumb img`
   растягивает логотип на всю высоту плашки и он превращается в овал. */
/* Размер задаём от высоты плашки, а не фиксированным max-width:
   иначе на крупной плитке логотип остаётся маленьким пятном. */
.edu-card .thumb.edu-logo img {
  width: auto; height: 58%; max-width: 72%; aspect-ratio: 1;
  object-fit: contain; border-radius: 50%; cursor: default;
}
.edu-card .thumb.edu-logo:hover img { transform: none; }

/* ============================================================
   НАВЫКИ С УРОВНЕМ ВЛАДЕНИЯ И КОНТЕКСТОМ
   ============================================================ */
.skill-card .skill-list { margin-top: 16px; display: flex; flex-direction: column; }
.skill-row {
  display: grid; grid-template-columns: minmax(120px, 0.9fr) auto;
  gap: 8px 14px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--border);
}
.skill-row:first-child { border-top: none; }
.skill-row .sk-name { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); }
.skill-row .sk-level {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--dom, var(--accent)); white-space: nowrap;
}
.skill-row .sk-note {
  grid-column: 1 / -1; font-size: 13px; color: var(--text-faint); line-height: 1.45; margin-top: -2px;
}/* полоска уровня */

/* ============================================================
   ГЛОССАРИЙ — пояснения к терминам прямо в тексте
   ============================================================ */
.term {
  border-bottom: 1px dashed var(--accent-dim); cursor: help;
  color: var(--text); position: relative; white-space: nowrap;
}
.term:hover, .term:focus-visible, .term.is-open { color: var(--accent); }
.term .term-card {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translate(-50%, 6px); width: min(320px, 78vw);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 14px 16px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,0.7);
  opacity: 0; pointer-events: none; z-index: 40;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  white-space: normal; text-align: left;
}
.term:hover .term-card,
.term:focus-visible .term-card,
.term.is-open .term-card { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.term .term-card b {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.term .term-card span { display: block; font-size: 13px; line-height: 1.55; color: var(--text-dim); font-weight: 400; }
.term .term-card::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--border-strong);
}
@media (max-width: 620px) { .term .term-card { width: min(280px, 84vw); } }/* ============================================================
   БЛАГОДАРНОСТИ — лента отзывов с прокруткой
   ============================================================ */

/* ============================================================
   НОРМАТИВНАЯ БАЗА — раскрывающийся справочник
   ============================================================ */
.law-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-top: 22px; }
.law-item { border-top: 1px solid var(--border); }
.law-item:first-child { border-top: none; }
.law-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); transition: background 0.2s var(--ease);
}
.law-item summary::-webkit-details-marker { display: none; }
.law-item summary:hover { background: var(--surface-2); }
.law-item .law-code {
  font-family: var(--font-mono); font-size: 12px; color: var(--slate);
  border: 1px solid var(--slate-dim); background: var(--slate-soft);
  padding: 4px 9px; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}
.law-item .law-title { font-size: 14.5px; color: var(--text); flex: 1; }
.law-item .law-plus { color: var(--text-faint); font-family: var(--font-mono); transition: transform 0.25s var(--ease); }
.law-item[open] .law-plus { transform: rotate(45deg); color: var(--slate); }
.law-item .law-body { padding: 0 20px 18px 20px; background: var(--surface); color: var(--text-dim); font-size: 14px; line-height: 1.6; }
@media (max-width: 620px) {
  .law-item summary { flex-wrap: wrap; padding: 14px 16px; }
  .law-item .law-title { flex-basis: 100%; }
}

/* ---------- Scale / масштаб инфраструктуры ---------- */
.scale-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
@media (max-width: 900px) { .scale-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .scale-grid { grid-template-columns: 1fr; } }
.scale-item {
  background: var(--surface); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background-color 0.25s var(--ease);
}
.scale-item:hover { background: var(--surface-2); }
.scale-item b {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text);
}
.scale-item span { font-size: 14px; color: var(--text-dim); line-height: 1.45; }
.scale-item.accent b { color: var(--accent); }

/* ---------- Кейс: развёрнутая карточка проекта ---------- */
.case {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden; margin-bottom: 24px;
}
.case-head { padding: 30px 32px 0; }
.case-head h3 { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.02em; margin: 14px 0 0; }
.case-head .case-lede { margin-top: 10px; color: var(--text-dim); font-size: 16px; max-width: 68ch; }
.case-body {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); margin: 28px 0 0; border-top: 1px solid var(--border);
}
@media (max-width: 760px) { .case-body { grid-template-columns: 1fr; } }
.case-block { background: var(--surface); padding: 22px 32px 24px; }
/* Нечётный последний блок растягивается на всю ширину — без карточек-сирот */
.case-block:last-child:nth-child(odd) { grid-column: 1 / -1; }
.case-block .case-k {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-dim); margin-bottom: 8px;
}
.case-block p { color: var(--text-dim); font-size: 15px; line-height: 1.62; margin: 0; }
.case-foot {
  padding: 22px 32px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.case-foot .tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 620px) {
  .case-head { padding: 24px 20px 0; }
  .case-block { padding: 20px; }
  .case-foot { padding: 20px; }
}
.sub-head {
  font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em;
  margin: 52px 0 22px; color: var(--text-dim);
}

/* ---------- Жизненный цикл ---------- */
.lifecycle {
  list-style: none; padding: 0; margin: 0; counter-reset: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
@media (max-width: 1000px) { .lifecycle { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .lifecycle { grid-template-columns: 1fr; } }
.lifecycle li {
  background: var(--surface); padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 2px solid transparent; transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lifecycle li:hover { background: var(--surface-2); border-top-color: var(--accent); }
.lifecycle .lc-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-dim); }
.lifecycle b { font-size: 15.5px; color: var(--text); font-weight: 600; }
.lifecycle li > span:last-child { font-size: 13.5px; color: var(--text-faint); line-height: 1.5; }

/* ---------- Принципы ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 5 принципов в 3 колонки дали бы пустую ячейку — первый (ключевой) занимает две. */
@media (min-width: 901px) { .principle:first-child { grid-column: span 2; } }
@media (max-width: 900px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .principles-grid { grid-template-columns: 1fr; } }
.principle {
  border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); padding: 24px 26px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.principle:hover { border-color: var(--accent-dim); background: var(--surface-2); }
.principle b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; margin-bottom: 10px; }
.principle p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.62; }

/* ---------- Кредо ---------- */
.creed {
  margin: 26px 0 0; padding: 18px 0 18px 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.45; letter-spacing: -0.01em; color: var(--text);
}

/* ---------- Минимальные touch-targets (замена JS-костыля) ----------
   Только min-height: display не трогаем, иначе перекрывается
   скрытие/показ элементов в медиазапросах. */
@media (pointer: coarse) {
  header.site nav.links a, .mobile-menu a, .contact-links a, .btn, .brand {
    min-height: 44px; align-items: center;
  }
}

/* ---------- Заголовок только для скринридеров ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Навыки: единая шкала вместо ~23 разных формулировок ---------- */
.skill-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -22px 0 32px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
}
.skill-legend b { color: var(--text-dim); font-weight: 500; }

/* Уровень читается цветом и словом одновременно, не только цветом */
.sk-level[data-lvl="build"] { color: var(--accent); }
.sk-level[data-lvl="run"]   { color: var(--slate); }
.sk-level[data-lvl="integrate"] { color: var(--copper); }
.sk-level[data-lvl="learn"] { color: var(--text-faint); }

/* Остальные строки — под раскрытием, чтобы карточка не была стеной */
.skill-more { margin-top: 2px; }
/* .skill-row задаёт display:grid и по специфичности перебивает браузерное
   скрытие содержимого закрытого <details> — прячем явно. */
.skill-more:not([open]) > .skill-row { display: none; }
.skill-more > summary {
  list-style: none; cursor: pointer; padding: 9px 0 0;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
  border-top: 1px solid var(--border); transition: color 0.15s var(--ease);
}
.skill-more > summary::-webkit-details-marker { display: none; }
.skill-more > summary:hover { color: var(--accent); }
.skill-more > summary::after { content: ' ↓'; }
.skill-more[open] > summary::after { content: ' ↑'; }
.skill-more[open] > summary { color: var(--text-dim); }

/* ---------- Визуальный вес: кейсы важнее принципов ---------- */
#cases .section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
#principles .section-head h2,
#legal .section-head h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* Без JS и при reduced-motion контент виден всегда, без анимации появления. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ: компактнее и без терминала
   ============================================================ */
@media (max-width: 860px) {
  /* Терминал — десктопный элемент: на телефоне занимает экран,
     а ввод команд с экранной клавиатуры смысла не имеет. */
  .terminal { display: none; }

  /* Вертикальный ритм плотнее */
  section { padding-block: 44px; }
  .hero { padding-top: 32px; padding-bottom: 28px; }
  .section-head { margin-bottom: 26px; }
  .section-head .lede { margin-top: 10px; font-size: 15px; }

  /* Hero */
  .hero .role { margin-top: 14px; font-size: 15px; }
  /* Три метрики в один ряд: иначе третья висит сиротой на второй строке. */
  .hero .stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px; margin-top: 22px; }
  .hero .stat b { font-size: 22px; }
  .hero .stat span { font-size: 11px; letter-spacing: 0.04em; }
  .hero .cta-row { margin-top: 24px; }
  .hero h1 .line2 { margin-top: 10px; max-width: none; }

  /* О себе */
  .about-grid { gap: 26px; }
  .about-text p { font-size: 15.5px; margin-bottom: 12px; }
  .about-facts { margin-top: 20px; gap: 10px; }
  .creed { margin-top: 20px; padding-block: 12px; }

  /* Карточки: меньше внутренних полей */
  .skill-card { padding: 20px; }
  .scale-item { padding: 20px 18px; }
  .lifecycle li { padding: 16px 16px 18px; }
  .principle { padding: 18px 20px; }
  .case-head { padding: 22px 18px 0; }
  .case-block { padding: 18px; }
  .case-foot { padding: 18px; }
  .case-body { margin-top: 20px; }
  .case { margin-bottom: 16px; }
  .sub-head { margin: 34px 0 16px; }
  .project-card { padding: 20px; }
  .edu-card .body { padding: 16px 18px; }

  /* Опыт: компактнее блоки и миниатюры */
  .tl-item { padding-bottom: 26px; }
  .tl-desc { font-size: 14.5px; margin-top: 8px; }
  .tl-desc ul { margin-top: 6px; }
  .tl-desc li { margin-bottom: 3px; }
  .tl-media { margin-top: 14px; gap: 10px; }

  /* Навыки: 31 строка — основной источник прокрутки */
  .skill-row { padding: 8px 0; gap: 3px; grid-template-columns: 1fr; }
  .skill-row .sk-level { white-space: normal; }
  .skill-row .sk-note { font-size: 12px; line-height: 1.35; }

  /* Кейсы: плотнее текст описаний */
  .case-block { padding: 15px 18px 16px; }
  .case-block .case-k { margin-bottom: 5px; }
  .case-block p { font-size: 14.5px; line-height: 1.5; }
  .case-head .case-lede { font-size: 15px; margin-top: 8px; }
  .case-head h3 { font-size: 20px; }

  /* Образование: горизонтальная карточка вместо большой обложки сверху */
  .edu-card { flex-direction: row; align-items: stretch; }
  .edu-card .thumb { flex: 0 0 104px; aspect-ratio: auto; }
  .edu-card .body { padding: 14px 16px; }
  .edu-card h3, .edu-card h4 { font-size: 15px; margin-top: 6px; }
  .edu-card .org { font-size: 13px; margin-top: 4px; }
  .edu-grid { gap: 12px; }
  /* Бейдж не помещается на узкой миниатюре и дублирует строку статуса справа. */
  .edu-logo .in-progress { display: none; }
  .edu-card .thumb img { object-position: center top; }
  /* Диплом — альбомный документ в узкой вертикальной плашке. По центру
     оказывается пустой промежуток между колонками, поэтому кадрируем
     к левой части, где надпись «ДИПЛОМ БАКАЛАВРА». */
  .edu-card .thumb.thumb-left img { object-position: 18% center; }
  /* Горизонтальная карточка: плашка узкая, размер логотипа ведём от ширины */
  .edu-card .thumb.edu-logo img { height: auto; width: 66%; max-width: none; }
}

/* Сетки: не разваливать в одну колонку раньше времени —
   одноколоночные списки из 8–10 плиток дают лишние экраны прокрутки. */
@media (max-width: 480px) {
  .scale-grid { grid-template-columns: repeat(2, 1fr); }
  .scale-item b { font-size: 22px; }
  .scale-item span { font-size: 12.5px; }
}
@media (max-width: 440px) {
  .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .lifecycle b { font-size: 14.5px; }
  .lifecycle li > span:last-child { font-size: 12.5px; }
}
