/* ═══════════════════════════════════════════════════════════
   Палитра проекта (не зависит от темы)
   ═══════════════════════════════════════════════════════════ */
:root {
  --blue:      #274DEA;
  --blue-soft: #8EB9FC;
  --mint:      #EBFFDC;
  --sun:       #FFF197;
  --coral:     #FF513D;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --shell: 1160px;
}

/* ── светлая тема ─────────────────────────────────────────── */
:root,
:root[data-theme='light'] {
  color-scheme: light;

  --paper:   #EDEFF6;   /* фон страницы */
  --paper-2: #F8F9FC;   /* карточки */
  --paper-3: #E4E8F4;   /* чипы */
  --line:    #DBE0EF;

  --ink:   #0C1330;
  --ink-2: #4A5372;
  --ink-3: #7C85A6;

  --panel:     #0C1330; /* тёмные блоки: бегущая строка, контакты */
  --panel-ink: #F6F7FB;

  --nav-bg:       rgba(237, 239, 246, .76);
  --nav-bg-stuck: rgba(237, 239, 246, .94);

  --ico-solid-bg: #0C1330;
  --ico-blue-bg:  rgba(39, 77, 234, .1);
  --ico-blue-fg:  #274DEA;
  --tag-blue-bg:  rgba(39, 77, 234, .1);
  --tag-blue-fg:  #274DEA;
  --tag-coral-bg: rgba(255, 81, 61, .12);
  --tag-coral-fg: #C42D1B;

  --cert-bg: linear-gradient(160deg, #EBFFDC, #F8F9FC 62%);
  --glow-1:  rgba(142, 185, 252, .5);

  --shadow-s: 0 2px 8px rgba(12, 19, 48, .05);
  --shadow-m: 0 14px 40px -18px rgba(12, 19, 48, .26);
  --shadow-l: 0 10px 26px -10px rgba(39, 77, 234, .45);
}

/* ── тёмная тема ──────────────────────────────────────────── */
:root[data-theme='dark'] {
  color-scheme: dark;

  --paper:   #090D1E;
  --paper-2: #121834;
  --paper-3: #1C2347;
  --line:    #262E56;

  --ink:   #E9ECF8;
  --ink-2: #A3ACCC;
  --ink-3: #79819F;

  --panel:     #131A38;
  --panel-ink: #E9ECF8;

  --nav-bg:       rgba(9, 13, 30, .74);
  --nav-bg-stuck: rgba(9, 13, 30, .93);

  --ico-solid-bg: #274DEA;
  --ico-blue-bg:  rgba(142, 185, 252, .14);
  --ico-blue-fg:  #8EB9FC;
  --tag-blue-bg:  rgba(142, 185, 252, .14);
  --tag-blue-fg:  #8EB9FC;
  --tag-coral-bg: rgba(255, 81, 61, .16);
  --tag-coral-fg: #FF8C7D;

  --cert-bg: linear-gradient(160deg, rgba(235, 255, 220, .1), #121834 62%);
  --glow-1:  rgba(39, 77, 234, .38);

  --shadow-s: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-m: 0 18px 44px -20px rgba(0, 0, 0, .75);
  --shadow-l: 0 10px 28px -10px rgba(39, 77, 234, .6);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* декоративное свечение в hero вылезает за правый край —
   обрезаем через clip, он не ломает position: sticky у шапки */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 26px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 24px; height: 24px; }
.ic-sm { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════════════════════
   Шапка
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.stuck { border-bottom-color: var(--line); background: var(--nav-bg-stuck); }

.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue); color: var(--mint);
  font-size: 1.15rem; font-weight: 800; line-height: 1;
}
.brand-name { font-weight: 750; font-size: 1.02rem; letter-spacing: -.025em; }

.nav-menu { display: flex; gap: 6px; }
.nav-menu a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: .93rem; font-weight: 550; color: var(--ink-2);
  transition: color .2s ease, background .2s ease;
}
.nav-menu a:hover { color: var(--ink); background: var(--paper-3); }
.nav-menu a.active { color: var(--ico-blue-fg); background: var(--ico-blue-bg); }

/* переключатель темы */
.theme-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--paper-2); border: 1.5px solid var(--line); color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-btn:hover { border-color: var(--blue-soft); transform: translateY(-1px); }
.theme-btn .ic { grid-area: 1 / 1; transition: opacity .25s ease, transform .35s ease; }
:root[data-theme='light'] .ic-sun  { opacity: 0; transform: rotate(-70deg) scale(.6); }
:root[data-theme='light'] .ic-moon { opacity: 1; transform: none; }
:root[data-theme='dark']  .ic-sun  { opacity: 1; transform: none; }
:root[data-theme='dark']  .ic-moon { opacity: 0; transform: rotate(70deg) scale(.6); }

@media (max-width: 900px) { .nav-menu { display: none; } .brand-name { display: none; } }

/* ═══════════════════════════════════════════════════════════
   Кнопки
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 650; font-size: .96rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s cubic-bezier(.3,.8,.4,1), box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn .ic { transition: transform .25s cubic-bezier(.3,.8,.4,1); }
.btn:hover .ic { transform: translateX(4px); }

.btn-brand { background: var(--blue); color: #fff; box-shadow: var(--shadow-l); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -20px rgba(39, 77, 234, .6); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: var(--paper-2); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: .89rem; }
.btn-sm .ic { width: 17px; height: 17px; }

/* ═══════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px;
  align-items: center;
  padding-block: 84px 78px;
}
.hero::before {
  content: ''; position: absolute; z-index: -1;
  width: 620px; height: 620px; border-radius: 50%;
  top: -220px; right: -180px;
  background: radial-gradient(circle, var(--glow-1), transparent 68%);
  pointer-events: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--mint); border: 1px solid #CDEBB7;
  font-size: .84rem; font-weight: 650; color: #2E6B1E;
  margin-bottom: 26px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #45B02A; flex: none;
  box-shadow: 0 0 0 0 rgba(69,176,42,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(69,176,42,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(69,176,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(69,176,42,0); }
}

.title { font-size: clamp(2.5rem, 5.3vw, 4.15rem); font-weight: 850; letter-spacing: -.045em; }
.title em {
  font-style: normal; position: relative; color: var(--ico-blue-fg); z-index: 0;
  padding-inline: 2px;
}
.title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.02em; height: .075em;
  background: var(--coral); border-radius: 999px; z-index: -1;
}

.lede { margin-top: 26px; max-width: 50ch; font-size: 1.06rem; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 700; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

/* бенто */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-l); padding: 24px 22px 26px;
  min-height: 158px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  transition: transform .3s cubic-bezier(.3,.8,.4,1), box-shadow .3s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }

.tile-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .62; }
.tile-v { font-size: 1.12rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.25; }
.tile-note { font-size: .8rem; opacity: .66; margin-top: 4px; line-height: 1.4; }
.tile-ic { position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; opacity: .3; }

.tile-blue { background: var(--blue); color: #fff; grid-row: span 2; justify-content: space-between; }
.tile-blue .tile-k { opacity: .7; }
.tile-blue .tile-v { font-size: 1.42rem; }
.tile-blue .tile-ic { opacity: .5; top: auto; bottom: 26px; right: 22px; width: 34px; height: 34px; }

.tile-mint { background: var(--mint); color: #0C1330; }
.tile-sun  { background: var(--sun);  color: #0C1330; }

.tile-plain {
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  grid-column: 1 / -1; min-height: 0; padding: 20px 22px;
}
.tile-plain .tile-ic { top: 50%; transform: translateY(-50%); opacity: 1; color: var(--coral); }
.tile-plain .tile-note { max-width: 30ch; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 60px; }
  .title br { display: none; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile-blue { grid-row: auto; min-height: 140px; }
}

/* ═══════════════════════════════════════════════════════════
   Бегущая строка
   ═══════════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden; background: var(--panel); color: var(--panel-ink);
  padding-block: 17px; user-select: none;
}
.marquee-row {
  display: flex; align-items: center; gap: 30px; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.marquee-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════
   Каркас секции
   ═══════════════════════════════════════════════════════════ */
.sec { padding-block: 96px; }

.sec-head { max-width: 620px; margin-bottom: 46px; }
.sec-num {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  color: var(--coral); margin-bottom: 12px;
}
.sec-num.light { color: var(--sun); }
.sec-title { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.sec-lede { margin-top: 15px; color: var(--ink-2); font-size: 1.02rem; }

/* ═══════════════════════════════════════════════════════════
   О себе
   ═══════════════════════════════════════════════════════════ */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 54px; align-items: start; }
.about-main { display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.big-text {
  font-size: 1.32rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.45;
}

/* дипломная работа */
.diploma {
  position: relative; overflow: hidden;
  margin-block: 6px;
  padding: 26px 28px 24px;
  border-radius: var(--r-l);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.3,.8,.4,1);
}
.diploma::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--coral), var(--blue));
}
.diploma:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-m); transform: translateY(-3px); }

.diploma-tag {
  display: inline-block; margin-bottom: 10px;
  padding: 5px 12px; border-radius: 8px;
  background: var(--tag-coral-bg); color: var(--tag-coral-fg);
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.diploma h3 { font-size: 1.24rem; margin-bottom: 10px; color: var(--ink); }
.diploma p { color: var(--ink-2); font-size: .96rem; }

.diploma-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: .89rem; font-weight: 650; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.diploma-link:hover { background: #1C3BC0; transform: translateY(-1px); }

.about-side { display: flex; flex-direction: column; gap: 12px; }
.fact {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: var(--r-m);
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform .25s ease, border-color .25s ease;
}
.fact:hover { transform: translateX(4px); border-color: var(--blue-soft); }
.fact .ic { grid-row: span 2; color: var(--ico-blue-fg); }
.fact b { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.fact span { font-size: .86rem; color: var(--ink-3); }

@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 34px; } }

/* ═══════════════════════════════════════════════════════════
   Стек
   ═══════════════════════════════════════════════════════════ */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.stack-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 28px 26px 26px;
  box-shadow: var(--shadow-s);
  transition: transform .3s cubic-bezier(.3,.8,.4,1), box-shadow .3s ease, border-color .3s ease;
}
.stack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--blue-soft); }

.stack-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.stack-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.ico-blue  { background: var(--ico-blue-bg);     color: var(--ico-blue-fg); }
.ico-coral { background: var(--tag-coral-bg);    color: var(--tag-coral-fg); }
.ico-mint  { background: var(--mint);            color: #3E7B29; }
.stack-card h3 { font-size: 1.16rem; }
.stack-card > p { color: var(--ink-2); font-size: .95rem; margin-bottom: 20px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 9px;
  background: var(--paper-3); border: 1px solid var(--line);
  font-size: .845rem; font-weight: 600; color: var(--ink-2);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chips li:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 940px) { .stack { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   Карусель проектов
   ═══════════════════════════════════════════════════════════ */
.sec-projects { overflow: hidden; }

.sec-head-wide { max-width: none; position: relative; padding-right: 130px; }
.sec-head-wide .sec-lede { max-width: 58ch; }

.pr-nav { position: absolute; right: 0; bottom: 4px; display: flex; gap: 9px; }
.pr-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--paper-2); border: 1.5px solid var(--line); color: var(--ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.pr-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.pr-btn:disabled { opacity: .35; cursor: default; }

.pr-viewport { margin-top: 6px; }

.pr-track {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 26px 30px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
}
.pr-track::-webkit-scrollbar { display: none; }
.pr-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.pr-track a { -webkit-user-drag: none; }

.pr {
  scroll-snap-align: start;
  flex: 0 0 336px;
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .3s cubic-bezier(.3,.8,.4,1), box-shadow .3s ease, border-color .3s ease;
}
.pr:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--blue-soft); }

/* обложка */
.pr-cover {
  position: relative; display: block; height: 168px;
  text-decoration: none; overflow: hidden;
  padding: 13px;
}
.cov-1 { background: linear-gradient(140deg, #274DEA, #8EB9FC); }
.cov-2 { background: linear-gradient(140deg, #0C1330, #274DEA); }
.cov-3 { background: linear-gradient(140deg, #FF513D, #FFF197); }
.cov-4 { background: linear-gradient(140deg, #8EB9FC, #EBFFDC); }
.cov-5 { background: linear-gradient(140deg, #FFF197, #8EB9FC); }
.cov-etherra { background: linear-gradient(140deg, #0C1330 10%, #274DEA 60%, #FF513D 140%); }

/* дипломная работа — выделяем карточку */
.pr-flag { border-color: var(--blue-soft); box-shadow: var(--shadow-m); }
.pr-badge {
  position: absolute; right: 13px; bottom: 13px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  background: var(--coral); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.pr-chrome {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.85); border-radius: 8px;
  padding: 6px 10px; backdrop-filter: blur(6px);
}
.pr-chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgba(12,19,48,.22); flex: none; }
.pr-chrome i:first-child { background: var(--coral); }
.pr-chrome b {
  margin-left: 6px; font-size: .68rem; font-weight: 600; color: #4A5372;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pr-glyph {
  position: absolute; right: 14px; bottom: -26px; z-index: 1;
  font-size: 7.4rem; font-weight: 900; line-height: 1; letter-spacing: -.06em;
  color: rgba(255,255,255,.34);
  transition: transform .45s cubic-bezier(.3,.8,.4,1);
  pointer-events: none;
}
.cov-3 .pr-glyph, .cov-4 .pr-glyph, .cov-5 .pr-glyph { color: rgba(12,19,48,.16); }
.pr:hover .pr-glyph { transform: translateY(-6px) scale(1.06); }

.pr-live {
  position: absolute; left: 13px; bottom: 13px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(12,19,48,.72); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pr-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }

.pr-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pr-body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.pr-body > p { color: var(--ink-2); font-size: .91rem; line-height: 1.55; }

.chips.sm { margin-top: 14px; }
.chips.sm li { padding: 5px 10px; font-size: .78rem; border-radius: 7px; }

.pr-links { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.pr-links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  font-size: .86rem; font-weight: 650; text-decoration: none;
  background: var(--blue); color: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pr-links a:hover { background: #1C3BC0; }
.pr-links a.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.pr-links a.ghost:hover { border-color: var(--ink); background: var(--paper); }

/* карточка «все проекты» */
.pr-all { background: var(--panel); border-color: var(--line); }
.pr-all > a {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px 24px 24px; text-decoration: none; color: var(--panel-ink);
}
.pr-all-ico {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--sun);
}
.pr-all h3 { font-size: 1.5rem; margin-bottom: 10px; }
.pr-all p { color: rgba(233,236,248,.6); font-size: .9rem; }
.pr-all-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  font-weight: 650; font-size: .9rem; color: var(--sun);
}
.pr-all-link .ic { transition: transform .25s ease; }
.pr-all:hover .pr-all-link .ic { transform: translateX(4px); }

/* прогресс */
.pr-progress { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pr-progress span {
  display: block; height: 100%; width: 22%; border-radius: 999px;
  background: var(--blue); transition: transform .15s linear;
  transform-origin: left;
}

@media (max-width: 560px) {
  .pr { flex: 0 0 84vw; }
  .sec-head-wide { padding-right: 0; }
  .pr-nav { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Практика
   ═══════════════════════════════════════════════════════════ */
.jobs { display: flex; flex-direction: column; gap: 18px; }

.job {
  display: grid; grid-template-columns: 210px 1fr; gap: 34px;
  padding: 32px 34px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--shadow-s);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.job:hover { box-shadow: var(--shadow-m); border-color: var(--blue-soft); }

.job-side { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.job-when { font-size: .88rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.job-tag { padding: 5px 12px; border-radius: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.tag-coral { background: var(--tag-coral-bg); color: var(--tag-coral-fg); }
.tag-blue  { background: var(--tag-blue-bg);  color: var(--tag-blue-fg); }

.job-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.job-sum { color: var(--ink-2); font-size: 1rem; }

.job-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.job-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .95rem; }
.job-list li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--blue-soft);
}

@media (max-width: 820px) {
  .job { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .job-side { flex-direction: row; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════
   Образование
   ═══════════════════════════════════════════════════════════ */
.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.edu-card {
  position: relative; padding: 28px 26px 26px; border-radius: var(--r-l);
  background: var(--paper-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform .3s cubic-bezier(.3,.8,.4,1), box-shadow .3s ease;
}
.edu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.edu-card.edu-cert { background: var(--cert-bg); }

.edu-ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--ico-solid-bg); color: var(--sun);
}
.edu-cert .edu-ico { background: var(--coral); color: #fff; }

.edu-year {
  display: block; font-size: .77rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.edu-card h3 { font-size: 1.2rem; margin-bottom: 7px; }
.edu-place { font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.edu-note { font-size: .92rem; color: var(--ink-3); margin-top: 3px; }

@media (max-width: 780px) { .edu { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   Контакты
   ═══════════════════════════════════════════════════════════ */
.contact { padding-bottom: 108px; }

.contact-box {
  position: relative; overflow: hidden;
  background: var(--panel); color: var(--panel-ink);
  border: 1px solid var(--line);
  border-radius: 36px; padding: 62px 56px 56px;
}
.contact-box::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  top: -260px; left: -140px;
  background: radial-gradient(circle, rgba(39,77,234,.55), transparent 66%);
}
.contact-box::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  bottom: -220px; right: -110px;
  background: radial-gradient(circle, rgba(255,81,61,.35), transparent 68%);
}

.contact-head { position: relative; max-width: 560px; margin-bottom: 42px; }
.contact-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
.contact-head p { margin-top: 16px; color: rgba(233,236,248,.66); font-size: 1.02rem; }

.contact-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.cc {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  column-gap: 16px; align-items: center; justify-items: start;
  padding: 22px 24px; border-radius: var(--r-m);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  text-decoration: none; color: var(--panel-ink);
  transition: background .25s ease, border-color .25s ease, transform .25s cubic-bezier(.3,.8,.4,1);
}
.cc:hover { background: rgba(255,255,255,.1); border-color: var(--blue-soft); transform: translateY(-3px); }

.cc-ico {
  grid-column: 1; grid-row: 1 / 3;
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: #0C1330;
  transition: background .25s ease;
}
.cc:hover .cc-ico { background: var(--sun); }

/* подтверждение копирования */
.cc.copied { border-color: #4ADE80; }
.cc.copied .cc-ico { background: #4ADE80; }
.cc.copied .cc-k { color: #4ADE80; }

.cc-k {
  grid-column: 2; grid-row: 1; font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(233,236,248,.5);
}
.cc-v {
  grid-column: 2; grid-row: 2; font-size: 1.02rem; font-weight: 650;
  letter-spacing: -.015em; word-break: break-word;
}
.cc-arrow {
  grid-column: 3; grid-row: 1 / 3; width: 20px; height: 20px;
  color: rgba(233,236,248,.35);
  transition: transform .25s cubic-bezier(.3,.8,.4,1), color .25s ease;
}
.cc:hover .cc-arrow { transform: translateX(4px); color: var(--sun); }

@media (max-width: 760px) {
  .contact-box { padding: 44px 26px 40px; border-radius: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Подвал
   ═══════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-size: .88rem; color: var(--ink-3);
}
.to-top {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; font-weight: 650; color: var(--ink);
}
.to-top .ic { width: 17px; height: 17px; transform: rotate(-90deg); transition: transform .25s ease; }
.to-top:hover .ic { transform: rotate(-90deg) translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   Появление при скролле
   ═══════════════════════════════════════════════════════════ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.25,.8,.35,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pr-track { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee-row { animation: none; }
  .pulse { animation: none; }
}
