@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/GolosText-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/GolosText-SemiBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

:root {
  --bg: #0b0b0a;
  --surface: rgba(22, 21, 19, 0.78);
  --surface-solid: #171614;
  --surface-hover: #201e1b;
  --text: #f4f0e8;
  --muted: #a49e94;
  --faint: #706b63;
  --line: rgba(244, 240, 232, 0.12);
  --line-strong: rgba(244, 240, 232, 0.25);
  --accent: #f06f52;
  --accent-bright: #ff8a6d;
  --accent-soft: rgba(240, 111, 82, 0.13);
  --accent-glow: rgba(240, 111, 82, 0.22);
  --success: #69e6b1;
  --danger: #ff7f8b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --icon-filter: invert(1);
}

:root[data-theme="light"] {
  --bg: #f3efe7;
  --surface: rgba(255, 252, 246, 0.8);
  --surface-solid: #fffaf2;
  --surface-hover: #ece5db;
  --text: #1d1b18;
  --muted: #655f57;
  --faint: #938b81;
  --line: rgba(45, 39, 32, 0.13);
  --line-strong: rgba(45, 39, 32, 0.25);
  --accent: #d95539;
  --accent-bright: #bb422b;
  --accent-soft: rgba(217, 85, 57, 0.1);
  --accent-glow: rgba(217, 85, 57, 0.16);
  --success: #137f58;
  --danger: #d64857;
  --shadow: 0 28px 75px rgba(33, 48, 72, 0.13);
  --icon-filter: none;
}

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

body {
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Golos Text", system-ui, sans-serif;
  overflow-x: hidden;
  transition: color 180ms ease, background 180ms ease;
}

.particle-field {
  position: fixed;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient--one { top: -30vw; right: -18vw; background: var(--accent); }
.ambient--two { bottom: -38vw; left: -24vw; background: #8c4f3d; }

button,
input,
textarea { color: inherit; font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 9px 8px 18px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.logo {
  width: max-content;
  color: var(--text);
  font: 600 14px "IBM Plex Mono", monospace;
}

.logo span { color: var(--accent-bright); }

.nav { display: flex; gap: 3px; }

.nav a {
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover { color: var(--text); background: var(--accent-soft); }

.header-actions { display: flex; justify-content: flex-end; gap: 7px; }

.round-control {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  font: 600 10px "IBM Plex Mono", monospace;
  transition: border-color 160ms ease, background 160ms ease;
}

.round-control:hover { border-color: var(--line-strong); background: var(--surface); }

.theme-toggle img { width: 17px; height: 17px; filter: var(--icon-filter); opacity: 0.82; }
:root[data-theme="dark"] .theme-toggle__moon,
:root[data-theme="light"] .theme-toggle__sun { display: none; }

.header-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.header-link:hover b { transform: translate(2px, -2px); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 52px;
  align-items: center;
  min-height: 100svh;
  padding: 118px 0 84px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: var(--surface);
  font: 10px "IBM Plex Mono", monospace;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent), 0 0 16px var(--success);
}

.overline {
  margin-top: 24px;
  color: var(--accent-bright);
  font: 600 10px "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 { text-wrap: balance; overflow-wrap: anywhere; }

h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(52px, 7.2vw, 94px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 span,
h2 span {
  color: var(--accent-bright);
  background: linear-gradient(115deg, var(--accent-bright), #8b7cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:lang(ru) h1 { font-size: clamp(46px, 6.2vw, 80px); letter-spacing: -0.055em; }

.hero__lead {
  max-width: 650px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-3px); }
.button--primary { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 12px 30px var(--accent-glow); }
.button--primary:hover { box-shadow: 0 18px 38px var(--accent-glow); }
.button--quiet { background: var(--surface); backdrop-filter: blur(12px); }
.button--quiet:hover { border-color: var(--line-strong); background: var(--surface-hover); }

.hero__meta {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  color: var(--faint);
  font: 9px "IBM Plex Mono", monospace;
}

.hero__visual {
  position: relative;
  display: grid;
  min-height: 530px;
  place-items: center;
  perspective: 1000px;
  will-change: transform;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.orbit--outer { width: 470px; height: 470px; animation: orbit-spin 24s linear infinite; }
.orbit--inner { width: 335px; height: 335px; border-style: dashed; animation: orbit-spin 18s linear reverse infinite; }

.orbit--outer::before,
.orbit--inner::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent);
  content: "";
  transform: translate(-50%, -50%);
}

.orbit--outer i {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-bright);
  background: var(--surface-solid);
  font: 9px "IBM Plex Mono", monospace;
  font-style: normal;
}

.orbit--outer i:nth-child(1) { top: 35px; left: 55px; }
.orbit--outer i:nth-child(2) { right: 15px; top: 210px; }
.orbit--outer i:nth-child(3) { bottom: 24px; left: 150px; }

.code-window {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  box-shadow: var(--shadow), 0 0 80px var(--accent-soft);
  backdrop-filter: blur(18px);
  transform: rotateY(-4deg) rotateX(2deg);
}

.code-window__bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 15px;
  color: var(--faint);
  font: 9px "IBM Plex Mono", monospace;
}

.code-window__bar span { display: flex; gap: 5px; }
.code-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.code-window__bar i:first-child { background: #ff7180; }
.code-window__bar i:nth-child(2) { background: #ffc15c; }
.code-window__bar i:nth-child(3) { background: var(--success); }

.code-window pre { overflow: auto; padding: 25px; color: var(--muted); font: 12px/1.8 "IBM Plex Mono", monospace; }
.code-window code > span { color: #c08cff; }
.code-window code > i { color: var(--accent-bright); font-style: normal; }
.code-window code > b { color: #ff83a5; }
.code-window code > em { color: var(--success); font-style: normal; }

.floating-chip {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font: 9px "IBM Plex Mono", monospace;
  animation: float 4s ease-in-out infinite;
}

.floating-chip--one { top: 75px; right: 14px; }
.floating-chip--two { bottom: 80px; left: 5px; animation-delay: -2s; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font: 9px "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.scroll-cue i { position: relative; width: 18px; height: 30px; border: 1px solid var(--line-strong); border-radius: 999px; }
.scroll-cue i::before { position: absolute; top: 6px; left: 50%; width: 3px; height: 5px; border-radius: 2px; background: var(--accent-bright); content: ""; animation: scroll-dot 1.8s ease-in-out infinite; }

.section { padding: 118px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 55px;
  align-items: end;
  margin-bottom: 44px;
}

.section-label {
  grid-column: 1 / -1;
  color: var(--faint);
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label span { color: var(--accent-bright); }
.section-label b { font-weight: 400; }

h2 { max-width: 800px; font-size: clamp(38px, 5.2vw, 66px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; }
:lang(ru) h2 { font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -0.045em; }

.section-head > p:last-child { max-width: 430px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.service-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 27px;
  background: var(--surface);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover { border-color: var(--line-strong); background: var(--surface-hover); box-shadow: 0 22px 55px var(--accent-soft); transform: translateY(-6px); }
.service-card__icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--accent-bright); background: var(--accent-soft); font: 600 12px "IBM Plex Mono", monospace; }
.service-card > small { position: absolute; top: 28px; right: 28px; color: var(--faint); font: 9px "IBM Plex Mono", monospace; }
.service-card h3 { margin-top: 45px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.035em; }
.service-card > p { max-width: 490px; margin-top: 12px; color: var(--muted); line-height: 1.6; }
.service-card > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.service-card > div span,
.project__tags span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--faint); font: 9px "IBM Plex Mono", monospace; }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.capabilities span { border: 1px solid var(--line); border-radius: 12px; padding: 15px; color: var(--muted); background: var(--surface); font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }

.expand-button { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px auto 0; border: 0; padding: 8px; color: var(--muted); background: transparent; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.expand-button:hover { color: var(--text); }
.expand-button b { color: var(--accent-bright); font-size: 17px; transition: transform 180ms ease; }
.expand-button.is-open b { transform: rotate(45deg); }
.expandable:not([hidden]) { animation: expand-in 240ms ease both; }

.project-list { display: grid; gap: 30px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.project--reverse { grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr); }
.project--reverse .project__visual { order: 2; }

.project__visual { position: relative; display: grid; min-width: 0; min-height: 430px; place-items: center; overflow: hidden; padding: 50px; border-right: 1px solid var(--line); perspective: 1100px; transition: transform 500ms ease; }
.project--reverse .project__visual { border-right: 0; border-left: 1px solid var(--line); }
.project__visual:hover { transform: scale(1.018); }
.project__visual::before { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 32px, rgba(255,255,255,.025) 33px 34px), radial-gradient(circle at 18% 15%, rgba(255,255,255,.13), transparent 34%); content: ""; }
.project__visual--zpm { background: linear-gradient(145deg, #9a5b45, #3d2822 58%, #191513); }
.project__visual--kitten { background: linear-gradient(145deg, #676156, #302e2a 58%, #171614); }

.project-shot { position: relative; z-index: 1; width: min(100%, 570px); overflow: hidden; border: 1px solid rgba(255,255,255,.19); border-radius: 15px; color: #ddd7cc; background: rgba(12,12,11,.93); box-shadow: 0 38px 80px rgba(0,0,0,.45); transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.project-shot--zpm { transform: rotateY(-7deg) rotateX(3deg) rotateZ(-1.5deg); }
.project-shot--kitten { transform: rotateY(7deg) rotateX(3deg) rotateZ(1.5deg); }
.project__visual:hover .project-shot { transform: rotate(0) translateY(-5px); }
.project-shot__bar { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 15px; color: #827c72; font: 9px "IBM Plex Mono", monospace; }
.project-shot__bar > span { display: flex; gap: 5px; }
.project-shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: #4a4742; }
.project-shot__bar i:first-child { background: #e76f51; }
.project-shot__bar b { font-weight: 400; }
.project-shot pre { overflow: auto; padding: clamp(25px, 4vw, 42px); font: 12px/1.9 "IBM Plex Mono", monospace; }
.project-shot code > em { color: #ff8a6d; font-style: normal; }
.project-shot code > span { color: #d9a86c; }
.project-shot code > b { color: #8fc79d; }
.project-shot code > small,
.project-shot code > i { color: #777168; font-style: normal; }
.project-stamp { position: absolute; z-index: 2; right: 19px; bottom: 18px; color: rgba(255,255,255,.62); font: 8px "IBM Plex Mono", monospace; letter-spacing: .08em; }

.project__copy { display: flex; min-width: 0; flex-direction: column; padding: 36px; }
.project__index { color: var(--accent-bright); font: 9px "IBM Plex Mono", monospace; }
.project__copy h3 { margin-top: 45px; font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -0.06em; }
.project__copy > p:not(.project__index) { margin-top: 14px; color: var(--muted); line-height: 1.65; }
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.project__copy > a { display: flex; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.project__copy > a:hover { color: var(--accent-bright); }

.mini-project { display: grid; grid-template-columns: auto 1fr 1.7fr auto; gap: 25px; align-items: center; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); }
.mini-project p,
.mini-project b { color: var(--faint); font: 9px "IBM Plex Mono", monospace; }
.mini-project span { color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stack-grid article { display: grid; min-width: 0; min-height: 150px; align-content: space-between; border: 1px solid var(--line); border-radius: 15px; padding: 19px; background: var(--surface); backdrop-filter: blur(12px); transition: border-color 200ms ease, background 200ms ease, transform 200ms ease; }
.stack-grid article:hover { border-color: var(--line-strong); background: var(--accent-soft); transform: translateY(-5px); }
.stack-grid span { margin-top: 28px; font-size: 18px; font-weight: 600; }
.stack-grid small { margin-top: 4px; color: var(--faint); font: 8px "IBM Plex Mono", monospace; }

.tech-icon { display: block; width: 29px; height: 29px; color: var(--accent-bright); background: currentColor; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.tech-icon--c { mask-image: url("/assets/icons/simple-icons/c.svg"); }.tech-icon--cpp { mask-image: url("/assets/icons/simple-icons/cplusplus.svg"); }.tech-icon--python { mask-image: url("/assets/icons/simple-icons/python.svg"); }.tech-icon--js { mask-image: url("/assets/icons/simple-icons/javascript.svg"); }.tech-icon--fastapi { mask-image: url("/assets/icons/simple-icons/fastapi.svg"); }.tech-icon--postgres { mask-image: url("/assets/icons/simple-icons/postgresql.svg"); }.tech-icon--linux { mask-image: url("/assets/icons/simple-icons/linux.svg"); }

.stack-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stack-details article { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
.stack-details small { color: var(--accent-bright); font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; }
.stack-details p { margin-top: 8px; color: var(--muted); line-height: 1.55; }

.about,
.contact { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); gap: 75px; align-items: center; }

.about__visual { display: grid; justify-items: center; }
.tux-stage { position: relative; display: grid; width: min(74vw, 450px); aspect-ratio: 1; place-items: center; isolation: isolate; }
.tux-stage::before { position: absolute; z-index: -2; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); box-shadow: inset 0 0 80px var(--accent-soft), 0 0 100px var(--accent-soft); content: ""; }
.tux-stage::after { position: absolute; z-index: -1; right: 11%; bottom: 8%; left: 11%; height: 18%; border-radius: 50%; background: rgba(0,0,0,.42); filter: blur(24px); content: ""; }
.tux-orbit { position: absolute; z-index: -1; border: 1px solid var(--line-strong); border-radius: 50%; pointer-events: none; }
.tux-orbit::before,
.tux-orbit::after { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 18px var(--accent); content: ""; }
.tux-orbit--outer { inset: 3%; animation: orbit-spin 24s linear infinite; }
.tux-orbit--outer::before { top: 14%; left: 13%; }
.tux-orbit--outer::after { right: 4%; bottom: 35%; }
.tux-orbit--inner { inset: 17%; border-style: dashed; opacity: .65; animation: orbit-spin 18s linear reverse infinite; }
.tux-orbit--inner::before { right: 20%; bottom: 2%; }
.tux-orbit--inner::after { top: 40%; left: -4px; }
.tux-art { position: relative; z-index: 2; display: grid; width: 78%; cursor: pointer; outline: none; filter: drop-shadow(0 24px 24px rgba(0,0,0,.32)); transform-origin: 50% 88%; animation: tux-float 4.6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.tux-art:hover,
.tux-art:focus-visible { filter: drop-shadow(0 28px 28px rgba(0,0,0,.4)) drop-shadow(0 0 22px var(--accent-soft)); }
.tux-terminal { position: relative; display: grid; width: 100%; aspect-ratio: 1.28; place-items: center; border: 2px solid var(--accent-bright); border-radius: 18px; color: var(--text); background: color-mix(in srgb, var(--surface-solid) 84%, transparent); box-shadow: inset 0 0 28px var(--accent-soft), 0 0 26px var(--accent-soft); font: 600 clamp(18px, 4vw, 31px)/1 "IBM Plex Mono", monospace; }
.tux-terminal::after { position: absolute; inset: 7px; border: 1px solid var(--line-strong); border-radius: 11px; content: ""; pointer-events: none; }
.tux-terminal__top { position: absolute; top: 22%; color: var(--accent-bright); font-size: .78em; }
.tux-terminal__eyes { display: flex; gap: 42%; margin-top: 14%; color: var(--success); text-shadow: 0 0 14px var(--success); }
.tux-terminal__eyes i { display: block; width: 1em; font-style: normal; transition: transform 75ms linear; }
.tux-terminal__body { position: absolute; bottom: 19%; color: var(--muted); font-size: .72em; }
.tux-feet { display: flex; justify-content: space-between; width: 54%; color: var(--accent-bright); font: 600 clamp(18px, 4vw, 28px)/.7 "IBM Plex Mono", monospace; text-shadow: 0 0 14px var(--accent); }
.tux-feet i { font-style: normal; animation: tux-step 2.2s ease-in-out infinite; }
.tux-feet i:last-child { animation-delay: -1.1s; }
.tux-art #pupil_left,
.tux-art #pupil_right { transform-box: fill-box; transform-origin: center; transition: transform 75ms linear; }
.tux-art.is-blinking .tux-terminal__eyes { transform: scaleY(.08); }
.tux-art.is-poked { animation: tux-poke 620ms cubic-bezier(.2,.8,.2,1); }
.tux-art.is-poked #wing_left { transform-box: fill-box; transform-origin: 80% 20%; animation: tux-wing-left 520ms ease; }
.tux-art.is-poked #wing_right,
.tux-art.is-poked #wing_tip_right { transform-box: fill-box; transform-origin: 20% 20%; animation: tux-wing-right 520ms ease; }
.tux-shadow { position: absolute; z-index: 1; bottom: 8%; width: 48%; height: 6%; border-radius: 50%; background: rgba(0,0,0,.48); filter: blur(11px); animation: tux-shadow 4.6s ease-in-out infinite; }
.tux-pop { position: absolute; z-index: 5; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 14px var(--accent); pointer-events: none; animation: tux-pop 650ms ease-out forwards; }
.about__visual > p { margin-top: 22px; color: var(--faint); text-align: center; font: 8px/1.5 "IBM Plex Mono", monospace; letter-spacing: .12em; }

@keyframes tux-float { 50% { transform: translateY(-8px) rotate(.6deg); } }
@keyframes tux-shadow { 50% { opacity: .72; transform: scale(.9); } }
@keyframes tux-poke { 0%, 100% { transform: none; } 25% { transform: translateY(10px) scale(1.05,.92); } 62% { transform: translateY(-22px) scale(.96,1.07) rotate(-2deg); } }
@keyframes tux-step { 50% { transform: translateY(4px) rotate(3deg); } }
@keyframes tux-pop { to { opacity: 0; transform: translate(var(--pop-x),var(--pop-y)) scale(.2); } }

.about__copy .section-label,
.contact__intro .section-label { margin-bottom: 18px; }
.about__copy > p:not(.section-label) { max-width: 680px; margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.principles { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.principles div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.principles b { color: var(--accent-bright); font: 9px "IBM Plex Mono", monospace; }

.contact { align-items: start; }
.contact__intro > p:not(.section-label) { max-width: 500px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.telegram-link { display: flex; justify-content: space-between; max-width: 430px; margin-top: 34px; border-block: 1px solid var(--line); padding: 15px 0; color: var(--muted); font: 10px "IBM Plex Mono", monospace; }
.telegram-link b { color: var(--accent-bright); }

.lead-form { display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 19px; padding: 28px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { display: grid; min-width: 0; gap: 7px; }
.lead-form label > span { color: var(--muted); font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; }
.lead-form input,
.lead-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: color-mix(in srgb, var(--bg) 58%, transparent); transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.lead-form input { min-height: 49px; }.lead-form textarea { min-height: 150px; resize: vertical; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--faint); }
.lead-form input:focus,
.lead-form textarea:focus { border-color: var(--accent); background: var(--surface-solid); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
.lead-form .is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent); }
.form-submit { display: flex; align-items: center; gap: 16px; }
.form-submit small { max-width: 220px; color: var(--faint); font-size: 11px; line-height: 1.45; }
.form-status { min-height: 20px; font: 10px "IBM Plex Mono", monospace; }.form-status.is-success { color: var(--success); }.form-status.is-error { color: var(--danger); }
.honeypot { position: absolute; left: -10000px; }

body.delivery-open { overflow: hidden; }
.delivery-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow: auto; padding: 24px; background: rgba(7,7,6,.82); opacity: 0; backdrop-filter: blur(16px); transition: opacity 260ms ease; }
.delivery-overlay[hidden] { display: none; }
.delivery-overlay.is-open { opacity: 1; }
.delivery-card { width: min(900px, 100%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 35px 120px rgba(0,0,0,.6); transform: translateY(18px) scale(.98); transition: transform 360ms cubic-bezier(.2,.8,.2,1); }
.delivery-overlay.is-open .delivery-card { transform: none; }
.delivery-card__header { display: flex; justify-content: space-between; align-items: center; min-height: 47px; border-bottom: 1px solid var(--line); padding: 0 17px; color: var(--faint); font: 8px "IBM Plex Mono", monospace; }
.delivery-card__header > div { display: flex; align-items: center; gap: 6px; }.delivery-card__header > div i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }.delivery-card__header > div i:first-child { background: var(--accent); }.delivery-card__header > div span { margin-left: 8px; }.delivery-card__header p { display: flex; gap: 16px; }.delivery-card__header p span { color: var(--accent-bright); }.delivery-card__header p b { font-weight: 400; }
.delivery-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 28px 34px 8px; }.delivery-heading > p { color: var(--accent-bright); font: 8px "IBM Plex Mono", monospace; letter-spacing: .12em; }.delivery-heading h2 { max-width: 540px; font-size: clamp(32px, 5vw, 54px); text-align: right; }.delivery-heading h2 span { color: var(--muted); }
.delivery-flow { position: relative; display: grid; gap: 7px; min-height: 365px; align-content: center; overflow: hidden; padding: 22px 7% 22px 25%; }.delivery-flow::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 42%); content: ""; opacity: .5; }.delivery-flow > svg { position: absolute; inset: 0; width: 100%; height: 100%; }.delivery-flow > svg path { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: .012 .014; }
.delivery-node { position: relative; z-index: 2; display: grid; grid-template-columns: 42px 34px 1fr; gap: 12px; align-items: center; min-height: 66px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); opacity: .4; transform: translateX(22px); transition: border-color 260ms ease, background 260ms ease, opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease; }.delivery-node > span { color: var(--accent-bright); font: 9px "IBM Plex Mono", monospace; }.delivery-node > i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--bg); font: 9px "IBM Plex Mono", monospace; font-style: normal; }.delivery-node small,.delivery-node b,.delivery-node em { display: block; font-family: "IBM Plex Mono", monospace; }.delivery-node small { color: var(--faint); font-size: 7px; }.delivery-node b { margin-top: 3px; font-size: 9px; font-weight: 400; }.delivery-node em { margin-top: 4px; color: var(--faint); font-size: 7px; font-style: normal; }
.delivery-node.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--surface-solid) 84%, var(--accent) 16%); box-shadow: 0 0 0 4px var(--accent-soft), 0 16px 45px var(--accent-soft); opacity: 1; transform: none; }.delivery-node.is-active > i,.delivery-node.is-active em { color: var(--accent-bright); }.delivery-node.is-done { border-color: color-mix(in srgb, var(--success) 50%, transparent); opacity: 1; transform: none; }.delivery-node.is-done > i,.delivery-node.is-done em { color: var(--success); }.delivery-node.is-warning { border-color: #c99750; opacity: 1; transform: none; }.delivery-node.is-warning > i,.delivery-node.is-warning em { color: #e5b568; }
.delivery-outcome { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; padding: 28px; text-align: center; background: color-mix(in srgb, var(--bg) 90%, transparent); opacity: 0; pointer-events: none; backdrop-filter: blur(13px); transform: scale(.97); transition: opacity 380ms ease, transform 380ms ease; }.delivery-outcome.is-visible { opacity: 1; transform: none; }.delivery-outcome small { color: var(--success); font: 8px "IBM Plex Mono", monospace; letter-spacing: .14em; }.delivery-outcome strong { margin-top: 10px; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.05em; }.delivery-outcome p { max-width: 500px; margin: 8px auto 0; color: var(--muted); }.delivery-outcome.is-fallback small { color: #e5b568; }
.delivery-log { display: grid; min-height: 88px; max-height: 105px; overflow: auto; border-top: 1px solid var(--line); padding: 11px 17px; background: color-mix(in srgb, var(--bg) 95%, #000); align-content: start; }.delivery-log span { display: grid; grid-template-columns: 70px 74px 1fr; gap: 9px; color: var(--muted); font: 8px/1.75 "IBM Plex Mono", monospace; animation: delivery-log-in 220ms ease both; }.delivery-log time { color: var(--faint); }.delivery-log b { color: var(--accent-bright); font-weight: 400; }
.delivery-card > footer { display: flex; justify-content: space-between; align-items: center; min-height: 55px; border-top: 1px solid var(--line); padding: 8px 17px; }.delivery-card > footer p { color: var(--faint); font: 7px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }.delivery-card > footer button { display: flex; align-items: center; gap: 24px; min-height: 37px; border: 0; border-radius: 8px; padding: 0 12px; color: #fff; background: var(--accent); font: 8px "IBM Plex Mono", monospace; }.delivery-card > footer button b { font-size: 16px; font-weight: 400; }
.delivery-card > footer button[hidden] { display: none; }
@keyframes delivery-log-in { from { opacity: 0; transform: translateY(5px); } }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 120px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.site-footer > div { display: flex; gap: 20px; font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; }
.site-footer > div a:hover { color: var(--accent-bright); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes expand-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 145px; }
  .hero__copy { max-width: 780px; }
  .hero__visual { width: min(100%, 620px); min-height: 500px; }
  .scroll-cue { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .project,
  .project--reverse { grid-template-columns: 1fr; }
  .project--reverse .project__visual { order: initial; }
  .project__visual,
  .project--reverse .project__visual { border: 0; border-bottom: 1px solid var(--line); }
  .about,
  .contact { grid-template-columns: 1fr; }
  .about__visual { order: 2; }
  .contact__intro { max-width: 720px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }
  .site-header { top: 8px; min-height: 56px; padding: 6px 7px 6px 12px; }
  .header-link { min-width: 40px; justify-content: center; padding: 0 12px; }
  .header-link span { display: none; }
  .round-control { width: 38px; height: 38px; }
  .hero { gap: 20px; min-height: auto; padding: 126px 0 70px; }
  h1 { font-size: clamp(45px, 14vw, 64px); }
  :lang(ru) h1 { font-size: clamp(39px, 11.5vw, 56px); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero__meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .hero__visual { min-height: 420px; transform: scale(.86); transform-origin: center; }
  .orbit--outer { width: 390px; height: 390px; }
  .orbit--inner { width: 285px; height: 285px; }
  .section { padding: 82px 0; }
  h2,
  :lang(ru) h2 { font-size: clamp(34px, 10.5vw, 48px); }
  .service-grid,
  .stack-details { grid-template-columns: 1fr; }
  .service-card h3 { font-size: 27px; }
  .capabilities { grid-template-columns: 1fr; }
  .project__visual { min-height: 310px; padding: 20px; }
  .project__copy { padding: 24px; }
  .project__copy h3 { font-size: 45px; }
  .mini-project { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid article { min-height: 130px; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 20px; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .delivery-overlay { padding: 8px; }
  .delivery-heading { display: block; padding: 22px 20px 8px; }.delivery-heading h2 { margin-top: 9px; text-align: left; }
  .delivery-flow { min-height: 380px; padding: 18px; }.delivery-flow > svg { display: none; }
  .delivery-node { grid-template-columns: 34px 30px 1fr; gap: 8px; opacity: .65; transform: none; }
  .delivery-log span { grid-template-columns: 58px 52px 1fr; }
  .delivery-card > footer p { display: none; }
  .delivery-card > footer { justify-content: flex-end; }
  .site-footer { align-items: flex-start; gap: 20px; flex-direction: column; padding: 30px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .tux-art,
  .tux-shadow,
  .tux-orbit,
  .floating-chip,
  .scroll-cue i::before { animation: none !important; }
}
