/* Склейка шести файлов в порядке base.twig. Сгенерировано, не править руками:
   правки вносить в исходные файлы и пересобирать speed_css_merge.py. 30.08.2026 */
/* ---- tokens.css ---- */
/* ZoomApps 2026 v2 — Design Tokens (UnifiedInfotech-grade) */
:root {
  /* === Foundation === */
  --bg-page:        #FFFFFF;
  --bg-soft:        #FAFAFA;
  --bg-elevated:    #FFFFFF;
  --bg-dark:        #0A0A0A;
  --bg-dark-2:      #141414;
  --bg-dark-3:      #1F1F1F;

  /* === Text === */
  --text-primary:   #0A0A0A;
  --text-secondary: #525252;
  --text-tertiary:  #8C8C8C;
  --text-quaternary:#A8A8A8;
  --text-on-dark:   #FFFFFF;
  --text-on-dark-2: #B8B8B8;
  --text-on-dark-3: #6B6B6B;

  /* === Accent (точечно, не ковёр) === */
  --accent:         #6366F1;
  --accent-hover:   #5558E0;
  --accent-2:       #8B5CF6;
  --accent-glow:    rgba(99, 102, 241, 0.12);
  --accent-glow-strong: rgba(99, 102, 241, 0.25);
  --accent-tint:    rgba(99, 102, 241, 0.06);

  /* === Stone scale (vs hard black) === */
  --stone-50:       #FAFAF9;
  --stone-100:      #F5F5F4;
  --stone-200:      #E7E5E4;
  --stone-300:      #D6D3D1;
  --stone-400:      #A8A29E;
  --stone-500:      #78716C;
  --stone-600:      #57534E;
  --stone-700:      #44403C;
  --stone-800:      #292524;
  --stone-900:      #1C1917;

  /* === Borders === */
  --border:         #E5E5E5;
  --border-strong:  #C9C9C9;
  --border-dark:    #2A2A2A;
  --border-dark-strong: #3D3D3D;

  /* === Status === */
  --success:        #10B981;
  --warning:        #F59E0B;
  --error:          #EF4444;
  --info:           #3B82F6;

  /* === Gradients (subtle, not dominant) === */
  --grad-text:      linear-gradient(135deg, #0A0A0A 0%, #6366F1 100%);
  --grad-accent:    linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --grad-mesh:      radial-gradient(at 20% 0%, rgba(99,102,241,0.10) 0%, transparent 50%),
                    radial-gradient(at 80% 100%, rgba(139,92,246,0.08) 0%, transparent 50%);
  --grad-dark-mesh: radial-gradient(at 20% 0%, rgba(99,102,241,0.20) 0%, transparent 50%),
                    radial-gradient(at 80% 100%, rgba(139,92,246,0.15) 0%, transparent 50%);

  /* === Typography === */
  --font-display:   'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Modular scale 1.333 (perfect fourth) */
  --fs-3xs:         11px;
  --fs-2xs:         12px;
  --fs-xs:          13px;
  --fs-sm:          14px;
  --fs-base:        16px;
  --fs-md:          18px;
  --fs-lg:          21px;
  --fs-xl:          24px;
  --fs-2xl:         28px;
  --fs-3xl:         37px;
  --fs-4xl:         49px;
  --fs-5xl:         65px;
  --fs-6xl:         87px;
  --fs-7xl:         116px;
  --fs-8xl:         154px;

  /* Line heights */
  --lh-tight:       1.0;
  --lh-snug:        1.1;
  --lh-comfortable: 1.25;
  --lh-normal:      1.5;
  --lh-relaxed:     1.6;
  --lh-loose:       1.75;

  /* Letter spacing */
  --ls-tightest:    -0.04em;
  --ls-tighter:     -0.03em;
  --ls-tight:       -0.02em;
  --ls-snug:        -0.01em;
  --ls-normal:      0;
  --ls-wide:        0.04em;
  --ls-wider:       0.08em;
  --ls-widest:      0.16em;

  /* Weights */
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semibold:    600;
  --fw-bold:        700;
  --fw-extrabold:   800;
  --fw-black:       900;

  /* === Spacing (4-base) === */
  --sp-0:           0;
  --sp-1:           4px;
  --sp-2:           8px;
  --sp-3:           12px;
  --sp-4:           16px;
  --sp-5:           20px;
  --sp-6:           24px;
  --sp-8:           32px;
  --sp-10:          40px;
  --sp-12:          48px;
  --sp-14:          56px;
  --sp-16:          64px;
  --sp-20:          80px;
  --sp-24:          96px;
  --sp-32:          128px;
  --sp-40:          160px;
  --sp-48:          192px;
  --sp-56:          224px;
  --sp-64:          256px;

  /* Semantic spacing */
  --space-section-y: clamp(64px, 12vw, 160px);
  --space-block:     clamp(40px, 6vw, 96px);
  --space-paragraph: 24px;

  /* === Radius === */
  --r-none:         0;
  --r-xs:           4px;
  --r-sm:           8px;
  --r-md:           12px;
  --r-lg:           16px;
  --r-xl:           24px;
  --r-2xl:          32px;
  --r-3xl:          48px;
  --r-full:         999px;

  /* === Shadows (soft, premium) === */
  --sh-xs:          0 1px 2px rgba(10, 10, 10, 0.04);
  --sh-sm:          0 2px 4px rgba(10, 10, 10, 0.04), 0 1px 2px rgba(10, 10, 10, 0.04);
  --sh-md:          0 4px 12px rgba(10, 10, 10, 0.06), 0 2px 4px rgba(10, 10, 10, 0.04);
  --sh-lg:          0 12px 32px rgba(10, 10, 10, 0.08), 0 4px 8px rgba(10, 10, 10, 0.04);
  --sh-xl:          0 24px 64px rgba(10, 10, 10, 0.12), 0 8px 16px rgba(10, 10, 10, 0.06);
  --sh-2xl:         0 40px 96px rgba(10, 10, 10, 0.16), 0 16px 32px rgba(10, 10, 10, 0.08);
  --sh-inner:       inset 0 1px 2px rgba(10, 10, 10, 0.06);
  --sh-accent:      0 8px 24px rgba(99, 102, 241, 0.20);
  --sh-accent-strong: 0 16px 48px rgba(99, 102, 241, 0.32);

  /* === Container / layout === */
  --container-max:  1440px;
  --container-px:   clamp(20px, 4vw, 48px);
  --content-max:    1280px;
  --reading-max:    72ch;

  /* === Motion === */
  --ease-out:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:        cubic-bezier(0.45, 0, 0.55, 1);
  --ease-in-out-quart:  cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-back:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring:        cubic-bezier(0.5, 1.5, 0.5, 1);

  --d-instant:      100ms;
  --d-fast:         200ms;
  --d-base:         400ms;
  --d-slow:         700ms;
  --d-slower:       1200ms;
  --d-marquee:      40s;

  /* === Z-index === */
  --z-base:         1;
  --z-raised:       10;
  --z-dropdown:     20;
  --z-sticky:       30;
  --z-overlay:      80;
  --z-modal:        100;
  --z-toast:        200;
  --z-cursor:       9999;

  /* === Mobile === */
  --touch-min:      48px;

  /* === Glass === */
  --glass-bg:       rgba(255, 255, 255, 0.72);
  --glass-bg-dark:  rgba(10, 10, 10, 0.72);
  --glass-blur:     blur(24px) saturate(180%);
  --glass-border:   1px solid rgba(255, 255, 255, 0.12);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Заголовок первого экрана сначала рисуется системным шрифтом, а после загрузки
   Inter меняет высоту — блоки ниже съезжают на ~42px, и CLS выходит на 0.101
   при пороге 0.1. Подгоняем метрики запасного шрифта под Inter, чтобы подмена
   проходила без скачка. 06.08.2026 */
@font-face {
  font-family: 'Inter fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
:root {
  --font-display: 'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ---- base.css ---- */
/* ZoomApps 2026 v2 — Base (UnifiedInfotech-grade) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: white; }

img, video, svg, picture { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease-out); }
ul, ol { list-style: none; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tighter);
  color: var(--text-primary);
}
h1 {
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.96;
  letter-spacing: var(--ls-tightest);
  font-weight: var(--fw-extrabold);
}
h2 {
  font-size: clamp(36px, 5.5vw, 65px);
  line-height: 1.0;
  letter-spacing: var(--ls-tighter);
}
h3 {
  font-size: clamp(24px, 3vw, 37px);
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
}
h4 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
}

p { margin: 0 0 var(--space-paragraph); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-secondary); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-6);
}
.eyebrow--accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.container--narrow { max-width: 960px; }
.container--reading { max-width: 720px; }

.section {
  padding-top: var(--space-section-y);
  padding-bottom: var(--space-section-y);
  position: relative;
}
.section--first {
  padding-top: clamp(80px, 14vw, 200px);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--dark .text-secondary { color: var(--text-on-dark-2); }
.section--dark .text-tertiary { color: var(--text-on-dark-3); }
.section--dark .eyebrow { color: var(--text-on-dark-3); }
.section--soft { background: var(--bg-soft); }
.section--tight-top { padding-top: clamp(20px, 2.5vw, 48px); }
.section--tight-bottom { padding-bottom: clamp(20px, 2.5vw, 48px); }

.section__head {
  max-width: 880px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { margin-bottom: var(--sp-6); }
.section__subtitle {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* === Grids === */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--asym-7-5 { grid-template-columns: 1fr; gap: var(--sp-12); }
.grid--asym-8-4 { grid-template-columns: 1fr; gap: var(--sp-12); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
  .grid--asym-7-5 { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--sp-16); }
  .grid--asym-8-4 { grid-template-columns: 8fr 4fr; gap: var(--sp-16); }
}
@media (min-width: 1280px) {
  .grid--3 { gap: var(--sp-12); }
}

/* === Site Header (sticky, mega-menu, with top bar) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: all var(--d-fast) var(--ease-out);
}
.header__bar-top {
  background:
    linear-gradient(180deg, #0A0A0C 0%, #131316 100%);
  color: white;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.header__bar-top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 168, 118, 0.42) 50%, transparent 100%);
  pointer-events: none;
}
.header__bar-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: var(--sp-6);
}
.header__bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.header__bar-tag-text { white-space: nowrap; }
.header__bar-tag-text b {
  color: #C8A876;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.header__bar-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #C8A876;
  box-shadow: 0 0 10px rgba(200, 168, 118, 0.85), 0 0 0 0 rgba(200, 168, 118, 0.6);
  animation: pulseGold 2.4s ease-in-out infinite;
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 8px rgba(200, 168, 118, 0.7), 0 0 0 0 rgba(200, 168, 118, 0.5); }
  50% { box-shadow: 0 0 14px rgba(200, 168, 118, 1), 0 0 0 6px rgba(200, 168, 118, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.header__bar-meta {
  display: none;
  align-items: center;
  gap: 18px;
}
@media (min-width: 768px) { .header__bar-meta { display: inline-flex; } }
@media (max-width: 767px) {
  .header__bar-top-inner { justify-content: center; height: 34px; }
  .header__bar-tag-text { font-size: 11px; }
}

/* Social icons — premium gold (top bar right) */
.header__bar-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header__bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #C8A876;
  background: rgba(232, 184, 95, 0.06);
  border: 1px solid rgba(229, 200, 150, 0.18);
  transition: all 0.3s var(--ease-out);
}
.header__bar-social a:hover {
  color: #F0DDB4;
  background: rgba(232, 184, 95, 0.18);
  border-color: rgba(229, 200, 150, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -2px rgba(200, 168, 118, 0.40);
}
.header__bar-social svg { width: 13px; height: 13px; }
.site-header.is-scrolled { box-shadow: var(--sh-sm); }
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  height: 88px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  transition: transform var(--d-base) var(--ease-out);
}
.header__logo:hover { transform: scale(1.04); }
.header__logo-img { height: 42px; width: auto; display: block; }
@media (max-width: 767px) {
  .header__logo-img { height: 38px; }
  .header__inner { height: 72px; }
}
.header__nav {
  display: none;
  flex: 1;
}
@media (min-width: 1024px) { .header__nav { display: flex; align-items: center; gap: var(--sp-2); } }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  transition: all var(--d-fast) var(--ease-out);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d-base) var(--ease-out);
}
.nav-link:hover::after,
.nav-item--mega:hover .nav-link::after,
.nav-item--mega:focus-within .nav-link::after { transform: scaleX(1); }
.nav-link:hover { color: var(--accent); }
.nav-link.is-new::before {
  content: 'NEW';
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}
.nav-chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--d-base) var(--ease-out);
  margin-left: 2px;
}
.nav-item--mega:hover .nav-chev,
.nav-item--mega:focus-within .nav-chev { transform: rotate(225deg) translateY(-2px); }

/* Mega menu dropdown */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(880px, 92vw);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  padding: var(--sp-8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--d-base) var(--ease-out);
}
.mega-menu--wide {
  width: min(1040px, 94vw);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-6);
}
.mega-menu__col-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.mega-menu__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.mega-menu__col--cta {
  background: var(--bg-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  margin: calc(var(--sp-6) * -1);
}
.nav-item--mega:hover .mega-menu,
.nav-item--mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.mega-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  transition: background var(--d-fast);
  text-decoration: none;
  color: inherit;
}
.mega-card:hover { background: var(--bg-soft); }
.mega-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: var(--accent);
}
.mega-card__icon svg { width: 24px; height: 24px; }
.mega-card__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.mega-card__desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
  margin: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}
.header__phone {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.header__phone:hover { color: var(--accent); }
@media (min-width: 1280px) { .header__phone { display: inline-flex; } }

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: var(--r-md);
}
.header__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: all var(--d-base) var(--ease-out);
}
.header__burger:hover { background: var(--bg-soft); }
@media (min-width: 1024px) { .header__burger { display: none; } }
.header__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 80px 0 0 0;
  z-index: var(--z-overlay);
  background: white;
  overflow-y: auto;
  padding: var(--sp-8) var(--container-px) var(--sp-12);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { margin-bottom: var(--sp-8); }
.mobile-menu__group { margin-bottom: var(--sp-6); }
.mobile-menu__group-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }

/* === Footer mega === */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(80px, 10vw, 128px) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 60%);
  opacity: 0.10;
  pointer-events: none;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
  position: relative;
}
@media (min-width: 700px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: var(--sp-10); }
}
.footer__brand h3 {
  font-size: clamp(24px, 3vw, 37px);
  margin-bottom: var(--sp-4);
  letter-spacing: var(--ls-tight);
}
.footer__brand p { color: var(--text-on-dark-2); font-size: var(--fs-sm); max-width: 36ch; }
.footer__brand-logo { height: 28px; width: auto; margin-bottom: var(--sp-6); filter: brightness(0) invert(1); }

.footer__title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-on-dark-2);
  margin-bottom: var(--sp-5);
}
.footer__list li { margin-bottom: var(--sp-3); }
.footer__list a {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-2);
  transition: color var(--d-fast);
}
.footer__list a:hover { color: white; }

.footer__contact-item {
  margin-bottom: var(--sp-4);
}
.footer__contact-label {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-on-dark-3);
  margin-bottom: var(--sp-1);
}
.footer__contact-value {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: white;
}

.footer__socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer__socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: white;
  transition: all var(--d-fast);
}
.footer__socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-3);
}
.footer__legal-links { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.footer__legal-links a:hover { color: white; }

/* Sticky bottom bar mobile */
.sticky-mobile {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-3) max(var(--sp-2), env(safe-area-inset-bottom));
  gap: var(--sp-2);
}
.sticky-mobile__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--touch-min);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  background: transparent;
  text-decoration: none;
}
.sticky-mobile__btn svg { width: 20px; height: 20px; }
.sticky-mobile__btn--primary {
  background: var(--text-primary); color: white;
}
.sticky-mobile__btn--primary:hover { background: var(--accent); }
@media (min-width: 768px) { .sticky-mobile { display: none; } }
@media (max-width: 767px) { main { padding-bottom: 80px; } }

/* Skip link a11y */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-toast);
  padding: var(--sp-3) var(--sp-5);
  background: var(--accent);
  color: white;
  border-radius: var(--r-md);
}

/* ---- components.css ---- */
/* ZoomApps 2026 v2 — Components (UnifiedInfotech-grade) */

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  min-height: var(--touch-min);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--d-base) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn--sm { padding: var(--sp-2) var(--sp-5); min-height: 40px; font-size: var(--fs-xs); }
.btn--lg { padding: var(--sp-5) var(--sp-8); font-size: var(--fs-base); }
.btn--xl { padding: var(--sp-6) var(--sp-10); font-size: var(--fs-md); }
.btn--full { width: 100%; }
.btn--icon-only { padding: var(--sp-3); min-width: var(--touch-min); }

.btn--primary {
  background: var(--text-primary);
  color: white;
}
.btn--primary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--sh-accent);
}

.btn--accent {
  background: var(--accent);
  color: white;
}
.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--sh-accent-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.btn--outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.24);
}
.btn--outline-light:hover {
  background: white;
  color: var(--text-primary);
  border-color: white;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  transition: gap var(--d-fast);
}
.btn-arrow svg { width: 14px; height: 14px; transition: transform var(--d-fast); }
.btn-arrow:hover { gap: var(--sp-3); }
.btn-arrow:hover svg { transform: translateX(2px); }

/* ============= HERO v3 ============= */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 8vw, 96px);
  position: relative;
  /* overflow: visible so iPhone + drop-shadow + glow can extend.
     .hero__bg keeps its own overflow:hidden to clip blob backgrounds. */
  overflow: visible;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__bg-blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  opacity: 0.18;
  top: -120px; right: -120px;
}
.hero__bg-blob--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
  opacity: 0.12;
  bottom: -80px; left: 20%;
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }

.hero__usp-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.hero__usp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.hero__usp svg { width: 14px; height: 14px; color: var(--accent); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.hero__grid--v3 {
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 6fr 5fr; gap: var(--sp-12); }
  .hero__grid--v3 { grid-template-columns: 6fr 5fr; }
}
.hero__content { max-width: 700px; }
.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: var(--ls-tighter);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-5);
}
.hero__title--v3 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: var(--ls-tighter);
}
.hero__title-accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: 0;
}
.btn-arrow--lg {
  font-size: var(--fs-md);
  padding: var(--sp-3) 0;
  color: var(--text-primary);
}
.btn-arrow--lg:hover { color: var(--accent); }
.btn-arrow--lg svg { width: 16px; height: 16px; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(99, 102, 241, 0.18));
}

/* Mobile: hero visual smaller */
@media (max-width: 899px) {
  .hero__visual { max-width: 480px; margin: 0 auto; }
}

/* === HERO v4 (compact, premium) === */
.hero--v4 {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero__grid--v4 {
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}
@media (min-width: 900px) {
  .hero__grid--v4 { grid-template-columns: 1.1fr 1fr; gap: var(--sp-10); }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  box-shadow: var(--sh-xs);
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero__title--v4 {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: var(--ls-tighter);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-5);
}
.hero--v4 .hero__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}
.hero--v4 .hero__usp-row {
  margin-bottom: var(--sp-8);
  gap: var(--sp-2);
}
.hero--v4 .hero__cta-row {
  margin-bottom: var(--sp-10);
}
.hero__metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .hero__metrics-row { grid-template-columns: 1fr; gap: var(--sp-4); }
}
.hero__metric { display: flex; flex-direction: column; }
.hero__metric strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__metric span {
  font-size: var(--fs-2xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}
.hero__visual--v4 {
  position: relative;
}
.hero__visual--v4 img {
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(99, 102, 241, 0.16));
}
.hero__visual--v4 .iso-laptop { animation: isoFloat 9s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .iphone-17pm { animation: phoneFloat 7s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .float-card-1 { animation: floatCard 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .float-card-2 { animation: floatCard 7s ease-in-out infinite; animation-delay: -1s; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .float-card-3 { animation: floatCard 8s ease-in-out infinite; animation-delay: -2s; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .float-card-4 { animation: floatCard 6.5s ease-in-out infinite; animation-delay: -3s; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .float-card-5 { animation: floatCard 5s ease-in-out infinite; animation-delay: -2.5s; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .chip-1 { animation: floatCard 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .chip-2 { animation: floatCard 4.5s ease-in-out infinite; animation-delay: -1s; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .chip-3 { animation: floatCard 5s ease-in-out infinite; animation-delay: -2s; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .pulse-live { animation: pulseLive 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero__visual--v4 .dash-flow { animation: dashMove 1.2s linear infinite; }

@keyframes isoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseLive { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
@keyframes dashMove { to { stroke-dashoffset: -14; } }

/* === Mega menu "Для бизнеса" — premium 3-col === */
.mega-menu--biz {
  width: min(960px, 94vw);
  padding: var(--sp-7) var(--sp-7) var(--sp-5);
}
.mega-menu__head { margin-bottom: var(--sp-5); }
.mega-menu__head-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 6px 0 0;
  line-height: 1.5;
}
.mega-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: var(--sp-5);
}
.biz-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: white;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--d-base) var(--ease-out);
  overflow: hidden;
}
.biz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,168,118,0.05) 0%, rgba(99,102,241,0.04) 100%);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease-out);
  pointer-events: none;
}
.biz-card:hover {
  border-color: #C8A876;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(200, 168, 118, 0.18), 0 4px 12px rgba(10, 10, 10, 0.06);
}
.biz-card:hover::before { opacity: 1; }

.biz-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 14px rgba(10, 10, 10, 0.10);
}
.biz-card__icon svg { width: 22px; height: 22px; }
.biz-card__icon--ecom      { background: linear-gradient(135deg, #C8A876 0%, #A8814E 100%); }
.biz-card__icon--delivery  { background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%); }
.biz-card__icon--fintech   { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.biz-card__icon--utilities { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.biz-card__icon--health    { background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%); }
.biz-card__icon--media     { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }

.biz-card__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.biz-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.biz-card__title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: var(--text-primary);
}
.biz-card__count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.biz-card__clients {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.biz-card__arrow {
  position: absolute;
  top: 14px; right: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--d-base) var(--ease-out);
  color: #C8A876;
  z-index: 2;
}
.biz-card__arrow svg { width: 16px; height: 16px; }
.biz-card:hover .biz-card__arrow { opacity: 1; transform: translateX(0); }

/* CTA band at bottom of mega menu */
.mega-menu__cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: 18px 22px;
  background: linear-gradient(135deg, #0E0E10 0%, #1A1A1D 100%);
  border-radius: 14px;
  color: white;
}
.mega-menu__cta-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.mega-menu__cta-sub {
  font-size: 12.5px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  max-width: 480px;
}
.mega-menu__cta-band .btn--primary {
  background: linear-gradient(135deg, #C8A876 0%, #A8814E 100%);
  flex-shrink: 0;
}
.mega-menu__cta-band .btn--primary:hover {
  background: #A8814E;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(200, 168, 118, 0.42);
}

@media (max-width: 1024px) {
  .mega-menu--biz { padding: var(--sp-5); }
  .mega-biz-grid { grid-template-columns: 1fr 1fr; }
  .mega-menu__cta-band { flex-direction: column; align-items: flex-start; }
}

/* === Services grid stagger reveal === */
.services-grid--stagger .service-card {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    background var(--d-base) var(--ease-out),
    color var(--d-base) var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 90ms);
}
.services-grid--stagger.is-visible .service-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Desktop: alternate from-left/from-right by column */
@media (min-width: 1024px) {
  .services-grid--stagger .service-card { transform: translateY(20px) scale(0.985); }
  /* col 1, col 4 — слева */
  .services-grid--stagger .service-card:nth-child(4n+1),
  .services-grid--stagger .service-card:nth-child(4n+4) {
    transform: translateX(-32px) translateY(8px) scale(0.985);
  }
  /* col 2, col 3 — справа */
  .services-grid--stagger .service-card:nth-child(4n+2),
  .services-grid--stagger .service-card:nth-child(4n+3) {
    transform: translateX(32px) translateY(8px) scale(0.985);
  }
  .services-grid--stagger.is-visible .service-card { transform: translate(0,0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .services-grid--stagger .service-card { transition: none; transform: none; opacity: 1; }
}

/* === iPhone 17 Pro Max — PURE CSS Pro frame === */
/* Real device: 440×956 pt, aspect 0.4602. Body bezel ~3.5mm = 1.8% of width.
   Screen radius: 12% of width. Dynamic Island: 27% × 3.5% of frame, top ~1.3%. */
.real-iphone {
  position: relative;
  width: 246px;
  height: 535px;          /* 246 × 956/440 ≈ 535. Was 290×630, scaled -15% */
  margin: 0 auto;
  filter:
    drop-shadow(0 42px 92px rgba(200, 168, 118, 0.22))
    drop-shadow(0 15px 34px rgba(99, 102, 241, 0.16))
    drop-shadow(0 6px 15px rgba(10, 10, 10, 0.32));
  transform: rotateY(-6deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.real-iphone.is-tilting {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { .real-iphone { width: 272px; height: 591px; } }
@media (min-width: 1280px) { .real-iphone { width: 289px; height: 628px; } }
@media (max-width: 480px) { .real-iphone { width: 213px; height: 463px; } }
/* Outer titanium body */
.real-iphone__frame {
  position: absolute;
  inset: 0;
  background:
    /* subtle vertical brushing reflection */
    linear-gradient(105deg,
      #6B6B70 0%,
      #2A2A2E 12%,
      #38383C 24%,
      #1A1A1D 38%,
      #2C2C30 52%,
      #1F1F22 66%,
      #3A3A3E 78%,
      #1A1A1D 90%,
      #2A2A2E 100%);
  border-radius: 14%;
  /* Bezel thickness — 1.8% per side = 3.6% total */
  padding: 1.8%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.20),
    inset 0 -1.5px 1.5px rgba(0, 0, 0, 0.50);
}
/* Inner screen */
.real-iphone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0A0A0C;
  border-radius: 11.5%;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 12px rgba(0, 0, 0, 0.4);
}
/* Dynamic Island */
.real-iphone__notch {
  position: absolute;
  top: 1.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 3.4%;
  background: #050507;
  border-radius: 999px;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 0.5px 0.5px rgba(255, 255, 255, 0.05);
}
/* Camera lens dot inside island */
.real-iphone__notch::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%,
      #4A4A50 0%,
      #1A1A1F 35%,
      #050507 70%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
/* Subtle Face ID dot on left of island */
.real-iphone__notch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 14%;
  transform: translateY(-50%);
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

/* Screenshot slides — fit fully into screen, no crop */
.real-iphone__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  animation: castlyCarousel 21s infinite;
}
.real-iphone__slide:nth-child(1) { animation-delay: 0s; }
.real-iphone__slide:nth-child(2) { animation-delay: 3s; }
.real-iphone__slide:nth-child(3) { animation-delay: 6s; }
.real-iphone__slide:nth-child(4) { animation-delay: 9s; }
.real-iphone__slide:nth-child(5) { animation-delay: 12s; }
.real-iphone__slide:nth-child(6) { animation-delay: 15s; }
.real-iphone__slide:nth-child(7) { animation-delay: 18s; }

@keyframes castlyCarousel {
  0%   { opacity: 0; transform: translateY(12px) scale(1.03); }
  3%   { opacity: 1; transform: translateY(0) scale(1); }
  14.3% { opacity: 1; transform: translateY(0) scale(1); }
  17%  { opacity: 0; transform: translateY(-12px) scale(0.97); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

/* Realistic side buttons */
.real-iphone__btn {
  position: absolute;
  background: linear-gradient(90deg, #3A3A3E 0%, #1A1A1D 50%, #3A3A3E 100%);
  z-index: -1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.real-iphone__btn--volume-up,
.real-iphone__btn--volume-down,
.real-iphone__btn--mute {
  left: -1.5%;
  width: 1.5%;
  border-radius: 2px 0 0 2px;
}
.real-iphone__btn--mute { top: 16%; height: 4.5%; }
.real-iphone__btn--volume-up { top: 23%; height: 8%; }
.real-iphone__btn--volume-down { top: 33%; height: 8%; }
.real-iphone__btn--power {
  right: -1.5%;
  top: 26%; height: 11%;
  width: 1.5%;
  border-radius: 0 2px 2px 0;
}

/* Iphone-stage container for floating cards */

/* Floating live cards around real-iphone */
.iphone-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  /* Generous top/bottom padding so drop-shadow + glow fully visible */
  padding: 60px 14% 80px;
  perspective: 2400px;
  perspective-origin: 50% 40%;
}
/* Volumetric studio glow behind phone */
.iphone-stage::before {
  content: '';
  position: absolute;
  top: 8%; left: 0; right: 0; bottom: 8%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 35%, rgba(200, 168, 118, 0.42) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 70% 65%, rgba(99, 102, 241, 0.36) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  animation: glowBreath 8s ease-in-out infinite;
}
@keyframes glowBreath {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.iphone-stage__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 168, 118, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.18) 0%, transparent 55%);
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
}
.iphone-stage__phone {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
}
.float-stage-card {
  position: absolute;
  z-index: 3;
  background: white;
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--font-body);
  box-shadow: 0 12px 32px rgba(10,10,10,0.10);
  animation: cardFloat 6s ease-in-out infinite;
}
.float-stage-card--app-store {
  top: 10%; left: -8%;
  width: 167px;
  padding: 10px 13px;
  animation-delay: -1s;
}
.float-stage-card--rating {
  top: 38%; right: -10%;
  width: 143px;
  padding: 10px 13px;
  animation-delay: -2s;
}
.float-stage-card--match {
  bottom: 30%; left: -10%;
  width: 156px;
  padding: 10px 13px;
  background: linear-gradient(135deg, #C8A876 0%, #A8814E 100%);
  color: #0E0E10;
  animation-delay: -3s;
}
.float-stage-card--code {
  bottom: 6%; right: -2%;
  width: 187px;
  padding: 10px 13px;
  background: #0A0A0A;
  color: white;
  font-family: var(--font-mono);
  animation-delay: -4s;
}
.float-stage-card .label { font-size: 8.5px; }
.float-stage-card .value { font-size: 16px; }
.float-stage-card .value-small { font-size: 11px; }
.float-stage-card .value-trend { font-size: 9.5px; }
.float-stage-card .label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  color: #8C8C8C; text-transform: uppercase; margin-bottom: 4px;
}
.float-stage-card--match .label { color: rgba(14,14,16,0.65); }
.float-stage-card .value {
  font-size: 18px; font-weight: 800; letter-spacing: -0.4px;
  color: #0A0A0A;
}
.float-stage-card--match .value { color: #0E0E10; }
.float-stage-card .value-small {
  font-size: 13px; font-weight: 700;
  color: #0A0A0A; line-height: 1.3;
}
.float-stage-card .value-trend {
  font-size: 11px; font-weight: 600;
  color: #10B981; font-family: var(--font-mono);
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Hide on small mobiles for cleanness */
@media (max-width: 700px) {
  .float-stage-card { display: none; }
  .iphone-stage__phone { height: 100%; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(2px); }
}
@keyframes blobMorph {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33% { transform: scale(1.02) rotate(2deg); }
  66% { transform: scale(0.99) rotate(-1deg); }
}

/* ============= STATS PRO (premium 2026 — light variant) ============= */
.stats-pro {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
  background: #FAFAF8;
  color: #0A0A0C;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(10, 10, 16, 0.06);
  border-bottom: 1px solid rgba(10, 10, 16, 0.06);
}
/* Background: subtle gold mist + dot grid (light) */
.stats-pro__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stats-pro__bg::before {
  content: '';
  position: absolute;
  top: -20%; right: -25%;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232, 184, 95, 0.18) 0%, transparent 60%);
  filter: blur(50px);
}
.stats-pro__bg::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200, 168, 118, 0.10) 0%, transparent 60%);
  filter: blur(50px);
}
.stats-pro__grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(10, 10, 16, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.6;
}
.stats-pro .container { position: relative; z-index: 1; }

/* === Header === */
.stats-pro__head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.stats-pro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #8C7A52;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(200, 168, 118, 0.42);
  border-radius: 999px;
  background: rgba(232, 184, 95, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stats-pro__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C8A876;
  box-shadow: 0 0 10px rgba(229, 200, 150, 0.85);
  animation: statsProPulse 1.8s ease-in-out infinite;
}
@keyframes statsProPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.stats-pro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 200;
  letter-spacing: -1.8px;
  line-height: 1.05;
  color: #0A0A0C;
}
.stats-pro__title em {
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(135deg, #E5C896 0%, #C8A876 50%, #8C7A52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Grid === */
.stats-pro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 540px) { .stats-pro__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .stats-pro__grid { grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(10, 10, 16, 0.08); border-bottom: 1px solid rgba(10, 10, 16, 0.08); } }

/* === Single stat plate (light) === */
.stat-pro {
  position: relative;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px);
  border: 1px solid rgba(10, 10, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(28px);
  transition-property: opacity, transform, border-color, background, box-shadow;
  transition-duration: 0.9s, 0.9s, 0.5s, 0.5s, 0.5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.12s);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-stats-pro].is-visible .stat-pro {
  opacity: 1;
  transform: translateY(0);
}
.stat-pro:hover {
  border-color: rgba(200, 168, 118, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px -12px rgba(232, 184, 95, 0.20), 0 6px 14px -4px rgba(10, 10, 16, 0.06);
}

/* On desktop: borderless plates with vertical dividers */
@media (min-width: 1024px) {
  .stat-pro {
    border: none;
    border-right: 1px solid rgba(10, 10, 16, 0.08);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
  }
  .stat-pro:last-child { border-right: none; }
  .stat-pro:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(200, 168, 118, 0.55);
    box-shadow: 0 18px 44px -12px rgba(232, 184, 95, 0.18);
  }
}

/* Hover sheen sweep */
.stat-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(232, 184, 95, 0.18) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.stat-pro:hover::before { transform: translateX(100%); }

.stat-pro__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: rgba(10, 10, 16, 0.32);
  margin-bottom: 16px;
}
.stat-pro--accent .stat-pro__index { color: #8C7A52; }

/* The huge LIGHT-weight number */
.stat-pro__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 9.5vw, 96px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -3.4px;
  color: #0A0A0C;
  margin-bottom: 18px;
}
.stat-pro--accent .stat-pro__num {
  background: linear-gradient(135deg, #C8A876 0%, #A8814E 50%, #6F5630 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(200, 168, 118, 0.30));
}

/* Gold underline (animated draw) */
.stat-pro__line {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #C8A876 0%, #6F5630 100%);
  border-radius: 2px;
  margin-bottom: 14px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 0.12s + 0.4s);
  box-shadow: 0 0 10px rgba(200, 168, 118, 0.45);
}
[data-stats-pro].is-visible .stat-pro__line { transform: scaleX(1); }
.stat-pro:hover .stat-pro__line { width: 56px; transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

.stat-pro__label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #0A0A0C;
  line-height: 1.35;
}
.stat-pro__sub {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05px;
  color: rgba(10, 10, 16, 0.50);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .stat-pro, .stat-pro__line { transition: none !important; opacity: 1; transform: none; }
}

/* ============= MARQUEE ============= */
.marquee {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.marquee__label {
  text-align: center;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-8);
}
.marquee__track {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  animation: marquee var(--d-marquee) linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex-shrink: 0;
  height: 32px;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--fw-bold);
  color: var(--text-tertiary);
  letter-spacing: var(--ls-tight);
  opacity: 0.7;
  transition: opacity var(--d-fast);
}
.marquee__item:hover { opacity: 1; color: var(--text-primary); }
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-soft) 0%, transparent 100%); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg-soft) 0%, transparent 100%); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============= SERVICES GRID ============= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: white;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 320px;
  transition: background var(--d-base) var(--ease-out);
}
.service-card:hover { background: var(--bg-soft); color: var(--text-primary); }
.service-card__icon {
  width: 64px; height: 64px;
  margin-bottom: var(--sp-8);
  color: var(--text-primary);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
  flex: 1;
}
.service-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.service-card__price { font-family: var(--font-mono); font-weight: var(--fw-medium); }
.service-card__arrow {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--text-primary);
  color: white;
  transition: all var(--d-base) var(--ease-out);
  transform: translateX(0);
}
.service-card__arrow svg { width: 14px; height: 14px; }
.service-card:hover .service-card__arrow {
  background: var(--accent);
  transform: translateX(4px);
}

/* ============= CASE CARDS ============= */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cases-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); } }

.case-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--d-base) var(--ease-out);
}
.case-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  color: var(--text-primary);
}
.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--grad-mesh), var(--bg-soft);
  overflow: hidden;
}
.case-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--d-slow) var(--ease-out);
}
.case-card:hover .case-card__media img { transform: scale(1.04); }

.case-card__tag {
  position: absolute;
  top: var(--sp-4); left: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-primary);
}

.case-card__body {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.case-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
  flex: 1;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}
.case-metric__num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.case-metric__label {
  font-size: var(--fs-2xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.case-card__platforms {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.platform-chip svg { width: 12px; height: 12px; }

/* === Premium portfolio cards (real photos from legacy) === */
.cases-grid--premium {
  gap: var(--sp-6);
}
@media (min-width: 768px) { .cases-grid--premium { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cases-grid--premium { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

.case-card--premium {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--d-base) var(--ease-out),
    box-shadow var(--d-base) var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 70ms);
}
[data-reveal].is-visible .case-card--premium {
  opacity: 1;
  transform: translateY(0);
}
.case-card--premium:hover {
  border-color: transparent;
  box-shadow: 0 24px 56px rgba(10, 10, 10, 0.10), 0 4px 12px rgba(10,10,10,0.06);
  transform: translateY(-6px);
}
.case-card--premium .case-card__media {
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #F8F7F4 0%, #EFEEE9 100%);
}
.case-card--premium .case-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(10,10,10,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.case-card--premium .case-card__tag {
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.8px;
  background: rgba(10,10,10,0.85);
  color: white;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.case-card--premium .case-card__body {
  padding: 22px 22px 24px;
}
.case-card--premium .case-card__title {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  line-height: 1.25;
}
.case-card--premium .case-card__title span {
  font-weight: 500;
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.1px;
  display: block;
  margin-top: 2px;
}
.case-card--premium .case-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--text-secondary);
  /* Limit to 3 lines for symmetry */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card--premium .case-metrics {
  padding: 12px 0 14px;
  margin-bottom: 14px;
  gap: 12px;
}
.case-card--premium .case-metric__num { font-size: 18px; }
.case-card--premium .case-metric__label { font-size: 9px; }
.case-card--premium .case-card__platforms { gap: 6px; }
.case-card--premium .platform-chip {
  font-size: 10px;
  padding: 4px 9px;
  letter-spacing: 0.3px;
}

/* CTA arrow when hover */
.case-card--premium::after {
  content: '↗';
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  font-size: 17px;
  color: var(--text-primary);
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  transition: all var(--d-base) var(--ease-out);
}
.case-card--premium:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .case-card--premium { opacity: 1; transform: none; transition: none; }
}

/* ============= PROCESS ZIGZAG ============= */
.process {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
}
.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .process-step { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .process-step:nth-child(even) .process-step__content { order: 2; }
  .process-step:nth-child(even) .process-step__visual { order: 1; }
}
.process-step__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.process-step__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.5;
}
.process-step__num {
  position: absolute;
  top: var(--sp-6); left: var(--sp-6);
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tightest);
  color: var(--accent);
  line-height: 0.9;
  opacity: 0.18;
  pointer-events: none;
}
.process-step__icon {
  position: relative;
  width: clamp(80px, 10vw, 140px);
  height: clamp(80px, 10vw, 140px);
  color: var(--text-primary);
}
.process-step__icon svg { width: 100%; height: 100%; }

.process-step__content { padding: var(--sp-4) 0; }
.process-step__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.process-step__title {
  font-size: clamp(28px, 3vw, 49px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tighter);
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}
.process-step__desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
  max-width: 50ch;
}
.process-step__deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.deliverable-chip {
  padding: var(--sp-2) var(--sp-4);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ============= TECH STACK GRID ============= */
.tech-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}
@media (min-width: 768px) { .tech-stack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .tech-stack { grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); } }

.tech-category__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--accent);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.tech-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.tech-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: all var(--d-fast);
}
.tech-item:hover { background: var(--bg-soft); color: var(--text-primary); }
.tech-item__logo {
  width: 22px; height: 22px;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--d-fast);
}
.tech-item:hover .tech-item__logo { filter: grayscale(0) opacity(1); }

/* ============= TESTIMONIALS ============= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
}
.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: var(--sp-4);
  font-weight: var(--fw-extrabold);
}
.testimonial__quote {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
  flex: 1;
}
.testimonial__rating {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.testimonial__rating svg { width: 16px; height: 16px; }
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.testimonial__role {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* ============= FAQ PREMIUM ============= */
.faq {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: clamp(20px, 2vw, 32px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  transition: color var(--d-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all var(--d-base);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: '';
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--d-base);
}
.faq-item__icon::before { width: 12px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 12px; position: absolute; }
.faq-item[open] .faq-item__icon { background: var(--text-primary); color: white; border-color: var(--text-primary); }
.faq-item[open] .faq-item__icon::after { transform: scaleY(0); }
.faq-item__body {
  padding: 0 0 var(--sp-8);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 78ch;
}

/* ============= PRICING ============= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 48px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  position: relative;
  transition: all var(--d-base);
}
.price-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.price-card--popular {
  border: 1.5px solid var(--text-primary);
  background: var(--text-primary);
  color: white;
}
.price-card--popular .price-card__price { color: white; }
.price-card--popular .price-card__desc { color: var(--text-on-dark-2); }
.price-card--popular .price-card__features li { color: white; }
.price-card--popular .price-card__features li::before { background: var(--accent); }
.price-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: var(--sp-1) var(--sp-4);
  background: var(--accent);
  color: white;
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
}
.price-card__name {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-2xs);
}
.price-card--popular .price-card__name { color: var(--text-on-dark-2); }
.price-card__price {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 49px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tighter);
  line-height: 1;
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}
.price-card__price-suffix { font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--text-tertiary); }
.price-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--sp-8);
}
.price-card__features {
  list-style: none;
  margin: 0 0 var(--sp-8);
  flex: 1;
}
.price-card__features li {
  position: relative;
  padding-left: var(--sp-7);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-primary);
}
.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 10px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5L6 9L15 1' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5L6 9L15 1' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============= CITIES PILLS ============= */
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}
.city-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--d-fast);
}
.city-pill:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  transform: translateY(-1px);
}
.city-pill--featured {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  font-weight: var(--fw-semibold);
}
.city-pill--featured:hover { background: var(--accent); border-color: var(--accent); }
.city-pill--intl {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: transparent;
}

/* ============= BREADCRUMBS ============= */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-8);
}
.breadcrumbs a { color: var(--text-tertiary); transition: color var(--d-fast); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { color: var(--text-quaternary); }

/* ============= CTA BAND ============= */
.cta-band {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0;
  background: var(--bg-dark);
  color: white;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark-mesh);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .cta-band__inner { grid-template-columns: 1.5fr 1fr; gap: var(--sp-16); }
}
.cta-band__title {
  font-size: clamp(36px, 5vw, 65px);
  font-weight: var(--fw-extrabold);
  line-height: 1.0;
  letter-spacing: var(--ls-tighter);
  color: white;
  margin-bottom: var(--sp-6);
}
.cta-band__sub {
  font-size: var(--fs-md);
  color: var(--text-on-dark-2);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.cta-band__form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 3vw, 40px);
  backdrop-filter: blur(8px);
}

/* ============= FORM ============= */
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.form-row__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-on-dark-2);
}
.form-row input,
.form-row textarea {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: var(--fs-base);
  transition: all var(--d-fast);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-on-dark-3); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-legal {
  font-size: var(--fs-2xs);
  color: var(--text-on-dark-3);
  text-align: center;
  margin-top: var(--sp-4);
}
.form-legal a { color: var(--accent); }

/* ============= TAGS / CHIPS ============= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.chip--accent { background: var(--accent-tint); color: var(--accent); border-color: transparent; }
.chip--dark { background: var(--text-primary); color: white; border-color: var(--text-primary); }

/* ============= LONGREAD ============= */
.longread { max-width: var(--reading-max); }
.longread h2 { margin: clamp(48px, 6vw, 80px) 0 var(--sp-6); font-size: clamp(28px, 3.5vw, 49px); }
.longread h3 { margin: clamp(32px, 4vw, 48px) 0 var(--sp-5); font-size: clamp(21px, 2.5vw, 28px); }
.longread p { font-size: var(--fs-md); line-height: 1.7; color: var(--text-primary); margin-bottom: var(--sp-5); }
.longread ul, .longread ol { margin: var(--sp-5) 0; padding-left: var(--sp-7); }
.longread ul li, .longread ol li { font-size: var(--fs-md); line-height: 1.7; color: var(--text-primary); margin-bottom: var(--sp-2); }
.longread strong { font-weight: var(--fw-semibold); color: var(--text-primary); }
.longread blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-6);
  margin: var(--sp-8) 0;
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
}
.longread code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--text-primary);
}

/* ============= INDUSTRIES GRID ============= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .industries-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-8);
  background: white;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  transition: background var(--d-fast);
}
.industry-item:hover { background: var(--accent-tint); }
.industry-item__icon {
  font-size: var(--fs-xl);
  color: var(--accent);
}

/* ============= PHILOSOPHY / WHY US ============= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-10); } }
.why-card {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--text-primary);
}
.why-card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  margin-bottom: var(--sp-5);
}
.why-card__title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.why-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============= SCROLL PROGRESS ============= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  z-index: var(--z-toast);
  transition: width 60ms linear;
}

/* ============= LEAD MODAL ============= */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
}
.lead-modal[hidden] {
  display: flex; /* keep flex so transitions work */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
body.is-lead-open .lead-modal,
.lead-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-lead-open .lead-modal__backdrop,
.lead-modal.is-open .lead-modal__backdrop { opacity: 1; }
.lead-modal__panel {
  position: relative;
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 22px 22px 0 0;
  padding: 22px 22px 18px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -10px 60px -10px rgba(10, 10, 16, 0.30);
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
body.is-lead-open .lead-modal__panel,
.lead-modal.is-open .lead-modal__panel {
  transform: translateY(0);
}
@media (min-width: 700px) {
  .lead-modal { align-items: center; }
  .lead-modal__panel {
    border-radius: 22px;
    max-height: 86vh;
    padding: 26px 26px 22px;
    transform: translateY(40px) scale(0.96);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
    opacity: 0;
  }
  body.is-lead-open .lead-modal__panel,
  .lead-modal.is-open .lead-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.lead-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 16, 0.05);
  color: rgba(10, 10, 16, 0.55);
  display: grid; place-items: center;
  transition: all 0.22s ease-out;
  border: none;
  cursor: pointer;
}
.lead-modal__close:hover { background: #0A0A0C; color: white; transform: scale(1.05); }
.lead-modal__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
  line-height: 1.15;
  color: #0A0A0C;
}
.lead-modal__sub { font-size: 13px; color: rgba(10, 10, 16, 0.55); margin-bottom: 18px; line-height: 1.45; }

/* Premium pill (gold, compact) */
.lead-modal__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: rgba(232, 184, 95, 0.08);
  color: #8C7A52;
  border: 1px solid rgba(229, 200, 150, 0.42);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.lead-modal__pill-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #C8A876;
  box-shadow: 0 0 8px rgba(200, 168, 118, 0.85);
  animation: pulse 2s ease-in-out infinite;
}
.lead-modal__head { margin-bottom: 6px; }

/* Form fields — compact premium */
.lead-field {
  display: block;
  position: relative;
  margin-bottom: 10px;
}
.lead-field__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(10, 10, 16, 0.55);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.lead-field__opt { font-weight: 500; color: rgba(10, 10, 16, 0.35); text-transform: none; letter-spacing: 0; }
.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(10, 10, 16, 0.03);
  border: 1px solid rgba(10, 10, 16, 0.10);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #0A0A0C;
  transition: all 0.22s ease-out;
  resize: vertical;
}
.lead-field input::placeholder,
.lead-field textarea::placeholder { color: rgba(10, 10, 16, 0.30); }
.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: #C8A876;
  background: white;
  box-shadow: 0 0 0 3px rgba(232, 184, 95, 0.16);
}

/* Captcha — compact, gold-accent */
.lead-captcha {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(10, 10, 16, 0.10);
  border-radius: 999px;
  cursor: pointer;
  margin: 6px 0 14px;
  transition: all 0.22s ease-out;
  background: rgba(10, 10, 16, 0.02);
}
.lead-captcha:hover { border-color: rgba(229, 200, 150, 0.55); background: rgba(232, 184, 95, 0.05); }
.lead-captcha input { position: absolute; opacity: 0; pointer-events: none; }
.lead-captcha__box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(10, 10, 16, 0.20);
  background: white;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  transition: all 0.22s ease-out;
}
.lead-captcha__box svg { opacity: 0; transform: scale(0.5); transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lead-captcha input:checked + .lead-captcha__box {
  background: linear-gradient(135deg, #C8A876, #8C7A52);
  border-color: #8C7A52;
}
.lead-captcha input:checked + .lead-captcha__box svg { opacity: 1; transform: scale(1); }
.lead-captcha__label {
  font-size: 12.5px;
  font-weight: 600;
  color: #0A0A0C;
}

/* Compact submit — small, dark, gold sheen */
.lead-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 44px;
  background: #0A0A0C;
  color: white;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px -6px rgba(10, 10, 16, 0.40);
  transition: transform 0.18s ease-out;
}
.lead-form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(232, 184, 95, 0.32) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.lead-form__submit:hover::before { transform: translateX(100%); }
.lead-form__submit:active { transform: scale(0.98); }
.lead-form__submit svg { transition: transform 0.3s; }
.lead-form__submit:active svg { transform: translateX(2px); }

/* OR divider */
.lead-modal__or {
  position: relative;
  text-align: center;
  margin: 16px 0 12px;
}
.lead-modal__or::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(10, 10, 16, 0.08);
}
.lead-modal__or span {
  position: relative;
  background: white;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(10, 10, 16, 0.40);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* Social row — gold compact circles */
.lead-modal__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.lead-modal__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(229, 200, 150, 0.32);
  background: rgba(232, 184, 95, 0.06);
  color: #C8A876;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lead-modal__social-btn:hover {
  transform: translateY(-2px);
  background: rgba(232, 184, 95, 0.18);
  border-color: rgba(229, 200, 150, 0.55);
  color: #8C7A52;
  box-shadow: 0 8px 18px -4px rgba(200, 168, 118, 0.40);
}

.lead-modal__legal {
  font-size: 10.5px;
  color: rgba(10, 10, 16, 0.40);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.5;
}
.lead-modal__legal a { color: #8C7A52; text-decoration: none; border-bottom: 1px dotted currentColor; }

/* Success state */
.lead-form__success { text-align: center; padding: 24px 0 8px; }
.lead-form__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8A876, #8C7A52);
  margin: 0 auto 14px;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -6px rgba(200, 168, 118, 0.40);
}
.lead-form__success h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  color: #0A0A0C;
}
.lead-form__success p { color: rgba(10, 10, 16, 0.55); font-size: 13px; margin: 0; }

/* ============= AUTHOR / PERSON ============= */
.author-card {
  display: flex;
  gap: var(--sp-6);
  padding: clamp(24px, 3vw, 40px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  align-items: center;
}
.author-card__photo {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  flex-shrink: 0;
  overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.author-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card__role {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.author-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-2);
}
.author-card__bio { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.55; }

/* ============= MEDIA / FORBES MENTION ============= */
.media-mentions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
  justify-content: center;
}
.media-mention {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--d-base);
}
.media-mention:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.media-mention__brand { font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.media-mention__quote { color: var(--text-secondary); font-style: italic; }

/* ============= UTILITIES ============= */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }
.text-center { text-align: center; }
.flex { display: flex; gap: var(--sp-3); }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-auto { margin-top: auto; }
.opacity-60 { opacity: 0.6; }
.no-wrap { white-space: nowrap; }

/* === About Link Block (internal SEO links to /o-kompanii from service+city pages) === */
.about-link-block { padding: clamp(40px, 6vw, 72px) 0; }
.about-link {
  position: relative;
  padding: 36px 40px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 100%);
  border-radius: 18px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.about-link:hover { border-color: rgba(212, 175, 55, 0.48); box-shadow: 0 24px 60px -20px rgba(212, 175, 55, 0.18); }
.about-link__lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: var(--text-primary); margin: 0; flex: 1; min-width: 280px; }
.about-link__lead a { color: #B8932E; text-decoration: none; border-bottom: 1px dashed rgba(184, 147, 46, 0.35); transition: border-color 0.3s ease; }
.about-link__lead a:hover { border-bottom-color: #B8932E; }
.about-link__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 99px;
  background: linear-gradient(135deg, #D4AF37, #B8932E);
  color: #0A0A0C; font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  text-decoration: none; flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px -10px rgba(212, 175, 55, 0.45);
}
.about-link__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(212, 175, 55, 0.6); }
@media (max-width: 680px) {
  .about-link { padding: 24px 22px; flex-direction: column; align-items: stretch; text-align: left; }
  .about-link__cta { align-self: flex-start; }
}

/* ---- animations.css ---- */
/* ZoomApps 2026 v2 — Animations (visible-first FINAL) */

/* All content always visible — no JS dependency */
[data-reveal] { opacity: 1 !important; transform: none !important; }
.hero__title, .hero__lead, .hero__cta-row, .hero__trust, .hero__visual { opacity: 1; }

/* Hero entrance — DISABLED (was hiding content on cache miss). Hero is visible immediately. */

/* Hero illustration — orbital animations */
.hero-illustration .orbit-outer  { animation: rotate 80s linear infinite; transform-origin: 270px 270px; transform-box: fill-box; }
.hero-illustration .orbit-middle { animation: rotateReverse 60s linear infinite; transform-origin: 270px 270px; transform-box: fill-box; }
.hero-illustration .orbit-inner  { animation: rotate 30s linear infinite; transform-origin: 270px 270px; transform-box: fill-box; }
.hero-illustration .particles circle,
.hero-illustration .particles rect { animation: float 6s var(--ease-in-out) infinite; }
.hero-illustration .particles > *:nth-child(2) { animation-delay: -1s; }
.hero-illustration .particles > *:nth-child(3) { animation-delay: -2s; }
.hero-illustration .particles > *:nth-child(4) { animation-delay: -3s; }
.hero-illustration .particles > *:nth-child(5) { animation-delay: -4s; }
.hero-illustration .particles > *:nth-child(6) { animation-delay: -5s; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rotateReverse { to { transform: rotate(-360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Header scrolled state */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh-sm);
}

/* Mobile menu slide */
.mobile-menu { animation: menuSlide 400ms var(--ease-out-expo); }
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Counter targets */
.stat-num[data-counter] { font-variant-numeric: tabular-nums; }

/* Button magnetic ready */
.btn { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-illustration .orbit-outer,
  .hero-illustration .orbit-middle,
  .hero-illustration .orbit-inner,
  .hero-illustration .particles * { animation: none !important; }
  .marquee__track { animation: none !important; }
}

/* ---- hero-mobile.css ---- */
/* ZoomApps 2026 — Mobile (≤899px). Editorial dark luxury · Linear / Anthropic / Apple iPhone-page level. */

.hm { display: none; }
.mobile-cta-bar { display: none; }
.snap-rail, .snap-pill { display: none; }

/* === CINEMA MANDATORY SNAP — глобально (desktop + mobile, как /portfolio) === */
/* Иван 10.05: «целым экраном поменялся, второй слайд целым экраном» — full-screen presentation everywhere */
html.is-home { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
html.is-home [data-snap],
html.is-home [data-snap-strict] {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100svh;
}
/* Длинные секции — внутренний скролл */
html.is-home section[data-snap],
html.is-home section[data-snap-strict] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Reduced motion — без mandatory чтобы accessibility */
@media (prefers-reduced-motion: reduce) {
  html.is-home { scroll-snap-type: none; scroll-behavior: auto; }
  html.is-home [data-snap], html.is-home [data-snap-strict] { min-height: 0; }
}

@media (max-width: 899px) {
  .hero--v4 { display: none !important; }

  /* === Hero — full-bleed dark luxury === */
  .hm {
    display: block;
    position: relative;
    min-height: calc(100svh);
    background: #0A0A0C;
    color: white;
    overflow: hidden;
    isolation: isolate;
  }
  /* Subtle ambient indigo glow at bottom-left (kept for balance) */
  .hm::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -20%;
    width: 70%; aspect-ratio: 1;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
  }

  /* === Right-side gold aurora (animated) === */
  .hm__aurora {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 75%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    /* Mask to fade aurora towards left edge so it stays "right side" effect */
    -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
    mask-image: linear-gradient(to left, black 30%, transparent 100%);
  }
  .hm__aurora-blob {
    position: absolute;
    will-change: transform, opacity;
    pointer-events: none;
  }
  /* Blob 1 — large rotating conic (golden whirl) */
  .hm__aurora-blob--1 {
    top: -30%; right: -40%;
    width: 130%; aspect-ratio: 1;
    border-radius: 50%;
    background:
      conic-gradient(from 0deg at 50% 50%,
        transparent 0deg,
        rgba(229, 200, 150, 0.0) 40deg,
        rgba(229, 200, 150, 0.30) 90deg,
        rgba(232, 184, 95, 0.42) 130deg,
        rgba(229, 200, 150, 0.20) 180deg,
        transparent 240deg,
        transparent 360deg);
    filter: blur(40px);
    opacity: 0.85;
    animation: hmBlobSpin 18s linear infinite;
    mix-blend-mode: screen;
  }
  /* Blob 2 — pulsing core warmth */
  .hm__aurora-blob--2 {
    top: 20%; right: -25%;
    width: 90%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(248, 215, 145, 0.35) 0%,
      rgba(200, 168, 118, 0.20) 30%,
      transparent 60%);
    filter: blur(50px);
    animation: hmBlobBreath 7s ease-in-out infinite;
    mix-blend-mode: screen;
  }
  /* Blob 3 — drifting amber accent */
  .hm__aurora-blob--3 {
    bottom: -10%; right: -10%;
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(229, 200, 150, 0.32) 0%,
      transparent 55%);
    filter: blur(60px);
    animation: hmBlobDrift 11s ease-in-out infinite alternate;
    mix-blend-mode: screen;
  }
  /* Diagonal sweeping gold beam over the right side (the main "shimmer") */
  .hm__aurora-beam {
    position: absolute;
    top: -20%; right: -15%;
    width: 75%; height: 140%;
    background: linear-gradient(115deg,
      transparent 0%,
      transparent 35%,
      rgba(229, 200, 150, 0.16) 45%,
      rgba(248, 215, 145, 0.42) 50%,
      rgba(229, 200, 150, 0.16) 55%,
      transparent 65%,
      transparent 100%);
    filter: blur(20px);
    transform: rotate(8deg) translateY(-100%);
    animation: hmBeamSweep 6s cubic-bezier(0.22, 1, 0.36, 1) 2s infinite;
    mix-blend-mode: screen;
    pointer-events: none;
  }

  @keyframes hmBlobSpin {
    from { transform: rotate(0deg)   scale(1);    }
    50%  { transform: rotate(180deg) scale(1.08); }
    to   { transform: rotate(360deg) scale(1);    }
  }
  @keyframes hmBlobBreath {
    0%, 100% { transform: scale(1)    translate(0, 0);   opacity: 0.65; }
    50%      { transform: scale(1.18) translate(-3%, 4%); opacity: 1;    }
  }
  @keyframes hmBlobDrift {
    0%   { transform: translate(0, 0)    scale(1);    }
    100% { transform: translate(-12%, 7%) scale(1.1); }
  }
  @keyframes hmBeamSweep {
    0%   { transform: rotate(8deg) translateY(-110%); opacity: 0;   }
    20%  { opacity: 0.9; }
    50%  { transform: rotate(8deg) translateY(0%);    opacity: 1;   }
    80%  { opacity: 0.9; }
    100% { transform: rotate(8deg) translateY(110%);  opacity: 0;   }
  }

  /* Top + bottom gold hairlines */
  .hm__hairline {
    position: absolute;
    top: 60px; left: 22px; right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 168, 118, 0.42) 50%, transparent 100%);
    z-index: 2;
  }
  .hm__hairline--bottom {
    top: auto;
    bottom: 32px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.10) 50%, transparent 100%);
  }

  .hm__inner {
    position: relative;
    z-index: 1;
    padding: 110px 24px 32px;
    min-height: calc(100svh);
    display: flex;
    flex-direction: column;
  }

  /* === Brand pill — sits on case-mark baseline (right side) === */
  .hm__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    position: relative;
    flex-shrink: 0;
    z-index: 4;
    background:
      linear-gradient(135deg, rgba(232, 184, 95, 0.14) 0%, rgba(200, 168, 118, 0.04) 100%);
    border: 1px solid rgba(229, 200, 150, 0.42);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #F0DDB4;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    animation:
      hmBrandIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both,
      hmBrandFloat 4.5s cubic-bezier(0.45, 0, 0.55, 1) 1.5s infinite,
      hmBrandColorShift 6s ease-in-out 1.5s infinite;
    box-shadow:
      0 14px 32px -10px rgba(229, 200, 150, 0.45),
      0 4px 10px -2px rgba(232, 184, 95, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }
  /* Shimmer sweep across pill (more intense, faster) */
  .hm__brand::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -80%;
    width: 80%;
    background: linear-gradient(115deg,
      transparent 0%,
      rgba(248, 215, 145, 0.0) 30%,
      rgba(248, 215, 145, 0.55) 50%,
      rgba(248, 215, 145, 0.0) 70%,
      transparent 100%);
    transform: skewX(-22deg);
    animation: hmBrandShimmer 3.2s ease-in-out 2s infinite;
    pointer-events: none;
  }
  /* Gold halo behind pill */
  .hm__brand::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: radial-gradient(ellipse at center, rgba(232, 184, 95, 0.32) 0%, transparent 70%);
    z-index: -1;
    filter: blur(14px);
    animation: hmBrandHalo 4s ease-in-out 1s infinite;
    border-radius: 999px;
    pointer-events: none;
  }
  @keyframes hmBrandHalo {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50%      { opacity: 1;   transform: scale(1.08); }
  }
  @keyframes hmBrandColorShift {
    0%, 100% { border-color: rgba(229, 200, 150, 0.42); }
    33%      { border-color: rgba(248, 215, 145, 0.78); }
    66%      { border-color: rgba(232, 184, 95, 0.62); }
  }
  .hm__brand-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C8A876;
    box-shadow: 0 0 12px rgba(229, 200, 150, 0.85);
    animation: hmBrandPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
  }
  .hm__brand-label { color: #F0DDB4; font-weight: 800; letter-spacing: 1.8px; }
  .hm__brand-sep { color: rgba(229, 200, 150, 0.40); margin: 0 1px; }
  .hm__brand-year { color: rgba(229, 200, 150, 0.85); font-weight: 600; }

  @keyframes hmBrandIn {
    from { opacity: 0; transform: translateX(20px) scale(0.86); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
  }
  @keyframes hmBrandFloat {
    0%, 100% { transform: translateY(0)   rotate(0deg);   }
    33%      { transform: translateY(-4px) rotate(0.6deg); }
    66%      { transform: translateY(-2px) rotate(-0.4deg); }
  }
  @keyframes hmBrandShimmer {
    0%   { left: -80%; }
    50%  { left: 110%; }
    100% { left: 110%; }
  }
  @keyframes hmBrandPulse {
    0%, 100% { opacity: 1;   transform: scale(1);   box-shadow: 0 0 8px rgba(248, 215, 145, 0.85); }
    50%      { opacity: 0.4; transform: scale(1.6); box-shadow: 0 0 18px rgba(248, 215, 145, 1);   }
  }

  /* === Big editorial statement (light weight, tight) === */
  .hm__statement {
    margin: 0 0 14px;
    font-family: var(--font-display, 'Inter', system-ui);
    font-size: clamp(40px, 10.6vw, 56px);
    font-weight: 200;        /* Light — premium fashion-editorial */
    letter-spacing: -2px;
    line-height: 1.0;
    color: white;
    animation: hmFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
  .hm__sublead {
    margin: 0 0 32px;
    max-width: 28ch;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 400;
    letter-spacing: -0.1px;
    animation: hmFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }
  .hm__statement em {
    font-style: normal;
    font-weight: 300;
    background: linear-gradient(135deg, #E5C896 0%, #C8A876 50%, #8C7A52 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* === Centered Castly device (NO plastic frame — just rounded screen with deep shadow) === */
  .hm__device {
    margin: auto auto 28px;       /* push to vertical center */
    max-width: 230px;
    width: 60%;
    animation: hmFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .hm__device-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;       /* iPhone 17 Pro Max actual aspect */
    border-radius: 32px;
    overflow: hidden;
    background: #0E0E10;
    box-shadow:
      0 40px 100px -20px rgba(0, 0, 0, 0.85),
      0 16px 36px -8px rgba(200, 168, 118, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .hm__shot {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    animation: hmShotFade 22s infinite;
  }
  .hm__shot:nth-child(1) { animation-delay: 0s; }
  .hm__shot:nth-child(2) { animation-delay: 4.4s; }
  .hm__shot:nth-child(3) { animation-delay: 8.8s; }
  .hm__shot:nth-child(4) { animation-delay: 13.2s; }
  .hm__shot:nth-child(5) { animation-delay: 17.6s; }
  @keyframes hmShotFade {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    18%  { opacity: 1; }
    22%  { opacity: 0; }
    100% { opacity: 0; }
  }

  /* === Case tag (above device, editorial 3-line) === */
  .hm__case-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 4px 0 22px;
    animation: hmFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .hm__case-tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
  }
  .hm__case-tag-mark {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #C8A876;
    padding: 4px 10px;
    border: 1px solid rgba(200, 168, 118, 0.45);
    border-radius: 4px;
    background: rgba(200, 168, 118, 0.05);
    flex-shrink: 0;
  }
  .hm__case-tag-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.7px;
    color: white;
    line-height: 1;
  }
  .hm__case-tag-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 400;
    letter-spacing: 0.05px;
    max-width: 38ch;
  }

  /* === Mini caption under device (compact) === */
  .hm__device-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }
  .hm__device-cap-mini-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #C8A876;
    box-shadow: 0 0 8px rgba(200, 168, 118, 0.70);
    animation: hmDeviceCapDot 2s ease-in-out infinite;
  }
  @keyframes hmDeviceCapDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
  }

  /* === Mono-stat row (LCD-display feel) === */
  .hm__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 26px;
    animation: hmFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }
  .hm__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    text-align: center;
  }
  .hm__stat b {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: white;
    line-height: 1;
  }
  .hm__stat span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
  }
  .hm__stat-line {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
  }

  /* === Single text-link CTA (NOT a button — premium link with gold underline) === */
  .hm__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.2px;
    cursor: pointer;
    background: transparent;
    transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
    animation: hmFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  }
  .hm__link svg {
    color: #C8A876;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hm__link:active svg { transform: translateX(8px); }
  .hm__link:active { color: #E5C896; }

  /* === Animations === */
  @keyframes hmFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ====== Premium Snap Rail (vertical right) ====== */
  .snap-rail {
    display: block;
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 70;
    height: 56vh;
    max-height: 360px;
    pointer-events: none;
  }

  /* Arrow buttons (top/bottom of rail) — premium thin */
  .snap-rail__arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 22px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s, opacity 0.4s;
    opacity: 0.85;
  }
  .snap-rail__arrow svg {
    width: 14px; height: 14px;
    animation: railArrowBob 2.4s ease-in-out infinite;
  }
  .snap-rail__arrow:active { transform: translateX(-50%) scale(0.85); }
  .snap-rail__arrow:hover { color: #C8A876; opacity: 1; }
  .snap-rail__arrow--up   { top: -28px; }
  .snap-rail__arrow--down { bottom: -28px; }
  .snap-rail__arrow--down svg { animation-delay: -1.2s; }
  @keyframes railArrowBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
  }
  .snap-rail__arrow--down svg {
    animation-name: railArrowBobDown;
  }
  @keyframes railArrowBobDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
  }
  /* Hide arrow at edge — top arrow when at top, down arrow at bottom */
  .snap-rail.is-at-top    .snap-rail__arrow--up   { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-6px); }
  .snap-rail.is-at-bottom .snap-rail__arrow--down { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(6px); }

  .snap-rail__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    pointer-events: auto;
    position: relative;
  }
  .snap-rail__item {
    position: relative;
    width: 24px; height: 24px;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .snap-rail__item::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .snap-rail__item.is-active::before {
    width: 8px; height: 8px;
    background: #C8A876;
    box-shadow: 0 0 0 5px rgba(200, 168, 118, 0.14), 0 0 14px rgba(200, 168, 118, 0.55);
  }

  /* === Auto-invert rail on LIGHT backgrounds === */
  body[data-rail-bg="light"] .snap-rail__item::before {
    background: rgba(10, 10, 16, 0.32);
  }
  body[data-rail-bg="light"] .snap-rail__line {
    background: rgba(10, 10, 16, 0.08);
  }
  body[data-rail-bg="light"] .snap-rail__arrow {
    color: rgba(10, 10, 16, 0.42);
  }
  body[data-rail-bg="light"] .snap-rail__arrow:hover {
    color: #8C7A52;
  }
  body[data-rail-bg="light"] .snap-rail__item-label {
    background: rgba(255, 255, 255, 0.96);
    color: #0A0A0C;
    box-shadow: 0 8px 22px rgba(10, 10, 16, 0.12);
  }
  /* Smooth transition between bg modes */
  .snap-rail__item::before,
  .snap-rail__line,
  .snap-rail__arrow,
  .snap-rail__item-label {
    transition-property: background, color, box-shadow, opacity, transform;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  .snap-rail__item-label {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(10, 10, 16, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .snap-rail__item.is-active .snap-rail__item-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .snap-rail__line {
    position: absolute;
    top: 6px; bottom: 6px;
    right: 11px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
  }
  .snap-rail__line-fill {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0%;
    background: linear-gradient(180deg, #E5C896 0%, #8C7A52 100%);
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 6px rgba(200, 168, 118, 0.65);
  }

  /* Adjust rail dot color when over light sections */
  body.is-light-section .snap-rail__item::before { background: rgba(10, 10, 16, 0.30); }

  /* ====== Snap Pill ====== */
  .snap-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: calc(86px + max(8px, env(safe-area-inset-bottom)));
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 95;
    padding: 9px 16px;
    background: rgba(10, 10, 16, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.1px;
    box-shadow: 0 14px 38px rgba(10, 10, 16, 0.30);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .snap-pill.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .snap-pill__num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.50);
  }
  .snap-pill__num i { font-style: normal; color: #C8A876; font-weight: 700; }
  .snap-pill__sep { margin: 0 4px; color: rgba(255, 255, 255, 0.30); }
  .snap-pill__name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.1px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  /* ====== Sticky bottom CTA bar (frosted glass) ====== */
  body { padding-bottom: 76px; }
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(10, 10, 10, 0.06);
    box-shadow: 0 -10px 28px rgba(10, 10, 10, 0.08);
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-cta-bar.is-hidden { transform: translateY(105%); }
  .mcta__icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.05);
    color: #0A0A0C;
    display: grid;
    place-items: center;
    transition: all 0.18s ease-out;
  }
  .mcta__icon:active { transform: scale(0.92); background: rgba(10, 10, 10, 0.10); }
  .mcta__icon--wa { background: rgba(37, 211, 102, 0.12); color: #1FAE52; }
  .mcta__main {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #0A0A0C;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.1px;
    box-shadow: 0 6px 18px rgba(10, 10, 16, 0.35);
    cursor: pointer;
    transition: transform 0.18s ease-out;
  }
  .mcta__main:active { transform: scale(0.97); }

  @media (prefers-reduced-motion: reduce) {
    .hm__brand, .hm__statement, .hm__device, .hm__stats, .hm__link, .hm__shot {
      animation: none !important;
    }
    .hm__shot:first-child { opacity: 1; }
  }

  /* === Animated burger button (3 lines → X) === */
  .header__burger {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(232, 184, 95, 0.06);
    border: 1px solid rgba(229, 200, 150, 0.32);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .header__burger:active { transform: scale(0.92); }
  .header__burger span {
    position: absolute;
    left: 9px; right: 9px;
    height: 1.6px;
    background: #C8A876;
    border-radius: 2px;
    transition: all 0.45s cubic-bezier(0.65, -0.4, 0.35, 1.4);
    transform-origin: center;
  }
  .header__burger span:nth-child(1) { top: 13px; }
  .header__burger span:nth-child(2) { top: 50%; margin-top: -0.8px; }
  .header__burger span:nth-child(3) { bottom: 13px; }
  .header__burger[aria-expanded="true"] {
    background: rgba(232, 184, 95, 0.18);
    border-color: rgba(229, 200, 150, 0.6);
  }
  .header__burger[aria-expanded="true"] span:nth-child(1) {
    top: 50%; margin-top: -0.8px;
    transform: rotate(45deg);
  }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .header__burger[aria-expanded="true"] span:nth-child(3) {
    bottom: auto; top: 50%; margin-top: -0.8px;
    transform: rotate(-45deg);
  }

  /* ============= MOBILE MENU TAKEOVER (full-screen) ============= */
  .mm-take {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0A0A0C;
    color: white;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
  }
  .mm-take[hidden] { display: block; opacity: 0; pointer-events: none; }
  body.is-mm-open .mm-take {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Background ambience */
  .mm-take__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .mm-take__bg-orb {
    position: absolute;
    top: -20%; right: -30%;
    width: 90%; aspect-ratio: 1;
    border-radius: 50%;
    background:
      conic-gradient(from 0deg,
        transparent 0deg,
        rgba(229, 200, 150, 0.0) 40deg,
        rgba(229, 200, 150, 0.30) 90deg,
        rgba(232, 184, 95, 0.40) 130deg,
        rgba(229, 200, 150, 0.18) 180deg,
        transparent 240deg);
    filter: blur(50px);
    animation: hmBlobSpin 18s linear infinite;
    mix-blend-mode: screen;
  }
  .mm-take__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(rgba(229, 200, 150, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  }

  /* Head row inside menu */
  .mm-take__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    gap: 12px;
  }
  .mm-take__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: rgba(232, 184, 95, 0.08);
    border: 1px solid rgba(229, 200, 150, 0.32);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #F0DDB4;
  }
  .mm-take__brand b { color: #F0DDB4; font-weight: 800; }
  .mm-take__brand-sep { opacity: 0.45; }
  .mm-take__brand-year { color: rgba(229, 200, 150, 0.85); font-weight: 600; }
  .mm-take__brand-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C8A876;
    box-shadow: 0 0 10px rgba(229, 200, 150, 0.85);
    animation: hmBrandPulse 1.6s ease-in-out infinite;
  }
  .mm-take__close {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(232, 184, 95, 0.08);
    border: 1px solid rgba(229, 200, 150, 0.32);
    color: #C8A876;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mm-take__close:active { transform: scale(0.92); background: rgba(232, 184, 95, 0.18); }

  /* Nav stack */
  .mm-take__nav {
    position: relative;
    z-index: 1;
    padding: 24px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mm-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(14px);
  }
  body.is-mm-open .mm-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--mi, 0) * 0.05s + 0.15s);
  }
  .mm-link:active {
    transform: scale(0.98);
    background: rgba(232, 184, 95, 0.08);
    border-color: rgba(229, 200, 150, 0.32);
  }
  .mm-link__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #C8A876;
    background: linear-gradient(160deg, rgba(232, 184, 95, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(229, 200, 150, 0.30);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 8px 18px -4px rgba(10, 10, 16, 0.30);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mm-link__icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(229, 200, 150, 0.18) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
  }
  .mm-link__icon svg {
    width: 22px; height: 22px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(229, 200, 150, 0.30));
  }
  .mm-link:active .mm-link__icon {
    border-color: rgba(229, 200, 150, 0.65);
    background: linear-gradient(160deg, rgba(232, 184, 95, 0.20) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.10),
      0 10px 24px -4px rgba(232, 184, 95, 0.28);
    color: #F0DDB4;
  }
  /* All variants share the same monochrome gold scheme */
  .mm-link__icon--mobile,
  .mm-link__icon--web,
  .mm-link__icon--games,
  .mm-link__icon--ai { background: inherit; }
  .mm-link__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mm-link__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: white;
    line-height: 1.2;
  }
  .mm-link__sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.50);
    font-weight: 500;
    letter-spacing: 0.05px;
  }
  .mm-link__arrow {
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
    flex-shrink: 0;
  }
  .mm-link:active .mm-link__arrow { transform: translateX(4px); color: #C8A876; }

  /* Alt links (text-only, secondary nav) */
  .mm-link--alt {
    padding: 12px 14px;
    border: none;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
  }
  .mm-link--alt:active {
    background: transparent;
    border-color: rgba(229, 200, 150, 0.32);
  }
  .mm-link--alt .mm-link__title {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.3px;
  }
  .mm-link__count {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #C8A876;
    background: rgba(232, 184, 95, 0.08);
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(229, 200, 150, 0.32);
  }

  .mm-take__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 200, 150, 0.32), transparent);
    margin: 18px 0;
  }

  /* Footer block: phone, CTA, socials */
  .mm-take__foot {
    position: relative;
    z-index: 1;
    padding: 12px 22px max(28px, calc(28px + env(safe-area-inset-bottom)));
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mm-take__phone,
  .mm-take__cta,
  .mm-take__socials {
    opacity: 0;
    transform: translateY(14px);
  }
  body.is-mm-open .mm-take__phone,
  body.is-mm-open .mm-take__cta,
  body.is-mm-open .mm-take__socials {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mi, 0) * 0.05s + 0.15s),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mi, 0) * 0.05s + 0.15s);
  }

  .mm-take__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 16px;
    border: 1px solid rgba(229, 200, 150, 0.32);
    border-radius: 14px;
    background: rgba(232, 184, 95, 0.05);
    color: #F0DDB4;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.1px;
    text-decoration: none;
    font-feature-settings: 'tnum';
  }
  .mm-take__phone svg { color: #C8A876; }
  .mm-take__phone:active { background: rgba(232, 184, 95, 0.14); transform: scale(0.98); }

  .mm-take__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #E5C896 0%, #C8A876 50%, #8C7A52 100%);
    color: #0A0A0C;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.1px;
    cursor: pointer;
    box-shadow: 0 18px 40px -8px rgba(229, 200, 150, 0.55);
    position: relative;
    overflow: hidden;
  }
  .mm-take__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
  }
  .mm-take__cta:hover::before { transform: translateX(100%); }
  .mm-take__cta:active { transform: scale(0.98); }

  .mm-take__socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 4px;
  }
  .mm-take__socials a {
    display: grid;
    place-items: center;
    height: 48px;
    border-radius: 12px;
    background: rgba(232, 184, 95, 0.06);
    border: 1px solid rgba(229, 200, 150, 0.18);
    color: #C8A876;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mm-take__socials a:active {
    background: rgba(232, 184, 95, 0.18);
    border-color: rgba(229, 200, 150, 0.55);
    transform: scale(0.95);
    color: #F0DDB4;
  }
  .mm-take__socials svg { width: 18px; height: 18px; }

  body.is-mm-open { overflow: hidden; }
}

/* ---- pages.css ---- */
/* ZoomApps — стили для блоков, которые шаблоны используют, а CSS не описывал.
   Из-за этого «Этапы разработки», «Почему выбирают нас», «Контакты» и часть
   портфолио отображались как голый текст без сетки и отступов. 05.08.2026
   Значения взяты из tokens.css, чтобы страницы совпадали с остальным сайтом. */

/* === Шапка внутренней страницы === */
.hero--page {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero--page .hero__inner,
.hero__inner { position: relative; z-index: 1; }
.hero__subtitle {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 16px;
}
.hero__halos { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.halo { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.halo--1 {
  width: 420px; height: 420px; top: -180px; right: -120px;
  background: var(--accent-glow-strong);
}
.halo--mesh { inset: 0; border-radius: 0; filter: none; background: var(--grad-mesh); opacity: 1; }

/* === Нумерованные этапы === */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover { border-color: var(--accent); transform: translateY(-2px); }
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: 1;
}
.step__body h3 { margin: 0 0 8px; font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.step__body p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.step__duration {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}

/* === Карточки преимуществ === */
.value-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  height: 100%;
}
.value-card h3 { margin: 0 0 10px; font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.value-card p { margin: 0; color: var(--text-secondary); line-height: 1.65; }

/* === Карточка кейса в портфолио === */
.pf-case {
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elevated);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pf-case:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 10, 10, .08);
}
.pf-case img { display: block; width: 100%; height: auto; }

/* === Статистика === */
.stat-strip { margin: 32px 0; }
.stat-strip__grid,
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.stat-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.stat-item strong,
.stat-item b {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

/* === Технологии === */
.tech-category {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.tech-category h3 {
  margin: 0 0 10px;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary);
  font-weight: var(--fw-semibold);
}

/* === Мелочи, встречающиеся по всему сайту === */
.section__header { margin-bottom: 28px; }
.section__title--md { font-size: clamp(24px, 3vw, 34px); }
.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.btn--gradient {
  background: var(--grad-accent);
  color: var(--text-on-dark);
  border: none;
}
.hero__trust-stars { color: var(--warning); letter-spacing: .06em; }
.header__bar-social--gold svg { color: currentColor; }
.lead-form { display: grid; gap: 14px; }
.ab-bio { color: var(--text-secondary); line-height: 1.7; }

/* Между шапкой страницы и первым блоком складывались два больших отступа
   (её собственный и секции) — получалась пустая полоса почти в экран. */
.hero--page + .section,
.hero--page + section { padding-top: clamp(16px, 3vw, 40px); }
.hero--page { padding-bottom: clamp(20px, 3vw, 40px); }

