:root {
  --bg: #06070b;
  --bg-2: #0a0d13;
  --surface: #0f131b;
  --surface-2: #151a24;
  --text: #f2f6fb;
  --muted: #93a0b4;
  --muted-2: #6f7d90;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #5fe3c6;
  --accent-2: #7aa2ff;
  --accent-ink: #04231d;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --radius: 24px;
  --header-bg: rgba(6, 7, 11, 0.72);
  --glow-a: rgba(95, 227, 198, 0.16);
  --glow-b: rgba(122, 162, 255, 0.13);
  --grid: rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] {
  --bg: #f8f9fd;
  --bg-2: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f4f8fe;
  --text: #0d1726;
  --muted: #5a6779;
  --muted-2: #66717f;
  --line: rgba(13, 23, 38, 0.08);
  --line-strong: rgba(13, 23, 38, 0.14);
  --accent: #0b7d6e;
  --accent-2: #2f6fe4;
  --accent-ink: #ffffff;
  --shadow: 0 24px 60px -44px rgba(13, 35, 70, 0.4);
  --header-bg: rgba(248, 249, 253, 0.82);
  --glow-a: rgba(15, 157, 138, 0.12);
  --glow-b: rgba(47, 111, 228, 0.09);
  --grid: rgba(13, 23, 38, 0.035);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus { top: 16px; }

/* ---------- фон ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

.glow {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  filter: blur(90px);
}
.glow-a { top: -320px; left: -220px; background: var(--glow-a); }
.glow-b { top: 180px; right: -320px; background: var(--glow-b); }

/* ---------- общее ---------- */

.container {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px -14px rgba(95, 227, 198, 0.7);
}

.logo-text { font-size: 15px; }
.logo-text span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 19px; height: 19px; }

.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 16px 34px -20px rgba(95, 227, 198, 0.8);
}
.btn-primary:hover { box-shadow: 0 20px 42px -18px rgba(95, 227, 198, 0.95); }

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-sm { padding: 10px 16px; font-size: 13.5px; border-radius: 12px; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn-mail { padding: 0; border-radius: 16px; display: inline-grid; place-items: center; }
.btn-mail svg { width: 21px; height: 21px; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, top 0.2s ease;
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  padding: 150px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(95, 227, 198, 0.16);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 760;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 50%, var(--accent) 90%);
  background-size: 220% 100%;
  animation: gradShift 9s ease-in-out infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { font-size: 1.45rem; letter-spacing: -0.03em; }
.hero-meta span { font-size: 12.5px; color: var(--muted); }

/* мокап расписания */

.hero-visual { position: relative; min-height: 360px; }

.mock {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  margin-left: auto;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(122, 162, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  transform: rotate(2.4deg);
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mock-dots i:first-child { background: var(--accent); }

.mock-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mock-row.is-muted { opacity: 0.45; }
.mock-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mock-subject { font-size: 14px; font-weight: 600; }
.mock-badge {
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(95, 227, 198, 0.14);
  border: 1px solid rgba(95, 227, 198, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.mock-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 15px;
  font-size: 12px;
  color: var(--muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.float-card {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-a { top: 12px; left: 8px; color: var(--accent); transform: rotate(-5deg); }
.float-b { bottom: 26px; right: -6px; color: var(--accent-2); transform: rotate(4deg); animation-delay: -3s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stack span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}

/* ---------- секции ---------- */

.section { padding: 92px 0; scroll-margin-top: 90px; }

.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 730;
}
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1rem; }

/* ---------- проекты ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 227, 198, 0.35);
  box-shadow: 0 30px 70px -44px rgba(95, 227, 198, 0.5);
}

.project-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.project-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.project-top { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-accent { color: var(--accent); border-color: rgba(95, 227, 198, 0.3); background: rgba(95, 227, 198, 0.1); }
.tag-blue { color: var(--accent-2); border-color: rgba(122, 162, 255, 0.3); background: rgba(122, 162, 255, 0.1); }
.tag-violet { color: #b79cff; border-color: rgba(183, 156, 255, 0.3); background: rgba(183, 156, 255, 0.1); }

.project h3 { font-size: 1.4rem; letter-spacing: -0.025em; font-weight: 680; }
.project p { color: var(--muted); font-size: 0.95rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  width: fit-content;
}
.link-arrow span { transition: transform 0.18s ease; }
.link-arrow:hover span { transform: translateX(4px); }

.project-art { position: relative; min-height: 220px; display: grid; place-items: center; }
.art-schedule {
  background:
    radial-gradient(90% 90% at 80% 20%, rgba(122, 162, 255, 0.28), transparent 60%),
    linear-gradient(150deg, rgba(95, 227, 198, 0.22), rgba(95, 227, 198, 0.02));
  border-left: 1px solid var(--line);
}
.art-card {
  width: min(76%, 270px);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(8px);
  transform: rotate(-2.5deg);
}
.art-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #dfe9f4;
}
.art-line:last-child { border-bottom: 0; }
.art-line span { font-weight: 700; font-variant-numeric: tabular-nums; }
.art-line b { flex: 1; font-weight: 600; }
.art-line i {
  font-style: normal;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(95, 227, 198, 0.16);
  color: #8bf3dc;
  font-size: 10.5px;
  font-weight: 700;
}
.art-line.is-soft { opacity: 0.5; }

.art-trainer {
  background: radial-gradient(80% 80% at 50% 30%, rgba(122, 162, 255, 0.25), transparent 65%);
  border-top: 1px solid var(--line);
}
.art-trainer span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 1px solid rgba(122, 162, 255, 0.35);
  background: rgba(122, 162, 255, 0.12);
  color: var(--accent-2);
  font-size: 34px;
  font-weight: 800;
}

.art-docs {
  background: radial-gradient(80% 80% at 50% 30%, rgba(183, 156, 255, 0.22), transparent 65%);
  border-top: 1px solid var(--line);
}
.art-docs span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 104px;
  border-radius: 14px;
  border: 1px solid rgba(183, 156, 255, 0.35);
  background: rgba(183, 156, 255, 0.1);
  color: #c9b4ff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- обо мне ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo { position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(95, 227, 198, 0.25), rgba(122, 162, 255, 0.15));
  filter: blur(22px);
  z-index: 0;
}
.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.about-badge {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: -14px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  box-shadow: var(--shadow);
}

.about-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.about-copy p { margin-top: 16px; color: var(--muted); }
.about-copy p + p { margin-top: 12px; }

.facts { margin-top: 24px; display: grid; gap: 9px; }
.facts li { display: flex; gap: 12px; font-size: 0.95rem; }
.facts span {
  flex: 0 0 74px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.chips span {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}

/* ---------- услуги ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-3px); border-color: rgba(95, 227, 198, 0.3); }
.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(95, 227, 198, 0.22);
  background: rgba(95, 227, 198, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 650; }
.service p { margin-top: 9px; color: var(--muted); font-size: 0.93rem; }

/* ---------- контакты ---------- */

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 48px;
  border-radius: 30px;
  border: 1px solid rgba(95, 227, 198, 0.25);
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(122, 162, 255, 0.16), transparent 55%),
    linear-gradient(150deg, rgba(95, 227, 198, 0.12), rgba(95, 227, 198, 0.02));
  box-shadow: var(--shadow);
}
.contact-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.contact-copy p { margin-top: 16px; color: var(--muted); max-width: 460px; }

.contact-actions { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.socials { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.socials a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- подвал ---------- */

.footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { display: block; font-size: 14px; }
.footer-brand span { display: block; font-size: 12px; color: var(--muted); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 13px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-note { font-size: 12px; color: var(--muted-2); }

/* ---------- анимации ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 80;
}

/* ---------- адаптив ---------- */

@media (max-width: 980px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { min-height: 0; order: 2; }
  .mock { margin: 0 auto; transform: none; }
  .float-a { left: 4%; }
  .float-b { right: 2%; }
  .projects { grid-template-columns: 1fr; }
  .project-wide { grid-template-columns: 1fr; }
  .art-schedule { border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-copy { order: 1; }
  .about-photo { order: 2; max-width: 320px; }
  .services { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 34px; gap: 28px; }
}

@media (max-width: 760px) {
  .container { width: min(1120px, 100% - 32px); }
  .header-cta { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 15px; }
  .nav a.is-active::after { display: none; }

  .hero { padding-top: 118px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .float-card { display: none; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-meta b { font-size: 1.25rem; }
  .hero-meta span { font-size: 11.5px; }
  .section { padding: 64px 0; }
  .project-body { padding: 22px; }
  .project-art { min-height: 190px; }
  .about-photo { max-width: 260px; }
  .contact-card { padding: 26px; border-radius: 24px; }
  .contact-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ---------- светлая тема: светлые акценты ---------- */

html[data-theme="light"] .art-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(13, 23, 38, 0.12);
  box-shadow: 0 18px 40px -30px rgba(13, 35, 70, 0.45);
}
html[data-theme="light"] .art-line { color: #1a2a41; border-bottom-color: rgba(13, 23, 38, 0.08); }
html[data-theme="light"] .art-line i { background: rgba(15, 157, 138, 0.12); color: #067a6a; }
html[data-theme="light"] .mock { background: radial-gradient(120% 120% at 100% 0%, rgba(47, 111, 228, 0.1), transparent 58%), linear-gradient(160deg, #ffffff, #f5f9ff); }
html[data-theme="light"] .mock-badge { background: rgba(15, 157, 138, 0.1); border-color: rgba(15, 157, 138, 0.22); color: #067a6a; }
html[data-theme="light"] .contact-card {
  background: radial-gradient(110% 120% at 100% 0%, rgba(47, 111, 228, 0.08), transparent 55%), linear-gradient(150deg, rgba(15, 157, 138, 0.08), rgba(15, 157, 138, 0.015));
  border-color: rgba(15, 157, 138, 0.22);
}

/* ---------- публикации ---------- */

.pub-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 36px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pub-main p { color: var(--muted); font-size: .98rem; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pub-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-list li:first-child { padding-top: 4px; }
.pub-list span { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; color: var(--accent); padding-top: 3px; }
.pub-list p { font-size: .94rem; line-height: 1.45; color: var(--text); }

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 650;
  width: fit-content;
}
.profile-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.art-lab {
  background: radial-gradient(80% 80% at 40% 30%, rgba(47, 111, 228, 0.22), transparent 65%);
  border-top: 1px solid var(--line);
}
.art-lab span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  border: 1px solid rgba(47, 111, 228, 0.32);
  background: rgba(47, 111, 228, 0.1);
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .06em;
  text-align: center;
}
.project-compact .project-art { min-height: 180px; }

@media (max-width: 980px) {
  .pub-card { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
}

/* ---------- динамика: прогресс, шапка, маркиза, подсветка ---------- */

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 90;
  pointer-events: none;
}

.header { transition: transform .32s cubic-bezier(.22,1,.36,1); }
.header.is-hidden { transform: translateY(-105%); }

/* появление героя по очереди */
.hero [data-reveal] { transition-duration: .7s; }

/* маркиза технологий */
.stack {
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stack-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack.is-marquee .stack-track {
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.stack.is-marquee:hover .stack-track { animation-play-state: paused; }
.stack span { flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 4px)); }
}

/* мягкая подсветка карточек под курсором */
.project, .service { position: relative; isolation: isolate; }
.project::after, .service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 0;
}
.project:hover::after, .service:hover::after { opacity: 1; }
.project > *, .service > * { position: relative; z-index: 1; }

/* наклон мокапа за курсором */
.hero-visual .mock {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(2.4deg);
  transition: transform .25s ease-out;
  will-change: transform;
}

/* волна при клике по кнопке */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: currentColor;
  opacity: .22;
  pointer-events: none;
  animation: ripple .55s ease-out forwards;
}
@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

/* медленный дрейф фоновых пятен */
.glow-a { animation: drift 22s ease-in-out infinite alternate; }
.glow-b { animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

@media (max-width: 980px) {
  .hero-visual .mock { transform: none; }
}

@media (hover: none) {
  .project::after, .service::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stack { mask-image: none; -webkit-mask-image: none; }
  .stack-track { flex-wrap: wrap; width: auto; animation: none; }
}

/* ---------- v2: воздух, типографика, опыт, результаты ---------- */

.section { padding: clamp(56px, 6vw, 80px) 0; }
.section-head { max-width: 700px; margin-bottom: 42px; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.section-sub { margin-top: 16px; font-size: 1.03rem; }

.hero { padding: clamp(116px, 13vh, 144px) 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 1.06; }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero-meta { margin-top: 38px; padding-top: 24px; }

.eyebrow .num {
  display: inline-block;
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.projects { gap: 22px; }
.project-body { padding: 32px; gap: 16px; }
.project:hover { transform: translateY(-5px); }
.project .result {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.result-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  flex: 0 0 auto;
}

/* новые арт-панели */
.art-web {
  background: radial-gradient(80% 80% at 50% 30%, rgba(122, 162, 255, 0.22), transparent 65%);
  border-top: 1px solid var(--line);
}
.art-web span, .art-sec span, .art-research span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.art-web span {
  border: 1px solid rgba(122, 162, 255, 0.35);
  background: rgba(122, 162, 255, 0.1);
  color: var(--accent-2);
}
.art-sec {
  background: radial-gradient(80% 80% at 50% 30%, rgba(95, 227, 198, 0.22), transparent 65%);
  border-top: 1px solid var(--line);
}
.art-sec span {
  border: 1px solid rgba(95, 227, 198, 0.35);
  background: rgba(95, 227, 198, 0.1);
  color: var(--accent);
}
.art-research {
  background: radial-gradient(80% 80% at 50% 30%, rgba(183, 156, 255, 0.2), transparent 65%);
  border-top: 1px solid var(--line);
}
.art-research span {
  border: 1px solid rgba(183, 156, 255, 0.32);
  background: rgba(183, 156, 255, 0.09);
  color: #b79cff;
}

/* таймлайн опыта */
.timeline {
  position: relative;
  margin-top: 6px;
  padding-left: 34px;
  max-width: 820px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent-2) 40%, transparent), transparent);
  opacity: 0.55;
}
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.6px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.tl-period {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-item h3 {
  margin-top: 7px;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  font-weight: 680;
}
.tl-place { margin-top: 3px; color: var(--muted-2); font-size: 0.9rem; font-weight: 600; }
.tl-desc { margin-top: 9px; color: var(--muted); font-size: 0.94rem; max-width: 700px; }

.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.fact {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fact b { display: block; font-size: 0.95rem; letter-spacing: -0.01em; }
.fact span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* публикации: место издания */
.pub-list i {
  display: block;
  grid-column: 2;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-style: normal;
}
.pub-list p { margin: 0; }

@media (max-width: 980px) {
  .facts-row { grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .tl-item::before { left: -24px; }
}

@media (max-width: 760px) {
  .project-body { padding: 24px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 126px; }
}

/* публикации: сбалансированная раскладка */
.pub-card { display: block; padding: 40px; }
.pub-main { max-width: 760px; }
.pub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.pub-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pub-list li:nth-last-child(-n+2) { border-bottom: 0; }

@media (max-width: 980px) {
  .pub-list { grid-template-columns: 1fr; }
  .pub-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pub-card { padding: 28px; }
}

/* арт-панели проектов: сетка и свечение */
.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(75% 75% at 50% 45%, #000, transparent 78%);
  pointer-events: none;
}
.project-art > * { position: relative; z-index: 1; }
.art-trainer span, .art-docs span, .art-web span, .art-sec span, .art-research span, .art-lab span {
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--accent) 55%, transparent);
}
.project-art { min-height: 184px; }
.art-schedule { min-height: 220px; }

/* ---------- v3: фильтры, кейсы, табы мокапа ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -26px 0 28px; }
.filter {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.project.is-hidden { display: none; }
.project.is-shown { animation: cardIn .32s cubic-bezier(.22,1,.36,1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.project-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.project-links .link-arrow { margin-top: 0; padding-top: 0; }
.case-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  transition: color .18s ease, border-color .18s ease;
}
.case-btn:hover { color: var(--accent); border-color: var(--accent); }

/* табы дней в мокапе */
.mock-tabs { display: flex; gap: 6px; padding: 12px 0 2px; }
.mock-tab {
  padding: 4px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.mock-tab:hover { color: var(--text); }
.mock-tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.mock-row.is-swap { animation: rowIn .28s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* диалог кейса */
.case {
  width: min(680px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.case::backdrop { background: rgba(6, 7, 11, 0.56); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.case-inner { position: relative; padding: 36px 36px 30px; }
.case-close {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted); font-size: 19px; line-height: 1;
}
.case-close:hover { color: var(--text); border-color: var(--line-strong); }
.case-kicker { font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case h3 { margin-top: 8px; font-size: 1.55rem; letter-spacing: -0.03em; }
.case-grid { margin: 24px 0 0; display: grid; gap: 18px; }
.case-grid dt { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.case-grid dd { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.case-stack { margin-top: 24px; }
.case-actions { margin-top: 28px; }

@media (max-width: 760px) {
  .case { border-radius: 20px; }
  .case-inner { padding: 28px 22px 24px; }
  .filters { margin-top: -12px; }
}

/* компактнее по вертикали */
.stack { margin-top: 38px; padding-top: 20px; }
.projects { gap: 18px; }
.facts-row { margin-top: 40px; }
.pub-list { margin-top: 24px; }
.filters { margin: -8px 0 24px; }

/* реальные скриншоты в карточках */
.project-art.has-shot { padding: 0; overflow: hidden; }
.project-art.has-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.art-schedule.has-shot {
  display: grid;
  place-items: center;
  padding: 26px 20px;
  background:
    radial-gradient(90% 90% at 70% 20%, rgba(122, 162, 255, 0.26), transparent 62%),
    linear-gradient(150deg, rgba(95, 227, 198, 0.2), rgba(95, 227, 198, 0.03));
}
.art-schedule.has-shot img {
  width: auto;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
  border-radius: 26px;
  filter: drop-shadow(0 24px 40px rgba(13, 35, 70, 0.18));
}
@media (max-width: 980px) {
  .art-schedule.has-shot img { max-height: 300px; }
}

/* компактный опыт в «Обо мне» */
.mini-exp { margin-top: 22px; display: grid; }
.mini-exp li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.mini-exp li:last-child { border-bottom: 1px solid var(--line); }
.mini-exp span { color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding-top: 2px; }
.mini-exp b { color: var(--text); font-weight: 650; }
@media (max-width: 480px) {
  .mini-exp li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- страницы кейсов ---------- */

.case-page { background: var(--bg); }
.case-top { border-bottom: 1px solid var(--line); padding: 16px 0; }
.case-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.case-back { color: var(--muted); font-size: 14px; font-weight: 600; }
.case-back:hover { color: var(--accent); }

.case-hero { padding: clamp(44px, 6vw, 84px) 0 0; }
.case-hero h1 {
  margin-top: 14px;
  max-width: 920px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.case-lead { margin-top: 18px; max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.case-meta {
  display: flex; flex-wrap: wrap; gap: 30px;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case-meta li { font-size: 14px; color: var(--text); }
.case-meta span {
  display: block; margin-bottom: 4px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2);
}

.case-cover { margin-top: 38px; }
.case-cover img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: top left;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.case-body { padding: clamp(44px, 6vw, 72px) 0; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; }
.case-body h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.case-body p { margin-top: 14px; color: var(--muted); }
.case-list { margin-top: 14px; display: grid; gap: 10px; }
.case-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.96rem; }
.case-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.case-result-title { margin-top: 54px; }
.case-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.case-numbers li {
  padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
}
.case-numbers b { display: block; font-size: 1.85rem; letter-spacing: -0.03em; color: var(--accent); }
.case-numbers span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9rem; }

.case-cta { padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.case-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.case-cta h2 { font-size: 1.55rem; letter-spacing: -0.03em; }
.case-cta p { margin-top: 8px; color: var(--muted); }

@media (max-width: 760px) {
  .case-cols { grid-template-columns: 1fr; gap: 26px; }
  .case-numbers { grid-template-columns: 1fr; }
}

/* обложка кейса: не режем портретные скриншоты */
.case-cover img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 580px;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 50px rgba(13, 35, 70, 0.18));
}

.mini-exp li div { color: var(--muted); }
.mini-exp li div b { color: var(--text); }

/* ---------- карусель проектов в герое ---------- */

.carousel {
  width: 100%;
  padding: 14px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(122, 162, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.carousel-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 24px 44px rgba(13, 35, 70, 0.2));
}
.slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 24px -18px rgba(13, 35, 70, .5);
}
.slide figcaption b { font-size: 12.5px; font-weight: 700; color: var(--text); }
.slide figcaption span { font-size: 11px; color: var(--muted); }

.carousel-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px 0; }
.carousel-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  transition: color .18s ease, border-color .18s ease;
}
.carousel-arrow:hover { color: var(--accent); border-color: var(--accent); }
.carousel-dots { display: flex; align-items: center; gap: 6px; }
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong);
  transition: width .2s ease, background .2s ease;
}
.carousel-dot.is-active { width: 18px; border-radius: 4px; background: var(--accent); }

/* эмблема «Цифровой клиники» */
.art-clinic {
  background:
    radial-gradient(80% 80% at 50% 35%, rgba(47, 111, 228, 0.28), transparent 65%),
    linear-gradient(160deg, rgba(47, 111, 228, 0.16), rgba(47, 111, 228, 0.03));
  border-top: 1px solid var(--line);
}
.art-clinic img {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(13, 35, 70, 0.28));
}

@media (max-width: 980px) {
  .carousel-stage { aspect-ratio: 1 / 1; }
}

/* ---------- герой: для работодателя, прогресс карусели ---------- */

.header-cv {
  padding: 8px 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.header-cv:hover { color: var(--accent); }

.hiring { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hiring p { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 13.5px; }
.hiring .pulse { flex: 0 0 auto; }

.carousel { position: relative; overflow: hidden; }
.carousel-progress {
  position: absolute;
  left: 14px; right: 14px; top: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  z-index: 4;
}
.carousel-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.carousel.is-running .carousel-progress span {
  animation: slideProgress 7000ms linear forwards;
}
.carousel.is-paused .carousel-progress span { animation-play-state: paused; }
@keyframes slideProgress { to { transform: scaleX(1); } }

.slide img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.slide.is-active:hover img { transform: scale(1.02); }

.carousel-toggle {
  position: absolute;
  right: 22px; top: 22px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  display: grid; place-items: center;
  z-index: 5;
  transition: color .18s ease, border-color .18s ease;
}
.carousel-toggle:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) {
  .header-cv { display: none; }
  .hiring p { font-size: 12.5px; }
}

/* ---------- «как я работаю» + видео ---------- */

.work-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }
.work-video {
  margin: 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b1220; }
.work-video figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.steps { display: grid; }
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 2px; }
.steps > li > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.steps h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.94rem; }

@media (max-width: 980px) {
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
}

.case-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* компактнее между блоками */
.section { padding: clamp(44px, 4.6vw, 64px) 0; }
.section-head { margin-bottom: 32px; }
.hero { padding: clamp(108px, 12vh, 132px) 0 4px; }
.hero-meta { margin-top: 30px; padding-top: 20px; }
.stack { margin-top: 30px; padding-top: 18px; }
.work-grid { gap: 28px; }
.services { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.section { padding: clamp(40px, 4vw, 56px) 0; }

/* доступность: контраст акцента и подписей */
html[data-theme="light"] { --accent-ink: #ffffff; }
:root { --accent-text: #0b7d6e; }

/* расшифровка видео */
.transcript { border-top: 1px solid var(--line); padding: 0 16px 14px; }
.transcript summary {
  padding: 12px 0 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}
.transcript summary:hover { color: var(--accent); }
.transcript p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* CV в мобильном меню */
.nav-cv { display: none; }
@media (max-width: 760px) {
  .nav-cv { display: block; }
}

/* ---------- страница резюме ---------- */

.cv-main { padding: clamp(32px, 4vw, 56px) 0 72px; max-width: 900px; }
.cv-head h1 { margin-top: 10px; font-size: clamp(2.1rem, 4.4vw, 3.1rem); letter-spacing: -0.04em; line-height: 1.04; }
.cv-role { margin-top: 10px; color: var(--muted); font-size: 1.08rem; }
.cv-contacts {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.cv-contacts a { color: var(--accent); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.cv-block { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.cv-block h2 { font-size: 1.32rem; letter-spacing: -0.02em; }
.cv-block > p { margin-top: 12px; color: var(--muted); }

.cv-jobs { display: grid; gap: 24px; margin-top: 20px; }
.cv-period { font-size: 11.5px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.cv-job h3 { margin-top: 5px; font-size: 1.05rem; letter-spacing: -0.02em; }
.cv-company { margin-top: 3px; color: var(--muted-2); font-size: 0.92rem; }
.cv-job ul { display: grid; gap: 6px; margin-top: 10px; }
.cv-job li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.94rem; }
.cv-job li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.cv-edu li {
  display: grid; grid-template-columns: 118px 1fr; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.94rem;
}
.cv-edu li:first-child { border-top: 0; }
.cv-edu span { color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding-top: 2px; }
.cv-edu b { color: var(--text); font-weight: 650; }

.cv-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.cv-skill h3 { font-size: 0.95rem; letter-spacing: -0.01em; }
.cv-skill .chips { margin-top: 8px; }

.cv-note { margin-top: 34px; color: var(--muted-2); font-size: 13px; }
.cv-note a { color: var(--accent); }

@media (max-width: 700px) {
  .cv-skills { grid-template-columns: 1fr; }
  .cv-edu li { grid-template-columns: 1fr; gap: 3px; }
}

@media print {
  .case-top, .footer, .cv-actions { display: none !important; }
  body { background: #fff; }
  .cv-main { padding: 0; max-width: none; }
  .cv-block { break-inside: avoid; }
  .cv-job { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* кнопка «наверх» */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 60;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.footer-top { color: var(--muted); }

@media print { .to-top { display: none; } }

/* портрет */
.about-photo {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 50% 20%, rgba(47, 111, 228, 0.10), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.about-photo img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.about-photo::before { opacity: .6; }

/* строка доверия */
.trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.trust-label {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-list li {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
}
.trust-list li + li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
@media (max-width: 760px) {
  .trust { gap: 10px; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; gap: 7px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .hiring { gap: 10px; }
}

.eyebrow { align-items: flex-start; }
.eyebrow .dot { margin-top: 5px; }
@media (max-width: 480px) {
  .eyebrow { letter-spacing: .06em; }
}

/* мессенджеры в контактах */
.messengers { display: flex; gap: 10px; align-items: stretch; }
.messengers .btn { flex: 1 1 0; text-align: center; }
.messengers .btn-mail { flex: 0 0 auto; width: 56px; }
@media (max-width: 420px) {
  .messengers { flex-direction: row; gap: 8px; }
  .messengers .btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .messengers .btn-mail { flex: 0 0 46px; width: 46px; }
}

/* компактная печать резюме */
@media print {
  .case-page { background: #fff !important; }
  .cv-main { padding: 0 !important; max-width: none; }
  .cv-head h1 { font-size: 26pt; }
  .cv-role { margin-top: 6px; font-size: 11pt; }
  .cv-contacts { margin-top: 12px; padding-top: 10px; gap: 4px 16px; font-size: 9.5pt; }
  .cv-block { margin-top: 16px; padding-top: 10px; break-inside: auto; }
  .cv-block h2 { font-size: 13pt; break-after: avoid; page-break-after: avoid; }
  .cv-block > p { margin-top: 8px; font-size: 9.5pt; line-height: 1.42; }
  .cv-jobs { gap: 12px; margin-top: 10px; }
  .cv-job { break-inside: avoid; page-break-inside: avoid; }
  .cv-job h3 { font-size: 11pt; margin-top: 2px; }
  .cv-period { font-size: 8.5pt; }
  .cv-company { font-size: 9pt; }
  .cv-job ul { margin-top: 5px; gap: 3px; }
  .cv-job li { font-size: 9.2pt; line-height: 1.38; }
  .cv-edu li { padding: 6px 0; font-size: 9.2pt; }
  .cv-skills { gap: 12px; margin-top: 10px; }
  .cv-skill h3 { font-size: 9.5pt; }
  .cv-page .chips span { padding: 3px 7px; font-size: 8.4pt; }
  .cv-note { display: none; }
  .cv-page a { color: inherit; text-decoration: none; }
}

@media print {
  .cv-main { padding: 0 !important; }
  .cv-head h1 { font-size: 23pt; margin-top: 4px; }
  .cv-role { font-size: 10.5pt; }
  .cv-block { margin-top: 12px; padding-top: 8px; }
  .cv-block h2 { font-size: 12pt; }
  .cv-jobs { gap: 10px; }
  .cv-job li { font-size: 8.9pt; line-height: 1.32; }
  .cv-edu li { padding: 4px 0; font-size: 8.9pt; }
  .cv-skills { gap: 8px; }
  .cv-page .chips span { font-size: 8.1pt; padding: 2px 6px; }
  .cv-job { break-inside: avoid; }
}

@media print {
  .cv-jobs { gap: 8px; }
  .cv-job ul { gap: 2px; margin-top: 4px; }
  .cv-job li { font-size: 8.8pt; line-height: 1.28; }
  .cv-edu li { padding: 2px 0; }
  .cv-block { margin-top: 10px; padding-top: 7px; }
  .cv-block h2 { margin-bottom: 2px; }
  .cv-skills { gap: 6px; margin-top: 6px; }
  .cv-skill .chips { margin-top: 3px; }
  .cv-page .chips span { padding: 1px 5px; }
}

/* открытый код */
.repos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.repo {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease;
}
.repo:hover { transform: translateY(-3px); border-color: rgba(95, 227, 198, .35); }
.repo-top { display: flex; gap: 6px; margin-bottom: 12px; }
.repo-lang {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.repo-lang-py { color: var(--accent); border-color: rgba(95, 227, 198, .3); background: rgba(95, 227, 198, .08); }
.repo-lang-js { color: var(--accent-2); border-color: rgba(122, 162, 255, .3); background: rgba(122, 162, 255, .08); }
.repo h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.repo p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.repo-links { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.repo-links a { color: var(--accent); font-size: 13.5px; font-weight: 650; }
.repo-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.repos-all {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.repos-all:hover { color: var(--accent); }
@media (max-width: 760px) {
  .repos { grid-template-columns: 1fr; }
}
