:root {
  --page: #ffffff;
  --text: #000000;
  --body-text: #71717a;
  --muted: #a1a1aa;
  --control: #e9e9ec;
  --surface: #f5f5f5;
  --accent: #047cf5;
  --line: #e4e4e7;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

.case-password-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.case-password-dialog {
  width: min(100%, 360px);
  padding: 32px;
  border-radius: 20px;
  background: #f5f5f5;
  text-align: center;
}

.case-password-dialog h1 { margin: 0 0 12px; font-size: 24px; }
.case-password-dialog p { margin: 0 0 20px; color: var(--body-text); }
.case-password-dialog input,
.case-password-dialog button { width: 100%; min-height: 48px; border: 0; border-radius: 12px; font: inherit; }
.case-password-dialog input { padding: 0 16px; background: #fff; }
.case-password-dialog button { margin-top: 12px; cursor: pointer; background: #242426; color: #fff; }
.case-password-error { margin: 10px 0 0 !important; color: #d22 !important; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html {
  background: var(--page);
  color: var(--text);
  font-family: "Roboto Mono", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--page);
  overflow-x: hidden;
}

.motion-ready .reveal-item {
  filter: blur(10px);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: filter, opacity, transform;
}

.motion-ready .reveal-item.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    filter 760ms var(--motion-ease) var(--reveal-delay, 0ms),
    opacity 620ms var(--motion-ease) var(--reveal-delay, 0ms),
    transform 720ms var(--motion-ease) var(--reveal-delay, 0ms);
  will-change: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
}

.language-control {
  position: fixed;
  top: 32px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 48px));
  justify-content: flex-end;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    opacity 160ms ease,
    transform 200ms var(--motion-ease);
}

.language-control.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -8px, 0);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10.5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #18181b;
  cursor: pointer;
  font: 400 14px/normal "Roboto Mono", monospace;
  pointer-events: auto;
  transition:
    background-color 160ms ease,
    transform 160ms var(--motion-ease);
}

.language-switcher:hover,
.language-switcher:focus-visible {
  background: #e9e9ec;
}

.language-switcher:focus-visible {
  outline: 2px solid rgba(24, 24, 27, 0.16);
  outline-offset: 2px;
}

.language-switcher:active {
  transform: translateY(1px);
}

.language-icon,
.language-icon img {
  display: block;
  width: 14px;
  height: 14px;
}

.language-icon {
  flex: 0 0 14px;
  overflow: hidden;
  border-radius: 50%;
}

.language-icon img {
  object-fit: cover;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(520px, calc(100% - 32px));
  margin: 102px auto 0;
  text-align: center;
}

.hero-portrait {
  --portrait-fade-bg: #ffffff;

  position: relative;
  isolation: isolate;
  width: 260px;
  height: 292px;
  overflow: hidden;
  border-top: 10px solid var(--portrait-fade-bg);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 86%,
    transparent 100%
  );
}

.hero-portrait::before,
.hero-portrait::after {
  position: absolute;
  z-index: 2;
  content: "";
  filter: blur(0.35px);
  pointer-events: none;
}

.hero-portrait::before {
  inset: -4px -2px 0;
  background:
    linear-gradient(
      to bottom,
      var(--portrait-fade-bg) 0%,
      var(--portrait-fade-bg) 18px,
      rgba(255, 255, 255, 0.82) 23px,
      rgba(255, 255, 255, 0) 36px
    ),
    linear-gradient(
      to right,
      var(--portrait-fade-bg) 0%,
      rgba(255, 255, 255, 0.92) 4%,
      rgba(255, 255, 255, 0.56) 10%,
      rgba(255, 255, 255, 0) 24%,
      rgba(255, 255, 255, 0) 76%,
      rgba(255, 255, 255, 0.56) 90%,
      rgba(255, 255, 255, 0.92) 96%,
      var(--portrait-fade-bg) 100%
    ),
    radial-gradient(
      ellipse 76% 86% at -20% 54%,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.52) 30%,
      rgba(255, 255, 255, 0) 66%
    ),
    radial-gradient(
      ellipse 76% 86% at 120% 54%,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.52) 30%,
      rgba(255, 255, 255, 0) 66%
    );
}

.hero-portrait::after {
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 78%,
    rgba(255, 255, 255, 0.42) 90%,
    var(--portrait-fade-bg) 100%
  );
}

.hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 260px;
  height: 292px;
  border-radius: 0;
  object-fit: cover;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 21px;
  line-height: 1;
}

.intro p {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.intro a {
  color: var(--accent);
}

.intro a:hover,
.intro a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

.status-tag span:last-child {
  font-weight: 500;
}

.status-dot {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 6px;
  min-width: 6px;
  max-width: 6px;
  height: 6px;
  min-height: 6px;
  max-height: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #22c55e;
  line-height: 0;
}

.status-dot::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.34);
  content: "";
  transform: translate(-50%, -50%) scale(0.72);
  animation: status-pulse 1.45s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.72);
  }

  70%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::before {
    animation: none;
  }
}

.button-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .button-row {
  justify-content: center;
  margin-top: 0;
}

.hero .contact-hover-group .button-row {
  margin-top: 0;
}

.button-row a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 6px;
  background: var(--control);
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button-row a:hover,
.button-row a:focus-visible {
  background: #dedee3;
  color: var(--text);
  animation: button-jitter 240ms var(--motion-ease);
}

.button-row a:active {
  transform: translateY(1px);
}

.contact-hover-group {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 20px;
}

.contact-popover {
  --popover-x: 0px;
  --popover-y: 50px;
  --popover-width: 260px;
  --popover-height: 87px;

  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  width: var(--popover-width);
  height: var(--popover-height);
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: translate3d(var(--popover-x), calc(var(--popover-y) + 10px), 0) scale(0.96);
  transform-origin: 50% 0;
  transition:
    width 260ms var(--motion-ease),
    height 260ms var(--motion-ease),
    opacity 150ms ease,
    filter 180ms ease,
    transform 260ms var(--motion-ease);
}

.contact-popover.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(var(--popover-x), var(--popover-y), 0) scale(1);
}

.contact-popover-panel {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 110ms ease;
}

.contact-popover-panel.is-active {
  opacity: 1;
}

.contact-card,
.contact-card-youtube {
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 8px 14px -6px rgba(24, 39, 75, 0.12),
    0 18px 44px -4px rgba(24, 39, 75, 0.14);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: #ffffff;
  color: #000000;
  font-family: "Roboto Mono", monospace;
  text-align: left;
}

.contact-card h3,
.contact-card p {
  font-family: inherit;
  letter-spacing: 0;
}

.contact-card h3 {
  margin: 0;
  color: #000000;
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.contact-card p {
  color: #475569;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.contact-card-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card-button {
  display: inline-flex;
  min-width: 36px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  background: #27272a;
  color: #ffffff;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.contact-card-resume {
  width: 312px;
  height: 154px;
  gap: 8px;
  padding: 16px 16px 16px 8px;
}

.resume-avatar {
  position: relative;
  flex: 0 0 103px;
  width: 103px;
  height: 122px;
  overflow: hidden;
}

.resume-avatar img {
  position: absolute;
  left: 0;
  top: -3px;
  width: 103px;
  height: 128px;
  object-fit: cover;
}

.contact-card-resume .contact-card-info {
  flex: 0 0 157px;
  justify-content: center;
  gap: 16px;
  width: 157px;
}

.contact-card-resume .resume-meta p {
  white-space: nowrap;
}

.contact-card-resume .contact-card-button {
  width: 150px;
}

.resume-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-meta span {
  color: #0087ef;
}

.contact-card-telegram {
  width: 337px;
  height: 158px;
}

.telegram-avatar {
  position: relative;
  flex: 0 0 126px;
  width: 126px;
  height: 126px;
}

.telegram-avatar > img:not(.telegram-online-badge) {
  display: block;
  width: 126px;
  height: 126px;
  border-radius: 69px;
  object-fit: cover;
}

.telegram-online-badge {
  position: absolute;
  left: 93px;
  top: 101px;
  display: block;
  max-width: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: contain;
}

.contact-card-telegram .contact-card-info {
  gap: 12px;
  width: 167px;
}

.telegram-main-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verified-title {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.verified-title h3 {
  line-height: 1;
  white-space: nowrap;
}

.verified-badge {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.telegram-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.telegram-status span {
  color: #71717a;
  font-size: 14px;
  line-height: 1;
}

.telegram-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.telegram-login {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 0;
}

.telegram-login-icon {
  position: relative;
  display: flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e4e4e7;
}

.telegram-login-icon img {
  position: absolute;
  display: block;
  pointer-events: none;
}

.telegram-login-icon-bg {
  inset: 0;
  width: 32px;
  height: 32px;
}

.telegram-login-icon-mark {
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
}

.telegram-login strong,
.telegram-login small {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.telegram-login strong {
  color: #18181b;
}

.telegram-login small {
  margin-top: 4px;
  color: #71717a;
  font-size: 12px;
}

.contact-card-telegram .contact-card-button {
  margin-top: 0;
  width: 167px;
}

.contact-card-email {
  width: 260px;
  height: 87px;
  gap: 16px;
}

.gmail-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 55px;
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: #f8f8f8;
  box-shadow:
    0 1.472px 2.944px rgba(165, 165, 165, 0.25),
    inset 0 -0.736px 0 rgba(245, 245, 245, 0.25),
    inset 0 0.736px 0 #ffffff;
}

.gmail-mark img {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: contain;
}

.contact-card-email .contact-card-info {
  gap: 4px;
}

.contact-card-email p {
  color: #71717a;
  white-space: nowrap;
}

.contact-card-youtube {
  width: 309px;
  height: 173px;
}

.contact-card-youtube img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

@keyframes button-jitter {
  0% {
    transform: translate3d(0, 0, 0);
  }

  35% {
    transform: translate3d(0, -0.7px, 0);
  }

  70% {
    transform: translate3d(0, 0.7px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.content {
  display: flex;
  flex-direction: column;
  gap: 96px;
  width: min(1120px, calc(100% - 48px));
  margin: 192px auto 0;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

h2 {
  font-size: 21px;
  line-height: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 50px;
  row-gap: 64px;
}

.work-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
}

.work-card[tabindex] {
  outline: none;
}

.work-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px -16px -24px;
  border-radius: 40px;
  background: #fafafa;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 280ms var(--motion-ease),
    transform 360ms var(--motion-ease);
}

.work-card:hover::before,
.work-card:focus-within::before,
.work-card:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

a.work-card {
  color: inherit;
  outline: none;
}

a.work-card:focus-visible::before {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.card-tooltip {
  position: absolute;
  right: 22px;
  top: -34px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
  padding: 7px 10.5px;
  border-radius: 6px;
  background: #334155;
  box-shadow:
    0 2px 4px -2px rgba(0, 0, 0, 0.1),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 14px;
  line-height: normal;
  letter-spacing: -0.02em;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translate3d(0, -8px, 0);
  transition:
    opacity 160ms ease,
    transform 180ms var(--motion-ease);
  white-space: nowrap;
}

.card-tooltip::after {
  position: absolute;
  right: 28px;
  bottom: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid #334155;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: "";
}

.has-tooltip:hover .card-tooltip,
.has-tooltip:focus-visible .card-tooltip,
.has-tooltip:focus-within .card-tooltip {
  opacity: 1;
  transform: translate3d(0, -2px, 0);
}

.has-tooltip:hover,
.has-tooltip:focus-visible,
.has-tooltip:focus-within {
  filter: blur(0);
  opacity: 1;
  z-index: 12;
}

.has-tooltip:focus-visible::before {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.work-card.single {
  grid-column: 1;
}

.preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 320px;
  border-radius: 24px;
  background: #f7f7f7;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms var(--motion-ease);
}

.layer,
.preview-fill img {
  position: absolute;
  display: block;
  object-fit: cover;
  pointer-events: none;
  transition:
    filter 420ms var(--motion-ease),
    transform 620ms var(--motion-ease);
}

.preview-fill img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-codex {
  background: #fafafa;
}

.work-card:hover .preview,
.work-card:focus-within .preview {
  transform: translate3d(0, -4px, 0);
}

.work-card:hover .preview-fill img,
.work-card:focus-within .preview-fill img {
  transform: scale(1.035);
}

.work-card:hover .preview-duo .duo-main,
.work-card:focus-within .preview-duo .duo-main {
  transform: translate3d(-8px, -8px, 0) rotate(-4deg) scale(1.035);
}

.work-card:hover .preview-duo .duo-alt,
.work-card:focus-within .preview-duo .duo-alt {
  transform: translate3d(10px, -6px, 0) rotate(3deg) scale(1.035);
}

.preview-career-contest img {
  inset: auto;
  left: -5.5%;
  top: 12.2%;
  width: 104.5%;
  height: 116.25%;
  object-fit: cover;
}

.preview-system .system-art {
  left: 8.3%;
  top: 12%;
  width: 58.5%;
  border-radius: 4px;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
  transform: rotate(-3.6deg);
}

.preview-system .system-ui {
  left: 32%;
  top: 42%;
  width: 30%;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
}

.preview-system .system-components {
  left: 52%;
  top: 27%;
  width: 36%;
  height: 138%;
  border-radius: 8px;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
  transform: rotate(4.38deg);
}

.work-card:hover .preview-system .system-art,
.work-card:focus-within .preview-system .system-art {
  transform: translate3d(-8px, -8px, 0) rotate(-5deg) scale(1.03);
}

.work-card:hover .preview-system .system-ui,
.work-card:focus-within .preview-system .system-ui {
  transform: translate3d(2px, -7px, 0) scale(1.035);
}

.work-card:hover .preview-system .system-components,
.work-card:focus-within .preview-system .system-components {
  transform: translate3d(10px, -4px, 0) rotate(5.5deg) scale(1.03);
}

.preview-system .system-logo {
  left: 8%;
  bottom: 8%;
  width: 32px;
  height: 24px;
  object-fit: contain;
}

.preview-duo .duo-main {
  left: 7.5%;
  top: 12%;
  width: 53%;
  border-radius: 4px;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
}

.preview-duo .duo-alt {
  right: 7.5%;
  top: 30%;
  width: 50%;
  border-radius: 4px;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
}

.preview-sber .sber-main {
  left: 5.8%;
  top: 15.6%;
  width: 49.7%;
  height: 55.6%;
  object-fit: fill;
  object-position: bottom;
  opacity: 0.9;
}

.preview-sber .sber-alt {
  right: auto;
  left: 39.1%;
  top: 28.1%;
  width: 53.5%;
  height: 63.4%;
  object-fit: fill;
}

.preview-attestation .duo-main {
  top: 16%;
  width: 57%;
  border-radius: 8px;
}

.preview-attestation .duo-alt {
  top: 34.5%;
  width: 44%;
}

.preview-call .duo-main {
  top: 16%;
  width: 54%;
}

.preview-call .duo-alt {
  top: 30%;
  width: 51%;
}

.preview-telegram .telegram-one {
  left: 2.8%;
  top: 8.1%;
  width: 58%;
  height: 83.5%;
  object-fit: cover;
}

.preview-telegram .telegram-two {
  left: 41.1%;
  top: 26.3%;
  width: 57%;
  height: 75.3%;
  object-fit: cover;
}

.preview-article .article-before {
  left: 6%;
  top: 17.8%;
  width: 40%;
  border-radius: 4px;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
  transform: rotate(-7.08deg);
}

.preview-article .article-after {
  right: 6%;
  top: 18.1%;
  width: 40%;
  border-radius: 4px;
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
  transform: rotate(7deg);
}

.work-card:hover .preview-article .article-before,
.work-card:focus-within .preview-article .article-before {
  transform: translate3d(-8px, -8px, 0) rotate(-8.5deg) scale(1.035);
}

.work-card:hover .preview-article .article-after,
.work-card:focus-within .preview-article .article-after {
  transform: translate3d(8px, -8px, 0) rotate(8.5deg) scale(1.035);
}

.preview-article .article-before-label {
  left: 20%;
  top: 12.8%;
  width: 32px !important;
  height: 20px !important;
  object-fit: fill;
}

.preview-article .article-after-label {
  right: 19%;
  top: 11.6%;
  width: 70px !important;
  height: 22px !important;
  object-fit: fill;
}

.preview-article .article-title {
  position: absolute;
  left: 50%;
  top: 75.6%;
  color: #0e0e0e;
  font-family: "Seymour One", sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  font-kerning: normal;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.preview-article .article-title span {
  display: block;
}

.preview-article .article-kicker {
  position: absolute;
  left: 30.7%;
  top: 68.4%;
  color: #777777;
  font-family: "Seymour One", sans-serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  font-kerning: normal;
  white-space: nowrap;
}

.preview-article .article-wow {
  left: 7%;
  bottom: 24%;
  width: 60px;
}

.preview-article .article-fire {
  right: 5%;
  bottom: 24%;
  width: 62px;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  transition: transform 420ms var(--motion-ease);
}

.work-card:hover .card-copy,
.work-card:focus-within .card-copy {
  transform: translate3d(0, -2px, 0);
}

.card-copy.compact {
  gap: 6px;
}

.card-copy.compact p {
  margin: 0;
  color: var(--body-text);
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-heading p {
  color: var(--body-text);
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.card-copy h3 span {
  color: var(--muted);
  font-weight: 400;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

li {
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.career-section {
  gap: 32px;
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.career-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(106px, 1fr);
  gap: 50px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.career-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dl {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

dt,
dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

dt {
  color: var(--muted);
}

dd {
  color: var(--text);
}

.company-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 90px;
  height: 90px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.company-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1120px, calc(100% - 48px));
  margin: 96px auto 64px;
}

.footer p {
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.scroll-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #e4e4e7;
  color: var(--text);
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 10px, 0);
  transition:
    background-color 160ms ease,
    opacity 180ms ease,
    transform 220ms var(--motion-ease);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: #d1d1d6;
}

.scroll-top:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.16);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .language-control {
    top: 32px;
    width: calc(100% - 32px);
  }

  .hero {
    margin-top: 56px;
  }

  .hero .button-row {
    margin-top: 40px;
  }

  .hero .contact-hover-group {
    margin-top: 40px;
  }

  .content {
    width: min(calc(100% - 32px), 520px);
    gap: 72px;
    margin-top: 96px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .work-card.single {
    grid-column: auto;
  }

  .preview {
    height: 260px;
    border-radius: 24px;
  }

  .career-item {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  dl div {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  dt,
  dd,
  .button-row a,
  .intro p {
    font-size: 16px;
  }

  .company-mark {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(calc(100% - 32px), 520px);
  }

  .scroll-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (min-width: 681px) and (max-width: 760px) {
  .content {
    width: calc(100% - 32px);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .preview {
    height: auto;
    aspect-ratio: 535 / 320;
  }
}

@media (max-width: 460px) {
  .intro p {
    white-space: normal;
  }

  .button-row {
    gap: 8px;
  }

  .button-row a {
    min-height: 34px;
    padding: 7px 8px;
  }

  .contact-popover {
    transform: translate3d(var(--popover-x), calc(var(--popover-y) + 8px), 0) scale(0.98);
  }

  .contact-card-resume {
    width: min(312px, calc(100vw - 32px));
  }

  .contact-card-telegram {
    width: min(340px, calc(100vw - 32px));
  }

  .career-item {
    grid-template-columns: 1fr;
  }

  .company-mark {
    justify-self: start;
  }
}

.case-page {
  display: flex;
  flex-direction: column;
  gap: 96px;
  width: min(1120px, calc(100% - 48px));
  margin: 96px auto;
}

.case-hero,
.case-section,
.case-result {
  display: flex;
  flex-direction: column;
}

.case-hero {
  gap: 32px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.breadcrumbs span {
  color: #d4d4d8;
}

.breadcrumbs span[aria-current="page"] {
  color: #111111;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--text);
}

.case-hero-layout,
.case-two-columns,
.case-process-row,
.case-solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 535px) minmax(0, 535px);
  gap: 50px;
  align-items: start;
}

.case-hero-layout {
  gap: 50px;
  align-items: center;
}

.case-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: min(535px, 100%);
}

.case-hero h1 {
  color: #111111;
  font-size: 56px;
  line-height: 1.05;
}

.case-hero-copy > p {
  width: min(513px, 100%);
  color: #52525b;
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--control);
  color: #111111;
  font-size: 14px;
  line-height: 1.1;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.case-tags span:hover {
  background: #111111;
  color: #ffffff;
}

.case-media {
  overflow: hidden;
  margin: 0;
  min-width: 0;
  border-radius: 24px;
  background: #f7f7f7;
}

.case-hero-media {
  height: 360px;
  border-radius: 12px;
}

.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.telegram-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-hero-media img {
  width: 171px;
  height: 171px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow:
    0 6px 12px -6px rgba(24, 39, 75, 0.12),
    0 8px 24px -4px rgba(24, 39, 75, 0.08);
}

.telegram-screens {
  gap: 24px;
}

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

.telegram-screen-grid figure {
  overflow: hidden;
  margin: 0;
  min-width: 0;
  aspect-ratio: 544 / 293;
  background: #f7f7f7;
}

.telegram-screen-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.case-stats div {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 12px;
  background: #f7f7f7;
}

.case-stats strong {
  color: #111111;
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.case-stats span {
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.2;
}

.case-section {
  gap: 32px;
}

.case-bordered {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.case-section h2,
.case-result h2 {
  color: #111111;
  font-size: 21px;
  line-height: 1.15;
}

.case-text-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.case-text-block h3,
.case-text-block h2 {
  font-size: 18px;
  line-height: 1.2;
}

.case-text-block p,
.case-text-block li {
  color: #52525b;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.case-text-block p {
  font-family: "Roboto Mono", monospace;
  letter-spacing: -0.02em;
}

.case-text-block ul {
  gap: 0;
  padding-left: 0;
  list-style: none;
}

.case-text-block li::before {
  content: "• ";
}

.process-stack,
.case-solution-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-process-row .case-media {
  height: 298px;
}

.solution-main {
  height: 320px;
}

.case-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.case-screen-grid img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 332px;
  object-fit: cover;
}

.case-result {
  gap: 24px;
  padding: 40px;
  border-radius: 24px;
  background: #f7f7f7;
}

.case-result h2::before {
  content: "✓";
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  vertical-align: 2px;
}

.case-result p {
  color: #3f3f46;
  font-family: "Readex Pro", "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.biobank-page .case-result h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.biobank-page .solution-main,
.biobank-page .solution-main img {
  border-radius: 0;
}

.biobank-page .case-result h2::before {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 0;
  background: center / contain no-repeat url("./assets/biobank-result-icon.svg");
  border-radius: 0;
  font-size: 0;
  vertical-align: middle;
}

.eb-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: #f7f7f7;
}

.eb-summary h2 {
  font-size: 21px;
  line-height: 1.05;
}

.eb-summary p {
  width: min(1066px, 100%);
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.2;
}

.eb-page .case-hero-layout {
  grid-template-columns: minmax(0, 560px) minmax(0, 535px);
  gap: 25px;
}

.eb-page .case-text-block {
  gap: 16px;
}

.eb-page .case-text-block h2 {
  font-size: 21px;
  line-height: 1.15;
}

.eb-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 544px;
  gap: 32px;
  align-items: start;
}

.eb-role figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.eb-role img {
  display: block;
  width: min(438px, 100%);
  height: auto;
}

.eb-feature-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eb-feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.eb-feature-intro img,
.eb-image-row img,
.eb-image-grid img,
.eb-single-image {
  display: block;
  width: 100%;
  height: auto;
}

.eb-image-row,
.eb-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.eb-single-image {
  width: min(530px, 100%);
}

.attestation-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 544px;
  gap: 32px;
  align-items: start;
}

.attestation-role figure {
  margin: 0;
}

.attestation-role img,
.attestation-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

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

.attestation-single-image {
  width: min(544px, 100%);
}

.sber-page {
  gap: 96px;
}

.sber-hero-layout {
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 25px;
}

.sber-hero-media {
  position: relative;
  height: 314px;
  background: linear-gradient(180deg, rgba(111, 242, 209, 0.2), rgba(175, 175, 175, 0.2));
}

.sber-hero-media img {
  width: 90.7%;
  height: 99.74%;
  margin: 0 auto;
  object-fit: fill;
}

.sber-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sber-role {
  gap: 16px;
}

.sber-role .case-text-block,
.sber-copy {
  width: min(960px, 100%);
}

.sber-role > img {
  display: block;
  width: min(1105px, 100%);
  height: auto;
  margin-top: 0;
}

.sber-copy {
  gap: 16px;
}

.sber-copy h2,
.sber-section h2 {
  font-size: 21px;
  line-height: 1.2;
}

.sber-copy ul {
  padding-left: 24px;
  list-style: disc;
}

.sber-copy li::before {
  content: none;
}

.sber-screen-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  width: 100%;
  min-height: 696px;
  padding: 96px 70px 0;
  overflow: hidden;
  background: #f7f7f7;
}

.sber-screen-duo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
}

.sber-registration-composite {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #f7f7f7;
}

.sber-registration-composite img {
  display: block;
  width: 100%;
  height: auto;
}

.sber-registration-grid {
  display: none;
  width: 100%;
  padding: 97px 77px;
  background: #f7f7f7;
}

.sber-registration-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-page img.is-zoomable {
  cursor: zoom-in;
}

.case-page img.is-zoomable:focus-visible {
  outline: 2px solid rgba(24, 24, 27, 0.28);
  outline-offset: 4px;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(24, 24, 27, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  cursor: zoom-out;
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.975);
  transition:
    opacity 200ms ease,
    transform 260ms var(--motion-ease);
}

.image-lightbox.is-open .image-lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.image-lightbox-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms var(--motion-ease);
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.image-lightbox-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.image-lightbox-close:active {
  transform: scale(0.96);
}

.image-lightbox-close span::before,
.image-lightbox-close span::after {
  position: absolute;
  top: 19px;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.image-lightbox-close span::before {
  transform: rotate(45deg);
}

.image-lightbox-close span::after {
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox,
  .image-lightbox-image {
    transition: none;
  }
}

@media (max-width: 900px) {
  .case-page {
    width: min(calc(100% - 32px), 640px);
    gap: 72px;
    margin-top: 56px;
    overflow-x: hidden;
  }

  .case-page * {
    max-width: 100%;
  }

  .case-hero-layout,
  .case-two-columns,
  .case-process-row,
  .case-solution-layout,
  .case-screen-grid,
  .eb-role,
  .eb-feature-intro,
  .eb-image-row,
  .eb-image-grid,
  .attestation-role,
  .attestation-gallery,
  .telegram-screen-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sber-screen-duo,
  .sber-registration-grid {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .sber-screen-duo {
    min-height: 0;
  }

  .case-hero-layout,
  .case-two-columns,
  .case-process-row,
  .case-solution-layout {
    display: flex;
    flex-direction: column;
  }

  .case-hero-copy,
  .case-hero-copy > p,
  .case-text-block,
  .case-text-block p,
  .case-text-block ul,
  .case-text-block li,
  .eb-role,
  .attestation-role {
    width: 100%;
  }

  .case-hero h1 {
    font-size: 42px;
  }

  .case-hero-media,
  .case-process-row .case-media,
  .solution-main {
    height: auto;
    aspect-ratio: 535 / 320;
  }

  .case-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-screen-grid img {
    height: auto;
  }
}

@media (max-width: 520px) {
  .case-page {
    width: calc(100% - 32px);
    gap: 56px;
  }

  .case-hero h1 {
    font-size: 34px;
  }

  .case-stats {
    grid-template-columns: 1fr;
  }

  .case-result {
    padding: 24px;
  }

  .case-tags {
    gap: 8px;
  }

  .case-tags span {
    font-size: 13px;
  }
}
