

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/onest-v9-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/onest-v9-cyrillic_latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/onest-v9-cyrillic_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/onest-v9-cyrillic_latin-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/onest-v9-cyrillic_latin-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-v20-cyrillic_latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-v24-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-v24-cyrillic_latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-v24-cyrillic_latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-v24-cyrillic_latin-700.woff2') format('woff2');
}

:root {
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #111111;
  --bg-tertiary:   #1A1A1A;
  --bg-elevated:   #222222;

  --text-primary:  #FFFFFF;
  --text-secondary:#999999;
  --text-tertiary: #666666;
  --text-muted:    #444444;

  --border-default: #222222;
  --border-hover:   #444444;
  --border-active:  #FFFFFF;
  --accent:         #C8FF00;
  --accent-dim:     rgba(200,255,0,0.12);

  --font-heading: 'Onest', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --h1-size: clamp(48px, 7vw, 96px);
  --h2-size: clamp(32px, 4.5vw, 56px);
  --h3-size: clamp(24px, 2.5vw, 32px);
  --h4-size: clamp(18px, 1.6vw, 20px);
  --h5-size: 14px;
  --body-size: clamp(16px, 1.25vw, 18px);
  --small-size: 14px;

  --section-padding: clamp(80px, 10vw, 160px);
  --container-width: 1280px;
  --container-padding: clamp(16px, 2vw, 48px);
  --gap-lg: clamp(40px, 5vw, 80px);
  --gap-md: clamp(24px, 3vw, 40px);
  --gap-sm: 20px;

  --radius-pill: 100px;
  --radius-card: 12px;
  --radius-sm: 8px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   0.3s;
  --duration-normal: 0.5s;
  --duration-slow:   0.8s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #121111;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  overflow-x: hidden;
}
body.lenis-smooth { overflow: hidden; }

main { display: block; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { background: none; border: none; font: inherit; color: inherit; }
input, textarea { font: inherit; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }
h1 { font-size: var(--h1-size); line-height: 1.0; letter-spacing: -0.03em; }
h2 { font-size: var(--h2-size); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h3 { font-size: var(--h3-size); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: var(--h4-size); line-height: 1.3; font-weight: 600; }
h5 { font-family: var(--font-body); font-size: var(--h5-size); font-weight: 500;
     letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary);
     line-height: 1.4; }
p  { font-family: var(--font-body); font-size: var(--body-size); color: var(--text-secondary); line-height: 1.6; }
small { font-family: var(--font-body); font-size: var(--small-size); color: var(--text-tertiary); }
strong { color: var(--text-primary); font-weight: 600; }

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: #888888;
  line-height: 1.5;
}
.section-label {
  margin-bottom: 24px;
  color: var(--accent);
  opacity: 0.8;
}
.section-title { margin-bottom: var(--gap-lg); }

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__stage {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  z-index: 2;
}

.preloader__stage-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.preloader__stage-dash {
  font-size: 14px;
  color: var(--text-muted);
}

.preloader__stage-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preloader__phase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.wireframe-svg {
  width: clamp(280px, 50vw, 420px);
  height: auto;
}

.preloader__code-block {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.9;
  white-space: pre-wrap;
  text-align: left;
  max-width: 520px;
  width: max-content;
}

.pcode-line {
  opacity: 0;
  transform: translateX(-10px);
}

.pcode-tag   { color: #569cd6; }
.pcode-attr  { color: #9cdcfe; }
.pcode-str   { color: #ce9178; }
.pcode-prop  { color: #9cdcfe; }
.pcode-val   { color: #b5cea8; }
.pcode-text  { color: #d4d4d4; }
.pcode-indent { display: inline-block; width: 24px; }

.pcode-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursorBlink 0.6s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.launch-mockup {
  width: clamp(280px, 45vw, 440px);
}

.launch-mockup__bar {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: 8px 8px 0 0;
  border: 1px solid #333;
  border-bottom: none;
}

.launch-mockup__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.launch-mockup__bar span:nth-child(1) { background: #ff5f57; }
.launch-mockup__bar span:nth-child(2) { background: #febc2e; }
.launch-mockup__bar span:nth-child(3) { background: #28c840; }

.launch-mockup__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d0d0d;
  border: 1px solid #333;
  border-top: none;
}

.launch-mockup__site {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  object-fit: cover;
  object-position: top;
}

.launch-mockup__cursor {
  position: absolute;
  top: 30%;
  left: 60%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.launch-mockup__base {
  height: 12px;
  background: #1a1a1a;
  border-radius: 0 0 4px 4px;
  border: 1px solid #2a2a2a;
  border-top: none;
}

.launch-mockup__foot {
  height: 4px;
  width: 40%;
  margin: 0 auto;
  background: #111;
  border-radius: 0 0 4px 4px;
  border: 1px solid #222;
  border-top: none;
}

.preloader__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-elevated);
  z-index: 10002;
}
.preloader__progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  transition: width 0.1s linear;
}

.preloader__percent {
  position: absolute;
  bottom: 16px;
  right: clamp(20px, 4vw, 60px);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  opacity: 0;
  z-index: 10003;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: block;
  overflow: hidden;
  cursor: progress;
  background: transparent;
}

/* iOS/Android: адресная строка меняет 100vh уже после первой отрисовки.
   Фиксируем реальную высоту вьюпорта, чтобы композиция интро не уезжала вниз. */
@supports (height: 100svh) {
  .preloader { height: 100svh; }
}

.preloader__stage,
.preloader__phase,
.preloader__progress,
.preloader__percent {
  display: none !important;
}

.yr-home-intro {
  position: absolute;
  inset: 0;
  z-index: 99;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  background: #1e1e1e;
}

.yr-intro-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.yr-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin-left: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.yr-intro-bg:nth-of-type(2) { object-position: 47% 50%; }
.yr-intro-bg:nth-of-type(3),
.yr-intro-bg:nth-of-type(4),
.yr-intro-bg:nth-of-type(5),
.yr-intro-bg:nth-of-type(6) { object-position: 50% 50%; }

.yr-header-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  background-color: #1e1e1e;
}

.yr-header-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.yr-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  padding-top: 20px;
  padding-right: 20px;
  flex: 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  will-change: transform;
}

.yr-header-intro {
  height: auto;
  padding-bottom: 10px;
  justify-content: flex-start;
}

.yr-header__wrapper-out,
.yr-header__wrapper {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  margin: -0.45vw -0.3vw;
  padding: 0.45vw 0.3vw;
}

.yr-header__wrapper {
  will-change: transform;
}

.yr-header__wrapper-vis {
  z-index: 2;
  color: #fff;
}

.yr-header_name {
  position: relative;
  display: block;
  margin: 0;
  padding: 0.35vw 0.18vw 1.15vw;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 11vw;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.yr-header__wrapper-out:nth-child(2) .yr-header_name {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(200,255,0,0.12);
}

.yr-header_icon {
  position: relative;
  display: flex;
  width: 8.5vw;
  height: 8vw;
  margin-left: 0.2vw;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.yr-subheader-wrap,
.yr-subheader-inner {
  overflow: hidden;
}

.yr-subheader-inner {
  position: relative;
}

.yr-subheader-inner--second {
  margin-top: -0.2vw;
}

.yr-subheader_name {
  position: relative;
  margin: 0;
  padding-bottom: 0.1vw;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-body);
  font-size: 1.2vw;
  font-weight: 500;
  line-height: 1.3vw;
  will-change: transform;
}

.yr-subheader_name--right {
  right: 0.4vw;
  color: var(--accent);
  text-align: right;
}

.yr-preloader-cover {
  position: absolute;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  background-color: #1e1e1e;
}

.yr-fallback-note {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .yr-intro-bg { height: 100%; }
  .yr-header_name {
    font-size: 15vw;
    line-height: 11vw;
  }
  .yr-subheader_name {
    font-size: 2vw;
    line-height: 2.1vw;
  }
  .yr-header_icon {
    width: 12vw;
    height: 11vw;
  }
}

@media (max-width: 479px) {
  .yr-header-wrapper { padding-top: 64px; }
  .yr-header-intro {
    padding-right: 2.5vw;
    padding-bottom: 2.5vw;
    padding-left: 2.5vw;
  }
  .yr-header_name {
    font-size: 13vw;
    line-height: 10vw;
  }
  .yr-header_icon {
    width: 15vw;
    height: 10vw;
    margin-left: 0.5vw;
  }
  .yr-subheader_name {
    font-size: 2.5vw;
    line-height: 2.6vw;
  }
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
  padding: 32px 0;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-default);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  display: block;
  height: 34px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--text-primary);
  transition: width var(--duration-normal) var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}
.nav__burger.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: 24px var(--container-padding);
  gap: 0;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-link {
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  transition: color var(--duration-fast) ease;
}
.nav__mobile-link:hover { color: var(--text-primary); }
.nav__mobile-cta {
  margin-top: 16px;
  color: var(--text-primary);
  border-bottom: none;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: #080808;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
  transform: translateZ(0);
}

html.is-page-transition-entry .page-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: #e0e0e0; }
.btn-primary .btn-arrow { opacity: 0; transform: translateX(-8px); transition: all 0.3s var(--ease-out); }
.btn-primary:hover .btn-arrow { opacity: 1; transform: translateX(0); }
.btn-primary .btn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-primary);
  flex-shrink: 0;
}
.btn-primary--sm { padding: 10px 24px; font-size: 13px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid #444444;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-arrow-bounce {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.section { padding: var(--section-padding) 0; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.7) brightness(0.58) contrast(1.08);
  transform: scale(1.04);
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.2) 26%, rgba(10, 10, 10, 0.52) 62%, rgba(10, 10, 10, 0.92) 100%),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.05) 0%, rgba(10, 10, 10, 0) 34%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.08) 45%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-default) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-default) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.hero__inner { flex: 1; display: flex; align-items: center; justify-content: flex-start; padding-bottom: 80px; position: relative; z-index: 1; }
.hero__content { width: 100%; position: relative; z-index: 2; margin-top: -12px; }

.hero__label { margin-bottom: 32px; }

.hero__title {
  display: block;
  margin-bottom: 32px;
  margin-left: -5px;
}
.hero__title-line {
  display: block;
  will-change: transform, opacity;
}

.js-enabled .hero__title-line {
  opacity: 0;
  transform: translateY(102%);
}
.hero__dash { color: var(--text-muted); }
.hero__accent { color: var(--accent); }

.hero-fallback-visible .hero__title-line,
.hero-fallback-visible .hero__label,
.hero-fallback-visible .hero__lead,
.hero-fallback-visible .hero__cta-group,
.hero-fallback-visible .stats-strip {
  opacity: 1;
  transform: none;
}

.hero-laptop {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 94px;
  vertical-align: middle;
  margin-left: 12px;
  cursor: default;
  position: relative;
  perspective: 300px;
}

.hero-laptop__lid {
  width: 100%;
  transform-origin: bottom center;
  transform: rotateX(-85deg);
  will-change: transform;
}

.hero-laptop__screen {
  display: block;
  width: 100%;
  height: 50px;
  background: #1a1a1a;
  border-radius: 3px 3px 0 0;
  border: 1px solid #555;
  border-bottom: none;
  overflow: hidden;
  padding: 5px 6px;
}

.hero-laptop__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.35;
  white-space: pre;
  overflow: hidden;
  height: 100%;
  letter-spacing: 0.02em;
}

.hero-laptop__base {
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 0 0 3px 3px;
  border: 1px solid #333;
  border-top: 1px solid #444;
}

.hero-laptop__tooltip {
  position: fixed;
  z-index: 10000;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-laptop__tooltip.is-visible {
  opacity: 1;
}

.js-enabled .hero__label,
.js-enabled .hero__lead,
.js-enabled .hero__cta-group,
.js-enabled .stats-strip {
  opacity: 0;
  transform: translateY(20px);
}

.hero__label,
.hero__lead {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.hero__title,
.hero__title-line {
  text-shadow: none;
  -webkit-text-stroke: 0;
  filter: none;
}

.hero__lead {
  margin-bottom: 44px;
  max-width: 760px;
}

.hero__lead span {
  display: block;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  flex-wrap: nowrap;
}

.hero__cta-group .btn-primary {
  justify-content: center;
  text-align: center;
}

.hero__cta-note {
  max-width: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.56);
  text-align: left;
  white-space: nowrap;
}

.hero__stats {
  border-top: 1px solid var(--border-default);
  padding: 0;
  position: relative;
  z-index: 1;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0 38px;
}
.stats-strip__item {
  padding: 0 32px;
  border-left: 1px solid var(--border-default);
}
.stats-strip__item:first-child { border-left: none; padding-left: 0; }
.stats-strip__item small { color: var(--text-muted); font-size: 12px; letter-spacing: 0.03em; display: block; }
.stats-strip__val {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.marquee-section {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-primary);
}
.marquee-track { overflow: hidden; padding: 8px 0; }
.marquee-inner {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.marquee-track--left  .marquee-inner { animation: marqueeLeft  30s linear infinite; }
.marquee-track--right .marquee-inner { animation: marqueeRight 25s linear infinite; }
.marquee-track:hover .marquee-inner { animation-play-state: paused; }

.marquee-text {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  color: transparent;
  padding: 0 24px;
  line-height: 1.2;
  transition: -webkit-text-stroke 0.3s ease;
}
.marquee-text.marquee-sep {
  -webkit-text-stroke: 0;
  color: var(--accent);
  opacity: 0.8;
  font-size: clamp(20px, 2.5vw, 36px);
  padding: 0 4px;
}
.marquee-track:hover .marquee-text { -webkit-text-stroke: 1px rgba(255,255,255,0.5); }

@keyframes marqueeLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.about__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  align-items: start;
}
.about__title {
  color: var(--text-primary);
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 9.4ch;
  text-wrap: balance;
}
.about__title-line {
  display: block;
  overflow: hidden;
}
.about__title-word {
  display: inline-block;
  color: rgba(255,255,255,0.16);
  transition: color 0.5s ease;
}
.about__title-word--accent {
  color: rgba(200,255,0,0.18);
}
.about__text-block {
  padding-top: 8px;
  max-width: 520px;
  margin-left: auto;
}
.about__desc-box {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.015) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.18);
  transition: border-color var(--duration-normal) ease, transform var(--duration-normal) ease;
}
.about__desc-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.about__desc-box p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__desc-box p:last-child { margin-bottom: 0; }

.about__tagline {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--border-default);
}
.feature-card {
  background: var(--bg-secondary);
  padding: 36px 32px;
  transition: background var(--duration-normal) ease, color var(--duration-normal) ease;
  cursor: default;
}
.feature-card h4 { color: var(--text-primary); margin-bottom: 12px; transition: color var(--duration-normal) ease; }
.feature-card p  { font-size: 15px; color: var(--text-tertiary); margin: 0; transition: color var(--duration-normal) ease; }
.feature-card:hover {
  background: var(--text-primary);
}
.feature-card:hover h4 { color: var(--bg-primary); }
.feature-card:hover p  { color: #555555; }

.intro-section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.intro-section__label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.intro-section__text {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.8vw, 76px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0 auto clamp(48px, 7vw, 88px);
}

.intro-section__text .iw {
  display: inline;
  color: #222020;
}

.intro-section__text .iw--accent {
  color: #222020;
}

.intro-section__footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.intro-section__sub {
  font-size: clamp(14px, 1.05vw, 16px);
  color: #C3C3C3;
  max-width: 58ch;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.services-detail {
  padding-top: 0;
  background: #121111;
}

.robot-section {
  padding: 0 !important;
  margin-top: -150px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #121111;
}
.robot-section__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
}
.robot-iframe {
  width: 100%;
  height: 620px;
  border: none;
  background: transparent;
  display: block;
  pointer-events: none;
}
.robot-cta-overlay {
  display: none;
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg-primary);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  z-index: 101;
  pointer-events: auto;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(200,255,0,0.2);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  animation: robotCtaPulse 2s ease infinite;
}
.robot-cta-overlay::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 48%, rgba(255,255,255,0.1) 55%, transparent 75%);
  transform: translateX(-160%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}
.robot-cta-overlay:hover {
  color: var(--bg-primary);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(-50%) scale(1.12);
  box-shadow:
    0 0 30px rgba(200,255,0,0.5),
    0 0 60px rgba(200,255,0,0.25),
    0 20px 40px rgba(0,0,0,0.3);
  animation: none;
}
.robot-cta-overlay:hover::before {
  transform: translateX(160%);
}
.robot-cta-overlay:active {
  transform: translateX(-50%) scale(1.04);
  box-shadow: 0 0 20px rgba(200,255,0,0.4), 0 6px 16px rgba(0,0,0,0.2);
}
.robot-cta-overlay.visible {
  display: inline-flex;
}
@keyframes robotCtaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(200,255,0,0.2); }
  50% { box-shadow: 0 0 35px rgba(200,255,0,0.4); }
}

.services-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.45fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-bottom: 48px;
}

.services-showcase__sticky {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.services-showcase__number {
  position: relative;
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: clamp(180px, 23vw, 360px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.92);
  opacity: 1;
  min-width: 1.28em;
  height: 0.96em;
  overflow: hidden;
  padding: 0.04em 0.08em 0.1em 0;
  contain: paint;
  vertical-align: top;
  will-change: transform, opacity;
  user-select: none;
}

.services-showcase__number-current,
.services-showcase__number-next {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  line-height: inherit;
  will-change: transform, opacity;
}

.services-showcase__number-next {
  pointer-events: none;
}

.services-showcase__content {
  min-width: 0;
}

.service-panel {
  padding: clamp(56px, 7vw, 96px) 0;
}

.service-panel__content h3 {
  color: var(--text-primary);
  font-size: clamp(34px, 4.3vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.service-panel__content > p {
  color: #C3C3C3;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 34px;
}

.service-panel__list {
  list-style: none;
  border-top: 1px solid var(--border-default);
  counter-reset: service-item;
}

.service-panel__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 17px 14px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, padding var(--duration-fast) ease;
}

.service-panel__list li::after {
  content: counter(service-item, decimal-leading-zero);
  counter-increment: service-item;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.service-panel__list li:hover {
  background: rgba(255,255,255,0.025);
  color: var(--accent);
  padding-left: 22px;
  padding-right: 22px;
}

.sc-section {
  position: relative;
  height: 610vh;
  background: var(--bg-primary);
}
.sc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}
.sc-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(20,20,20,0.95), rgba(10,10,10,0.98) 48%, rgba(10,10,10,1) 100%);
  pointer-events: none;
}
.sc-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255,255,255,0.18) 0.45px, transparent 0.45px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}
.sc-bg-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: max-content;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-heading);
  font-size: clamp(56px, 9.2vw, 168px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.045em;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.09) 0%,
    rgba(255,255,255,0.06) 45%,
    rgba(255,255,255,0.02) 74%,
    rgba(255,255,255,0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(0.15px);
}
.sc-label {
  position: absolute;
  top: clamp(24px, 4vh, 48px);
  left: clamp(24px, 4vw, 64px);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.sc-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.sc-card {
  position: absolute;
  width: min(380px, 88vw);
  height: clamp(500px, 36vw, 560px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, 70%) scale(1.06);
  transform-origin: center center;
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 34px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 24px 64px rgba(0,0,0,0.4);
  will-change: transform, opacity, filter;
  pointer-events: auto;
}
.sc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.sc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.sc-card__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.sc-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.sc-card__features {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sc-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}
.sc-card__features li::before {
  content: '✓';
  color: var(--accent);
  margin-right: 10px;
  font-weight: 700;
}
@media (min-width: 810px) {
  .sc-card:nth-child(1) .sc-card__features,
  .sc-card:nth-child(3) .sc-card__features {
    transform: translateY(24px);
  }
}
.sc-card__footer {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  flex-shrink: 0;
}
.sc-card__price {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.sc-card__cta span {
  color: var(--accent);
  transition: transform 0.2s ease;
}
.sc-card__cta:hover {
  color: var(--accent);
  opacity: 1;
}
.sc-card__cta:hover span {
  transform: translateX(3px);
}
.sc-final-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 80;
  width: min(1240px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 34px)) scale(0.96);
  will-change: transform, opacity;
}
.sc-final-cta.is-visible {
  pointer-events: auto;
}
.sc-final-cta h3 {
  max-width: 1240px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 3.8vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}
.sc-final-cta__accent {
  color: var(--accent);
}
.sc-final-cta__btn {
  margin-top: 34px;
}
.sc-final-cta p {
  max-width: 620px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: #C3C3C3;
}
.sc-includes {
  position: absolute;
  bottom: clamp(16px, 3vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  width: max-content;
  max-width: 92vw;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.sc-includes:hover { opacity: 1; }
.sc-includes > p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.sc-includes__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.sc-includes__tags span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sc-includes__tags span:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.sc-includes__tags span::before {
  content: '✓';
  color: var(--accent);
  margin-right: 5px;
  font-weight: 600;
}

@media (max-width: 809px) {
  /* Согласовано с mobileAnimationScrollVh в main.js (2.4 экрана анимации
     + запас на финальный CTA). Раньше 540vh — блок ощущался бесконечным. */
  .sc-section { height: 340vh; }
  .sc-bg-title {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    white-space: normal;
    font-size: clamp(30px, 9.4vw, 52px);
    line-height: 0.95;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.12) 55%,
      rgba(255,255,255,0.05) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
  }
  .sc-card {
    width: min(92vw, 400px);
    height: auto;
    padding: 24px 22px 20px;
    /* backdrop-filter пересчитывает размытие фона под каждой движущейся карточкой
       на каждом кадре — на мобильных это главная причина рывков.
       Визуально компенсируем непрозрачным фоном той же плотности. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #16161a;
    will-change: transform, opacity;
  }
  .sc-card__footer {
    padding-top: 18px;
    min-height: 42px;
    gap: 10px;
  }
  .sc-card__title { font-size: clamp(20px, 6vw, 28px); }
  .sc-card__desc { font-size: 13px; }
  .sc-card__features li { font-size: 12px; padding: 8px 0; }
  .sc-card__price { font-size: 18px; }
  .sc-card__cta { font-size: 12px; }
  .sc-final-cta {
    width: min(92vw, 400px);
    transform: translate(-50%, calc(-50% + 28px)) scale(0.96);
  }
  .sc-final-cta h3 {
    font-size: clamp(24px, 7vw, 42px);
    line-height: 1.24;
  }
  .sc-final-cta__btn {
    width: 100%;
    margin-top: 24px;
    justify-content: center;
  }
  .sc-final-cta p {
    margin-top: 14px;
    font-size: 12px;
  }
  .sc-includes { display: none; }
}

.projects { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }
.projects .container { margin-bottom: 8px; }
.projects__footer {
  padding-top: 0;
  border-top: 0;
  margin-top: -122px;
  display: flex;
  justify-content: center;
}

.projects-stack {
  position: relative;
  height: 420vh;
  margin-top: -200px;
}

.projects-stack__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.projects-stack__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.pcard {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: 50%;
  translate: 0 -50%;
  width: calc(100vw - clamp(40px, 8vw, 112px));
  height: auto;
  max-height: calc(100vh - 100px);
  min-height: 420px;
  transform-origin: top center;
  will-change: transform, opacity;
  opacity: 0;
  pointer-events: none;
}

.pcard.is-active { pointer-events: auto; }

.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: var(--dim, 0);
  pointer-events: none;
  border-radius: 16px;
}

.pcard__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  height: 100%;
  align-items: start;
}

.pcard__mockup {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 100%;
  max-height: 480px;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
  transform: translateX(50px);
  align-self: start;
  margin-top: -30px;
}

.pcard__mockup--mac {
  align-items: flex-end;
  max-height: none;
  max-width: 620px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.pcard__mockup--group54 {
  align-items: flex-end;
  max-height: none;
  max-width: 550px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  .pcard__mockup--group54 .pcard__mockup-preview:hover {
    transform: scale(1.03);
  }
  .pcard__mockup--group54 .pcard__phone:hover {
    transform: translateX(5px) translateY(-10px) scale(1.05);
  }
}

.pcard__mac {
  position: relative;
  flex: 1 1 auto;
  max-width: 900px;
  width: 100%;
}

.pcard__mac-frame {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.pcard__screen--mac {
  position: absolute;
  left: 11.5%;
  top: 4.5%;
  width: 77%;
  height: 58.5%;
  overflow: hidden;
  background: #0b0b0b;
  border-radius: 4px;
}

.pcard__screen--mac img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.pcard__mockup-preview {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pcard__laptop {
  flex: 0 1 72%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
}

.pcard__device-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}

.pcard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pcard__dot--red { background: #ff5f57; }
.pcard__dot--yellow { background: #febc2e; }
.pcard__dot--green { background: #28c840; }

.pcard__screen {
  overflow: hidden;
  position: relative;
}

.pcard__screen--laptop {
  aspect-ratio: 16 / 10;
}

.pcard__screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pcard__screen img:hover {
  transform: scale(1.02);
}

.pcard__phone {
  width: 110px;
  flex-shrink: 0;
  align-self: flex-end;
  transform: translateX(5px) translateY(-10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  margin-bottom: 0;
}

.pcard__screen--phone {
  overflow: visible;
}

.pcard__screen--phone img {
  height: auto;
  object-fit: contain;
}

.pcard__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
}

.pcard__badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pcard__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C3C3C3;
  border: 1px solid var(--border-default);
  padding: 5px 14px;
  border-radius: 4px;
  width: fit-content;
}

.pcard__site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pcard__site-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.pcard__site-link.is-hidden {
  display: none;
}

.pcard__title {
  color: var(--text-primary);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pcard__subtitle {
  font-size: 16px;
  color: var(--text-primary);
  margin-top: -6px;
}

.pcard__desc {
  color: #C3C3C3;
  font-size: 15px;
  line-height: 1.7;
  max-width: 48ch;
}

.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pcard__tags > span {
  font-size: 13px;
  padding: 5px 14px;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  color: #C3C3C3;
}

.pcard__tags b {
  color: var(--accent);
  font-weight: inherit;
}

.pcard__btn {
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 12px;
  min-height: 42px;
  width: auto;
  align-self: flex-start;
}

/* На всей мобильной/планшетной раскладке (одна колонка) оставляем только
   белую кнопку «Смотреть портфолио» в конце блока. Отступ снизу
   обеспечивает .pcard__tags, отдельного margin не требуется. */
@media (max-width: 1024px) {
  .pcard__btn {
    display: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0s;
}

.lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  z-index: 100000;
}

.lightbox.is-open .lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.lightbox__desktop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__mac {
  position: relative;
  width: 1100px;
  max-width: 94vw;
  max-height: 90vh;
  cursor: default;
  transform: scale(0.97) translateY(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.lightbox.is-open .lightbox__mac {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox__mac-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.lightbox__mac-screen {
  position: absolute;
  top: 3.0%;
  left: 11.5%;
  width: 77%;
  height: 85%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  border-radius: 2px;
  background: #0a0a0a;
}

.lightbox__mac-screen::-webkit-scrollbar {
  display: none;
}

.lightbox__mac-img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox__mobile {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__phone {
  position: relative;
  width: 375px;
  max-width: 94vw;
  max-height: 90vh;
  cursor: default;
  transform: scale(0.97) translateX(34px) translateY(18px);
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.lightbox.is-open .lightbox__phone {
  transform: scale(1) translateX(34px) translateY(18px);
  opacity: 1;
}

.lightbox__phone-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.lightbox__phone-screen {
  position: absolute;
  top: 3.2%;
  left: 5.8%;
  width: 88.4%;
  height: 93.4%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  border-radius: 32px;
  background: #0a0a0a;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: paint;
}

.lightbox__phone-screen::-webkit-scrollbar {
  display: none;
}

.lightbox__phone-img {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 809px) {
  .lightbox__mac {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
  }
  .lightbox__mac-frame { display: none; }
  .lightbox__mac-screen {
    top: 84px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 108px);
    border-radius: 12px;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .lightbox__phone {
    width: min(340px, 82vw);
    transform: scale(0.97) translateY(10px);
  }
  .lightbox.is-open .lightbox__phone {
    transform: scale(1) translateY(0);
  }
  .lightbox__phone-screen {
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
}

@media (max-width: 1024px) {
  .projects-stack { height: 440vh; margin-top: -56px; }
  .pcard {
    left: 16px;
    top: 50%;
    width: calc(100vw - 32px);
    min-height: 500px;
  }
  .pcard__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pcard__mockup {
    max-height: 320px;
    max-width: 680px;
    margin-top: -28px;
  }
  .pcard__phone {
    width: 0px;
  }
}

@media (max-width: 768px) {
  .projects-stack { height: 440vh; margin-top: -56px; }
  .pcard {
    left: 16px;
    top: 84px;
    translate: 0 0;
    width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 104px);
    min-height: 0;
    overflow: hidden;
  }
  /* Карточка растягивалась до max-height, а контент заканчивался выше —
     снизу оставалась пустая область со скруглением от .pcard::after.
     Прижимаем содержимое к верху и убираем лишний хвост. */
  .pcard__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    align-content: start;
    height: auto;
  }
  .pcard::after {
    display: none;
  }
  .pcard__mockup {
    max-height: 200px;
    margin-top: 0;
    transform: none;
    gap: 10px;
    justify-content: center;
    align-items: flex-end;
    padding-right: 4px;
  }
  .pcard__mockup-preview {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 74%;
  }
  .pcard__phone {
    width: 64px;
    transform: none;
    align-self: flex-end;
    flex: 0 0 auto;
  }

  .pcard__info {
    gap: 11px;
    padding: 4px 0 0;
  }
  .pcard__title { font-size: clamp(26px, 8vw, 36px); }
  .pcard__subtitle { font-size: 15px; margin-top: -4px; }
  .pcard__desc {
    font-size: 13.5px;
    line-height: 1.5;
    max-width: none;
  }
  .pcard__desc br { display: none; }
  .pcard__tags { gap: 7px; }
  .pcard__tags > span { font-size: 12px; padding: 4px 12px; }

  .projects__footer {
    margin-top: 32px;
    padding-top: 0;
  }
}

.code-reasons {
  position: relative;
  overflow: hidden;
}

.code-reasons__headline {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(500px, 610px);
  gap: clamp(32px, 5vw, 82px);
  align-items: end;
  margin-bottom: clamp(44px, 7vw, 88px);
}

.code-reasons__title {
  margin-bottom: 0;
}

.code-reasons__title span {
  display: inline-block;
}

.code-reasons__title-accent {
  color: var(--accent);
}

.code-reasons__lead {
  align-self: end;
  justify-self: end;
  inline-size: min(100%, 42ch);
  width: min(100%, 42ch);
  margin: 0 0 clamp(4px, 0.45vw, 8px);
  color: #C3C3C3;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  max-width: 42ch;
}

.code-reasons__lead-break {
  display: block;
}

.code-reasons__steps {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 190px;
}

.code-reasons__divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  overflow: hidden;
}

.code-reasons__divider-line {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200,255,0,0), rgba(200,255,0,0.42), rgba(255,255,255,0.12));
  transform: perspective(1200px) translateX(-110%);
  will-change: transform;
}

.code-reasons__map {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 0.83682;
  transform: translateY(48px);
}

.code-reasons__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.code-reasons__path {
  stroke: transparent;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.code-reasons__path--active {
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(200,255,0,0.3));
  will-change: opacity, stroke-dashoffset;
}

.code-reasons__step {
  position: absolute;
  z-index: 2;
  width: min(390px, 34vw);
  padding: 18px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-reasons__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.code-reasons__step--one {
  top: 13%;
  right: 5%;
}

.code-reasons__step--two {
  top: 40%;
  left: 10%;
}

.code-reasons__step--three {
  top: 63%;
  right: 25%;
}

.code-reasons__step--four {
  top: 85%;
  left: 6%;
}

.code-reasons__pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-bottom: 13px;
  padding: 7px 12px;
  border: 1px solid rgba(200,255,0,0.28);
  border-radius: 999px;
  background: rgba(200,255,0,0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.code-reasons__step h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.code-reasons__step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.process {
  overflow: visible;
  padding-top: clamp(104px, 11vw, 178px);
  padding-bottom: clamp(80px, 10vw, 150px);
}

.process__heading {
  position: relative;
  z-index: 3;
  margin-bottom: clamp(8px, 1.6vw, 22px);
}

.process .section-title {
  margin-bottom: 18px;
}

.process__subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  color: #C3C3C3;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.process-palmer {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: -245px auto 0;
  overflow: visible;
}

.palmer-scroll {
  position: relative;
  display: flex;
  width: 100%;
  min-height: calc(100vh + 1700px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.palmer-sticky {
  position: sticky;
  top: 72px;
  z-index: 1;
  display: flex;
  width: 100%;
  height: calc(100vh - 72px);
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  overflow: visible;
}

.palmer-content {
  position: relative;
  display: flex;
  width: 100%;
  height: 1px;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.palmer-content::before {
  content: '';
  position: absolute;
  inset: 7% 12%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.035) 43%, rgba(172,255,0,0.045) 50%, rgba(255,255,255,0.03) 57%, transparent 100%);
  filter: blur(30px);
  opacity: 0.7;
}

.palmer-space {
  position: relative;
  display: flex;
  width: min-content;
  height: min-content;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
  opacity: 1;
  transform: perspective(1200px) translateY(410px) rotateY(90deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.palmer-ring {
  position: relative;
  display: flex;
  width: 865px;
  height: 151px;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-style: preserve-3d;
}

.palmer-ring--2 { transform: rotateY(45deg); }
.palmer-ring--3 { transform: rotateY(90deg); }
.palmer-ring--4 { transform: rotateY(135deg); }
.palmer-ring--5 { transform: rotateY(180deg); }
.palmer-ring--6 { transform: rotateY(225deg); }

.palmer-card-holder {
  position: absolute;
  z-index: 1;
  width: 320px;
  height: 215px;
  flex: none;
  transform: rotateY(-90deg);
  transform-style: preserve-3d;
}

.palmer-ring--1 .palmer-card-holder {
  top: calc(49.6241% - 107.5px);
  left: calc(-0.161551% - 160px);
}

.palmer-ring--2 .palmer-card-holder,
.palmer-ring--3 .palmer-card-holder,
.palmer-ring--4 .palmer-card-holder,
.palmer-ring--5 .palmer-card-holder,
.palmer-ring--6 .palmer-card-holder {
  top: -82px;
  left: -161px;
}

.palmer-card {
  position: relative;
  display: flex;
  width: 320px;
  height: 215px;
  cursor: default;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #050505;
  box-shadow:
    0 32px 90px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.1);
  isolation: isolate;
  transform: translateZ(0);
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
  will-change: transform;
}

.palmer-card:hover {
  border-color: rgba(172,255,0,0.46);
  box-shadow:
    0 42px 110px rgba(0,0,0,0.65),
    0 0 38px rgba(172,255,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.13);
}

.palmer-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  filter: brightness(0.58) saturate(0.9) contrast(1.08);
  transition: filter var(--duration-normal) ease, transform var(--duration-slow) ease;
}

.palmer-card:hover .palmer-media {
  filter: brightness(0.72) saturate(1) contrast(1.08);
  transform: scale(1.035);
}

.palmer-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.palmer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.82) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 42%);
}

.palmer-card__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: none;
  padding: 78px 18px 18px;
  pointer-events: none;
}

.palmer-card__num {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(172,255,0,0.42);
  border-radius: 999px;
  background: rgba(172,255,0,0.08);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.palmer-card__title {
  width: 100%;
  margin: 0 0 14px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.15vw, 46px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .palmer-card__title--testing {
    font-size: clamp(30px, 2.35vw, 36px);
  }
}

.palmer-card p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(10px, 0.62vw, 11.2px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.42;
}

.palmer-trigger {
  width: 100%;
  height: 1700px;
  flex: none;
  overflow: hidden;
}

.process__cta {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: -110px;
  pointer-events: auto;
}

.process__cta .btn-primary {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 1199.98px) {
  .process {
    padding-top: clamp(92px, 10vw, 128px);
  }

  .process-palmer {
    max-width: 1120px;
    margin-top: -6px;
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .palmer-scroll {
    min-height: auto;
  }

  .palmer-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding: 0;
  }

  .palmer-content {
    height: auto;
    flex: none;
    overflow: visible;
  }

  .palmer-content::before {
    display: none;
  }

  .palmer-space {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    transform: none !important;
    transform-style: flat;
  }

  .palmer-ring {
    width: 100%;
    height: auto;
    min-height: 260px;
    transform: none !important;
    transform-style: flat;
  }

  .palmer-card-holder {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: 100%;
    transform: none !important;
  }

  .palmer-card {
    width: 100%;
    height: 260px;
  }

  .palmer-trigger {
    display: none;
  }

  .process__cta {
    margin-top: 32px;
  }
}

@media (max-width: 809.98px) {
  .process__heading {
    margin-bottom: 16px;
  }

  .process-palmer {
    margin-top: 0;
    padding: 0 20px;
  }

  .palmer-space {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .palmer-ring {
    min-height: 238px;
  }

  .palmer-card {
    height: 238px;
  }

  .palmer-card__copy {
    padding: 76px 18px 18px;
  }

  .palmer-card__num {
    top: 20px;
    left: 20px;
  }

  .palmer-card__title {
    font-size: clamp(34px, 9vw, 42px);
  }

  .palmer-card p {
    font-size: 12px;
    line-height: 1.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .palmer-space {
    transform: none !important;
  }
  .js-enabled .hero__title-line,
  .js-enabled .reveal-text,
  .js-enabled .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

.palmer-page {
  --black: var(--bg-primary);
  --white: var(--text-primary);
  --line: var(--border-default);
  --muted: var(--text-tertiary);

  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--white);
}

.palmer-testimonial {
  width: 100%;
  max-width: 100%;
  height: 420vh;
  padding: 180px 0 0;
  background: var(--bg-primary);
  position: relative;
  overflow: clip;
}

.testimonial-sticky {
  z-index: 1;
  width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.testimonial-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(20,20,20,0.95), rgba(10,10,10,0.98) 48%, rgba(10,10,10,1) 100%);
  pointer-events: none;
}

.testimonial-center {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.testimonial-marquee {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: visible;
  user-select: none;
  pointer-events: none;
}

.testimonial-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: testimonialMarquee 24s linear infinite;
  transform: translate3d(0, 0, 0);
}

@keyframes testimonialMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.333333%, 0, 0);
  }
}

.testimonial-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(56px, 9.2vw, 168px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.045em;
  white-space: pre;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.09) 0%,
    rgba(255,255,255,0.06) 45%,
    rgba(255,255,255,0.02) 74%,
    rgba(255,255,255,0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(0.15px);
}

.testimonial-cta {
  z-index: 4;
  flex: none;
}

.testimonial-legal {
  display: none;
}

.testimonial-cards {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.testimonial-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 370px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(17,17,17,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  will-change: transform;
  transform: translate3d(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 800px)), 0);
}

.testimonial-card.is-small {
  width: 350px;
}

.testimonial-quote {
  width: 100%;
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-align: left;
}

.testimonial-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.testimonial-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  flex: none;
}

.testimonial-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.testimonial-card:not(.testimonial-card--video) .testimonial-avatar {
  border-radius: 50%;
  background: transparent;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.testimonial-details {
  flex: 1 0 0;
  width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.testimonial-name-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow: visible;
}

.testimonial-name {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.testimonial-role {
  width: 100%;
  margin: 5px 0 0;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .palmer-testimonial {
    height: 380vh;
    padding-top: 120px;
  }

  .testimonial-title {
    font-size: clamp(54px, 10vw, 128px);
    line-height: 0.85;
    letter-spacing: -0.045em;
  }

  .testimonial-marquee {
    height: 140px;
  }

  .testimonial-marquee-track {
    animation-duration: 22s;
  }

  .testimonial-card,
  .testimonial-card.is-small {
    width: 330px;
  }

  .testimonial-quote,
  .testimonial-name {
    font-size: 18px;
  }
}

@media (max-width: 809.98px) {
  .palmer-testimonial {
    height: auto;
    min-height: 0;
    padding: 72px 0 34px;
    overflow: hidden;
  }

  .testimonial-sticky {
    height: auto;
    position: relative;
    top: auto;
    overflow: visible;
  }

  .testimonial-stage {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: visible;
  }

  .testimonial-center {
    display: contents;
  }

  .testimonial-marquee {
    order: 1;
    height: 82px;
    overflow: hidden;
  }

  .testimonial-marquee-track {
    animation-duration: 18s;
  }

  .testimonial-title {
    font-size: clamp(52px, 14vw, 76px);
    line-height: 0.9;
    letter-spacing: -0.045em;
  }

  .testimonial-cta.btn-primary {
    order: 3;
    width: calc(100% - 40px);
    max-width: 370px;
    align-self: center;
    justify-content: center;
    font-size: 14px;
    padding: 14px 28px;
  }

  .testimonial-legal.contact-legal {
    display: block;
    order: 4;
    width: calc(100% - 40px);
    max-width: 370px;
    margin: 14px auto 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }

  .testimonial-cards {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .testimonial-card,
  .testimonial-card.is-small {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: auto;
    transform: none !important;
  }

  .testimonial-quote,
  .testimonial-name {
    font-size: 16px;
  }
}

.testimonial-card--video {
  width: 370px;
  gap: 14px;
  padding: 20px 20px 24px;
  border-color: rgba(255,255,255,0.13);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018) 44%, rgba(255,255,255,0.04)),
    rgba(14,14,14,0.88);
  box-shadow:
    0 26px 80px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.testimonial-video__eyebrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.58);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.testimonial-video__eyebrow img {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.72;
}

.testimonial-video__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  background: #090909;
  cursor: pointer;
}

.testimonial-video__preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.58) saturate(0.95);
  pointer-events: none;
  transition: filter var(--duration-normal) ease, transform var(--duration-slow) ease;
}

.testimonial-video__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.22)),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 34%);
  pointer-events: none;
}

.testimonial-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(18,18,18,0.62);
  box-shadow: 0 16px 42px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(1);
  transition: transform var(--duration-normal) ease, background var(--duration-normal) ease, border-color var(--duration-normal) ease;
}

.testimonial-video__play img {
  width: 100%;
  height: 100%;
  display: block;
}

.testimonial-video__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  padding: 0 9px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 11, 0.84);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.03em;
}

.testimonial-screenshot-btn {
  align-self: flex-end;
  display: block;
  width: auto;
  margin-top: -4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.85;
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.testimonial-screenshot-btn:hover {
  opacity: 1;
  transform: translateX(3px);
}

.testimonial-screenshot-btn img {
  display: block;
  width: 218px;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

.testimonial-video__preview:hover video {
  filter: brightness(0.68) saturate(1);
  transform: scale(1.025);
}

.testimonial-video__preview:hover .testimonial-video__play {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.13);
  transform: translate(-50%, -50%) scale(1.07);
}

.testimonial-bottom--video {
  gap: 12px;
}

.testimonial-card--video .testimonial-user {
  gap: 16px;
}

.testimonial-card--video .testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
}

.testimonial-card--video .testimonial-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.testimonial-card--video .testimonial-role {
  margin-top: 4px;
  color: rgba(255,255,255,0.46);
  font-size: 13px;
  font-weight: 500;
}

body.video-review-lock {
  overflow: hidden;
}

.video-review-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
  cursor: auto;
}

.video-review-modal *,
.video-review-modal *::before,
.video-review-modal *::after {
  cursor: auto;
}

.video-review-modal button,
.video-review-modal [data-video-review-close],
.video-review-modal__close {
  cursor: pointer;
}

.video-review-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s;
}

.video-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
}

.video-review-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(12,12,12,0.96);
  box-shadow: 0 34px 110px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-review-modal.is-open .video-review-modal__dialog {
  transform: translateY(0) scale(1);
}

.video-review-modal__player {
  width: 100%;
  max-height: calc(100vh - 96px);
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  object-fit: contain;
}

.video-review-modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(18,18,18,0.92);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease, background var(--duration-normal) ease;
}

.video-review-modal__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.video-review-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-review-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.video-review-modal__close:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

body.screenshot-lock {
  overflow: hidden;
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.screenshot-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s;
}

.screenshot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.screenshot-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(12,12,12,0.96);
  box-shadow: 0 34px 110px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.screenshot-modal.is-open .screenshot-modal__dialog {
  transform: translateY(0) scale(1);
}

.screenshot-modal__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 16px;
  overflow: hidden;
}

.screenshot-modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(18,18,18,0.92);
  color: #fff;
  cursor: pointer;
  transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease, background var(--duration-normal) ease;
}

.screenshot-modal__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.screenshot-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.screenshot-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.screenshot-modal__close:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .testimonial-card.testimonial-card--video {
    width: 330px;
    padding: 18px 18px 22px;
  }

  .testimonial-card--video .testimonial-name {
    font-size: 18px;
  }

  .testimonial-card--video .testimonial-role {
    font-size: 12px;
  }
}

@media (max-width: 809.98px) {
  .testimonial-card.testimonial-card--video {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
  }

  .testimonial-video__eyebrow {
    font-size: 16px;
  }

  .testimonial-video__eyebrow img {
    width: 21px;
    height: 21px;
  }

  .testimonial-video__preview {
    border-radius: 16px;
  }

  .testimonial-video__play {
    width: 62px;
    height: 62px;
  }

  .testimonial-video__play img {
    width: 100%;
    height: 100%;
  }

  .testimonial-card--video .testimonial-user {
    gap: 14px;
  }

  .testimonial-card--video .testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .testimonial-card--video .testimonial-name {
    font-size: 22px;
  }

  .testimonial-card--video .testimonial-role {
    margin-top: 5px;
    font-size: 13px;
  }

  .video-review-modal {
    padding: 16px;
  }

  .video-review-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
    padding: 10px;
    border-radius: 18px;
  }

  .video-review-modal__player {
    aspect-ratio: auto;
    height: calc(100vh - 120px);
    max-height: none;
    border-radius: 14px;
  }

  .video-review-modal__close {
    top: -10px;
    right: -10px;
    width: 38px;
    height: 38px;
  }

  .screenshot-modal {
    padding: 14px;
  }

  .screenshot-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 28px);
    padding: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .screenshot-modal__image {
    max-height: none;
    border-radius: 12px;
  }

  .screenshot-modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

.xzero-page {
  --paper: var(--bg-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-default);
  --orange: var(--accent);
  --progress: 0;
  --grid-y: 125px;
  --headline-y: 0px;
  --headline-scale: 1;
  --headline-opacity: 1;
  --headline-fade: .82;
  --full-opacity: 0;
  --full-label-opacity: 0;
  --full-left-x: 0px;
  --full-right-x: 0px;

  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 26%, rgba(255,255,255,.026) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 65%, rgba(255,255,255,.02) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 4px 4px, 6px 6px, auto;
  color: var(--ink);
  font-family: var(--font-body);
}

.xzero-lab {
  width: 100%;
  height: 900vh;
  border-top: 1px solid var(--border-default);
  position: relative;
  overflow: visible;
}

.xzero-scroll-markers {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.xzero-scroll-markers div {
  width: 100%;
  height: 50vh;
  flex: none;
}

.xzero-scroll-markers div:first-child {
  height: 100vh;
}

.xzero-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  overflow: hidden;
}

.xzero-overlay-blur {
  position: absolute;
  z-index: 2;
  inset: 0;
  height: 100%;
  background: rgba(10,10,10,.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  -webkit-mask: linear-gradient(transparent 45%, #000 55%);
  mask: linear-gradient(transparent 45%, #000 55%);
  pointer-events: none;
}

.xzero-section-label {
  position: absolute;
  top: clamp(24px, 4vh, 48px);
  left: clamp(24px, 4vw, 64px);
  z-index: 12;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.xzero-headline-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform, opacity;
  opacity: var(--headline-opacity);
  transform: translate3d(0, var(--headline-y), 0) scale(var(--headline-scale));
}

.xzero-headline {
  margin: 0;
  width: max-content;
  font-family: var(--font-heading);
  font-size: 118px;
  font-weight: 700;
  line-height: .9em;
  letter-spacing: -0.035em;
  white-space: nowrap;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.14) 48%,
    rgba(255,255,255,0.08) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: max(0.32, var(--headline-fade));
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  text-shadow: 0 18px 70px rgba(255,255,255,0.05);
  pointer-events: none;
}

.xzero-cards-layer {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  overflow: hidden;
  pointer-events: none;
}

.xzero-grid {
  position: relative;
  width: 1200px;
  max-width: 4848px;
  height: 512px;
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  grid-template-rows: repeat(2, min-content);
  gap: 12px;
  padding: 0 48px;
  transform: translate3d(0, var(--grid-y), 0);
  will-change: transform;
  overflow: visible;
  pointer-events: auto;
}

.xzero-card,
.xzero-card-full {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  background: rgba(17,17,17,0.94);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.xzero-card {
  position: relative;
  z-index: 2;
  width: 360px;
  height: 250px;
  place-self: center;
  opacity: var(--card-opacity, 1);
  transform: translate3d(0, var(--stack-y, 1200px), 0);
  pointer-events: auto;
}

.xzero-card-full {
  position: absolute;
  z-index: 5;
  inset: 0 48px;
  opacity: var(--full-opacity);
  pointer-events: none;
}

.xzero-card > *,
.xzero-card-full > * {
  will-change: transform;
}

.xzero-card-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translate3d(0, var(--inner-y, -1200px), 0);
}

.xzero-white {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.07), rgba(17,17,17,0.92) 58%, rgba(17,17,17,0.98) 100%);
}

.xzero-hand {
  position: absolute;
  z-index: 2;
  width: 780px;
  height: 520px;
  overflow: visible;
}

.xzero-hand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: .78;
  mix-blend-mode: normal;
}

.xzero-hand.left-main {
  z-index: 4;
  top: 50%;
  left: -150px;
  transform: translate3d(var(--full-left-x), -50%, 0);
}

.xzero-hand.right-main {
  z-index: 3;
  top: 50%;
  right: -150px;
  transform: translate3d(var(--full-right-x), -50%, 0);
}

.xzero-hand.left {
  z-index: 4;
}

.xzero-hand.right {
  z-index: 3;
}

.xzero-card .xzero-hand {
  transform: none;
}

.xzero-hand--m {
  display: none;
}

.xzero-card[data-card="one"] .xzero-hand.left {
  top: -4px;
  left: -150px;
}

.xzero-card[data-card="two"] .xzero-hand.left {
  top: -4px;
  left: -522px;
}

.xzero-card[data-card="two"] .xzero-hand.right {
  top: -4px;
  right: -522px;
}

.xzero-card[data-card="three"] .xzero-hand.right {
  top: -4px;
  right: -150px;
}

.xzero-card[data-card="four"] .xzero-hand.left {
  bottom: -4px;
  left: -150px;
}

.xzero-card[data-card="five"] .xzero-hand.left {
  bottom: -4px;
  left: -522px;
}

.xzero-card[data-card="five"] .xzero-hand.right {
  bottom: -4px;
  right: -522px;
}

.xzero-card[data-card="six"] .xzero-hand.right {
  bottom: -4px;
  right: -150px;
}

.xzero-label {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.18;
  transform: translate3d(0, var(--inner-y, -1200px), 0);
  will-change: transform;
  pointer-events: auto;
}

.xzero-label.top {
  top: 24px;
}

.xzero-label.bottom {
  bottom: 18px;
  min-height: 58px;
  justify-content: flex-start;
}

.xzero-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--orange);
  position: relative;
  flex: none;
}

.xzero-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .12;
}

.xzero-full-label {
  position: absolute;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2em;
  opacity: var(--full-label-opacity);
  will-change: opacity;
  pointer-events: none;
}

.xzero-lab.is-full-active .xzero-full-label {
  pointer-events: auto;
}

.xzero-faq-trigger {
  position: relative;
  margin: 0;
  max-width: 285px;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  line-height: inherit;
  pointer-events: auto;
}

.xzero-question {
  display: block;
  text-shadow: 0 1px 18px rgba(0,0,0,0.62);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.xzero-faq-trigger:hover .xzero-question,
.xzero-faq-trigger:focus-visible .xzero-question {
  color: var(--text-primary);
}

.xzero-answer {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 20;
  width: min(320px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(10,10,10,0.92);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  pointer-events: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-shadow: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.xzero-faq-trigger:hover .xzero-answer,
.xzero-faq-trigger:focus-visible .xzero-answer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.xzero-label.bottom .xzero-answer,
.xzero-full-label.bottom-left .xzero-answer,
.xzero-full-label.bottom-mid .xzero-answer,
.xzero-full-label.bottom-right .xzero-answer {
  top: auto;
  bottom: calc(100% + 12px);
}

.xzero-full-label.top-left {
  top: 24px;
  left: 24px;
}

.xzero-full-label.top-mid {
  top: 24px;
  left: calc(33.333% + 28px);
}

.xzero-full-label.top-right {
  top: 24px;
  left: calc(66.666% + 32px);
}

.xzero-full-label.bottom-left {
  bottom: 24px;
  left: 24px;
  min-height: 58px;
  justify-content: flex-start;
}

.xzero-full-label.bottom-mid {
  bottom: 24px;
  left: calc(33.333% + 28px);
  min-height: 58px;
  justify-content: flex-start;
}

.xzero-full-label.bottom-right {
  left: calc(66.666% + 32px);
  right: auto;
  bottom: 24px;
  min-height: 58px;
  justify-content: flex-start;
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .xzero-lab {
    height: 520vh;
  }

  .xzero-sticky {
    padding: 0 16px;
  }

  .xzero-headline {
    font-size: 92px;
  }

  .xzero-grid {
    width: 810px;
    grid-template-columns: repeat(2, minmax(50px, 1fr));
  }

  .xzero-card {
    width: 351px;
  }

  .xzero-card-full {
    display: none;
  }

  .xzero-hand {
    width: 560px;
    height: 373px;
  }

  .xzero-card[data-card="one"] .xzero-hand.left {
    left: -92px;
  }

  .xzero-card[data-card="two"] .xzero-hand.left {
    left: -375px;
  }

  .xzero-card[data-card="two"] .xzero-hand.right {
    right: -92px;
  }

  .xzero-card[data-card="three"] .xzero-hand.right,
  .xzero-card[data-card="six"] .xzero-hand.right {
    right: -375px;
  }

  .xzero-card[data-card="four"] .xzero-hand.left {
    left: -285px;
  }
}

@media (max-width: 809.98px) {
  /* 620vh на 6 карточек — пользователь «застревал» в блоке.
     Тайминги карточек относительные (доли прогресса), поэтому
     последовательность появления сохраняется полностью. */
  .xzero-lab {
    height: 420vh;
  }

  .xzero-sticky {
    padding: 0 16px;
  }

  .xzero-section-label {
    left: 16px;
  }

  .xzero-headline {
    font-size: clamp(26px, 7.4vw, 40px);
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.42) 0%,
      rgba(255,255,255,0.32) 48%,
      rgba(255,255,255,0.22) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0.6px rgba(255,255,255,0.14);
    opacity: max(0.5, var(--headline-fade));
  }

  /* Полноэкранный backdrop-filter поверх шести движущихся карточек заставлял
     мобильный GPU размывать весь слой каждый кадр — основная причина рывков.
     Тот же эффект «дымки» снизу даём градиентом: чистый композитинг. */
  .xzero-overlay-blur {
    background: linear-gradient(
      to bottom,
      rgba(10,10,10,0) 0%,
      rgba(10,10,10,0.55) 62%,
      rgba(10,10,10,0.86) 100%
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-mask: none;
    mask: none;
  }

  .xzero-grid {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: min(232px, 62vw);
    display: block;
    padding: 0 16px;
  }

  .xzero-card {
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    height: min(232px, 62vw);
    place-self: auto;
    transform: translate3d(0, var(--stack-y, 1200px), 0);
    /* Анимация идёт только по Y — 3D-контекст рендеринга не нужен
       и лишь удорожает композитинг на мобильных. */
    transform-style: flat;
    box-shadow: none;
  }

  /* will-change держит слой в памяти GPU постоянно. На шести карточках
     с крупными изображениями это заметно бьёт по мобильным устройствам. */
  .xzero-card > *,
  .xzero-card-full > * {
    will-change: auto;
  }

  .xzero-card-inner {
    overflow: hidden;
    border-radius: var(--radius-card);
  }

  .xzero-card-full {
    display: none;
  }

  .xzero-hand {
    width: 360px;
    height: 240px;
  }

  .xzero-hand--m {
    display: block;
  }

  .xzero-card[data-card="one"] .xzero-hand.left {
    top: auto;
    bottom: -4px;
    left: -64px;
  }

  .xzero-card[data-card="two"] .xzero-hand.left {
    display: none;
  }

  .xzero-card[data-card="two"] .xzero-hand.right {
    top: auto;
    bottom: -4px;
    right: -64px;
  }

  .xzero-card[data-card="three"] .xzero-hand.left {
    top: auto;
    bottom: -4px;
    left: -120px;
  }

  .xzero-card[data-card="three"] .xzero-hand.right {
    top: auto;
    bottom: -4px;
    right: -120px;
  }

  .xzero-card[data-card="four"] .xzero-hand.left {
    bottom: -4px;
    left: -88px;
  }

  .xzero-card[data-card="four"] .xzero-hand.right {
    top: auto;
    bottom: -4px;
    right: -88px;
  }

  .xzero-card[data-card="five"] .xzero-hand.left {
    bottom: -4px;
    left: -52px;
  }

  .xzero-card[data-card="five"] .xzero-hand.right {
    bottom: -4px;
    right: -52px;
  }

  .xzero-card[data-card="six"] .xzero-hand.left {
    top: auto;
    bottom: -4px;
    left: -28px;
  }

  .xzero-card[data-card="six"] .xzero-hand.right {
    bottom: -4px;
    right: -28px;
  }

  .xzero-label {
    left: 18px;
    right: 18px;
    gap: 9px;
    font-size: 16px;
    line-height: 1.25;
  }

  .xzero-label.top,
  .xzero-label.bottom {
    top: 18px;
    bottom: auto;
    min-height: 0;
  }

  /* Раскрытие FAQ описано ниже, в блоке мобильного аккордеона:
     ответ участвует в потоке и растит карточку по содержимому. */
}

.cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
  background:
    linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(7,7,7,1) 100%),
    linear-gradient(var(--border-default) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-default) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03), transparent 24%, transparent 76%, rgba(255,255,255,0.03)),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.035) 48%, transparent 100%);
  pointer-events: none;
}
.cta-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26%;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  opacity: .65;
  pointer-events: none;
}
.cta-bg-text {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(96px, 16vw, 240px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: .82;
  opacity: .95;
}
.cta-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(34px, 5vw, 58px);
}
.cta-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .95;
  letter-spacing: -0.045em;
}
.cta-lead {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,0.58);
}
.cta-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--border-default);
}
.cta-point {
  min-height: 106px;
  padding: 20px;
  background: rgba(10,10,10,0.82);
}
.cta-point span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta-point small {
  color: var(--text-tertiary);
  line-height: 1.35;
}

.contact-form {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  text-align: left;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(26,26,26,0.86), rgba(12,12,12,0.94));
  box-shadow:
    0 30px 90px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 18%, transparent 36%),
    linear-gradient(180deg, rgba(200,255,0,0.08), transparent 42%);
  opacity: .55;
  pointer-events: none;
}
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.form-kicker,
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-kicker {
  color: var(--accent);
}
.form-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
}
.form-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-group[hidden] {
  display: none;
}

.form-group {
  position: relative;
  min-width: 0;
}
.form-group--wide {
  grid-column: 1 / -1;
}
.form-group::before {
  content: attr(data-field);
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  pointer-events: none;
}
.form-group::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
.form-group:focus-within::after {
  opacity: 1;
  transform: scaleX(1);
}

.form-method {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 46px 14px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.045);
}

.form-method::before {
  content: attr(data-field);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.22);
}

.form-method legend {
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-option {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-option span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.method-option span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.method-option input:checked + span {
  color: var(--text-primary);
}

.method-option input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
}

.method-option:has(input:checked) {
  border-color: rgba(200,255,0,0.28);
  background: rgba(200,255,0,0.06);
}

.form-input {
  width: 100%;
  height: 78px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 34px 56px 16px 20px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.36); }
.form-input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.form-textarea {
  height: auto;
  min-height: 182px;
  resize: vertical;
  padding-top: 38px;
  line-height: 1.55;
}
.form-label {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: color var(--duration-fast) ease;
}
.form-group:focus-within .form-label {
  color: var(--accent);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}

.form-note {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.4;
}

.form-note strong {
  color: var(--text-secondary);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.45;
}

.form-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.form-consent a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.form-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.form-quick > span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-quick__links {
  display: flex;
  gap: 10px;
}

.quick-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.025);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.quick-link:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.btn-submit {
  min-height: 58px;
  cursor: pointer;
  border: none;
  box-shadow: 0 18px 46px rgba(255,255,255,0.08);
}

.form-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.form-social > span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-social__links {
  display: flex;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.025);
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}
.social-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-height: 398px;
  padding: 48px;
  justify-content: center;
}
.form-success.is-visible { display: flex; }
.form-success__icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.form-success h4 { font-size: 20px; color: var(--text-primary); }
.form-success p  { color: var(--text-secondary); }

@media (max-width: 1024px) {
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .cta-copy {
    max-width: 760px;
  }

  .cta-points {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .cta-bg-text {
    top: 42%;
    font-size: 28vw;
  }

  .cta-title {
    font-size: clamp(38px, 11vw, 58px);
  }

  .cta-points,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-method {
    grid-template-columns: 1fr;
  }

  .cta-point {
    min-height: auto;
    padding: 18px;
  }

  .contact-form {
    padding: 18px;
  }

  .form-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-input {
    padding-right: 48px;
  }

  .form-footer,
  .btn-submit {
    width: 100%;
  }

  .form-note,
  .form-quick {
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .form-quick__links {
    width: 100%;
    flex-direction: column;
  }

  .quick-link {
    width: 100%;
  }
}

body.contact-popup-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 9997;
  visibility: hidden;
  pointer-events: none;
  color: var(--text-primary);
}

.contact-popup.is-opening,
.contact-popup.is-open,
.contact-popup.is-closing {
  visibility: visible;
}

.contact-popup.is-open {
  pointer-events: auto;
}

.contact-popup__disc {
  position: fixed;
  left: var(--popup-x, 50vw);
  top: var(--popup-y, 50vh);
  z-index: 0;
  width: 1px;
  height: 1px;
  border-radius: 999px;
  background: var(--bg-primary);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform;
}

.contact-popup.is-opening .contact-popup__disc {
  animation: contactDiscOpen 960ms cubic-bezier(.19, 1, .22, 1) forwards;
}

.contact-popup.is-closing .contact-popup__disc {
  animation: contactDiscClose 960ms cubic-bezier(.19, 1, .22, 1) forwards;
}

@keyframes contactDiscOpen {
  from {
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    transform: translate(-50%, -50%) scale(4300);
  }
}

@keyframes contactDiscClose {
  from {
    transform: translate(-50%, -50%) scale(4300);
  }
  to {
    transform: translate(-50%, -50%) scale(0);
  }
}

.contact-popup__screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(560px, 1.22fr);
  grid-template-rows: auto auto;
  gap: clamp(48px, 5vw, 72px) clamp(88px, 9vw, 164px);
  align-items: start;
  padding: clamp(92px, 10vw, 148px) clamp(34px, 4vw, 72px) 78px clamp(34px, 4vw, 72px);
  background: #121111;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.contact-popup__panel {
  grid-row: 1 / 3;
}

.contact-popup__steps {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
  align-self: start;
  height: auto;
}

.contact-popup__steps-title {
  margin: 0 0 4px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-popup__step {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.contact-popup__step-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.contact-popup__note {
  margin: 22px 0 0;
  max-width: 460px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.03);
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.contact-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card__title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-card__desc {
  color: var(--text-tertiary);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card__arrow {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-size: 18px;
  transform: translateX(0);
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.contact-card:hover .contact-card__icon {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-card:hover .contact-card__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.contact-legal--popup.contact-legal {
  max-width: 700px;
  width: 100%;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.contact-popup.is-open .contact-popup__screen {
  visibility: visible;
  pointer-events: auto;
  animation: contactPageIn 520ms cubic-bezier(.19, 1, .22, 1) 90ms forwards;
}

@keyframes contactPageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-popup__screen::before {
  display: none;
}

.contact-popup__copy,
.contact-popup__panel,
.contact-popup__steps {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}

.contact-popup.is-open .contact-popup__copy {
  animation: contactContentUp 760ms cubic-bezier(.19, 1, .22, 1) 260ms forwards;
}

.contact-popup.is-open .contact-popup__panel {
  animation: contactContentUp 760ms cubic-bezier(.19, 1, .22, 1) 360ms forwards;
}

.contact-popup.is-open .contact-popup__steps {
  animation: contactContentUp 760ms cubic-bezier(.19, 1, .22, 1) 420ms forwards;
}

@keyframes contactContentUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-popup__kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-popup__copy h2 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(72px, 7.4vw, 138px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.contact-popup__accent {
  color: var(--accent);
}

.contact-popup__copy > p:not(.contact-popup__kicker) {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.contact-popup__panel {
  width: 100%;
  align-self: start;
  padding-top: clamp(8px, 2.4vh, 34px);
  padding-left: clamp(58px, 5.6vw, 118px);
}

.contact-cards {
  max-width: 700px;
}

.contact-popup__close {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 40px);
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.contact-popup__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
}

.contact-popup__close span:first-child {
  transform: rotate(45deg);
}

.contact-popup__close span:last-child {
  transform: rotate(-45deg);
}

.contact-popup__close:hover {
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.08);
  transform: scale(1.04);
}

@media (max-width: 980px) {
  .contact-popup__screen {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    align-items: start;
    gap: 42px;
    padding-top: 96px;
  }

  .contact-popup__copy {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .contact-popup__panel {
    order: 2;
    grid-row: auto;
    padding-top: 0;
    padding-left: 0;
  }

  .contact-cards {
    max-width: none;
  }

  .contact-popup__steps {
    order: 3;
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    height: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .contact-popup__screen {
    padding: 86px 16px 34px;
  }

  .contact-popup__copy h2 {
    font-size: clamp(44px, 16vw, 70px);
    line-height: 0.94;
  }

  .contact-popup__copy > p:not(.contact-popup__kicker) {
    margin-top: 20px;
    font-size: 15px;
  }

  .contact-popup__close {
    width: 46px;
    height: 46px;
  }

  .contact-popup__steps {
    margin-top: 32px;
    padding-top: 24px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card--wide {
    grid-column: 1 / -1;
  }

  .contact-card {
    padding: 18px;
  }
}

.footer {
  position: relative;
  border-top: 1px solid var(--border-default);
}

.flatwhite-footer {
  width: 100%;
}

.footer-bg {
  width: 100%;
  min-height: 92vh;
  display: flex;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.98), rgba(7,7,7,1)),
    linear-gradient(var(--border-default) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-default) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
}

.footer-container {
  width: 100%;
  max-width: var(--container-width);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

.footer-main {
  width: 100%;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  gap: clamp(72px, 9vw, 132px);
  padding: clamp(72px, 9vw, 118px) var(--container-padding) 52px;
}

.subscribe-block {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.subscribe-block h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.05;
  white-space: nowrap;
}

.subscribe-accent {
  color: var(--accent);
}

.subscribe-block p {
  max-width: 620px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
}

.contact-buttons {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.contact-buttons .contact-btn:nth-child(1) { grid-column: 1 / 3; }
.contact-buttons .contact-btn:nth-child(2) { grid-column: 3 / 5; }
.contact-buttons .contact-btn:nth-child(3) { grid-column: 5 / 7; }
.contact-buttons .contact-btn:nth-child(4) { grid-column: 2 / 4; }
.contact-buttons .contact-btn:nth-child(5) { grid-column: 4 / 6; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.035);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.contact-btn__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.contact-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-btn__text {
  flex: 1 1 auto;
}

.contact-btn__arrow {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--accent);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.contact-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.contact-btn:hover .contact-btn__icon {
  color: var(--accent);
}

.contact-btn:hover .contact-btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-legal {
  max-width: 400px;
  margin: 0;
  margin-top: 28px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.contact-legal--subscribe.contact-legal {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}

.contact-legal a {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.contact-legal a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.button-stack {
  display: flex;
  flex-direction: column;
  height: 200%;
  transform: translateY(0);
  transition: transform 0.35s var(--ease-in-out);
}

.button-stack span {
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.back-top:hover .button-stack {
  transform: translateY(-50%);
}

.footer-nav {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 96px);
}

.link-columns {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  gap: clamp(32px, 6vw, 84px);
  max-width: 320px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.column-title {
  margin: 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.column-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.column-links a,
.column-links p,
.back-top,
.footer-bottom a {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
}

.column-links a,
.back-top,
.footer-bottom a {
  transition: color var(--duration-fast) ease;
}

.column-links a:hover,
.back-top:hover,
.footer-bottom a:hover {
  color: var(--text-primary);
}

.footer-actions {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 48px;
}

.back-top {
  display: flex;
  height: 20px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.back-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socials a {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: rgba(255,255,255,0.035);
  color: var(--text-secondary);
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-default);
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px var(--container-padding) 44px;
}

.footer-bottom__logo {
  display: block;
  flex: none;
  height: 22px;
  width: auto;
  opacity: 0.8;
}

.footer-bottom p {
  margin: 0;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom a {
  flex: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.025);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.footer-bottom a:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.07);
}

.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;
}

@media (max-width: 1024px) {
  .footer-bg,
  .footer-container {
    min-height: auto;
  }

  .footer-nav {
    flex-direction: column;
  }

  .footer-actions {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 680px) {
  .footer-main {
    gap: 58px;
    padding-top: 64px;
  }

  .subscribe-block {
    gap: 22px;
  }

  .subscribe-block h2 {
    font-size: clamp(28px, 9vw, 42px);
    white-space: normal;
  }

  .contact-buttons {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 12px;
  }

  .contact-buttons .contact-btn:nth-child(1),
  .contact-buttons .contact-btn:nth-child(2),
  .contact-buttons .contact-btn:nth-child(3),
  .contact-buttons .contact-btn:nth-child(4),
  .contact-buttons .contact-btn:nth-child(5) {
    grid-column: 1 / -1;
  }

  .contact-btn {
    padding: 15px 20px;
  }

  .footer-nav {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }

  .link-columns {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: none;
  }

  .footer-column,
  .column-links {
    align-items: flex-start;
    text-align: left;
  }

  .footer-actions {
    width: auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .socials {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 64px;
  }
}

.js-enabled .reveal-text,
.js-enabled .reveal-card {
  opacity: 0;
  transform: translateY(30px);
}

.magnetic { position: relative; display: inline-flex; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }

::selection { background: rgba(255,255,255,0.15); color: var(--text-primary); }

@media (max-width: 1024px) {
  .about__header { grid-template-columns: 1fr; gap: 32px; }
  .about__title { max-width: 11ch; }
  .about__text-block { margin-left: 0; max-width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-section__footer { justify-content: flex-start; }
  .service-row { grid-template-columns: 40px 1fr; gap: 16px; }
  .service-price, .service-arrow { display: none; }
  .services-showcase {
    grid-template-columns: minmax(180px, 0.7fr) 1fr;
    gap: 32px;
  }
  .services-showcase__sticky {
    top: 110px;
  }
  .services-showcase__number {
    font-size: clamp(140px, 20vw, 220px);
  }
  .code-reasons__headline { grid-template-columns: 1fr; align-items: start; }
  .code-reasons__lead { justify-self: start; inline-size: auto; width: auto; max-width: 56ch; }
  .code-reasons__step { width: min(360px, 38vw); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 100px; }
  .hero__video { object-position: center center; transform: scale(1.08); }
  .hero__video-overlay {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.18) 24%, rgba(10, 10, 10, 0.58) 60%, rgba(10, 10, 10, 0.94) 100%),
      linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.1) 44%);
  }
  .stats-strip { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .stats-strip__item { border-left: 1px solid var(--border-default); padding: 0 20px; }
  .stats-strip__item:first-child { border-left: none; padding-left: 0; }

  .hero-laptop { width: 68px; margin-left: 8px; }
  .hero-laptop__screen { height: 38px; padding: 3px 4px; }
  .hero-laptop__code { font-size: 5.5px; line-height: 1.3; }
  .about__title {
    font-size: clamp(40px, 11vw, 64px);
    max-width: 100%;
  }
  .about__desc-box {
    padding: 28px 24px;
  }
  .about__tagline {
    font-size: clamp(22px, 7vw, 30px);
    max-width: 100%;
  }
  .features-grid { grid-template-columns: 1fr; }
  .intro-section__text { text-align: left; }
  .intro-section__footer { flex-direction: column; align-items: flex-start; }
  .services-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .services-showcase__sticky {
    position: sticky;
    top: 58px;
    z-index: 5;
    background: #121111;
    padding: 10px 0 6px;
  }
  .services-showcase__number {
    font-size: clamp(96px, 24vw, 140px);
    margin-bottom: 0;
  }

  .service-panel {
    padding: 28px 0;
  }
  .service-panel__content h3 {
    font-size: clamp(28px, 8vw, 42px);
    color: var(--accent);
  }
  .service-panel__content > p {
    margin-bottom: 24px;
  }
  .service-panel__content p br { display: none; }
  .service-panel__list li {
    grid-template-columns: 1fr auto;
    padding: 15px 0;
    font-size: 15px;
  }
  .service-panel__list li:hover {
    padding-left: 12px;
    padding-right: 12px;
  }

  .code-reasons__headline { margin-bottom: 36px; }
  .code-reasons__lead-break { display: none; }
  .code-reasons__steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 0;
  }
  .code-reasons__divider,
  .code-reasons__map {
    display: none;
  }
  .code-reasons__step,
  .code-reasons__step--one,
  .code-reasons__step--two,
  .code-reasons__step--three,
  .code-reasons__step--four {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--border-default);
    opacity: 1;
    transform: none;
  }
  .code-reasons__step:last-child { border-bottom: none; }
  .code-reasons__step h3 { font-size: clamp(21px, 7vw, 30px); }
  .code-reasons__step p { font-size: 15px; }

  .cta-copy { text-align: center; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-note,
  .form-quick { text-align: center; align-items: center; }

}

@media (max-width: 480px) {
  .hero { padding-top: 88px; }
  .hero__inner { padding-bottom: 40px; }
  .hero__content { margin-top: 0; }
  .hero__title {
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-left: 0;
    margin-bottom: 20px;
  }
  .hero__title-line {
    display: block;
  }
  .hero__lead {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 100%;
  }
  .hero__lead span { display: inline; }
  .hero__lead .br-mobile { display: none; }
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero__cta-note {
    width: 100%;
    max-width: none;
    white-space: normal;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
  }
  .hero__cta-group .btn-primary {
    padding: 14px 16px;
    white-space: normal;
    font-size: 14px;
    gap: 8px;
    min-width: 0;
  }
  .hero__cta-group .btn-primary .btn-text {
    line-height: 1.2;
  }
  .hero__cta-group .btn-primary .btn-arrow {
    display: none;
  }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; max-width: 100%; }
  .stats-strip { padding: 16px 0 30px; }
  .stats-strip__item { padding: 0 0 0 10px; }
  .stats-strip__item:first-child { padding-left: 0; }
  .stats-strip__val {
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    hyphens: none;
  }
  .stats-strip__item small {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  .about__title {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 0.98;
  }
  .about__desc-box {
    padding: 24px 20px;
  }
  .services-showcase__number {
    font-size: 96px;
    -webkit-text-stroke: 1.2px rgba(255,255,255,0.9);
  }
  .service-panel__list li {
    gap: 12px;
    font-size: 14px;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.br-mobile { display: none; }
@media (max-width: 809px) {
  .br-mobile { display: inline; }
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 10050;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav__link.is-active,
.nav__mobile-link.is-active {
  color: var(--text-primary);
}
.nav__link.is-active::after {
  width: 100%;
}

.pf-intro {
  padding: clamp(140px, 16vw, 200px) 0 clamp(48px, 6vw, 72px);
}

.pf-intro__title {
  position: relative;
  top: -28px;
  margin-bottom: 18px;
  font-size: var(--h2-size);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.pf-intro__lead {
  max-width: 560px;
  margin: 0 0 clamp(36px, 4vw, 52px);
  color: var(--text-secondary);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}

.pf-tabs {
  position: relative;
  top: 24px;
}

.pf-tabs__track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.02);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-tabs__track::-webkit-scrollbar { display: none; }

.pf-tab {
  flex: none;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease,
              border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.pf-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.pf-tab.is-active {
  color: var(--bg-primary);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
}
.pf-tab.is-active:hover {
  color: var(--bg-primary);
  border-color: var(--accent);
}

.pf-list {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.pf-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4.5vw, 64px) clamp(24px, 3vw, 40px);
}
.pf-panel[hidden] { display: none; }

.pf-project {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pf-project__visual {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  cursor: pointer;
}

.pf-project__visual--devices {
  padding: 10px 0 clamp(20px, 3vw, 32px);
}

.pf-devices {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pf-devices__mac {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1724 / 1219;
  pointer-events: none;
  user-select: none;
  transition: transform 0.4s var(--ease-out);
}

.pf-devices__phone {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 17%;
  min-width: 40px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
  transition: transform 0.4s var(--ease-out);
}

.pf-devices__phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1085 / 2086;
}

@media (hover: hover) and (pointer: fine) {
  .pf-project__visual--devices:hover .pf-devices__mac {
    transform: scale(1.015);
  }
  .pf-project__visual--devices:hover .pf-devices__phone {
    transform: translateY(-6px) scale(1.03);
  }
}

.pf-project__visual--soon {
  padding: clamp(64px, 10vw, 120px) clamp(24px, 4vw, 48px);
  border: 1px dashed var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.015);
  cursor: default;
}

.pf-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-soon__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
  flex: none;
}

.pf-project__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 4px auto 0;
  text-align: center;
}

.pf-project__title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pf-project__subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.pf-project__cta {
  width: 100%;
  margin-top: 16px;
  padding: 12px 24px;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}

.pf-divider {
  display: none;
}

.pf-popup {
  position: fixed;
  inset: 0;
  z-index: 99991;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}

.pf-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.pf-popup-lock {
  overflow: hidden;
}

.pf-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  will-change: opacity;
  transform: translateZ(0);
}

.pf-popup__close {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(18,18,18,0.92);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.pf-popup__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
}
.pf-popup__close span:first-child { transform: rotate(45deg); }
.pf-popup__close span:last-child  { transform: rotate(-45deg); }

.pf-popup__close:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

.pf-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(90px, 9vw, 120px) clamp(32px, 5vw, 80px) clamp(60px, 6vw, 88px);
  backface-visibility: hidden;
}

.pf-popup__visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.pf-popup__devices {
  position: relative;
  width: 100%;
  max-width: 660px;
}

.pf-popup__mac {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  user-select: none;
}

.pf-popup__mac[hidden] { display: none; }

.pf-popup__mac-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.pf-popup__mac-screen {
  position: absolute;
  top: 3.0%;
  left: 10.8%;
  width: 78.5%;
  height: 85%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  z-index: 1;
  border-radius: 2px;
  background: #0a0a0a;
  contain: paint;
}

.pf-popup__mac-screen::-webkit-scrollbar { display: none; }

.pf-popup__mac-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

.pf-popup__phone {
  position: absolute;
  z-index: 2;
  right: -3%;
  bottom: -5%;
  width: 16%;
  min-width: 88px;
}

.pf-popup__phone-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.pf-popup__phone-screen {
  position: absolute;
  top: 3.4%;
  left: 5.8%;
  width: 88.4%;
  height: 93.4%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  z-index: 1;
  border-radius: 5px;
  background: #0a0a0a;
  contain: paint;
}

.pf-popup__phone-screen::-webkit-scrollbar { display: none; }

.pf-popup__phone-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  transform: translateY(0px);
}

.pf-popup--single .pf-popup__mac-screen {
  overflow: hidden;
  top: 8%;
  height: 80%;
}
.pf-popup--single .pf-popup__phone-screen {
  overflow: hidden;
}
.pf-popup--single .pf-popup__mac-img,
.pf-popup--single .pf-popup__phone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.pf-popup__phone[hidden] { display: none; }

.pf-popup__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.pf-popup__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: #C3C3C3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pf-popup__title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pf-popup__subtitle {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 17px;
}

.pf-popup__desc {
  margin-top: 24px;
  max-width: 46ch;
  color: #C3C3C3;
  font-size: 15px;
  line-height: 1.75;
}

.pf-popup__desc p + p {
  margin-top: 18px;
}

@media (max-width: 1199.98px) {
  .pf-popup__dialog {
    grid-template-columns: 56% 44%;
  }
}

@media (max-width: 1024px) {
  .pf-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-devices__phone {
    width: 19%;
    min-width: 78px;
  }
}

@media (max-width: 809.98px) {
  .pf-intro {
    padding: clamp(112px, 20vw, 140px) 0 40px;
  }

  .pf-intro__title {
    top: -18px;
  }

  .pf-panel {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pf-intro__lead {
    max-width: none;
  }

  .pf-tabs {
    top: 18px;
    margin-left: calc(var(--container-padding) * -1);
    margin-right: calc(var(--container-padding) * -1);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .pf-tabs__track {
    width: max-content;
  }

  .pf-tab {
    padding: 10px 18px;
    font-size: 13px;
  }

  .pf-devices__phone {
    width: 22%;
    min-width: 64px;
    right: -2%;
    bottom: -4%;
  }

  .pf-divider {
    margin: 56px auto;
  }

  .pf-popup__dialog {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 88px 20px 56px;
    gap: 32px;
  }

  .pf-popup__visual {
    justify-content: center;
    flex-shrink: 0;
  }

  .pf-popup__devices {
    max-width: 420px;
  }

  .pf-popup__phone {
    width: 20%;
    min-width: 56px;
  }

  .pf-popup__info {
    align-items: flex-start;
    width: 100%;
    flex-shrink: 0;
  }

  .pf-popup__desc {
    max-width: none;
  }

  .pf-popup__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

.legal-page {
  padding: calc(var(--section-padding) * 0.6) 0 var(--section-padding);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--gap-md);
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}
.legal-page__back:hover { color: var(--text-primary); }
.legal-page__back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) ease;
}
.legal-page__back:hover svg { transform: translateX(-3px); }

.legal-page__title {
  font-size: var(--h2-size);
  margin-bottom: 12px;
}

.legal-page__meta {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: var(--gap-lg);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border-default);
}

.legal-content {
  max-width: 860px;
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: var(--body-size);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--border-default);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.legal-content h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p { margin-bottom: 16px; }

.legal-content strong { color: var(--text-primary); }

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content li { padding-left: 4px; }

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: 40px 0;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--duration-fast) ease;
}
.legal-content a:hover { opacity: 0.8; }

.legal-content em { color: var(--text-tertiary); font-style: italic; }

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}
.legal-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-content th,
.legal-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  vertical-align: top;
}
.legal-content th {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-tertiary);
  white-space: nowrap;
}
.legal-content tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .legal-content h2 { margin-top: 40px; padding-top: 24px; }
}

/* ============================================================
   МОБИЛЬНАЯ АНИМАЦИЯ (тач-устройства, до 809.98px)

   На телефоне scroll-привязанные sticky-анимации не укладываются
   в бюджет кадра: ~32 композитных слоя, overdraw до 3x площади
   экрана, 78 МБ битмапов. Вместо покадрового пересчёта из JS
   используем нативную схему: секции идут обычным потоком,
   элементы появляются один раз при входе в экран через
   CSS transition. Скролл при этом полностью нативный.

   Десктоп и планшет (>=810px) не затронуты.
   ============================================================ */
@media (max-width: 809.98px) and (hover: none) and (pointer: coarse) {

  /* --- Базовая механика появления --------------------------- */
  .m-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .m-reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  /* Слой поднимается только на время анимации и сразу снимается,
     чтобы не удерживать видеопамять. */
  .m-reveal:not(.is-in) {
    will-change: opacity, transform;
  }

  .m-reveal.is-done {
    will-change: auto;
    transition: none;
  }

  /* Пользователь просил меньше движения — уважаем системную настройку. */
  @media (prefers-reduced-motion: reduce) {
    .m-reveal,
    .m-reveal.is-in {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* ==========================================================
     1. КАРТОЧКИ УСЛУГ
     Было: 340vh + sticky + покадровый JS.
     Стало: обычный вертикальный список с появлением.
     ========================================================== */
  .sc-section {
    height: auto;
    padding: clamp(64px, 12vw, 96px) 0 clamp(48px, 9vw, 72px);
    /* .sc-noise позиционируется абсолютно — секция остаётся
       контекстом позиционирования вместо снятого sticky. */
    position: relative;
    overflow: hidden;
  }

  .sc-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .sc-bg-title {
    position: static;
    transform: none;
    margin: 0 auto clamp(28px, 6vw, 40px);
    padding: 0 16px;
  }

  .sc-cards {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    pointer-events: auto;
  }

  /* Карточка выходит из абсолютного позиционирования: JS больше
     не двигает её, поэтому inline-стили от старой анимации
     перебиваются здесь. */
  .sc-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 1;
    transform: none;
    z-index: auto;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #16161a;
    will-change: auto;
  }

  .sc-final-cta {
    position: static;
    width: 100%;
    max-width: 400px;
    margin: clamp(32px, 7vw, 48px) auto 0;
    padding: 0 16px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* ==========================================================
     2. ПРОЕКТЫ ПОРТФОЛИО
     Было: 440vh + sticky-стек + rAF-цикл.
     Стало: карточки друг под другом, появление при входе.
     ========================================================== */
  /* Отрицательный margin компенсировал sticky-подъём стека.
     Без sticky он бы наложил карточки на заголовок секции. */
  .projects-stack {
    height: auto;
    margin-top: clamp(20px, 5vw, 32px);
  }

  .projects-stack__sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .projects-stack__stage {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 6vw, 44px);
    height: auto;
    padding: 0 16px;
  }

  .pcard {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    opacity: 1;
    transform: none;
    z-index: auto;
    overflow: visible;
    pointer-events: auto;
    will-change: auto;
  }

  .pcard::after {
    display: none;
  }

  .pcard__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    align-content: start;
    height: auto;
  }

  .projects__footer {
    margin-top: clamp(32px, 7vw, 44px);
    padding: 0 16px;
  }

  /* ==========================================================
     3. FAQ — КАРТОЧКИ ВОПРОСОВ
     Было: 420vh + sticky + 11 изображений рук (78 МБ) +
     контр-движущийся внутренний слой.
     Стало: вертикальный список, руки скрыты, фактура
     сохранена лёгким CSS-градиентом.
     ========================================================== */
  .xzero-lab {
    height: auto;
    padding: clamp(56px, 11vw, 88px) 0 clamp(48px, 9vw, 72px);
  }

  .xzero-scroll-markers {
    display: none;
  }

  .xzero-sticky {
    position: static;
    height: auto;
    display: block;
    padding: 0 16px;
    overflow: visible;
  }

  .xzero-overlay-blur {
    display: none;
  }

  .xzero-headline-wrap {
    opacity: 1;
    transform: none;
    margin-bottom: clamp(24px, 6vw, 36px);
  }

  .xzero-headline {
    opacity: 1;
  }

  .xzero-cards-layer {
    position: static;
    display: block;
    padding: 0;
    overflow: visible;
  }

  .xzero-grid {
    position: static;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    transform: none;
    will-change: auto;
  }

  /* Высота — строго по содержимому: закрытая карточка это вопрос,
     открытая дорастает на высоту своего ответа. Никаких min-height
     и contain: они обрезали бы раскрытый текст. */
  .xzero-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    place-self: auto;
    opacity: 1;
    transform: none;
    transform-style: flat;
    box-shadow: none;
    will-change: auto;
    contain: none;
    overflow: hidden;
  }

  /* Руки — 1536x1024 в 11 копиях: главный источник overdraw
     и расхода видеопамяти. Фактуру сохраняем градиентом. */
  .xzero-hand {
    display: none;
  }

  .xzero-card-inner {
    position: static;
    transform: none;
    overflow: visible;
    border-radius: var(--radius-card);
  }

  .xzero-white {
    background:
      radial-gradient(circle at 78% 118%, rgba(255,255,255,0.10), rgba(255,255,255,0) 58%),
      radial-gradient(circle at 50% 35%, rgba(255,255,255,0.05), rgba(17,17,17,0.94) 60%, rgba(17,17,17,0.98) 100%);
  }

  .xzero-card-full {
    display: none;
  }

  /* Подпись перестаёт быть абсолютной: карточка теперь по контенту. */
  .xzero-label {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    min-height: 0;
    padding: 18px;
    gap: 10px;
    /* Колонка растягивает кнопку на всю ширину карточки, иначе
       flex-start сжал бы её по тексту вопроса и ответ уехал бы. */
    align-items: stretch;
    transform: none;
    will-change: auto;
  }

  /* Точка не должна растягиваться вместе с кнопкой. */
  .xzero-label .xzero-dot {
    align-self: flex-start;
  }

  .xzero-label.top,
  .xzero-label.bottom {
    top: auto;
    bottom: auto;
  }

  /* ==========================================================
     МОБИЛЬНЫЙ АККОРДЕОН FAQ

     Ответ раскрывается через grid-template-rows: 0fr -> 1fr.
     Этот приём анимирует высоту ровно по содержимому — каждый
     ответ получает свою высоту без замеров в JS и без
     фиксированных значений. Анимируется одно свойство,
     скролл страницы не затрагивается.
     ========================================================== */
  .xzero-faq-trigger {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: left;
    /* Системная рамка фокуса на тач выглядит чужеродно
       (появлялась после обычного тапа). Доступность сохраняем
       ниже — через видимый фокус только при навигации с клавиатуры. */
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .xzero-faq-trigger:focus,
  .xzero-faq-trigger:focus-visible {
    outline: none;
  }

  /* Клавиатурный фокус остаётся заметным, но в стилистике сайта. */
  .xzero-faq-trigger:focus-visible .xzero-question {
    color: var(--accent);
  }

  .xzero-question {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255,255,255,0.86);
    transition: color 0.25s ease;
  }

  .xzero-faq-trigger.is-open .xzero-question {
    color: var(--text-primary);
  }

  /* Обёртка-грид: именно она анимирует высоту. */
  .xzero-answer {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transform: none;
    pointer-events: none;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition:
      grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.26s ease,
      margin-top 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Внутренний слой обязателен: min-height:0 позволяет гриду
     сжать его в ноль, иначе высота не анимируется. */
  .xzero-answer > * {
    min-height: 0;
  }

  /* Блочный контекст обязателен: инлайновый span грид не сожмёт в ноль.
     Отступы живут здесь, чтобы в закрытом состоянии карточка
     не сохраняла лишнюю высоту от паддингов. */
  .xzero-answer-text {
    display: block;
    min-height: 0;
    overflow: hidden;
    padding: 14px 16px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.035);
    color: var(--text-secondary);
  }

  .xzero-faq-trigger.is-open .xzero-answer {
    grid-template-rows: 1fr;
    margin-top: 12px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Hover на тач не срабатывает осмысленно — раскрытие только по тапу. */
  .xzero-faq-trigger:hover .xzero-answer {
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
  }

  .xzero-faq-trigger.is-open:hover .xzero-answer {
    grid-template-rows: 1fr;
    margin-top: 12px;
    opacity: 1;
  }

  .xzero-label.bottom .xzero-answer {
    top: auto;
    bottom: auto;
  }

  /* Открытая карточка не должна перекрываться соседями:
     список — обычный поток, соседи сдвигаются вниз сами. */
  .xzero-card:has(.xzero-faq-trigger.is-open) {
    overflow: hidden;
    z-index: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .xzero-answer {
      transition: none;
    }
  }
}

/* ==========================================================================
   Cookie-баннер — согласие на аналитику
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 0 var(--container-padding) max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 20px clamp(20px, 2.5vw, 28px);
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) ease;
}

@supports (backdrop-filter: blur(16px)) {
  .cookie-banner__inner {
    background: rgba(17, 17, 17, 0.82);
    backdrop-filter: blur(16px);
  }
}

.cookie-banner.is-visible .cookie-banner__inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner__link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-muted);
  transition: text-decoration-color var(--duration-fast) ease;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  text-decoration-color: var(--accent);
}

.cookie-banner__status {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Обе кнопки равнозначны: одинаковый размер, шрифт и высота */
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.cookie-banner__btn--accept:hover {
  background: #d4ff33;
  border-color: #d4ff33;
  transform: translateY(-1px);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.cookie-banner__btn--decline:hover {
  background: var(--bg-elevated);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.cookie-banner__btn:active {
  transform: translateY(0);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Кнопка «Настройки cookies» в футере — визуально идентична соседней ссылке */
.footer-bottom__cookie {
  flex: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.footer-bottom__cookie:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.footer-bottom__cookie:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-banner__btn {
    width: 100%;
  }

  .cookie-banner__text {
    font-size: 14px;
  }

  .cookie-banner__link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner__inner {
    transition: opacity 0.01ms linear;
    transform: none;
  }

  .cookie-banner.is-visible .cookie-banner__inner {
    transform: none;
  }

  .cookie-banner__btn:hover {
    transform: none;
  }
}
