html.lang-pending body {
  visibility: hidden;
}

html.lang-pending .language-btn-track,
html.lang-pending .hero-language-btn .language-btn-track {
  transition: none;
}

:root {
  --sds-color-background-default-default: #ffffff;
  --sds-color-background-default-secondary: #f5f5f5;
  --sds-color-background-utilities-scrim: rgba(255, 255, 255, 0.8);
  --sds-color-border-default-default: #d9d9d9;
  --sds-color-border-utilities-swatch: #0000003d;
  --sds-color-border-brand-default: #2c2c2c;
  --sds-color-background-brand-default: #2c2c2c;
  --sds-color-text-default-default: #1e1e1e;
  --sds-color-text-default-secondary: #757575;
  --sds-color-text-neutral-default: #303030;
  --sds-color-text-neutral-secondary: #5a5a5a;
  --sds-color-text-brand-on-brand: #f5f5f5;
  --sds-color-slate-200: #e3e3e3;
  --sds-color-background-brand-tertiary: #f5f5f5;
  --sds-color-background-brand-tertiary-hover: #e3e3e3;
  --sds-color-text-brand-on-brand-secondary: #1e1e1e;
  --sds-icon-filter: none;

  --sds-size-space-0: 0px;
  --sds-size-space-200: 8px;
  --sds-size-space-300: 12px;
  --sds-size-space-400: 16px;
  --sds-size-space-600: 24px;
  --sds-size-space-800: 32px;
  --sds-size-space-100: 4px;
  --sds-size-space-1200: 48px;
  --sds-size-space-1600: 64px;
  --sds-size-space-2400: 96px;
  --sds-size-space-2800: 112px;
  --mobile-dock-bar-height: calc(
    var(--sds-size-space-200) * 2 + var(--sds-size-space-1200) + var(--sds-size-stroke-border) * 2
  );
  --mobile-dock-lang-gap: var(--sds-size-space-600);
  --sds-size-space-4000: 160px;
  --sds-color-text-utilities-text-on-overlay: #0c0c0d;

  --sds-size-padding-lg: 16px;
  --sds-size-radius-200: 8px;
  --sds-size-radius-full: 9999px;
  --sds-size-stroke-border: 1px;
  --sds-size-blur-100: 2px;

  --sds-typography-title-page-size-base: 48px;
  --sds-typography-heading-size-base: 24px;
  --sds-typography-subheading-size-medium: 20px;
  --sds-typography-body-size-medium: 16px;
  --sds-typography-title-page-font-weight: 400;
  --sds-typography-heading-font-weight: 600;
  --sds-typography-body-font-weight-regular: 400;
  --sds-typography-body-font-weight-strong: 600;

  --control-motion-duration: 0.2s;
  --control-motion-easing: ease;

  /* Arrow up-right (Figma SDS) — mask so color follows currentColor */
  --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 9.47397H10.6404V4.3212L3.96155 11L3 10.0384L9.6788 3.35965H4.52603V2H12V9.47397Z' fill='%23000'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--sds-color-background-default-default);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--sds-color-text-default-default);
  background: var(--sds-color-background-default-default);
}

html.theme-dark {
  --sds-color-text-utilities-text-on-overlay: #f5f5f5;
  color-scheme: dark;
  --sds-color-background-default-default: #111111;
  --sds-color-background-default-secondary: #2c2c2c;
  --sds-color-background-utilities-scrim: rgba(17, 17, 17, 0.85);
  --sds-color-border-default-default: #333333;
  --sds-color-border-utilities-swatch: #ffffff3d;
  --sds-color-border-brand-default: #f5f5f5;
  --sds-color-background-brand-default: #f5f5f5;
  --sds-color-text-default-default: #f5f5f5;
  --sds-color-text-default-secondary: #a3a3a3;
  --sds-color-text-neutral-default: #ededed;
  --sds-color-text-brand-on-brand: #111111;
  --sds-color-slate-200: #2a2a2a;
  --sds-color-background-brand-tertiary: #2a2a2a;
  --sds-color-background-brand-tertiary-hover: #383838;
  --sds-color-text-brand-on-brand-secondary: #f5f5f5;
  --sds-icon-filter: brightness(0) invert(1);
  --sds-color-background-default-secondary-hover: #383838;
  --sds-color-background-positive-secondary: #02542d;
  --sds-color-background-positive-secondary-hover: #024023;
  --sds-color-text-positive-on-positive-secondary: #ebffee;
  --sds-color-background-warning-secondary: #bf6a02;
  --sds-color-background-warning-secondary-hover: #975102;
  --sds-color-text-warning-on-warning: #fff9e0;
  --background-orange-secondary: #c2410c;
  --background-blue-secondary: #1e40af;
  --background-pink-secondary: #8a226f;
  --background-purple-secondary: #5b21b6;
  --text-orange-on-orange-secondary: #fffaf2;
  --text-blue-on-blue-secondary: #f5f9ff;
  --text-pink-on-pink-secondary: #fcf1fd;
  --text-purple-on-purple-secondary: #f6f4fe;
  --tag-hero-blue-hover: #1e3a8a;
  --tag-hero-orange-hover: #9a3412;
  --tag-hero-pink-hover: #57184a;
  --tag-hero-purple-hover: #4c1d95;
  --sds-color-background-danger-secondary: #900b09;
  --sds-color-background-danger-secondary-hover: #690807;
  --sds-color-text-danger-on-danger-secondary: #fee9e7;
  --background-orange-secondary-hover: #9a3412;
  --background-blue-secondary-hover: #1e3a8a;
  --background-pink-secondary-hover: #57184a;
  --background-purple-secondary-hover: #4c1d95;
}

.home {
  width: 1200px;
  margin: 0 auto;
  position: relative;
  background: var(--sds-color-background-default-default);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sds-size-space-200) var(--sds-size-space-800);
  border-bottom: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
  background: var(--sds-color-background-utilities-scrim);
  backdrop-filter: blur(var(--sds-size-blur-100));
}

.topbar-nav {
  display: flex;
  gap: var(--sds-size-space-200);
  align-items: center;
}

.topbar-nav > a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
  height: 728px;
  padding: var(--sds-size-space-4000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sds-size-space-800);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 245, 245, 0.9), rgba(255, 255, 255, 0.2) 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.hero-overlay {
  display: none;
}

.hero-title,
.hero-subtitle,
.hero-links {
  position: relative;
  z-index: 1;
}

.hero-title {
  order: 1;
  margin: 0;
  text-align: center;
  font-size: var(--sds-typography-title-page-size-base);
  font-weight: var(--sds-typography-title-page-font-weight);
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.hero-subtitle {
  display: none;
  order: 2;
  margin: 0;
  text-align: center;
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1.4;
  color: var(--sds-color-text-default-secondary);
}

.hero-links {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sds-size-space-400);
}

.hero-links .pill {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sds-color-text-neutral-default);
  font-weight: var(--sds-typography-body-font-weight-regular);
  text-decoration: none;
  cursor: pointer;
}

.works {
  padding: var(--sds-size-space-1600);
  display: grid;
  gap: var(--sds-size-space-1200);
  scroll-margin-top: 73px;
}

h2 {
  margin: 0;
  font-size: var(--sds-typography-heading-size-base);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: var(--sds-typography-heading-font-weight);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: var(--sds-size-space-1600);
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  min-height: 360px;
  border: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
  border-radius: var(--sds-size-radius-200);
  padding: var(--sds-size-space-400);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--sds-color-text-default-secondary);
  background:
    linear-gradient(var(--sds-color-slate-200), var(--sds-color-slate-200)),
    url("./assets/icons/image-placeholder.svg")
      center/contain no-repeat;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-link:focus-visible .card {
  outline: 2px solid var(--sds-color-border-brand-default);
  outline-offset: 2px;
}

.about-accordion {
  padding: var(--sds-size-space-1600);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--sds-size-space-1600);
  scroll-margin-top: 73px;
}

.about-col,
.accordion-col {
  display: grid;
  gap: var(--sds-size-space-600);
}

.about-col > h2 {
  height: 29px;
}

.about-col > p {
  height: fit-content;
}

.accordion-col {
  height: auto;
  vertical-align: top;
  row-gap: var(--sds-size-space-200);
  column-gap: var(--sds-size-space-200);
}

.about-col p,
.accordion p {
  margin: 0;
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1.4;
}

.accordion details {
  border-bottom: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
  padding: var(--sds-size-padding-lg) 0;
  padding-right: var(--sds-size-space-400);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 100px 1fr 20px;
  align-items: center;
  gap: var(--sds-size-space-400);
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1.4;
  font-weight: var(--sds-typography-body-font-weight-strong);
  transition: color 0.2s ease;
}

.accordion summary span:first-child {
  white-space: nowrap;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  width: 20px;
  height: 20px;
  justify-self: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  background-image:
    url("./assets/icons/chevron-down.svg");
  filter: var(--sds-icon-filter);
}

.accordion details[open] summary::after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  background-image:
    url("./assets/icons/chevron-up.svg");
  filter: var(--sds-icon-filter);
}

.accordion .accordion-text {
  padding-top: var(--sds-size-space-200);
}

.footer {
  padding: var(--sds-size-space-1200) var(--sds-size-space-1600);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sds-size-space-200);
}

.footer-link {
  border-radius: var(--sds-size-radius-full);
  padding: var(--sds-size-space-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sds-size-space-200);
  text-decoration: none;
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  color: var(--sds-color-text-default-default);
  transition: background-color 0.2s ease;
}

.footer-link-icon-slot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link-icon {
  display: block;
  object-fit: contain;
  object-position: center;
  filter: var(--sds-icon-filter);
}

.footer-link-icon-telegram {
  width: 16px;
  height: 16px;
}

.footer-link-icon-mail {
  width: 16px;
  height: 16px;
}

.footer-link-icon-linkedin {
  width: 16px;
  height: 16px;
}

.pill,
.btn-ghost,
.btn-solid {
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sds-size-radius-full);
  padding: var(--sds-size-space-300);
  text-decoration: none;
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn-ghost,
.btn-solid {
  padding: var(--sds-size-space-300) var(--sds-size-space-400);
}

.pill,
.btn-ghost {
  color: var(--sds-color-text-neutral-default);
}

.btn-solid {
  background: var(--sds-color-border-brand-default);
  color: var(--sds-color-text-brand-on-brand);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--sds-size-radius-full);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background-color var(--control-motion-duration) var(--control-motion-easing),
    transform var(--control-motion-duration) var(--control-motion-easing);
}

.icon-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: center / contain no-repeat
    url("./assets/icons/sun.svg");
  filter: var(--sds-icon-filter);
  transform-origin: center;
  transition: transform var(--control-motion-duration) var(--control-motion-easing);
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: var(--sds-size-space-600);
  z-index: 100;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--sds-size-space-200);
  padding: var(--sds-size-space-200);
  border: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
  border-radius: var(--sds-size-radius-full);
  background: var(--sds-color-background-utilities-scrim);
  backdrop-filter: blur(var(--sds-size-blur-100));
}

.mobile-dock-home,
.mobile-dock-theme {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  padding: var(--sds-size-space-300);
  border: 0;
  border-radius: var(--sds-size-radius-full);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.mobile-dock-home-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.mobile-dock-home-icon img,
.mobile-dock-theme img {
  width: 20px;
  height: 20px;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  filter: var(--sds-icon-filter);
}

.mobile-dock-link {
  width: fit-content;
  flex-shrink: 0;
}

.mobile-dock .btn-ghost,
.mobile-dock .btn-solid {
  border: var(--sds-size-stroke-border) solid transparent;
  min-height: 48px;
  height: 48px;
  padding: var(--sds-size-space-400);
}

.mobile-dock .btn-solid {
  border-color: var(--sds-color-border-brand-default);
}

.mobile-only {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover,
  .pill:hover,
  .icon-btn:hover,
  .mobile-dock-home:hover,
  .mobile-dock-theme:hover,
  .footer-link:hover {
    background: var(--sds-color-background-default-secondary);
  }

  .topbar-nav .btn-ghost:hover,
  .mobile-dock .btn-ghost.mobile-dock-link:hover {
    background: rgba(12, 12, 13, 0.1);
  }

  .icon-btn:hover::before {
    transform: rotate(45deg);
  }

  .hero-links .pill:hover {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  .btn-solid:hover {
    transform: translateY(-1px);
    background: var(--sds-color-text-neutral-default);
  }

  .topbar-nav .btn-solid:hover,
  .mobile-dock .btn-solid:hover {
    transform: none;
  }

  .accordion summary:hover {
    color: var(--sds-color-text-default-secondary);
  }
}

@media (max-width: 1199px) {
  .home {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-dock.mobile-only {
    display: flex;
  }

  .footer.footer--mobile.mobile-only {
    display: flex;
  }

  .works {
    padding: var(--sds-size-space-600);
    gap: var(--sds-size-space-600);
  }

  .about-accordion {
    padding: var(--sds-size-space-600);
    gap: var(--sds-size-space-600);
  }

  .cards {
    grid-template-columns: 1fr;
    gap: var(--sds-size-space-600);
  }

  .card {
    min-height: 327px;
    aspect-ratio: 1 / 1;
  }

  .about-accordion {
    grid-template-columns: 1fr;
  }

  .accordion summary {
    grid-template-columns: 90px 1fr 20px;
  }
}

/* pf-4: Halftone Homepage + Portfolio Design System */
:root {
  --portfolio-checker-image-url: url("./assets/icons/image-placeholder.svg");
  --sds-color-background-default-secondary-hover: #e6e6e6;
  --sds-color-text-default-tertiary: #b3b3b3;
  --sds-color-background-positive-secondary: #cff7d3;
  --sds-color-background-warning-secondary: #ffefb8;
  --sds-color-background-warning-secondary-hover: #ffe79e;
  --sds-color-background-positive-secondary-hover: #aff4c6;
  --sds-color-background-danger-secondary: #fdd3d0;
  --sds-color-background-danger-secondary-hover: #ffc2be;
  --sds-color-text-positive-on-positive-secondary: #02542d;
  --sds-color-text-warning-on-warning: #401b01;
  --sds-color-text-danger-on-danger-secondary: #900b09;
  --sds-color-text-disabled-on-disabled: #b3b3b3;
  --sds-size-depth-0: 0px;
  --sds-size-depth-negative-025: -1px;
  --sds-size-depth-100: 4px;
  --background-orange-secondary: #fee6cb;
  --background-orange-secondary-hover: #fddab6;
  --background-blue-secondary: #d6e8ff;
  --background-blue-secondary-hover: #c5e0fd;
  --background-pink-secondary: #fadcfa;
  --background-pink-secondary-hover: #f5c4ef;
  --background-purple-secondary: #e5e0fe;
  --background-purple-secondary-hover: #d9cffd;
  --text-orange-on-orange-secondary: #9a3412;
  --text-blue-on-blue-secondary: #1e40af;
  --text-pink-on-pink-secondary: #8a226f;
  --text-purple-on-purple-secondary: #5b21b6;
  --tag-hero-blue-hover: #c5e0fd;
  --tag-hero-orange-hover: #fddab6;
  --tag-hero-pink-hover: #f5c4ef;
  --tag-hero-purple-hover: #d9cffd;
  --layout-topbar-height: calc(var(--sds-size-space-200) * 2 + 40px + var(--sds-size-stroke-border));

  /* SDS responsive device-width (tokens.json): mobile 375, tablet 768, desktop 1200 */
  --sds-device-width-mobile: 375;
  --sds-device-width-tablet: 768;
  --sds-device-width-desktop: 1200;

  /*
   * BURO SP tiles — frozen PF-System sds_light / sds_dark (PF-Design 747:33987 / 750:38817).
   * Hover = opposite theme secondary bg + icon/border token (not secondary-hover).
   */
  --sp-danger-bg-light: #fdd3d0; /* background-danger-secondary, sds_light */
  --sp-danger-bg-dark: #900b09; /* background-danger-secondary, sds_dark (PF-Design) */
  --sp-danger-icon-light: #ec221f; /* border-danger-tertiary */
  --sp-danger-icon-dark: #ec221f;

  --sp-orange-bg-light: #fee6cb; /* background-orange-secondary */
  --sp-orange-bg-dark: #c2410c;
  --sp-orange-icon-light: #ea580c; /* border-orange-secondary */
  --sp-orange-icon-dark: #fb923c;

  --sp-default-bg-light: #f5f5f5; /* background-default-secondary */
  --sp-default-bg-dark: #2c2c2c;
  --sp-default-icon-light: #383838; /* border-default-tertiary */
  --sp-default-icon-dark: #b3b3b3;

  --sp-disabled-icon-light: #b3b3b3; /* border-disabled-default */
  --sp-disabled-icon-dark: #444444;

  --sp-positive-bg-light: #cff7d3; /* background-positive-secondary */
  --sp-positive-bg-dark: #02542d;
  --sp-positive-icon-light: #14ae5c; /* border-positive-tertiary */
  --sp-positive-icon-dark: #009951;

  --sp-warning-bg-light: #ffefb8; /* background-warning-secondary */
  --sp-warning-bg-dark: #bf6a02;
  --sp-warning-icon-light: #975102; /* icon-warning-secondary */
  --sp-warning-icon-dark: #e8b931;

  --sp-blue-bg-light: #d6e8ff; /* background-blue-secondary */
  --sp-blue-bg-dark: #1e40af;
  --sp-blue-icon-light: #3b82f6; /* border-blue-tertiary */
  --sp-blue-icon-dark: #60a5fa; /* border-blue-secondary, sds_dark */

  --sp-purple-bg-light: #e5e0fe; /* background-purple-secondary */
  --sp-purple-bg-dark: #5b21b6;
  --sp-purple-icon-light: #7c3aed; /* border-purple-secondary */
  --sp-purple-icon-dark: #a78bfa;

  --sp-pink-bg-light: #fadcfa; /* background-pink-secondary */
  --sp-pink-bg-dark: #8a226f;
  --sp-pink-icon-light: #ea3fb8; /* border-pink-tertiary */
  --sp-pink-icon-dark: #d732a8;
}

::selection {
  background-color: var(--sds-color-background-brand-default);
  color: var(--sds-color-text-brand-on-brand);
}

::-moz-selection {
  background-color: var(--sds-color-background-brand-default);
  color: var(--sds-color-text-brand-on-brand);
}

.topbar {
  gap: var(--sds-size-space-400);
}

.brand,
.topbar-options {
  width: 240px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: var(--sds-size-space-200);
  color: var(--sds-color-text-default-default);
  text-decoration: none;
  font-weight: var(--sds-typography-body-font-weight-strong);
  line-height: 1.4;
}

.brand-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon {
  position: relative;
  overflow: hidden;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  width: 20px;
  height: 20px;
}

.brand-icon img {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  transform-origin: center center;
  filter: var(--sds-icon-filter);
}

@keyframes brand-icon-wobble {
  0% {
    transform: rotate(0deg);
  }

  18% {
    transform: rotate(-14deg);
  }

  38% {
    transform: rotate(12deg);
  }

  58% {
    transform: rotate(-7deg);
  }

  78% {
    transform: rotate(4deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.contact-icon-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.contact-icon-glyph img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: var(--sds-icon-filter);
}

.contact-icon-glyph--linkedin {
  width: 14.934px;
  height: 14.934px;
}

.contact-icon-glyph--telegram {
  width: 14.934px;
  height: 14.933px;
}

.contact-icon-glyph--mail {
  width: 14.934px;
  height: 12.267px;
}

.topbar-nav {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.topbar-nav > a {
  width: fit-content;
}

.topbar-options {
  justify-content: flex-end;
  gap: var(--sds-size-space-200);
  padding-left: 82px;
}

.icon-btn::before {
  background-image: url("./assets/icons/sun.svg");
}

.language-btn {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: var(--sds-size-radius-full);
  padding: 0;
  background: transparent;
  color: var(--sds-color-text-neutral-default);
  font: inherit;
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--control-motion-duration) var(--control-motion-easing);
}

.language-btn-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.language-btn-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform var(--control-motion-duration) var(--control-motion-easing);
}

.language-btn[data-lang="en"] .language-btn-track,
.hero-language-btn[data-lang="en"] .language-btn-track {
  transform: translateX(0);
}

.language-btn[data-lang="ru"] .language-btn-track,
.hero-language-btn[data-lang="ru"] .language-btn-track {
  transform: translateX(-50%);
}

.language-btn-text {
  flex: 0 0 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.language-btn .language-btn-text {
  width: 40px;
  min-width: 40px;
}

.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 767px;
  padding: 160px var(--sds-size-space-1600) 160px;
  background-color: var(--sds-color-background-default-default);
  background-image: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sds-size-space-800);
  box-sizing: border-box;
}

.hero-tags-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.hero-tag.tag {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: var(--sds-size-space-200);
  gap: var(--sds-size-space-200);
  align-items: center;
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(4px);
  transition:
    opacity var(--control-motion-duration) var(--control-motion-easing),
    filter var(--control-motion-duration) var(--control-motion-easing),
    transform var(--control-motion-duration) var(--control-motion-easing),
    background-color var(--control-motion-duration) var(--control-motion-easing);
  will-change: opacity, filter, transform;
}

.hero-tag.is-entered {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero-tag.is-exiting {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(4px);
  pointer-events: none;
}

.hero-tag__label {
  display: block;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
}

.hero-tag__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--sds-size-radius-200);
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-tag__remove-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-tag__remove:hover,
.hero-tag__remove:focus-visible {
  background: transparent;
  outline: none;
}

.hero > .hero-language-btn,
.hero > .hero-body,
.hero > .hero-contact-links-wrap {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero > .hero-body {
    order: 1;
  }

  .hero > .hero-contact-links-wrap {
    order: 2;
  }
}

.hero-contact-links-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sds-size-space-800);
  width: 100%;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sds-size-space-800);
  height: fit-content;
  width: 100%;
  max-width: 544px;
}

.hero-heading > .hero-subtitle,
.hero-heading > .hero-title {
  order: unset;
}

.hero-heading > .hero-subtitle {
  display: none;
  margin: 0;
  text-align: center;
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1.4;
  color: var(--sds-color-text-utilities-text-on-overlay);
}

.hero-language-btn {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: var(--sds-size-space-200);
  padding: var(--sds-size-space-300);
  border: 0;
  border-radius: var(--sds-size-radius-full);
  background: var(--sds-color-background-brand-tertiary);
  color: var(--sds-color-text-brand-on-brand-secondary);
  font-family: "Inter", sans-serif;
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-shadow: none;
  transition: background-color var(--control-motion-duration) var(--control-motion-easing);
  overflow: hidden;
}

.hero-language-btn .language-btn-viewport {
  width: 40px;
  min-width: 40px;
  overflow: hidden;
}

.hero-language-btn .language-btn-text {
  flex-shrink: 0;
  color: var(--sds-color-text-brand-on-brand-secondary);
}

.hero-language-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-language-icon img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: none;
}

html.theme-dark .hero-language-icon img {
  filter: var(--sds-icon-filter);
}

.hero-portrait {
  width: 176px;
  height: 176px;
  min-width: 160px;
  min-height: 160px;
  border: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
  border-radius: var(--sds-size-radius-200);
  overflow: hidden;
  background: var(--sds-color-slate-200);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.hero .hero-title {
  order: unset;
  margin: 0;
  max-width: 544px;
  min-width: 0;
  width: fit-content;
  text-align: center;
  font-size: var(--sds-typography-heading-size-base);
  font-weight: var(--sds-typography-heading-font-weight);
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: pre-line;
  color: var(--sds-color-text-utilities-text-on-overlay);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.hero .hero-contact-links {
  order: unset;
}

.contact-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--sds-size-space-400);
}

.hero-contact-links {
  gap: var(--sds-size-space-200);
}

.contact-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sds-size-space-200);
  border-radius: var(--sds-size-radius-full);
  padding: var(--sds-size-space-300);
  color: var(--sds-color-text-neutral-default);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.contact-link > span:not(.contact-icon) {
  line-height: 1;
  transform: translateY(0.5px);
}

.contact-link-linkedin {
  width: 112px;
}

.contact-link-telegram {
  width: 120px;
}

.contact-link-mail {
  width: 80px;
}

.contact-link-mail.is-copied {
  background: var(--sds-color-background-default-secondary);
}

.contact-mail-toast {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  width: fit-content;
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sds-size-space-200);
  padding: var(--sds-size-space-400) var(--sds-size-space-400) var(--sds-size-space-400) var(--sds-size-space-300);
  border-radius: var(--sds-size-radius-full);
  background: var(--sds-color-background-brand-default);
  color: var(--sds-color-text-brand-on-brand);
  --contact-mail-toast-icon-filter: brightness(0) invert(1);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity var(--control-motion-duration) var(--control-motion-easing),
    filter var(--control-motion-duration) var(--control-motion-easing),
    transform var(--control-motion-duration) var(--control-motion-easing);
  will-change: opacity, filter, transform;
}

html.theme-dark .contact-mail-toast {
  --contact-mail-toast-icon-filter: brightness(0);
}

.contact-mail-toast__text {
  line-height: 1;
  transform: translateY(0.5px);
}

.contact-mail-toast .contact-icon-glyph img {
  filter: var(--contact-mail-toast-icon-filter);
}

.contact-icon-glyph--check {
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.contact-mail-toast--anchor-desktop,
.contact-mail-toast--anchor-mobile {
  transform: translateY(8px);
}

.contact-mail-toast.is-visible {
  opacity: 1;
  filter: blur(0);
}

.contact-mail-toast--anchor-desktop.is-visible,
.contact-mail-toast--anchor-mobile.is-visible {
  transform: translateY(0);
}

.works {
  width: 100%;
  box-sizing: border-box;
  padding: var(--sds-size-space-1600);
  display: block;
  scroll-margin-top: 57px;
}

.checker-grid {
  width: 1072px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-end;
  align-content: flex-start;
  align-items: stretch;
  gap: var(--sds-size-space-200);
}

.checker-card {
  width: 352px;
  flex: 0 0 352px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}

.home .works .checker-card--placeholder {
  cursor: default;
  pointer-events: none;
}

.home .works .checker-card--placeholder .checker-image {
  pointer-events: auto;
  cursor: default;
  border-color: transparent;
}

.home .works .checker-card--placeholder .checker-image::after {
  transform-origin: center center;
}

.home .works .checker-image--placeholder {
  position: relative;
  overflow: hidden;
  background: var(--sds-color-background-default-secondary);
}

.home .works .checker-image--placeholder::after {
  display: none;
}

.home .works .checker-image--placeholder .checker-image-base {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sds-color-background-default-secondary);
}

.home .works .checker-image--placeholder .checker-icon {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  mask-image: var(--checker-placeholder-icon);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: var(--checker-placeholder-icon);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  background-color: var(--sds-color-background-default-secondary-hover);
  transform-origin: center center;
  opacity: 1;
}

@keyframes checker-placeholder-wobble {
  0% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-10px);
  }

  38% {
    transform: translateX(8px);
  }

  58% {
    transform: translateX(-5px);
  }

  78% {
    transform: translateX(3px);
  }

  100% {
    transform: translateX(0);
  }
}

.home .works .checker-card--placeholder.checker-card--wobble .checker-image--placeholder .checker-icon {
  animation: checker-placeholder-wobble 0.48s cubic-bezier(0.33, 1, 0.45, 1);
}

/* Desktop 1200 — Card Grid Checker (homepage Works only) */
.home .works .checker-card[data-card="6"] {
  width: 176px;
  flex: 0 0 176px;
}

.home .works .checker-card[data-card="6"] .checker-copy {
  display: none;
}

.checker-image {
  position: relative;
  width: 176px;
  height: 176px;
  min-width: 176px;
  min-height: 176px;
  flex: 0 0 176px;
  display: block;
  border: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
  border-radius: var(--sds-size-radius-200);
  background: var(--sds-color-slate-200);
  overflow: hidden;
}

/* SVG mask sources default to luminance in Firefox: black fill = invisible. */
.checker-icon {
  display: block;
}

@supports (-moz-appearance: none) {
  .checker-icon {
    mask-mode: alpha;
  }
}

.checker-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--portfolio-checker-image-url) center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity var(--control-motion-duration) var(--control-motion-easing);
}

.home .works .checker-image img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform var(--control-motion-duration) var(--control-motion-easing);
}

.home .works .checker-image:has(img)::after {
  z-index: 1;
  background-color: transparent;
  background-image: var(--checker-image-hover-url, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: none;
}

.home .works .checker-image--gm {
  --checker-image-hover-url: none;
}

.home .works .checker-image--ai {
  --checker-image-hover-url: none;
}

.home .works .checker-image--vf {
  --checker-image-hover-url: none;
}

.home .works .checker-image--vs {
  --checker-image-hover-url: none;
}

.home .works .checker-image--sp {
  --checker-image-hover-url: none;
}

.home .works .checker-image--gm::after {
  display: none;
}

.home .works .checker-image--ai::after {
  display: none;
}

.home .works .checker-image--vf::after {
  display: none;
}

.home .works .checker-image--vs::after {
  display: none;
}

.home .works .checker-image--sp::after {
  display: none;
}

.home .works .checker-image--gm .checker-image-hover {
  opacity: 0;
}

.home .works .checker-image--ai .checker-image-hover {
  opacity: 0;
}

.home .works .checker-image--vf .checker-image-hover {
  opacity: 0;
}

.home .works .checker-image--vs .checker-image-hover {
  opacity: 0;
}

.home .works .checker-image--sp .checker-image-hover {
  opacity: 0;
}

.home .works .checker-card:hover .checker-image--gm .checker-image-base {
  opacity: 0;
}

.home .works .checker-card:hover .checker-image--ai .checker-image-base {
  opacity: 0;
}

.home .works .checker-card:hover .checker-image--vf .checker-image-base {
  opacity: 0;
}

.home .works .checker-card:hover .checker-image--vs .checker-image-base {
  opacity: 0;
}

.home .works .checker-card:hover .checker-image--sp .checker-image-base {
  opacity: 0;
}

.home .works .checker-card:hover .checker-image--gm .checker-image-hover {
  opacity: 1;
}

.home .works .checker-card:hover .checker-image--ai .checker-image-hover {
  opacity: 1;
}

.home .works .checker-card:hover .checker-image--vf .checker-image-hover {
  opacity: 1;
}

.home .works .checker-card:hover .checker-image--vs .checker-image-hover {
  opacity: 1;
}

.home .works .checker-card:hover .checker-image--sp .checker-image-hover {
  opacity: 1;
}

.checker-copy {
  min-width: 160px;
  align-self: stretch;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sds-size-space-100);
  padding: var(--sds-size-space-400);
}

.checker-copy strong {
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: var(--sds-typography-heading-font-weight);
  line-height: 1.2;
  color: var(--sds-color-text-default-default);
}

.checker-meta {
  position: relative;
  display: block;
  overflow: visible;
  height: calc(var(--sds-typography-body-size-medium) * 1.4);
  min-height: calc(var(--sds-typography-body-size-medium) * 1.4);
}

.checker-subtitle {
  display: block;
  color: var(--sds-color-text-default-secondary);
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1.4;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity var(--control-motion-duration) var(--control-motion-easing),
    transform var(--control-motion-duration) var(--control-motion-easing);
}

.checker-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--sds-size-space-200);
  color: var(--sds-color-text-default-default);
  font-size: var(--sds-typography-body-size-medium);
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  transition:
    opacity var(--control-motion-duration) var(--control-motion-easing),
    transform var(--control-motion-duration) var(--control-motion-easing);
}

.checker-cta-icon {
  display: none;
}

.about-section {
  width: 100%;
  padding: var(--sds-size-space-1600);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sds-size-space-1600);
  scroll-margin-top: 57px;
}

.about-col,
.experience-col {
  flex: 1 1 0;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--sds-size-space-600);
}

.experience-col {
  align-items: center;
}

.experience-col > h2,
.experience-item {
  width: 100%;
}

.about-col p,
.about-col .tag-groups,
.experience-role p {
  margin: 0;
  line-height: 1.4;
}

.about-col > p {
  margin-bottom: var(--sds-size-space-400);
}

.tag-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: var(--sds-size-space-200);
  border-radius: var(--sds-size-radius-200);
  padding: var(--sds-size-space-200);
  background: var(--sds-color-background-default-secondary);
  color: var(--sds-color-text-default-default);
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.about-col .tag-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.tag-group .tag {
  cursor: default;
}

.about-col .tag-groups.is-anim-ready .tag-group .tag {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(4px);
  transition:
    opacity var(--control-motion-duration) var(--control-motion-easing),
    filter var(--control-motion-duration) var(--control-motion-easing),
    transform var(--control-motion-duration) var(--control-motion-easing),
    background-color var(--control-motion-duration) var(--control-motion-easing);
  will-change: opacity, filter, transform;
}

.about-col .tag-groups.is-launched .tag-group .tag.is-entered {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.about-col .tag-groups.is-launched .tag-group .tag.is-enter-done {
  transition: background-color var(--control-motion-duration) var(--control-motion-easing);
  transition-delay: 0ms;
  will-change: auto;
}

.experience-col a.tag {
  text-decoration: none;
  cursor: pointer;
}

.experience-col a.tag:focus-visible {
  outline: 2px solid var(--sds-color-border-brand-default);
  outline-offset: 2px;
}

/* External link arrow — SVG mask (Inter lacks ↗ glyph) */
.link-external::after {
  content: "";
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat;
  mask: var(--icon-arrow-up-right) center / contain no-repeat;
}

.experience-col .tag.link-external {
  gap: 4px;
}

.checker-cta .link-external {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sds-size-space-600);
  height: fit-content;
  padding-bottom: var(--sds-size-space-600);
  border-bottom: var(--sds-size-stroke-border) solid var(--sds-color-border-default-default);
}

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

.experience-role,
.experience-item .tag-list {
  flex: 1 1 0;
  min-width: 180px;
}

.experience-role {
  display: flex;
  flex-direction: column;
  gap: var(--sds-size-space-200);
}

.experience-heading {
  display: flex;
  flex-direction: column;
  gap: var(--sds-size-space-100);
}

.experience-role h3 {
  margin: 0;
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-strong);
  line-height: 1.4;
}

.experience-meta-block {
  display: flex;
  flex-direction: column;
  gap: var(--sds-size-space-100);
  height: fit-content;
}

.experience-meta-block .experience-meta {
  line-height: 1.25;
  height: fit-content;
}

.experience-meta {
  margin: 0;
  font-size: var(--sds-typography-body-size-medium);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1.4;
  color: var(--sds-color-text-default-secondary);
}

.experience-meta-suffix {
  color: var(--sds-color-text-default-secondary);
}

.experience-meta-link {
  color: var(--sds-color-text-default-secondary);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.experience-meta-link:hover,
.experience-meta-link:focus-visible {
  color: #000000;
  text-decoration: none;
  background: transparent;
}

html.theme-dark .experience-meta-link:hover,
html.theme-dark .experience-meta-link:focus-visible {
  color: #ffffff;
}

.muted {
  color: var(--sds-color-text-default-tertiary);
}

.tag-orange {
  background: var(--background-orange-secondary);
  color: var(--text-orange-on-orange-secondary);
}

.tag-blue {
  background: var(--background-blue-secondary);
  color: var(--text-blue-on-blue-secondary);
}

.tag-pink {
  background: var(--background-pink-secondary);
  color: var(--text-pink-on-pink-secondary);
}

.tag-green {
  background: var(--sds-color-background-positive-secondary);
  color: var(--sds-color-text-positive-on-positive-secondary);
}

.tag-purple {
  background: var(--background-purple-secondary);
  color: var(--text-purple-on-purple-secondary);
}

.tag-yellow {
  background: var(--sds-color-background-warning-secondary);
  color: var(--sds-color-text-warning-on-warning);
}

.tag-red {
  background: var(--sds-color-background-danger-secondary);
  color: var(--sds-color-text-danger-on-danger-secondary);
}

.tag-disabled {
  background: var(--sds-color-background-default-secondary);
  color: var(--sds-color-text-disabled-on-disabled);
  cursor: default;
}

.footer {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--sds-color-background-default-default);
}

.footer-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-legal {
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: normal;
  color: var(--sds-color-text-default-tertiary);
}

.footer-legal p {
  margin: 0;
}

/* Footer Portfolio Desktop — tablet (768+) and desktop (1200+) */
.footer--desktop {
  align-items: center;
  padding: var(--sds-size-space-800) var(--sds-size-space-200) var(--sds-size-space-200);
}

.footer--desktop .footer-inner {
  gap: var(--sds-size-space-800);
}

.footer--desktop .contact-links {
  width: 100%;
  justify-content: center;
  gap: var(--sds-size-space-200);
}

/* Footer Portfolio Mobile — max-width 767px */
.footer--mobile {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sds-size-space-400) var(--sds-size-space-2800);
}

.footer--mobile .footer-inner {
  gap: var(--sds-size-space-600);
}

.footer--mobile .footer-legal {
  word-break: break-word;
}

.footer--mobile .contact-links {
  width: 100%;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--sds-size-space-400);
}

@media (max-width: 767px) {
  .footer.footer--desktop.desktop-only {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-icon img {
    animation: brand-icon-wobble 0.48s cubic-bezier(0.33, 1, 0.45, 1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .language-btn:hover,
  .contact-link:hover {
    background: var(--sds-color-background-default-secondary);
  }

  .language-btn[data-lang="en"]:hover .language-btn-track,
  .hero-language-btn[data-lang="en"]:hover .language-btn-track {
    transform: translateX(-50%);
  }

  .language-btn[data-lang="ru"]:hover .language-btn-track,
  .hero-language-btn[data-lang="ru"]:hover .language-btn-track {
    transform: translateX(0);
  }

  .language-btn.language-btn--hold-preview[data-hold-from="en"] .language-btn-track,
  .hero-language-btn.language-btn--hold-preview[data-hold-from="en"] .language-btn-track {
    transform: translateX(-50%);
  }

  .language-btn.language-btn--hold-preview[data-hold-from="ru"] .language-btn-track,
  .hero-language-btn.language-btn--hold-preview[data-hold-from="ru"] .language-btn-track {
    transform: translateX(0);
  }

  .hero-language-btn:hover {
    background: var(--sds-color-background-brand-tertiary-hover);
  }

  .tag-disabled:hover,
  .experience-col .tag-disabled:hover {
    background: var(--sds-color-background-default-secondary);
    color: var(--sds-color-text-disabled-on-disabled);
  }

  .experience-col a.tag:hover {
    background: var(--sds-color-background-default-secondary-hover);
  }

  .hero-tag.tag-blue:hover,
  .hero-tag.tag-blue:has(.hero-tag__remove:hover) {
    background: var(--tag-hero-blue-hover);
  }

  .hero-tag.tag-orange:hover,
  .hero-tag.tag-orange:has(.hero-tag__remove:hover) {
    background: var(--tag-hero-orange-hover);
  }

  .hero-tag.tag-pink:hover,
  .hero-tag.tag-pink:has(.hero-tag__remove:hover) {
    background: var(--tag-hero-pink-hover);
  }

  .hero-tag.tag-green:hover,
  .hero-tag.tag-green:has(.hero-tag__remove:hover) {
    background: var(--sds-color-background-positive-secondary-hover);
  }

  .hero-tag.tag-yellow:hover,
  .hero-tag.tag-yellow:has(.hero-tag__remove:hover) {
    background: var(--sds-color-background-warning-secondary-hover);
  }

  .hero-tag.tag-purple:hover,
  .hero-tag.tag-purple:has(.hero-tag__remove:hover) {
    background: var(--tag-hero-purple-hover);
  }

  .about-col .tag.tag-blue:hover {
    background: var(--tag-hero-blue-hover);
  }

  .about-col .tag.tag-orange:hover {
    background: var(--tag-hero-orange-hover);
  }

  .about-col .tag.tag-pink:hover {
    background: var(--tag-hero-pink-hover);
  }

  .about-col .tag.tag-green:hover {
    background: var(--sds-color-background-positive-secondary-hover);
  }

  .about-col .tag.tag-yellow:hover {
    background: var(--sds-color-background-warning-secondary-hover);
  }

  .about-col .tag.tag-purple:hover {
    background: var(--tag-hero-purple-hover);
  }

  .about-col .tag.tag-red:hover {
    background: var(--sds-color-background-danger-secondary-hover);
  }

  .checker-card:hover .checker-subtitle {
    opacity: 0;
    transform: translateX(12px);
  }

  .checker-card:hover .checker-cta {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .checker-card:not(.checker-card--placeholder):hover .checker-image::after {
    opacity: 0.2;
  }

  .home .works .checker-card:hover .checker-image img {
    transform: scale(1.08);
  }

  .home .works .checker-card:hover .checker-image:has(img)::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

  .icon-btn,
  .icon-btn::before,
  .language-btn-track,
  .checker-subtitle,
  .checker-cta,
  .checker-image::after,
  .hero-tag,
  .about-col .tag-groups.is-anim-ready .tag-group .tag {
    transition: none;
    filter: none;
    transform: none;
  }

  .about-col .tag-groups.is-anim-ready .tag-group .tag,
  .about-col .tag-groups.is-launched .tag-group .tag.is-entered {
    opacity: 1;
  }

  .about-col .tag-groups.is-launched .tag-group .tag.is-enter-done {
    transition: background-color var(--control-motion-duration) var(--control-motion-easing);
  }

  .checker-card:hover .checker-subtitle {
    opacity: 0;
    transform: none;
  }

  .checker-card:hover .checker-cta {
    opacity: 1;
    transform: none;
  }

}

/* Desktop 1200 — Card Grid Checker (explicit reset above tablet) */
@media (min-width: 1200px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--layout-topbar-height);
  }

  .home {
    width: 1200px;
  }

  .hero {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .works {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .about-section {
    scroll-margin-top: var(--layout-topbar-height);
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: max(160px, var(--sds-size-space-2400));
    padding-bottom: max(160px, var(--sds-size-space-1600));
  }

  .works {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--sds-size-space-1600);
    overflow: visible;
    scroll-margin-top: 0;
  }

  .works .checker-grid {
    flex: 0 1 auto;
    max-height: none;
    overflow: visible;
  }

  .checker-grid {
    width: 1072px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
    gap: var(--sds-size-space-200);
  }

  .checker-card {
    width: 352px;
    flex: 0 0 352px;
    flex-direction: row;
  }

  .home .works .checker-card[data-card="6"] {
    width: 176px;
    flex: 0 0 176px;
  }

  .home .works .checker-card[data-card="9"] {
    display: flex;
  }

  .checker-image {
    width: 176px;
    height: 176px;
    min-width: 176px;
    min-height: 176px;
    flex: 0 0 176px;
  }

  .checker-copy {
    width: auto;
    min-width: 160px;
    flex: 1 0 0;
    padding: var(--sds-size-space-400);
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}

/* Tablet 768 — PF-Design Card Grid Checker node 791:51943 */
@media (min-width: 768px) and (max-width: 1199px) {
  .about-section {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: var(--sds-size-space-1600) var(--sds-size-space-600);
    gap: var(--sds-size-space-1200);
    scroll-margin-top: var(--layout-topbar-height);
  }

  .about-col,
  .experience-col {
    flex: 1 1 0;
    min-width: 300px;
    gap: var(--sds-size-space-600);
  }

  .experience-col {
    align-items: center;
  }

  .experience-item {
    flex-direction: row;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    height: auto;
    padding: 240px var(--sds-size-space-1600) var(--sds-size-space-4000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sds-size-space-800);
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-portrait {
    width: 176px;
    height: 176px;
    min-width: 176px;
    min-height: 176px;
    max-width: 176px;
    max-height: 176px;
  }

  .hero .hero-heading {
    max-width: 544px;
    gap: var(--sds-size-space-800);
  }

  .hero .hero-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: var(--sds-typography-heading-size-base);
    font-weight: var(--sds-typography-heading-font-weight);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: pre-line;
  }

  .works {
    padding: var(--sds-size-space-1600) var(--sds-size-space-600);
  }

  .checker-grid {
    width: 720px;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
  }

  .checker-card {
    width: calc((100% - var(--sds-size-space-200)) / 2);
    flex: 0 0 calc((100% - var(--sds-size-space-200)) / 2);
    min-width: 0;
    flex-direction: row;
  }

  .checker-image {
    width: 176px;
    height: 176px;
    min-width: 176px;
    min-height: 176px;
    flex: 0 0 176px;
  }

  .checker-copy {
    width: auto;
    min-width: 160px;
    flex: 1 0 0;
    padding: var(--sds-size-space-400);
  }

  .home .works .checker-card--placeholder:not([data-card="6"]) {
    display: none;
  }

  .home .works .checker-card--placeholder[data-card="6"] {
    display: flex;
    width: 176px;
    flex: 0 0 176px;
    min-width: 0;
    flex-direction: row;
  }

  .home .works .checker-card--placeholder[data-card="6"] .checker-copy {
    display: none;
  }

  .home .works .checker-card[data-card="1"] {
    order: 1;
  }

  .home .works .checker-card[data-card="2"] {
    order: 2;
  }

  .home .works .checker-card[data-card="4"] {
    order: 3;
  }

  .home .works .checker-card--placeholder[data-card="6"] {
    order: 4;
  }

  .home .works .checker-card[data-card="5"] {
    order: 5;
  }

  .home .works .checker-card[data-card="3"] {
    order: 6;
  }
}

/* Mobile — Card Grid Checker */
@media (max-width: 767px) {
  .hero-portrait {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    max-width: 160px;
    max-height: 160px;
    flex-shrink: 0;
  }

  .about-section {
    flex-direction: column;
    align-items: center;
    padding: var(--sds-size-space-1600) var(--sds-size-space-600) var(--sds-size-space-1600);
    gap: var(--sds-size-space-1600);
  }

  .about-col {
    width: 100%;
    gap: var(--sds-size-space-600);
  }

  .about-col .tag-groups {
    gap: 0;
  }

  .experience-col {
    width: 100%;
  }

  .experience-item {
    flex-direction: column;
  }

  .experience-item .experience-role,
  .experience-item .tag-list {
    min-width: 100%;
    flex: 0 0 auto;
  }

  .works {
    padding: var(--sds-size-space-600);
  }

  .checker-grid {
    width: 327px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    row-gap: var(--sds-size-space-200);
  }

  .checker-card {
    width: 327px;
    min-width: 300px;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .home .works .checker-card--placeholder {
    display: none;
  }

  .home .works .checker-card[data-card="1"] {
    order: 1;
  }

  .home .works .checker-card[data-card="2"] {
    order: 2;
  }

  .home .works .checker-card[data-card="3"] {
    order: 5;
  }

  .home .works .checker-card[data-card="4"] {
    order: 4;
  }

  .home .works .checker-card[data-card="5"] {
    order: 3;
  }

  .home .works .checker-card[data-card="2"],
  .home .works .checker-card[data-card="4"] {
    flex-direction: row-reverse;
  }

  .checker-image {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    flex: 0 0 160px;
  }

  .checker-copy {
    width: 160px;
    min-width: 160px;
    flex: 0 0 160px;
    padding: var(--sds-size-space-200);
  }

  .experience-role,
  .experience-item .tag-list {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .experience-role,
  .experience-item .tag-list {
    width: 100%;
  }
}

/* Mobile hero — PF System HeroPortfolio 3217:5856 (space-between autolayout) */
@media (max-width: 767px) {
  .hero-tags-layer {
    display: none;
    pointer-events: none;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
    margin-left: 0;
    margin-right: 0;
    padding: var(--sds-size-space-600) var(--sds-size-space-600)
      calc(
        var(--sds-size-space-600) + var(--mobile-dock-bar-height) + var(--mobile-dock-lang-gap)
      );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* DOM order: contacts (top) → content (center) → language (bottom) */
  .hero > .hero-contact-links-wrap {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
  }

  .hero > .hero-body {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    gap: var(--sds-size-space-400);
    justify-content: center;
  }

  .hero > .hero-language-btn.mobile-only {
    flex: 0 0 auto;
    display: inline-flex;
    width: auto;
    margin: 0;
    align-self: center;
  }

  .hero .hero-contact-links {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--sds-size-space-200);
  }

  .hero-portrait {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    max-width: 160px;
    max-height: 160px;
  }

  .hero .hero-heading {
    max-width: 544px;
    width: 100%;
    gap: var(--sds-size-space-400);
  }

  .hero-heading > .hero-subtitle.mobile-only {
    display: block;
    order: 0;
    font-size: var(--sds-typography-body-size-medium);
    font-weight: var(--sds-typography-body-font-weight-regular);
    line-height: 1.4;
    color: var(--sds-color-text-utilities-text-on-overlay);
  }

  .hero-heading > .hero-title {
    order: 1;
  }

  .hero .hero-title {
    display: block;
    max-width: 544px;
    width: fit-content;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    font-size: var(--sds-typography-heading-size-base);
    font-weight: var(--sds-typography-heading-font-weight);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: pre-line;
    color: var(--sds-color-text-utilities-text-on-overlay);
  }
}
